2009-03-26 Ivan N. Zlatev <contact@i-nz.net>
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
1 2009-03-26  Ivan N. Zlatev  <contact@i-nz.net>
2
3         * DataGridView.cs: Implement IsCurrentRowDirty. No longer throws 
4         NotImplementedException.
5
6 2009-03-26  Ivan N. Zlatev  <contact@i-nz.net>
7
8         * DataGridViewColumn.cs, DataGridViewTextBoxColumn.cs: 
9         Fix SortMode clash handling.
10         [Fixes bug #488263]
11
12 2009-03-26  Ivan N. Zlatev  <contact@i-nz.net>
13
14         * DataGridView.cs: Do not show the vertical scrollbar if there is only 
15         one row or less. For the sake of MSNET compatibility.
16         [Fixes bug #487988]
17
18 2009-03-26  Ivan N. Zlatev  <contact@i-nz.net>
19
20         * DataGridView.cs: When the current cell is moved out of the editing row 
21         be sure to reset it back to a place holder row.
22
23 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
24
25         * DataGridView.cs: If IsHandleCreated and the very first row is added 
26         to the grid in a non-databound scenario - select the first cell.
27         [Fixes bug #486881]
28
29 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
30
31         * DataGridView.cs: If we are not databound and empty once the first row 
32         gets added select the first cell.
33         [Fixes bug #486881]
34
35 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
36
37         * DataGridView.cs, DataGridViewColumn.cs: Do not set Row/CellTemplate's
38         DataGridView. They do not belong to a DataGridView.
39         [Fixes bug #486645]
40
41 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
42
43         * DataGridViewCellCollection.cs, DataGridViewColumnCollection.cs: 
44         Set indices and associate with DataGridView only after the item is 
45         add to the internal list.
46         [Fixes part of bug #486645]
47
48 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
49
50         * DataGridView.cs: Do not add any cells to the FullRowTemplate in RowCount. 
51         FullRowTemplate already contains all the cells.
52         [Fixes part of bug #486645]
53
54 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
55
56         * DataGridView.cs, DataGridViewCellCollection.cs: Split the column removal 
57         to perform Pre and Post removal actions to allow the current cell to be 
58         moved and all events fired properly before the column is removed.
59
60 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
61
62         * DataGridView.cs, DataGridViewRow.cs: Split the row removal to perform Pre and 
63         Post removal action to allow the current cell to be moved and all events fired 
64         properly before the row is removed.
65
66 2009-03-18  Ivan N. Zlatev  <contact@i-nz.net>
67
68         * DataGridView.cs: Fire CellEnter and CellLeave events for the Cell.
69         [Fixes bug #486640]
70
71 2009-03-18  Jonathan Pobst  <monkey@jpobst.com>
72
73         * XplatUICarbon.cs: Commit patch from Alex Shulgin that fixes window
74         placement of popup windows on OSX.
75
76 2009-03-18  Matt Guo  <matt@mattguo.com>
77
78         * FontDialog.cs: Override "ToString" for FontDialog.ColorComboBox.ColorComboBoxItem
79         [Fixes bug #482690]
80
81 2009-03-18  Ivan N. Zlatev  <contact@i-nz.net>
82
83         * DataGridView.cs: Implement the CellMouseDoubleClick event.
84         [Fixes bug #486262]
85
86 2009-03-18  Ivan N. Zlatev  <contact@i-nz.net>
87
88         * DataGridView.cs: Fix scrolling to take into account that the 
89         scrollbars are actually inside the client area of the datagridview.
90
91 2009-03-18  Ivan N. Zlatev  <contact@i-nz.net>
92
93         * DataGridView.cs: Implement mouse wheel scrolling.
94         [Fixes bug #486159]
95
96 2009-03-17  Ivan N. Zlatev  <contact@i-nz.net>
97
98         * DataGridView.cs: When DataSource changes the rebinding should happen 
99         not if IsHandleCreated but if BindingContext != null.
100         [Fixes bug #486013]
101
102 2009-03-17  Ivan N. Zlatev  <contact@i-nz.net>
103
104         * DataGridView.cs: Browsable(false) properties should be skipped when 
105         autogenerating the columns.
106         [Fixes bug #486021]
107
108 2009-03-16  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
109
110         * DomainUpDown.cs: When ReadOnly is true, all the text entered by the
111         user should use a different handling, trying to use every pressed char
112         as a unique and only one prefix to compare against the items. Also,
113         refactor some input check code to avoid duplication.
114         Fixes #458607.
115
116 2009-03-16  Ivan N. Zlatev  <contact@i-nz.net>
117
118         * DataGridViewCell.cs: In OwningColumng Handle invalid column index 
119         silently.
120         [Fixes bug #485278]
121
122 2009-03-16  Ivan N. Zlatev  <contact@i-nz.net>
123
124         * DataGridViewBand.cs: Update our State whenever a property changes.
125         * DataGridView.cs: Don't be so generous in reseting Displayed, because 
126         it will spawn lots and lots of unneeded State changed events.
127         [Fixes bug #484989]
128
129 2009-03-16  Ivan N. Zlatev  <contact@i-nz.net>
130
131         * DataGridView.cs, DataGridViewRow.cs, DataGridViewColumn.cs: 
132         Add support for invisible rows and columns.
133         [Fixes bug #484951]
134
135 2009-03-16  Ivan N. Zlatev  <contact@i-nz.net>
136
137         * DataGridViewCell.cs: Escape literal { in ToString.
138         * DataGridViewTextBoxCell.cs: Fix ToString.
139         [Fixes bug #484923]
140
141 2009-03-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
142
143         * MenuAPI.cs: When navigating items using the keyboard properly handle
144         the case when no item is selected - this way we should try to select
145         the first or the last item depending on the direction, but no the
146         second or third one, etc.
147
148 2209-03-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
149
150         * Form.cs: When calling ProcessCmdKey, just after checking for any
151         MainMenu, check if there's an active ContextMenu that is *not* owned
152         by the form - this is needed when a non-focusable control owns a
153         ContextMenu but its ProcessCmdKey method can't be called since it
154         can't receive any input.
155         Fixes #477655.
156
157 2009-03-13  Neville Gao  <nevillegao@gmail.com>
158
159         * ToolBar.cs: Sent ButtonClick events when button style is DropDown.
160         * ContextMenu.cs: Add UIA Framework property UIAVisible to detect if
161         ContextMenu is displayed.
162
163 2009-03-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
164
165         * XplatUIX11.cs: In GetMessage when F1 gets pressed, besides sending a
166         WM_HELP message for the associated window, don't call
167         NativeWindow.WndProc *at all*, since this could send a WM_*
168         key-related to Control.WndProc. Also, return the keypress message, in
169         case it needs to be preprocessed for any menu.
170         Fixes #478476.
171
172 2009-03-08  Ivan N. Zlatev  <contact@i-nz.net>
173
174         * DataGridView.cs: When removing the first displayed row and moving 
175         the current cell up one we must invalidate the first displayed row 
176         index before calculating the row heights, etc.
177         [Fixes bug #483202]
178
179 2009-03-08  Ivan N. Zlatev  <contact@i-nz.net>
180
181         * DataGridView.cs: Fix three column bugs:
182            - Rows should be cleared (but not removed) if columns become 0.
183            - The current cell should get moved
184            - ColumnCount increase was adding too many columns.
185
186 2009-03-07  Ivan N. Zlatev  <contact@i-nz.net>
187
188         * DataGridView.cs: Fix RowCount decrease which wasn't working well 
189         in both scenarions - with and without editing row.
190
191 2009-03-06  Ivan N. Zlatev  <contact@i-nz.net>
192
193         * DataGridView.cs: Be compatible with MS in that the scroll to 
194         selection has a synchronous effect. The trick here is that in 
195         order to avoid unnecessary calculations each time a row/column 
196         is added/removed we recalculate the whole grid size just before 
197         just before the scroll to selection.
198         [Fixes bug #482478]
199
200 2009-03-06  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
201
202         * RichTextBox.cs: LoadFile(string path) should pass by default
203         RichTextBoxStreamType.RichText, without caring about the detection or
204         extension of the file.
205
206 2009-03-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
207
208         * RichTextBox.cs: When calling LoadFile, remove the extra EOL
209         introduced by StreamReader, since it will convert the EOF to an EOL.
210         Fixes #479646.
211
212 2009-03-06  Jonathan Pobst  <monkey@jpobst.com>
213
214         * ToolStripDropDownMenu.cs: Use Math.Max instead of calculating
215         preferred size twice.
216
217 2009-03-06  Jonathan Pobst  <monkey@jpobst.com>
218
219         * ToolStripMenuItem.cs: Don't draw the dropdown arrow or shortcut
220         string if we aren't on a ToolStripDropDownMenu.
221
222 2009-03-06  Jonathan Pobst  <monkey@jpobst.com>
223
224         * ToolStripDropDownButton.cs, ToolStripItem.cs: Refactor some Button
225         code from Item to Button.  Patch from Alex Shulgin.
226
227 2009-03-05  Jonathan Pobst  <monkey@jpobst.com>
228
229         * ToolStripDrowDown.cs: Remove some hardcoded values and assumptions.
230         * ToolStripDropDownButton.cs: This should use a ToolStripDropDownMenu,
231         not a ToolStripDropDown.
232         * ToolStripItem.cs: Don't use the item margins on a ToolStripDropDown.
233
234 2009-03-04  Ivan N. Zlatev  <contact@i-nz.net>
235
236         * DataGridView.cs: Fix RowCount/ColumnCount decreasing.
237
238           Based on a patch by Tom Hindle <tom_hindle@sil.org>
239           [Fixes bug #482133]
240
241 2009-03-04  Ivan N. Zlatev  <contact@i-nz.net>
242
243         * DataGridView.cs, DataGridViewElement.cs: 
244            - Always calls OnDataGridViewChanged() if the new DGV is 
245            not the same/null as the current one.
246            - Do not throw NREs when setting TopLeftHeaderCell to null
247            - Unset the DGV for TopLeftHeaderCell when replacing it
248           Based on a patch by Tom Hindle <tom_hindle@sil.org>
249           [Fixes bug #481681]
250
251 2009-03-04  Jonathan Pobst  <monkey@jpobst.com>
252
253         * ToolStripDropDown.cs: When dismissing control due to ESC, don't
254         hit a NRE if we are a ContextMenuStrip and do not have a parent.
255         [Fixes bug #478616]
256
257 2009-03-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
258
259         * ListView.cs: When removing items from a ListViewItemCollection
260         contained in ListView (not in ListViewGroup), before actually removing
261         the items remove them also from their -if any- associated groups. If
262         the item is present in ListViewGroup.Items but not in ListView.Items,
263         then don't remove it - this is *exactly* what .net seems to do.
264         Fixes the remaining bits of #478689.
265
266 2009-02-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
267
268         * ListView.cs: In our MouseDown handler in ItemControl use the item in
269         the very specific *real* position where the mouse was pressed, using
270         GetItemAtDisplayIndex for that purpose, instead of directly accessing
271         Items - this is specially useful when groups with Details view is
272         used. This is what we do in other places when using groups.
273         Fixes part of #478689.
274
275 2009-02-27  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
276
277         * MaskedTextBox.cs: Properly replace selection when a new valid key
278         is pressed - even when IsOverwriteMode is false. This is what .net
279         does.
280
281 2009-02-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
282
283         * MaskedTextBox.cs: When setting Text and RejectOnFirstFailure is
284         true, use MaskedTextProvider.Set instead of MaskedTextProvider.Replace, 
285         since Set will keep the previous value in case of error (just what we
286         need), but still call MaskedTextProvider.Clear if
287         RejectOnFirstFailure is false - match .net.
288
289 2009-02-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
290
291         * MaskedTextBox.cs: When setting Text use the very precise algorithm
292         that .net uses: iterate over every char of the new value, trying to
293         use every char, and use a normal call to MaskedTextProvider.Replace
294         call if RejectInputOnFirstFailure is true. Fire OnMaskInputRejected 
295         in case of error in both cases, as well.
296         Fixes #477408.
297
298 2009-02-25  Neville Gao  <nevillegao@gmail.com>
299
300         * ColorDialog.cs: Added UIA Framwork Property:
301         UIASelectedSmallColorControl.
302
303 2009-02-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
304
305         * MaskedTextBox.cs: Forgot to update the call of the new method
306         introduces in the previous patch.
307
308 2009-02-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
309
310         * MaskedTextBox.cs: Handle OnKeyDown to properly process the Delete
311         key. Also create a new method to avoid code duplication between
312         OnKeyDown and OnKeyPress.
313         Fixes #477388.
314
315 2009-02-24  Ivan N. Zlatev  <contact@i-nz.net>
316
317         * DataGridViewCell.cs: Invalidate the datagrid when the cell is selected 
318         or deselected.
319         [Fixes bug #479124]
320
321 2009-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
322
323         * MaskedTextBox.cs: In OnKeyPress the IsOverwriteMode check is
324         actually inversed, so put it the right way. Also, don't automatically
325         look for the next editable item after adding a new one, but way for
326         the next insertion (this is what .net does) - this is not needed when
327         MaskedTextProvider.InsertAt is called however, since it already looks for the
328         next editable position.
329         Fixes the remaining bits of #477383.
330
331 2009-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
332
333         * MaskedTextBox.cs: In OnKeyPress handle backspace by calling
334         MaskedTextProvider.RemoveAt method. Also for setting the SelectionStart
335         property after the text was modified, adjust the testPosition value
336         depending on what method was called.
337         Fixes part of #477383.
338
339 2009-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
340
341         * ListView.cs: For EnsureVisible, adjust the view port bounds based on
342         the existence of the column headers, as well as using this information
343         to adjust the vscrollbar value, so items never get hidden by the
344         column headers.
345         Fixes #478498.
346
347 2009-02-23  Ivan N. Zlatev  <contact@i-nz.net>
348
349         * DataGridView.cs: Make the ScrollBars property work properly.
350
351 2009-02-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
352
353         * TextBox.cs: Some code lifting for AutoComplete's support. First,
354         when handling non-navigation keys, save the original Text typed by the
355         user, and don't motify it BEFORE. This was a design mistake, since the
356         re-assignation happens only when navigating the append/suggest list,
357         not while creating the matches. Also, process the Delete key just like 
358         the backspace one. Finally, when handling WM_CHAR, ignore both Escape
359         and Enter keys.
360         Fixes some missing bits of #469967.
361
362 2009-02-22  Ivan N. Zlatev  <contact@i-nz.net>
363
364         * DataGridView.cs: Fix row removal in the data-bound scenario.
365
366 2009-02-19  Ivan N. Zlatev  <contact@i-nz.net>
367
368         * DataGridViewCell.cs: Use strict equality comparison in order to 
369         prevent superfluous CellValueChanged events.
370
371 2009-02-19  Ivan N. Zlatev  <contact@i-nz.net>
372
373         * DataGridView.cs: Do not reset the columns when the data list changes, 
374         but only the rows. Fixes multiple bugs related to sorting, custom 
375         column styles being reset and more.
376
377 2009-02-19  Jonathan Pobst  <monkey@jpobst.com>
378
379         * ThemeWin32Classic.cs: Respect a PictureBox's Padding when
380         drawing the image.
381
382 2009-02-18  Andrés G. Aragoneses  <aaragoneses@novell.com>
383
384         * ToolBarButton.cs: Oops, use the correct event (fix r127298).
385
386 2009-02-17  Andrés G. Aragoneses  <aaragoneses@novell.com>
387
388         * ToolBarButton.cs: Event for Enabled property (needed to fix
389           UIA #474197).
390
391 2009-02-16  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
392
393         * TextBox.cs: When handling WndProc with autocomplete activated,
394         event if the new text is not causing any change in the look up
395         algorithm, save it as we normally do when numbers and letters.
396         Fixes #469967.
397
398 2009-02-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
399
400         * TreeNode.cs: When Text/StateImageIndex/StateImageKey/NodeFont change
401         Invalidate the proper bounds in the TreeView, not only resetting the
402         width.
403         Fixes #475542.
404
405 2009-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
406
407         * TreeNode.cs: Don't return TreeView.BackColor when retrieving our own
408         BackColor property. This is what .net does in both 1.1 and 2.0.
409         * TreeView.cs: When selected_node is not the same as highlighted_node,
410         we need to handle the back color in a different way, trying to use the
411         node's BackColor if it's not Color.Empty.
412         Fixes #464200.
413
414 2009-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
415
416         * TreeView.cs: When canceling selection in our MouseUp handler,
417         invalidate also the previous selected node bounds.
418         Fixes #464191.
419
420 2009-02-07  Ivan N. Zlatev  <contact@i-nz.net>
421
422         * DataGridView.cs: End or if end fails then cancel the current edit 
423         operation before clearing the data source.
424
425 2009-02-07  Ivan N. Zlatev  <contact@i-nz.net>
426
427         * DataGridView.cs: Data-bind only after the handle is created.
428         [Fixes bug #473680]
429
430 2009-02-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
431
432         * TreeView.cs: When handling the MouseMove event, check if
433         focused_node and selected_node fields are null - usually they are non
434         null, since we have always a selected node, but canceling selection by
435         handling BeforeSelect event leaves the two of them as null.
436         Fixes #470451.
437
438 2009-02-06  Neville Gao  <nevillegao@gmail.com>
439
440         * TabControl.cs: Control enabled to support accessibility.
441         [Fixes Bug #472428]
442
443 2009-02-05  Ivan N. Zlatev  <contact@i-nz.net>
444
445         * DataGridViewRowCollection.cs, DataGridView.cs: Fix row insertation: 
446            - Use ArrayList.Insert instead of the Item property so that the item 
447            is actually inserted and not an existing item replaced.
448            - Call DataGridView.OnRowsAddedInternal and drop internal from 
449            OnRowsAdded for binary compitability. This also fixes several 
450            redrawing issues.
451         [Fixes bug #472968]
452
453 2009-02-05  Andrés G. Aragoneses  <aaragoneses@novell.com>
454
455         * ToolBarButton.cs: Doh, fire OnUIATextChanged *after* setting
456           the value.
457
458 2009-02-04  Andrés G. Aragoneses  <aaragoneses@novell.com>
459
460         * ToolBarButton.cs: Add another event (OnUIATextChanged).
461
462 2009-02-04  Andrés G. Aragoneses  <aaragoneses@novell.com>
463
464         * ToolBarButton: Fix typo in previous commit (r125704).
465
466 2009-02-04  Andrés G. Aragoneses  <aaragoneses@novell.com>
467
468         * ToolBar.cs, ToolBarButton.cs: Add new UIA events to know
469         when a button gets focus, firing the events from the ToolBar.
470         r: jpobst
471
472 2009-02-04  Mario Carrion  <mcarrion@novell.com>
473
474         * ColumnHeader.cs: Raising ListView.ColumnWidthChanged when setting 
475         Width.
476         * ListView.cs: Internal method added: RaiseColumnWidthChanged, used by
477         ColumnHeader to raise ColumnWidthChanged.
478         [Fixes Bug #467086]
479
480 2009-02-03  Ivan N. Zlatev  <contact@i-nz.net>
481
482         * DataGridViewRowCollection.cs, DataGridView.cs: Move row completion 
483         code in the row collection code, so that the completion happens before 
484         the CollectionChanged event, also better encapsulation.
485         [Fixes bug #471987]
486
487 2009-02-02  Ivan N. Zlatev  <contact@i-nz.net>
488
489         * DataGridView.cs: When editing is finished do not remove the editing 
490         row, because it has already become a real one. Instead add a new one.
491         [Fixes bug #471754]
492
493 2009-02-02  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
494
495         * TreeView.cs: When drawing the node's image, check that the index
496         specified by the node is valid for the ImageList.
497         Fixes #471094.
498
499 2009-02-02  Andrés G. Aragoneses  <aaragoneses@novell.com>
500
501         * ToolBar.cs: Add new UIAPerformClick method to be called by
502         UIAutomationWinforms when someone calls Invoke() on the
503         ToolBarButtonProvider. r: jpobst
504
505 2009-02-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
506
507         * XplatUIX11.cs: Don't send a WM_SHOWWINDOW message when receiving
508         MapNotify/UnmapNotify events - we are already firing those events in
509         the proper places, so we avoid this way to send the same message two
510         times. I'm leaving the handling code in case we could break something
511         in the future, as this change seems dangerous (but needed).
512         Fixes #467546.
513
514 2009-02-01  Ivan N. Zlatev  <contact@i-nz.net>
515
516         * DataGridView.cs: Complete incomplete rows when they are added to 
517         the grid.
518         [Fixes bug #471068]
519
520 2009-02-01  Ivan N. Zlatev  <contact@i-nz.net>
521
522         * DataGridView.cs, DataGridViewColumnCollection.cs: Ensure that the 
523         binding is cleared prior to setting it to null. Fixes a regression 
524         causing exceptions when the DataSource is set to null and then set 
525         again to a data source.
526
527 2009-02-01  Ivan N. Zlatev  <contact@i-nz.net>
528
529         * DataGridView.cs, DataGridViewImageColumn.cs, DataGridViewCell.cs: 
530            - Make Image/Bitmap cells work.
531            - Handle images with size greater than the cell.
532            - Default to MiddleCenter alignment for image cells.
533         [Fixes bug #471101]
534
535 2009-01-30  Ivan N. Zlatev  <contact@i-nz.net>
536
537         * UpDownBase.cs: Force Height to PreferredHeight.
538
539 2009-01-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
540
541         * XplatUIX11.cs: We should use utf8 handling clipboard transference
542         with other x11 applications, and use utf16 when handling clipboard
543         data in the class library. Update the related points as well.
544         Fixes #468683.
545
546 2009-01-28  Ivan N. Zlatev  <contact@i-nz.net>
547
548         * DataGridViewCell.cs: Format strings according to the supplied 
549         CellStyle.Format.
550         [Fixes bug #470384]
551
552 2009-01-28  Ivan N. Zlatev  <contact@i-nz.net>
553
554         * DataGridView.cs: Reset the hover cell if it gets moved due to row(s) 
555         addition or removal. Fixes multiple crashes in OnMouseMove.
556
557 2009-01-27  Ivan N. Zlatev  <contact@i-nz.net>
558
559         * DataGridView.cs: Fix a NRE when setting the CurrentCell to null.
560
561 2009-01-27  Ivan N. Zlatev  <contact@i-nz.net>
562
563         * XplatUIX11.cs: Fire Timer.Tick even if there is no MainForm for the 
564         current context.
565         [Fixes bug #469239]
566
567 2009-01-26  Andreia Gaita  <avidigal@novell.com>
568
569         * WebBrowser.cs: fix initial value of ScrollbarsEnabled, so they
570         won't be disabled by default.
571         Fixes #468690
572
573 2009-01-26  Ivan N. Zlatev  <contact@i-nz.net>
574
575         * DataGridView.cs: Do not clear the rows if we are not databound.
576
577 2009-01-26  Ivan N. Zlatev  <contact@i-nz.net>
578
579         * DataGridView.cs: Do not be too smart about selecting the first cell 
580         when the first row is added as this is not what MS does. Fixes the 
581         failing unit tests.
582
583 2009-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
584
585         * TreeNode.cs: NextVisibleNode and PrevVisibleNode properties don't
586         take into account the fact that OpenTreeNodeEnumerator needs to call
587         MoveNext/MovePrevious to actually put the passed node as the one
588         retrieved in Current. This way this property should work as really
589         expected in .net.
590         Fixes part of #467225.
591
592 2000-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
593
594         * TreeView.cs: When calculating the scrollbars, don't use
595         TreeNode.Bounds, since it still can have the values of the previous
596         -and now invalid- layout -which depends on TreeView.skipped_nodes, and
597         could not have been updated as well-, and use the actual number of
598         visible number of nodes to compute the height needed to contain all
599         the nodes. Also reset the value of vbar to 0 when disabled - this way
600         we make sure that, when re-enabled, it will update the visible area of
601         the treeview, even if the previous value before disabling it is the
602         same as now. Finally don't do anything for the vbar.ValueChanged
603         handler - for the case wheer we manually set the value but don't the
604         vbar is disabled already.
605         Fixes part of #467225.
606
607 2009-01-23  Jonathan Pobst  <monkey@jpobst.com>
608
609         * ToolStrip.cs: Switch from foreach to for, in case the collection
610         somehow changes while enumerating it.
611
612 2009-01-23  Ivan N. Zlatev  <contact@i-nz.net>
613
614         * DataGridView.cs, DataGridViewCell.cs: Fix crashes when there is no 
615         editing control.
616
617 2009-01-23  Ivan N. Zlatev  <contact@i-nz.net>
618
619         * DataGridView.cs: Fix new row adding/editing in the non-databound 
620         scenario.
621
622 2009-01-21  Mike Gorse  <mgorse@novell.com>
623
624         * TrackBar.cs: Make LargeIncrement/Decrement internal so that UIA can
625           use them.
626           Added UIAValueParamChangedEvent.
627
628 2009-01-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
629
630         * TreeView.cs: In CollapseAll, set vbar to the maximum value, instead
631         of trying to set as top node the highest parent of the previous top
632         node. Moving to the bottom of the TreeView after a call to CollapseAll
633         is exactly what .net does. This should avoid some nasty issue when
634         CollapseAll is called and we don't need the vertical scroll bar.
635
636 2009-01-21  Mario Carrion <mcarrion@novell.com>
637
638         * Form.cs: UIA Support: Internal events added: UIAWindowStateChanged
639         and UIATopMostChanged.
640
641 2009-01-21  Sandy Armstrong  <sanfordarmstrong@gmail.com>
642
643         * MenuItem.cs: Add UIACheckChanged, UIARadioCheckChanged,
644         UIAEnabledChanged, and UIATextChanged events.
645
646         * Form.cs: Add UIAMenuChanged event.
647
648         * Menu.cs:
649         * MenuAPI.cs: Note which internal APIs are being used by UIA.
650
651 2009-01-21  Neville Gao  <nevillegao@gmail.com>
652
653         * ToolBar.cs: Control enabled to support accessibility.
654         [Fixes Bug #455950]
655
656 2009-01-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
657
658         * TreeView.cs: When handling mouse up event, check whether
659         highlighted_node is null or not - usually it should be non-null
660         alwaays, since the mouse down handler sets it, but some externa
661         operations, such TreeNodeCollection.Clear, could set it to null.
662         Fixes #438650.
663
664 2009-01-19  Ivan N. Zlatev  <contact@i-nz.net>
665
666         * ThemeWin32Classic.cs: Draw the menu item shortcut even if the menu 
667         item is disabled.
668
669 2009-01-19  Ivan N. Zlatev  <contact@i-nz.net>
670
671         * MenuAPI.cs: Do not handle shortcuts if the menu item is disabled.
672         [Fixes bug #467285]
673
674 2009-01-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
675
676         * MonthCalendar.cs: When handling the selection changes using the
677         mouse, don't set SelectionRange if the selection range didn't actually
678         change. This matters because, even if we set the range to the same
679         previous range, an extra DateChanged event is fired. Just to be clear:
680         SelectionRage property doesn't check whether the new value is
681         different to the previous one (by ref equals doesn't work here).
682         Fixes other bits of #364914.
683
684 2009-01-19  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
685
686         * MonthCalendar.cs: Remove the extra OnDateChanged call when handling
687         selection using the keyboard, since we are already firing this event
688         when setting SelectionRange. Also don't set SelectionRange if the
689         previous and the new value are the same (the property, just as .net
690         does, doesn't check whether the previous value and the new one are the
691         same). This saves us from firing OnDateChanged event if the selection
692         range didn't change actually.
693         Fixes the remaining bits of #364914.
694
695 2009-01-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
696
697         * ListBox.cs: When removing an item and the last item is selected,
698         remove it from the selection, and if selection mode is One try to
699         select the new last item.
700         Fixes #465422.
701
702 2009-01-16  Mike Gorse  <mgorse@novell.com>
703
704         * Splitter.cs: Make MaxSize internal so that UIA code can use it.
705
706 2009-01-16  Mario Carrion <mcarrion@novell.com>
707
708         * ColumnHeader.cs: UIA Support: raising internal event UIATextChanged 
709         when changing Text. 
710
711 2009-01-16  Carlos Alberto Cortez <calberto.cortez@ggmail.com>
712
713         * X11Structs.cs:
714         * XplatUIX11.cs: Properly encode/decode the unicode strings we
715         store/retrieve in the Clipboard. Also, since we try to convert the
716         data to different formats, separate the source and the result of
717         it, so we can always fallback to the original and don't mix wrong
718         conversions.
719
720 2009-01-16  Mike Gorse  <mgorse@novell.com>
721
722         * TextControl.cs: Add UIASelectionChanged event.
723
724 2009-01-16  Ivan N. Zlatev  <contact@i-nz.net>
725
726         * DataGridView.cs: Forward the first key events to the editing control.
727         [Fixes bug #457307]
728
729 2009-01-14  Andrés G. Aragoneses  <aaragoneses@novell.com>
730
731         * Application.cs: Oops, launch the copied handler of PreRun instead of
732         the global one (gendarme would bark otherwise). (Improving r123375)
733
734 2009-01-14  Andrés G. Aragoneses  <aaragoneses@novell.com>
735
736         * XplatUI.cs:
737         * Application.cs: Move the PreRun event fire to the end of the XplatUI
738         static ctor (we don't move the PreRun event to this class because its
739         usage would cause the call to the static ctor). This way we can get
740         a11y support for dialogs that run without App.Run.
741
742 2009-01-14  Andrés G. Aragoneses  <aaragoneses@novell.com>
743
744         * ListView.cs: New internal property to know the inner array's length of
745         the location of items, in order to avoid a try-catch strategy for the
746         case when this array has not been resized yet (for reference, look at
747         r123288). r: jpobst
748
749 2009-01-13  Andrés G. Aragoneses  <aaragoneses@novell.com>
750
751         * Application.cs: Simplify UIA initialization, reducing it from 4 to 1
752         reflection calls. This requires UIAutomationWinforms r123213.
753
754 2009-01-12  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
755
756         * MonthCalendar.cs: Detect selection changes in MouseDown/MouseMove
757         handlers and fire the DateSelected event until MouseUp is reached,
758         like .net does, instead of firing it for each mouse event.
759         Fixes part of #364914.
760
761 2009-01-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
762
763         * TreeView.cs: When the selection gets canceled using the BeforeSelect
764         event, invalidate the previous highlighted_node bounds, to show the
765         user that the item was *not* selected.
766         Fixes #464191.
767
768 2009-01-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
769
770         * ComboBox.cs: Separate some scroll logic: setting SelectedIndex, as
771         well as -in DropDown and Simple modes- writing in the textbox should
772         try to set the requested item as the top one, but navigating with the
773         keyboard and handling mouse selection don't need that behaviour. Also,
774         when resetting selected_index handling key press events, reset
775         ComboListBox.HighlightIndex. 
776         Fixes the remaining bits of #464188.
777
778 2009-01-11  Ivan N. Zlatev  <contact@i-nz.net>
779
780         * DataGridView.cs: Fix crashes when shortcut keys are pressed, but 
781         there are no cells:
782            - CurrentCellAddress should be -1, -1 and not 0, 0.
783            - Be tolerant and fall back to clearing the current cell if either 
784            column or row is -1 in MoveCurrentCell.
785            - Misc. more -1 checks.
786
787 2009-01-11  Ivan N. Zlatev  <contact@i-nz.net>
788
789         * DataGridView.cs: Preserve the column index. Fixes a regression 
790         introduced by the data binding position tracking code.
791
792 2009-01-11  Ivan N. Zlatev  <contact@i-nz.net>
793
794         * DataGridView.cs: If the bottom of the row matches the client height 
795         do not regard the row as partially visible. Fixes the weird scrolling 
796         when there is no scrollbar.
797
798 2009-01-11  Ivan N. Zlatev  <contact@i-nz.net>
799
800         * DataGridViewComboBoxCell.cs: Implement/Fix the data binding.
801
802 2009-01-09  Mario Carrion  <mcarrion@novell.com>
803
804         * MessageBox.cs: Fixed internal UIAIconRectangle property.
805
806 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
807
808         * DataGridViewCheckBoxCell.cs: Respect the ReadOnly state of the Cell.
809
810 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
811
812         * DataGridView.cs: Track the Position in the CurrencyManager.
813
814 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
815
816         * DataGridView.cs: Implement data-bound new item editing/addition.
817         * DataGridViewRowCollection.cs: Make it possible for us to internally 
818         remove the edit row.
819         [Fixes bugs #457107, #457308, #325240]
820
821 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
822
823         * CurrencyManager.cs: Even if Position is set to a greater value than the 
824         list count reset it to position of the last item.
825
826 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
827
828         * BindingSource.cs: AddNew doesn't set index/add_pending for IBindingList. 
829         Fix that in order to make CancelNew to work.
830
831 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
832
833         * BindingSource.cs: When adding a new item try to delegate to the internal 
834         list first before throwing an exception.
835
836 2009-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
837
838         * ComboBox.cs: When setting the text and adjusting the top_item, do it
839         *only* if the current item is *not* visible already.
840         Fixes part of #464188.
841
842 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
843
844         * DataGridView.cs: Requesting the CurrencyManager for the first time can 
845         lead to unexpected OnBindingContextChanged calls and recursive rebinding. 
846         Fix that.
847         [Fixes bug #464493]
848
849 2009-01-08  Brad Taylor  <brad@getcoded.net>
850
851         * ComboBox.cs: Expose a few private fields as internal UIA properties.
852
853 2009-01-07  Mario Carrion <mcarrion@novell.com>
854         
855         * DataGrid.cs: CWL removed.
856
857 2009-01-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
858
859         * RadioButton.cs: When setting Checked, we should first update the
860         check state of the current RadioButton, as well as invalidating it,
861         and after that actually update the siblings. This is done to match
862         .net.
863         Fixes the remaining bits of #463028.
864
865 2009-01-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
866
867         * RadioButton.cs: Setting Checked to false should set TabStop to stop
868         as well. Also, when we get the focus and no other RadioButton is
869         selected in the parent control, we should mark ourselves as Checked.
870         Fixes part of #463028.
871
872 2009-01-05  Mario Carrion <mcarrion@novell.com>
873
874         * DataGrid.cs: UIA suppport. internal events: 
875         UIAGridCellChanged, UIAColumnsHeadersVisibleChanged, 
876         UIASelectionChanged, UIACollectionChanged. Internal properties: 
877         UIARowHeight, UIACellsArea, UIACaptionArea, 
878         UIAColumnHeadersArea, UIASelectedRows, UIACurrentTableStyle, 
879         UIAVScrollBar and UIAHScrollBar.
880
881 2009-01-05  Jonathan Pobst  <monkey@jpobst.com>
882
883         * ToolStripSplitStackLayout.cs: Enable the overflow button if any
884         of the buttons are set to Overflow = Always.
885         [Fixes bug #463013]
886
887 2009-01-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
888
889         * BindingNavigator.cs: Properly enable/disable the toolstrip buttons,
890         based on whether the binding source is availble or not. Fixes #463008.
891
892 2009-01-03  Ivan N. Zlatev  <contact@i-nz.net>
893
894         * DataGridViewCell.cs: We should return a value even if we are not bound 
895         to a DataGridView.
896
897 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
898
899         * CurrencyManager.cs, DataGrid.cs: 
900            - Rename CanAddRows to AllowNew. The CurrencyManager has no 
901            concept of "rows".
902            - Add two more internal properties AllowRemove and AllowEdit.
903         * DataGridView.cs: Refactor in a data-bound situation AllowUserToAddRows, 
904         AllowUserToDeleteRows and cell ReadOnly state to be also checked against the 
905         CurrencyManager data source.
906
907 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
908
909         * DataGridView.cs: Fix crashes caused by assigning negative values to 
910         ScrollBar.LargeIncrement when the ClientSize.Width/Height is less than 
911         the column/row heights/widths.
912         [Fixes bug #462684]
913
914 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
915
916         * DataGridView.cs: Non-autogenerated columns that have a data property 
917         set that exists in the current datasource should be set to be data-bound.
918
919 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
920
921         * DataGridView.cs: Fix column sorting for columns containing null 
922         values. A "null" value is not always "null" (e.g could be String.Empty) 
923         and thus parsing numeric types throwed an exception for "null" values.
924
925 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
926
927         * DataGridView.cs: Detach the editing control when the edit is 
928         finished.
929
930 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
931
932         * DataGridView.cs: Multiple fixes to handle last column/row removal 
933         and cell movement after that instead of throwing exceptions.
934
935 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
936
937         * DataGridViewCellCollection.cs: When cells are removed the column 
938         indices become invalid if the cell is not the last one and have to 
939         be refreshed.
940
941 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
942
943         * DataGridView.cs: Return false in CommitEdit if there was an error.
944
945 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
946
947         * DataGridView.cs: Remove a leftover Console.WriteLine.
948
949 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
950
951         * DataGridViewRow.cs: Access the indexer of the data manager directly 
952         instead of the internal list.
953
954 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
955
956         * DataGridViewCell.cs, DataGridView.cs, DataGridViewCheckBoxCell.cs: 
957         Rewrite the value getting, setting, parsing, formatting logic:
958            - If data-bound value get/set should actually get and set from the 
959              data source.
960            - Make proper usage of TypeConverters for value parsing/formatting.
961            - Raise DataError if setting the new value fails.
962            - Get rid off the internal valueType field and get/set the ValueType 
963            property instead.
964         [Fixes bug #462051]
965
966 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
967
968         * DataGridView.cs: Rewrite the DataBinding layer:
969            - Get rid off all BindingSource/IBindingList/DataSet/DataTable 
970            specific code.
971            - Get rid off the per DataSource type column autogeneration code.
972            - Use the CurrencyManager for everything that is DataBinding related.
973
974 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
975
976         * CurrencyManager.cs: Do not fire duplicate ListChanged events.
977
978 2008-12-31  Ivan N. Zlatev  <contact@i-nz.net>
979
980         * DataGridView.cs, DataGridViewRow.cs: Add a new internal property 
981         DataManager to fetch the CurrencyManager for the DataGridView and to 
982         spare this logic for the other components to follow.
983
984 2008-12-31  Mario Carrion  <mcarrion@novell.com>
985
986         * MessageBox.cs: UIA support: new properties: UIAMessage, 
987         UIAMessageRectangle and UIAIconRectangle.
988
989 2008-12-31  Sandy Armstrong  <sanfordarmstrong@gmail.com>
990
991         * FileDialog.cs: Add PopupButtonPanel.PopupButton.PerformClick method
992         and DirComboBox.DirComboBoxItem.ToString override for UIA support.
993
994 2008-12-31  Ivan N. Zlatev  <contact@i-nz.net>
995
996         * DataGridView.cs: Do not autogenerate duplicate column for a 
997         data member that has already problematically been assigned one.
998         [Fixes bug #457305]
999
1000 2008-12-30  Jonathan Pobst  <monkey@jpobst.com>
1001
1002         * ProfessionalColorTable.cs: Better detection of user's theme.
1003         [Fixes bug #462766]
1004
1005 2008-12-30  Ivan N. Zlatev  <contact@i-nz.net>
1006
1007         * DataGridView.cs: In the case where there are no autogenerated 
1008         columns and the user adds columns problematically we must generate 
1009         the rows after the very first column is added.
1010
1011 2008-12-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1012
1013         * DateTimePicker.cs: When increasing/decreasing the value of month
1014         with ShowUpDown set to true, moving from december to january, and
1015         moving from january to december should adjust the year to the next and
1016         the previous year, respectively.
1017         Fixes the remaining bits of #459674.
1018
1019 2008-12-30  Ivan N. Zlatev  <contact@i-nz.net>
1020
1021         * DataGridView.cs: If a new cell is selected edit mode should be 
1022         immediately enabled only if EditOnEnter is set. Whether the mouse 
1023         or not was used to select the cell is irrelevant.
1024
1025 2008-12-29  Ivan N. Zlatev  <contact@i-nz.net>
1026
1027         * DataGridView.cs: Remove a bogus ReBind call, which was causing 
1028         recursive rebinding.
1029
1030 2008-12-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1031
1032         * DateTimePicker.cs: Handle the "MMMM" month format.
1033         Fixes #459674.
1034
1035 2008-12-23  Ivan N. Zlatev  <contact@i-nz.net>
1036
1037         * DataGridView.cs: 
1038            - Make ReBind private and refactor various calls to call ReBind 
1039            instead of ClearBinding/DoBinding
1040            - Rebind when the column collection changes
1041         * DataGridViewColumnCollection.cs: 
1042            - Leave the rebinding on change to be handled by the DataGridView.
1043
1044 2008-12-23  Jonathan Pobst  <monkey@jpobst.com>
1045
1046         * DataGridView.cs: Add a ReBind convenience method.
1047         * DataGridViewColumnCollection.cs: Rebind when a column is added.
1048         [Fixes bug #462019]
1049
1050 2008-12-23  Neville Gao  <nevillegao@gmail.com>
1051
1052         * StatusBar.cs: Modified argument variable.
1053         * SplitContainer.cs: Control enabled to support accessibility.
1054         [Fixes Bug #455950]
1055
1056 2008-12-22  Jonathan Pobst  <monkey@jpobst.com>
1057
1058         * ToolStripMenuItem.cs: Guard against an NRE.
1059         [Fixes bug #457110]
1060
1061 2008-12-22  Mario Carrion  <mcarrion@novell.com>
1062
1063         * Control.cs: AccessibleXXXX properties don't return 
1064         AccessibleObject.XXXX, instead a local referece is returned.
1065
1066 2008-12-22  Neville Gao  <nevillegao@gmail.com>
1067
1068         * PrintPreviewControl.cs: Added internal properties to support
1069         accessibility.
1070         [Fixes Bug #459699]
1071
1072 2008-12-19  Mario Carrion  <mcarrion@novell.com>
1073
1074         * Control.cs: Reverted r121561. 
1075
1076 2008-12-19  Andrés G. Aragoneses  <aaragoneses@novell.com>
1077
1078         * X11DesktopColors.cs: Since r121873 we don't need gtk a11y checks here,
1079         it has been moved to the bridge.
1080
1081 2008-12-18  Brad Taylor  <brad@getcoded.net>
1082
1083         * DateTimePicker.cs: Add a few UIA specific events, and a couple
1084         internal methods useful for UIA.
1085
1086 2008-12-18  Mario Carrion <mcarrion@novell.com>
1087
1088         * ListBox.cs: Fixed GetItemRectangle when MultiColumn is true.
1089         [Fixes Bug #455752]
1090
1091 2008-12-17  Mike Gorse  <mgorse@novell.com>
1092
1093         * ListView.cs, ListViewItem.cs: Send OnUIAFocusedItemChanged if an
1094           item's Focused property is set.
1095
1096 2008-12-17  Sandy Armstrong  <sanfordarmstrong@gmail.com>
1097
1098         * TreeView.cs:
1099         * TreeNode.cs:
1100         * TreeNodeCollection.cs: Add events for UIA support:
1101         UIACheckBoxesChanged, UIALabelEditChanged, UIANodeTextChanged, and
1102         UIACollectionChanged.
1103
1104 2008-12-17  Bill Holmes  <billholmes54@gmail.com>
1105
1106         * ListViewItem.cs (ListViewSubItem.ctor): Initalizing the 
1107           SubItemStyle member field. 
1108
1109         Contributed under MIT/X11 license.
1110
1111 2008-12-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1112
1113         * ListBox.cs: In MultiColumn mode don't use top_index to calculate the
1114         y coord, since it's useless in this case, and we need to rely only on
1115         the number of rows and ItemHeight to compute this value.
1116         Fixes part of #257471.
1117
1118 2008-12-15  Mike Gorse  <mgorse@novell.com>
1119
1120         * StatusBar.cs: Send OnUIACollectionChanged in Remove().
1121
1122 2008-12-15  Mario Carrion  <mcarrion@novell.com>
1123
1124         * Control.cs: Accessibility properties instantiate AccessibilityObject when
1125         needed.
1126         [Fixes Bug #459223]
1127
1128 2008-12-15  Brad Taylor  <brad@getcoded.net>
1129
1130         * ToolStripItem.cs: Add a UIA specific event for listening for when a
1131         ToolStripItem becomes selected or deselected.
1132
1133 2008-12-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1134
1135         * MonthCalendar.cs: Select the date in MouseDown, not in MouseUp, as
1136         .net does. Use the date in the point of the mouse move coords as the
1137         new range as well, if the left button of the mouse is being pressed.
1138         Fixes #364914.
1139
1140 2008-12-12  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1141
1142         * MonthCalendar.cs: When modifying either AnnuallyBoldedDates,
1143         MonthlyBoldedDates or BoldedDates call UpdateBoldedDates, to
1144         effectively repaint the control.
1145         Fixes the remaining bits of #417961.
1146
1147 2008-12-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1148
1149         * MonthCalendar.cs: When setting MaxDate/MinDate, adjust the selected
1150         range to contain only dates within the new possible range.
1151         Fixes part of #417961.
1152
1153 2008-12-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1154
1155         * MaskedTextBox.cs: MaskedTextService.Replace doesn't expect the
1156         length of the text, but the end position, so we need to substract 1 to
1157         have a valid value. Also, in the same InputText method, don't use
1158         SelectionLength as the length of the text, since the selected text
1159         could actually be empty, but we need to set the value anyway.
1160         Fixes #457370.
1161
1162 2008-12-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1163
1164         * TextBox.cs: Don't do any auto complete task if the custom source is
1165         null or empty. Also avoid duplication of code.
1166         Fixes #457743.
1167
1168 2008-12-09  Ivan N. Zlatev  <contact@i-nz.net>
1169
1170         * DataGridView.cs: Refresh column sizes when new rows are added.
1171         [Fixes bug #457050]
1172
1173 2008-12-09  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1174         * RichTextBox.cs: When parsing the contents of a rtf file, don't call
1175         Split to create a line - we are already doing this, by _adding_ a new
1176         one when rtf_cursor_x is 0 (this field gets this value just after we
1177         receive the newline param as true). This avoids having a proportional number
1178         of empty lines in the end of the rich text box.
1179         Fixes #396664.
1180
1181 2008-12-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1182
1183         * RichTextBox.cs: When saving the contents as a plain text, don't add
1184         a new line for every Line structure, since the data in Document
1185         already contains the new line characters. This avoids duplicated new
1186         lines using the Save methods.
1187         Fixes #445618.
1188
1189 2008-12-09  Sandy Armstrong  <sanfordarmstrong@gmail.com>
1190
1191         * TreeView.cs: Expose ScrollBars as internal properties, for use by UIA
1192         framework.  Fixes bug #457678.
1193
1194 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1195
1196         * DataGridViewRow.cs: Prevent an exception on a not yet databound grid, 
1197         where datasource is null.
1198         [Fixes exception reported in bug 441240]
1199
1200 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1201
1202         * DataGridView.cs: EndEdit validation fixes.
1203
1204 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1205
1206         * DataGridView.cs: This is the cool patch that adds support for 
1207         actually updating the data in the databinding backend after editing. 
1208         With bonus firing and handling the DataError event.
1209
1210 2008-12-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1211
1212         * Line.cs: When calculating the text tags's Shift value, store it as
1213         pixels instead of points. This way we can actually handle different
1214         fonts in the same RichTextBox, as well as the right size of the caret.
1215         Fixes part of #351938.
1216
1217 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1218
1219         * DataGridViewCheckBoxCell.cs: Fix to make it work. Wrong value was 
1220         casted to CheckState causing InvalidCastExceptions.
1221
1222 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1223
1224         * DataGridView.cs: Fix the DataGridViewEditMode.EditOnEnter behavior 
1225         to not depend on the item being clicked.
1226
1227 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1228
1229         * DataGridView.cs: Implement NotifyCurrentCellDirty, so that it no 
1230         longer throws a NotImplementedException.
1231
1232 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1233
1234         * DataGridView.cs: Set EditingControlFormattedValue when preparing an 
1235         IDataGridViewEditingControl for editing.
1236
1237 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1238
1239         * DataGridViewComboBoxCell.cs: Implement data binding support.
1240
1241 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1242
1243         * DataGridView.cs: Use the CurrencyManager to update the data source 
1244         binding position instead of casting the data sourcde to BindingSource.
1245         This enables position updating for other type of data sources.
1246
1247 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1248
1249         * ComboBox.cs: Update the SelectedIndex before updating the Text 
1250         in OnDisplayMemberChanged.
1251
1252 2008-12-07  Ivan N. Zlatev  <contact@i-nz.net>
1253
1254         * DataGridView.cs: Fix our support for IDataGridViewEditingControl.
1255         [Fixes bug #457112]
1256
1257 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
1258
1259         * DataGridView.cs: Sorting fixes:
1260            - Be strict when sorting is enabled.
1261            - If there is a data source delegate the sorting request.
1262
1263 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
1264
1265         * Binding.cs: When converting the data also try with the destination 
1266         type typeconverter. This indirectly adds support for Nullable types 
1267         in our databinding layer.
1268
1269 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
1270
1271         * DataGridView.cs: When cell editing is finished focus back the 
1272         DataGridView. Fixes keyboard navigation post-editing.
1273
1274 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
1275
1276         * DataGridView.cs: Fix the cell editing by delaying the currentCell 
1277         setting to after EndEdit is called for the old cell.
1278
1279 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
1280
1281         * BindingSource.cs: Reset the bindings. Fixes a NotWorking test.
1282
1283 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
1284
1285         * XplatUIX11.cs: Send WM_HELP only to the focused window.
1286
1287 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
1288
1289         * CurrencyManager.cs: Fix exceptions when resetting the data source 
1290         for the same time (e.g. in ComboBox): 
1291            - Do not set the list position if we are still transferring data
1292            - When resetting the list firstly push the data then update the 
1293            binding.
1294         * Binding.cs: Check BindingManager.Position == -1 instead of 
1295         BindingManager.Current == null in order to avoid unexpected 
1296         exceptions.
1297
1298 2008-12-05  Brad Taylor  <brad@getcoded.net>
1299
1300         * MonthCalendar.cs: Add UIA specific events so that we can know when
1301         the selection changes, and when MaxSelectedCount changes.
1302
1303 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
1304
1305         * DataGridView.cs: Cleanup rows_displayed out of OnPaint. It's not 
1306         used for anything.
1307
1308 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
1309
1310         * DataGridView.cs: Fix scrolling and selection of cells/rows prior
1311         to the control being drawn for the first time by:
1312            - Implement DisplayedRowsCount to not rely on the control being
1313            already painted. Also added support for the partial row flag.
1314            - Fix scrolling to take into account partial rows and scroll to
1315            them.
1316         [Fixes bug #456527]
1317
1318 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
1319
1320         * DataGridView.cs: Do not reset the CurrentCell when the handle is
1321         created if the user has already set it.
1322
1323 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
1324
1325         * DataGridView.cs: Fix CurrentCell to actually select the cell.
1326
1327 2008-12-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1328
1329         * XplatUIX11.cs: Add support to RichTextFormat by reading it as ascii
1330         text and then let the underneath users of IDataObject interpret and
1331         parse by themselves. 
1332         Fixes #439251.
1333
1334 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
1335
1336         * DataGridView.cs: Fix my previous commit to actually update what it 
1337         was supposed to.
1338
1339 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
1340
1341         * DataGridView.cs: Ensure that when a row is removed the all the 
1342         current row/column/cell get updated. Fixes multiple exceptions.
1343
1344 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
1345
1346         * DataGridView.cs: Fix scrolling to the current cell when key navigation 
1347         is used.
1348         [Fixes bug #443560]
1349
1350 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
1351
1352         * DataGridView.cs, DataGridViewCell.cs: Fire CellStateChanged events.
1353         * DataGridViewCell.cs: Set the cell as selected prior to setting the 
1354         new state.
1355         [Fixes issue 1 in bug #443560]
1356
1357 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
1358
1359         * DataGridView.cs: Invalidate after the current row/column seletion 
1360         chagnes.
1361         [Fixes bug #438434]
1362
1363 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
1364
1365         * DataGridView.cs: Refresh the data if the data list is reset, etc.
1366
1367 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
1368
1369         * DataGridView.cs: Handle datasource state changes:
1370            - IBindingList - list changes
1371            - BindingSource - list changed and datasource changes
1372
1373 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1374
1375         * DataGridView.cs: Select the first cell when databound. 
1376         Visually select when CurrentCell is set.
1377
1378 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1379
1380         * DataGridView.cs: Set the current cell before raising CellClick.
1381
1382 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1383
1384         * DataGridView.cs: Cleanup MoveCurrentCell to not fire any CellEnter, 
1385         CellLeave events as this is already done in SetCurrentCellAddressCore.
1386
1387 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1388
1389         * DataGridView.cs: Set the minimum size for the columns to be the 
1390         width of their header, so that the columns don't get squashed 
1391         all together.
1392
1393 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1394
1395         * DataGridView.cs: After the data is bound PerformLayout, so that 
1396         the columns get autosized.
1397
1398 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1399
1400         * DataGridView.cs: Move all currentCell setting code into 
1401         one central place - SetCurrentCellAddressCore. That way the 
1402         current cell is properly updated when programatically set.
1403         Fire RowEnter/Leave events.
1404
1405 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1406
1407         * DataGridView.cs: Update the CurrencyManager.Position, so that 
1408         when a BindingSource is used BindingSource.Current will be correct.
1409
1410 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1411
1412         * GroupBoxRenderer.cs: Fix when VisualStyles disabled:
1413            - No caption text is drawn because Color.Empty is used.
1414            - Fix top and height off by 1.
1415
1416 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1417
1418         * DataGridViewRow.cs: Implement DataBoundItem.
1419
1420 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1421
1422         * BindingSource.cs: Return null for Current if there is no data present.
1423
1424 2008-11-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1425
1426         * MenuAPI.cs: Add a Menu.SelectedItem null check when navigating the
1427         menus using the arrow keys. Also when handling the left arrow key, don't 
1428         assign the current menu to the parent one, if the parent is null.
1429         Fixes #446392.
1430
1431 2008-11-24  Everaldo Canuto  <ecanuto@novell.com>
1432
1433         * PrintPreviewDialog.cs: Fix toolbar size, height must be 26. Fixes bug
1434         #413501.
1435
1436 2008-11-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1437
1438         * Scrollbar.cs:
1439         * ScrollableControl.cs: Simplify the code to manually set the size of
1440         the thum area, avoiding duplication of code, and also preserving the
1441         right value for different code paths - this can happen when size
1442         changes are made to the scrollbar after setting LargeChange, Maximum
1443         or related properties for the ScrollBar.
1444
1445 2008-11-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1446
1447         * ScrollableControl.cs: When scrolling, don't invalidate the entire
1448         area, and call to XplatUIX11.ScrollWindow instead. This is exactly
1449         what .Net does: copy the visible area, and only invalidate the part of
1450         the area that wasn't visible before scrolling.
1451         Fixes #441738.
1452
1453 2008-11-24  Jonathan Pobst  <monkey@jpobst.com>
1454
1455         * DataGridView.cs: Listen for a DataTable's TableCleared event so we
1456         can clear ourselves when it is raised, we don't have a newrowindex
1457         if we don't have any columns.
1458         * DataGridViewRowCollection.cs: Ensure we always delete all the rows,
1459         re-index after each delete so the NewRow will have the correct index.
1460         [Fixes bug #448005]
1461
1462 2008-11-24  Jonathan Pobst  <monkey@jpobst.com>
1463
1464         * Form.cs: Don't change min/max size if it is empty.
1465         [Fixes bug #447873]
1466
1467 2008-11-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1468
1469         * ScrollBar.cs:
1470         * ScrollableControl.cs: When the manual thumb size is used, the
1471         maximum allowed value should depend on that thumb size, instead of
1472         LargeChange (using the maximum - LargeChange + 1 value). But
1473         LargeChange should be used normally when incrementing/decrementing.
1474         Fixes the remaining part of #441546.
1475
1476 2008-11-23  Andreia Gaita  <avidigal@novell.com>
1477
1478         * WebBrowser.cs, WebBrowserBase.cs: Delay loading of DocumentStream 
1479         until an about:blank has been loaded (according to spec). Fix 
1480         ScrollbarsEnabled to set when a document is loaded (since we use js 
1481         for it). Fix url so it reflects the current loading document and not 
1482         the previous one. Send StatusChanged events.
1483
1484 2008-11-23  Andreia Gaita  <avidigal@novell.com>
1485
1486         * Application.cs: If a message comes in for an embedded control
1487         (like webbrowser) when we're capturing the keyboard, release the
1488         capture and continue.
1489         [fixes #429462]
1490
1491 2008-11-22  Andreia Gaita  <avidigal@novell.com>
1492
1493         * XplatUI.cs: Only use PlatformID.MacOSX enum when not building on VS
1494
1495 2008-11-21  Andreia Gaita  <avidigal@novell.com>
1496
1497         * WebBrowser.cs, HtmlDocument.cs: Fixes for #428172
1498         
1499 2008-11-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1500
1501         * ScrollBar.cs:
1502         * ScrollableControl.cs: Set manually the thumb size for the
1503         ScrollableControl scrollbars, so any further changes to the underneath
1504         scrollbars respect the original size.
1505         Fixes part of #441546.
1506
1507 2008-11-21  Geoff Norton  <gnorton@novell.com>
1508
1509         * XplatUI.cs: Ensure that we can run on .net 2.0 with mono 2.2 where
1510         PlatformID.MacOSX now exists.
1511
1512 2008-11-20  Jonathan Pobst  <monkey@jpobst.com>
1513
1514         * TextBoxBase.cs: Provide a default implementation for ChangeBackColor.
1515         Having something internal abstract isn't very nice for people who want
1516         to inherit from this class.
1517
1518 2008-11-20  Jonathan Pobst  <monkey@jpobst.com>
1519
1520         * ToolStripItem.cs: Don't crash if ImageIndex or ImageKey is set to an
1521         invalid value.  Just return null for the Image, and use the ImageList's
1522         ImageSize for calculations.
1523
1524 2008-11-20  Jonathan Pobst  <monkey@jpobst.com>
1525
1526         * ComboBox.cs: Call HideWindow instead of Hide when closing the dropdown
1527         through DroppedDown so the proper events get called and state gets reset.
1528         [Fixes bug #446805]
1529
1530 2008-11-18  Jonathan Pobst  <monkey@jpobst.com>
1531
1532         * DataGridViewColumnCollection.cs: Make sure we re-index the columns after
1533         the collection is modified.
1534
1535 2008-11-17  Jonathan Pobst  <monkey@jpobst.com>
1536
1537         * DomainUpDown.cs: Remove string cache and reflection optimizations.  They
1538         aren't always correct, and fixing them for every case is not worth the
1539         negligible benefit they provide.
1540         [Fixes bug #445713]
1541
1542 2008-11-17  Jonathan Pobst  <monkey@jpobst.com>
1543
1544         * DataGridView.cs: We should never add actual cells to the RowTemplate.
1545         Internally, use RowTemplateFull to give us a new row with cells.
1546         * DataGridViewColumnCollection.cs: Clear Rows when we clear Columns.
1547         * DataGridViewRowCollection.cs: Use RowTemplateFull.
1548
1549 2008-11-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1550
1551         * XplatUIX11.cs: Forms without borders should be able to change its
1552         size - specially they should be able to be maximized, adding the
1553         respective MotifFunctions.Resize bit when setting window properties as
1554         well as *not* marking the Hwnd as size fixed.
1555         Fixes #444347.
1556
1557 2008-11-12  Jonathan Pobst  <monkey@jpobst.com>
1558
1559         * DataGridViewCellStyle.cs: Allow SelectionBackColor to have
1560         an alpha value.
1561         [Fixes bug #444348]
1562
1563 2008-11-11  Jonathan Pobst  <monkey@jpobst.com>
1564
1565         * DataGridView.cs: Add internal to OnAutoSizeColumnModeChanged.
1566         * DataGridViewColumn.cs: Recalculate columns when AutoSizeMode changes.  Raise
1567         AutoSizeColumnModeChanged.
1568         [Fixes bug #443609]
1569
1570 2008-11-11  Jonathan Pobst  <monkey@jpobst.com>
1571
1572         * DataGridViewRowCollection.cs: Guard against the user deleting the
1573         NewRow.  Add an internal delete so we can still delete it.
1574         * DataGridView.cs: Use the new internal delete when deleting the NewRow.
1575         [Fixes bug #442181]
1576
1577 2008-11-10  Jonathan Pobst  <monkey@jpobst.com>
1578
1579         * TextControl.cs: Add some order of operation to our math so
1580         we don't end up with a negative height for our invalidate rect.
1581         [Fixes bug #381889]
1582
1583 2008-11-10  Jonathan Pobst  <monkey@jpobst.com>
1584
1585         * Control.cs: When our enabled changes, notify our implicit children
1586         controls as well as our regular controls.
1587         [Fixes bug #441523]
1588
1589 2008-11-08  Andreia Gaita <shana@jitted.com> 
1590
1591         * HtmlElement.cs: Small code cleanup
1592
1593 2008-11-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1594
1595         * BindingNavigator.cs: MoveFirstItem should be enabled only if
1596         position is larger than 0, not only different than 0. Also Position
1597         and Count items should be enabled if the BindingSource is non null and
1598         non empty.
1599         Fixes #439961.
1600
1601 2008-11-05  Jonathan Pobst  <monkey@jpobst.com>
1602
1603         * TabControl.cs: Don't raise SelectedIndexChanged until we have
1604         actually modified the tab collection, so TabCount will be correct.
1605         [Fixes bug #441896]
1606
1607 2008-11-05  Sandy Armstrong  <sanfordarmstrong@gmail.com>
1608
1609         * ListViewItem.cs: Mark ListViewSubItem.UIATextChanged event as
1610         NonSerialized to fix serialization of ListViewItem.
1611
1612 2008-11-04  Mike Gorse  <mgorse@novell.com>
1613
1614         * ListView.cs: Call OnUIAFocusedItemChanged after completing the
1615           focus change, and always call in SetFocusedItem.
1616         * ListBox.cs: Add UIAFocusedItemChanged as in ListView.
1617
1618 2008-11-04  Jonathan Pobst  <monkey@jpobst.com>
1619
1620         * ComboBox.cs: Only call OnDrawItem when we are using an OwnerDraw
1621         mode.  Based on a patch by John Mortlock.
1622         [Fixes bug #436790]
1623
1624 2008-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1625
1626         * ListView.cs: Use the UsingGroups property where needed, instead of
1627         duplicating the check in other places.
1628
1629 2008-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1630
1631         * ListView.cs: When calculating layout, refresh the count of items
1632         belonging to the default item, insteas of doing it only one time. This
1633         was already working fine for icon views, not not for details.
1634         Fixes #438948.
1635
1636 2008-11-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1637
1638         * ListView.cs:
1639         * ListViewItem.cs:
1640         * ThemeWin32Classic.cs: Don't render Tile view if there wasn't a call
1641         to Applicatin.EnableVisualStyles, and use LargeIcon view, as .net
1642         does.
1643         Fixes #437933.
1644
1645 2008-11-03  Sandy Armstrong  <sanfordarmstrong@gmail.com>
1646
1647         * ListView.cs: Wrap call to OnUIAFocusedItemChanged with #if NET_2_0.
1648
1649 2008-11-03  Sandy Armstrong  <sanfordarmstrong@gmail.com>
1650
1651         * ListView.cs: Add internal UIAFocusedItemChanged event.  Fixes bug
1652         #441280, patch by Mike Gorse <mgorse@novell.com>.
1653
1654 2008-11-03  Jonathan Pobst  <monkey@jpobst.com>
1655
1656         * TreeView.cs: When doing ExpandAll, don't scroll to the bottom
1657         if there is no scrollbar.
1658         [Fixes bug #440885]
1659
1660 2008-11-03  Jonathan Pobst  <monkey@jpobst.com>
1661
1662         * ProgressBar.cs, ThemeWin32Classic.cs, ThemeVisualStyles.cs: Commit
1663         patch from Andy Hume that fixes many issues with ProgressBar.
1664         [See bug #440220]
1665
1666 2008-11-03  Jonathan Pobst  <monkey@jpobst.com>
1667
1668         * Form.cs: Don't allow MinimumSize and MaximumSize to conflict.
1669         [Fixes bug #438866]
1670
1671 2008-11-03  Sandy Armstrong  <sanfordarmstrong@gmail.com>
1672
1673         * UpDownBase.cs:
1674         * DomainUpDown.cs:
1675         * NumericUpDown.cs: Internal events added to UpDownBase:
1676         UIAUpButtonClick and UIADownButtonClick.  Patch by Neville Gao
1677         <ngao@novell.com>.
1678
1679 2008-11-03  Sandy Armstrong  <sanfordarmstrong@gmail.com>
1680
1681         * ToolStripLabel.cs: Internal event added: UIAIsLinkChanged.
1682
1683 2008-11-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1684
1685         * ListView.cs:
1686         * ThemeWin32Classic.cs: Don't use groups nor insertion mark in
1687         Application.EnableVisualStyles hasn't been called.
1688         Fixes part of #437933.
1689
1690 2008-10-31  Andreia Gaita  <shana@jitted.com>
1691
1692         * Form.cs (SetVisibleCore): since set_ActiveControl no longer calls focus
1693           if the container is not focused already, we need to specifically set
1694           focus to the first available control, or to the form itself if there
1695           are no controls.
1696
1697 2008-10-31  Andreia Gaita  <shana@jitted.com>
1698
1699         activate message fix: a call to .Show now waits until both WM_SHOWWINDOW and
1700         WM_ACTIVATE have been processed before returning, so it is guaranteed that
1701         once it returns and the form is visible, it is actually on the screen on X11
1702
1703         * ContainerControl.cs: Only send focus to the control if the top container
1704           is already focused. This is so that, when a form is first shown, all
1705           the enter/leave events are done first before any focus stuff comes in.
1706           If a control has no top container, there's an extra check on Control.Focus
1707           to make sure it gets focused in this particular case.
1708
1709         * Control.cs: Force focus if the control is active but did not receive
1710           focus after being set as active.
1711
1712         * MdiClient.cs: Dispose the form when closing
1713
1714         * XplatUIX11.cs: When mapping and unmapping windows, make sure the call
1715           doesn't return until both WM_SHOWWINDOW and WM_ACTIVATE have come in
1716           if the window is a top Form.
1717           Reset all hwnd properties when the window has been destroyed so that
1718           we don't land in any codepaths that might try to do something with it.
1719           Added a bunch of debugging messages. If TRACE is defined, all X calls
1720           are logged through DebugHelper. Set a few missing EntryPoint attributes.
1721
1722 2008-10-29  Mario Carrion <mcarrion@novell.com>
1723
1724         * ListViewItem.cs: Control enabled to support Accessibility:
1725         - Internal events: UIATextChanged, UIASubItemTextChanged.
1726         - Internal event UIATextChanged in ListViewSubItem that triggers
1727         UIASubItemTextChanged.
1728         * ListView.cs: Control enabled to support Accessibility:
1729         - Internal events: UIACheckBoxesChanged, UIAMultiSelectChanged, 
1730         UIAShowGroupsChanged, UIAViewChanged and UIALabelEditChanged.
1731         - Internal event UIACollectionChanged in ColumnHeaderCollection.
1732         - Internal event UIACollectionChanged in ListViewItemCollection.
1733         - Internal properties: UIAHeaderControl, UIAColumns, UIARows, 
1734         UIADefaultListViewGroup, UIAHScrollBar and UIAVScrollBar.
1735         - Internal methods: UIAGetHeaderBounds.
1736
1737 2008-10-25  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1738
1739         * ScrollableControl.cs: Actually fire the 2.0 Scroll event when we get
1740         the event from the respective scrollbars.
1741         Fixes #436709.
1742
1743 2008-10-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1744
1745         * ComboBox.cs: Use the new CanNavigateAutoCompleteList property of the
1746         textbox to know whether any navigation key will be handled or not. If
1747         not, don't pass the message to the textbox, and use it here instead. 
1748         * TextBox.cs: Define a new CanNavigateAutoCompleteList property -which
1749         is more precise- than the previous AutoCompleteMatches one.
1750         This should the keyboard navigation in ComboBox when using auto
1751         complete modes.
1752
1753 2008-10-24  Jonathan Pobst  <monkey@jpobst.com>
1754
1755         * ComboBox.cs: Fix item height calculation based off Font to match .Net.
1756         [Fixes bug #436730]
1757
1758 2008-10-24  Jonathan Pobst  <monkey@jpobst.com>
1759
1760         * ToolStripDropDownItem.cs: Call OnClick instead of base.OnClick so
1761         overridden methods will get called.
1762         * ToolStripItem.cs: Raise Click before MouseUp.
1763         * ToolStripSplitButton.cs: Fix up some bounding rectangles to take
1764         the item's location into account.
1765         [Fixes bug #437683]
1766
1767 2008-10-24  Neville Gao  <nevillegao@gmail.com>
1768
1769         * NumericUpDown.cs: Control enabled to support accessibility.
1770         [Fiexes bug #438135]
1771
1772 2008-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1773
1774         * TextBox.cs: Check that we actually have items no navigate, select
1775         text when pressing enter, as well as handle direction keys only if
1776         mode is different to Suggest or the suggest listbox is visible.
1777
1778 2008-10-23  Andreia Gaita  <shana@jitted.com>
1779
1780         * WebBrowser.cs: Use the new ContentStream property to retrieve
1781           a stream encoded from the document content
1782
1783 2008-10-23  Andreia Gaita  <shana@jitted.com>
1784
1785         * HtmlDocument.cs,
1786           HtmlElement.cs,
1787           HtmlWindow.cs: Fix GetHashcode for null objects
1788
1789 2008-10-22  Andreia Gaita  <shana@jitted.com>
1790
1791         * HtmlDocument.cs,
1792           HtmlElement.cs,
1793           HtmlWindow.cs: Fix equality operators (fixes #428173)
1794
1795 2008-10-21  Jonathan Pobst  <monkey@jpobst.com>
1796
1797         * XplatUIWin32.cs: Apply patch from John Mortlock that ensures
1798         mouse_state gets set during WM_MOUSEMOVE and WM_NCMOUSEMOVE.
1799         [Fixes bug #436772]
1800
1801 2008-10-21  Jonathan Pobst  <monkey@jpobst.com>
1802
1803         * ComboBox.cs: Fire SelectedIndexChanged when the user selects the
1804         same item with the mouse as was already selected.
1805         [Fixes bug #436789]
1806
1807 2008-10-21  Brad Taylor  <brad@getcoded.net>
1808         
1809         * TextControl.cs: Break out code to get the visible range into
1810           GetVisibleLineIndexes to be used in UIA code.
1811         
1812         * Line.cs:
1813         * TextControl.cs:
1814         * TextBoxBase.cs: Add comments indicating that the method or property
1815           is used via reflection from UIA code.
1816
1817 2008-10-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1818
1819         * ListViewItem.cs: Match .net serialization.
1820         Fixes remaining part of #417520.
1821
1822 2008-10-20  Jonathan Pobst  <monkey@jpobst.com>
1823
1824         * ToolStripProfessionalRenderer.cs: Don't paint over a set BackgroundImage.
1825
1826 2008-10-20  Mario Carrion <mcarrion@novell.com>
1827
1828         * ErrorProvider.cs, ToolTip.cs, HelpProvider.cs: UIA internal property 
1829         added: UIAToolTipRectangle.
1830
1831 2008-10-19  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1832
1833         * ListViewItem.cs: When deserializing enumerate over the data, instead
1834         of accessing the data directly. This way we handle much better the
1835         cases were we lack information.
1836         Fixes #417520.
1837
1838 2008-10-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1839
1840         * ListView.cs: When removing an item from a main ListView.Items
1841         collection (and not a ListViewGroupCollection.Items one), remove it
1842         also from the group, as .net does. Patch by Mario Carrion (mario at
1843         novell dot com).
1844         Fixes #436653.
1845
1846 2008-10-19  Andreia Gaita  <avidigal@novell.com>
1847
1848         * Form.cs: Forms that get closed without a handle being created are
1849         disposed in 2.0. Fixes failing FormTest.FormClose and
1850         FormTest.FormClose2 on windows.
1851
1852 2008-10-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1853
1854         * ListView.cs: If both scrollbars are visible, the vertical one
1855         shouldn't extend too far down.
1856         Fixes #435771.
1857
1858 2008-10-17  Jonathan Pobst  <monkey@jpobst.com>
1859
1860         * DataGridView.cs: Add the ability to resize columns and rows with
1861         the mouse.  Also support double-clicking to autoresize.
1862         * DataGridViewColumn.cs: Invalidate the grid if a column's width changes.
1863         * DataGridViewRow.cs: Invalidate the grid if a row's height changes.
1864         * DataGridViewTextBoxCell.cs: Add 1 to preferred width so ellipsis
1865         isn't shown on autoresize.
1866         [Fixes bug #420193]
1867
1868 2008-10-17  Mario Carrion <mcarrion@novell.com>
1869
1870         * ComboBox.cs: Remove UIAListbox.
1871
1872 2008-10-17  Mario Carrion <mcarrion@novell.com>
1873
1874         * ComboBox.cs, ListBox.cs: Using added/removed item in 
1875           OnUIACollectionChangedEvent instead of index.
1876
1877 2008-10-17  Jonathan Pobst  <monkey@jpobst.com>
1878
1879         * ComboBox.cs: When we are sorting the items, if the item's type
1880         doesn't support IComparer, use a default one that compares based
1881         off the item's visible text.
1882         [Fixes bug #436328]
1883
1884 2008-10-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1885
1886         * ColumnHeader.cs: Invalidate ListView.header_control when setting
1887         ImageIndex/ImageKey.
1888         * ThemeWin32Classic.cs: When drawing the column header, draw a image
1889         for the column if available, and make the required adjustments to the
1890         text location.
1891         Fixes #435105.
1892
1893 2008-10-17  Neville Gao  <nevillegao@gmail.com>
1894
1895         * StatusBarPanel.cs: Control enabled to support accessibility.
1896         [Fixes bug #435988]
1897
1898 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
1899
1900         * DataGridView.cs: When a user begins an edit in the 'new row',
1901         make that a real row, and add a new 'new row'.  If the user
1902         cancels the edit, remove the new 'new row' and reset everything.
1903         Also, ensure UserAddedRow and UserRemovedRow events are raised.
1904         [Fixes bug #430954]
1905
1906 2008-10-16  Ivan N. Zlatev  <contact@i-nz.net>
1907
1908         * TableLayoutSettings.cs: Fix NREs when deserializing and 
1909         panel is not yet set.
1910         [Fixes bug #436199]
1911
1912 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
1913
1914         * DataGridView.cs: Invalidate after deleting a row.
1915
1916 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
1917
1918         * DataGridView.cs: Handle Enter and Escape keys.
1919           - Move call to EndEdit to MoveCurrentCell.
1920           - Remove call to EndEdit from navigation key routines.
1921           - Fire CellLeave and CellEnter.
1922
1923 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
1924
1925         * DataGridViewCell.cs: Some fixes to the new cell border
1926         painting code.
1927
1928 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
1929
1930         * ThemeEngine.cs: Enable visualstyles rendering by default
1931         (on platforms that support it).
1932
1933 2008-10-15  Ivan N. Zlatev  <contact@i-nz.net>
1934
1935         * XplatUIX11.cs, XplatUICarbon.cs: Do not Timer.Tick before 
1936         MainForm.OnLoad has completed unless DoEvents is forced.
1937         [Fixes bug #412536]
1938
1939 2008-10-15  Jonathan Pobst  <monkey@jpobst.com>
1940
1941         * ToolTip.cs: Ensure that Timer.Internal cannot be set to 0.
1942
1943 2008-10-15  Jonathan Pobst  <monkey@jpobst.com>
1944
1945         * Control.cs: Make our implementation of DrawToBitmap better 
1946         match WmPaint.  [Fixes bug #435579]
1947
1948 2008-10-14  Andreia Gaita  <avidigal@novell.com>
1949
1950         * WebBrowser.cs: Use DocumentElement as the document's root for the
1951         whole content. Should fix DocumentText and DocumentStream problems.
1952
1953 2008-10-14  Jonathan Pobst  <monkey@jpobst.com>
1954
1955         * DataGridViewColumnCollection.cs: Remove calls to OnColumnAddedInternal,
1956         these will get called in DGV.OnCollectionChanged.  Make sure 
1957         OnCollectionChanged always gets called.
1958         * DataGridView.cs: Make a OnColumnRemovedInternal that removes the cells
1959         from every row.  Call this in OnCollectionChanged.
1960         [Fixes bug #433669]
1961
1962 2008-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1963
1964         * ComboBox.cs: WM_KEYDOWN and WM_KEYUP messages should be sent to the
1965         textbox if auto complete is used, since we need to navigate over it.
1966         And in this case don't pass this messages to the base impl. Also hide
1967         the auto complete list box when displaying the drop down listbox.
1968         * TextBox.cs: new internal members to expose some of the auto complete
1969         functionality to combobox.
1970
1971 2008-10-13  Ivan N. Zlatev  <contact@i-nz.net>
1972
1973         * XplatUIX11.cs, XplatUICarbon.cs, Form.cs: Do not Timer.Tick before 
1974         MainForm.OnLoad has completed.
1975         [Fixes bug #412536]
1976
1977 2008-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1978
1979         * TextBox.cs: Apply an old-approved patch that adds autocomplete's
1980         Append support to this controls. We need it to apply new patches.
1981
1982 2008-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1983
1984         * Control.cs: When updating z order in child controls, send to back
1985         the implicit controls. Also, do it explicitly, instead of making
1986         GetAllControls return the implicit controls in a specific order, and
1987         thus avoid depending on that, which could change in the future.
1988         Fixes #434304.
1989
1990 2008-10-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1991
1992         * X11Dnd.cs: Try to call Application.DoEvents before returning in a
1993         call to StartDrag, since we must fire DragDrop/DragLeave *before*
1994         that, as .net does - instead of firing DragDrop/DragLeave *after* the
1995         call to Control.DoDragDrop has completed. This is needed since at the
1996         point of returning, we have sent related dnd ClientMessages, but we
1997         need to wait for them to fire the wmf respective ones.
1998         Fixes #325076.
1999
2000 2008-10-09  Everaldo Canuto  <ecanuto@novell.com>
2001
2002         * LinkLabel.cs: Recreate link pieces when change Padding.
2003
2004 2008-10-09  Everaldo Canuto  <ecanuto@novell.com>
2005
2006         * LinkLabel.cs: Take Padding into account when recreate link pieces.
2007         [Fixes bug #412530]
2008
2009 2008-10-08  Everaldo Canuto  <ecanuto@novell.com>
2010
2011         * Control.cs: Implement internal property PaddingClientRectangle, it will be
2012         useful for drawing controls that must take care about Padding property.
2013
2014 2008-10-08  Jonathan Pobst  <monkey@jpobst.com>
2015
2016         * BindingSource.cs: Make item_type internal so we can access it in DGV.
2017         * DataGridView.cs: Add support for autogenerating columns from a
2018         BindingSource.
2019
2020 2008-10-07  Jonathan Pobst  <monkey@jpobst.com>
2021
2022         * DataGridView.cs: Comment out an exception that is getting thrown
2023         too often currently.
2024
2025 2008-10-07  Jonathan Pobst  <monkey@jpobst.com>
2026
2027         * DataGridView.cs: Always rebind to the datasource, as things may
2028         have changed in it that we aren't capturing yet.
2029
2030 2008-10-07  Jonathan Pobst  <monkey@jpobst.com>
2031
2032         * DataGridViewTextBoxCell.cs: Don't default to VerticalCenter font
2033         drawing mode.  If we are top aligned, give ourselves some top padding.
2034
2035 2008-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2036
2037         * X11Dnd.cs: When firing the default dnd enter/leave events, fire the
2038         events on the control under the mouse pointer, instead of firing them
2039         on the window generating the dnd operation. To achieve this re-use the
2040         code used to get the window under the pointer when getting MouseMove
2041         events.
2042         Fixes #381876.
2043
2044 2008-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2045
2046         * X11Dnd.cs: Don't check that that the window sending the dnd events
2047         is the owner of the selection. Although Gtk+ sets it that way, it's
2048         not a requirement of the XDnd protocol, and Qt doesn't seem to do it.
2049         So, just as Gtk+ does, we set our window sending the dnd events as the
2050         owner of the selection, but don't check it when receiving them. This
2051         should fix interoperability with Qt/Kde.
2052         Fixes #324251.
2053
2054 2008-10-06  Jonathan Pobst  <monkey@jpobst.com>
2055
2056         * DataGridView.cs: Make sure we take the vertical scrollbar into
2057         account when autosizing columns.
2058
2059 2008-10-06  Jonathan Pobst  <monkey@jpobst.com>
2060
2061         * DataGridView.cs: Handle sorting datetimes.
2062
2063 2008-10-04  Ivan N. Zlatev  <contact@i-nz.net>
2064
2065         * ButtonBase.cs, Control.cs, Label.cs, PictureBox.cs, TabControl.cs, 
2066         TextBoxBase.cs, ToolBar.cs, TrackBar.cs, TreeView.cs: Cleanup 
2067         compilation warnings.
2068
2069 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
2070
2071         * RTF.cs, Application.cs, BindingContext.cs, BindingSource.cs, 
2072         ContextMenuStrip.cs, Control.cs, Hwnd.cs, Line.cs, MaskedTextBox.cs, 
2073         ProgressBar.cs, SaveFileDialog.cs, TextControl.cs, Theme.cs, 
2074         ToolBar.cs, ToolStripItemCollection.cs, TrackBar.cs: Cleanup 
2075         compilation warnings.
2076
2077 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
2078
2079         * DataGridView.cs, DataGridViewCell.cs, 
2080         DataGridViewCellValidatingEventArgs.cs, 
2081         DataGridViewComboBoxEditingControl.cs, DataGridViewHeaderCell.cs, 
2082         DataGridViewRow.cs, DataGridViewRowHeaderCell.cs, 
2083         DataGridViewTextBoxEditingControl.cs: Cleanup compilation warnings.
2084
2085 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
2086
2087         * HtmlElementEventArgs.cs, HtmlWindowCollection.cs: 
2088         Cleanup compilation warnings.
2089
2090 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
2091
2092         * XplatUIWin32.cs: Cleanup compilation warnings.
2093
2094 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
2095
2096         * PropertyGrid.cs: Cleanup compilation warnings.
2097
2098 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
2099
2100         * DataGridViewRow.cs: Only clear the row background if we
2101         are going to paint a new background.
2102
2103 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
2104
2105         * DataGridViewCell.cs, DataGridViewColumnHeaderCell.cs,
2106         DataGridViewRowHeaderCell.cs: Remove PaintPartBorder and
2107         use PaintBorder instead.        
2108
2109 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
2110
2111         * DataGridView.cs: When CellBorderStyle is set, update the
2112         AdvancedCellBorderStyle to match.
2113
2114 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
2115
2116         * DataGridViewCell.cs: Add helper methods to convert Alignment
2117         to TextFormatFlags and align rectangles.
2118         * DataGridViewTextBoxCell.cs: Use Alignment when painting text.
2119         * DataGridViewImageCell.cs: Use Alignment when painting the image.
2120
2121 2008-10-02  Ivan N. Zlatev  <contact@i-nz.net>
2122
2123         * ToolTip.cs: Display tooltips only for controls on the active form.
2124         [Fixes bug #428115]
2125
2126 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
2127
2128         * DataGridView.cs: Make OnCellValueNeeded internal.
2129         * DataGridViewCell.cs: Raise the CellValueNeeded event so the
2130         user can supply their own value if they choose.
2131
2132 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
2133
2134         * DataGridViewColumnHeaderCell.cs: Create a new style object
2135         so the DefaultCellStyle doesn't get changed.
2136
2137 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
2138
2139         * ToolStripItem.cs: Check to make sure the owner is actually
2140         changing in InternalOwner before doing any work.  Fixes some
2141         failing tests.
2142
2143 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2144
2145         * DataGridViewColumnHeaderCell.cs: Correctly calculate style.
2146         * DataGridView.cs: Use a column header's inherited style instead
2147         of just using the default.
2148
2149 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2150
2151         * SplitContainer.cs: Raise SplitterMoved when the splitter is
2152         moved through code.
2153
2154 2008-10-01  Mario Carrion <mcarrion@novell.com>
2155
2156         * ScrollBar.cs: Internal property added: UIAThumbPosition.
2157
2158 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2159
2160         * ToolStripOverflowButton.cs: Use InternalOwner instead of Owner.
2161
2162 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2163
2164         * ToolStripItem.cs: When the user sets Owner, we need to remove
2165         it from its previous owner and then add it to the new owner's
2166         item collection.  Also, create InternalOwner, so we can set the owner
2167         that doesn't do this new stuff.
2168         * ToolStripItemCollection.cs: Use InternalOwner instead of Owner.
2169
2170 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2171
2172         * ToolStripItem.cs: When our parent changes, recalculate our text
2173         size, since we may be getting our Font from our parent.  When our
2174         owner's Font changes, recalculate ourselves as we may be using
2175         that font.
2176
2177 2008-10-01  Everaldo Canuto  <ecanuto@novell.com>
2178
2179         * MenuAPI.cs: Select the first option of a popup when opening the popup via
2180         return key. [Fixes bug #413792].
2181
2182 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2183
2184         * ToolStripItem.cs: Make Font, BackColor, and ForeColor be
2185         ambient properties.  (Get their value from their parents if
2186         values haven't been set.)
2187
2188 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2189
2190         * ToolStripSystemRenderer.cs: Call overridden methods' bases
2191         after our logic, so users can do painting by handling the events.
2192         Currently, we draw over any user painting.
2193
2194 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2195
2196         * ToolStripProfessionalRenderer.cs: Call overridden methods' bases
2197         after our logic, so users can do painting by handling the events.
2198         Currently, we draw over any user painting.
2199
2200 2008-09-30  Everaldo Canuto  <ecanuto@novell.com>
2201
2202         * MenuAPI.cs: Prevent NRE when deactivate menu. Fixes #413636.
2203
2204 2008-09-30  Jonathan Pobst  <monkey@jpobst.com>
2205
2206         * TreeNode.cs, TreeView.cs: Move logic that determines the node
2207         image to draw to TreeNode.  Give Index/Keys put on the node
2208         precedence over the global one for the TreeView.
2209
2210 2008-09-30  Jonathan Pobst  <monkey@jpobst.com>
2211
2212         * TreeNode.cs: Setting ImageIndex or ImageKey should reset the other.
2213
2214 2008-09-29  Mario Carrion <mcarrion@novell.com>
2215
2216         * ListBox.cs: Index fixed.
2217
2218 2008-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2219
2220         * TabControl.cs: When expanding the tab -because it's selected now-,
2221         using Right alignment, instead of adding some selected delta value to
2222         the X origin, substract it, so it gets a location adjacent to the panel, 
2223         instead of be more separated.
2224         Fixes #409170.
2225
2226 2008-09-29  Jonathan Pobst  <monkey@jpobst.com>
2227
2228         * MessageBox.cs: Use SystemIcons for graphics instead of keeping our
2229         own copies of them.
2230
2231 2008-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2232
2233         * X11Dnd.cs: source and related fields should be set to IntPtr.Zero,
2234         as well as the other static fields, to avoid using their previous
2235         values my mistake when handling the dnd events. This should avoid
2236         handling any status event after the drop has been finalized/cancelled.
2237
2238 2008-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2239
2240         * X11Dnd.cs: We have to send a dnd enter event as soon as we start the
2241         operation, instead of waiting until we get any movement - this will
2242         help us to have the data available in case no movement was detected
2243         and _still_ we have to fire DragEnter and DragLeave/DragDrop events.
2244         Finally add a windows.forms-only fallback to fire the mentioned events
2245         if no movement at all was detected, just like .net does.
2246         Fixes #381876.
2247
2248 2008-09-27  Jonathan Pobst  <monkey@jpobst.com>
2249
2250         * ThemeWin32Classic.cs: When drawing a status bar panel, don't
2251         return early if the text is empty because the icon doesn't get
2252         drawn then.  [Fixes bug #428113]
2253
2254 2008-09-25  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2255
2256         * FileDialog.cs: Implement basic support for sorting by columns in
2257         Details view. Patch by Eric Petit.
2258         Fixes #428006.
2259
2260 2008-09-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2261
2262         * ThemeWin32Classis.cs: When drawing gridlines take into account the
2263         case where ListView.ItemSize hasn't been computed, and provide a
2264         fallback as well. This prevents a division by 0.
2265
2266 2008-09-24  Jonathan Pobst  <monkey@jpobst.com>
2267
2268         * ThemeVisualStyles.cs: Use ClientRectangle instead of Bounds to
2269         correctly draw tooltip backgrounds.
2270
2271 2008-09-24  Jonathan Pobst  <monkey@jpobst.com>
2272
2273         * ImageList.cs: Change CopyTo implementation to ensure clones are
2274         created of our images.
2275         [Fixes bug #409169]
2276
2277 2008-09-24  Jonathan Pobst  <monkey@jpobst.com>
2278
2279         * Control.cs: When setting fonts, we need to ensure we change our
2280         reference to the new font object, even if it represents the same
2281         font as before.  If we don't, the original font can get disposed
2282         and we will still try to use it.
2283         [Fixes bug #386450]
2284
2285 2008-09-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2286
2287         * FileDialog.cs: Take into account Tile view when selecting the view
2288         (2.0 profile).
2289
2290 2008-09-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2291
2292         * ThemeWin32Classic.cs: When drawing gridlines for ListView don't use
2293         the item bounds, since we can't iterate over them in virtual mode.
2294         Also fix wrong calculation of the gridlines when using scrolling.
2295         Fixes #400390.
2296
2297 2008-09-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2298
2299         * XplatUIX11.cs: When handling EnterNotify events, take into account
2300         both the public and implicit controls when trying to detect the
2301         grab/ungrab process. This should fix ListView selection in Details
2302         view.
2303
2304 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
2305
2306         * TreeView.cs: Redraw the whole node area when the selected node changes.
2307         Things like state images were not getting redrawn because the invalid
2308         rectangle was too small.
2309         [Fixes bug #428211]
2310
2311 2008-09-23  Mario Carrion  <mcarrion@novell.com>
2312
2313         * ListBox.cs: UIA Selection Pattern fully supported in ListBox control.
2314         [Fixes bug #428993]
2315
2316 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
2317
2318         * Form.cs: Do not set the Form's icon in the backend if showicon = false.
2319         [Fixes bug #428114]
2320
2321 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
2322
2323         * ThemeWin32Classic.cs: Allow tooltips to be multiline.
2324         [Fixes bug #427884]
2325
2326 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
2327
2328         * StatusBar.cs: Add tooltip support.
2329         [Fixes bug #428113]
2330
2331 2008-09-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2332
2333         * ThemeWin32Classic.cs: Use StringAlignment.Center for the vertical
2334         alignments of sub items in Details view. Patch by John Mortlock (johnm at 
2335         hlaustralia.com.au).
2336         Fixes #425360.
2337
2338 2008-09-23  Neville Gao  <nevillegao@gmail.com>
2339
2340         * StatusBar.cs: Add UIA event in AddInternal () to support accessibility.
2341         [Fixes bug #419079]
2342
2343 2008-09-22  Jonathan Pobst  <monkey@jpobst.com>
2344
2345         * TextBoxBase.cs: Set Text to "" instead of null in Clear().
2346         [Fixes bug #428107]
2347
2348 2008-09-22  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2349
2350         * ListView.cs: Don't do anything when EnsureVisible is called inside a
2351         BeginUpdate/EndUpdate block.
2352         Fixes #425049.
2353
2354 2008-09-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2355
2356         * ListViewItem.cs: The semantics for the public .ctor of
2357         ListViewSubItemCollection need us to already have a Text value for the
2358         item, which in our implementation have as available *after* adding the
2359         first sub item. So create an internal .ctor that satisfies our needs
2360         and let the public .ctor have the same semantics as .net.
2361         Fixes #427561.
2362
2363 2008-09-19  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2364
2365         * ListControl.cs: Changes in Formatting related values should call
2366         RefreshItems, as .net does.
2367         * ComboBox.cs:
2368         * ListBox.cs: In the respective overrides of RefreshItems calculate
2369         layout as well as refreshing - again, this is what .net does.
2370         Fixes #426168.
2371
2372 2008-09-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2373
2374         * ListBox.cs: In UpdateTopItem, don' call to XplatUI.ScrollWindow,
2375         since we are already doing that when we change the value of the
2376         scrollbar or force the call to ScrollWindow in the same method. This
2377         way we don't cause a Invalidate call for all the listbox bounds for
2378         methods calling UpdateTopItem with an already updated top item. This
2379         was happening specially calling EnsureVisible with already visible
2380         items.
2381
2382 2008-09-18  Mike Gorse <mgorse@novell.com>
2383
2384         * Application.cs, IKeyFilter.cs, X11Keyboard.cs, XplatUI.cs,
2385           XplatUIStructs.cs: Added KeyFilter
2386         [Fixes bug #427039]
2387
2388 2008-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2389
2390         * RelatedPropertyManager.cs: The properties returned by
2391         GetItemProperties should be that ones of the *actual* object returned
2392         by the property, not the property type - this is very special when the
2393         property exposes a type, but the returned object actually is a child
2394         class and implements more functionality and properties.
2395
2396 2008-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2397
2398         * Binding.cs: Don't look for the property in the data source if the
2399         passed string is empty.
2400
2401 2008-09-18  Ivan N. Zlatev  <contact@i-nz.net>
2402
2403         * XplatUIX11.cs: Comment out _NET_WM_WINDOW_TYPE_DIALOG in order to 
2404         fix unused variable warnings.
2405
2406 2008-09-18  Ivan N. Zlatev  <contact@i-nz.net>
2407
2408         * XplatUIX11.cs: Send WM_HELP when F1 is pressed.
2409         [Fixes bug #427073]
2410
2411 2008-09-18  Ivan N. Zlatev  <contact@i-nz.net>
2412
2413         * XplatUIX11.cs: 
2414          - Do not set _NET_WM_WINDOW_TYPE_DIALOG for modal forms, because this 
2415          leads to the window manager overriding our border style and zorder. 
2416          - Allow the activation of non-modal forms, which are children of a 
2417          modal form.
2418         [Fixes bug #423417]
2419
2420 2008-09-17  Ivan N. Zlatev  <contact@i-nz.net>
2421
2422         * XplatUIX11.cs, X11Structs.cs: For mapped windows SetTopMost should 
2423         ask the window manager to do the work instead of changing the property 
2424         directly.
2425         [Fixes bug #423417]
2426
2427 2008-09-17  Everaldo Canuto  <ecanuto@novell.com>
2428
2429         * CurrencyManager.cs: Check for positon before call ChangeRecordState in
2430         AddNew to fix some navigation for empty datasets. [Fixes #323053]
2431
2432 2008-09-17  Everaldo Canuto  <ecanuto@novell.com>
2433
2434         * FileDialog.cs: Remove OnPaint method on PopupButtonPanel and set 
2435         InternalBorderStyle to BorderStyle.Fixed3D. It is the best way to get 3d
2436         border and fixes some drawing issues when resize form.
2437
2438 2008-09-17  Everaldo Canuto  <ecanuto@novell.com>
2439
2440         * FileDialog.cs: Lots of layout fixes to mimic Win32. [Fixes #408752]
2441         
2442         * ThemeWin32Classic.cs: We don't need to reduce button size when it is
2443         AcceptButton.
2444
2445 2008-09-17  Ivan N. Zlatev  <contact@i-nz.net>
2446
2447         * TextBoxBase.cs: For standard textbox the scrollbars are always 
2448         visible if Multiline is true.
2449         [Fixes bug #426896]
2450
2451 2008-05-12  Everaldo Canuto  <ecanuto@novell.com>
2452
2453         * DataGridTextBoxColumn.cs: Uncomment code accidentally commited in last
2454         patch.
2455         
2456 2008-05-12  Everaldo Canuto  <ecanuto@novell.com>
2457
2458         [Fixes most od DBNull and HeadersVisible problems]
2459         
2460         * DataGrid.cs:
2461         - ShowingColumnHeaders removed because we dont need it, ColumnHeadersVisible
2462         returns the value that we need.
2463         - Fixed FromPixelToColumn method that return zero for first     column and for
2464         row header cell, now it returns -1 for row header cell.
2465         - Fixed HitTest to check row header cell in column header area, it now
2466         returns HitTestType.None. [Fixes #322864]
2467         - Fixed the calculation of visible columns in UpdateVisibleColumn, now it
2468         checks for RowHeadersVisible and other things.
2469         - If an exception occurs when setting CurrentCell and user type 'yes' in
2470         message dialog, invalidade current and new cell and set setting_current_cell
2471         to false to prevent future errors. [Partially fixes #323050]
2472
2473         * DataGridColumnStyle.cs: Don't call EndEdit after set property_descriptor
2474         value (SetColumnValueAtRow), it must be done by grid to properly show 
2475         messages. [Fixes #323050]
2476
2477         * ThemeWin32Classic.cs: Lots of fixes in DataGridPaintColumnHeaders to
2478         better draw column and row header. Also dont draw anything when column
2479         headers is not visible.
2480
2481 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
2482
2483         * ThemeWin32Classic.cs: Hook ListViewItems into the ShowFocusCues
2484         logic.
2485
2486 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
2487
2488         * TreeView.cs: Don't start editing a node on right click, only
2489         left click.
2490
2491 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
2492
2493         * NativeWindow.cs: Reenable the ThreadExceptionDialog I accidentally
2494         disabled over a year ago.
2495         * Form.cs: Wrap calling Load in a try/catch because it can happen
2496         before the catch-all one in NativeWindow.
2497         [Fixes bug #425414]
2498
2499 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
2500
2501         * ToolStripDropDownMenu.cs: Calculate the connected area better
2502         to take into account when the drop down is not directly under the
2503         owner item.
2504         * ToolStripProfessionalRenderer.cs: Draw the whole unconnected area.
2505
2506 2008-09-16  Mario Carrion <mcarrion@novell.com>
2507
2508         * ScrollBar.cs: New event added: UIAValueChanged, generated when
2509           LargeChange, SmallChange, Maximum or Minimum values are changed.
2510         [Fixes bug #426464]
2511
2512 2008-09-16  Mario Carrion <mcarrion@novell.com>
2513
2514         * ErrorProvider.cs: Component enabled to support accessibility.
2515         * Application.cs: Updated to Initialize UIA in ErrorProvider.
2516         [Fixes bug #426459]
2517
2518 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
2519
2520         * TextBoxBase.cs: Flag has_been_focused when SelectionStart is set
2521         so we don't highlight on first focus.
2522         [Fixes bug #360869]
2523
2524 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
2525
2526         * TextControl.cs: Correctly calculate the height of the area we 
2527         need to invalidate when we have started scrolling and viewport_y
2528         is used.  [Fixes bug #387608]
2529
2530 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
2531
2532         * TextControl.cs: When getting the SelectedText, don't add in
2533         NewLine characters, as they are already contained in the lines.
2534         [Fixes bug #388115]
2535
2536 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
2537
2538         * TextBoxBase.cs: Replace the buggy Lines setter with one that
2539         simply concats the lines and send it to the Text setter.
2540         [Fixes issue #2 and #3 of 388115]
2541
2542 2008-09-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2543
2544         * Binding.cs: The default value of DataSourceNullValue should be
2545         Convert.DBNull actually. Also, the NullValue should only be used *if*
2546         itself is not null, and use the null/Convert.DBNull value instead.
2547
2548 2008-09-15  Jonathan Pobst  <monkey@jpobst.com>
2549
2550         * TextControl.cs: Add a method to convert a string newline to the
2551         newline enum.
2552         * TextBoxBase.cs: When the user hits enter, insert a native newline.
2553         [Fixes part 1 of bug #388115]
2554
2555 2008-09-15  Mario Carrion <mcarrion@novell.com>
2556
2557         * ToolTip.cs: UnPopup event set to internal to match public API.
2558
2559 2008-09-15  Jonathan Pobst  <monkey@jpobst.com>
2560
2561         * TextBoxBase.cs: If the user is using Ctrl-Tab to move focus, we
2562         have to remove the Ctrl in order for the focus moving code to kick in.
2563         [Fixes bug #426170]
2564
2565 2008-09-15  Jonathan Pobst  <monkey@jpobst.com>
2566
2567         * CheckedListBox.cs: Return the real item index from Add.  It may not be
2568         the last item if the list is sorted.  The user can change the NewValue in
2569         the ItemCheck event, we need to use that value if so.
2570         * ListBox.cs: Return the real item index from a sorted Add.
2571         [Fixes bug #426166]
2572
2573 2008-09-15  Ivan N. Zlatev  <contact@i-nz.net>
2574
2575         * MimeIcon.cs: Add null checks in the GnomeHandler, because it might 
2576         happen that the icons from the theme is missing or the particular size 
2577         unavailable.
2578         [Fixes bug #424981]
2579
2580 2008-09-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2581
2582         * Binding.cs: When assigning null or DBNull depending on value/ref type,
2583         use IsValueType instead to get the precise desired value.
2584         Fixes #424276.
2585
2586 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
2587
2588         * TreeNodeCollection.cs: When adding a new node to an opened node,
2589         we have to invalidate everything below the parent node because
2590         every node scoots down and we have to repaint them.
2591         [Fixes bug #411386]
2592
2593 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
2594
2595         * ThemeWin32Classic.cs: Take CheckBox and RadioButton's CheckAlign
2596         property into account when drawing.
2597         [Fixes bug #416064]
2598
2599 2008-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2600
2601         * ListBox.cs: When calling Items.Clear(), call
2602         SelectedIndexCollection.ClearCore instead of normal Clear method, to
2603         not fire any Selected*Changed event - this is done to match .net and
2604         don't have invalid values when changing the DataSourceProperty.
2605         Fixes #424273.
2606
2607 2008-09-12  Mario Carrion  <mcarrion@novell.com>
2608
2609         * HelpProvider.cs: Control enabled to support accessibility.
2610         * Application.cs: Updated to Initialize UIA in HelpProvider.
2611         [Fixes bug #425988]
2612
2613 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
2614
2615         * Form.cs: When we are showing a dialog box, if its owner is TopMost,
2616         make the dialog TopMost as well.
2617         [Fixes bug #425984]
2618
2619 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
2620
2621         * Win32DnD.cs, XplatUIWin32.cs: Applied patch from Andy Hume that handles
2622         clipboard data better.
2623         [Fixes bug #414446]
2624
2625 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
2626
2627         * TextBoxBase.cs: Applied patch from John Mortlock that ensures
2628         TextChanged and SelectionChanged events fire in the same order as .Net.
2629         [Fixes bug #425725]
2630
2631 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
2632
2633         * DataGridView.cs: When sorting a column, if it only contains numbers,
2634         do a numeric sort instead of a string sort.
2635         [Fixes bug #425849]
2636
2637 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
2638
2639         * TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Guard
2640         against NRE's when the settings have a null panel.
2641         * TableLayoutPanel.cs: When setting the TableLayoutSettings, ensure
2642         the panel gets set.
2643         [Fixes bug #425647]
2644
2645 2008-09-11  Mario Carrion  <mcarrion@novell.com>
2646
2647         * ToolTip.cs: Control enabled to support accessibility.
2648         * Application.cs: Updated to Initialize UIA in ToolTip.
2649         [Fixes bug #425277]
2650
2651 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
2652
2653         * Control.cs: Make the custom Enumerator internal to fix build.
2654
2655 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
2656
2657         * DataGridViewCheckBoxCell.cs: If our content is clicked and we aren't
2658         already in edit mode, begin edit mode.  Generally edit mode isn't
2659         started until the second click, but CheckBoxes are special.
2660
2661 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
2662
2663         * ErrorProvider.cs: Never try to add our icons to ContainerControl,
2664         since that can be set to anything.  Always add them to the Control's
2665         parent.  [Fixes bug #416058]
2666
2667 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
2668
2669         * ListView.cs: Use a custom enumerator for ListViewItemCollection
2670         so items can be deleted in a foreach.
2671         [Fixes bug #425342]
2672
2673 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
2674
2675         * DataGridViewRow.cs: Better implementation of GetPreferredHeight.
2676         Store the user set explicit height so that the row can be AutoSized
2677         and then when AutoSize is turned off, it can get its original size back.
2678         * DataGridView.cs: Use the Row's GetPreferredHeight instead of 
2679         duplicating the logic.  When setting AutoSizeRowsMode to None, reset
2680         rows' heights back to their explicit values.
2681         [Fixes bug #415780]
2682
2683 2008-09-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2684
2685         * DateTimePicker.cs: When getting focus, select the checkbox if we are
2686         already showing it. Also, don't change its value when pressing space
2687         if the checkbox is not visible (ShowCheckBox as false). Finally, the
2688         checkbox should remain selected as long as Checked is false, and the
2689         other parts are disabled.
2690         Fixes #424267.
2691         
2692 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
2693
2694         * MessageBox.cs: Handle shortcut keys to dialog buttons.
2695         [Fixes bug #425425]
2696
2697 2008-09-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2698
2699         * Binding.cs: When the value retrieved from the control property is
2700         null, don't return Convert.DBNull for Nullable instances, since they
2701         can *actually* get a null value.
2702         Fixes #424265.
2703
2704 2008-09-10  Jonathan Pobst  <monkey@jpobst.com>
2705
2706         * Control.cs: Add an internal field to force doublebuffering regardless
2707         of what the public mechanisms are set to.  This is because MS's native
2708         controls are doublebuffered even though their .Net bits are set to false.
2709         * ProgressBar.cs: Set force_double_buffer to true.
2710         [Fixes bug #406595]
2711
2712 2008-09-10  Jonathan Pobst  <monkey@jpobst.com>
2713
2714         * DataGridViewCheckBoxColumn.cs: Use the threestate constructor for
2715         the cell template.
2716         * DataGridViewCheckBoxCell.cs: Add proper support for threestate.
2717         * DataGridViewCell.cs: Implement GetEditedFormattedValue for types
2718         without EditingControls, paint background selection for types without
2719         EditingControls, reset the EditingCellValueChanged flag when the
2720         cell's value is committed.
2721         * DataGridView.cs: Make BeginEdit and EndEdit work with cells that don't
2722         have EditingControls, remove a double call to a cell's OnContentClickInternal,
2723         don't do cell changing logic in OnMouseDown if the cell didn't change.
2724         [Fixes bug #420351]
2725
2726 2008-09-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2727
2728         * DateTimePicker.cs: Fix the edition of am/pm specifier.
2729
2730 2008-09-09  Jonathan Pobst  <monkey@jpobst.com>
2731
2732         * TextControl.cs: Add "&" to the list of valid characters in a URL.
2733
2734 2008-09-09  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2735
2736         * DateTimePicker.cs: Before incrementing or decrementing any part in
2737         the textbox, end any current edit. Also when ending the current edit
2738         use the editing_part_index field instead of the current selected
2739         value, since they can be out of synch, and we really need to work on
2740         the *real* current edit part. Finally when PartData.Selected changes,
2741         always try to end any ongoing edit.
2742         This should fix some small errors handling mouse navigation and
2743         increase/decrease operations.
2744
2745 2008-09-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2746
2747         * DateTimePicker.cs: 'hh' and 'HH' formats (12 and 24 hour formats
2748         respectively) should handled different, since the 12 hours format
2749         needs the value typed by the user to be adjusted depending on the
2750         a.m/p.m value, so it is preserved, and only changed when the value
2751         reaches the 12 value (when it changes from a.m to p.m).
2752         Fixes part of #416555.
2753
2754 2008-09-08  Jonathan Pobst  <monkey@jpobst.com>
2755
2756         * ToolStrip.cs: Ensure MouseDown gets called for MenuStrip items.
2757         * ToolStripDropDownItem.cs: Don't fire events and such again if
2758         ShowDropDown is called on an already dropped down item.
2759         * ToolStripMenuItem.cs: Call ShowDropDown even if there aren't any
2760         subitems, the user may add some in the DropDownOpening event.
2761         [Fixes bug #417877]
2762
2763 2008-09-08  Jonathan Pobst  <monkey@jpobst.com>
2764
2765         * ComboBox.cs: Fix IOORE when setting SelectedItem to null.
2766         [Fixes bug #424270]
2767
2768 2008-09-08  Jonathan Pobst  <monkey@jpobst.com>
2769
2770         * MdiClient.cs: When looking for menustrips on a child form to merge,
2771         look inside ToolStripContainers.
2772         [Fixes bug #424264]
2773
2774 2008-09-08  Ivan N. Zlatev  <contact@i-nz.net>
2775
2776         * ErrorProvider.cs: Unbreak my previous commit.
2777
2778 2008-09-08  Ivan N. Zlatev  <contact@i-nz.net>
2779
2780         * ErrorProvider.cs: Icon should always be 16x16.
2781         [Fixes bug #424380]
2782
2783 2008-09-07  Ivan N. Zlatev  <contact@i-nz.net>
2784
2785         * GridEntry.cs: Invalidate the child items cache when the property 
2786         value changes.
2787
2788 2008-09-07  Ivan N. Zlatev  <contact@i-nz.net>
2789
2790         * GridEntry.cs, PropertyGridView.cs: 
2791            - Update the ReadOnly detection and rendering to finally hopefully 
2792            match the one of MSFT.
2793            - Niceify and move the debug CWLS.
2794         [Fixes bug #409028]
2795
2796 2008-09-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2797
2798         * ListView.cs: Don't call Invalidate at all from SetItemLocation,
2799         since we are already calling Invalidate for the entire control when
2800         needed - and call Redraw() when size changes, since we need to paint
2801         there by ourselved and not anymore from the mentioned method. 
2802         This should improve the layout process. Also clean some not needed calls 
2803         here and there.
2804
2805 2008-09-05  Jonathan Pobst  <monkey@jpobst.com>
2806
2807         * MenuAPI.cs: Add a null check to the Alt-F4 code.
2808         [Fixes bug #420309]
2809
2810 2008-09-05  Jonathan Pobst  <monkey@jpobst.com>
2811
2812         * ThreadExceptionDialog.cs: Disable AutoScaling for this dialog.
2813         [Fixes bug #423040]
2814
2815 2008-09-04  Ivan N. Zlatev  <contact@i-nz.net>
2816
2817         * GridEntry.cs, CategoryGridEntry.cs, RootGridEntry.cs, PropertyGrid.cs, 
2818         PropertyGridView.sc: Implement lazy/delayed propertygrid population 
2819         on item expansion. Improves performance and fixes bug #417955.
2820         [Fixes bug #417955]
2821
2822 2008-09-05  Stephane Delcroix  <sdelcroix@novell.com>
2823
2824         * Control.cs: only check for OptimizedDoubleBuffer in NET_2_0.
2825         fix the build.
2826
2827 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
2828
2829         * TextControl.cs: Add "_" to the list of valid characters in a URL.
2830         [Fixes bug #423408]
2831
2832 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
2833
2834         * Control.cs: If using OptimizedDoubleBuffer, ensure the clip 
2835         region gets set.
2836         [Fixes bug #414166]
2837
2838 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
2839
2840         * FontDialog.cs: When storing our font size from the starting font,
2841         use SizeInPoints instead of Size in case Size is a different unit
2842         from Points.
2843         [Fixes bug #416489]
2844
2845 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
2846
2847         * FileDialog.cs: When enter is pressed on a SaveFileDialog and we
2848         don't use it for anything else, check if a directory is highlighted.
2849         If it is, navigate into it.
2850         [Fixes bug #422087]
2851
2852 2008-09-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2853
2854         * Binding.cs: When acquiring a BindingManagerBase for the first time,
2855         check that the specified property actually exists in the data source,
2856         and throw an ArgumentException if that's not the case - this is only
2857         done for this scenario, since for later cases (such Position changes)
2858         we throw different exceptions (match .Net).
2859
2860 2008-09-03  Ivan N. Zlatev  <contact@i-nz.net>
2861
2862         * ButtonBase.cs CheckBox.cs, Control.cs, FlowLayoutPanel.cs, 
2863           FlowLayoutSettings.cs, GroupBox.cs, Label.cs, ListBox.cs, 
2864           PropertyGrid.cs, RadioButton.cs, TableLayoutPanel.cs, 
2865           TableLayoutSettings.cs, ToolStrip.cs, ToolStripDropDownButton.cs, 
2866           ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripSplitButton.cs, 
2867           ToolStripStatusLabel.cs: Add missing PerformLayout calls to various 
2868           properties.
2869           [Fixes bug #418684]
2870
2871 2008-09-03  Neville Gao  <nevillegao@gmail.com>
2872
2873         * StatusBar.cs: Control enabled to support accessibility.
2874         [Fixes bug #419079]
2875
2876 2008-09-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2877
2878         * Binding.cs: When connecting the event handler for the "Changed"
2879         event for the property, only do it for PropertyManager, and not for
2880         CurrencyManager - this is exactly what does .Net, totally ignoring any
2881         change in the property of the elements of a list.
2882         Fixes the tests.
2883
2884 2008-09-02  Jonathan Pobst  <monkey@jpobst.com>
2885
2886         * XplatUIWin32.cs: Ensure we never send the WS_EX_MDICHILD flag
2887         to Windows when creating a window, as we fake MDI stuffs.
2888         [Fixes bug #421858]
2889
2890 2008-09-01  Ivan N. Zlatev  <contact@i-nz.net>
2891
2892         * TextBox.cs: Invalidate after UseSystemPasswordChar, so that the 
2893         change takes effect.
2894
2895 2008-08-24  Ivan N. Zlatev  <contact@i-nz.net>
2896
2897         * XplatUIX11.cs: Provide MouseButtons/State information to the XPlatUI.
2898         [Fixes bug #419001]
2899
2900 2008-08-27  Jonathan Pobst  <monkey@jpobst.com>
2901
2902         * DataGridView.cs: Raise CellContentClick event.
2903         [Fixes part of bug #420351]
2904
2905 2008-08-27  Mario Carrion  <mcarrion@novell.com>
2906
2907         * ScrollBar.cs: Control enabled to support accessibility.
2908         [Fixes bug #416759]
2909
2910 2008-08-27  Mario Carrion  <mcarrion@novell.com>
2911
2912         * ComboBox.cs: Control enabled to support accessibility.
2913         [Fixes bug #416663]
2914
2915 2008-08-27  Mario Carrion  <mcarrion@novell.com>
2916
2917         * ListBox.cs: Control enabled to support accessibility.
2918         [Fixes bug #416640]
2919
2920 2008-08-27  Jonathan Pobst  <monkey@jpobst.com>
2921
2922         * ComboBox.cs: Don't suppress the TextChanged event when changing
2923         the SelectedIndex.
2924         * ToolStripComboBox.cs: Listen to the ComboBox's TextChanged event
2925         and re-raise it.
2926         [Fixes bug #420673]
2927
2928 2008-08-26  Jonathan Pobst  <monkey@jpobst.com>
2929
2930         * ErrorProvider.cs: Fix a regression NRE when setting properties
2931         for a control before it has a parent.
2932         [Fixes bug #420305]
2933
2934 2008-08-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2935
2936         * Binding.cs: Use the BindingManagerBase.Current value to obtain
2937         connect the property "Changed" event, instead of using the data
2938         sources - this is useful when the property specifies actually a
2939         multiple objects path.
2940         Fixes part of #417973.
2941
2942 2008-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2943
2944         * RelatedPropertyManager.cs: PropertyManager instances associated to a
2945         nested properties should return not the properties of the data source
2946         itself, but the properties of the type of a specific property in the
2947         data source - match .net.
2948
2949 2008-08-24  Gert Driesen  <drieseng@users.sourceforge.net>
2950
2951         * ListBox.cs (IntegerCollection): To avoid duplication, moved code for
2952         AddRange overloads into AddItems method, and added missing NULL check.
2953         Added extra argument check to RemoveAt for compatibility with MS. 
2954         Modified IList implementation of Add, Contains, IndexOf and Remove to
2955         throw an ArgumentException if item is not an int. Modified IList.Insert
2956         to throw a NotSupportException instead of an Exception. Implemented
2957         ICollection.
2958         (ObjectCollection): To avoid duplication, use AddItems method from
2959         AddRange overloads. On 1.0 profile, first perform NULL check on items
2960         in AddItems.
2961
2962 2008-08-23  Gert Driesen  <drieseng@users.sourceforge.net>
2963
2964         * Control.cs: Do not modify bounds directly in .ctor's. Fixes bug
2965          #419087.
2966
2967 2008-08-22  Atsushi Enomoto  <atsushi@ximian.com>
2968
2969         * X11Keyboard.cs : comment out some Console.WriteLine().
2970
2971 2008-08-22  Atsushi Enomoto  <atsushi@ximian.com>
2972
2973         * X11Keyboard.cs : fixed wrong call to XOpenIM() which happened
2974           even if premises are not filled. Also XLookupString() was not
2975           receiving correct input, which blocked precise input handling
2976           on non-XIM mode.
2977
2978 2008-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2979
2980         * ListView.cs: When calling OnCacheVirtualItems, cast to the right
2981         type of delegate, instead of EventHandler - this was causing a type
2982         cast exception in all apps handling this event.
2983         Fixes #417876.
2984
2985 2008-08-20  Jonathan Pobst  <monkey@jpobst.com>
2986
2987         * ToolStripDropDownItem.cs: Always raise DropDownOpening in
2988         ShowDropDown to give the user a chance to dynamically add
2989         drop down items.  [Step 1 of fixing bug #417877]
2990
2991 2008-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2992
2993         * X11Dnd.cs: Don't fire pseudo motion DragOver events if we haven't
2994         had any mouse motion since the call to StartDrag, to match the dnd
2995         behaviour of .net.
2996         Fixes part of #381876.
2997
2998 2008-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2999
3000         * XplatUIX11.cs: Only do the children control bounds check for EnterNotify
3001         if mode is NotifyUngrab, and let it flow if mode is NotifyNormal.
3002         Also, if we are actually moving into a different window after
3003         grabbing, generate a LeaveNotify event for the previous window, since
3004         we need to fire the leave events until the grab ends, not when
3005         actually moving outside of the control.
3006
3007 2008-08-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3008
3009         * XplatUIX11.cs: The check inside EnterNotify case to fire MouseEnter
3010         events only for client windows was wrong - we need to compare the
3011         client window against the window receiving the EnterNotify event, not
3012         against zero (since client window is never Zero, btw).
3013         This prevents having unnecessary handling of EnterNotify events for
3014         non-client windows when a gran begins.
3015
3016 2008-08-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3017
3018         * XplatUIX11.cs: Handling X ButtonPress events, we must *not* generate
3019         MouseMove/MotionNotify events at all (which should only happen after
3020         MouseUp/ButtonRelease, as .Net does).
3021         This avoids firing an extra and unnecessary MouseMove event just after
3022         every MouseDown event.
3023
3024 2008-08-19  Jonathan Pobst  <monkey@jpobst.com>
3025
3026         * LinkLabel.cs: Always clear any previous links when LinkArea
3027         is set.  [Fixes bug #410709]
3028
3029 2008-08-19  Jonathan Pobst  <monkey@jpobst.com>
3030
3031         * ToolStripProfessionalRenderer.cs: Revert last change.
3032         * ProfessionalColorTable.cs: For Classic, use SystemColors.Window
3033         for ToolStripDropDownBackground.
3034
3035 2008-08-19  Jonathan Pobst  <monkey@jpobst.com>
3036
3037         * ToolStripProfessionalRenderer.cs: Use Window color for the 
3038         background of dropdowns to match .Net when the user is not
3039         using the default white.  [Fixes bug #418108]
3040
3041 2008-08-19  Atsushi Enomoto  <atsushi@ximian.com>
3042
3043         * XplatUIWin32.cs : SetTimer() used to set wrong window handle and
3044           it caused timer registration twice. Fixed bug #418107.
3045
3046 2008-08-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3047
3048         [Correction: This is the actual change to X11Dnd issue, not the
3049         previous one, which was actually a different issue.]
3050
3051         * X11Dnd.cs: Increase the interval for the Timer, to not fire our
3052         pseudo motion HandleMouseOver method so aggresive. Also, don't call it
3053         when the pointer is actually in motion, but only when the pointer
3054         seems to stop (as .net does).
3055         Fixes part of #381876.
3056
3057
3058 2008-08-18  Jonathan Pobst  <monkey@jpobst.com>
3059
3060         * ListBox.cs: Fix CopyTo implementation.
3061         [Fixes bug #409169]
3062
3063 2008-08-18  Jonathan Pobst  <monkey@jpobst.com>
3064
3065         * ThemeWin32Classic.cs: Use ClientRectangle instead of Bounds when
3066         drawing a ComboBox's background.  Fixes bad disabled rendering when
3067         the control is not at 0,0.
3068         [Fixes bug #416063]
3069
3070 2008-08-16  Ivan N. Zlatev  <contact@i-nz.net>
3071
3072         * GridEntry.cs: Leave the ICustomTypeDescriptor handling up to the 
3073         ComponentModel layer, which will properly prioritize the attributes.
3074         Avoids wrong prioritization of duplicate attributes when retrieving 
3075         the converter and editor.
3076         [Fixes bug #417729]
3077
3078 2008-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3079
3080         * XplatUIX11.cs: Increase the interval for the Timer, to not fire our
3081         pseudo motion HandleMouseOver method so aggresive. Also, don't call it
3082         when the pointer is actually in motion, but only when the pointer
3083         seems to stop (as .net does).
3084         Fixes part of #381876.
3085
3086 2008-08-15  Ivan N. Zlatev  <contact@i-nz.net>
3087
3088         * GridEntry.cs: Perform stricter check for the ParentEntry's 
3089         PropertyDescriptor/PropertyOwner for the ICustomTypeDescriptor 
3090         implementation.
3091         [Fixes bug #417567]
3092
3093 2008-08-14  Geoff Norton  <gnorton@novell.com>
3094
3095         * XplatUICarbon.cs: Properly implement PeekMessage and DoEvents.
3096         Fixes #396983.  Properly fix ActiveWindow trackin and do not
3097         prematurely show POPUP windows.
3098
3099 2008-08-12  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
3100
3101         * XplatUIX11.cs: Handle the obscured regions while scrolling using
3102         GraphicsExpose event, processing it just after we copy the scrolled
3103         area. This ensures that the next calls to ScrollWindow will copy
3104         regions already updated, and the scrolling will be smooth. Also remove
3105         the code that was trying to detect the obscured regions, since we are
3106         not using it anymore (too slow).
3107
3108 2008-08-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3109
3110         * ListBox.cs: Fix the -temporary- broken selection in ListBox for
3111         MultiExtended mode, by separating some logic between the ctrl/shift
3112         handling. Also ignore any MouseMove events generated together with
3113         MouseDown events - we are only interested in the real motion event.
3114         Fixes part of #414963.
3115
3116 2008-08-08  Jonathan Pobst  <monkey@jpobst.com>
3117
3118         * DataGridViewCell.cs: Guard against an AOORE when checking if a cell
3119         is selected.  [Fixes bug #414143]
3120
3121 2008-08-07  Ivan N. Zlatev  <contact@i-nz.net>
3122
3123         * GridEntry.cs: Check if current property is a ICustomTypeDescriptor 
3124         and not the parent one (the propertyowner). Fixes the behavior of 
3125         GetConverter/GetEditor.
3126         [Fixes bug #415452]
3127
3128 2008-08-07  Ivan N. Zlatev  <contact@i-nz.net>
3129
3130         * PropertyGrid.cs: Refresh should also repopulate the PropertyGrid.
3131         [Fixes part of bug #415452]
3132
3133 2008-08-05  Ivan N. Zlatev  <contact@i-nz.net>
3134
3135         * GridEntry.cs: ITypeDescriptorContext should be relative to the parent 
3136         GridEntry, not the current.
3137         [Fixes bug #413896]
3138
3139 2008-08-04  Ivan N. Zlatev  <contact@i-nz.net>
3140
3141         * TextBoxBase.cs: De-internalize max_length field.
3142         * RichTextBox.cs: Use base.MaxLength - both TextBoxBase and RichTextBox 
3143         share the same logic.
3144         [Fixes bug #414454]
3145
3146 2008-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3147
3148         * ListBox.cs: Selection changes made in the MouseDown handler should
3149         use the *Core versions of selection in SelectedIndices collection,
3150         since the SelectedIndexChanged/SelectedValueChanged events are fired
3151         until we get a MouseUp event, and thus we need to separate the logic
3152         from the events, as done in the keyboard navigation. Also, fire those
3153         selection events from keyboard navigation in SelectionMode.None, even
3154         if we don't have a selection, as .Net does.
3155
3156 2008-08-01  Jonathan Pobst  <monkey@jpobst.com>
3157
3158         * ToolStripButton.cs, ToolStripMenuItem.cs: Guard against a NRE my
3159         last change introduced when an item is clicked but isn't on a toolstrip.
3160
3161 2008-07-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3162
3163         * ListBindingHelper.cs: When looking for an object's properties, check
3164         if it implements ICustomTypeDescriptor, in which case we should
3165         resolve the propertu based on its GetProperties method, not in its
3166         actual properties. This is what .Net seems to do.
3167         Fixes a UsingWebBrowser problem during initialization.
3168
3169 2008-07-31  Jonathan Pobst  <monkey@jpobst.com>
3170
3171         * ToolStrip.cs: Fix an NRE caused by clicking on a ToolStripButton
3172         sitting on a MenuStrip.
3173
3174 2008-07-31  Jonathan Pobst  <monkey@jpobst.com>
3175
3176         * ToolStripButton.cs: If we "click" a top button on a menustrip that has
3177         no children with the keyboard, we need to release the keyboard capture.
3178         [Fixes bug #413567]
3179
3180 2008-07-31  Jonathan Pobst  <monkey@jpobst.com>
3181
3182         * ToolStripMenuItem.cs: If we "click" a top level menu item that has
3183         no children with the keyboard, we need to release the keyboard capture.
3184         [Fixes bug #413567]
3185
3186 2008-07-31  George Giolfan  <georgegiolfan@yahoo.com>
3187
3188         * ThemeVisualStyles.cs: Made ScrollBar rendering less strict so it supports
3189         the GTK+-based implementation of VisualStyles.
3190         * ThemeWin32Classic.cs: Exposed various layout values for use in the
3191         GTK+-based implementation of VisualStyles: ListViewGetHeaderHeight(Font),
3192         ListViewGetHeaderHeight(), ProgressBarChunkSpacing, ProgressBarGetChunkSize(),
3193         ProgressBarGetChunkSize(int), ProgressBarDefaultHeight,
3194         TrackBarGetThumbSize(), TrackBarVerticalTrackWidth,
3195         TrackBarHorizontalTrackHeight.
3196
3197 2008-07-31  George Giolfan  <georgegiolfan@yahoo.com>
3198
3199         * TabControl.cs: Added hot style handling for the scroll buttons.
3200         right_slider_state, left_slider_state are now of type PushButtonState to
3201         allow for a hot state. Added tracking of the mouse button being held down
3202         on a tab page. Extracted HasHotElementStyles, RightScrollButtonArea,
3203         LeftScrollButtonArea.
3204         * Theme.cs, ThemeWin32Classic.cs: Removed TabControlGetLeftScrollRect,
3205         TabControlGetRightScrollRect.
3206
3207 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
3208
3209         * MenuAPI.cs: Check for null GrabControl on ProcessMnemonic to prevent 
3210         runtime errors.
3211
3212 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
3213
3214         * Form.cs: Ensure that we reset the shown_raised flag after 
3215         the form is closed, so that we raise the show events the next 
3216         time the form is shown.
3217         [Fixes bug #413141]
3218
3219 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
3220
3221         * Form.cs: Ensure closing events are raised only once.
3222         [Fixes bug #413143]
3223
3224 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
3225
3226         * X11Keyboard.cs: Refactor SendKeyboardInput to accept the keycode, 
3227         so that we can successfully generate the LParam in-place instead of 
3228         in KeyEvent, which isn't called for e.g. MainMenu. Fixes keyboard 
3229         navigation for menus.
3230
3231 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
3232
3233         * MenuAPI.cs: When montion don't set the keyboard navigation state to 
3234         'navigating'. Fixes bug #411356.
3235
3236 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
3237
3238         [Fixed remaining issues of #406773 (#1)]
3239         * MenuItem.cs: UpdateMenuItem added to track the shotcut changes.
3240
3241         * MenuAPI.cs: Don't create tracker on TrackPopupMenu, it will be created in
3242         MainMenu (already done) and ContextMenu creation.
3243
3244         * ContextMenu.cs: Create tracker on construction. 
3245
3246 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
3247
3248         * MenuAPI.cs: For ContextMenu set GrabControl on TrackPopupMenu, it make
3249         possible to instantiate MenuTracker without GrabControl.
3250
3251 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
3252
3253         * MenuAPI.cs: On constructor dont set the GrabControl for non ContextMenu.
3254
3255         * MainMenu.cs: Set GrabControl on SetForm using current form.
3256
3257 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
3258
3259         * MenuAPI.cs: Chage grab_control to GrabControl and make it public.
3260
3261 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
3262
3263         * MenuAPI.cs: Check if menu is activated before deactivate it in 
3264         ProcessShortcut.
3265
3266 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
3267
3268         * TableLayoutStyleCollection, TableLayoutStyle.cs, RowStyle.cs, 
3269         ColumnStyle.cs: 
3270         Make the TableLayoutStyle owned by the the TableLayoutPanel, so that:
3271          - One style instance can only participate in a single style collection.
3272          - Styles can request their owner to layout whenever their properties 
3273          change.
3274          [Fixes bugs #412583 and #412582]
3275
3276 2008-07-29  Ivan N. Zlatev  <contact@i-nz.net>
3277
3278         * X11Keyboard.cs: Implement the generation of the LParam for 
3279         all keyboard messages.
3280         [Fixes bug #378728]
3281
3282 2008-07-29  Jonathan Pobst  <monkey@jpobst.com>
3283
3284         * ListBox.cs: Don't let the user set TopIndex so high that it
3285         scrolls up far enough to show empty items.
3286         [Fixes bug #412728]
3287
3288 2008-07-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3289
3290         * ThemeWin32Classic.cs: Actually commit the changes to fix #410880
3291         (I'm an idiot and forgot to commit the actual changes, as well as
3292         specify the right file, which is this one, not ListView.cs).
3293
3294 2008-07-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3295
3296         * ListView.cs: Don't draw ListViewSubItem instances from
3297         DrawListViewItem - we need to reuse the main item's drawing for the
3298         first sub item in case owner draw is true, but wants the system to
3299         do the default draw for the first sub item, without incurring in a
3300         recursion problem.
3301         Fixes #410880.
3302
3303 2008-07-28  Jonathan Pobst  <monkey@jpobst.com>
3304
3305         * ToolStripButton.cs: Update Checked for CheckOnClick before
3306         raising the Click event.  [Fixes bug #412505]
3307
3308 2008-07-28  Ivan N. Zlatev  <contact@i-nz.net>
3309
3310         * Form.cs: Remove some seems leftover code for non-TopLevel's 
3311         CreateParams, which is breaking ClientSize sizing, because it 
3312         removes the border window styles.
3313
3314 2008-07-27  Ivan N. Zlatev  <contact@i-nz.net>
3315
3316         * PropertyGrid.cs: Invalidate the View when the PropertyTab 
3317         changes.
3318
3319 2008-07-25  Gert Driesen  <drieseng@users.sourceforge.net>
3320
3321         * WebBrowser.cs: Removed debug output.
3322
3323 2008-07-25  Jonathan Pobst  <monkey@jpobst.com>
3324
3325         * FileDialog.cs: Apply patch from Ernesto to clean up some
3326         dialog messages.
3327
3328 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
3329
3330         * TableLayoutPanel.cs: Perform layout on GrowStyle change, so 
3331         that the change has an immediate effect.
3332
3333 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
3334
3335         * ScrollableControl.cs: Update PerformLayout calls to include 
3336         provide the name of the property that changed.
3337
3338 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
3339
3340         * TableLayoutPanel.cs: Draw relative to the DisplayRectangle 
3341         location. Fixes drawing of border and cell borders if scrollable.
3342
3343 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
3344
3345         * ScrollableControl.cs: Perform layouting after the AutoScroll 
3346         properties have changed, so that the changes have immediate 
3347         effect.
3348         [Fixes bug #409090]
3349
3350 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
3351
3352         * XplatUIX11.cs: Non Client area is actually Client such in the 
3353         case of NotifyIcon, so double check WholeWindow == ClientWindow 
3354         when adding an expose.
3355         [Fixes bugs #324237 and #357022]
3356
3357 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
3358
3359         * TableLayoutPanel.cs: Invalidate after layouting, so that we 
3360         repaint the cell borders.
3361
3362 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
3363
3364         * PropertyGridTextBox.cs: Stop filtering messages prior to our 
3365         disposal to avoid unexpected ObjectDisposedExceptions.
3366
3367 2008-07-24  Ivan N. Zlatev  <contact@i-nz.net>
3368
3369         * TableLayoutPanel.cs: Layout on Row/Column count change.
3370
3371 2008-07-22  Gert Driesen  <drieseng@users.sourceforge.net>
3372
3373         * ListViewItem.cs: Changed binary serialization to match MS. Fixes
3374         bug #409351.
3375         * PictureBox.cs: When ImageLocation is set to null or an empty string,
3376         only set image to null if it was previously initialized from an url
3377         (or using ImageLocation). In ImageLocation, load specified image
3378         asynchronously if WaitOnLoad is false. Added support for local file
3379         paths to LoadAsync, and added missing argument check.
3380
3381 2008-07-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3382
3383         * DateTimePicker.cs: 
3384         * ThemeWin32Classic.cs: Add a editing capability to DateTimePicker, in
3385         order to set the value as required (which means: when selection
3386         changes for a part being edited, and not before that if not needed).
3387         Also use an enum to describe which part are we using, and use the
3388         selection as a property in PartData, in order to notify the
3389         DateTimePicker owner that we need to end the current edit.
3390         Fixes #383462.
3391
3392 2008-07-17  Ivan N. Zlatev  <contact@i-nz.net>
3393
3394         * PropertyGridTextBox.cs: Validation should be performed only if we 
3395         are focused. We can lose focus for example if the Return key is used 
3396         to set the entry and there is an error. When the message box is 
3397         displayed we would have validate on click in the message box.
3398
3399 2008-07-16  Ivan N. Zlatev  <contact@i-nz.net>
3400
3401         * GridEntry.cs: Checking for DesignerSerializaitonVisibility.Content 
3402         in order to determine that we are expandable is wrong. There was a bug, 
3403         now fixed, in TypeDescriptor that was causing the wrong converter to be 
3404         returned which caused GetPropertiesSupported == false in most cases.
3405         [Fixes bug #409027]
3406
3407 2008-07-15  Jonathan Pobst  <monkey@jpobst.com>
3408
3409         * ImageList.cs: Fix ICollection.CopyTo implementation for
3410         ImageListCollection.  [Fixes bug #409169]
3411
3412 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
3413
3414         * MenuAPI.cs, ToolStripDropDown.cs: Use VirtualScreen instead of
3415         WorkingArea so that menus can appear on the second monitor
3416         when one has dual monitors.
3417
3418 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3419
3420         * TextBox.cs: Auto complete stuff in WndProc should be 2.0 only.
3421         Fixes build.
3422
3423 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3424
3425         * TextBox.cs: Implement navigation support for auto complete in
3426         TextBox, as well as refactor the code to show the auto complete window
3427         when receiving a WM_CHAR message, instead of TextChanged, since
3428         autocomplete itself should be able to set the Text a lot of times and
3429         finally only typing should show it, not changes from code.
3430
3431 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3432
3433         * TabControl.cs: When expanding the selected tab, don't adjust the
3434         width if alignment is Right, since it has a different offset than 0,
3435         as opposed to the other alignments.
3436         Fixes the selected tab not being painted at all with alignment = Right
3437         and using FillToRight size mode.
3438
3439 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
3440
3441         * TreeView.cs: Fix ToString to match MS.  [Fixes bug #409029]
3442
3443 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
3444
3445         * NumericUpDown.cs: Apply patch from Andy Hume to clamp out of range
3446         values from the textbox to the boundary values.  [Fixes bug #409026]
3447
3448 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
3449
3450         * TreeNodeCollection.cs: We were copying one too many elements when
3451         doing our array copy.  Fixes a crash when RemoveAt is called.
3452         [Fixes bug #408999]
3453
3454 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3455
3456         * TabControl.cs: When doing the layout and need to call FillRow -using
3457         FillToRight size mode-, use the overload receiving a bool param
3458         indicating whether we need to do a vertical or horizontal calculation.
3459         Fixes part of #399583.
3460
3461 2008-07-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3462
3463         * TextBox.cs: When painting, use the value returned by
3464         GetLastVisibleItem instead of using the cached last_item field, since
3465         there could be a desynchronization between the layout and the
3466         painting. Fixes a AOOR exception in auto complete mode.
3467
3468 2008-07-12  George Giolfan  <georgegiolfan@yahoo.com>
3469
3470         * ThemeVisualStyles.cs: Disabled when Application.VisualStyleState is
3471         NonClientAreaEnabled until our VisualStyles is modified to allow it.
3472
3473 2008-07-12  Gert Driesen  <drieseng@users.sourceforge.net>
3474
3475         * TextBox.cs: Fixed NRE in LostFocus. Avoid unnecessary initialization.
3476
3477 2008-07-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3478
3479         * TextBox.cs: When focus is lost, if the auto complete listbox is
3480         visible, hide it.
3481
3482 2008-07-11  George Giolfan  <georgegiolfan@yahoo.com>
3483
3484         * InternalWindowManager.cs: HandleSizing: Implemented a better minimum
3485         tracking size for tool windows.
3486         * Theme.cs, ThemeWin32Classic.cs : Extracted
3487         ManagedWindowSpacingAfterLastTitleButton.
3488
3489 2008-07-11  Jonathan Pobst  <monkey@jpobst.com>
3490
3491         * ThemeEngine.cs: Remove the clearlooks, nice, and old gtk themes.
3492         They are bit-rotted and have always been listed as "unsupported".
3493
3494 2008-07-11  Jonathan Pobst  <monkey@jpobst.com>
3495
3496         * PictureBox.cs: Don't crash if ImageLocation is set to "" or null.
3497
3498 2008-07-11  George Giolfan  <georgegiolfan@yahoo.com>
3499
3500         * ThemeVisualStyles.cs: Fixed minimized window height adjustment.
3501
3502 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
3503
3504         * ListBox.cs: Make sure last_item_visible gets reset before we try
3505         to do a layout due to scrollbars appearing or disappearing.
3506         [Fixes bug #408139]
3507
3508 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
3509
3510         * XPlatUIWin32.cs: Change GetMenuOrigin to calculate borders better
3511         for different window themes.  [Fixes bug #339140]
3512
3513 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
3514
3515         * ThemeWin32Classic.cs: Implemented minimized window border width properly,
3516         in ManagedWindowBorderWidth.
3517
3518 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
3519
3520         * InternalWindowManager.cs: Change MouseMove to take a point, so
3521         we can use the same point later on.
3522         * MdiWindowManager.cs: Store point sent to MouseMove so we can
3523         later reset to it.  On Windows, the Cursor.Position had already
3524         changed by the time we were resetting to it.
3525         [Fixes bug #363239]
3526
3527 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
3528
3529         * InternalWindowManager.cs: Ignore mouse actions on TitleButtons that
3530         are inactive.
3531         * ThemeWin32Classic.cs: Disable or hide MinimizeBox/MaximizeBox if
3532         user requested it.
3533         [Fixes bug #398686]
3534
3535 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
3536
3537         * MdiWindowManager.cs: Double-clicking on the title bar should not
3538         maximize a MDI form if MaximizeBox = false.
3539
3540 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
3541
3542         * ThemeVisualStyles.cs: Fixed a warning.
3543
3544 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
3545
3546         * ThemeVisualStyles.cs: Fixed warnings and formatted.
3547
3548 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
3549
3550         * ThemeVisualStyles.cs: Removed ManagedWindowGetMenuButtonSize. The base
3551         implementation produces a better result.
3552
3553 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
3554
3555         * ThemeVisualStyles.cs: Adjusted height and border rendering for minimized
3556         windows.
3557
3558 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
3559
3560         * Application.cs: Added VisualStylesEnabled because XplatUI.ThemesEnabled
3561         cannot be used from the ThemeEngine constructor.
3562         * ThemeEngine.cs: Changed the XplatUI.ThemesEnabled check to
3563         Application.VisualStylesEnabled because it does not work on X11.
3564
3565 2008-07-09  Jonathan Pobst  <monkey@jpobst.com>
3566
3567         * StatusBar.cs: Apply patch from Andy Hume to remove lazy instantiation
3568         that we did not always check for, as well as fixes to the IList
3569         implementations.  [Fixes bug #402703]
3570
3571 2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>
3572
3573         * IDeviceContext.cs: Added Dispose.
3574
3575 2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>
3576
3577         * Control.cs: Added OnSizeInitializedOrChanged.
3578         * Form.cs: OnLoadInternal: Added a call to
3579         Control.OnSizeInitializedOrChanged.
3580         * InternalWindowManager.cs:
3581          * HandleTitleBarMouseMove: No longer invalidates the parent window.
3582          * DrawTitleButton: Extracted Theme.ManagedWindowDrawMenuButton.
3583          * TitleButton: Added Entered.
3584          * TitleButtons.MouseMove: Added handling of TitleButton.Entered.
3585         * MdiWindowManager.cs:
3586          * HandleTitleBarMouseMove: Now invalidates the parent window when a mouse
3587          move over the maximized title buttons causes a change.
3588          * IsActive: Can now be called before the window is added to a MDI parent.
3589         * Theme.cs: Added ManagedWindowTitleButtonHasHotElementStyle,
3590         ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
3591         * ThemeVisualStyles.cs: Implemented proper managed window rendering.
3592         * ThemeWin32Classic.cs:
3593          * Extracted ManagedWindowDrawTitleBarAndBorders, ManagedWindowDrawTitleButton.
3594          * DrawTitleButton takes a new form parameter.
3595          * Added ManagedWindowTitleButtonHasHotElementStyle,
3596          ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
3597
3598 2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>
3599
3600         * ThemeEngine.cs: ThemeVisualStyles is now selected if
3601         Application.EnableVisualStyles has been called, even if the current system
3602         configuration does not support rendering with Visual Styles.
3603         * ThemeVisualStyles.cs: Now falls back to ThemeWin32Classic when Visual
3604         Styles should not be used.
3605
3606 2008-07-08  Jonathan Pobst  <monkey@jpobst.com>
3607
3608         * ComboBox.cs: PreferredHeight is not tied to ItemHeight.  Fixes 3rd
3609         ComboBox in FormsTest.
3610
3611 2008-07-08  Ivan N. Zlatev  <contact@i-nz.net>
3612
3613         * ThemeWin32Classic.cs: (ManagedWindowBorderWidth): width 3 is only 
3614         for fixed toolwindows.
3615
3616 2008-07-08  George Giolfan  <georgegiolfan@yahoo.com>
3617
3618         * Form.cs: SetBoundsCore: Added minimum size for minimized windows.
3619
3620 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
3621
3622         * Control.cs: CreateControl just returns if the Control is diposed 
3623         and doesn't throw ObjectDisposedException.
3624         [Fixes bug #406566]
3625
3626 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
3627
3628         * Control.cs: Do not create the control if the parent isn't created 
3629         yet, e.g in the case of a parented form on which .Show is called.
3630         It will be created when the parent is made visible/created.
3631         Improves #402446.
3632
3633 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
3634
3635         * Form.cs: Avoid recursively calling OnSizeChanged due to recursive 
3636         WM_WINDOWPOSCHANGED caused by the layouting code on win32.
3637         [Fixes bug #406786]
3638
3639 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
3640
3641         * Form.cs: When disposed set owner to null. Improves #402446.
3642
3643 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
3644
3645         * Form.cs, FlowLayoutPanel.cs: When calculating the PreferredSize 
3646         use children's PreferredSize if in AutoSize mode and ExplicitBounds 
3647         if not.
3648         * Form.cs: Take the Padding into account for the PreferredSize.
3649         [Fixes bug #402849]
3650
3651 2008-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3652
3653         * TabControl.cs: Since we don't support more than one direction in
3654         TabControl rows alignment (this is, the row becomes the
3655         bottom row when selected), make Direction return always 1. This way
3656         the layout doesn't get confused about a bad calculation.
3657         Fixes #399582.
3658
3659 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
3660
3661         * XplatUIX11.cs: Implement NC hit-testing for mouse down/up messages, 
3662         so that the wparam is properly set.
3663         Fixes form moving in the test case in bug 402446.
3664
3665 2008-07-07  Jonathan Pobst  <monkey@jpobst.com>
3666
3667         * FolderBrowserDialog.cs: If we can't find the SelectedPath, display
3668         the full tree instead of nothing.  [Improves bug #406584]
3669
3670 2008-07-07  George Giolfan  <georgegiolfan@yahoo.com>
3671
3672         * ThemeWin32Classic.cs: Adjusted minimized window painting.
3673
3674 2008-07-07  George Giolfan  <georgegiolfan@yahoo.com>
3675
3676         * InternalWindowManager.cs: No longer draws decorations for maximized MDI
3677         children.
3678
3679 2008-07-04  Jonathan Pobst  <monkey@jpobst.com>
3680
3681         * TreeView.cs: Add a null check when using CollapseAll on an
3682         empty tree.  [Fixes bug #406449]
3683
3684 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
3685
3686         * Form.cs: Make OnMenuComplete internal so we can call it.
3687         * MenuAPI.cs: Raise Form.MenuComplete when a menu item is clicked.
3688         [Fixes bug #399321]
3689
3690 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
3691
3692         * TabControl.cs: Handle Up and Down keys when TabControl is in
3693         vertical alignment.
3694         [Fixes bug #399585]
3695
3696 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
3697
3698         * TabControl.cs: Invalidate when we remove a tab.  Guard against
3699         an AOORE when trying to remove a tabpage that is not owned by the
3700         parent control.
3701         [Fixes bug #399927]
3702
3703 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
3704
3705         * ScrollBar.cs: Change the LargeChange calculation to be correct.
3706         Ensure we are using LargeChange instead of large_change so we our
3707         calculations are correct.
3708         [Fixes bug #403122]
3709
3710 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
3711
3712         * TableLayoutPanel.cs: When we change to a serialized TableLayoutSettings,
3713         we need to ensure the ColumnCount/RowCount gets set.
3714         [Fixes bug #404851]
3715
3716 2008-07-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3717
3718         * ListBox.cs: When handling item navigation, if selection mode is
3719         None, call EnsureVisible, since scrolling is normally handled by
3720         selection, that we are not calling in this case.
3721         Fixes #398345.
3722
3723 2008-07-02  Jonathan Pobst  <monkey@jpobst.com>
3724
3725         * ContainerControl.cs: Apply a patch from Ernesto Carrea that adds
3726         a null check to our focus walking code.  [Fixes bug #394332]
3727
3728 2008-07-02  Andy Hume <andyhume32 at yahoo dot co dot uk>
3729
3730         * ComboBox.cs: Case missed in bug 379596 "Support item
3731         navigation by entering text": On _close_ drop-down select
3732         the first item matching the text in the textbox.  [Fixes bug #397265]
3733
3734 2008-07-02  Jonathan Pobst  <monkey@jpobst.com>
3735
3736         * DataGridView.cs: Fix a crash when sorting by column headers, 
3737         mentioned in bug #404841.  Remove some dead switch cases.
3738
3739 2008-07-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3740
3741         * ComboBox.cs:
3742         * TextBox.cs: Implement AutoComplete support for ComboBox, which just
3743         uses the AutoComplete support in the internal TextBox. Also TextBox
3744         can store a reference to ComboBox, in case AutoCompleteSource is set
3745         to ListItems (this is, ComboBox's items, and we don't want to pass an
3746         additional collection).
3747
3748 2008-07-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3749
3750         * ListViewItem.cs: Restore the initial value of bounds rect to
3751         Rectangle.Empty, and is this value for Layout detection in virtual
3752         mode. Fixes the tests.
3753
3754 2008-06-30  Jonathan Pobst  <monkey@jpobst.com>
3755
3756         * XPlatUI.cs: Remove references to "new" X11 backend.
3757
3758 2008-06-28  Ivan N. Zlatev  <contact@i-nz.net>
3759
3760         * Control.cs: Add an internal virtual OnDragDropEnd method 
3761         to allow controls such as ListBox, which depend on a sequence 
3762         of MouseDown+Move+End events, to handle the lack of a MouseUp 
3763         when a DnD operation is started in MouseDown.
3764         * ListBox.cs: If a DnD operation is started in MouseDown we won't 
3765         get a MouseUp, so reset our state whenever a DnD operation ends.
3766
3767 2008-06-28  Ivan N. Zlatev  <contact@i-nz.net>
3768
3769         * PropertyGrid.cs: Clear the root griditem first thing when 
3770         new object/s is/are selected. Fixes some rare cases where 
3771         the View will get a paint request and won't know that the 
3772         grid is in the process of repopulating.
3773
3774 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
3775
3776         * XplatUIX11.cs, InternalWindowManager.cs: 
3777         If WS_EX_TOOLWINDOW is set in the CreateParams for a form MS 
3778         doesn't automagically update the FormBorderStyle, so we must 
3779         double check the CreateParams explicitly to determine if the 
3780         window is a toolwindow.
3781         * ThemeWin32Classic.cs: Use InternalWindowManager.IsToolWindow 
3782         instead of doing custom checks.
3783
3784         Fixes toolwindows for the test case in bug #402446
3785
3786 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
3787
3788         * Control.cs: Visibility of the control should be false 
3789         when the handle is destroyed in WmDestroy and not immediately 
3790         in Dispose(). This is effectively where the disposing process 
3791         ends even though the control is marked as Disposed immediately 
3792         after calling Dispose().
3793         [Fixes bug #402446]
3794
3795 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
3796
3797         * PropertyGridTextBox.cs: Start monitoring the mouse clicks 
3798         when the textbox gets focus.
3799         [Fixes bug #402704]
3800
3801 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
3802
3803         * PropertyGridTextBox.cs, PropertyGridView.cs: 
3804          - Alt + Down should show the drop down editor.
3805          - Focus the editor when showing it
3806         [Fixes bug #402710]
3807
3808 2008-06-25  Jonathan Pobst  <monkey@jpobst.com>
3809
3810         * ThemeWin32Classic.cs: Fix from Andy for panel text for panels
3811         that are not the first panel.
3812         * StatusBar.cs: Ensure that the X coordinate of panels is always
3813         stored.  Fix IList implementation of StatusBarPanelCollection to
3814         call the regular methods.
3815         [Fixes bug #403599, #402165]
3816
3817 2008-06-23  Jonathan Pobst  <monkey@jpobst.com>
3818
3819         * ThemeWin32Classic.cs: Fix position calculation for centered
3820         text on status bar panels.  [Fixes bug #402165]
3821
3822 2008-06-22  Ivan N. Zlatev  <contact@i-nz.net>
3823
3824         * Splitter.cs: Fix Splitter to:
3825          - Work for arbitrary splitter size
3826          - Handle MinSize and MinExtra properly
3827          - Get rid of absolute positioning during drag and use relative
3828          - Multiple other fixes 
3829          [Fixes bug #338966]
3830
3831 2008-06-22  Ivan N. Zlatev  <contact@i-nz.net>
3832
3833         * Cursor.cs: Show shouldn't hide the cursor.
3834
3835 2008-06-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3836
3837         * ListViewItem.cs: When invalidating, add some extra space to bounds,
3838         since focus rectangle and selection can add some space and need to
3839         take into account those small offsets - specially in Details view.
3840         * ListView.cs: Instead of invalidate using item Bounds directly, call
3841         item.Invalidate, to have the code centralized.
3842         Fixes focused/selection garbage when selecting and deselecting items
3843         that are close.
3844
3845 2008-06-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3846
3847         * ListViewItem.cs: Set bounds initially to -1 values - thus in virtual
3848         mode we can check whether we have to force a Layout or not, and can
3849         cache based on this, instead of avoiding caching all the the time. Do
3850         this check in GetBounds and TextBounds.
3851         Fixes selection in Details view.
3852
3853 2008-06-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3854
3855         * ListView.cs: Make HeaderControl internal, thus the theme engine can
3856         get its *real* height instead of trying to infere it.
3857         * ThemeWin32Classic.cs: When drawing gridlines, don't iterate over the items to
3858         get the position of them, since it's in general a bad idea in general,
3859         and because we can't do that in virtual mode. Instead get the first
3860         visible item as well as item height, and draw them.
3861         Fixes #400390.
3862
3863 2008-06-20  Jonathan Pobst  <monkey@jpobst.com>
3864
3865         * ToolStripSplitButton.cs: We can't add in extra width if
3866         the button is not AutoSize.  [Fixes bug #401279]
3867
3868 2008-06-20  Ivan N. Zlatev  <contact@i-nz.net>
3869
3870         * PaddingConverter.cs: 
3871          - Implement conversion to InstanceDescriptor
3872          - Handle "All" in CreateInstance by using the supplied 
3873          ITypeDescriptorContext.
3874          [Fixes bugs #396076 and #396078]
3875
3876          Patch by Andy Hume  <andyhume32@yahoo.co.uk>
3877          Code contributed under MIT/X11 license.
3878
3879 2008-06-19  Andy Hume <andyhume32 at yahoo dot co dot uk>
3880
3881         * ComboBox.cs, ListControl.cs, Control.cs, Button.cs, 
3882         ButtonBase.cs:
3883         Add Category attributes.
3884         Code is contributed under the MIT/X11 license.
3885
3886 2008-06-18  Ivan N. Zlatev  <contact@i-nz.net>
3887
3888         * Form.cs: 
3889          - Fix a NRE when unparenting a form.
3890          - Do not recreate or destroy a parented form when 
3891         unparenting. 
3892
3893 2008-06-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3894
3895         * TextBox.cs: Implement basic support for AutComplete with custom
3896         sources.
3897
3898 2008-06-18  Jonathan Pobst  <monkey@jpobst.com>
3899
3900         * ToolStripSplitButton.cs: Left and Top of ButtonBounds, SplitterBounds,
3901         DropDownButtonBounds should be from the origin of the button, not the
3902         ToolStrip.  [Fixes bug #401279]
3903
3904 2008-06-16  Sandy Armstrong <sanfordarmstrong@gmail.com> 
3905
3906         * X11DesktopColors.cs: Clear GTK_MODULES environment variable before
3907           running gtk_init_check.  This prevents GAIL from loading
3908           unnecessarily, which was breaking UIA support.  Initial fix for bug
3909           #375987.
3910         * Application.cs: Add UIA support to Winforms.  New static constructor
3911           uses reflection to initialize UIAutomationWinforms assembly.  Added
3912           PreRun event so UIA can initialize before the mainloop starts, and
3913           FormAdded event so UIA can provide a11y support for new Forms in an
3914           Application.
3915
3916 2008-06-16  Jonathan Pobst  <monkey@jpobst.com>
3917
3918         * DataGridView.cs: When binding to a dataset, subscribe to table
3919         and column change events.  Unsubscribe to these when we clear bindings.
3920         [Fixes bug #399601]
3921
3922 2008-06-14  Everaldo Canuto  <ecanuto@novell.com>
3923
3924         [DataGrid drawing refactory]
3925
3926         * DataGrid.cs: Fix the caption size, we need one pixel more for divider.
3927
3928         * DataGridColumnStyle.cs: Removing PaintHeader code, the draw operations
3929         must be handle by Theme, now it call DataGridPaintColumnHeader.
3930
3931         * DataGridTextBoxColumn.cs: Fix the textbox size. It must be one pixel less,
3932         test cases must be also fixed because it checks for wrong size.
3933
3934         * ThemeWin32Classic.cs: 
3935                 - Draw the bottom line of grid caption.
3936                 - Prevent to draw caption text when it is empty.
3937                 - Use CPDrawBorder3D for 3D efects to simplify code.
3938                 - Uses 3D (when not flat) to paint corner shared between row and column
3939                 header.
3940                 - Fix header drawing issues on win32, now borders are drawing.
3941                 - Fix column header paint issues to mimic win32.
3942                 - Adjust header drawing for last column, like first one it must be draw
3943                 different.
3944                 - Added DataGridPaintRowHeaderStar to draw star like .net does, it is
3945                 not an character.
3946                 - DataGridPaintColumnHeader created to draw column headers, it also
3947                 paint stuff right on Win32.
3948                 - Use DataGridPaintColumnHeader method instead of DataGridColumnStyle 
3949                 class.
3950
3951         * Theme.cs: 
3952                 - DataGridPaintRowHeaderStar method added.
3953                 - DataGridPaintColumnHeader method added.
3954
3955 2008-06-13  Jonathan Pobst  <monkey@jpobst.com>
3956
3957         * Control.cs: Don't reset to Dock style layout if DockStyle is
3958         set to none.  [Fixes bug #399316]
3959
3960 2008-06-12  Everaldo Canuto  <ecanuto@novell.com>
3961
3962         * Win32DnD.cs: Fix the check for control not equal null.
3963         Fixes bug #341420 and #381886. 
3964
3965 2008-06-12  Jonathan Pobst  <monkey@jpobst.com>
3966
3967         * DataGridViewRowCollection.cs: Update the indexes of rows after
3968         one has been removed.
3969         * DataGridViewSelectedRowCollection.cs: Add internal clear method.
3970         * DataGridViewSelectedColumnCollection.cs: Add internal clear method.
3971         * DataGridView.cs: Add support for deleting rows via Delete key, deleting
3972         rows for the Rows collection, or deleting rows from the bound DataSet.
3973
3974 2008-06-12  Jonathan Pobst  <monkey@jpobst.com>
3975
3976         * DataGridView.cs: Listen to a DataSet's changed event even
3977         when autogeneratecolumns is false.  Refactor the changed event's
3978         add row code to use the same as the existing add row code.
3979         [Fixes bug #399601]
3980
3981 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
3982
3983         * TextBoxBase.cs: We need to call RaiseSelectionChanged pretty
3984         much any time the caret moves and there is text, not just when
3985         the selection changes as one would think.
3986         * RichTextBox.cs: Override RaiseSelectionChanged and fire
3987         SelectionChanged.
3988         [Fixes bug #397271]
3989
3990 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
3991
3992         * FontDialog.cs: Forward ListBox keyboard events to the ListBox
3993         instead of trying to duplicate the code.
3994         * ListBox.cs: Make method internal so we can send keyboard events.
3995         [Fixes bug #398344]
3996         
3997 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
3998
3999         * TextBoxBase.cs: When pasting and checking the max length,
4000         subtract the selected text length (the text we will be replacing) from
4001         the document length.
4002         * TextControl.cs: Ensure every character insertion is reflected in
4003         charcount, so max length will work properly.
4004         [Fixes bug #398605]
4005
4006 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
4007
4008         * ListBox.cs: Ensure scrollbars are updated when a single
4009         column listbox with an already set top-index is created.
4010         [Fixes bug #398342]
4011
4012 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
4013
4014         * FontDialog.cs: Typing in the font/style textboxes should search
4015         the list boxes case-insensitively.  [Fixes bug #398343]
4016
4017 2008-06-11  George Giolfan  <georgegiolfan@yahoo.com>
4018
4019         * ThemeWin32Classic.cs: Managed window title bar layout now uses actual
4020         widths of icon and buttons instead of hard coded values.
4021
4022 2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4023
4024         * ListBox.cs: When SelectionMode is None, clicking an item should move focus
4025         as well as generating a SelectedIndexChanged event, just like .Net does
4026         -surprise-.
4027         Fixes #398345.
4028
4029 2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4030
4031         * ListBox.cs: When navigating items visually, use FocusedItem as the
4032         reference point instead of SelectedIndex, since even in
4033         SelectionMode.None we need to support navigation, and in that case we
4034         just can't use SelectedIndex.
4035         Fixes part of #398345.
4036
4037 2008-06-10  Jonathan Pobst  <monkey@jpobst.com>
4038
4039         * Control.cs: Make a SetBoundsInternal that avoids the new
4040         SetBounds code.
4041         * ComboBox.cs, Form.cs, ListBox.cs, ScrollableControl.cs: Use
4042         SetBoundsInternal instead of SetBoundsCoreInternal.
4043
4044 2008-06-10  Ivan N. Zlatev  <contact@i-nz.net>
4045
4046         * ScrollableControl.cs: Use SetBoundsCoreInternal instead of 
4047         SetBounds for the scrollbars.
4048
4049 2008-06-10  Andreia Gaita <avidigal@novell.com> 
4050
4051         * HtmlDocument.cs: Implement RightToLeft, ContextMenuShowing,
4052           FocusingEvent, LosingFocusEvent, OnMouseDown, OnMouseLeave,
4053           OnMouseMove, OnMouseOver, OnMouseUp
4054         * HtmlElement.cs: Optimize InsertBefore. Implement RemoveFocus,
4055           ScrollIntoView, Focusing, GotFocus, LosingFocus, LostFocus.
4056         * HtmlElementCollection.cs, HtmlWindowCollection.cs: Keep a reference
4057           to the WebControl object to pass to new collection objects
4058         * HtmlHistory.cs: Implement support for individual window histories.
4059         * HtmlWindow.cs: Implement History, Position, Size, WindowFrameElement,
4060           AttachEventHandler, DetachEventHandler, RemoveFocus, Error,
4061           GotFocus, LostFocus, OnLoad, OnUnload
4062         * WebBrowser.cs: Implement EncryptionLevel, ScrollBarsEnabled,
4063           ContextMenu
4064         * WebBrowserBase.cs: Implement Cursor, Enabled, UseWaitCursor, Add
4065           security level changes and context menu event support.
4066
4067 2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4068
4069         * ComboBox.cs: Pressing Enter should close the dropdown listbox, just
4070         as happens with Esc, patch my Andy Hume.
4071         Fixes #396294.
4072
4073 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
4074
4075         * MdiWindowManager.cs: DrawMaximizedButtons now uses
4076         ManagedWindowGetMenuButtonSize instead of ManagedWindowButtonSize.
4077         * Theme.cs: Made MenuButtonSize platform dependent. Added
4078         ManagedWindowButtonSize.
4079         * ThemeWin32Classic.cs: Added ManagedWindowGetMenuButtonSize.
4080         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added MenuButtonSize.
4081
4082 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
4083
4084         * DateTimePicker.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs:
4085         Added support for rendering with VisualStyles.
4086
4087 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
4088
4089         * ComboBox.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
4090         support for rendering the border with VisualStyles.
4091
4092 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
4093
4094         * InternalWindowManager.cs: Added ShowIcon. Fixed IconRectangleContains when
4095         the icon is not shown.
4096         * ThemeWin32Classic.cs: Now uses InternalWindowManager.ShowIcon instead of
4097         its own logic.
4098
4099 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
4100
4101         * InternalWindowManager.cs: Draw minimized windows even if they don't have
4102         borders.
4103
4104 2008-06-09  Jonathan Pobst  <monkey@jpobst.com>
4105
4106         * ComboBox.cs, ListBox.cs: Use SetBoundsInternalCore instead of SetBounds.
4107
4108 2008-06-09  Jonathan Pobst  <monkey@jpobst.com>
4109
4110         * Control.cs: Fill in the defaults for unspecified bounds in SetBounds.
4111         [Fixes bug #397943]
4112
4113 2008-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4114
4115         * ComboBox.cs: When snaping height -because of IntegralHeight set to
4116         true- with ComboBoxStyle.Simple, set the height to PreferredHeight
4117         if the requested height leaves the listbox area with *less* than the
4118         required are to see one item. We were setting it to PreferredHeight
4119         even for values matching the height for a single item.
4120         Fixes #396297.
4121
4122 2008-06-06  Jonathan Pobst  <monkey@jpobst.com>
4123
4124         * DataGridViewCell.cs: Simplify GetInheritedStyle by using ApplyStyle.
4125
4126 2008-06-06  Jonathan Pobst  <monkey@jpobst.com>
4127
4128         * DataGridViewCell.cs: Use property instead of field.
4129
4130 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
4131
4132         * InternalWindowManager.cs, ThemeWin32Classic.cs: Removed useless Form.Icon
4133         null checks.
4134
4135 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
4136
4137         * Theme.cs: Added #region around the managed window code. Made the managed
4138         window methods abstract.
4139         * ThemeWin32Classic.cs: Added #region around the managed window code.
4140
4141 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
4142
4143         * InternalWindowManager.cs: Now only calls Theme.DrawManagedWindowDecorations
4144         if it has borders.
4145         * ThemeWin32Classic.cs: Removed HasBorders checks in
4146         DrawManagedWindowDecorations.
4147
4148 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
4149
4150         * InternalWindowManager.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
4151         Extracted ManagedWindowGetTitleBarIconArea.
4152
4153 2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
4154
4155         * DataGridViewCellStyle.cs: Don't clone the font.
4156
4157 2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
4158
4159         * DataGridViewCell.cs: Ensure we don't pass null to GetConverter.
4160
4161 2008-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4162
4163         * XplatUIX1..cs: Use IntPtr size instead of int, as wee need to work
4164         also on 64 bit machinges. Fixes the BadWindow errors while scrolling
4165         in 64 bit machines.
4166
4167 2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
4168
4169         * DataGridViewCell.cs: Correctly get converters for FormattedValue.
4170         Use Format/FormatProvider before trying converters.
4171         * DataGridViewCellStyle.cs: ApplyStyle should only apply things that
4172         are 'set'.  Change constructor to not use ApplyStyle since it wants
4173         everything applied.  Clone the Font.
4174         * DataGridViewRowHeaderCell.cs: Start with DefaultCellStyle and
4175         ApplyStyle the rest.
4176
4177 2008-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4178
4179         * ListView.cs: We need to calculate the scrollbars even if the handle
4180         hasn't been created - this is needed when methods using scrollbars
4181         info, such EnsureVisible, are called before control has been created.
4182         Fixes #397272.
4183
4184 2008-06-05  George Giolfan  <georgegiolfan@yahoo.com>
4185
4186         * ThemeVisualStyles.cs: ScrollBar is now rendered with the VisualStyles API
4187         only if the elements are defined. 
4188
4189 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4190
4191         * ComboBox.cs: I'm an idiiot - forgot to commit the last ComboBox
4192         section. Also, when setting bounds, snap height as well as save the
4193         requested height if Dock has any value affecting the height: Left,
4194         Right and Bottom - important if using IntegralHeight as true.
4195
4196 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4197
4198         * ComboBox.cs: When calling UpdateComboBoxBounds, adjust the height
4199         passed to SetBounds to reflect the new adjusted height (Integral-wise), 
4200         instead of doing that only in our SetBoundsCore override, since the 
4201         bounds cached can be the same as saved one and we could not get the
4202         new height applied.
4203         Fixes #396297.
4204
4205 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
4206
4207         * Theme.cs: Made ToolWindowCaptionButtonSize platform dependent.
4208         * XplatUI.cs: Added ToolWindowCaptionButtonSize.
4209         * XplatUIDriver.cs: Changed SmallCaptionButtonSize to 15,15. Added
4210         ToolWindowCaptionButtonSize.
4211         * XplatUIWin32.cs: Added ToolWindowCaptionButtonSize.
4212
4213 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
4214
4215         * MdiWindowManager.cs: Now uses SystemInformation.DoubleClickTime instead of
4216         hard coded values.
4217         * Theme.cs: Made DoubleClickTime plaform dependent.
4218
4219 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
4220
4221         * Theme.cs: Made ToolWindowCaptionHeight platform dependent.
4222         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
4223         ToolWindowCaptionHeight.
4224
4225 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
4226
4227         * InternalWindowManager.cs: The adjustment to ensure positive client area
4228         sizes is now platform dependent (disabled on Windows).
4229         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
4230         RequiresPositiveClientAreaSize.
4231
4232 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
4233
4234         * Form.cs: Fixed null handling in Icon (see SettingIconToNull in the tests).
4235
4236 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
4237
4238         * InternalWindowManager.cs: Changed IconicSize to use
4239         SystemInformation.MinimizedWindowSize.
4240         * XplatUICarbon.cs, XplatUIX11.cs: Removed MinimizedWindowSize.
4241         * XplatUIDriver.cs: Changed MinimizedWindowSize to provide a default value.
4242
4243 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4244
4245         * ComboBox.cs: If the combobox is anchored both on top and bottom,
4246         adjust height if IntegralHeight is true when calling SetBoundsCore (as
4247         likely the height was modified even if Height wasn't specified in
4248         BoundsSpecified parameter).
4249         Fixes part of #396297.
4250
4251 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com> 
4252
4253         * InternalWindowsManager.cs: Changed minimum window size while resizing to
4254         SystemInformation.MinWindowTrackSize.
4255         * XplatUICarbon.cs, XplatUIX11.cs: Removed MinWindowTrackSize.
4256         * XplatUIDriver.cs: Changed MinWindowTrackSize to provide a default value.
4257
4258 2008-06-03  George Giolfan <georgegiolfan@yahoo.com> 
4259
4260         * MenuItem.cs: Fixed Dispose.
4261
4262 2008-06-03  George Giolfan <georgegiolfan@yahoo.com> 
4263
4264         * ColumnHeader.cs: CalcColumnHeader now uses the theme to get the height.
4265         * DataGridView.cs: * EnableHeadersVisualStyles: Fixed default value.
4266         EnteredHeaderCell, PressedHeaderCell: Added.
4267         * DataGridViewCell.cs: Refactored: Extracted GetBorderPen.
4268         * DataGridViewColumnHeaderCell.cs, DataGridViewRowHeaderCell.cs: Gave the
4269         theme a chance to override default painting.
4270         * ListView.cs: Added EnteredColumnHeader. Refactored: Extracted
4271         GetColumnHeaderInvalidateArea, Invalidate(ColumnHeader).
4272         * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added members for
4273         ListView and DataGridView header rendering.
4274         
4275 2008-06-03  Ivan N. Zlatev  <contact@i-nz.net>
4276
4277         * RichTextBox.cs: GetPositionFromCharIndex should return the 
4278         visual position of the character relative to the viewport.
4279         [Fixes part of bug #396664]
4280
4281 2008-06-03  Ivan N. Zlatev  <contact@i-nz.net>
4282
4283         * GridEntry.cs: Make HasCustomEditor check for EditStyle != None 
4284         and not just for the existance of an UITypeEditor. In some cases 
4285         there is an editor associated just to do PaintValue, but which 
4286         doesn't actually support editing.
4287         [Fixes bug #396632]
4288
4289 2008-05-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4290
4291         * ComboBox.cs: page_size as well as vscrollbar.LargeChange should be 1
4292         if needed, instead of 0 - this should help us in the corner case where
4293         we have more than one item but we are only partially showing 1 item.
4294         Fixes part of #374713.
4295
4296 2008-05-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4297
4298         * XplatUiX11.cs: When scrolling and detecting the obscured areas in a
4299         control, return immediately if the any parent control's handle hasn't
4300         been created or isn't visible, as well as avoiding creating the parent
4301         Form if the handle hasn't been previously created.
4302         Fixes tests.
4303
4304 2008-06-02  Jonathan Pobst  <monkey@jpobst.com>
4305
4306         * TableLayoutPanel.cs: Use border sizes when calculating the
4307         panel's preferred size.  [Fixes part of bug #396433]
4308
4309 2008-06-02  Ivan N. Zlatev  <contact@i-nz.net>
4310
4311         * SplitContainer.cs:
4312          - Fix SplitterDistance to update only if needed. 
4313          - Make it force min and max validation.
4314          - Handle properly mouse moves outside the resizeable area.
4315          [Fixes bug #396232]
4316
4317 2008-06-02  Andreia Gaita <avidigal@novell.com> 
4318
4319         * WebBrowserBase.cs: Implement support for ScriptErrorsSuppressed
4320           (which also suppresses all popup dialogs). Throw NotSupported
4321           exceptions for activex getters/setters.
4322         * WebBrowser.cs: Implement DocumentStream, DocumentType, IsBusy,
4323           IsOffline, ReadyState, ScriptErrorsSuppressed, ScrollbarsEnabled,
4324           StatusText, Version, GoSearch
4325         * HtmlDocument.cs: Add DocType support
4326
4327 2008-06-02  Andy Hume  <andyhume32@yahoo.co.uk>
4328
4329         * TextBox.cs: Implement TextBoxAutoCompleteSourceConverter.
4330         [Fixes bug 396124]
4331
4332 2008-06-02  Ivan N. Zlatev  <contact@i-nz.net>
4333
4334         * GridEntry.cs: Pass the ITypeDescriptorContext everywhere.
4335
4336 2008-06-02  Jonathan Pobst  <monkey@jpobst.com>
4337
4338         * TableLayoutPanel.cs: When calculating preferred size, use the
4339         actual number of columns and rows, not what the user set them to.
4340         [Fixes bug #396141]
4341
4342 2008-06-02  George Giolfan <georgegiolfan@yahoo.com> 
4343
4344         * Form.cs: Enabled managed handling of tool window MDI children. Fixes bug
4345         394311.
4346
4347 2008-06-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4348
4349         * XplatUIX11.cs: When detecting areas obscured in a control by other
4350         toplevel windows while scrolling, return if the control hasn't a 
4351         container form.
4352         Fixes some tests.
4353
4354 2008-05-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4355
4356         * XplatUIX11.cs: Properly detect the visible area of a control being
4357         scrolled (obscured by other winforms controls and any X toplevel
4358         windows), to mark as invalid the requested area to be scrolled that
4359         isn't visible and thus can't be copied.
4360         Fixes #324513.
4361
4362 2008-05-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4363
4364         * ListBox.cs: Compute the precise amount to vertically scroll when
4365         using DrawMode.OwnerDrawVariable.
4366         Patch by jkeymer (j.keymer@gmx.net).
4367
4368 2008-05-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4369
4370         * ComboBox.cs: Use ListBox-like scrollbar values In ComboListBox 
4371         to avoid setting an invalid value for the verticall scrollbar 
4372         when navigating items. And, duh, also remove my silly debug messages
4373         from previous commits.
4374         Fixes #374713.
4375
4376 2008-05-30  Ivan N. Zlatev  <contact@i-nz.net>
4377
4378         * FlatButtonAppearance.cs: Make FlatButtonAppearanceConverter exandable and 
4379         make it MS compatible.
4380
4381 2008-05-30  Ivan N. Zlatev  <contact@i-nz.net>
4382
4383         * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs: 
4384          - Allow the editing of entries even if their parent is read-only.
4385          - Do not render expandable properties read-only.
4386          - Refactor expansion checks form PropertyGrid into PropertyGrid.
4387
4388 2008-05-30  George Giolfan <georgegiolfan@yahoo.com> 
4389
4390         * ScrollBar.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
4391         support for the hover style.
4392
4393 2008-05-29  Andreia Gaita <avidigal@novell.com> 
4394
4395         * ContainerControl.cs: Check for null dead-end when traversing the tree
4396           of parent controls.
4397         
4398           [Fixes #394332, patch by Ernesto Carrea]
4399
4400 2008-05-29  Geoff Norton  <gnorton@novell.com>
4401
4402         * XplatUICarbon.cs: Fix a culture-dependent conversion to be the
4403         constant that it is.  Fixes #393981
4404
4405 2008-05-29  Jonathan Pobst  <monkey@jpobst.com>
4406
4407         * Form.cs: Add a MonoTODO to the AutoScaleBaseSize setter explaining
4408         that the user probably doesn't want to set this.
4409
4410 2008-05-29  Jonathan Pobst  <monkey@jpobst.com>
4411
4412         * ThemeWin32Classic.cs: Don't let the text size be bigger than
4413         the control size for CheckBox/RadioBox.
4414         [Fixes part of bug #394645]
4415
4416 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
4417
4418         * PropertyGrid.cs: Update the state of the sorting buttons in 
4419         the toolbar if PropertySort is set programatically.
4420
4421 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
4422
4423         * GridItemCollection.cs: Add multiple items with conflicting names 
4424         support and also preserve name ordering.
4425         [Fixes #395345]
4426
4427 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
4428
4429         * GridItemCollection.cs: Revert my multiple items with same 
4430         name patch.
4431
4432 2008-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4433
4434         * ScrollBar.cs: Scrollbars should only react to left-clicks, not right
4435         or middle ones.
4436         Fixes part of #393908.
4437
4438 2008-05-28  Jonathan Pobst  <monkey@jpobst.com>
4439
4440         * ToolStripDrowDown.cs: When using the Show () methods that have a
4441         Control parameter, set the menu owner to that Control.
4442         [Fixes bug #394345]
4443
4444 2008-05-28  Ivan N. Zlatev  <contact@i-nz.net>
4445
4446         * PropertyGridTextBox.cs, PropertyGridView.cs: Implement validation.
4447         [Fixes bug #362756]
4448
4449 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
4450
4451         * GridItemCollection.cs: Refactor to support multiple items with the 
4452         same name.
4453         [Fixes bug #394314]
4454
4455 2008-05-27  Jonathan Pobst  <monkey@jpobst.com>
4456
4457         * Control.cs: The 2.0 check for illegal cross thread calls in 
4458         Control.Handle were throwing an exception when we were getting
4459         the Handle in order to invoke correctly.  Created a private
4460         version that does not contain this check.
4461         [Fixes bug #394531]
4462
4463 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
4464
4465         * PropertyGrid.cs: Respect DefaultTabType.
4466
4467 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
4468
4469         * ListView.cs: SPACE selects an item.
4470         [Fixes bug #393023]
4471
4472 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
4473
4474         * ListView.cs: Reset the search string whenever the items are 
4475         modified.
4476         [Fixes bug #393020]
4477
4478 2008-05-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4479
4480         * ListControl.cs: For the first added item PositionChanged is fired
4481         _before_ ItemChanged, which leave us in a temporary invalid state - so
4482         we need to set the selected index from ItemChanged handler *if* we
4483         know that the first item has just been added *and* the items have been
4484         actually added to the ListControl.
4485         Fixes #369048.
4486
4487 2008-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4488
4489         * TabControl.cs: Only clicks with the left button should be
4490         handled.
4491         Fixes #393908.
4492
4493 2008-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4494
4495         * ComboBox.cs: 
4496         * FIleDialog.cs:
4497         * TextBox.cs: Expose an internal method in TextBox to restore the
4498         original context menu, and call it from ComboBox to re-use it in the
4499         combobox containing the file name in FileDialog.cs.
4500         Fixes part of #393775.
4501
4502 2008-05-24  George Giolfan  <georgegiolfan@yahoo.com>
4503
4504         * ThemeVisualStyles.cs: Added support for the hot ComboBox drop down button
4505         style.
4506
4507 2008-05-24  George Giolfan  <georgegiolfan@yahoo.com>
4508
4509         * ComboBox.cs, Theme.cs, ThemeWin32Classic.cs: Added support for the hot drop
4510         down button style.
4511
4512 2008-05-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4513
4514         * ComboBox.cs: Minor correction to previous patch: PageDown should
4515         also *try* to move by one item if the computed offset is negative,
4516         just like the PageUp case.
4517
4518 2008-05-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4519
4520         * ComboBox.cs: When navigating using PageDown/PageUp the navigation
4521         should be done for at least 1 item, and not stay at the same item.
4522         Fixes part of #374713.
4523
4524 2008-05-23  Jonathan Pobst  <monkey@jpobst.com>
4525
4526         * FileDialog.cs: Add a FSEntryComparer, and use it to sort the
4527         directories.  [Fixes bug #393931]
4528
4529 2008-05-22  Andreia Gaita <avidigal@novell.com> 
4530
4531         * WebBrowser.cs: Implement DocumentText. Implement AllowNavigation.
4532           Don't fire events until the initial about:blank page has finished
4533           loading. Clean up events.
4534
4535 2008-05-22  Atsushi Enomoto  <atsushi@ximian.com>
4536
4537         * XplatUIX11.cs : when we call WM_SETFOCUS, call X11Keyboard
4538           FocusIn() too. This should fix the issue on switching
4539           scim keyboards.
4540
4541 2008-05-22  Atsushi Enomoto  <atsushi@ximian.com>
4542
4543         * X11Keyboard.cs : set XIM font size to somewhat reasonable
4544           number (ideally the input textbox size, but that could be
4545           too messy).
4546
4547 2008-05-22  Jonathan Pobst  <monkey@jpobst.com>
4548
4549         * ToolStripTextBox.cs: List for the TextBox's TextChanged and fire
4550         the ToolStripItem's TextChanged.  [Fixes bug #393597]
4551
4552 2008-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4553
4554         * TabControl.cs: When invalidating in SelectedIndex and we need to
4555         inflate to take into account the border of the tabs, make sure that
4556         the invalidated rect doesn't overflow the control bounds, since that
4557         would avoid updating at all.
4558
4559 2008-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4560
4561         * TabControl.cs: Don't substract scroller width from the row width,
4562         since we need to take into account the total width of the control when
4563         calculating the position of the tabs. This avoids showing scroller
4564         when it is actually not needed.
4565         Fixes part of #322325.
4566
4567 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
4568
4569         * ThemeVisualStyles.cs: Added support for TextBoxBase.
4570
4571 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
4572
4573         * RichTextBox.cs, TextBoxBase.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
4574         Extracted TextBoxBase.Draw and Theme.TextBoxBase*.
4575
4576 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
4577
4578         * DataGridView.cs: Only paint the top left header cell if there
4579         are columns.
4580
4581 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
4582
4583         * DataGridView.cs: When binding to a BindingSource, get the underlying
4584         list to bind to.  [Fixes bug #345483]
4585
4586 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
4587
4588         * DataGridView.cs: Do not bind to collection properties.
4589         [Fixes bug #337470]
4590
4591 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
4592
4593         * ThemeVisualStyles.cs: Added support for the hot TrackBar thumb style.
4594
4595 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
4596
4597         * Theme.cs, ThemeWin32Classic.cs, TrackBar.cs: Added support for the hot
4598         thumb style.
4599
4600 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
4601
4602         * ThemeVisualStyles.cs: Added support for ToolTip transparent background.
4603
4604 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
4605
4606         * Theme.cs, ThemeWin32Classic.cs, ToolTip.cs: Added support for transparent
4607         background.
4608
4609 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
4610
4611         * ThemeVisualStyles.cs: Added support for ToolBar hot and hot checked styles.
4612
4613 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
4614
4615         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs: Added support for hot and hot
4616         checked styles.
4617
4618 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
4619
4620         * TabControl.cs: Extended to handle the hot style.
4621
4622 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
4623
4624         * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs, UpDownBase.cs:
4625         Extended UpDownBase code to handle hot and disabled styles.
4626
4627 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
4628
4629         * DataGridView.cs: Handle databinding to generic list type things.
4630         [Fixes bug #325239]
4631
4632 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
4633
4634         * DataGridViewCellCollection.cs: Add a method to find the cell
4635         with the given DataPropertyName.
4636         * DataGridViewColumn.cs: Track if the column was autogenerated or not.
4637         * DataGridViewColumnCollection.cs: Add a method to clear all
4638         autogenerated columns.
4639         * DataGridView.cs: If AutoGenerateColumns is false, don't autogenerate
4640         columns.
4641         [Fixes bug #348082]
4642
4643 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
4644
4645         * DataGridView.cs: Don't try to update the RowTemplate with
4646         a null CellTemplate.
4647
4648 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
4649
4650         * DataGridViewColumn.cs: Allow IsDataBound to be set internally.
4651         * DataGridViewColumnCollection.cs: Ensure OnColumnAdded is called.
4652         * DataGridView.cs: Lots of fixes/enhancements to databinding to
4653         a DataSet.
4654
4655 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
4656
4657         * Control.cs: Remove invalidating implicit child controls when
4658         control is invalidated.  It was causing too many redraws on
4659         controls with implicit scrollbars.
4660         * ListView.cs: Listen to the Invalidated event and invalidate
4661         child controls.
4662
4663 2008-05-20  Andreia Gaita <avidigal@novell.com> 
4664
4665         * WebBrowserBase.cs, WebBrowser.cs: Hook up page loading events
4666         * HtmlDocument.cs: Check for nulls
4667
4668 2008-05-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4669
4670         * Control.cs: In ControlCollection.RemoveInternal, remove the
4671         internal control before calling PerformLayout and OnControlRemoved,
4672         which was leaving us in an invalid state and causing a X error (bad
4673         match). Observe that Remove () call has the same order.
4674         Fixes an X error changing ComboBoxStyle.DropDownStyle.
4675
4676 2008-05-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4677
4678         * TabControl.cs: Don't paint by ourselved and instead let OnPaint
4679         being fired if ControlStyles.UserPaint style is activated.
4680         Fixes #371905.
4681
4682 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
4683
4684         * GridEntry.cs: Don't be so strict when setting the value - 
4685         do not check if what we set is what we get.
4686         [Fixes bug #389245]
4687
4688 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
4689
4690         * XplatUIX11.cs: If there are no timers timeout should be 0
4691         [Fixes bug #363522]
4692
4693 2008-05-19  Jonathan Pobst  <monkey@jpobst.com>
4694
4695         * Control.cs: As a followup to invalidating implicit children when
4696         a control is invalidated, only invalidate them if they are in the
4697         clip rectangle.
4698
4699 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
4700
4701         * ThemeVisualStyles.cs: Implemented partial support for ToolTip.
4702
4703 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
4704
4705         * ThemeWin32Classic.cs: Refactored: Extracted ToolTipDrawBackground.
4706
4707 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
4708
4709         * GroupBoxRenderer.cs: Fixed text area clipping in the Visual Styles case.
4710         * XplatUIWin32.cs: Made Win32DeleteObject public.
4711
4712 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
4713
4714         * GridEntry.cs: Determine HasDefaultValue more strictly by using 
4715         PropertyDescriptor.ShouldSerializeValue.
4716         [Fixes bug #391924]
4717
4718 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
4719
4720         * ThemeVisualStyles.cs: Enabled support for ScrollBar element styles not present
4721         in the classic theme.
4722
4723 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
4724
4725         * ScrollBar.cs: Added FirstButtonEntered, SecondButtonEntered, ThumbEntered,
4726         ThumbPressed.
4727         * Theme.cs, ThemeWin32Classic.cs: Added ScrollBarHasHotElementStyles,
4728         ScrollBarHasPressedThumbStyle.
4729
4730 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
4731
4732         * TextRenderer.cs: Included some methods in the 1.1 profile.
4733
4734 2008-05-19  Jonathan Pobst  <monkey@jpobst.com>
4735
4736         * Control.cs: When we make a control visible, it may have been
4737         previously visible and while it wasn't visible, the z-order of
4738         things may have been shuffled, so the control needs to have its
4739         z-order updated just in case.  [Fixes bug #391518]
4740
4741 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
4742
4743         * ThemeVisualStyles.cs: Added support for GroupBox.
4744
4745 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
4746
4747         * GroupBoxRenderer.cs: Included in the 1.1 profile.
4748
4749 2008-05-16  Atsushi Enomoto  <atsushi@ximian.com>
4750
4751         * XplatUIX11.cs, X11Keyboard.cs : redoing r103060 with fix for
4752           bug #389996; XSelectInput() behaved as mouse handler robber,
4753           so remove extra call to it.
4754
4755 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
4756
4757         * Control.cs: Simplify ControlCollection.Contains method.
4758
4759 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
4760
4761         * DataGridViewRow.cs: Implement GetPreferredSize.
4762
4763 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
4764
4765         * DataGridViewComboBoxCell.cs: Don't declare text twice.  Fixes build.
4766
4767 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
4768
4769         * DataGridViewComboBoxCell.cs: Implement some NIEX stuffs, better
4770         painting and edit control fixes.
4771
4772 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
4773
4774         * DataGridView.cs, DataGridViewCell.cs: Work around some external
4775         checks to make sure we are in an actual row/col for top left header cell.
4776         * DataGridViewTopLeftHeaderCell.cs: Implement some NIEX's.
4777
4778 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
4779
4780         * Control.cs: Use long instead of int when handling WParam from
4781         mousewheel scrolling.  Int was overflowing on Win64.
4782
4783 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
4784
4785         * FlowLayoutPanel.cs, ScrollableControl.cs: We need to layout the
4786         flow panel without scrolling first, and then calculate the 
4787         scrolling based on the new layout.  [Fixes bug #390149]
4788
4789 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
4790
4791         * ListBox.cs: Invalidate after scrolling up when selected index
4792         changes.  [Fixes bug #390151]
4793
4794 2008-05-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4795
4796         * ComboBox.cs: When setting mode to Simple *and* height hasn't been
4797         set, default height to 150. I tried first with DefaultSize, but this
4798         is not generating a SetBoundsCore call before handle creation time, so
4799         we can take it into account. This is just what .net does.
4800
4801 2008-05-13  Jonathan Pobst  <monkey@jpobst.com>
4802
4803         * XplatUIX11.cs, X11Keyboard.cs: Had to revert eno's r103060,
4804         as it broke some stuff.  Calberto is filing a bug for eno to
4805         work with.
4806
4807 2008-05-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4808
4809         * ComboBox.cs: When handling PageDown pressed event, set SelectedIndex
4810         to 0 is the current value is -1, and if style is not Simple, just
4811         return, like .net does.
4812         Fixes part of #374713.
4813
4814 2008-05-13  Jonathan Pobst  <monkey@jpobst.com>
4815
4816         * ThemeWin32Classic.cs, ThemeVisualStyles.cs: When calculating
4817         progress bar stuffs, use doubles instead of ints to prevent
4818         overflow.  [Fixes bug #389798]
4819
4820 2008-05-13  Atsushi Enomoto  <atsushi@ximian.com>
4821
4822         * XplatUIX11.cs, X11Keyboard.cs :
4823           Significant refactoring on XIM support. Now IM engine UI
4824           should show up, at mostly-correct preedit position.
4825           - Eliminated use of FocusWindow, as it is never mapped
4826             and hence blocks correct preedit position. XIC is now
4827             created per window, and it must be destroyed too when
4828             the window is destroyed.
4829           - WM_QUIT messages should not be filtered even when hwnd
4830             is zombie. Filtering it could cause endless loop.
4831           - Preedit position must move only when the window is alive.
4832           - Make it IDisposable and make sure to release XIM/XICs.
4833
4834 2008-05-13  Atsushi Enomoto  <atsushi@ximian.com>
4835
4836         * Timer.cs, Control.cs, Form.cs, ApplicationContext.cs,
4837           XplatUIX11.cs, XplatUIWin32.cs :
4838           fix for bug #325033 and #387693;
4839           - WM_QUIT should not be sent when no running application
4840             exists.
4841           - SetTimer/KillTimer (especially on win32) should be
4842             invoked for the window that the timer is/will_be attached.
4843           - There could be unattached timers to a window when it's
4844             started. For those timers, hold pending timers and when
4845             a window is mapped, attach them to it.
4846           - WaitForHwndMessage() could run into loop when
4847             WM_SHOWWINDOW is handled before this method is called.
4848             So, strictly check wm_showwindow state.
4849           - Tick handler should not be invoked while one Tick handler
4850             call is still running (introduced Busy state).
4851
4852 2008-05-13  Andreia Gaita <avidigal@novell.com> 
4853
4854         * WebBrowserBase.cs: Override Internal alternative methods for
4855           SetBoundsCore and OnResize instead of the protected ones.
4856         * Control.cs: Move SetBoundsCore and OnResize implementations to
4857           SetBoundsCoreInternal and OnResizeInternal, so they can be
4858           overriden internally (WebBrowserBase needs to catch them but can't
4859           override the protected methods without api compat problems)
4860
4861 2008-05-13  Andreia Gaita <avidigal@novell.com> 
4862
4863         * WebBrowserBase.cs: Hiding away non-public overrides for api compat
4864
4865 2009-05-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4866
4867         * Binding.cs:
4868         * ListView.cs: Remove debug messages.
4869
4870 2008-05-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4871
4872         * ComboBox.cs: Don't do any calculation for simple mode if the listbox
4873         area is empty. Also calculate scrollbars in Simple mode based in area
4874         height and total number of items, not in MaxDropDownItems.
4875         Fixes part of #371991.
4876
4877 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
4878
4879         * PictureBox.cs: Always invalidate on resize.  Fixes an app for jhill.
4880
4881 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
4882
4883         * BindingSource.cs: GetListSortDescription is not public.
4884
4885 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
4886
4887         * WebBrowser.cs, WebBrowserBase.cs, WebBrowserSiteBase.cs: corcompare.
4888
4889 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
4890
4891         * HtmlElement.cs: Fix parameter names to match MS.
4892         * HtmlWindowCollection.cs: Should not be sealed.
4893
4894 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
4895
4896         * ThemeWin32Classic.cs: Always draw the scrollbar area under the thumb
4897         button, because the thumb button will not get drawn if the scrollbar
4898         is disabled.  [Fixes bug #389262]
4899
4900 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
4901
4902         * ListBox.cs: Handle End key for multi-column listboxen.
4903         [Fixes bug #389266]
4904
4905 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
4906
4907         * ListBox.cs: Fix algorithm to determine which column our item is in.
4908         [Fixes bug #389265]
4909
4910 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
4911
4912         * ListBox.cs: Invalidate when the listbox is resized.
4913         [Fixes bug #389256]
4914
4915 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
4916
4917         * ListBox.cs: There is always at least one row in the ListBox (if
4918         we are doing these calculations.)  [Fixes bug #389253]
4919
4920 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
4921
4922         * ListBox.cs: There is always at least one column in the ListBox.
4923         [Fixes bug #389250]
4924
4925 2008-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4926
4927         * ComboBox.cs: When handle is created call UpdateComboBoxBounds to
4928         ensure in Simple mode that the height is exactly the requested one.
4929         Also add the ComboBoxListControl to the controls collection in Simple
4930         mode even if handle hasn't been created.
4931         Fixes part of #371991.
4932
4933 2008-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4934
4935         * ComboBox.cs: For ComboListBox control -specially in Simple mode-, give focus to
4936         our ComboBox owner instead of giving it back to the previous control (
4937         as done in other controls). Also remove the empty override of Select
4938         method, since we want to be selected *and* give focus to our owner.
4939         This should let the user do keys-navigation in Simple mode. 
4940
4941 2008-05-10  Geoff Norton  <gnorton@novell.com>
4942
4943         * XplatUICarbon.cs: Dont use HIViewScrollRect as it's causing painting
4944         problems with rapid scrolling of treeviews. Fixes #381084
4945
4946 2008-05-10  Geoff Norton  <gnorton@novell.com>
4947
4948         * XplatUICarbon.cs: Deactivate the active window before
4949         activating the desired window.  Completes fixing #386504
4950
4951 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4952
4953         * ListView.cs: When calculating scrollbars, set horizontal scroll bar
4954         SmallChange to the item size width plus the padding, to match .net.
4955
4956 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4957
4958         * FileDialog.cs: Apply the custom filter typed by the user in the file
4959         name combobox as much as possible while navigating in the file dialog.
4960         Fixes #385261.
4961
4962 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4963
4964         * Binding.cs: Actually use NullValue if the retrieved value of
4965         data source is null or DBNull. Makes a test pass.
4966
4967 2008-05-09  Jonathan Pobst  <monkey@jpobst.com>
4968
4969         * ErrorProvider.cs, Form.cs: Get icons from ResourceImageLoader.
4970         * MimeIcon.cs: Provide a way to get icons from resources.
4971
4972 2008-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4973
4974         * Binding.cs: When the value retrieved from the control to be assigned
4975         to the data source is null, actually use the 2.0 DataSourceNullValue
4976         value. Make pass a data binding test.
4977
4978 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
4979
4980         * Control.cs: We need to invalidate implicit children even when
4981         invalidate is called with invalidatechildren = false.  (Implicit
4982         children are really part of the parent.)
4983         * ListView.cs: Double-buffer internal child controls for less
4984         flicker.
4985         * ThemeWin32Classic.cs: Remove an extra nested loop in drawing
4986         owner ListView subitems for greatly increased performance.
4987         [Fixes bug #388477]
4988
4989 2008-05-08  Carlos Alberto Cortez <calebrto.cortez@gmail.com>
4990
4991         * FileDialog.cs: When the user types a wildcard character in the
4992         filename combobox, update the contents of the folder using the text as
4993         a filter.
4994         Fixes part of #385261.
4995
4996 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
4997
4998         * ListBox.cs: Various fixes for MultiColumn listboxen.
4999         [Fixes bug #388114]
5000
5001 2008-05-08  Andreia Gaita <avidigal@novell.com> 
5002
5003         * HtmlElement.cs: Implement Style property
5004
5005 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
5006
5007         * ListBox.cs: Respect checkboxes when measuring item size.
5008         * ThemeWin32Classis.cs: When drawing list items, don't draw
5009         text outside of the item's bounds to prevent overlapping.
5010         (.Net actually overlaps, but that's just silly.)
5011         [Fixes bug #388117]
5012
5013 2008-05-08  Everaldo Canuto  <ecanuto@novell.com>
5014
5015         * NotifyIcon.cs: Call SetForegroundWindow before show context menu. Thanks
5016         Gert Driesen. Fixes bug #324830. 
5017
5018 2008-05-07  Everaldo Canuto  <ecanuto@novell.com>
5019
5020         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: SetForegroundWindow
5021         method implemented.
5022
5023 2008-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5024
5025         * BindingSource.cs: When calling IsSynchronized, return the value of
5026         the related IList list.
5027
5028 2008-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5029
5030         * ListBindingHelper.cs: Fix some bits in GetListItemProperties, to
5031         make a test pass.
5032
5033 2008-05-07  Jonathan Pobst  <monkey@jpobst.com>
5034
5035         * DataGridView.cs: Implement PageUp/PageDown keys.  Extend keyboard
5036         navigation to scroll the grid if the current cell is not visible.
5037
5038 2008-05-07  Andreia Gaita <avidigal@novell.com> 
5039
5040         * HtmlElement.cs: Implement TabIndex
5041
5042 2008-05-07  Jonathan Pobst  <monkey@jpobst.com>
5043
5044         * ListBox.cs: Respect ScrollAlwaysVisible and HorizontalScrollbar
5045         properties, even when there are no items.
5046         [Fixes bug #387611]
5047
5048 2008-05-07  Ivan N. Zlatev  <contact@i-nz.net>
5049
5050         * NativeWindow.cs: Add support for multiple handles per window.
5051         * NativeWindows.cs, LibSupport.cs, Control.cs, XplatUIX11GTK.cs, 
5052         XplatUIX11.cs, X11Display.cs: Do not access NativeWindow.windows_collection 
5053         directly - use FromHandle instead.
5054         [Fixes bug #374660]
5055
5056 2008-05-07  Andreia Gaita <avidigal@novell.com> 
5057
5058         * HtmlElement.cs: Implement InnerHTML setter
5059
5060 2008-05-07  Andreia Gaita <avidigal@novell.com> 
5061
5062         * HtmlDocument.cs: Implement Focused
5063
5064 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5065
5066         * BindingSource.cs: Minor fixes to the the ApplySort and Remove sort
5067         methods, as well as add messages to the exceptions.
5068
5069 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5070
5071         * BindingSource.cs: Setting DataSource should only reset DataMember if
5072         the previous value was null (make pass a not working test).
5073
5074 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5075
5076         * BindingSource.cs: When EndInit call is postponed and is called until
5077         DataSource.EndInit is called, remove the handler for data source.
5078
5079 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
5080
5081         * ToolStripManager.cs: Don't use IsAlive, race condition, etc. etc.
5082
5083 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
5084
5085         * ToolStripManager.cs: Store references to toolstrips as
5086         weak references so they do not prevent forms from getting collected.
5087         [Fixes bug #386483]
5088
5089 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
5090
5091         * TrackBar.cs: We can't set ResizeRedraw because it isn't set
5092         on .Net.  So do the same thing in WndProc.
5093
5094 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
5095
5096         * TrackBar.cs: Commit patch from Andy Hume that corrects
5097         the clickable areas to better match .Net.
5098         [Fixes bug #387074]
5099
5100 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
5101
5102         * TrackBar.cs: Commit patch from Andy Hume that adds the
5103         ResizeRedraw control flag so the track bar repaints itself
5104         when it is resized.  [Fixes bug #387072]
5105
5106 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
5107
5108         * TrackBar.cs: Commit patch from Andy Hume that adds better
5109         support for keyboard navigation when the TrackBar is vertical.
5110         [Fixes bug #387071]
5111
5112 2008-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5113
5114         * BindingSource.cs: Implement ISupportInitializeNotification support.
5115
5116 2008-05-06  George Giolfan  <georgegiolfan@yahoo.com>
5117
5118         * ThemeVisualStyles.cs: Added support for ToolBar.
5119
5120 2008-05-06  George Giolfan  <georgegiolfan@yahoo.com>
5121
5122         * ToolBar.cs: Made the Vertical property internal.
5123
5124 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
5125
5126         * ThemeVisualStyles.cs: Added support for TrackBar.
5127
5128 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
5129
5130         * ThemeWin32Classic.cs: Refactored: Extracted TrackBarGetThumbSize,
5131         TrackBarDrawVerticalTrack, TrackBarDrawVerticalThumbRight,
5132         TrackBarDrawVerticalThumbLeft, TrackBarDrawVerticalThumb,
5133         TrackBarGetVerticalTickPainter, TrackBarDrawHorizontalTrack,
5134         TrackBarDrawHorizontalThumbBottom, TrackBarDrawHorizontalThumbTop,
5135         TrackBarDrawHorizontalThumb, TrackBarGetHorizontalTickPainter.
5136
5137 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
5138
5139         * ThemeVisualStyles.cs: Added support for UpDownBase.
5140
5141 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
5142
5143         * Theme.cs, ThemeWin32Classic.cs, UpDownBase.cs: Refactored:
5144         Extracted Theme.UpDownBaseDrawButton.
5145
5146 2008-05-05  Jonathan Pobst  <monkey@jpobst.com>
5147
5148         * ToolStrip.cs, ToolStripDropDownItem.cs: Make sure toolstrips are
5149         removed from the static toolstrips collection in ToolStripManager
5150         when they are disposed.  Provides a workaround for bug #386483.
5151
5152 2008-05-05  Ivan N. Zlatev  <contact@i-nz.net>
5153
5154         * GridEntry.cs: Read-only properties with Editor with 
5155         UITypeEditorEditStyle.Modal shouldn't be read-only in the PropertyGrid.
5156         [Fixes bug #384184]
5157
5158 2008-05-05  Jonathan Pobst  <monkey@jpobst.com>
5159
5160         * MenuStrip.cs, ToolStrip.cs: Guard against an NRE when pressing
5161         the menu key and there are no items on the menu.
5162         [Fixes bug #386644]
5163
5164 2008-05-05  Sebastien Pouliot  <sebastien@ximian.com>
5165
5166         * Control.cs: Avoid calling ToString on a string.
5167         * Form.cs: Avoid calling ToString on a string. Found using Gendarme.
5168         * GroupBox.cs: In FlatStyle property throw, not just create, the 
5169         exception. Avoid calling ToString on a string.
5170         * ProgressBar.cs: Avoid calling ToString on a string. 
5171         * ScrollBar.cs: Avoid calling ToString on a string. 
5172         [All issues were found using Gendarme]
5173
5174 2008-05-05  Everaldo Canuto  <ecanuto@novell.com>
5175
5176         * NotifyIcon.cs: Prevent click events to be trigger after double click 
5177         events. Fixes remaining issues of bug #324832.
5178
5179 2008-05-05  Everaldo Canuto  <ecanuto@novell.com>
5180
5181         * NotifyIcon.cs: Trigger click and mouseclick events after mouseup event
5182         to mimic win32 behavior. Partially fixes bug #324832.
5183
5184 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5185
5186         * BindingSource.cs: Implement Find methods.
5187
5188 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5189
5190         * BindingSource.cs: Implement Sort, ApplySort overloads, and
5191         RemoveSort methods.
5192
5193 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5194
5195         * ListBindingHelper.cs: When calling GetListItemProperties and the
5196         passed object is ITypedList, return the result of
5197         ITypedList.GetItemProperties instead.
5198
5199 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
5200
5201         * LinkLabel.cs: Set default value of name on constructor of Link class
5202         only for 2.0 profile.
5203
5204 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
5205
5206         * LinkLabel.cs: Fix implementation of LinkCollection.LinksAdded property.
5207         Fixes remaining issues of bug #346154.
5208
5209 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
5210
5211         * LinkLabel.cs: Set a default value for name on internal contructor of
5212         Link class. It fixes assert B5 of LinkCollectionTest.Constructor1.
5213
5214 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
5215
5216         * LinkLabel.cs: Move links collection from LinkCollection to LinkLabel
5217         and refer all instances to owner.links. Partially fixes #346154.
5218
5219 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5220
5221         * LinkLabel.cs: Fix linkarea values for empty text, must have start and 
5222         length equal zero. Also called CreateLinkPieces in constructor. It fixes
5223         the LinkLabel test 'TestLinkArea'.
5224
5225 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5226
5227         * Form.cs: Remove menu before close form to prevent form to be not gaced.
5228         [Fixes #386460]
5229
5230 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5231
5232         * MenuAPI.cs: Dispose popup window after hide. Thanks to Jesse Jones.
5233         [Fixes #386463]
5234
5235 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5236
5237         * MenuAPI.cs: Implemented keyboard navigation for ContextMenu.
5238         [Fixed bug #357004]
5239
5240 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5241
5242         * MenuAPI.cs: Remove unused ProcessCmdKey method.
5243
5244 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5245
5246         * MenuAPI.cs: Prevent NRE in menu deactivation when shortcut is used. 
5247         [Fixes bug #375398]
5248
5249 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5250
5251         * MenuAPI.cs: Enable implicit mnemonics for menus. Fixes remaining issues
5252         of bug #367492.
5253
5254 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5255
5256         * MenuAPI.cs: Check if mouse down comes from menu, we need it because
5257         sometimes we open a conext menu on mouse down of some controls and the mouse
5258         up is dispatched to menu and dont need to. It fix remaining issues of 
5259         #363711 and other problems related to menu mouse click events.
5260
5261 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
5262
5263         * MonthCalendar.cs: Implemented "Go to today" context menu, also changed
5264         some var names to better fit changes, now we have month_menu and today_menu
5265         vars. Fixes bug #363711.
5266
5267 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
5268
5269         * MonthCalendar.cs: Handle every right mouse click to open context menu,
5270         right now the default month menu but it will be change to have "Go to today"
5271         menu.
5272
5273 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5274
5275         * FileDialog.cs, MaskedTextBox.cs, OpenFileDialog.cs: corcompare.
5276
5277 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
5278
5279         * ThemeWin32Classic.cs: Fix MonthCalendar arrows drawing.
5280
5281 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
5282
5283         * ThemeVisualStyles.cs: Added support for TreeView.
5284
5285 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
5286
5287         * Theme.cs, ThemeWin32Classic.cs, TreeView.cs: Refactored:
5288         Moved TreeView.DrawNodePlusMinus to Theme.TreeViewDrawNodePlusMinus.
5289
5290 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5291
5292         * OpenFileDialog.cs: Implement 2.0 SP1 stuffs.
5293
5294 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5295
5296         * FileDialogCustomPlace.cs, FileDialogCustomPlacesCollection.cs:
5297         Implement 2.0 SP1 stuffs.
5298
5299 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5300
5301         * FileDialog.cs: Implement 2.0 SP1 stuffs.
5302
5303 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5304
5305         * Control.cs, ContainerControl.cs, DataGridView.cs, TextBoxBase.cs:
5306         Implement CanEnableIme property. (2.0 SP1)
5307
5308 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5309
5310         * BindingManagerBase.cs, PropertyManager.cs: Hide GetItemProperties
5311         from the 2.0 API.
5312
5313 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5314
5315         * Control.cs: Provide an internal way for a control to override
5316         the setting of Height.
5317         * DateTimePicker.cs: Remove SetBoundsCore from 2.0 profile,
5318         set height using new method.
5319
5320 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
5321
5322         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawMixedCheckBox.
5323
5324 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
5325
5326         * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
5327         ControlPaint.DrawMixedCheckBox now calls Theme.CPDrawMixedCheckBox.
5328
5329 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
5330
5331         * ThemeVisualStyles.cs: Added support for StatusBar.
5332
5333 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5334
5335         * DataObject.cs: Add the other IDataObject interface.
5336
5337 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
5338
5339         * ThemeWin32Classic.cs: Refactored: extracted DrawStatusBarBackground,
5340         DrawStatusBarSizingGrip, DrawStatusBarPanelBackground.
5341
5342 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5343
5344         * DataGridViewCheckBoxCell.cs, DataGridViewImageCell.cs: Fix parameter names.
5345         * ListView.cs: Hide non-public API.
5346         * MaskedTextBox.cs: Remove extra attribute.
5347
5348 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5349
5350         * DataGridViewImageCell.cs: Use formatted value instead of value
5351         to calculate preferred size.
5352
5353 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
5354
5355         * ListBox.cs: Move some initialization around so that selected_indices
5356         is not accessed before it is created.
5357
5358 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
5359
5360         * InputLanguageCollection.cs: Implement the collection better.
5361         [Fixes bug #385506]
5362
5363 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
5364
5365         * ToolStripDropDownItem.cs: Get the correct event object for
5366         DropDownItemClicked.
5367         * ToolStripMenuItem.cs: Raise DropDownItemClicked on our owner.
5368         [Fixes bug #385475]
5369
5370 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
5371
5372         * DataGridViewRowCollection.cs: We don't currently support shared 
5373         rows.  Should fix test failures caused by previous commit.
5374
5375 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
5376
5377         * DataGridViewRow.cs: Fixes for cloning the row, ensure header cell's
5378         datagridview gets set.  Only paint cells in visible columns.
5379         * DataGridViewCell.cs: Draw border after cell content.
5380         * DataGridView.cs: Invalidate after setting some properties.  Only
5381         use visible columns.  Fit hit test bug with areas in the col/row header
5382         area but not in a row or col.  Implement UpdateCell/Row methods.
5383
5384 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
5385
5386         * DataGridViewElement.cs: Don't throw NIEX.
5387         * DataGridViewColumnHeaderCell.cs: Draw error icons for top left header cells.
5388         * DataGridViewColumnDesignTimeVisibleAttribute.cs: Don't throw NIEX.
5389         * DataGridViewCheckBoxColumn.cs: Implement ToString.
5390         * DataGridViewCheckBoxCell.cs: Allow DBNull as a value.
5391         * DataGridViewCell.cs: Don't raise CellFormatting for RowHeader cells,
5392         if the user filled in the formatting Value, use it.
5393
5394 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
5395
5396         * DataGridViewTextBoxCell.cs: Fix for objects that cannot be cast
5397         to a string.
5398
5399 2008-04-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5400
5401         * BindingSource.cs: Some corrections to Filter property, as well as
5402         setting it for our list when resetting it.
5403
5404 2008-04-29  Jonathan Pobst  <monkey@jpobst.com>
5405
5406         * ScrollBar.cs: Don't let dragging the thumb grip set the value greater
5407         than the maximum.  Fixes reopened bug #384182.
5408
5409 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
5410
5411         * ToolStripDropDown.cs: Fix offscreen position for DropDown itens.
5412         Fixes remaining issues of #367490.
5413
5414 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
5415
5416         * ToolStripDropDown.cs: Screen.Bound dont return right value then use 
5417         SystemInformation.WorkingArea to get max_screen value.
5418
5419 2008-04-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5420
5421         * BindingSource.cs: Implement Filter and RemoveFilter.
5422
5423 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
5424
5425         * MenuAPI.cs: Prevent sub-menu positon to be less than zero.
5426
5427 2008-04-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5428
5429         * X11Dnd.cs: When trying to convert data and we know we started the
5430         dnd loop, don't try to use the cached data if the loop is not running,
5431         which means that the data has been resetted.
5432         Fixes #378191.
5433
5434 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
5435
5436         * MenuAPI.cs: Force first menu subitem to show from left to right to mimic
5437         win32 behavior.
5438
5439 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
5440
5441         * MenuAPI.cs: Check the screen limits before show sub-menus and prevent
5442         it to drawn off screen edge. Fixes bug #367490.
5443
5444 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
5445
5446         * MenuAPI.cs: In PopupWindow.RefreshItems uses a temp point var to store
5447         menu position to have only one assignment of Location var.
5448
5449 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
5450
5451         * MenuAPI.cs: Implement the right key for sub-menus. Thanks Ernesto Carrea
5452         for this patch. Fixes bug #384115.
5453
5454 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
5455
5456         * ScrollBar.cs: If SmallChange is larger than LargeChange, make them
5457         the same.  If LargeChange is zero, set a minimum size for the scroll
5458         thumb grip.  [Fixes bug #384182]
5459
5460 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
5461
5462         * TextBoxTextRenderer.cs: Don't turn &A into a prefix for textboxen.
5463         [Fixes bug #384181]
5464
5465 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
5466
5467         * ListBox.cs: Math.Min should be Math.Max.  [Fixes bug #384183]
5468
5469 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
5470
5471         * ThemeVisualStyles.cs: Added partial support for ScrollBar (based on the
5472         patch from Ernesto).
5473
5474 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
5475
5476         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawComboButton.
5477
5478 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
5479
5480         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawButton.
5481
5482 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
5483
5484         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawRadioButton.
5485
5486 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
5487
5488         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawScrollButton.
5489
5490 2008-04-27  George Giolfan  <georgegiolfan@yahoo.com>
5491
5492         * ThemeVisualStyles.cs: Added support for ButtonBase.UseVisualStyleBackColor.
5493
5494 2008-04-27  Andreia Gaita <avidigal@novell.com> 
5495
5496         * HtmlWindow.cs, HtmlHistory.cs: Throw on DomHistory getter (it's
5497           supposed to return a reference to an mshtml interface, which we
5498           don't support).
5499         * HtmlElement.cs: Throw on DomElement getter (it's supposed to return a
5500           reference to an mshtml interface, which we don't support). Code
5501           formatting cleanup.
5502         * HtmlDocument.cs: Add DefaultEncoding getter implementation. Throw on
5503           DomDocument getter (it's supposed to return a reference to an
5504           mshtml interface, which we don't support). Code formatting cleanup.
5505
5506 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5507
5508         * ListView.cs: Ouch, forgot to commit.
5509
5510 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5511
5512         * ListView.cs: 
5513         * ThemeWin32Classic.cs: Fire the -until now- forgotten CacheVirtualItems event.
5514
5515 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5516
5517         * ListView.cs: When calculating box selection for virtual mode, don't
5518         look for intersection with item's text, but item bounds, since that
5519         would mean read ListViewItem's text for _every_ item, and that's
5520         something we just can't do in virtual mode (items are only requested
5521         when drawn).
5522
5523 2008-04-26  George Giolfan  <georgegiolfan@yahoo.com>
5524
5525         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCaptionButton and
5526         partial support for managed windows (based on the patch from Ernesto).
5527
5528 2008-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5529
5530         * ListView.cs: When doing a key search use FindItemWithText method
5531         instead of doing the search by ourselves, this way we avoid
5532         duplicating the code and also we handle the special case for virtual
5533         mode. To achieve that make our private overload of FindItemWithText
5534         internal and also have a 'roundtrip' parameter.
5535
5536 2008-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5537
5538         * ListView.cs: When doing the layout don't request the
5539         ListViewItem instance if we are in virtual mode (since we can't request it
5540         until the item is actully drawn).
5541
5542 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
5543
5544         * ThemeVisualStyles.cs: Added support for ProgressBar (based on the patch 
5545         from Ernesto).
5546
5547 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
5548
5549         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCheckBox (based on 
5550         the patch from Ernesto).
5551
5552 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
5553
5554         * ThemeEngine.cs: Added code to select ThemeVisualStyles.
5555         * ThemeVisualStyles.cs: Added.
5556
5557 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
5558
5559         * IDeviceContext.cs: Added a missing using.
5560
5561 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
5562
5563         * ButtonBase.cs: Made IsDefault protected internal.
5564         * ButtonRenderer.cs: Made GetPushButtonRenderer(PushButtonState) internal.
5565
5566 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
5567
5568         * Application.cs: Included VisualStyles-related members in the 1.1 profile.
5569         * ButtonRenderer.cs, CheckBoxRenderer.cs, Padding.cs, PaddingConverter.cs,
5570         RadioButtonRenderer.cs: Included in the 1.1 profile.
5571         * IDeviceContext.cs: Added.
5572         * TextRenderer.cs: Included a member in the 1.1 profile.
5573
5574 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
5575
5576         * ThemeWin32Classic.cs: Added ShouldPaintFocusRectangle(ButtonBase).
5577
5578 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
5579
5580         * ErrorProvider.cs: Make the error icons come after the control
5581         they refer to.  It isn't the way the MS does it, but its better
5582         than what we were doing.  See bug #368587.
5583
5584 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
5585
5586         * InputLanguage.cs, InputLanguageCollection.cs: Apply patch
5587         from Eric Albright that lazy loads the input language as ensures
5588         everything gets properly initialized.  Fixes bug #373871.
5589
5590 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
5591
5592         * ToolStrip.cs: Don't use ToolStripControlHosts when figuring up
5593         implicit mnemonics.  [Fixes bug #383000]
5594
5595 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5596
5597         * X11Dnd.cs: When canceling the operation, automatically restore the
5598         default cursor - normally the default cursor is restored when the
5599         mouse buttons are released, but we should be able to restore it even
5600         if the buttons are still pressed (for example, when pressing ESC to
5601         cancel).
5602         Fixes #381894.
5603
5604 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5605
5606         * X11Dnd.cs: When starting a new drad and drop operation, set control
5607         field to null, just as the other fields, to avoid calling any
5608         operation on a previous control. Also, when calling DndLeave on a
5609         control, set it to null, thus we don't fire that event multiple times
5610         for that control.
5611         Fixes #209264.
5612
5613 2008-04-23  Geoff Norton  <gnorton@novell.com>
5614
5615         * XplatUICarbon.cs: Ensure that we have a valid hwnd before accessing
5616         the whole_window object.  Fixes #377084.
5617
5618 2008-04-23  Andreia Gaita <avidigal@novell.com> 
5619
5620         * HtmlElement.cs: Implement RaiseEvent (event injection into the
5621           embedded browser)
5622
5623 2008-04-23  Jonathan Pobst  <monkey@jpobst.com>
5624
5625         * DataGridViewColumnHeaderCell.cs: Implement some NIEX stuffs.
5626
5627 2008-04-23  Andreia Gaita <avidigal@novell.com> 
5628
5629         * HtmlElement.cs, HtmlDocument.cs: Implement javscript method
5630           invocation
5631
5632 2008-04-23  Andreia Gaita <avidigal@novell.com> 
5633
5634         * HtmlElement.cs, HtmlDocument.cs: Implement custom event handler
5635           attaching/detaching
5636
5637 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5638
5639         * X11Dnd.cs: When the drop was cancelled, or could just not be
5640         performed, return DragDropEffect.None always (match .net).
5641
5642 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
5643
5644         * DataGridViewRowHeaderCell.cs: Fill in some NIEX stuff.
5645
5646 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
5647
5648         * DataGridViewRowCollection.cs: Revert something I didn't mean to commit.
5649
5650 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
5651
5652         * DataGridView.cs: Add support for error icon tool tips.
5653         * DataGridViewCell.cs: ErrorIconBounds needs to call GetErrorIconBounds.
5654         * DataGridViewRowHeaderCell.cs: Need internal way to get ErrorIconBounds.
5655
5656 2008-04-22  Ivan N. Zlatev  <contact@i-nz.net>
5657
5658         * X11Structs.cs: Add mouse button masks enum.
5659         * XplatUIX11.cs, Hwnd.cs: Send WM_ENTERSIZEMOVE and 
5660         WM_EXITSIZEMOVE only once at the beginning and at the end of the 
5661         form resize/move operation instead of for each step of it.
5662         [Fixes bug #346529 for the x11 backend]
5663
5664 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
5665
5666         * DataGridView*: Implement support for drawing error icons.
5667
5668 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
5669
5670         * TreeView.cs: Make vbar and hbar internal.
5671         * TreeNode.cs: If collapsing the node removes one of the TreeView's
5672         scrollbars, invalidate the whole thing.
5673         [Fixes bug #382001]
5674
5675 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
5676
5677         * TreeView.cs: Calling Sort() sets Sorted = true.
5678         * TreeNodeCollection.cs: Try to find the owner TreeView to determine
5679         if the nodes need to be sorted.
5680         [Fixes bug #382028]
5681
5682 2008-04-21  Ivan N. Zlatev  <contact@i-nz.net>
5683
5684         * Form.cs: Fire SizeChanged for both when the form is minimized and 
5685         restored.
5686         * XplatUIX11.cs: Instead of tracking minimization on UnmapNotify track it 
5687         on PropertyNotify of _NET_WM_STATE. Much much cleaner.
5688
5689 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
5690
5691         * ComboBox.cs: If the combobox is disabled, draw a disabled
5692         background before painting anything else.
5693         [Fixes bug #381729]
5694
5695 2008-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5696
5697         * X11Dnd.cs: Wehn the drag and drop operation is cancelled don't
5698         forget to send a Leave event to the target window - just as .net does
5699         when cancelling dnd operations.
5700
5701 2008-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5702
5703         * X11Dnd.cs: Stop tracking messages as part of the dnd operation as
5704         soon as possible - this happens when we send the drop message to the
5705         target window. This way we avoid firing any DragOver _after_ drop finished.
5706         Fixes #378179.
5707
5708 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
5709
5710         * XplatUIX11.cs: Send WM_WINDOWPOSCHANGED when a toplevel is minimized.
5711         * Form.cs: Handle form minimization as a special state, where size doesn't 
5712         change, but we have to fire SizeChanged.
5713         [Fixes bug #325122 for the win32 and x11 backends]
5714
5715 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
5716
5717         * XplatUIX11.cs: Win32 doesn't send WM_(KILL|SET)FOCUS 
5718         if the handle is disabled.
5719         [Fixes bug #371751]
5720
5721 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
5722
5723         * XplatUIX11.cs: Enable Maximize/Minimize/Close ability (not decorations) 
5724         for forms with FormBorderStyle.None.
5725         [Fixes bug #349571]
5726
5727 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
5728
5729         * XplatUIX11.cs: Implement support for WM_ENTERSIZEMOVE and 
5730         WM_EXITSIZEMOVE.
5731         [Fixes bug #346529 for the X11 backend]
5732
5733 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
5734
5735         * XplatUIX11.cs: 
5736           - Send a mouse Enter message after say dragging the mouse with a 
5737           button down and then release it in another client.
5738           - Reset the cursor to prevent X11 from remembering it and setting it 
5739           before the control gets WM_SETCURSOR.
5740           - Qeueue a mouse move after a mouse enter like win32.
5741           [Fixes bug #323234]
5742
5743 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
5744
5745         * XplatUIX11.cs: Implement limited support for WM_SYSCOMMAND. 
5746         It's sent when the form gets moved, resized, closed.
5747         * XplatUIStructs.cs: Add SystemCommands enum for WM_SYSCOMMAND.
5748         [Fixes bug #359193 for X11]
5749
5750 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
5751
5752         * Form.cs: Add a ValidateChildren for the 1.1 profile. Fixes 
5753         the build.
5754
5755 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
5756
5757         * ListView.cs: Move CalculateDetailsGroupItemsCount to the NET_2_0 
5758         group. Fixes the 1.1 build.
5759
5760 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5761
5762         * ListView.cs: Use display indexes for selection in Details view, as
5763         well as do the proper layout based on display indexes for that view
5764         too.
5765
5766 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5767
5768         * ListView.cs: Focused item information is now stored as a display
5769         index, and display indexes are used all over the place for selection,
5770         instead of ListViewItem.Index values, which doesn't give us enough
5771         information to modify the selection in groups mode, and was broken.
5772
5773 2008-04-18  Ivan N. Zlatev  <contact@i-nz.net>
5774
5775         * Control.cs: Do not fire MouseDown if validation of the control has 
5776         failed.
5777         * Form.cs: Validate the form before closing.
5778         [Fixes bugs #330501 and #353310]
5779
5780 2008-04-18  Andreia Gaita <avidigal@novell.com> 
5781
5782         * WebBrowserBase.cs: Added WndProc, DrawToBitmap,
5783           CreateWebBrowserSiteBase implementations
5784         * HtmlElement.cs: Add missing OuterHTML, OuterText setters, stubbed
5785           Style and TabIndex setters
5786
5787 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5788
5789         * ListViewGroup.cs: When returning the actual item count, return the
5790         proper count for default group.
5791         Fix the tests.
5792
5793 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5794
5795         * ListView.cs:
5796         * ListViewGroup.cs: When calculating groups layout, get the actual
5797         number of items per group, since groups added to the group BUT not
5798         added to the ListView are just ignored, and can cause some nasty
5799         exceptions because of the lack of synchronization. Also for
5800         ListViewGroup don't use lazy initialization for items, since we 
5801         the common scenario is to use it always - and it helps us to  refactor
5802         and clean the .ctor overloads.
5803
5804 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5805
5806         * ListView.cs: When adding an item to a ListViewItemCollection
5807         belonging to a group (ListViewGroup.Items), don't generate a redraw if
5808         the added item hasn't beeen previously added to the ListView instance
5809         refered by the group, since it will be ignored. This should avoid some 
5810         really nasty flickering.
5811
5812 2008-04-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5813
5814         * ListView.cs: When accessing an item in a specific display
5815         position, use the helper method GetItemAtDisplayIndex, instead of
5816         direct access to the reordered_items_indices array. When doing layout
5817         for groups set the correct Items index for the display position (since
5818         in groups mode items don't have the same position as in Items
5819         collection).
5820         * ListViewGroup.cs: Add a field to store the starting item number,
5821         which is later used when calculating the layout.
5822
5823         Fixes #360805.
5824
5825 2008-04-17  Gert Driesen  <drieseng@users.sourceforge.net>
5826
5827         * Application.cs: Fixed ProductVersion to fallback to the assembly
5828         version. Fixes regression for bug #325413.
5829
5830 2008-04-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5831
5832         * ListView.cs: New helper method to retrieve an item in a _specific
5833         display_ position (the items can be displayed in a different order
5834         than one of Items collection).
5835         * ThemeWin32Classic.cs: When drawing, instead of iterating over Items
5836         collection, use ListView.GetItemAtDisplayIndex, to get an item in a
5837         specific display position (again remember that items can be sorted
5838         different than Items).
5839
5840 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
5841
5842         * DataGridViewColumnCollection.cs: Create a cached copy of our sorted
5843         list and update it when the collection changes.  We were recreating
5844         this several times per row paint and for every pixel the mouse moved
5845         across the grid.
5846         * DataGridViewColumn.cs: Regenerate cached sorted list when DisplayIndex
5847         changes.
5848
5849 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
5850
5851         * DataGridViewColumnCollection.cs: Convert our internal sorted columns
5852         list to use generics.
5853         * DataGridView.cs, DataGridViewRow.cs: Use generic sorted column list
5854         and remove unneccessay casts.
5855
5856 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
5857
5858         * DataGridViewBand.cs: Add internal way to set displayed variable.
5859         * DataGridViewRow.cs: Don't paint cells in non-displayed columns.
5860         * DataGridView.cs: Make sure we always keep track of Displayed
5861         rows and columns, and only draw things that are displayed.
5862
5863 2008-04-16  Atsushi Enomoto  <atsushi@ximian.com>
5864
5865         * X11Keyboard.cs, XplatUIX11.cs : manage key state regardless of
5866           whether the key events are filtered or not. Introduced
5867           PreFilter() process for this purpose. This fixes atokx3/iiimx
5868           shift state issue.
5869
5870 2008-04-16  Andreia Gaita <avidigal@novell.com> 
5871
5872         * HtmlHistory.cs: Implement Length property
5873
5874 2008-04-15  Jonathan Pobst  <monkey@jpobst.com>
5875
5876         * DataGridView.cs: Call EndEdit when a sort is performed so we take
5877         away the edit textbox.  Refactor to reuse column sort code.
5878
5879 2008-04-12  Everaldo Canuto  <ecanuto@novell.com>
5880
5881         * MenuAPI.cs: Remove the code that save and restore capture status of 
5882         grab_control, this fixes some Menu and Context menu bugs but maybe it can
5883         cause some others, I cant figure the possible problems of this patch but
5884         right now remove the code looks to be better than keep it. This patch fixes
5885         bugs #357638, #378721 and #379570.
5886
5887 2008-04-12  Andreia Gaita <avidigal@novell.com> 
5888
5889         * HtmlDocument.cs, HtmlElement.cs, HtmlHistory.cs, WebBrowser.cs:
5890         Implement OuterHtml, OuterText, Enabled, Scroll*, *Rectangle properties,
5891         add missing properties and event handlers.
5892         
5893 2008-04-14  Jonathan Pobst  <monkey@jpobst.com>
5894
5895         * ListBox.cs: Make sure the LargeChange we are setting is at least
5896         zero, to prevent an IOORE.  [Fixes bug #379531]
5897
5898 2008-04-13  Andy Hume <andyhume32@yahoo.co.uk>
5899
5900         * ComboBox.cs: Support item navigation by entering text.  Firstly, 
5901         in DropDownList mode, for each key-press select the next item 
5902         starting with that letter.
5903         For other modes, when no item selected, on arrow-up/-down and open 
5904         drop-down select the first item matching the text in the textbox.
5905
5906 2008-04-14  Atsushi Enomoto  <atsushi@ximian.com>
5907
5908         * X11Keyboard.cs : Control.FromHandle() could return null
5909           in MoveCurrentCaretPos().
5910
5911 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5912
5913         * ListView.cs: When changing the size in VirtualMode, also Reset the
5914         selection.
5915         * ListViewItem.cs: Don't call SelectedIndexCollection.Reset when
5916         changing selection info for VirtualMode.
5917         Fixes #372618.
5918
5919 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5920
5921         * ThemeWin32Classic.cs: When drawing ListViewItem instancesin Details
5922         view, don't use LineLimit for the first item - use NoWrap *always*
5923         instead, since ListView.LabelWrap is not used for this view.
5924         Fixes #378054.
5925
5926 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5927
5928         * Binding.cs: Call UpdateIsBinding when setting control - probably
5929         Binding is already usable and we don't need to wait to check the
5930         IsBinding state. Also for 1.1 profile use IsHandleCreated instead of
5931         Created, just like 2.0 does.
5932         * CurrencyManager.cs: I'm so lame - the previous check was wrong.
5933
5934 2008-04-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5935
5936         * Binding.cs: Just realized we don't need to have a handler for
5937         BindingContextChanged, since this info should be now consumed directly
5938         in the BindingManagerBase. And also, the manager.IsBindingSuspended
5939         state info is checked directly, instead of caching it.
5940
5941         * CurrencyManager.cs: IsSuspended should return always false if Count
5942         == 0.
5943
5944 2008-04-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5945
5946         * Binding.cs: When calling PushData, return if manager.Count == 0,
5947         since we just don't have data to be read. Also, when setting the
5948         Control for binding, hook up some events to refresh the IsBinding
5949         state when BindingContext change or control gets created; use
5950         Control.IsHandleCreated instead of Control.Created check to set
5951         IsBinding state - we *actually* need to modify IsBinding when control
5952         is created, but we don't have any Created event, only HandleCreated.
5953         Fixes part of #349364.
5954
5955 2008-04-11  Geoff Norton  <gnorton@novell.com>
5956
5957         * XplatUICarbon.cs: Expose Caret to the Carbon layer.  Guard against
5958         warping a null Caret.
5959
5960 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
5961
5962         * DataGridView.cs: Implement row/column autosizing methods. Implement
5963         autosorting.
5964         * DataGridViewColumnHeaderCell.cs: Add painting of the sort glyph.
5965         * DataGridViewRowCollection.cs: Add an internal sorting method.
5966
5967 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
5968
5969         * ThemeWin32Classic.cs: Apply patch from Ernesto to cache an expensive
5970         value in ListView drawing code.
5971
5972 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
5973
5974         * FileDialog.cs: Only call FileOk when Ok is clicked, not when Cancel
5975         is clicked.  Respect the user setting Cancel in FileOk.
5976
5977 2008-04-11  Geoff Norton  <gnorton@novell.com>
5978
5979         * ListView.cs: Avoid setting and resetting control Width/Heights and
5980         calculate the final value and set it once.  Prevents a feedback loop
5981         on the mac.
5982
5983 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
5984
5985         * TreeView.cs: Clamp setting the scrollbar value using SafeValueSet.
5986         [Fixes bug #378869]
5987
5988 2008-04-10  Atsushi Enomoto  <atsushi@ximian.com>
5989
5990         * X11Keyboard.cs, X11Structs.cs : make over-the-spot mode default.
5991           Add some on-the-spot code, but it seems we don't need it.
5992
5993 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
5994
5995         * Form.cs: Add method for DataGridView to trigger focus cues
5996         even when it handles the tab keypress.
5997
5998 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
5999
6000         * DataGridView.cs: More keyboard handling, tab, esc.
6001         * DataGridViewTextBoxEditingControl.cs: Don't request arrow keys
6002         when at the beginning or end of the text in the text box.
6003
6004 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
6005
6006         * DataGridViewCell.cs: Guard against an NRE causing a test to fail.
6007
6008 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
6009
6010         * DataGridView.cs: Some fixups for showing and adding the edit control.
6011         * DataGridViewButtonColumn.cs: Implement ToString.
6012         * DataGridViewCell.cs: Size and position the control simultaneously.
6013         * DataGridViewTextBoxCell.cs: Use base to position control.
6014
6015 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
6016
6017         * DataGridViewCell.cs: Fix up some formatting and painting code.
6018         * DataGridViewImageCell.cs: Implement some NIEX methods.
6019
6020 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
6021
6022         * ToolStripItemCollection.cs: What moving an item from one owner
6023         to another, remove from source owner before adding to destination.
6024         [Fixes bug #378109]
6025
6026 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
6027
6028         * PictureBox.cs: Call Load when ImageLocation is set.
6029         [Fixes bug #378308]
6030
6031 2008-04-09  Atsushi Enomoto  <atsushi@ximian.com>
6032
6033         * X11Keyboard.cs, XplatUIX11.cs :
6034           Implement over-the-spot mode (with some odd offsets).
6035           - set preedit position when caret is set.
6036           - Wrap XMoveResizeWindow() to move preedit position.
6037
6038 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
6039
6040         * X11keyboard.cs: Fix last patch, maxval must be less not greater than
6041         array lenght.
6042
6043 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
6044
6045         * KeyboardLayouts.cs: Uses GENERATING_RESOURCES to make VKeyTableIndex
6046         and ScanTableIndex public, it fix compilations errors when compiling
6047         WinForms to generate keyboard layout resources.
6048
6049 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
6050
6051         * X11keyboard.cs: Prevent keyboard errors when vitual table theres 
6052         different element count than scan table. It prevents some errors in non
6053         standard keyboards.
6054
6055 2008-04-08  Jonathan Pobst  <monkey@jpobst.com>
6056
6057         * DataGridViewHeaderCell.cs: Implement some NIEX methods.
6058
6059 2008-04-08  Jonathan Pobst  <monkey@jpobst.com>
6060
6061         * DataGridView.cs: Call OnContentClick.
6062         * DataGridViewCell.cs: Do a null check on ValueType instead
6063         of valueType.
6064         * DataGridViewCheckBoxCell.cs: Implement.
6065
6066 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
6067
6068         * X11Keyboard.cs : Do not cast IntPtr to int. Use long.
6069
6070 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
6071
6072         * X11Keyboard.cs : Check XGetIMValues() return value in
6073           case it does not return input styles in some environment.
6074
6075 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
6076
6077         * X11Keyboard.cs : sizeof(IntPtr) != 4 on amd64.
6078
6079 2008-04-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6080
6081         * BindingContext.cs: Stub UpdateBinding method.
6082
6083 2008-04-07  Atsushi Enomoto  <atsushi@ximian.com>
6084
6085         * X11Structs.cs : added couple of structs for XIM support.
6086         * X11Keyboard.cs :
6087           Release XIM in case it failed to create XIC. 
6088           Use consts for XNblah string.
6089           Add support for IM style customization and XIC creation
6090           for preedit-position and preedit-callback.
6091           Right now use MONO_WINFORMS_XIM_STYLE environment variable
6092           (list of: over-the-spot | on-the-spot | root). Only root
6093           mode works so far.
6094
6095           (redoing r99172 with fix.)
6096
6097 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
6098
6099         * TreeView.cs: Center the checkbox a little better.
6100
6101 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
6102
6103         * ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs, ThemeWin32Classic.cs:
6104         Apply very nice patch from Ernesto Carrea that simplifies our
6105         scrollbar drawing.  [From bug #376146]
6106
6107 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
6108
6109         * TreeView.cs: Correct the location of the root node checkbox when
6110         ShowRootLines = false.  Don't draw the root lines for the root node
6111         when ShowRootLines = false.  [Fixes bug #377535]
6112
6113 2008-04-06  Gert Driesen  <drieseng@users.sourceforge.net>
6114
6115         * WebBrowserBase.cs: Added missing attributes and fixed attributes.
6116         Fixed line endings.
6117         * WebBrowser.cs: Added missing attributes and fixed attributes. Fixed
6118         line endings.
6119         * MaskedTextBox.cs: Added missing attribute. Code formatting.
6120         * PageSetupDialog.cs: Added missing attribute. Code formatting.
6121         * HtmlWindowCollection.cs: Code formatting. Fixed line endings.
6122         * ImeMode.cs: Added missing field.
6123         * HtmlWindow.cs: Code formatting. Fixed line endings.
6124         * HtmlElement.cs: Code formatting. Fixed line endings. Fixed compiler
6125         warnings.
6126         * HtmlHistory.cs: Code formatting. Fixed line endings.
6127         * HtmlDocument.cs: Code formatting. Fixed line endings.
6128         * ToolStripPanel.cs: Added missing IList implementation.
6129         * HtmlElementCollection.cs: Code formatting. Fixed line endings.
6130
6131 2008-04-06  Gert Driesen  <drieseng@users.sourceforge.net>
6132
6133         * BindingContext.cs: Changed argument names to fix corcompare errors.
6134         * DataGridView.cs: Removed extra explicit interface implementation
6135         of IDropTarget. Code formatting.
6136         * FlowLayoutPanel.cs: Changed argument names to fix corcompare errors.
6137         * ComboBox.cs: Changed argument names to fix corcompare errors.
6138         * DataGridTextBoxColumn.cs: Changed argument names to fix corcompare
6139         errors.
6140         * GridColumnStylesCollection.cs: Changed argument names to fix
6141         corcompare errors. Removed extra tabs.
6142         * GridTableStylesCollection.cs: Changed argument names to fix corcompare
6143         errors.
6144         * Control.cs: Changed argument names to fix corcompare errors. Code
6145         formatting. Removed extra explicit IList implementation.
6146         * TextBox.cs: Changed argument names to fix corcompare errors. Code
6147         formatting. Use string.Empty instead of "".
6148         * GridItemCollection.cs: Changed argument names to fix corcompare
6149         errors. Code formatting.
6150         * DataGridViewTopLeftHeaderCell.cs: Changed argument names to fix
6151         corcompare errors. Code formatting.
6152         * ImageList.cs: Changed argument names to fix corcompare errors.
6153         * ToolStripItem.cs: Changed argument names to fix corcompare errors.
6154         * DataGridViewRowCollection.cs: Changed argument names to fix
6155         corcompare errors. Code formatting.
6156         * TableLayoutPanel.cs: Changed argument names to fix corcompare errors.
6157         * DataGridViewSelectedCellCollection.cs: Changed argument names to
6158         fix corcompare errors. Code formatting.
6159         * DataGridViewComboBoxCell.cs: Changed argument names to fix
6160         corcompare errors. Code formatting.
6161         * LinkLabel.cs: Changed argument names to fix corcompare errors.
6162         * TreeNode.cs: Changed argument names to fix corcompare errors. Code
6163         formatting.
6164         * PropertyGrid.cs: Changed argument names to fix corcompare errors.
6165         Code formatting.
6166         * BindingSource.cs: Changed argument names to fix corcompare errors.
6167         Removed extra explicit interface implementations.
6168         * DataGridViewSelectedRowCollection.cs: Changed argument names to
6169         fix corcompare errors. Code formatting.
6170         * ToolStripItemCollection.cs: Removed extra explicit interface
6171         implementation of IList.ReadOnly.
6172         * DataGridViewColumnCollection.cs: Changed argument names to fix
6173         corcompare errors. Code formatting.
6174         * DataGridViewRow.cs: Rename converter to match MS. Code formatting.
6175         * ListView.cs:  Changed argument names to fix corcompare errors.
6176         * DataGridViewHeaderCell.cs: Changed argument names to fix corcompare
6177         errors.
6178         * DataGridBoolColumn.cs: Changed argument names to fix corcompare
6179         errors.
6180         * ListBindingHelper.cs: Changed argument names to fix corcompare
6181         errors.
6182         * DataGridViewSelectedColumnCollection.cs: Changed argument names to
6183         fix corcompare errors. Code formatting.
6184         * ToolStripPanel.cs: Removed extra explicit implementation of
6185         IDropTarget interface.
6186         * ListBox.cs: Changed argument names to fix corcompare errors. Code
6187         formatting. Removed extra tabs and spaces.
6188         * DataGridViewCellCollection.cs: Changed argument names to fix
6189         corcompare errors.
6190         * Help.cs: Changed argument names to fix corcompare errors. Code
6191         formatting.
6192         * TabControl.cs: Changed argument names to fix corcompare errors.
6193         * DataGridColumnStyle.cs: Changed argument names to fix corcompare
6194         errors.
6195         * TableLayoutSettings.cs: Changed argument names to fix corcompare
6196         errors.
6197
6198 2008-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6199
6200         * ListBindingHelper.cs: When returning properties, only return those
6201         that are browsable. Also, don't do a linear search of the properties,
6202         but use the indexer of the PropertyDescriptorCollection class.
6203
6204 2008-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6205
6206         * BindingSource.cs: Implement GetRelatedCurrencyManager by adding a
6207         Dictionary containing the related (child) currency managers. Also,
6208         when setting DataSource, add datasource to our List if it is not a list.
6209
6210 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
6211
6212         * PropertyGridTextBox.cs: Fix background color of the buttons.
6213         * PropertyGridView.cs: Make the entry less jumpy.
6214
6215 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
6216
6217         * PropertyGrid.cs: Fix unused variable warnings.
6218
6219 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
6220
6221         * PropertyGridView.cs: Fix expansion via [+] misbehavior on 
6222         double-click. It expanded it once in the mouse down and then 
6223         again in the double-click handler.
6224
6225 2008-04-04  Ivan N. Zlatev  <contact@i-nz.net>
6226         
6227         * GridEntry.cs: ICustomTypeDescriptor support for PropertyOwner, 
6228         TypeConverter and UITypeEditors.
6229
6230 2008-04-04  Ivan N. Zlatev  <contact@i-nz.net>
6231
6232         * Control.cs: Visibility should be set synchronously, 
6233         so we must also redraw once it is and not rely on layouting or 
6234         other code to repaint.
6235         [Fixes bug #339898]
6236
6237 2008-04-04  Jonathan Pobst  <monkey@jpobst.com>
6238
6239         * DataGridViewCell.cs: Respect DataGridView.GridColor.
6240
6241 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
6242
6243         * Control.cs: Invalidate when the alpha channel is less than 255,
6244         not only when control is transparent.
6245
6246 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
6247
6248         * DataGridViewRowPrePaintEventArgs.cs, DataGridViewRowPostPaintEventArgs.cs:
6249         Implement some painting convenience methods that threw NIEX.
6250
6251 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
6252
6253         * DataGridView.cs: Call CellMouse[Enter|Move|Leave] properly.
6254         * DataGridViewLinkCell.cs: Implement.
6255
6256 2008-04-03  Ivan N. Zlatev  <contact@i-nz.net>
6257
6258         * GridEntry.cs: Report the conversion exception error description.
6259         [Fixes bug #375792]
6260
6261 2008-04-03  Ivan N. Zlatev  <contact@i-nz.net>
6262
6263         * PropertyGridView.cs: Do not scroll to item on resize.
6264         [Fixes bug #375789]
6265
6266 2008-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6267
6268         * BindingContext.cs: When retrieving a BindingManagerBase, if the
6269         dataSource parameter is ICurrencyManagerProvider, then return
6270         ICurrencyManagerProvider.CurrencyManager/GetRelatedCurrencyManager
6271         instead of creating a new one.
6272
6273 2008-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6274
6275         * BindingSource.cs: Implement support for Type instances as
6276         DataSource.
6277
6278 2008-04-02  Jonathan Pobst  <monkey@jpobst.com>
6279
6280         * DataGridView.cs: Minor cleanups and call CellMouseUp.
6281         * DataGridViewCell.cs: Make some painting routines internally virtual.
6282         * DataGridViewButtonCell.cs: Implement.
6283
6284 2008-04-02  Jonathan Pobst  <monkey@jpobst.com>
6285
6286         * Control.cs: We always need to invalidate our children with
6287         transparent backgrounds when we are invalidated.
6288         [Fixes bug #376081]
6289
6290 2008-04-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6291
6292         * BindingSource.cs: EndEdit and CancelEdit should call EndCurrentEdit
6293         and CancelCurrentEdit on CurrencyManager respectively. Implement
6294         support for ICancelAddNew too.
6295
6296 2008-04-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6297
6298         * CurrencyManager.cs: When calling EndCurrentEdit/CancelCurrentEdit,
6299         call EndNew/CancelNew if list is ICancelAddNew.
6300
6301 2008-04-01  Jonathan Pobst  <monkey@jpobst.com>
6302
6303         * DataGridView.cs: Guard against an exception while painting
6304         if there are no rows.
6305
6306 2008-04-01  Jonathan Pobst  <monkey@jpobst.com>
6307
6308         * DataGridView.cs: Implement a bunch of keyboard commands.
6309
6310 2008-03-31  Jonathan Pobst  <monkey@jpobst.com>
6311
6312         * ToolBar.cs: Don't do our painting if UserPaint is set.  If UserPaint
6313         isn't set, don't call OnPaint.  [Fixes bug #375300]
6314
6315 2008-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6316
6317         * BindingSource.cs: IsBindingSuspended, ResumeBinding and
6318         SuspendBinding depend on CurrencyManager. Implement RemoveCurrent,
6319         hookup the remaining events related to CurrencyManager, and fire
6320         OnListChanged also for the Clear () method.
6321
6322 2008-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6323
6324         * BindingSource.cs: Use Current and Position implementations in
6325         CurrencyManager instead of using our own routines, since we need 
6326         to be in synch with it. Count should NEVER return a -1 value, and 
6327         also report ListChanged events for both simple IList data 
6328         sources (manually) as well for IBindingList ones (by hooking up an
6329         event handler for it).
6330
6331 2008-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6332
6333         * BindingSource.cs: Make one .ctor call the another, to avoid
6334         duplicate code. Add the CurrencyManager property, and also for AddNew
6335         throw the proper exceptions and show better error messages.
6336
6337 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
6338
6339         * ComboBox.cs: Only adjust selectedindex if Handle has been
6340         created.  Fixes failing test.
6341
6342 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
6343
6344         * ComboBox.cs: Adjust selectedindex if we insert a new item
6345         above the current selectedindex in a sorted ComboBox.
6346         [Fixes bug #374654]
6347
6348 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
6349
6350         * ComboBox.cs: Support PageUp/PageDown when dropdown is closed.
6351         [Fixes bug #374712]
6352
6353 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
6354
6355         * DataGridViewTextBoxCell.cs: Implement stuffs.
6356
6357 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
6358
6359         * TreeView.cs: Create the scrollbars even earlier to be
6360         double dog certain they are created before they are accessed.
6361
6362 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
6363
6364         * XplatUIX11.cs: Remove a no-op line that csc was choking on.
6365
6366 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
6367
6368         * ScrollBar.cs: Create an internal safe Value setter so we
6369         won't crash if we try to set a value outside the min and max.
6370         * TextBoxBase.cs: Use safe value setter to guard against a
6371         potential NRE that is being reported by Reflector.
6372
6373 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
6374
6375         * TreeView.cs: Create the scrollbars earlier in the constructor
6376         to attempt to guard against an NRE in SetTop in Reflector.
6377
6378 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
6379
6380         * DataGridView.cs, DataGridViewCell.cs, DataGridViewCell.cs,
6381         DataGridViewRowCollection.cs: Do not scroll column and row headers,
6382         show messagebox on data format error, use column display index
6383         correctly, make sure HitTest supports new layout stuff,
6384         make sure scrollbars support new layout stuff.
6385
6386 2008-03-27  Atsushi Enomoto  <atsushi@ximian.com>
6387
6388         * XplatUIX11.cs : Patch by Doug Rintoul.
6389           For some IM engines, keypress events need to delay call
6390           to XPending() and XNextEvent() in the loop so that it
6391           does not mess the orders in XIM commit callback.
6392           Some KeyRelease events such as shift keys need to be
6393           processed both in the IM engine and winforms driver
6394           itself since winforms holds its own state check.
6395
6396           For details, see: http://lists.ximian.com/pipermail/mono-winforms-list/2008-March/003279.html
6397
6398 2008-03-27  Atsushi Enomoto  <atsushi@ximian.com>
6399
6400         * X11Keyboard.cs, XplatUIX11.cs :
6401           add primitive support for XIM input support (preedit-
6402           nothing and status-nothing). It requires precise event
6403           capturing (XSelectInput/"filterEvents") and different
6404           call to XFilterEvent against root window.
6405           Get composed string and send dummy WM_IME_COMPOSITION.
6406           Free XIM and XIC instances in finalizer.
6407
6408           (This first patch does not include suggested changes
6409            by Doug Rintoul. It will follow.)
6410
6411 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
6412
6413         * DataGridView.cs: When binding to a property, if the property
6414         doesn't have a setter, set the column to readonly.
6415         [Fixes bug #343965]
6416
6417 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
6418
6419         * ComboBox.cs: Guard against NRE if an arrow key is hit while
6420         we aren't dropped down.  Support Home/End in DropDownList mode.
6421         [Fixes bug #371990]
6422
6423 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
6424
6425         * TreeNodeCollection.cs: Don't increment count until we've
6426         saved our index to return.
6427         [Fixes bug #373603]
6428
6429 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
6430
6431         * Label.cs: Add padding to the label's AutoSize calculation.
6432         [Fixes bug #373792]
6433
6434 2008-03-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6435
6436         * ListBindingHelper.cs: Actually implement GetListName method.
6437
6438 2008-03-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6439
6440         * BindingSource.cs: Throw the propert expceptions for some methods, as
6441         well as detect the list item type for Add method if DataSource is null.
6442
6443 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
6444
6445         * DataGridViewCell.cs: I don't know why I commented this out,
6446         putting it back for now.
6447
6448 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
6449
6450         * DataGridViewCell.cs: Remove storage for owning column, just
6451         use column index.
6452         * DataGridViewColumn.cs: Make getter for HeaderTextSet.
6453         * DataGridViewColumnHeaderCell.cs: If the header text has been
6454         explicitly set, return it.
6455         [Fixes bug #325979]
6456
6457 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
6458
6459         * DataGridViewRowCollection.cs: Disable row sharing when
6460         using data binding.  Its a great feature, but lets work on
6461         getting DGV usable first before we worry about optimizations.
6462
6463 2008-03-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6464
6465         * BindingSource.cs: When resetting our internal list, compute list
6466         item type information to be used for indirect list access. Also
6467         implement/tune some properties and methods related to the list access
6468         too.
6469         * ListBindingHelper.cs: Add a stub for GetListName method, used from
6470         BindingSource.
6471
6472 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
6473
6474         * DataGridView.cs: If RowCount is increased while ColumnCount
6475         is zero, add a column.  [Fixes bug #331649]
6476
6477 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
6478
6479         * DataGridViewRowCollection.cs: When adding new rows for
6480         databinding, make sure they are place before the add row.
6481         [Fixes bug #343961]
6482
6483 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
6484
6485         * DataGridViewRow.cs: Draw cells in column DisplayIndex order
6486         instead of Index order.
6487
6488 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
6489
6490         * DataGridView.cs: If columns are added by increasing ColumnCount,
6491         they need to be DataGridViewTextBoxColumns, not DataGridViewColumn.
6492         [Fixes bug #325588]
6493
6494 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
6495
6496         * DataGridView.cs: Turn off and on the "new row" when 
6497         AllowUserToAddRows is toggled.  When the handle is created,
6498         set current cell and selected cell/row/col.
6499
6500 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
6501
6502         * ComboBox.cs: When navigating the drop down by keyboard, we
6503         need to scroll the list box if our selection moves out of the
6504         currently shown items.  [Fixes bug #371990]
6505
6506 2008-03-24  Luke Page <luke.a.page@gmail.com>
6507
6508         * RichTextBox.cs: Handles visible rtf tag and no longer shows the text
6509         on the control. Also now handles unicode compatibility characters and
6510         stores the unicode compatibility length on the stack. Fixes Bugs
6511         #355198 and #366436.
6512
6513 2008-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6514
6515         * BindingSource..cs: Take into account DataMember when re-creating the
6516         List property, and also create a specific kind of list as needed.
6517
6518 2008-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6519
6520         * ListBindingHelper.cs: Add a new case for GetList () method - when we
6521         get an empty IEnumerable, try to detect whether the datamember is
6522         valid or not for that type, if true, return null, and throw exception
6523         otherwise.
6524
6525 2008-03-22  Jonathan Pobst  <monkey@jpobst.com>
6526
6527         * ComboBox.cs: Alt-Down should drop down the list, Esc should
6528         retract it.  [Fixes bug #371989]
6529
6530 2008-03-22  Ivan N. Zlatev  <contact@i-nz.net>
6531
6532         * PropertyGrid.cs: Initialize the sorting button as pushed.
6533
6534 2008-03-22  Ivan N. Zlatev  <contact@i-nz.net>
6535
6536         * PropertyGrid.cs: 
6537          - Visually select the PropertyTab.
6538          - Filter Properties by Attributes properly.
6539
6540 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
6541
6542         * MenuItem.cs: Remove menu item from parent when disposed.
6543         [Fixes bug #372845]
6544
6545 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
6546
6547         * ToolBar.cs: Don't reset layout_type if Dock = None.
6548
6549 2008-03-21  Andreia Gaita <avidigal@novell.com> 
6550
6551         * UserControl.cs: Select the first available control when we get focus.
6552           Fixes #372616
6553
6554 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
6555
6556         * DataGridViewCell.cs, DataGridViewTextBoxCell.cs: Don't paint
6557         the content if we are in edit mode.  [Fixes bug #343964]
6558
6559 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
6560
6561         * DataGridViewCell.cs: Fix border painting for column headers.
6562
6563 2008-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6564
6565         * BindingSource.cs: When setting or resetting data source,
6566         use ListBindingHelper.GetList () method, since it will get the list in
6567         case datasource is IListSource.
6568
6569 2008-03-20  Jonathan Pobst  <monkey@jpobst.com>
6570
6571         * DataGridViewCell.cs: Implement lots more stuffs.
6572
6573 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
6574
6575         * PropertyGridView.cs, GridEntry.cs: Implement support for 
6576         UITypeEditor.IsDropDownResizable.
6577
6578 2008-03-20  Jonathan Pobst  <monkey@jpobst.com>
6579
6580         * DataGridViewCell.cs: Remove unused variables, improve how
6581         several of the property getters work.
6582         * DataGridViewRow.cs: Don't call setSize on a cell, cell should
6583         get its size from the parent row/col.
6584
6585 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
6586
6587         * PropertyGrid.cs: Ensure PropertiesTab is visible even if the 
6588         user alters manually the PropertyTabs collection via the 
6589         PropertyTabs property.
6590
6591 2008-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6592
6593         * ListBindingHelper.cs: Implement -previously- ignored cases. We have
6594         new tests for them to be sure to be compatible with .net.
6595
6596 2008-03-20  Andreia Gaita <avidigal@novell.com> 
6597
6598         * WebBrowserBase.cs: Fix attributes, add events
6599         * WebBrowser.cs: Fix Padding signature
6600
6601 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
6602
6603         * PropertyGrid.cs, PropertyGridView.cs: Implement PropertyTab support.
6604
6605 2008-03-19  Jonathan Pobst  <monkey@jpobst.com>
6606
6607         * DataGridView.cs, DataGridViewCell.cs, DataGridViewCellStyle.cs,
6608         DataGridViewLinkCell.cs, DataGridViewRow.cs, DataGridViewRowHeaderCell.cs,
6609         DataGridViewTextBoxCell.cs: Changes so that DataGridViewCell
6610         passes the new suite of tests for it.
6611
6612 2008-03-18  Andreia Gaita <avidigal@novell.com> 
6613
6614         * WebBrowser.cs: Add missing attributes, missing Padding and
6615           DefaultSize properties, remove extraneous getters
6616
6617 2008-03-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6618
6619         * ListBindingHelper.cs: Implement a pair of GetListItemProperties
6620         method overloads.
6621
6622 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
6623
6624         * ComboBox.cs: Move resetting the selected index to keypress
6625         instead of textchanged.  Changing the text programmatically
6626         should not trigger resetting the selected index.  Fixes test.
6627
6628 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
6629
6630         * ComboBox.cs: When the user types into the textbox, reset
6631         the selected index to -1.  [Fixes bug #371672]
6632
6633 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
6634
6635         * FileDialog.cs: Support Control-A for selecting everything
6636         in an OpenFileDialog.  [Fixes bug #371564]
6637
6638 2008-03-15  Jonathan Pobst  <monkey@jpobst.com>
6639
6640         * DataGridView.cs: When row/column visible/height properties
6641         change, invalidate.  Take the NIEX out of InvalidateRow/Column
6642         etc.  We don't support them yet, but we can just invalidate
6643         everything until we do support them.  (Added MonoTODO).  Set
6644         proper control styles.
6645         * DataGridViewRow.cs: Don't call PaintHeader if row headers
6646         are turned off. 
6647
6648 2008-03-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6649
6650         * ListBindingHelper.cs: Implement 2.0 GetListItemType methods.
6651
6652 2008-03-14  Jonathan Pobst  <monkey@jpobst.com>
6653
6654         * DataGridViewRow.cs: Only paint the white background in
6655         cell bounds, the row bounds extends past the cells if the 
6656         grid width isn't as wide as the DGV.
6657
6658 2008-03-14  Jonathan Pobst  <monkey@jpobst.com>
6659
6660         * DataGridView*: Completely revamp the drawing to match the
6661         public API.  Our grids now look better, and call all the
6662         appropriate methods and event to allow users to override
6663         the painting and do their own.
6664
6665 2008-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6666
6667         * ListBindingHelper.cs: Implement 2.0 GetList methods.
6668
6669 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
6670
6671         * DataGridView.cs: Implement BorderStyle.
6672
6673 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
6674
6675         * FileDialog.cs: Apply patch from Andy Hume: Any time we
6676         are comparing attributes, make sure we only look at the
6677         one we are interested.  These calls were failing if there
6678         were more than one attribute.
6679         [Fixes bug #370385]
6680
6681 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
6682
6683         * DataGridColumnStyle.cs: Hide ctor from 1.1 profile.
6684
6685 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
6686
6687         * PageSetupDialog.cs: Stub EnableMetric.
6688         * PrintControllerWithStatusDialog.cs: Implement IsPreview.
6689         * PrintPreviewDialog.cs: Add ProcessDialogKey,
6690         ProcessTabKey.
6691
6692 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
6693
6694         * MonthCalendar.cs: Remove unused variable.
6695
6696 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
6697
6698         * DataGridView*.cs: corcompare stuffs.
6699
6700 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
6701
6702         * MonthCalendar.cs: Remove an incorrect invalidate optimization.
6703         The savings aren't worth the extra code to fix the optimization.
6704         [Fixes bug #368585]
6705
6706 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
6707
6708         * ToolBar.cs: Always call base.Dock in the Dock override so that
6709         Control's layout_type gets reset correctly.
6710         [Fixes bug #368882]
6711
6712 2008-03-11  Ivan N. Zlatev  <contact@i-nz.net>
6713
6714         * X11Dnd.cs: End DnD operation also for the middle mouse button.
6715
6716 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
6717
6718         * ContainerControl.cs: We can't do MenuStrip implicit mnemonics
6719         at the same time we do explicit ones, because we have to give all
6720         other controls on the container a chance to handle explicit ones
6721         first.  If no one has an explicit mnemonic, then we can let the
6722         MenuStrip have a shot at implicit mnemonics.
6723         * MenuStrip.cs: Create an implicit mnemonic function.
6724         * ToolStrip.cs: When processing explicit mnemonics, don't do implicit
6725         mnemonics for MenuStrips.
6726         [Fixes bug #368493]
6727
6728 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
6729
6730         * AxHost.cs, Binding.cs, DataGridView.cs, DataGridViewCell.cs,
6731         DataGridColumnStyle.cs: corcompare stuffs.
6732
6733 2008-03-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6734
6735         * FileDialog.cs: Don't add any ColumnHeader to Columns if view is not
6736         Details - This is needed after we added the bits to use any available
6737         column also for List and SmallIcon view. 
6738
6739 2008-03-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6740
6741         * ListBox.cs: Fire SelectedIndexChanged and SelectedValueChanged events
6742         at the proper place, not only when changing SelectedIndex and changing
6743         the selection using keys/mouse, as .net does.
6744
6745 2008-03-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6746
6747         * ControlBindingsCollection.cs: Implement last 2.0
6748         DefaultDataSourceUpdateMode property. Also fix a wrong instruction
6749         in the new 2.0 Add methods.
6750
6751 2008-03-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6752
6753         * ListBox.cs: When calling SelectedIndexCollection.Clear,
6754         return if no items are previously selected - this is done to avoid 
6755         firing OnSelectedIndexChanged without need to do so. Also,
6756         when creating handle ensure that the focused item is visible (as
6757         .net does).
6758
6759 2008-03-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6760
6761         * ListBox.cs: Rewrote/refactored most of selection code. We require
6762         the following things in selection: a) keep selection sorted (both
6763         indices and items), b) SelectedIndices automatically detect the
6764         selection mode, c) SelectedIndex should be the first selected item
6765         index, d) Need to Focus/adjust scroll bar when selecting a new item,
6766         not only for SelectedIndex, which is specially important in Multi*
6767         selection modes. To achieve this we are moving the selection core to
6768         SelectedIndexCollection and make depend all selection modifications on
6769         it.
6770         Fixes #366438.
6771
6772 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
6773
6774         * ToolStrip.cs: Enable implicit mnemonics for drop down
6775         menu strips.  [Fixes part of bug #367692]
6776
6777 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
6778
6779         corcompare - fix parameter names [stragglers].
6780         Binding.cs, BindingsCollection.cs, GridColumnStylesCollection.cs,
6781         HelpEventHandler.cs, Label.cs, ListView.cs, Message.cs,
6782         TabControl.cs.
6783
6784 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
6785
6786         Control.cs: Don't call ProcessMenuKey on WM_SYSKEYUP if there
6787         was a mnemonic pressed as well as Alt.  Also, if nothing handles a
6788         mnemonic, let the ToolStripManager have it even if it doesn't
6789         have a matching mnemonic.
6790         [Fixes bug #367499]
6791
6792 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
6793
6794         corcompare - fix warning about implicit implementation
6795         * ToolStrip.cs: Add IToolStripData interface.
6796         * IToolStripData.cs: Add.
6797
6798 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
6799
6800         corcompare - fix warning about implicit implementation
6801         * Control.cs, ToolStripPanelRow.cs: Add IBounds interface.
6802         * IBounds.cs: Add.
6803
6804 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
6805
6806         corcompare - fix parameter names [N-Z].
6807         LinkArea.cs, NativeWindow.cs, NotifyIcon.cs, PageSetupDialog.cs,
6808         Panel.cs, PrintDialog.cs, PrintPreviewControl.cs, PropertyGrid.cs,
6809         PropertyManager.cs, RichTextBox.cs,
6810         ScrollBar.cs, SelectionRange.cs, SplitContainer.cs, StatusBar.cs,
6811         StatusBarDrawItemEventArgs.cs, StatusBarPanelClickEventArgs.cs,
6812         StatusStrip.cs, TabControl.cs, TableLayoutColumnStyleCollection.cs,
6813         TableLayoutRowStyleCollection.cs, TableLayoutStyleCollection.cs,
6814         TextBoxBase.cs, ThreadExceptionDialog.cs, ToolStrip.cs,
6815         ToolStripContentPanel.cs, ToolStripDropDown.cs,
6816         ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
6817         ToolStripPanel.cs, ToolStripSeparator.cs,
6818         TreeNode.cs, TreeView.cs, TreeViewHitTestInfo.cs,
6819         UICuesEventHandler.cs, UpDownBase.cs.
6820
6821 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
6822
6823         corcompare - fix parameter names [G-M].
6824         GridColumnStylesCollection.cs, GridItemCollection.cs,
6825         GridTableStylesCollection.cs, GroupBox.cs, Help.cs,
6826         HelpProvider.cs, ImageListStreamer.cs, InputLanguageCollection.cs,
6827         Label.cs, LayoutEngine.cs, LinkClickedEventArgs.cs,
6828         LinkLabel.cs, ListBox.cs, ListView.cs, ListViewGroupCollection.cs,
6829         ListViewItem.cs, Menu.cs, MenuItem.cs, MenuStrip.cs, MouseEventArgs.cs.
6830
6831 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
6832
6833         corcompare - fix parameter names [A-F].
6834         Control.cs, DataGridBoolColumn.cs, DataGridColumnStyle.cs,
6835         DataGridTextBoxColumn.cs, DataGridViewButtonCell.cs,
6836         DataGridViewCellCollection.cs, DataGridViewCellParsingEventArgs.cs,
6837         DataGridViewCheckBoxCell.cs, DataGridViewColumnDesignTimeVisibleAttribute.cs,
6838         DataGridViewComboBoxCell.cs, DataGridViewHeaderCell.cs,
6839         DataGridViewImageCell.cs, DataObject.cs, DomainUpDown.cs,
6840         DrawItemEventArgs.cs, FolderBrowserDialog.cs, FontDialog.cs, Form.cs.
6841
6842 2008-03-03  Ivan N. Zlatev  <contact@i-nz.net>
6843
6844         * GridEntry.cs: Do not convert not only if the types match, 
6845         but also if the property type is assigneable from the value's
6846         type.
6847         [Fixes bug #366566]
6848
6849 2008-03-03  Ivan N. Zlatev  <contact@i-nz.net>
6850
6851         * PropertyGridView.cs: 
6852          - Subscribe to the listbox only once and not everytime.
6853          - Update the textbox even if SetValue fails.
6854          - Close the listbox before calling TrySetValue just in case.
6855          [Fixes bug #366569]
6856
6857 2008-03-03  Jonathan Pobst  <monkey@jpobst.com>
6858
6859         * Control.cs: Hide ICollection.CopyTo from the 1.1 profile.
6860
6861 2008-03-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6862
6863         * ListView.cs: Implement support for custom column width based on
6864         Columns collection (we were previously using this collection only
6865         with Details view).
6866         Fixes #364484.
6867
6868 2008-03-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6869
6870         * ListViewItem.cs: For Tile view, always set bounds for the first
6871         subitem (which is the main one), and also don't let Width be larger
6872         than ListView.TileSize.Width. Improve code readibility also.
6873         * ThemeWin32Classic.cs: When painting the ListViewItem instances
6874         in Tile view, _always_ use the NoWrap flag.
6875         Fixes #360798.
6876
6877 2008-02-29  Ivan N. Zlatev  <contact@i-nz.net>
6878
6879         * PropertyGrid.cs: Check for null PropertyDescriptor.Name just 
6880         in case.
6881         * GridEntry.cs: For MS compitability make all child properties 
6882         readonly if the parent is readonly. Ugh.
6883         [Fixes bug #365945 and #365944]
6884
6885 2008-02-29  Andreia Gaita <avidigal@novell.com> 
6886
6887         * HtmlHistory.cs: Fix sigs for Forward and Back to navigate by index
6888           relative to the history
6889
6890 2008-02-29  Andreia Gaita <avidigal@novell.com>
6891
6892         * HtmlElement.cs: More handlers for mouse and key events
6893
6894 2008-02-28  Andreia Gaita <avidigal@novell.com>
6895
6896         * WebBrowserBase.cs: MouseClick sig changed.
6897         * HtmlHistory.cs: Implement history navigation
6898         * HtmlElement.cs: Add event handlers, and connect them.
6899
6900 2008-02-28  Ivan N. Zlatev  <contact@i-nz.net>
6901
6902         * GridEntry.cs: 
6903          - Use PropertyDescriptor.DisplayName instead of .Name for Label,
6904            so that DisplayNameAttribute doesn't get ignored.
6905          - Check for ParenthesizeNameAttribute and parenthesize the Label.
6906          - Add support for PasswordPropertyTextAttribute
6907         * PropertyGridView.cs: Check if an entry is a password.
6908         [Fixes bugs #365589, #365586, #365588]
6909
6910 2008-02-28  Andreia Gaita <avidigal@novell.com>
6911
6912         * PropertyGridView.cs: Revert the message filtering change, as we
6913         need it to block after all. Remove block parameter, unnecessary.
6914
6915 2008-02-27  Jonathan Pobst  <monkey@jpobst.com>
6916
6917         * UserControl.cs: Better implementation of GetPreferredSize.
6918         First step to fixing bug #361441.
6919
6920 2008-02-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6921
6922         * Binding.cs: Actually implement data binding support for 
6923         classes implementing IBindableComponent.
6924         * ControlBindingsCollection.cs: Likewise.
6925
6926 2008-02-26  Andreia Gaita  <avidigal@novell.com>
6927
6928         * PropertyGridView.cs: Use a message filter to check when to 
6929         close the dropdown
6930
6931 2008-02-26  Andreia Gaita  <avidigal@novell.com>
6932
6933         * Application.cs: Change the message_filters loop so a filter 
6934         can be removed while looping.
6935
6936 2008-02-26  Ivan N. Zlatev  <contact@i-nz.net>
6937
6938         * GridEntry.cs: Optimization in ToggleValue so that it caches
6939         the current value.
6940         * PropertyGridView.cs: An optimization so that the property isn't 
6941         re-read twice for each StandardValue added to the drop-down menu.
6942         Patch by Andy Hume <andyhume32@yahoo.co.uk> under the MIT/X11
6943         license.
6944         [Fixes bug #362755]
6945
6946 2008-02-26  Jonathan Pobst  <monkey@jpobst.com>
6947
6948         * Application.cs: Apply patch from Justin Cherniak to match
6949         MS better for ProductName, ProductVersion, and CompanyName.
6950         [Fixes bug #361709]
6951
6952 2008-02-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6953
6954         * Binding.cs: Actually implement 2.0 NullValue property. Also
6955         when changing the formatting related properties, only update the state
6956         if formatting_enabled is true (we don't mind otherwise).
6957
6958 2008-02-25  Jonathan Pobst  <monkey@jpobst.com>
6959
6960         * ToolStrip.cs: Don't raise ItemClicked for disabled items.
6961         [Fixes bug #364486]
6962
6963 2008-02-25  Ivan N. Zlatev  <contact@i-nz.net>
6964
6965         * GridEntry.cs: Use the PropertyDescriptor.PropertyType instead 
6966         of GetType on the current value as it uses reflection to 
6967         determine the type. This fixes the case where the new value is 
6968         null. 
6969
6970 2008-02-25  Ivan N. Zlatev  <contact@i-nz.net>
6971
6972         * PropertyGridView.cs: Limit mousewheel scrolling to not scroll
6973         past the view.
6974
6975 2008-02-24  Luke Page  <luke.a.page@gmail.com>
6976
6977         * Line.cs, TextControl.cs: Implement offset x and y so that a
6978         document doesn't have to begin  at (0,0) on the viewpoint.
6979         * TextBox.cs, TextBoxBase.cs: RightToLeft switches the scroll
6980         bars and switches the text alignment (and therefore is now
6981         implemented for textbox). Fixes #321383.
6982
6983 2008-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6984
6985         * Binding.cs: Actually implement 2.0 FormatString and FormatInfo
6986         properties. Also when changing FormattingEnabled update the control
6987         property -as .Net does-.
6988
6989 2008-02-22  Carlos Alberto Cortez <calberto.cortez@Å‹mail.com>
6990
6991         * ControlBindingsCollection.cs: Add the missing 2.0 Add overloads.
6992         * Binding.cs: Add stubs for the overloads of the Add method in
6993         CBCollection.
6994
6995 2008-02-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6996
6997         * Binding.cs: PullData () returns a false value if we got an exception.
6998         Also when validating the control and we get an error, instead of
6999         setting the value of the previous one, cancel the event (tested in 1.1
7000         and 2.0).
7001
7002 2008-02-22  Jonathan Pobst  <monkey@jpobst.com>
7003
7004         * TreeView.cs: Make selected_node and highlighted_node internal.
7005         * TreeNodeCollection.cs: Reset selected_node and highlighted_node
7006         to null when Nodes.Clear is called.
7007         [Fixes bug #363884]
7008
7009 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
7010
7011         * FontDialog.cs: Ensure that when the Font is set in code,
7012         all the gui pieces are updated accordingly.
7013         [Fixes bug #361020]
7014
7015 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
7016
7017         * TextRenderer.cs: Respect proposed size for MeasureString.
7018         * ThemeWin32Classics.cs: If our CheckBox/RadioButton isn't
7019         autosize, use a proposed width to force wrapping for long text.
7020         [Fixes bug #360981]
7021
7022 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
7023
7024         * TreeView.cs: Factor in checkboxes = false and state images in
7025         to HitTest.  [Fixes bug #363360]
7026
7027 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
7028
7029         * ThemeWin32Classic.cs: Only look at the Date part of a DateTime
7030         when drawing the selected range.
7031         [Fixes bug #363648]
7032
7033 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
7034
7035         * ToolStripContainer.cs: Add SupportsTransparentBackColor and
7036         ResizeRedraw control styles.
7037         [Fixes bug #363555]
7038
7039 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
7040
7041         * TreeView.cs: StateImages are basically custom checkboxes, so
7042         factor their size the same as real checkboxes when determining
7043         what got clicked.
7044         [Fixes bug #363367]
7045
7046 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
7047
7048         * MessageBox.cs: Make the message box wider if the form caption
7049         is longer than the text in the form.
7050         [Fixes bug #361137]
7051
7052 2008-02-20  Ivan N. Zlatev  <contact@i-nz.net>
7053
7054         * PropertyGridView.cs: Fix a NRE when closing the drop down form.
7055
7056 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
7057
7058         * TreeNode.cs: Guard against an NRE when the parent's
7059         StateImageList hasn't been set.
7060         [Fixes bug #363353]
7061
7062 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
7063
7064         * SplitContainer.cs: Add SupportsTransparentBackColor and
7065         OptimizedDoubleBuffering control styles.
7066         [Fixes bug #363303]
7067
7068 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
7069
7070         * Application.cs: For the app data paths and the registry key paths,
7071         ensure they are created before returning them to the user.
7072         [Fixes bug #361709]
7073
7074 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
7075
7076         * Application.cs: Guard against an NRE in CompanyName and
7077         ProductName.
7078
7079 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
7080
7081         * Application.cs: For CompanyName, ProductName, and ProductVersion,
7082         make sure we handle all three cases correctly: attribute is present,
7083         attribute is present but is an empty string, and attribute is not
7084         present.
7085
7086 2008-02-20  Ivan N. Zlatev  <contact@i-nz.net>
7087
7088         * PropertyGridView.cs: 
7089          - Fix a NRE that caused a test failure
7090          - Another performance improvement - cache the standard values
7091          listbox.
7092
7093 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
7094
7095         * ComboBox.cs: Fix previous change to affect both 1.1 and 2.0
7096         code paths.
7097
7098 2008-02-19  Ivan N. Zlatev  <contact@i-nz.net>
7099
7100         * PropertyGridView.cs: Fix a big performance bug.
7101
7102 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
7103
7104         * SelectionRange.cs: Apply patch from Andy Hume to make
7105         constructor behavior more accurate.  [Fixes bug #362117]
7106
7107 2008-02-19  Andreia Gaita <avidigal@novell.com> 
7108
7109         * Control.cs: Added a new flag is_disposing to track if the
7110         window is currently in the process of being disposed of.
7111         This is used so that, when firing visibility changes triggered
7112         by unparenting controls during Dispose, the control doesn't
7113         get created again.      
7114
7115 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
7116
7117         * ComboBox.cs: Set height to preferred height when the handle
7118         is created.  [Fixes bug #360862]
7119
7120 2008-02-18  Andreia Gaita <avidigal@novell.com>
7121
7122         * XplatUIX11.cs: Create FosterParent with border width at 0.
7123         With the previous value of 4, everytime a control got reparented
7124         from parent = null, it's location would be shifted right and 
7125         down by 4, since these coordinates would be offset by the 
7126         FosterParent's border width.
7127
7128 2008-02-18  Ivan N. Zlatev  <contact@i-nz.net>
7129
7130         * Control.cs: During diposing firstly remove ourselfes from
7131         the parent and *then* destroy our handle, because removing
7132         ourselfes from the parent controls collection causes 
7133         VisibilityChange, etc events, which require a handle and end
7134         up recreating the control.
7135
7136 2008-02-17  Ivan N. Zlatev  <contact@i-nz.net>
7137
7138         * GridEntry.cs: Set expanded state before notifying that the
7139         expansion has taken place.
7140         * PropertyGridView.cs:
7141          - Set the propertygridtextbox text to the selected 
7142          StandardValue before proceeding to setting it.
7143          - Scrolling bugfixes.
7144
7145 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
7146
7147         * GridEntry.cs:
7148          - Fix ValueText to not return null.
7149          - Fix conversion error reporting to actually happen.
7150         * PropertyGridView.cs: Set entry only if the text has changed.
7151         [Fixes bug #362116]
7152
7153 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
7154
7155         * GridEntry.cs: 
7156          - Fix handling of a null current value.
7157          - Swallow editor exceptions.
7158         [Fixes bug #362114]
7159
7160 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
7161
7162         * PropertyGrid.cs: Clear current items first thing before 
7163         repopulating subitems.
7164         * GridEntry.cs: 
7165          - Handle null StandardValuesCollection.
7166          - Mark as not editable if there is no PropertyDescriptor and
7167          if the Converter cannot convert from string.
7168         [Part of fix for bugs #360666 and #358332]
7169
7170 2008-02-15  Luke Page  <luke.a.page@gmail.com>
7171         * MaskedTextBox.cs: Now skips non editable characters after a
7172         character has been entered and we are progressing to the next
7173         position in the MaskedTextBox.
7174
7175 2008-02-15  Luke Page  <luke.a.page@gmail.com>
7176         * TextBoxBase.cs: Handles MouseDown when shift key is clicked so
7177         that it changes the selection rather than just repositioning the
7178         cursor. Fixes Bug #360873.
7179
7180 2008-02-15  Luke Page  <luke.a.page@gmail.com>
7181         * TextBoxBase.cs, TextControl.cs, RichTextBox.cs: TextChanged fires
7182         when Undo/Redo changes the text. Undo/Redo/Undo/Redo now works
7183         correctly. See #359330
7184
7185 2008-02-15  Andreia Gaita <avidigal@novell.com>
7186
7187         * XplatUIX11.cs: If the handle is null when posting a message, use the
7188         current thread queue to post instead. Fixes #332409
7189
7190         * SendKeys.cs: Slight optimization
7191
7192 2008-02-14  Ivan N. Zlatev  <contact@i-nz.net>
7193
7194         * PropertyGrid.cs, PropertyGridView.cs:
7195         Fix multiple scrolling and sizing issues.
7196         [Fixes bug #359199]
7197
7198 2008-02-12  Ivan N. Zlatev  <contact@i-nz.net>
7199
7200         * PropertyGridView.cs: Ensure that drop down editors are shown
7201         in the WorkingArea of the screen.
7202         [Fixes bug #359807]
7203
7204 2008-02-12  Ivan N. Zlatev  <contact@i-nz.net>
7205
7206         * GridEntry.cs: Fail silently when UITypeEditor is missing.
7207         [Fixes bug #360666]
7208
7209 2008-02-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7210
7211         * Binding.cs: Implement 2.0 DataSourceNullValue property.
7212
7213 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
7214
7215         * PropertyGridView.cs:
7216          - Clear the controls in the drop down form after it is hidden.
7217          - Fix Width sizing of the dropdown editors to match MSFT.
7218
7219 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
7220
7221         * PropertyGridView.cs: 
7222          - Fix height for drawing the grid entry
7223          text value, so that it clips multiline text properly.
7224          - Fix unfocusing to match MSFT.
7225
7226 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
7227
7228         * PropertyGrid.cs: Do not populate subgriditems unless expandable.
7229         Fixes a bug where on repopulation after value changed items become
7230         expandable.
7231
7232 2008-02-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7233
7234         * Binding.cs: For the 2.0 profile, look for a 
7235         'PropertyChanged' event in the target control, and add checks for
7236         DataSourceUpdateMode property to change -or not- the data source
7237         from validation/control property change.
7238
7239 2008-02-10  Atsushi Enomoto  <atsushi@ximian.com>
7240
7241         * Binding.cs : build fix (operator == is not overriden in 1.x. Do
7242           not compare struct with null in 2.0).
7243
7244 2008-02-10  Luke Page <luke.a.page@gmail.com>
7245
7246         * MaskedTextBox.cs: UseSystemPasswordChar updates PasswordChar, PasswordChar
7247         updates the provider and if not using a provider, uses the internal document
7248         class implementation of password char. Also when showing text, uses display string
7249         from the provider, instead of the actual text.
7250
7251 2008-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7252
7253         * Binding.cs: Ooooops, forgot to take into account the data_source
7254         and binding_member_info null case (it was breaking the Binding tests).
7255
7256 2008-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7257
7258         * Binding.cs: Implement support for data source changes exposed by
7259         'PropertyNameChanged' events, and update the control property as
7260         needed.
7261
7262 2008-02-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7263
7264         * Binding.cs: Implement 2.0 WriteValue method.
7265
7266 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
7267
7268         Commit patch from James Purcell for better AutoScale implementation:
7269
7270         * ScaleControl should call GetScaledBounds with the control's total size rather
7271         than client size.  GetScaledBounds should handle ignoring the borders in its
7272         calculations.  Cleaned up ScaleControl/GetScaledBounds overrides in controls
7273         (for the most part they just call the base code now since that is fixed).
7274         * Added ScaleChildrenInternal to allow controls to disable scaling of children
7275         without having to override ScaleChildren (since none of .NET's controls do). 
7276         This is required for most controls in Mono that have scrollbars to prevent the
7277         scrollbars from being moved/resized.
7278         * Nested ContainerControls can have a different scale mode than their parent. 
7279         This is briefly mentioned in MSDN but is buggy in MS.NET (the runtime and
7280         designer produce different results both of which look incorrect).
7281         * Default AutoScaleMode for ContainerControl should be Inherit.
7282         * Simplified workaround for ComboBox scaling issue.
7283         * 1.0 style auto-scaling now uses its own methods instead of sharing 2.0's. 
7284         1.0 style auto scaling should scale the whole control's size instead of
7285         ignoring the borders (except for Form) and the rounding is done differently to
7286         preserve control alignment.
7287         * ApplyAutoScaling (used for 1.0 style) should use the rounded result of
7288         GetAutoScaleSize.
7289         * Cleaned up fix for "Bug 355703 - Setting AutoScale = true doesn't stick".
7290         * CurrentAutoScaleDimensions should round the estimated character width instead
7291         of truncating.
7292         * ListBox's GetScaledBounds should always use the height it was set to instead
7293         of the height that was passed in.  This prevents rounding errors from
7294         accumulating quickly with IntegralHeight.
7295         [Bug #359098]
7296
7297 2008-02-08  Andreia Gaita <avidigal@novell.com>
7298
7299         * Form.cs: Add a null check (darn it). 
7300
7301 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
7302
7303         * MdiClient.cs: Make sure the requesting form actually owns the
7304         control menu items before removing them.  Also, use
7305         Suspend/ResumeLayout when adding or removing items so we only
7306         layout once.
7307         [Fixes bug #359887]
7308
7309 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
7310
7311         * Control.cs: Guard against an NRE in ShowFocusCues.
7312         [Fixes bug #359830]
7313
7314 2008-02-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7315
7316         * Binding.cs: Implement 2.0 ReadValue method and ControlUpdateMode
7317         property, as well as stubbing DataSourceUpdateMode.
7318
7319 2008-02-08  Andreia Gaita <avidigal@novell.com>
7320
7321         * Form.cs: When closing forms, get focus back to the active control of the
7322         active form. [Fixes #341314, corner case]
7323         
7324 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
7325
7326         * MdiClient.cs: After we move the scrollbars, invalidate the NC
7327         area, so any old scrollbar artifacts are cleaned up.
7328         [Fixes bug #336305]
7329
7330 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
7331
7332         * MdiWindowManager.cs: If we are maximized and using MainMenuStrip
7333         for our menus, display that control box menu instead of the 1.1
7334         menu one.
7335
7336 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
7337
7338         * MdiControlStrip.cs: Add property to access the mdi form tied to
7339         each toolstripitem.
7340         * MdiClient.cs: Be smarter about removing and adding toolstripitems
7341         to the implicitly merged menu.  Every time we clicked the form, items
7342         were getting removed and the re-added, causing the form to jump around
7343         as the menu resized.
7344
7345 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
7346
7347         * MdiClient.cs: Make sure the NormalBounds always gets set.  It
7348         was being reset by the implicit menu merge for menustrips.
7349         [Fixes bug #336296]
7350
7351 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
7352
7353         * Form.cs: Don't do the previous change when WindowState = Normal,
7354         or it messes up where the window is placed.  Fixes test failure.
7355
7356 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
7357
7358         * Form.cs: When becoming visible, if we are an MDI child, call
7359         SetWindowState with a dummy old_state so that changes will actually
7360         be made.
7361         [Fixes the 2nd part of bug #325473]
7362
7363 2008-02-07  Andreia Gaita <avidigal@novell.com>
7364
7365         * Control.cs: Reset properties to their pre parent-change values in case
7366         the new parent == null (in which case we're basically removing the control, 
7367         and don't want any events fired due to fake property changes)
7368         [Fixes #355850]
7369
7370 2008-02-06  Ivan N. Zlatev  <contact@i-nz.net>
7371
7372         * PropertyGridView.cs: 
7373          - Refactor SetValue to allow setting the value
7374         when a custom editor is used, but the entry is not editable.
7375          - Remove the custom editor control on CloseDropDown.
7376         [Fixes #359196]
7377
7378 2008-02-06  Andreia Gaita <avidigal@novell.com>
7379
7380         * PrintControllerWithStatusDialog.cs: Set PrintFileName value through
7381         reflection only on 1.1, this property is public on system.drawing on 2.0.
7382         Fixed #359247
7383
7384 2008-02-06  Andreia Gaita  <avidigal@novell.com>
7385         
7386         * WebBrowser.cs: Do a normal page refresh by default.
7387
7388 2008-02-05  Andreia Gaita  <avidigal@novell.com>
7389
7390         * XplatUIWin32.cs, XplatUICarbon.cs: set the hwnd.Mapped flag when we create 
7391         the window so that the check on Control.UpdateZOrderOfChild passes on non-X
7392         platforms. Fixes #359036
7393         
7394         Note: Control.UpdateZOrderOfChild needs to be rewritten to not rely on 
7395         platform-specific flags.
7396
7397 2008-02-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7398
7399         * Binding.cs: Add 2.0 BindableComponent property - just return control
7400         by now.
7401
7402 2008-02-05  Everaldo Canuto  <ecanuto@novell.com>
7403
7404         * MenuAPI.cs: Check if control is disposable when track popup menu. Thanks
7405         Jonathan for this patch. Fixes #358442.
7406
7407 2008-02-05  Jonathan Pobst  <monkey@jpobst.com>
7408
7409         * Form.cs: If we change the active MDI child form, let the others
7410         know they need to repaint their title bar so it will appear inactive.
7411         [Fixes part 1 of bug #325473]
7412
7413 2008-02-05  Ivan N. Zlatev  <contact@i-nz.net>
7414
7415          * PropertyGridView.cs: Do not trucate custom editors' width
7416          and align them to the left.
7417          [Fixes #358353 and #358349]
7418
7419 2008-02-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7420
7421         * BindingsCollection.cs: Implement 2.0 CollectionChanging event.
7422         Also fix the arguments passed to CollectionChangeEventArgs in the
7423         related methods.
7424
7425 2008-02-04  Geoff Norton  <gnorton@novell.com>
7426
7427         * Hwnd.cs: The conversion to Quartz coordinates happens in
7428         System.Drawing.  Removing this translation from here.
7429
7430 2008-02-04  Ivan N. Zlatev  <contact@i-nz.net>
7431
7432          * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs,
7433          CategoryGridEntry.cs, RootGridEntry.cs, GridItem.cs,
7434          GridItemCollection.cs:
7435          PropertyGrid rewrite part 2. Tons of bugfixes and new features.
7436
7437 2008-02-04  Geoff Norton  <gnorton@novell.com>
7438
7439         * X11Keyboard.cs: VK_MENU should send a KEYUP instead of 
7440         SYSKEYUP if any other key has been pressed in the mean time.
7441         Fixes #324404
7442
7443 2008-02-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7444
7445         * ListView.cs: In ItemControl.ItemsMouseMove, only fire ItemDrag event
7446         when the item in current position is different than 0. Also, save the
7447         item index in the beginning of the operation, instead of getting the
7448         index of the item when the event is actually performed. Lastly clean
7449         the related fields in ItemsMouseUp if the ItemDrag operation wasn't
7450         triggered.
7451         [Fixes #357873]
7452
7453 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
7454
7455         * Form.cs: Alt-Minus for MDI children system menu should work
7456         with both the minus keys on the keyboard.
7457         [Fixes bug #336295]
7458
7459 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
7460
7461         * Control.cs: Don't invalidate on region change.  The WM should
7462         take care of this automagically.  Keeps us out of an infinite
7463         paint loop if someone changes the Region in the OnPaint.
7464         [Fixes bug #358327]
7465
7466 2008-02-04  Ivan N. Zlatev  <contact@i-nz.net>
7467
7468          * ImageIndexConverter.cs: ConvertFrom must handle "(none)".
7469
7470 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
7471
7472         * DateTimePicker.cs: Apply patch from Srikanth Madikeri so we drop
7473         down the MonthCalendar only on F4, not Alt+F4.
7474         * MonthCalendar.cs: If we are a popup, close ourselves on Alt+F4.
7475         [Fixes bug #358340]
7476
7477 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
7478
7479         * ThemeWin32Classic.cs: For MonthCalendar, draw a dark border
7480         if its part of a DateTimePicker, else, use the back color.
7481         [Fixes bug #358339]
7482
7483 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
7484
7485         * Hwnd.cs: Use GraphicContext instead of the uninitialized bmp_g.
7486         [Fixes bug #358342]
7487
7488 2008-02-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7489
7490         * CurrencyManager.cs: When we get a ListChanged event from our source,
7491         always fire our own ListChanged event, as .Net does.
7492
7493 2008-02-03  Luke Page  <luke.a.page@gmail.com>
7494
7495         * RichTextBox.cs: AutoSize now defaults to false. Fixes Bug
7496         #358379.
7497
7498 2008-02-03  Luke Page  <luke.a.page@gmail.com>
7499
7500         * TextBoxBase.cs, RichTextBox.cs, TextControl.cs: Sets richtext
7501         property. Removed if for richtext property that was always true.
7502         PgUp/PgDn at top/bottom fixed for RTB. Fixes bug #358237.
7503
7504 2008-02-03  Luke Page  <luke.a.page@gmail.com>
7505
7506         * TextBoxBase.cs - commited patch from James Purcell that
7507         correctly sets the FixedHeight control style when the MultiLine
7508         property is changed on a TextBox control. Fixes bug 358229.
7509
7510 2008-02-02  Luke Page  <luke.a.page@gmail.com>
7511
7512         * Line.cs, LineTag.cs, RichTextBox.cs, TextControl.cs
7513         Fixes bug 351938 - caret is positioned correctly when drawn
7514         and when calculating textual position of caret, no longer
7515         has a NRE in certain situations.
7516         
7517 2008-02-01  Geoff Norton  <gnorton@novell.com>
7518
7519         * Hwnd.cs: Ensure that windows moved into -'ve coordinate space
7520         get that region removed from the paint event.
7521         * XplatUICarbon.cs: Remove the window mapping after disposing of 
7522         window.  Prevents a crash with handle reuse.  Optimize exposes
7523         only onto visible windows (rare; but possible).
7524
7525 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
7526
7527         * UpDownBase.cs: Make sure the internal textbox calls the base's
7528         OnMouseDown and OnMouseUp so the textbox will function correctly.
7529         There were notes saying it doesn't chain up, but its an internal
7530         class, so our implementation may differ.
7531         [Fixes bug #357482]
7532
7533 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
7534
7535         * ListBox.cs: Fix a logic error and don't process MouseDown
7536         for mouse buttons other than Left.
7537
7538 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
7539
7540         * Control.cs: Remove HeightInternal.
7541         * ListBox.cs: Commit patch from James Purcell that correctly
7542         calculates heights for ListBoxen.
7543         [Fixes bug #357152]
7544
7545 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
7546
7547         * Label.cs: Apply patch from James Purcell that corrects the 
7548         signature of the AutoSize property.
7549         [Fixes bug #357605]
7550
7551 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
7552
7553         * ListBox.cs: Don't throw [Mouse]Click events for buttons
7554         other than the left mouse button.
7555
7556 2008-01-31  Jonathan Pobst  <monkey@jpobst.com>
7557
7558         * Control.cs: Remove my awesome optimization as it caused some
7559         regressions with control ordering.  :(
7560         [Fixes bug #357467]
7561
7562 2008-01-31  Ivan N. Zlatev  <contact@i-nz.net>
7563
7564          * PropertyGridView.cs: Fix a NRE on double click when there is no
7565          selected object.
7566
7567 2008-01-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7568
7569         * BindingManagerBase.cs: Implement IsBindingSuspended 2.0 property.
7570
7571 2008-01-30  Jonathan Pobst  <monkey@jpobst.com>
7572
7573         * ListBox.cs: Call MouseClick and MouseDoubleClick.
7574         [Fixes bug #357146]
7575
7576 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
7577
7578         * Hwnd.cs: Make bmp, bmp_g variables threadstatic and private.
7579         * Control.cs, DataGridViewCell.cs, LineTag.cs: Use Hwnd.GraphicsContext
7580         instead of Hwnd.bmp_g.
7581
7582 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
7583
7584         * TextRenderer.cs: Don't maintain private bitmap/graphics contexts.
7585         Use the Hwnd one instead.
7586
7587 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
7588
7589         * Form.cs: Remove duplicated copy of GetAutoScaleSize.
7590
7591 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
7592
7593         * Form.cs: corcompare for RestoreBounds.
7594
7595 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
7596
7597         * Control.cs: Add MarshalAs attribute to Font getter for corcompare.
7598
7599 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
7600
7601         * Form.cs: Handle Alt-Minus for MDI children forms.
7602         * MdiWindowManager.cs: Make ShowPopup internal so Form can call it.
7603         Add mnemonics to the control menu.
7604         [Fixes bug #336295]
7605
7606 2008-01-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7607
7608         * Binding.cs: Initial implementation bits of FormattingEnabled
7609         property and BindingComplete event (2.0). 
7610         * BindingCompleteEventArgs.cs: Internal methods for setting error text
7611         and exception.
7612
7613 2008-01-28  Jonathan Pobst  <monkey@jpobst.com>
7614
7615         * TableLayoutPanel.cs: Draw the table border at 0,0 instead of
7616         table.Location.  [Fixes bug #354672]
7617
7618 2008-01-28  Jonathan Pobst  <monkey@jpobst.com>
7619
7620         * Form.cs: Handle WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE to raise
7621         ResizeBegin and ResizeEnd.  [Fixes bug #346529 for win32]
7622
7623 2008-01-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7624
7625         * ComboBox.cs: When OnDisplayMemberChanged method is reached, instead
7626         of doing all the re-bound work, just invalidate and call SetControlText 
7627         to set the updated text of selected item to our textbox.
7628         Fixes #333750.
7629
7630 2008-01-28  Andreia Gaita <avidigal@novell.com>
7631
7632         * HtmlWindow.cs: Add event handler support. Add Document, Frames, 
7633         IsClosed, Opener, StatusBarText, Url properties, stub out the remaining
7634         missing properties and methods. Add Load, Unload, Error, GotFocus, 
7635         LostFocus, Resize, Scroll events (only load and unload are connected)
7636
7637 2008-01-27  Gert Driesen  <drieseng@users.sourceforge.net>
7638
7639         * AccessibleObject.cs: Modified argument names to match MS.
7640         * Button.cs: Modified argument names to match MS.
7641         * BindingContext.cs: Modified argument names to match MS.
7642         * BindingMemberInfo.cs: Modified argument names to match MS.
7643         * ButtonBase.cs: Modified argument names to match MS.
7644         * ComboBox.cs: Modified argument names to match MS.
7645         * Control.cs: Modified argument names to match MS.
7646         * CheckedListBox.cs: Modified argument names to match MS.
7647         * CommonDialog.cs: Modified argument names to match MS.
7648         * DataGrid.cs: Modified argument names to match MS.
7649         * CursorConverter.cs: Modified argument names to match MS.
7650         * ControlPaint.cs: Modified argument names to match MS.
7651         * CheckBox.cs: Modified argument names to match MS.
7652         * ControlBindingsCollection.cs: Modified argument names to match MS.
7653         * BindingSource.cs: Modified argument names to match MS.
7654         * DataFormats.cs: Modified argument names to match MS.
7655         * ContainerControl.cs: Modified argument names to match MS.
7656         * CurrencyManager.cs: Modified argument names to match MS.
7657         * Application.cs: Modified argument names to match MS.
7658         * ContextMenuStrip.cs: Modified argument names to match MS.
7659         * ContextMenu.cs: Modified argument names to match MS.
7660         * BindingManagerBase.cs: Modified argument names to match MS.
7661         * WindowsFormsSection.cs: Fixed line ending.    
7662
7663 2008-01-27  Andreia Gaita <avidigal@novell.com>
7664
7665         * PropertyGridView.cs: Rearrange the dropdown loop so that it exits when
7666         detecting that the dropdown toolwindow is hidden. EndLoop outside the
7667         while.
7668
7669 2008-01-26  Gert Driesen  <drieseng@users.sourceforge.net>
7670
7671         * PropertiesTab.cs: Fixed argument name of GetDefaultProperty to match
7672         MS. Code formatting.
7673
7674 2008-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7675
7676         * Binding.cs: Don't avoid the Format event if the control 
7677         property type is object. Also, if the value retrieved by 
7678         the data source is null _and_ the control proeprty type 
7679         is object, return Convert.DBNull (match .Net).
7680         Fixes part of #324286.
7681
7682 2008-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7683
7684         * ListControl.cs: Since we are getting two BinginContextChanged events
7685         for the same binding context instance (when the control is added to
7686         form, and when the form is actually shown), take it into account only the
7687         first time for a given binding context instance.
7688         Fixes part of #324286.
7689
7690 2008-01-26  Ivan N. Zlatev  <contact@i-nz.net>
7691
7692          * PropertryGridView.cs: Ops.
7693
7694 2008-01-26  Ivan N. Zlatev  <contact@i-nz.net>
7695
7696          * PropertyGridView.cs: Close dropdown form if the owner form is
7697          moved or minimized.
7698          [Fixes bug #322446]
7699
7700 2008-01-25  Ivan N. Zlatev  <contact@i-nz.net>
7701
7702          * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs, GridItem.cs, 
7703          RootGridEntry.cs, CategoryGridEntry.cs:
7704          PropertyGrid rewrite.
7705          - Rewrite all of the control logic in PropertyGrid.
7706          - Rewrite all of the ComponentModel logic in GridEntry.
7707          - Rewrite all UI work in PropertyGridView.
7708          - Many bugfixes, etc.
7709
7710 2008-01-24  Jonathan Pobst  <monkey@jpobst.com>
7711
7712         * TableLayoutPanel.cs: Enhance GetPreferredSize to take into account
7713         when all contained controls are autosize or dock-fill.  Also take into
7714         account when the total percentage of column/row sizes is not 100%.
7715         [Fixes bug #354672]
7716
7717 2008-01-24  Andreia Gaita <avidigal@novell.com>
7718
7719         * HtmlDocument.cs:
7720         - Save a reference to the IDocument in the instance and
7721           use that one instead of going to WebHost.Document; the document that the 
7722           WebHost returns might not be the right one (in case of frames).
7723         - Use the hashcode returned from the IDocument interface.
7724         - Implemented: ActiveElement, ActiveLinkColor, All, BackColor, Cookie, 
7725           Domain (setter is not supported), Encoding, ForeColor, Forms, Images, 
7726           LinkColor, Url, VisitedColor, Window
7727
7728         * HtmlElement.cs: 
7729         - Implemented: CanHaveChildren, Children, Document, GetAttribute, 
7730           set_Attribute, NextSibling, Parent, TagName, AppendChild, 
7731           GetElementsByTagName, GetHashCode, HasAttribute, InsertAdjacentElement,
7732           SetAttribute, Equals, equality operators.
7733         - Added stubs for: AttachEventHandler, DetachEventHandler, Focus, 
7734           InvokeMember, RaiseEvent, RemoveFocus, ScrollIntoView, 
7735         
7736         * HtmlElementCollection.cs: Change implementation to use a generic
7737         collection. Implemented Enumerator and CopyTo
7738
7739         * HtmlHistory.cs: Add constructor, no implementation yet.
7740
7741         * HtmlWindow.cs: Initial implementation with: Name, Parent, Alert,
7742         Confirm, Prompt, Navigation, ScrollTo, Open, OpenNew, GetHashCode, 
7743         Equals, equality operators.
7744
7745         * HtmlWindowCollection.cs: Implemented. 
7746
7747         * WebBrowser.cs: Use the Navigation object to navigate (WebHost.Navigate
7748         has been deprecated).
7749
7750         * WebBrowserBase.cs: Use Completed event to track document loading
7751         (Navigated has been deprecated)
7752
7753 2008-01-24  Jonatham Pobst  <monkey@jpobst.com>
7754
7755         * ThemeWin32Classic.cs: Add tab stops and NoWrap to dropdown MenuItems.  Top
7756         level MenuItems do not respect tabs.
7757         [Fixes bug #355196]
7758
7759 2008-01-23  Geoff Norton  <gnorton@novell.com>
7760
7761         * XplatUICarbon.cs:  Ensure that windows are created in their initial 
7762         FormWindowState.  Finished fixing Fullscreen windows on Carbon
7763
7764 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
7765
7766         * MenuAPI.cs: When FindForm fails uses FindRootParent to find the control to
7767         be used as grab_control. Also save status of capture before show ContextMenu
7768         and restore it after close.
7769
7770 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
7771
7772         * Control.cs: Internal FindRootParent method added to return high control
7773         in parent tree.
7774
7775 2008-01-23  Geoff Norton  <gnorton@novell.com>
7776
7777         * Hwnd.cs: Refactor Whole/Client pointer to 1 element for Cursors.
7778         * XplatUICarbon.cs: Refactor some dead code out to Cursor.cs and make
7779         it work again.  Handle HITTEST events.
7780
7781 2008-01-23  Geoff Norton  <gnorton@novell.com>
7782
7783         * XplatUICarbon.cs: Ensure that we always have a host window.  Prevents
7784         a crash in certain cases.  Support for fullscreen windows in certain cases.
7785
7786 2008-01-23  Jonathan Pobst  <monkey@jpobst.com>
7787
7788         * Form.cs: Don't set AutoScaleMode in AutoScale if we don't have to.
7789         [Fixes bug #355703]
7790
7791 2008-01-23  Geoff Norton  <gnorton@novell.com>
7792         
7793         * XplatUICarbon.cs: Remove some dead code that was causing warnings.
7794
7795 2008-01-23  Geoff Norton  <gnorton@novell.com>
7796
7797         * XplatUICarbon.cs:  Re-enabled Carets in QuickDraw as a overlay window.
7798
7799 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
7800
7801         * SplitContainer.cs: Remove unused declarations.
7802         * Binding.cs: Remove unused declarations.
7803
7804 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
7805
7806         * Form.cs: Remove unused declaration of 'active' in Activate method.
7807         * Control.cs: Move declaration of nested_layout inside '#if NET_2_0" to 
7808         prevent compilation warnings.
7809         * TextControl.cs: Remove unused declaration of selection_pos_on_line.
7810         * Hwnd.cs: Remove unused declaration of clip in GetClippingRectangles.
7811         * Bindings.cs: Remove unused formatting_enabled declaration.
7812         * ToolTip.cs: Put some methods inside '#if NET_2_0" to prevent compilation 
7813         warnings.
7814         * TreeView.cs: Put some methods inside '#if NET_2_0" to prevent compilation 
7815         warnings.
7816         * PropertyGridView.cs: Remove usused 'ex' declaration.
7817         * DataGridView.cs: Remove unused declarations.
7818
7819 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
7820
7821         [Fixes bugs #343966, #338511 and other non reported (context)menu bugs]
7822         
7823         * Form.cs: Remove all active_tracker (used by menu) stuff, it is now moved 
7824         to Control class, it makes possible to grab menu to controls that can't 
7825         reach Form using parent tree. Handle for WmButtonUp, WmButtonDown and
7826         WmMouseMove removed since it was used only to track menu events.
7827
7828         * Control.cs:
7829         - Moved all active_tracker stuff from Form.
7830         - ProcessActiveTracker added to prevent code duplicity, now mouse events 
7831         can call this method instead of reimplement all necessary code handle for
7832         menu tracker.
7833         - Call to ProcessActiveTracker for mouse events (WmButtonUp, WmButtonDown
7834         and WmMouseMove).
7835         
7836         * MenuAPI.cs: 
7837         - Remove special handle to ToolStripOverflow, now we can grab menu to 
7838         controls that can't reach Form using parent tree.
7839         - Change type of grab_control from Form to Control.
7840
7841 2008-01-22  Geoff Norton  <gnorton@novell.com>
7842
7843         * TextBoxBase.cs: Split up the sizing of controls and placing of 
7844         controls.  Fixes a bug where scrollbars in Reflector could be sized
7845         wrong and have non-working thumbers.
7846
7847 2008-01-23  Geoff Norton  <gnorton@novell.com>
7848
7849         * XplatUI.cs: Refactor environment variables to default support to the
7850         Carbon driver on the Mac.
7851
7852 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
7853
7854         * Label.cs: Uses new LabelPainter for drawing operations.
7855         * ThemeWin32Classic.cs: DrawLabel and LabelDefaultSize removed.
7856         * Theme.cs: DrawLabel and LabelDefaultSize removed.
7857
7858 2008-01-22  Geoff Norton  <gnorton@novell.com>
7859
7860         * XplatUICarbon.cs: Enable packing scroll delta into the mouse wParam
7861
7862 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
7863
7864         * ThemeWin32Classic.cs: Run Flat, Button appearance, 2.0 CheckBoxes
7865         through the normal flat button code and don't draw the checkbox glyph.
7866         * Theme.cs: Button->ButtonBase signature change.
7867         [Fixes bug #324755]
7868
7869 2008-01-22  Everaldo Canuto  <ecanuto@novell.com>
7870
7871         * LinkLabel.cs: Uses new class LinkLabelPainter.
7872
7873 2008-01-22  Everaldo Canuto  <ecanuto@novell.com>
7874
7875         * MessageBox.cs: Adjust right border space, we don't need to add 
7876         "space_border*2" two times.
7877
7878 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
7879
7880         * ScrollableControl.cs: With the advent of 2.0's Padding, DockPadding
7881         becomes a wrapper around Padding.
7882         [Fixes a part of bug #354676]
7883
7884 2008-01-22 Geoff Norton  <gnorton@novell.com>
7885
7886         * Mime.cs:  Avoid a needles exception on OSX if we dont have a buffer
7887         acquired.  Also ensure the buffer is large enough to grab the header
7888         we need on linux boxes.
7889
7890 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
7891
7892         * Control.cs: Implement a custom enumerator so people can delete
7893         from the Controls collection while in a foreach.
7894         [Fixes bug #355074]
7895
7896 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
7897
7898          * PropertyGridView.cs: Fix focusing behavior:
7899          - Tab should focus the grid text box.
7900          - Clicking on the labels shouldn't focus the grid text box.
7901
7902 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
7903
7904          * PropertyGridView.cs: IsValueTypeGridItem should return true 
7905          for Arrays as well.
7906
7907 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
7908
7909          * PropertyGrid.cs, GridEntry.cs, PropertyGridView.cs:
7910           - Renamed GridEntry.SelectedObjects to TargetObjects to better
7911           reflect the property name role.
7912           - PropertyGrid.GetTarget is not required as the target is known
7913           (TargetObjects).
7914           - Setting values will handle value types as a special case now and
7915           populate them up in the chain.
7916           [Fixes #354990]
7917
7918 2008-01-21  Jonathan Pobst  <monkey@jpobst.com>
7919
7920         * Hwnd.cs: Create a public property for the Graphics we keep around.
7921
7922 2008-01-21  Ivan N. Zlatev  <contact@i-nz.net>
7923
7924          * PropertyGridView.cs: Just hide the grid textbox and do nothing more 
7925          when the current object selection changes. 
7926          Fixes failing test SelectedObject_Null2.B5.
7927
7928 2008-01-21  Ivan N. Zlatev  <contact@i-nz.net>
7929
7930          * PropertyGrid.cs: Process Browsable properties with 
7931          DesignerSerializationVisibilityAttribute.Content as being expandable.
7932          This seems also what MS does. Without this e.g SplitContainer.Panel1/2
7933          will not be expandable. We should be nested components-friendly now.
7934
7935 2008-01-21  Andreia Gaita <avidigal@novell.com>
7936
7937         * WebBrowserBase.cs: Check if control was loaded properly, 
7938         don't bind if it wasn't.
7939
7940         * HtmlDocument.cs: Implement CreateElement, Equals, Focus, 
7941         GetElementFromPoint, equality operators, OpenNew, Write.
7942         Remove extra set_Body
7943
7944 2008-01-18  Jonathan Pobst  <monkey@jpobst.com>
7945
7946         * ContainerControl.cs, Control.cs: Apply patch from James Purcell
7947         that makes our AutoScale* stuff more tolerant to different orders
7948         of being set.  [Fixes bug #354669]
7949
7950 2008-01-18  Ivan N. Zlatev  <contact@i-nz.net>
7951
7952          * PropertyGridView.cs, PropertyGridTextBox.cs: 
7953          Drop WM_LBUTTONDOWN msg sending and use focusing instead.
7954          [Fixes #339005 and #348209]
7955
7956 2008-01-18  Ivan N. Zlatev  <contact@i-nz.net>
7957
7958          * PropertyGridView.cs: Hide the grid text box before adjusting it
7959          for the newly selected GridItem.
7960          [Fixes #338999]
7961
7962 2008-01-18  Jonathan Pobst  <monkey@jpobst.com>
7963
7964         * Form.cs: Give MDI children the opportunity to cancel the parent form
7965         attempting to close.  Ensure that all [Form]Clos[ing,ed] events get called
7966         properly for both the parent and child.
7967         * Application.cs: Signature of internal method changed, pass the previous
7968         default of false.
7969         [Fixes bug #354286]
7970
7971 2008-01-17  Ivan N. Zlatev  <contact@i-nz.net>
7972
7973         * PropertyGridView.cs: Set the property value only if it has changed.
7974         [Fixes bug #338997]
7975
7976 2008-01-17  Jonathan Pobst  <monkey@jpobst.com>
7977
7978         * MenuAPI.cs: Windows sends us MOUSEMOVE messages when any key is pressed.
7979         If the mouse hasn't actually moved, ignore these messages so the currently
7980         highlighted menuitem isn't reset to the one under the mouse.
7981         [Fixes bug #333668]
7982
7983 2008-01-17  Ivan N. Zlatev  <contact@i-nz.net>
7984
7985         * PropertyGridView.cs: When the property changes Invalidate the GridItem
7986         in order for the properties with UITypeEditor.GetPaintValueSupported == true
7987         to reflect the change visually.
7988         [Fixes bug #338998]
7989
7990 2008-01-17  Jonathan Pobst  <monkey@jpobst.com>
7991
7992         * ButtonBase.cs: Add LineLimit to 1.1 button drawing, and TextBoxControl
7993         to 2.0 button drawing.
7994         * ThemeWin32Classic.cs: Ensure that the rectangle we are using to draw 
7995         the button text is tall enough for one line.  LineLimit says it will
7996         always draw at least one line, but it is a lie.
7997         [Fixes bug #324941]
7998
7999 2008-01-17  Atsushi Enomoto  <atsushi@ximian.com>
8000
8001         * XplatUIStructs.cs, X11Keyboard.cs :
8002           added some more VK_* keys to be handled.
8003
8004 2008-01-16  Andreia Gaita <avidigal@novell.com>
8005
8006         * Control.cs: Check if there is a container before setting or getting
8007         the validation flag.
8008
8009 2008-01-16  Andreia Gaita <avidigal@novell.com>
8010
8011         * ContainerControl.cs: Add flag to track if a control cancels validation, 
8012         so we don't fire click events.
8013
8014         * Control.cs: 
8015         - (HandleClick) Check if validation was cancelled before  firing the click
8016         events (doubleclicks are fired, but not clicks)
8017         - (WmLButtonDown) Reset validation flag. The flag is normally reset on 
8018         ContainerControl.set_ActiveControl, but in the case of non-selectable
8019         controls, like a Label, activecontrol is not set. 
8020
8021         * ButtonBase.cs: Only fire clicks if validation passes.
8022         
8023         Fixes #353310
8024
8025 2008-01-16  Geoff Norton  <gnorton@novell.com>
8026
8027         * XplatUICarbon.cs: Implement GetAutoScaleSize to fix Reflector on
8028         trunk
8029
8030 2008-01-16  Jonathan Pobst  <monkey@jpobst.com>
8031
8032         * FolderBrowserDialog.cs: If we cannot interpret the user's requested
8033         SelectedPath, just display the default dialog instead of crashing.
8034         [Fixes bug #348989]
8035
8036 2008-01-16  Geoff Norton  <gnorton@novell.com>
8037
8038         * XplatUICarbon.cs:  Flicker be gone!  Generate our messages in
8039         AddExpose instead of trusting apples compositing manager which doesn't
8040         work for our use case.  Remove some dead code causing warnings and 
8041         redecorate some other code to prevent warnings.
8042
8043 2008-01-16  Geoff Norton  <gnorton@novell.com>
8044
8045         * XplatUICarbon.cs:  Avoid some unecessary invalidation calls when
8046         carbon signals us to redraw.  Fixes another portion of the flickering bug
8047
8048 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
8049
8050         * Form.cs: Prevent the MdiParent property to be set when value is the same
8051         as value already set. Fixes bug #328019.
8052
8053 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
8054
8055         * Form.cs: Don't set mdi_parent as null when mdi window close is prevented, 
8056         it prevents NRE when closing mdi child windows. Fixes bug #325211.
8057
8058 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
8059
8060         * InternalWindowManager.cs: Invalidade close button after mouse up when 
8061         mdi form is prevented to close.
8062
8063 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
8064
8065         * MdiClient.cs: Fix the minimum bounds on child window sizes when cascade,
8066         thanks to Andy Hume. Fixes bug #325433.
8067
8068 2008-01-16  Andreia Gaita <avidigal@novell.com>
8069
8070         * LinkLabel.cs: Reset focused_index when resellecting the control.
8071         Fixes #323190
8072
8073 2008-01-15  Geoff Norton  <gnorton@novell.com>
8074
8075         * XplatUICarbon.cs:  Rework Grab/Ungrab handling to send some needed 
8076         messages.
8077
8078 2008-01-15  Jonathan Pobst  <monkey@jpobst.com>
8079
8080         * Form.cs: Change 2 more AutoScaleBaseSize calculation to round instead
8081         of truncate.
8082
8083 2008-01-15  Jonathan Pobst  <monkey@jpobst.com>
8084
8085         * ContainerControl.cs: Setting AutoScaleMode to anything should set
8086         Form.AutoScale to false.
8087         * Form.cs: Setting AutoScale to true should set AutoScaleMode to None.
8088         AutoScaleBaseSize should be changed on Font change unless it has been
8089         explicitly set.
8090         [Fixes bug #353827]
8091
8092 2008-01-15  Everaldo Canuto  <ecanuto@novell.com>
8093
8094         * MenuAPI.cs: On instance of MenuTracker check if source control is
8095         ToolStripOverflow and use properly method to find form.
8096         [Fixes bug #338511]
8097
8098 2008-01-15  Everaldo Canuto  <ecanuto@novell.com>
8099
8100         [Fixes bug #323241 Transparent toolbar support]
8101
8102         * ToolBar.cs: Define ToolBarStyles.TBSTYLE_FLAT in CreateParams when toolbar
8103         is flat.
8104
8105         * Control.cs: Paint background as transparent in case of TBSTYLE_FLAT is
8106         defined in control style to mimic win32 behavior.
8107
8108         * ThemeWin32Classic.cs: Don't paint background for flat apparence toolbar, 
8109         it will be transparent.
8110
8111 2008-01-14  Everaldo Canuto  <ecanuto@novell.com>
8112
8113         * XplatUIStructs.cs: Implement ToolBarStyles to use in Style property of
8114         CreateParams for ToolBar controls.
8115
8116 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
8117
8118         * Form.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs: Forms with
8119         FixedToolWindow, SizeableToolWindow, or None for border styles have
8120         different minimum sizes than regular forms.  Implemented to fix
8121         regression in PDN with toolbox being too wide.
8122
8123 2008-01-14  Andreia Gaita <avidigal@novell.com>
8124
8125         * HtmlElementCollection.cs: Implemented
8126
8127         * HtmlElement.cs: Implemented:
8128           - All
8129           - InnerHtml
8130           - InnerText
8131           - Id
8132           - Name
8133           - FirstChild
8134
8135         * HtmlDocument.cs: Implemented GetElementsByTagName.
8136
8137 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
8138
8139         * Screen.cs: Stub BitsPerPixel to always return 32.
8140
8141 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
8142
8143         * Form.cs: Implement RestoreBounds.
8144
8145 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
8146
8147         * RichTextBox.cs, ToolStrip.cs: Fix some typos pointed out by
8148         Sebastien and his fabulous magical problem-finding machine:
8149         Gendarme.  Also put a MonoTodo on AutoWordSelect since we don't
8150         respect the value set.
8151
8152 2008-01-14  Everaldo Canuto  <ecanuto@novell.com>
8153
8154         * Form.cs: In WmWindowPosChanged call base.WndProc including when state is
8155         minimized. Fixes bug #325122 for Win32. Thanks  Srikanth Madikeri.
8156
8157 2008-01-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8158
8159         * X11Dnd.cs: Since we don't propagate the WM_LBUTTONUP/WM_RBUTTONUP
8160         messages (to match .Net), we need to remove the capture ourselves.
8161
8162 2008-01-11  Jonathan Pobst  <monkey@jpobst.com>
8163
8164         * MenuAPI.cs: If we get an Alt-F4, release our capture so Windows
8165         will process the message and close our window.
8166         [Fixes bug #324328]
8167
8168 2008-01-10  Geoff Norton  <gnorton@novell.com>
8169
8170         * XplatUICarbon.cs:  Clip the Graphics context to the invalid area
8171         tracked in the Hwnd.  Only invalidate the dirty region to the Carbon
8172         window manager.
8173
8174 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
8175
8176         * Form.cs: Enforce the Form minimum size in SetBoundsCore.  Fixed
8177         failing test.
8178
8179 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
8180
8181         * XplatUIX11.cs: Set a minimum window size and enforce it.  Even though
8182         Linux doesn't care, having a minimum matches MS and keeps the window
8183         from becoming too small to use window decorations.
8184         [Fixes bug #338996]
8185
8186 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
8187
8188         * ThemeWin32Classic.cs: Tie CheckBox/RadioButton focus rectangles to
8189         ShowFocusCues.  Make focus rectangles fit the text instead of the whole
8190         control.  [Fixes bug #325419]
8191
8192 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
8193
8194         * ComboBox.cs: Guard against an NRE if the user open a new form from a
8195         SelectedIndexChanged event.  This closes the combobox dropdown, and we
8196         were trying to dispose it.  [Fixes bug #352830]
8197
8198 2008-01-09  Jonathan Pobst  <monkey@jpobst.com>
8199
8200         * Control.cs, Form.cs: Implement the necessary semantics for
8201         ShowFocusCues.  All paint code will need to check Control.ShowFocusCues
8202         to determine if a focus rectangle should be drawn.
8203         * PropertyGrid.cs: Fix property visibility to match override.
8204         * ThemeWin32Classic.cs: Use ShowFocusCues for Button.
8205
8206 2008-01-09  Jonathan Pobst  <monkey@jpobst.com>
8207
8208         * Application.cs: Use GetCommandLineArgs to calculate ExecutablePath.
8209         [Fixes bug #323552]
8210
8211 2008-01-09  Geoff Norton  <gnorton@novell.com>
8212         
8213         * XplatUICarbon.cs: Scroll windows in the correct direction.
8214
8215 2008-01-09  Geoff Norton  <gnorton@novell.com>
8216
8217         * XplatUICarbon.cs: Track all created utility windows so we can hide them
8218         when the app is deactivated or spaces is enabled.
8219
8220 2008-01-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8221
8222         * ListViewItem.cs: Cosmetic fix - When calculating layout for item, don't add an
8223         extra separation pixel for the label rect origin if SmallImageList is
8224         null, and thus we don't need that separation between icon and label
8225         rects.
8226         Patch by Ernesto Carrea.
8227         Fixes # 340195.
8228
8229 2008-01-08  Jonathan Pobst  <monkey@jpobst.com>
8230
8231         * StatusStrip.cs: Invalidate after completing a layout.  The base
8232         OnLayout does this, but we don't call the base.
8233         * ToolStripItem.cs: Revert the previous change to invalidate after
8234         the item moves.
8235         [Fixes bug #351341 better.]
8236
8237 2008-01-07  Geoff Norton  <gnorton@novell.com>
8238
8239         * XplatUICarbon.cs:  WM_DESTROY is a teardown of a single window
8240         not a notification to exit the application.  Listen for WM_QUIT
8241         instead.
8242
8243 2008-01-07  Andreia Gaita <avidigal@novell.com>
8244
8245         * HtmlDocument.cs: Fix case on GetElementById (interface changed)
8246
8247 2008-01-07  Jonathan Pobst  <monkey@jpobst.com>
8248
8249         * ToolStripItem.cs: If the bounds of an item changes, invalidate it
8250         so it can repaint at the correct location.
8251         [Fixes bug #351341]
8252
8253 2008-01-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8254
8255         * ListControl.cs: SelectedValue should return a null value if
8256         SelectedIndex is -1. Also, when setting it, it should throw an
8257         ArgumentNullException if the value is null, as well as taking
8258         into account the String.Empty value, instead of ignoring it (we have
8259         tests for that now).
8260         Fixes part of #324286.
8261
8262 2008-01-06  Jonathan Pobst  <monkey@jpobst.com>
8263
8264         * TextBoxBase.cs, TextControl.cs: Patch from Luke Page to ensure
8265         SelectionStart is updated after pressing enter.  Fixes bug #351918.
8266
8267 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
8268
8269         * TextControl.cs: Revert a piece r92316 that prevented the fix
8270         from working when there were multiple tags in the text box.
8271         Fixes bug #351881.
8272
8273 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
8274
8275         * TextControl.cs: Apply patch from Luke Page that prevents an
8276         NRE when determining the beginning of a paragraph.
8277         Fixes bug #351886.
8278
8279 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
8280
8281         * TextBoxBase.cs: Apply patch from Luke Page that ensures the
8282         caret gets moved with clicking away from a selected block of
8283         text.  Fixes bug #351885.
8284
8285 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
8286
8287         * TextControl.cs: Apply patch from Luke Page that takes line
8288         alignment into account for mouse selection, so that center and
8289         right aligned text can be selected.
8290         Fixes bug #351881.
8291
8292 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
8293
8294         * RichTextBox.cs: Apply patch from Luke Page that fixes some caret
8295         issues after loading an RTF file by using the correct line feeds.
8296         Fixes bug #351841.
8297
8298 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
8299
8300         * TextControl.cs: When deleting multiple line selections, we need
8301         to invalidate every line beginning at the first line of the selection.
8302         Patch from Luke Page fixes bug #351791.
8303
8304 2008-01-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8305
8306         * ListControl.cs: When getting a CurrencyManager.PositionChanged
8307         event, don't set SelectedIndex if the number of items is 1. This is
8308         because, for the first item, PositionChanged is fired _before_
8309         ItemChanged (the place where we actually populate the items), and
8310         leave us in a temporary invalid state (since items collection is
8311         empty).
8312         Fixes #349655.
8313
8314 2008-01-04  Geoff Norton  <gnorton@novell.com>
8315
8316         * XplatUICarbon.cs:  Create native toolwindows instead of
8317         the managed drawing ones.
8318
8319 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
8320
8321         * LineTag.cs: If the line doesn't have any characters, return
8322         0 for GetCharIndex.  Fixes an AOORE exception after certain
8323         caret movements.  Fixes bug #351683.  Patch by Luke Page.
8324
8325 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
8326
8327         * TextBoxBase.cs: Apply patch from Luke Page so when backspace
8328         is hit when there is selected text, only the selected text gets
8329         deleted, not the character in front of the selection as well.
8330         Fixes bug #351578.
8331
8332 2008-01-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8333
8334         * ComboBox.cs: When the values are displayed, calculate the
8335         ComboListBox scrollbar's LargeChange based on the visible area's
8336         height and  the actuall ItemHeight, instead of calculating it
8337         based on MaxDropItems value, since it's not used by our _current_ 
8338         2.0 profile.
8339         Fixes #332366.
8340
8341 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
8342
8343         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
8344         Patch from Luke Page that fixes issues with font colors and styles
8345         not showing up in a readonly RichTextBox.  Fixes bug #324354.
8346
8347 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
8348
8349         * Line.cs, RichTextBox.cs, TextControl.cs: Another awesome patch
8350         from Luke Page.  This one fixes bug #349926.
8351
8352 2007-12-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8353
8354         * CurrencyManager.cs: Actually fire the 2.0 ListChanged event when
8355         an item in the IBindingList source changes with
8356         ListChangedType.ItemAdded. Ignore for now firing the event for other
8357         changes, since we want to have tests for those cases as well.
8358
8359 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
8360
8361         * TextBoxBase.cs: Don't store a 1x1 Bitmap for every TextBox
8362         created.
8363
8364 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
8365
8366         * TextBoxTextRenderer.cs: Implement a cache for measuring each
8367         character.  This is effective because the typical usage of a
8368         TextBox is with a limited amount of fonts and characters, and
8369         the current implementation of TextBox measures everything one
8370         character at a time.  Another second or two speedup for bug #347238.
8371
8372 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
8373
8374         * Control.cs: Rewrite the Font getter to only query the parent's
8375         Font property once instead of twice.  Since this operation is
8376         recursive, the queries were growing exponentially as the control
8377         tree got deeper.  Another second or two speedup for bug #347238.
8378
8379 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
8380
8381         * Control.cs: Avoid setting a parent (and more importantly, updating
8382         the zorder of all its children) if the parent is already correct in
8383         WmShowWindow.  Decreases the startup time of the test case on bug
8384         #347238 from 35 seconds to 11 seconds.
8385
8386 2007-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8387
8388         * X11Dnd.cs: When the dnd operation has started and we are 
8389         in the dnd loop, don't dispatch either WM_LBUTTONUP nor WM_RBUTTONUP.
8390         This is done to match .Net, which doesn't send those messages after
8391         dnd operation was completed/cancelled.
8392         Fixes #349922.
8393
8394 2007-12-27  Jonathan Pobst  <monkey@jpobst.com>
8395
8396         * ToolStrip.cs: Previous change should be != null, not == null.
8397         Thanks Gert!
8398
8399 2007-12-27  Jonathan Pobst  <monkey@jpobst.com>
8400
8401         * ToolStrip.cs: Guard against an NRE after ItemClicked is called, the
8402         user may have moved the mouse off the current item during the event.
8403
8404 2007-12-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8405
8406         * ListView.cs: In ItemControl.ItemsMouseMove, try to avoid
8407         calling GetItemAt for every MouseMove event by also taking into
8408         account whether any mouse button is pressed (probably dragging); 
8409         if so, we can call GetItemAt, and if not, try to not call it 
8410         (GetItemAt can be quite expensive when used with a large number of items).
8411
8412 2007-12-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8413
8414         * ListView.cs: Implement -finally- support for dnd, by calling
8415         OnItemDrag as needed. Also, remove the dnd TODO, and add myself to the
8416         authors list ;-).
8417         * ListViewInsertionMark.cs: Implement NearestIndex method, by doing a
8418         simple calculation of distances for all the items in the owner
8419         listview.
8420
8421 2007-12-21  Geoff Norton  <gnorton@novell.com>
8422
8423         * XplatUICarbon.cs:  Ensure that we create WindowMapping handles
8424         for windows that are originally created as invisible.  Fixes missing
8425         main window in paint-mono.
8426
8427 2007-12-21  Geoff Norton  <gnorton@novell.com>
8428
8429         * XplatUICarbon.cs:  Register our D&D handler.  Register our custom
8430         subclass handler for com.novell.mwfview subclassing HIView.  Implement
8431         Pasteboard and Dnd methods.
8432
8433 2007-12-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8434
8435         * ListBox.cs: When we got focus, give focus to first item if there
8436         wasn't any pervious focused item. Also update navigation to depend on
8437         SelectedIndex rather than FocusedItem, just as .Net does.
8438         Fixes #349174.
8439
8440 2007-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8441
8442         * ListBox.cs: Both FindString and FindStringExact methods must do an
8443         case insensitive search, should allow the last valid index to be
8444         passed in the overload taking an initial index, and should also
8445         continue searching from the top back to the specified index when it
8446         reaches the bottom.
8447
8448 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
8449
8450         * TextControl.cs: Apply patch from Luke Page that fixes a scrolling
8451         redraw issue, and allows RichTextBox to draw colored text even while
8452         disabled or readonly.
8453
8454 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
8455
8456         * RichTextBox.cs, TextBoxBase.cs: Apply patch from Luke Page that
8457         disallows cut/paste in a readonly textbox, adds support for Shift-Insert,
8458         and doesn't grey text in a disabled RichTextBox.
8459
8460 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
8461
8462         * RichTextBox.cs: Apply patch from Luke Page that adds better support
8463         for many RTF commands: quad alignment, separate formatting for blocks
8464         inside groups, and ParDef support.  Makes the test case from bug #324589
8465         look much better.
8466
8467 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
8468
8469         * LineTag.cs: Fix an error in the new Draw method that caused
8470         a crash when rendering the document on bug #324589.
8471
8472 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
8473
8474         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs,
8475         TextControl.cs: Apply patch from Luke Page that adds support
8476         for URL links in RichTextBox.
8477         [Fixes enhancement #342516]
8478
8479 2007-12-18  Everaldo Canuto  <ecanuto@novell.com>
8480
8481         * MenuItem.cs: When cloning menuitem clone also name and tag properties for
8482         2.0 profile. Thanks Ernesto Carrea and Luke Page. Fixes bug #340289.
8483
8484 2007-12-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8485
8486         * ListBox.cs: When a key gets pressed, try to find a string
8487         if the key is a character or a digit.
8488         Fixes #343971.
8489
8490 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
8491
8492         * TableLayoutPanel.cs: Remove some unused variables.
8493
8494 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
8495
8496         * DateTimePicker.cs: Commit patch from Luke Page that ensures
8497         we don't end up at an invalid date when we click the up/down
8498         spinner to change the month or year.  Fixes bug #348682.
8499
8500 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
8501
8502         * Application.cs: Calling Exit in 2.0 should chain to the
8503         Exit (CancelEventArgs) version so it can be cancelled.
8504         * Form.cs: Create a flag to allow raising the Closing
8505         events to be skipped.  We raise them once in Application.Exit
8506         and don't want to raise them again when the Form is actually
8507         closed.  [Fixes bug #349073]
8508
8509 2007-12-16  Jonathan Pobst  <monkey@jpobst.com>
8510
8511         * ToolStripDropDown.cs: Guard against an NRE when there
8512         hasn't been a mainform set in the application context.
8513         [Fixes bug #349108]
8514
8515 2007-12-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8516
8517         * ListBox.cs: When SetBoundsCore gets called, besides
8518         calling UpdateScrollBars, update the value of
8519         last_visible_index, since we could need to show more items
8520         than before, and we need to let the paint routines know that.
8521         Fixes #344445.
8522
8523 2007-12-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8524
8525         * ListView.cs: Add DesignerSerializationVisibility attribute to
8526         InsertionMark property.
8527         * ListViewItem.cs: Add same attribute to Position property.
8528
8529 2007-12-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8530
8531         * ListViewItem.cs: .ctor (SerializationInfo, StreamingContext)
8532         is 2.0 only.
8533
8534 2007-12-14  Jonathan Pobst  <monkey@jpobst.com>
8535
8536         * ThemeWin32Classic.cs: Don't draw the background on a
8537         flat button if there is a background image.
8538         [Fixes bug #348649]
8539
8540 2007-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8541
8542         * ListBox.cs: If we remove the item currently selected,
8543         remove it not only from SelectedItems, but also
8544         resetting selected_index. Moreover, set focused_item to Items.Count - 1 if 
8545         the items count decreased and focused_item has bigger value than that.
8546
8547 2007-12-13  Jonathan Pobst  <monkey@jpobst.com>
8548
8549         * Control.cs: Perform our layout after we resize ourselves
8550         if we had to adjust our AutoSize.  Missed commit for bug
8551         #346246.
8552
8553 2007-12-13  Jonathan Pobst  <monkey@jpobst.com>
8554
8555         * TableLayoutPanel.cs: Override GetPreferredSizeCore so
8556         we can provide an implementation of AutoSize.
8557         [Fixes bug #346246]
8558
8559 2007-12-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8560
8561         * ListBox.cs: Add the internal overload Sort (bool paint),
8562         to indicate whether we actually need a paint or we will
8563         call Refresh ourselves. This way we don't request a paint
8564         _before_ having an updated and valid layout.
8565         Fixes #347233.
8566
8567 2007-12-12  Andreia Gaita <avidigal@novell.com>
8568
8569         * XPlatUIX11.cs: Send paint messages when updating a systray icon
8570         * NotifyIcon.cs: Invalidate the window before doing a systray change so it is
8571         properly invalidated. 
8572         Fixes #324237
8573
8574 2007-12-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8575
8576         * ListViewItem.cs: When using a .ctor taking a ListViewGroup,
8577         don't simply assign it to our internal group field, but instead 
8578         use our Group property, which should do all the neccessary work
8579         required to support groups. Fixes an issue reported to me (mail) by a 
8580         guy using this new feature.
8581
8582 2007-12-11  Jonathan Pobst  <monkey@jpobst.com>
8583
8584         * Control.cs: Use Scale instead of ScaleControl to ensure the
8585         whole hierarchy gets scaled.
8586         [Fixes bug #347282]
8587
8588 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
8589
8590         * DateTimePicker.cs: Don't set the internal MonthCalendar's
8591         Parent property.  Doing this causes the control to be hosted by
8592         the Form instead of being a popup window.
8593         [Fixes bug #347665]
8594
8595 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
8596
8597         * ToolStripItemCollection.cs: If we try to insert a ToolStripItem
8598         at an index higher than Count, just use Add instead of Insert.
8599         [Fixes bug #347669]
8600
8601 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
8602
8603         * ThemeWin32Classic.cs: Don't draw a PictureBox's background in
8604         DrawPictureBox, this is handled by Control.PaintBackground.
8605         [Fixes bug #347276]
8606
8607 2007-12-10  Everaldo Canuto  <ecanuto@novell.com>
8608
8609         * MenuAPI.cs: When process menu keys return true by default only if menu is
8610         active. Fixes bug #342892.
8611
8612 2007-12-09  Andreia Gaita <avidigal@novell.com>
8613
8614         * Control.cs: check if windows are actually mapped before
8615         trying to zorder. Fixes #342509, #346955
8616
8617 2007-12-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8618
8619         * ListView.cs:
8620         * ListViewInsertionMark.cs:
8621         * ThemeWin32Classic.cs: Implement the drawing side of the
8622         new 2.0 ListView.InsertionMark property.
8623
8624 2007-12-07  Jonathan Pobst  <monkey@jpobst.com>
8625
8626         * CurrencyManager.cs: Silence some debug spew.
8627
8628 2007-12-07  Geoff Norton  <gnorton@novell.com>
8629         
8630         * Hwnd.cs: Refactor GetClippingRectangles to suppose returning the
8631         masks for our children as well as siblings to avoid having to query
8632         Quartz for this information.
8633         * XplatUICarbon.cs: Implement a delegate based system to pass
8634         information to System.Drawing.  Implement Async methods.  Remove
8635         the hack for the resize thumb and imlpement a transparent Grow Box.
8636         Rework the messaging system to proplery create window's and messages,
8637         fixes TabControl.
8638
8639 2007-12-06  Andreia Gaita <avidigal@novell.com>
8640
8641         * X11Keyboard.cs: Use Xutf8LookupString to support international 
8642         characters under alternate codepages. Patch from #340878
8643
8644 2007-12-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8645
8646         * ListView.cs: When doing layout computations, set position in the
8647         ListView instances (we cache the position just as .Net does).
8648         * ListViewItem.cs: New internal setter method for Position. Also set
8649         position field as also available in 1.1, since we are going to use it
8650         now in the common case.
8651
8652 2007-12-06  Andreia Gaita <avidigal@novell.com>
8653
8654         * Control.cs: When removing controls, get the actual container
8655         to notify about active control changes. Fixes 341314.
8656
8657 2007-12-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8658
8659         * ListViewItem.cs: Forgot to add Font to our serialization stuff.
8660
8661 2007-12-05  Andreia Gaita <avidigal@novell.com>
8662
8663         * Control.cs: When updating the zorder, ignore windows that are not
8664         mapped. Fixes #342509
8665
8666 2007-12-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8667
8668         * ListViewItem.cs: Actually implement serialization on this class.
8669
8670 2007-12-05  Gert Driesen  <drieseng@users.sourceforge.net>
8671
8672         * LinkLabel.cs: Fixed paramname of ArgumentNullException in ctor of
8673         LinkCollection. Spaces to tabs, and removed extra tabs.
8674
8675 2007-12-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8676
8677         * XplatUIX11.cs: Make toolwindows' decorations show up without causing any
8678           tests to fail (hopefully).
8679
8680 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
8681
8682         * ToolStripDropDownMenu.cs: Fill in AffectedBounds when drawing
8683         the image margin so custom renderers can correctly place it.
8684
8685 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
8686
8687         * StatusStrip.cs: Fill in AffectedBounds when drawing the grip
8688         so custom renderers can correctly place it.
8689
8690 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
8691
8692         * Application.cs: Let WM_CHAR messages flow through to controls
8693         hosted in Strips.  [Fixes bug #343972]
8694
8695 2007-12-02  Jonathan Pobst  <monkey@jpobst.com>
8696
8697         * ToolStripManager.cs: Guard against an NRE I ran into.
8698
8699 2007-12-02  Jonathan Pobst  <monkey@jpobst.com>
8700
8701         * LinkLabel.cs: Apply patch from George to fix bug 344012.  If
8702         a Link is manually added to the Links collection, we need to set
8703         its owner, so it can invalidate properly.
8704         [Fixes bug #344012]
8705
8706 2007-11-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8707
8708         * ListView.cs: When changing ListViewItem.Position (which calls
8709         ListView.ChangeItemLocation), invalidate not only the area
8710         corresponding to the main item, but also to the area occupied
8711         by the items being moved.
8712
8713 2007-11-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8714
8715         * ListView.cs: When changing the position of a given item,
8716         don't use item bounds, but item areas (which includes the item spacing
8717         between them). Also, use first/last position if the requested
8718         position is outside bounds (as .Net does). Invalidate the previous and
8719         new bounds. Finally, in ItemControl.ItemsMouseDown use the actual item
8720         in a specific position, instead of directly accessing Items collection
8721         (this is done to get the right item - remember an Item can have a
8722         different position in the grid than in the Items collection).
8723
8724 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
8725
8726         * MessageBox.cs: Calculate text area instead of just top left, this rect 
8727         area will be used in DrawString. Fixes bug #343364.
8728
8729 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
8730
8731         * MessageBox.cs: Calculate max amount for text area width, it must be 60% of
8732         screen width. Partially fixes bug #343364.
8733
8734 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
8735
8736         * NotifyIcon.cs: Remove duplicated code before call realculate and put this
8737         code inside recalculate, it makes code more simple.
8738
8739 2007-11-22  Everaldo Canuto  <ecanuto@novell.com>
8740
8741         * NotifyIcon.cs: When recalculate icon verify if icon is active to decide
8742         between update or add icon. Fixes bug #324344.
8743
8744 2007-11-21  Andreia Gaita <avidigal@novell.com>
8745
8746         * XPlatUIX11.cs: Do not treat tool windows as if they have no 
8747         window manager, since that stretches the drawing area to include
8748         the window decorations, and they get hidden. Reverts r84444 and fixes
8749         #335849 and #342790 (mdi and pdn3 regression)
8750
8751 2007-11-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8752
8753         * ListView.cs: When setting focused item, try to give focus to the
8754         previous one _only_ if the previous one remains valid. 
8755         Fixes #342504.
8756
8757 2007-11-20  Jonathan Pobst  <monkey@jpobst.com>
8758
8759         * Application.cs: Revert r89650, as it broke a common case to fix
8760         an obscure case.  Fixes bug #342606.
8761
8762 2007-11-20  Everaldo Canuto  <ecanuto@novell.com>
8763
8764         * ThemeWin32Classic.cs: Fix extra space on end of tooltip.
8765
8766 2007-11-20  Everaldo Canuto  <ecanuto@novell.com>
8767
8768         * ThemeWin32Classic.cs: Fix tooltip text align removing horizontal 
8769         alignment. [Fixes #324228]
8770
8771 2007-11-19  Jonathan Pobst  <monkey@jpobst.com>
8772
8773         * ToolStrip.cs: Handle flow layout in GetPreferredSize to fix PDN3.
8774         [Fixes bug #342123]
8775
8776 2007-11-19  Everaldo Canuto  <ecanuto@novell.com>
8777
8778         * Form.cs: Check for empty Text before assign to cp.Caption in CreateParams
8779         it prevent problems when empty captions. [Fixes #342141]
8780
8781 2007-11-19  Jonathan Pobst  <monkey@jpobst.com>
8782
8783         * Label.cs: Use Size instead of None.  Fixes bug #342077.
8784
8785 2007-11-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8786
8787         * ListViewItem.cs: Implement 2.0 FindNearestItem method.
8788
8789 2007-11-17  Jonathan Pobst  <monkey@jpobst.com>
8790
8791         * MenuStrip.cs: Guard against a NRE when a MdiWindowItem is set
8792         but there isn't a MdiContainer.
8793         [Fixes bug #342358]
8794
8795 2007-11-17  Jonathan Pobst  <monkey@jpobst.com>
8796
8797         * TextControl.cs: Don't recalculate document if the recalc_start and
8798         recalc_end hasn't changed.
8799         [Fixes bug #342505]
8800
8801 2007-11-17  Gert Driesen  <drieseng@users.sourceforge.net>
8802
8803         * DataGridViewTextBoxCell.cs: Removed CWL.
8804
8805 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8806
8807         * ListView.cs: Implement 2.0 SearchForVirtualItem event support.
8808
8809 2007-11-16  Jonathan Pobst  <monkey@jpobst.com>
8810
8811         * TextControl.cs: Missed some code for bug 341534 to trigger a
8812         recalculation when the font changes.
8813
8814 2007-11-16  Andreia Gaita <avidigal@novell.com>
8815
8816         * Control.cs: When updating the zorder, check if the child to update is
8817         the same control that is set to always be on top (i.e., scrollbars), and 
8818         just put it on top directly. Fixes BadMatch error on pdn3
8819
8820 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8821
8822         * ListView.cs: Throw the needed exceptions for FindNearestItem.
8823
8824 2007-11-16  Jonathan Pobst  <monkey@jpobst.com>
8825
8826         * Control.cs: Don't perform a new layout when a label changes its text,
8827         cause label handles its own autosizing.
8828         [Fixes bug #342077]
8829
8830 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8831
8832         * ListView.cs: Implement 2.0 FindNearestItem methods.
8833
8834 2007-11-15  Jonathan Pobst  <monkey@jpobst.com>
8835
8836         * ToolStripPanel.cs: Make Join at least add the control to the panel,
8837         even if the rest of what Join does isn't supported.  Add some more
8838         support for vertical toolbars.
8839         * ToolStripPanelRow.cs: Add some more support for vertical toolbars.
8840         [Fixes the application breaking parts of bug #341998]
8841
8842 2007-11-15  Jonathan Pobst <monkey@jpobst.com>
8843
8844         * ToolStripItem.cs: When determining if we have a check/image margin,
8845         we need to look at ShowCheckMargin as well as ShowImageMargin.
8846
8847 2007-11-15  Geoff Norton  <gnorton@novell.com>
8848
8849         * XplatUIOSX.cs: Rename to...
8850         * XplatUICarbon.cs: and refactor all event handling out to the new event handling
8851         system in System.Windows.Forms.CarbonInternal.  Lots of code cleanup as well.
8852
8853 2007-11-15  Jonathan Pobst  <monkey@jpobst.com>
8854
8855         * KeysConverter.cs: The default values should be an array of Keys, not
8856         strings.  Also, the array has more values for 2.0.
8857         [Fixes bug #341851]
8858
8859 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
8860
8861         * Application.cs: Change ExecutablePath to use 
8862         Process.GetCurrentProcess ().MainModule.FileName instead of Assembly.GetEntryAssembly.
8863         [Fixes bug #323552]
8864
8865 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
8866
8867         * LineTag.cs: Don't attempt to draw '\r', treat it like it doesn't exist.
8868         When measureing CR or LF, use /u000D instead of /u0013. (Hex, not decimal.)
8869         * TextControl.cs: Fix a case in GetLineEnding where a \n before a \r would
8870         be ignored.  Create a new GetLineEnding that can specify which types of
8871         line endings to look for.  On Insert, only create new lines for \n and \r\n.
8872         [Fixes bug #324274]
8873
8874 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
8875
8876         * TextBoxBase.cs: As we loop through each line changing the font, tell
8877         the document that the line needs to be recalculated.  Fixes bug #341534.
8878
8879 2007-11-13  Jonathan Pobst  <monkey@jpobst.com>
8880         [Another round of refactoring]
8881         * Line.cs: Add DeleteCharacters.
8882         * LineTag.cs: Add Delete.
8883         * TextBoxBase.cs: Update to use new methods.
8884         * TextControl.cs: Refactor the Delete* methods.
8885
8886 2007-11-13  Everaldo Canuto  <ecanuto@novell.com>
8887
8888         * Win32DnD.cs: Implement Win32 Drop files, thank you Srikanth Madikeri for
8889         the patch. [Fixes #324856]
8890
8891 2007-11-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8892
8893         * ListView.cs:
8894         * ListViewItem.cs: Add an initial implementation of
8895         2.0 ListViewItem.Position getter.
8896
8897 2007-11-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8898
8899         * ListView.cs: Add a reordered_items_indices array, to allow us
8900         to have a different sorting than that of Items (the sorting in Items
8901         could not match the actual sorting in screen). This is needed to
8902         implement a pair of 2.0 features.
8903         * ListViewItem.cs: Add a DisplayIndex property to keep track of the
8904         actual position in the ListView grid, since it could have a position
8905         different than its Index (position in ListViewItemCollection). 
8906
8907 2007-11-09  Jonathan Pobst  <monkey@jpobst.com>
8908
8909         * Label.cs: Add StringFormatFlags.LineLimit.  This tells DrawString to
8910         not draw partial lines.
8911         * LinkLabel.cs: Change FormatFlags setter from = to |= so that the
8912         LineLimit flag from the base is preserved.
8913         Fixes the windows part of bug #338965.
8914
8915 2007-11-09  Jonathan Pobst  <monkey@jpobst.com>
8916
8917         * TextBoxBase.cs: Move handling of the enter key from KEYDOWN to CHAR
8918         so that it can be canceled in KeyPress.
8919         Fixes bug #340078.
8920
8921 2007-11-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8922
8923         * ListView.cs: In ItemControl, reset mouse-handling related
8924         fields even if we dont' have items (we still should reset them when
8925         we had items but then called Items.Clear). Partially based in a patch
8926         by George Giolfan.
8927         Fixes #338399.
8928
8929 2007-11-08  Gert Driesen  <drieseng@users.sourceforge.net>
8930
8931         * Application.cs: In ProductVersion first try AssemblyFileVersion
8932         before falling back to assembly version. Fixes bug #339787.
8933
8934 2007-11-08  Andreia Gaita <avidigal@novell.com>
8935
8936         * HtmlElement.cs: Implement InnerText setter.
8937         * WebBrowserBase.cs: Implement Navigated event support.
8938         Add flag to track when the browser "document" is ready to be retrieved.
8939         * WebBrowser.cs: Implement CanGoBack, CanGoForward, Title, Url.
8940         Make sure browser document is ready before retrieving it.
8941         Clean up cached objects (document) when moving to a new page through
8942         any of the navigation methods.
8943         Use the new Mono.WebBrowser.INavigation interface to control navigation.
8944         Implement OnNavigated event.
8945
8946 2007-11-07  Jonathan Pobst  <monkey@jpobst.com>
8947
8948         * ThemeWin32Classic.cs: Don't draw the background in DrawLabel or
8949         DrawLinkLabel, this is handled by OnPaintBackground.
8950         Fixes bug #339565, part II.
8951
8952 2007-11-07  Andreia Gaita <avidigal@novell.com>
8953
8954         * Control.cs: Revert r88915. Selecting text on a textbox depends on
8955         getting a Select call on click, so this call needs to be here for now.
8956         Unfixes #325809
8957
8958 2007-11-07  Geoff Norton  <gnorton@novell.com>
8959
8960         * OSXStructs.cs: Add the kEventClassApplication constants.
8961         * XplatUIOSX.cs: Send a WM_LBUTTONDOWN to the Grab window when the 
8962         application is deactivated otherwise Menu overlays linger on top of
8963         other application windows.
8964
8965 2007-11-07  Geoff Norton  <gnorton@novell.com>
8966
8967         * XplatUIOSX.cs: Dont throw an exception on OverrideCursor as we
8968         dont support cursors yet anyways.  This allows Reflector to run.
8969
8970 2007-11-07  Geoff Norton  <gnorton@novell.com>
8971
8972         * XplatUIOSX.cs: Implement DragSize.
8973
8974 2007-11-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8975
8976         * ListView.cs: When we receive a WM_LBUTTONDOWN message in
8977         ItemControl, request the focus, as .Net does. This is needed after 
8978         Control does not request focus anymore when it receives a
8979         WM_LBUTTONDOWN.
8980
8981 2007-11-06  Jonathan Pobst  <monkey@Jpobst.com>
8982
8983         * Label.cs: Make DrawImage internal so it can be called from Theme code.
8984         Remove the DrawImage call from OnPaint.
8985         * LinkLabel.cs: Remove the DrawImage call from OnPaint.
8986         * ThemeWin32Classic.cs: Call DrawImage after we paint the background,
8987         but before we draw the text for DrawLabel and DrawLinkLabel.
8988         Fixes bug #339565.
8989
8990 2007-11-05  Andreia Gaita <avidigal@novell.com>
8991
8992         * Control.cs: Remove select call on click. Fixes #325809
8993
8994 2007-11-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8995
8996         * ListViewItem.cs: Add 2.0 Position property getter.
8997
8998 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8999
9000         * ListView.cs: Add 2.0 BackgroundImageTiled property.
9001         Also, to make it work properly, change item's BackColor and
9002         BackgroundImageLayout as needed.
9003         * ThemeWin32Classic.cs: Don't fill any background rectangle 
9004         in ListView.ItemControl when drawing items; just let the Control
9005         base implementation fill it.
9006
9007 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9008
9009         * ListViewGroup.cs: Adda TypeConverter attribute for this class,
9010         as well as adding a custom 'dummy' Converter, as .net does.
9011
9012 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9013
9014         * PropertyGridView.cs: When clicking drop-down button,
9015         select an index in the listbox only if our standard values collection 
9016         has one or more items.
9017
9018 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9019
9020         * ListViewItem.cs: Add a DefaultValue attribute to 2.0 IndentCount
9021         property.
9022
9023 2007-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
9024
9025         * PropertyGrid.cs: In PropertySort, update the toolbar buttons even if
9026         the value is not changed. This ensure a pushed button remains in that
9027         state when clicked again. When switching the value of PropertySort
9028         between Categorized and CategorizedAlphabetical, do not update the
9029         grid items and do not fire a PropertyChangedEvent. When clicking the
9030         sorting buttons, do not modify the PropertySort value when switching
9031         between Categorized and CategorizedAlphabetical but only update the
9032         button state.
9033
9034 2007-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
9035
9036         * Label.cs: Make AutoEllipsis internal on 1.0 profile. Code
9037         formatting.
9038         * PropertyGrid.cs: Also put Categorized button in pushed state when
9039         PropertySort is CategorizedAlphabetical. Set AutoEllipsis to true
9040         for help description label.
9041
9042 2007-11-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9043
9044         * ListView.cs: When calculating the biggest item for a given column,
9045         take into account 2.0 LIstViewItem.IndentCount, since it directly affects
9046         the item's width.
9047
9048 2007-11-03  Gert Driesen  <drieseng@users.sourceforge.net>
9049
9050         * PropertyGrid.cs: Fixed default value for PropertySort. Allow invalid
9051         value for PropertySort on 1.0 profile. PropertySortChanged event
9052         should only be fired on 2.0 profile. Fixed NullReferenceException
9053         in UpdateSortLayout when PropertyGrid contains no items.
9054
9055 2007-11-02  Jonathan Pobst  <monkey@jpobst.com>
9056
9057         * MessageBox.cs: Patch from George to implement MessageBoxDefaultButton.
9058         [Fixes bug #338554]
9059
9060 2007-11-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9061
9062         * ListViewItem.cs: Implement 2.0 IndentCount property.
9063
9064 2007-11-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9065
9066         * X11Dnd.cs: When sending status in a dnd operation, compare current
9067         effect with the 'allowed' field instead of 'drag_data.Allowed', since
9068         the later is only created when a Winforms application is both the
9069         source and the target, but not when we are the target only.
9070         Fixes part of #324251.
9071
9072 2007-11-01  Geoff Norton  <gnorton@novell.com>
9073
9074         * XplatUI*.cs: Add GetPreviousWindow utility method to return windows in
9075         order of Z-Order.
9076         * Hwnd.cs: Add initial implementation of GetClippingRectangles to clip sibling 
9077         children out of the drawing view on mac.
9078         * XplatUIOSX.cs: Code cleanup.  Handle more window grab cases.  Fix SetParent
9079         to handle the orphan and invisible case (1/2 fixes TabStrip drawing in FormsTest)
9080         
9081 2007-11-01  Jonathan Pobst  <monkey@jpobst.com>
9082
9083         * ToolStrip.cs: Don't process MouseUp for a ToolStripControlHost, clicking
9084         on the non-hosted-control part of it shouldn't do anything.
9085         Fixes part of bug #327498.
9086
9087 2007-11-01  Andreia Gaita <avidigal@novell.com>
9088
9089         * WebBrowserBase.cs: revert previous change, resize can be called anytime
9090
9091 2007-11-01  Jonathan Pobst  <monkey@jpobst.com>
9092
9093         * Application.cs: When a toolstrip has the keyboard input loop, let messages
9094         it does not use flow through to controls that are hosted in menus.
9095         Same with mouse clicks.
9096         * Form.cs: Don't close all menus on click if the click is on a
9097         control hosted in a menu.
9098         Fixes part of bug #327498, and part of bug #325969.
9099
9100 2007-10-31  Andreia Gaita <avidigal@novell.com>
9101
9102         * WebBrowserBase.cs: Only call resize on gluezilla when it is active
9103
9104 2007-10-31  Jonathan Pobst  <monkey@jpobst.com>
9105
9106         * TextBoxBase.cs: Use int.MaxValue for MaxLength instead of magic number.
9107         Addresses an issue raised in bug #336218.
9108
9109 2007-10-30  Jonathan Pobst  <monkey@jpobst.com>
9110
9111         * Form.cs: Patch from George that moves the conversion of ClientSize->Size
9112         for PreferredSize from OnLayout to PreferredSize.  Fixes bug #325242.
9113
9114 2007-10-30  Andreia Gaita <avidigal@novell.com>
9115
9116         * ContainerControl.cs: Check if the active control is a
9117         child of a removed control and update active_control accordingly.
9118         Fixes #329718
9119
9120 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
9121
9122         * DateTimePicker.cs: Throw ArgEx if the Value is set outside the MinDate
9123         or the MaxDate.  Fixed bug #337693.
9124
9125 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
9126
9127         * XplatUIWin32.cs: Always call SetWindowPos with SWP_FRAMECHANGED flag
9128         after calling SetWindowLong for a form, to force an immediate NC refresh.
9129         Fixes first part of bug #325150.
9130
9131 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
9132
9133         * ComboBox.cs: Don't try to resize the listbox when we are DropDownStyle
9134         simple.  Fixes the last part of bug #322668.
9135
9136 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
9137
9138         * MessageBox.cs: If the owner is TopMost, then the MessageBox form
9139         needs to be TopMost as well, or else the MessageBox is under the form.
9140         Patch by George fixes bug #325300.
9141
9142 2007-10-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9143
9144         * X11Dnd.cs: When starting a new drag operation, reset the static
9145         'dropped' field to false (previously the implementation didn't reset
9146         it and got confused after the first drag).
9147         Fixes #325071.
9148
9149 2007-10-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9150
9151         * PropertyGrid.cs: When PropertySort changes, re-organize the grid
9152         items instead of re-creating them all. For this purpose we now cache
9153         both CategoryGridEntry items and the GridEntries for the main object's
9154         properties.
9155         * GridItem.cs: Make SetParent method abstract.
9156         * GridEntry.cs: Override the SetParent method (already there, but now
9157         we override it).
9158         Fixes #324866.
9159
9160 2007-10-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9161
9162         * PropertyGridView.cs: Set the plus/minus bounds of a grid item
9163         depending on its depth (as .Net does). Update the needed values in
9164         MouseDown handler. Also draw the plus/minus rect after the label,
9165         so we don't draw on top of it.
9166
9167 2007-10-24  Everaldo Canuto  <ecanuto@novell.com>
9168
9169         * MenuAPI.cs: Return true as default in ProcessKeys to prevent keys to be
9170         processed by forms or controls when menu is active. [Fixes #333548]
9171
9172 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
9173
9174         * ToolStripItem.cs: Don't focus a ToolStripControlHost on Select of the
9175         parent doesn't have focus.  This was causing ToolStripTextBoxes to take
9176         focus on mouse over.
9177
9178 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
9179
9180         * TextControl.cs: Code cleaning, simplifying.
9181
9182 2007-10-24  Geoff Norton  <gnorton@novell.com>
9183
9184         * XplatUIOSX.cs: Route mouse events to the grab hwnd on mouse down as well.
9185         * XplatUIStructs.cs: Fix the ToString method of POINT and MSG.
9186
9187 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
9188
9189         * TextBoxBase.cs: If the user sets maxlength to 0, it should mean
9190         the cap is maxvalue, not actually 0.  [Fixes bug #336218]
9191
9192 2007-10-24  Andreia Gaita <avidigal@novell.com>
9193
9194         * SendKeys.cs: apply jpobst's patch to bug #332409
9195
9196 2007-10-23  Andreia Gaita <avidigal@novell.com>
9197
9198         * TextBoxTextRenderer.cs: Lower bounds max size to Int16.MaxValue, the 
9199         Windows 2000 gdi DrawText call doesn't draw if it's higher than that
9200         for some reason
9201
9202 2007-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9203
9204         * PropertyGridView.cs: If a property has an UIEditor available,
9205         make the drop-down/editor button available only if the property
9206         is _not_ read only.
9207
9208 2007-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9209
9210         * PropertyGridView.cs: Don't make the grid item textbox 
9211         editable when a drop-down control is available, but 
9212         CanConvertFrom (typeof (string)) is false or GetStandardValuesExclusive () is
9213         true. The same bur the color of the grid item value's label.
9214
9215 2007-10-22  Geoff Norton  <gnorton@novell.com>
9216
9217         * OSXStructs.cs: Add the needed constants for keyboard modifiers.
9218         * OSXKeyboard.cs: Initial support for keyboard and limited modifiers.
9219         * XplatUIOSX.cs: New reversible frame support.  Wire in the new keyboard
9220         driver.  Padd the bottom of all real windows so the resize thumb doesn't
9221         obscure scroll/status bars.
9222
9223 2007-10-22  Jonathan Pobst  <monkey@jpobst.com>
9224
9225         * WindowsFormsSection.cs: Implement.
9226
9227 2007-10-22  Everaldo Canuto  <ecanuto@novell.com>
9228
9229         * MdiClient.cs: Maximize new active mdi child when a maximized child is 
9230         closed see #325434 patch.
9231
9232 2007-10-22  Everaldo Canuto  <ecanuto@novell.com>
9233
9234         * MdiClient.cs: Fix remaining issues from layout vertical and horizontal,
9235         see #325434 patch.
9236
9237 2007-10-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9238
9239         * PropertyGridView.cs: When showing the textbox for a grid item,
9240         have two local variables to store the read-only and non-editable
9241         status of a grid item (we were previously using just one variable
9242         to do this, when actually they are slightly different).
9243         Fixes part of #325023.
9244
9245 2007-10-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9246
9247         * PropertyGridView.cs: When showing a drop-down list, try to get the
9248         values using TypeConverter.ConvertTo (to convert to a string). Fixes
9249         part of #325023.
9250
9251 2007-10-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9252
9253         * PropertyGrid.cs: When updating a property and populating sub grid
9254         items, remove the previous ones, and invalidate the specific area.
9255         * PropertyGridView.cs: A new InvalidateBelowGridItem to invalidate the
9256         area behind a grid item.
9257         * GridItemCollection.cs: Add an internal Clear method, to allow us to
9258         clean the items if needed (specially for controls implementing 
9259         ICustomTypeDescriptor and returning a variable number of properties).
9260         Fixes #324865.
9261
9262 2007-10-19  Jonathan Pobst  <monkey@jpobst.com>
9263
9264         * TextControl.cs: Clean up and document the Insert function.
9265
9266 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
9267
9268         * TextControl.cs: Make sure we know our start point for updating the view
9269         in ReplaceSelection.  Fixes an issue where pasting multiline text wouldn't
9270         update the view.
9271
9272 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
9273
9274         * ListView: Couple of corcompare fixes.
9275
9276 2007-10-17  Geoff Norton  <gnorton@novell.com>
9277
9278         * XplatUIOSX.cs: Implement support for window icons in the dock.  Set
9279         the title caption of real window.
9280
9281 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
9282
9283         * ErrorProvider.cs: Add the error provider's internal window to a 
9284         containercontrol when the parent changes.  [Fixes bug #329714]
9285
9286 2007-10-17  Geoff Norton  <gnorton@novell.com>
9287
9288         * XplatUIOSX.cs: Implement ScrollWindow.  Properly create TOOLWINDOWs.
9289         When we make a new window; restore the old active window - fixes dialogs.
9290
9291 2007-10-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9292
9293         * PropertyGridView.cs: Look for RefreshPropertiesAttribute
9294         when modifying a property, and if found then invalidate as
9295         requested.
9296         Fixes part of #324865.
9297
9298 2007-10-17  Geoff Norton  <gnorton@novell.com>
9299
9300         * XplatUIOSX.cs: Re-enable the native driver on the Mac.  This is still
9301         highly experimental.  Fixed coordinate translation.  Fixed window locations.
9302         Initial support for clipping. Implemented NC areas and menus.  Support for
9303         launching from command line from Will Johansson (wjohansson@atacomm.com).
9304         * OSXStructs.cs: Add ProcessSerialNumer (Patch from Will Johansson
9305         wjohansson@atacomm.com)
9306         * Hwnd.cs: Add some internal structures for tracking Mac cursors.
9307         Hwnds now track the existence of all of their children for Mac clipping.
9308     * XplatUI.cs: Re-enabled the native driver on the Mac.
9309
9310 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
9311
9312         * Line.cs: Move the InsertString function to here.
9313         * TextControl.cs: Cleanup some duplicate code, move some InsertString
9314         functionality to Line.
9315
9316 2007-10-17  Geoff Norton  <gnorton@novell.com>
9317
9318         * ComboBox.cs: Destroy the popup after hiding it.  Fixes #322582
9319
9320 2007-10-16  Gert Driesen  <drieseng@users.sourceforge.net>
9321
9322         * ButtonBase.cs: Fixed IsDefault to use assigned value instead of
9323         always setting value to true.
9324         * Form.cs: When changing AcceptButton, notify new and original button.
9325
9326 2007-10-16  Jonathan Pobst  <monkey@jpobst.com>
9327
9328         * Form.cs: Guard against an NRE when the user sets the AcceptButton to
9329         a custom control that implements IButtonControl instead of an actual
9330         button.  [Fixes bug #334244]
9331
9332 2007-10-15  Everaldo Canuto  <ecanuto@novell.com>
9333
9334         * Form.cs: Change SelectActiveControl to internal, we need to call it in
9335         MdiWindowManager.
9336         
9337         * MdiWindowManager.cs: In RaiseActivated call SelectActiveControl to select
9338         active control when activate a new mdi window.
9339         
9340         [Fixes bug #330495]
9341
9342 2007-10-15  Everaldo Canuto  <ecanuto@novell.com>
9343
9344         * ComboBox.cs: Dont implicit add listbox_ctrl on OnHandleCreated because it
9345         is already added.
9346         [Fixes bug #333617]
9347
9348 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
9349
9350         * TextControl.cs: When SuspendRecalc is first called, reset the recalc_start
9351         to MaxValue and recalc_end to MinValue.  Currently, recalc_start is always 1,
9352         so we always recalculate the whole document instead of just the new part.
9353         [Fixes bug #325082]
9354
9355 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
9356
9357         * LineTag.cs: Fix a case where the GetCharIndex would not return 0
9358         when the mouse was to the left of the first character in the line.
9359
9360 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
9361
9362         * TextBox.cs, TextBoxBase.cs: When setting the document's password
9363         character, use the property instead of the variable so that the
9364         UseSystemPasswordChar property is taken into account.
9365         [Fixes bug #333748]
9366
9367 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9368
9369         * FolderBrowserDialog.cs: When a node is right clicked and the "New
9370         folder" contex menu appears, actually add the new folder to it, even
9371         if the node is not currently selected. Still use SelectedNode in case 
9372         there wasn't found a node under the pointer.
9373         Fixes #325452.
9374
9375 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9376
9377         * ListViewItem.cs: When retrieving the focused state, the index check
9378         should be done only when ListView is in virtualmode, as it is an
9379         expensive check for normal mode.
9380
9381 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9382
9383         * ListViewItem.cs: Make the focus state information be stored
9384         in the ListView, not in the items. This is done to match the MS
9385         behaviour for items that are not yet part of a ListView control;
9386         besides that, since just one item can be focused at the same time,
9387         we save a little space in our items.
9388         Fixes part of #331643.
9389
9390 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
9391
9392         * ComboBox.cs: When focus is lost, deselect the text. When setting
9393         text of control, select all text. Do not hide selection when control
9394         does not have focus. Fixes bug #333663.
9395
9396 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
9397
9398         * TextBoxBase.cs: On 2.0 profile, throw ArgumentOutOFRangeException
9399         instead of ArgumentException when SelectionLength is set to negative
9400         value. Added same check to SelectionStart. Code formatting.
9401
9402 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
9403
9404         * TextBoxBase.cs: Invalidate selection before changing SelectionLength
9405         or SelectionStart. Code formatting.
9406
9407 2007-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9408
9409         * TreeView.cs: drag_begin_x and drag_begin_y are now set to -1,
9410         indicating that there was not a previous drag-and-drop operation going
9411         on.
9412         Fixes part of #325071.
9413
9414 2007-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9415
9416         * X11Dnd.cs: When DragEventArgs.Effect is set to a value not part of
9417         AllowedEffect, don't let the drop operation happen. 
9418         Fixes #32580.
9419
9420 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
9421
9422         * TextRenderer.cs: Use GDI on Windows in both the 1.1 and 2.0 profiles.
9423
9424 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
9425
9426         * Line.cs, LineTag.cs: Guard against an exception when Document.Clear
9427         is called.
9428
9429 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
9430
9431         * Line.cs: Add a method that finds the tag that contains an x-coord.
9432         * LineTag.cs: Add a method that finds the character at an x-coord using
9433         a binary search, the old way was a linear search.
9434         * TextControl.cs: Change FindCursor to use the above new methods.
9435
9436 2007-10-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9437
9438         * DragEventArgs.cs: Allow Effect to have a non allowed value (a
9439         value different than AllowedEffect). This should be possible to
9440         indicate that dragging is not possible in some control/area.
9441
9442 2007-10-11  Jonathan Pobst  <monkey@jpobst.com>
9443
9444         * LineTag.cs: Encapsulate all variables with properties.  Calculate ascent/
9445         descent internally when font changes instead of outside code being responsible
9446         for setting it.
9447         * Line.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Use Tag properties
9448         instead of accessing internal variables.
9449
9450 2007-10-09  Everaldo Canuto  <ecanuto@novell.com>
9451
9452         * MdiClient.cs: Always call ArrangeIconicWindows before any arrangement and
9453         remove special treatment for ArrangeIcons since it is already arranged.
9454
9455 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
9456
9457         * TextBoxTextRenderer.cs: Draw takes a Color now instead of a Brush, as
9458         the Win32 backend uses Color.
9459         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
9460         Refactor to store a Color instead of a Brush for Color.
9461
9462 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
9463
9464         * Line.cs, LineTag.cs: Override GetHashCode to make a compiler warning go
9465         away.  I didn't realize I needed this when I refactored these earlier.
9466
9467 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
9468
9469         * LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Refactor to
9470         store a Color structure and use the ResPool for back color instead of
9471         holding onto brushes.
9472
9473 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
9474
9475         * TextControl.cs: Fix how we calculate the end of the tag we are drawing.
9476         [Fixes bug #325592]
9477
9478 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
9479
9480         * MonthCalendar.cs: When ShowWeekNumbers is changed, force the calendar
9481         to recalculate its size.  Fixes a part of bug #331052.
9482
9483 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
9484
9485         * NotifyIcon.cs: Set the correct mouse button when handling right mouse
9486         button.  Fixes a part of bug #331052.
9487
9488 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
9489
9490         * Form.cs: Trim NewLine before setting XPlatUI.SetText, and when setting
9491         the CreateParams.
9492         * ThemeWin32Classic.cs: Trim NewLine before drawing MDI children window
9493         decorations.
9494         [Fixes bug #330986]
9495
9496 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
9497
9498         * TextBoxTextRenderer.cs: Don't make this a static class, as static
9499         doesn't exist in 1.1.  (Thanks jb!)
9500
9501 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
9502
9503         * TextBoxTextRenderer.cs: Abstract text measuring and drawing to this
9504         class to allow us to use different backends on different platforms.
9505         Linux uses the current [Draw|Measure]String backend.  Windows uses
9506         the TextRenderer.[Draw|Measure]Text backend, which uses GDI instead
9507         of GDI+.  This leads to better looking text and more accurate measurements
9508         on Windows, fixing many of the reported issues.
9509         * Line.cs, LineTag.cs: Update to use TextBoxTextRenderer.
9510
9511 2007-10-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9512
9513         * FolderBrowserDialog.cs: When running on Windows,
9514         try to detect paths such "C:" and add Path.DirectorySeparatorChar,
9515         since we must match both "C:" and "C:\" forms. A little hackish, but
9516         works.
9517         Fixes #325247.
9518
9519 2007-10-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9520
9521         * ListView.cs: When calling EndEdit (after editing an item),
9522         create a new instance of LabelEditEventArgs to keep clean the fields
9523         in case we get a new call to BeginEdit; also do Application.DoEvents
9524         to have focus in synch. This is a fix similar to TreeView's #325244.
9525
9526 2007-10-07  Andreia Gaita <avidigal@novell.com>
9527
9528         * HtmlDocument.cs, HtmlElement.cs, WebBrowser.cs: Added dom support
9529         * WebBrowserBase.cs: Added dialog support, calling the
9530           WebBrowserDialogs classes for each specific dialog type.
9531
9532 2007-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9533
9534         * ListView.cs: When the last item is focused and is removed,
9535         move the focus to the previous item (in Items order). This is what MS
9536         does.
9537         Fixes #330415.
9538
9539 2007-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9540
9541         * ListView.cs: In ListViewItemCollection, make Remove call RemoveAt,
9542         instead of the opposite (RemoveAt call Remove). This is a better
9543         approach since we don't need to to a pair of traversals when using
9544         RemoveAt.
9545
9546 2006-10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9547
9548         * TreeView.cs: When Keys.Left is pressed, before trying to Collapse
9549         check that the node actually has nodes, and if not, move to the
9550         parent node instead. 
9551         Fixes #325265.
9552
9553 2006-10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9554
9555         * TreeView.cs: Move the previous change to the general case (to
9556         call Application.DoEvents in cases where the method was called by
9557         different places).
9558
9559 2007_10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9560
9561         * TreeView.cs: When calling EndEdit and we need to hide the textbox,
9562         call Application.DoEvents. This is neccessary when we get a call to
9563         BeginEdit from an AfterLabelEdit handler, because the focus always
9564         goes to the TreeView, even if we try to give it to our
9565         LabelEditTextBox. The call do Application.DoEvents seems to
9566         synchronize the focus, basically.
9567         Fixes #325244.
9568
9569 2007-10-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9570
9571         * TreeView.cs: When AfterLabelEdit event is fired, TreeNode.IsEditing
9572         should be false. This also removes some nasty recursive paths. Fixes
9573         part of #325244.
9574
9575 2007-10-04  Everaldo Canuto  <ecanuto@novell.com>
9576
9577         * MdiClient.cs: When cascade (layout) mdi window that is maximized, set the
9578         state to normal. Also resize window when cascading. Fixes #325433. 
9579
9580 2007-10-04  Jonathan Pobst  <monkey@jpobst.com>
9581
9582         * RichTextBox.cs: When SelectionColor is set to Color.Empty, use
9583         DefaultForeColor, as drawing empty colored lines isn't very useful.
9584         [Fixes the not drawn lines part of bug #324358]
9585
9586 2007-10-04  Jonathan Pobst  <monkey@jpobst.com>
9587
9588         * TextControl.cs: Move Line and LineTag classes into separate files to
9589         make things easier to find.
9590         * Line.cs, LineTag.cs: Bring coding standards up to Mono's guidelines.
9591         * RichTextBox.cs: Capitalize LineTag.Length property access.
9592         - This is purely an organizational/formatting change, no logic changed. -
9593
9594 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
9595
9596         * ThemeWin32Classic.cs: Do not show focus rectangle in radio buttons when
9597         text is empty.
9598
9599 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
9600
9601         * ThemeWin32Classic.cs: Do not show focus rectangle in checkboxes when
9602         text is empty.
9603
9604 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
9605
9606         * ComboBox.cs: On contructor use backgound_color instead of BackColor to
9607         prevent calling of OnBackColorChanged. Fixes #325321.
9608
9609 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
9610
9611         * TextBox.cs: When check enabled uses Enabled property instead of is_enabled
9612         because control can be disabled because owner is disabled.
9613
9614 2007-10-02  Jonathan Pobst  <monkey@jpobst.com>
9615
9616         * ComboBox.cs: For the 1.1 profile, the default SelectedText is
9617         string.Empty, test failed from previous change.
9618
9619 2007-10-02  Jonathan Pobst  <monkey@jpobst.com>
9620
9621         * TextBoxBase.cs: For the 1.1 profile, the default SelectedText
9622         is null, not String.Empty.  See bug #323038.
9623
9624 2007-10-01  Jonathan Pobst  <monkey@jpobst.com>
9625
9626         * TextControl.cs: Change the margins to match MS a little better.
9627         Still not perfect for X11 due to some DrawString differences, but
9628         is still an improvement over the old stuff.
9629         Partially fixes #324467.
9630
9631 2007-09-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9632
9633         * FolderBrowserDialog.cs: When using MyComputer as 
9634         RootFolder, let absolute paths be considered as valid ones. Also, use
9635         Path.DirectorySeparatorChar instead of Path.AltDirectorySeparatorChar,
9636         for Windows compatibility.
9637         Partially fixes #325247.
9638
9639 2007-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9640
9641         * FolderBrowserDialog.cs: Fix the recursive FindPathInNodes method.
9642         Also remove the stack.Count > 0 check in FBTreeView.SetSelectedNode
9643         method, since it causes the dialog to not select folders directly
9644         under the root path (when setting SelectedPath property).
9645
9646 2007-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9647
9648         * TreeNode.cs: When calling Expand/Collapse and need to call 
9649         ExpandBelow/CollapseBelow respectively, take into account
9650         partially visible nodes (previously Expanding/Collapsing
9651         a partially visible node in the bottom was not updating its +- sign).
9652
9653 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9654
9655         * TreeView.cs: When calling Expand on a TreeNode, and we need to
9656         expand nodes below (ExpandBelow), scroll the entire Viewport
9657         area if the node is above it and not visible (instead of scrolling
9658         the area from node's Bottom, which applies only when the node is
9659         visible).
9660         Fixes #325266.
9661
9662 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9663
9664         * TreeView.cs: When calling ExpandAll, set SelectedNode to the top
9665         node in the bottom area (as .Net does). This is done to preserve the
9666         scroll position when ExpandAll is called before handle is created for
9667         the 1.1 profile (bottom area, as opposed to top area in 2.0).
9668         Fixes #324103.
9669
9670 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9671
9672         * TreeView.cs: When calling ExpandAll, don't move the scroll to the 
9673         bottom area if we are in fact not using the vertical scroll bar.
9674         Fixes #324824.
9675
9676 2007-09-27  Jonathan Pobst  <monkey@jpobst.com>
9677
9678         * Control.cs: Comment out a double buffering optimization that doesn't
9679         take into account invalidates created in OnPaint, causing the control
9680         to never be redrawn.  It would take quite a bit of work to work around
9681         this, but I left it commented with an explanation for later possible
9682         optimization.
9683         [Fixes bug #328681]
9684
9685 2007-09-27  Jonathan Pobst  <monkey@jpobst.com>
9686
9687         * Control.cs: Ask parent to perform a layout if control is AutoSize and
9688         the text changes.
9689         * RadioButton.cs: Implement GetPreferredSizeCore.
9690         [Fixes bug #328672]
9691
9692 2007-09-26  Jonathan Pobst  <monkey@jpobst.com>
9693
9694         * RichTextBox.cs, TextBoxBase.cs, WindowsFormsSynchronizationContext.cs:
9695         corcompare stuffs.
9696
9697 2007-09-26  Jonathan Pobst  <monkey@jpobst.com>
9698
9699         * Application.cs: Move the sync context stuff to Run instead of RunLoop
9700         so that it doesn't get uninstalled on modal forms.
9701         * Control.cs: Install a sync context when a control is created.
9702         * WindowsFormsSyncronizationContext.cs: Create a private static control
9703         to invoke on.  This is easier than trying to find a created control we
9704         can use.
9705         [Fixes bug #327608]
9706
9707 2007-09-25  Jonathan Pobst  <monkey@jpobst.com>
9708
9709         * Application.cs: Install a WindowsFormsSynchronizationContext in the
9710         run loop, and uninstall it when done.
9711         * WindowsFormsSynchronizationContext.cs: Implement.
9712         [Fixes the common case in bug #327608]
9713
9714 2007-09-23  Gert Driesen  <drieseng@users.sourceforge.net>
9715
9716         * DataGridViewCellCollection.cs: Added argument checks for indexers.
9717         Use case-insensitive lookup of column name in indexer. Code
9718         formatting.
9719
9720 2007-09-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9721
9722         * TreeNode.cs: When collapsing or expanding a node, check whether its
9723         change will affect the visible area (we were previously doing a
9724         IsVisible check, but that check is not enough since children nodes
9725         could be still visible). Fixes part of #325266.
9726
9727 2007-09-21  Jonathan Pobst  <monkey@jpobst.com>
9728
9729         * TreeView.cs: Always select the first node when the TreeView gets
9730         focus if there is no currently selected node.
9731         [Fixes bug #324279]
9732
9733 2007-09-21  Jonathan Pobst  <monkey@jpobst.com>
9734
9735         * TreeView.cs: Do not raise BeforeSelect or AfterSelect when the
9736         node being selected is null.
9737         [Patch from Yves Bastide fixes bug #326858]
9738
9739 2007-09-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9740
9741         * TreeNode.cs: Add an internal ArePreviousNodesExpanded, to know
9742         whether all the parent nodes are expanded.
9743         * TreeNodeCollection.cs: When adding a new node an calling SetupNode,
9744         call RecalculateVisibleOrder if all previous nodes are expanded.
9745         Before that we were doing a IsVisible check, but sometimes the node
9746         is not in the visible area, but _should_already be ready, because of
9747         all previous nodes are expanded. Fixes #325259.
9748
9749 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
9750
9751         * ToolStripSplitButton.cs: Call the ButtonClick event if the button
9752         portion of the item is clicked.
9753
9754 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
9755
9756         * TextControl.cs: Do not tell the system to move the cursor if the
9757         textbox isn't focused.  Fixes part of bug #322668.
9758
9759 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
9760
9761         * ComboBox.cs: When there are no items, do not show the dropdown if
9762         the down arrow is clicked.  Fixes part of bug #322668.
9763
9764 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
9765
9766         * ToolStripComboBox.cs: Manually set the size of this control in the
9767         constructor, as it doesn't seem to be the same as DefaultSize.
9768         Fixes a failing monobuild test.
9769
9770 2007-09-19  Jonathan Pobst  <monkey@jpobst.com>
9771
9772         * DateTimePicker.cs: If the user sets MinDate to DateTime.MinValue,
9773         change it to DateTimePicker.MinDateTime.  [Fixes bug #326609]
9774
9775 2007-09-19  Jonathan Pobst  <monkey@jpobst.com>
9776
9777         * Theme.cs: FileDialogs should be using DesktopDirectory instead of
9778         Desktop.  This lets it work for people who have moved their desktops
9779         from the default location on windows.  For people who have not, both
9780         values are the same, so it shouldn't hurt anything.  [Fixes bug #325270]
9781
9782 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
9783
9784         * ToolStripControlHostTest.cs: DefaultSize is based off hosted control,
9785         but when the base constructor sets this, the control is null.  Set it
9786         again in the constructor.  Fixes a failing monobuild test.
9787
9788 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
9789
9790         * ToolStripDropDownItem.cs: Make sure Click and DropDownOpened events
9791         get called.
9792         * ToolStripSplitButton.cs: Make sure MouseDown and MouseUp events get
9793         called.
9794
9795 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
9796
9797         * ToolStrip.cs: Don't show tooltips for ToolStripTextBoxes, they
9798         will handle it themselves.
9799         * ToolStripItem.cs: When deciding what the text of a tooltip should
9800         be, use the Text property instead of the text field.
9801         * ToolStripTextBox.cs: Handle tooltips.
9802         [Fixes bugs #325417 and #325973]
9803
9804 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
9805
9806         * ToolStripDropDownButton.cs: Only drop down overflow menu with a
9807         left click.  Fixes the easy part of bug #325969.
9808
9809 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
9810
9811         * ToolStrip.cs: Set AutoSizeMode back to GrowAndShrink to refix
9812         bug #325406, but set a minimum for StatusStrip to 22 to keep
9813         bug #325390 fixed.  I think this minimum would have been figured
9814         up automatically if the grip was actually a ToolStripItem, but it
9815         currently is not.
9816
9817 2007-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9818
9819         * ListView.cs: max_label_wrapping is now 30 pixels instead of 38,
9820         as this is apparently the actual value used by .Net. Also apply
9821         ItemPadding in Details view only, and decrease the general width padding,
9822         to have only the needed. This should fix #324340 in Windows too.
9823
9824 2007-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9825
9826         * ListViewItem.cs: Don't Invalidate item if parent is inside
9827         a BeginUpdate/EndUpdate block. This prevents to have differences
9828         between the ListView and items state, as well as avoid some exceptions
9829         there.
9830         * ListView.cs: Make 'updating' field internal.
9831
9832 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
9833
9834         * ToolStripControlHost.cs: Realign control when ControlAlign changes.
9835         * ToolStripItem.cs: Use ImageScalingSize when calculating preferred
9836         size if appropriate.
9837         Fixes reopened bug #325414.
9838
9839 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
9840
9841         * ToolStrip.cs: Set AutoSizeMode back to GrowOnly.
9842         * ToolStripItem.cs: Invalidate before and after our new autosize when
9843         text changes.
9844         Fixes reopened bug #325390.
9845
9846 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
9847
9848         * ToolStripMenuItem.cs: Make sure we invalidate when clicked so
9849         mnemonics can be drawn or undrawn correctly.  Fixes reopened bug 
9850         #325044.
9851
9852 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
9853
9854         * Control.cs: Do WM_CONTEXTMENU before OnMouseUp.  [Fixes bug #325535]
9855
9856 2007-09-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9857
9858         * ColumnHeader.cs: When drawing column text, use EllipsisCharacter
9859         instead of EllipsisWord (by equistango at gmail.com). Fixes part of
9860         #82734.
9861
9862 2007-09-14  Jonathan Pobst  <monkey@jpobst.com>
9863
9864         * ToolStrip.cs: Make ToolStrip selectable when TabStop = true.  Find an
9865         item to select when the ToolStrip is selected.
9866         * ToolStripControlHost: Realign the control when the bounds or visibility
9867         change.
9868         * ToolStripItem.cs: When selected, if it's a control host, focus the control.
9869         * ToolStripOverflow.cs: When laying out the drop down, respect the item's
9870         preferred height.
9871         * ToolStripTextBox.cs: OnPaintInternal should call base.OnPaintInternal, not
9872         base.OnPaint.  Was causing text not to be drawn.
9873
9874 2007-09-14  Jonathan Pobst  <monkey@jpobst.com>
9875
9876         * SplitterPanel.cs: Ignore attempts to set AutoSizeMode.
9877
9878 2007-09-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9879
9880         * TreeView.cs: When creating the label edit text box,
9881         set is initially to Visible = false. This is done to
9882         prevent a confusion in the layout which makes it to lose
9883         focus when shown the first time. Fixes part of #82592.
9884
9885 2007-09-13 Andreia Gaita <avidigal@novell.com>
9886
9887         * WebBrowserBase.cs: add FocusOption enumeration for finer focus control
9888
9889 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
9890
9891         * ToolStrip.cs: Take Margin into account when calculating preferred
9892         size.  Also, allow preferred size to get smaller than the explicit
9893         size.
9894         * ToolStripTextBox.cs: Don't change the GetPreferredSize implementation.
9895         First step towards fixing bug #82747.
9896
9897 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
9898
9899         * TreeView.cs: Applied patch from latency@gmx.de to not paint the
9900         full row select background over the plus/minus glyph.  Also, turn
9901         off the focus rectangle for full row select since MS doesn't seem
9902         to ever paint it.  [Fixes bug #81839]
9903
9904 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
9905
9906         * ToolStrip.cs: Don't FocusInternal if there is no selected item.
9907         This was causing keyboard opened dropdowns to lose focus.
9908         [Fixes bug #82803]
9909
9910 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
9911
9912         * Control.cs: If Rectangle.Empty is passed to Invalidate, use
9913         ClientRectangle instead.  [Fixes bug #82838]
9914
9915 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
9916
9917         * SplitContainer.cs: We can't reset Visible on every layout because
9918         someone may have set Visible = false explicitly on a SplitterPanel.
9919         Make sure when we switch orientation the SplitterDistance does not
9920         change.  Fixes two failing tests.
9921
9922 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9923
9924         * TreeView.cs: Use MeasureTextInternal instead of MeasureText in
9925         TextRenderer, since the latter is only available in 2.0.
9926
9927 2007-09-13  Ivan N. Zlatev <contact@i-nz.net>
9928
9929         * Cursor.cs: Fix Cursor.Current to apply Cursor.Default.
9930         * SplitContainer.cs: Implement FixedPanel layouting.
9931
9932 2007-09-12  Andreia Gaita  <avidigal@novell.com>
9933
9934         * WebBrowserBase.cs: setup shutdown routine
9935
9936 2007-09-12  Andreia Gaita  <avidigal@novell.com>
9937
9938         * Application.cs: Let keyboard events that are targetted 
9939                 to non-mwf windows hosted inside mwf (as in, webbrowser),
9940                 propagate properly. Fixes keyboard handling on the webbrowser.
9941
9942 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9943
9944         * ListView.cs: When handling MouseUp event and we are 
9945         highligting a node with the mouse right button, don't trigger
9946         Before/AfterSelecting event, since we are not actually selecting
9947         the node.
9948
9949 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9950
9951         * TreeView.cs: When editing a node, modify the edit text box
9952         depending on the text length (as you are typing), like MS does.
9953
9954 2007-09-12  Jonathan Pobst  <monkey@jpobst.com>
9955
9956         * ToolStrip.cs: Fixup preferred size calculations for vertical toolbars. 
9957         Override GetPreferredSizeCore to perform calculations.  Remove custom
9958         autosize logic.  [Fixes bug #82739]
9959
9960 2007-09-12  Jonathan Pobst  <monkey@jpobst.com>
9961
9962         * TextBoxBase.cs: Modified should default to false.
9963
9964 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
9965
9966         * Control.cs: Update the anchoring distances even when layout is supspended.
9967         Patch provided by George fixes bug #82805.
9968
9969 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
9970
9971         * Control.cs: Provide a setter for ExplicitHeight.
9972         * TextBoxBase.cs: Now that we have the implementation for explicit heights,
9973         remove the hacks in here for requested_height.
9974         [Fixes bug #82749]
9975
9976 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
9977
9978         * ScrollBar.cs: Fix an issue reported on the lists where setting a scrollbar's
9979         Maximum to lower that its current Value caused an ArgumentException by setting
9980         the Value to the new Maximum.
9981
9982 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
9983
9984         * ThemeWin32Classic.cs: Math is hard!  Fix some math so that the TrackBar
9985         handle moves to the closest tick when it is being dragged.
9986         [Fixes bug #82751]
9987
9988 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
9989
9990         * ToolStripManager.cs: When we have added MDI buttons onto a MenuStrip, we
9991         can't let them count as real items when calculating where to merge in the
9992         user's items.  [Fixed bug #82786]
9993
9994 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
9995
9996         * ToolStripMenuItem.cs: Add a parent type check so we don't crash on people
9997         who want to add a menu item directly onto a toolstrip.
9998         [Fixes bug #82775, part II]
9999
10000 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
10001
10002         * StatusStrip.cs: Synchronize SetDisplayedItems with the ToolStrip version.
10003         * ToolStrip.cs: If a ToolStripItem set to not visible is added to a ToolStrip,
10004         don't set it to available.
10005         * ToolStripItem.cs: When Visible is changed, tell the owner to perform a layout.
10006         [Fixes bug #82727, part II]
10007
10008 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
10009
10010         * StatusStrip.cs: Change item placement to None if not visible.
10011         * ToolStripItem.cs: Invalidate when InternalVisible changes.
10012         These should have been committed to fix 82723, but I missed them.
10013
10014 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
10015
10016         * ToolStrip.cs: Make sure ItemClicked is raised before the ToolStripItem's
10017         Click, and that it is only called once.
10018         * ToolStripMenuItem.cs: Call OnClick even when there are dropdown items.
10019         * ToolStripDropDownItem.cs: Override HandleItemClick so dropdowns stay
10020         dropped down.
10021         [Fixes bug #82775]
10022
10023 2007-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10024
10025         * ColumnHeaderSample.cs: Use 5 pixels as extra height instead of 8
10026         to match .Net.
10027         * ThemeWin32Classic.cs: For the columns text, use 5 pixels as left padding
10028         instead of 8, just like above. Partially fixes #82734.
10029
10030 2007-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10031
10032         Patch by Ernesto Carrea <equistango at gmail.com>. Partially 
10033         fixes #82734.
10034
10035         * ListView.cs: Remove extra space between rows in Details view (match
10036         .Net). 
10037         * ThemeWin32Classic.cs: Header text should use ListView.Font, not
10038         the DefaultFont.
10039
10040 2007-09-08  Gert Driesen  <drieseng@users.sourceforge.net>
10041
10042         * Application.cs: Modified ProductVersion to return value of
10043         AssemblyInformationVersion if available, and fallback to assembly
10044         version. Fixes bug #82746. Code formatting.
10045         * BindingSource.cs: Remove NIE from Dispose, and mark it MonoTODO
10046         instead.
10047
10048 2007-09-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10049
10050         * Control.cs: When updating ZOrder for a child control,
10051         take into account the implicit ones (we need it in our controls
10052         using them). Fixes #82642.
10053
10054 2007-09-07  Jonathan Pobst  <monkey@jpobst.com>
10055
10056         * ToolStripItem.cs: Add support for animated images.
10057         [Fixes bug #82726]
10058
10059 2007-09-07  Jonathan Pobst  <monkey@jpobst.com>
10060
10061         * ToolStrip.cs: Make sure we aren't drawing anything that isn't 
10062         visible.  [Fixes bug #82727]
10063
10064 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10065
10066         * ToolStripItem.cs: If AutoSize changes the size of our item, invalidate
10067         so we repaint using the new size.  [Fixes bug #82723]
10068
10069 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10070
10071         * TreeView.cs: If ShowLines is true, we should ignore the FullRowSelect
10072         option.  [Fixes bug #81779]
10073
10074 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10075
10076         * TreeView.cs: Override HandleClick because the StandardClick style is
10077         set to false.  According to MSDN (and testing), the click events should
10078         only be raised when the click occurs on a TreeNode.  [Fixes bug #81739]
10079
10080 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10081
10082         * ToolStripTextBox.cs: Invalidate our textbox when it loses focus, so
10083         the border will disappear.  Fixes reopened #82653.
10084
10085 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10086
10087         * Control.cs: If the control is autosize, and its preferred size changes
10088         when it lays out its children, tell its parent so it can be re-layed out.
10089         Fixing some of the fallout from r85433.
10090
10091 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10092
10093         * ThemeWin32Classic.cs: Fix a NRE caused by r85427 because RadioButton
10094         and CheckBox share some code.
10095
10096 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10097
10098         * TrackBar.cs: Only call OnScroll if we actually changed the Value of
10099         the TrackBar, not every mouse move.  [Fixed bug #82718]
10100
10101 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10102
10103         * ThemeWin32Classic.cs: Allow a CheckBox to be rendered like a Button
10104         under 2.0 rendering.  [Fixes bug #82657]
10105
10106 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10107
10108         * TreeView.cs: If we found a TreeNode to display a context menu, but
10109         it doesn't have one to show, let the TreeView display its menu
10110         instead.  [Fixes bug #82680]
10111
10112 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10113
10114         * ToolStripTextBox.cs: TextBox no longer call OnPaint, we need to use
10115         OnPaintInternal instead.  Give the internal TextBox a Border property
10116         so it can draw itself more correctly.  [Fixes bug #82653]
10117
10118 2007-09-06  Zoltan Varga  <vargaz@gmail.com>
10119
10120         * HtmlHistory.cs HtmlWindow.cs HtmlWindowCollection.cs ListBindingHelper.cs WindowsFormsSection.cs WindowsFormsSynchronizationContext.cs: Stubs for missing 2.0 classes.
10121
10122 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
10123
10124         * ComboBox.cs: Adjust combobox button state to reflect current state when
10125         back to enabled = true. Fixes first issue of #82654.
10126
10127 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
10128
10129         * Control.cs: Fix last patch regression, prevent forms to update zorder when
10130         setting visible property.
10131
10132 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
10133
10134         * Control.cs: Update zorder after control creation in SetVisibleCore, it 
10135         fix zorder for controls initially created as non visible. Fixes #82667.
10136
10137 2007-09-04  Everaldo Canuto  <everaldo@simios.org>
10138
10139         * ThemeWin32Classic.cs: Adjust checkbox light color to ControlLightLight to
10140         mimic win32 look. Fixes #82656.
10141
10142 2007-09-01  Zoltan Varga  <vargaz@gmail.com>
10143
10144         * FileDialogCustomPlace.cs FileDialogCustomPlacesCollection.cs: 
10145         Stubs for new net 3.5 classes.
10146
10147 2007-08-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10148
10149         * ListViewItem.cs: In ListViewItemCollection operations calculate
10150         Layout for owner as well as invalidate it. Fixes part of #82642.
10151
10152 2007-08-31  Jonathan Pobst  <monkey@jpobst.com>
10153
10154         * ToolStripItem.cs: Take Parent/Owner's Enabled state in to account
10155         when returning Enabled.  [Fixes bug #82651]
10156
10157 2007-08-30  Everaldo Canuto  <everaldo@simios.org>
10158
10159         * ToolBar.cs: Fix button size for non flat toolbars. Fixes #82368.
10160
10161 2007-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10162
10163         * ListView.cs: Put item padding info in a single place
10164         (Theme.ListViewItemPaddingWidth) to have working AutoResize on
10165         columns again.
10166         * ThemeWin32Classic.cs:
10167         * Theme.cs: Likewise.
10168
10169 2007-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10170
10171         * ListView.cs: When a ListViewSubItem instance is invalidated,
10172         invoke Invalidate on parent ListViewItem, not parent ListView.
10173         Fixes #81570.
10174
10175 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
10176
10177         * ListView.cs, ListViewItem.cs: corcompare stuffs.
10178
10179 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
10180
10181         * BindingMemberInfo.cs: Implement == and != operators.
10182
10183 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
10184
10185         * HtmlElementEventArgs.cs: Implement properties.
10186
10187 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
10188
10189         * HtmlElementErrorEventArgs.cs, HtmlElementErrorEventHandler.cs: Added.
10190
10191 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
10192
10193         * TabControl.cs: I was looking into the MonoTODO on TabPageCollection.
10194         Add (string,string,string) to implement the imagekey.  It turns out, we
10195         use the requested imagekey whereas .Net does not.  So I broke ours to match
10196         theirs.  :(
10197
10198 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
10199
10200         * Form.cs, UserControl.cs: Override ValidateChildren, AutoValidate.
10201
10202 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
10203
10204         * ContainerControl.cs: Implement ValidateChildren and new Validate overload.
10205
10206 2007-08-29  Gert Driesen  <drieseng@users.sourceforge.net>
10207
10208         * FolderBrowserDialog.cs: Set Tag of newly created node, and keep it
10209         up-to-date. Fixes bug #82618.
10210
10211 2007-08-29  Everaldo Canuto  <everaldo@simios.org>
10212
10213         * TextBoxBase.cs: Call CalculateDocument after changes Lines property to
10214         reflect document changes. Fixes #82367.
10215
10216 2007-08-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10217
10218         * ListView.cs: Add/fix some override differences between 1.1 and 2.0,
10219         as well as add new ones. This should make work the BackgroundImage
10220         property for ListView again.
10221
10222 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
10223
10224         * DataGrid.cs, DataGridViewButtonColumn.cs, DataGridViewCheckBoxColumn.cs,
10225         DataGridViewComboBoxColumn.cs, DataGridViewImageColumn.cs, DataGridViewLinkColumn.cs,
10226         DataGridViewTextBoxColumn.cs, ToolTip.cs: corcompare stuffs.
10227
10228 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
10229
10230         * Control.cs, XPlatUI.cs, XPlatUIDriver.cs, XPlatUIWin32.cs: Implement
10231         IsKeyLocked.
10232
10233 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
10234
10235         * Cursor.cs: Add HotSpot, hook into XPlatUI.GetCursorInfo.
10236         * XPlatUIWin32.cs: Implement hotspot lookup in GetCursorInfo.
10237
10238 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
10239
10240         * RadioButton.cs: Use 2.0 rendering.  Use base implementation of TextAlign.
10241         * Theme.cs, ThemeWin32Classic.cs: Implement 2.0 rendering for RadioButton.
10242
10243 2007-08-27  Ivan N. Zlatev  <contact@i-nz.net>
10244
10245         * CursorConverter.cs: Implement conversion to InstanceDescriptor.
10246
10247 2007-08-27  Ivan N. Zlatev  <contact@i-nz.net>
10248
10249         * GridEntry.cs: Implement GetService.
10250
10251 2007-08-27  Jonathan Pobst  <monkey@jpobst.com>
10252
10253         * LabelEditTextBox.cs, TreeView.cs: After hiding the textbox used
10254         for label editting, make sure we focus back on the TreeView.
10255         [Fixes bug #82590]
10256
10257 2007-08-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10258
10259         * ListView.cs: Add some 2.0 overrides.
10260
10261 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
10262
10263         * Form.cs: Uses opacity var instead of Opacity property in CreateHandle
10264         because getter dont returns right value before handle creation. Thanks 
10265         to George. Fixes #82569.  
10266
10267 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
10268
10269         * Theme.cs: Revert last patch, it causes error under win32. 
10270
10271 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
10272
10273         * Theme.cs: Uses Environment.SpecialFolder.DesktopDirectory instead of 
10274         Environment.SpecialFolder.Desktop in Places method, Desktop returns the 
10275         logical Desktop rather than the physical file system location. Fixes #82603. 
10276
10277 2007-08-26  Everaldo Canuto  <ecanuto@novell.com>
10278
10279         * MessageBox.cs: Add clipboard copy (ctrl+c) to messagebox. Thanks Andy Hume
10280         for the patch. Fixes #82568.
10281
10282 2007-08-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10283
10284         * ListView.cs: Add a pair of missing 2.0 ListViewItemCollection.Insert
10285         methods.
10286
10287 2007-08-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10288
10289         * ListViewInsertionMark.cs: New stubbed class.
10290
10291 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
10292
10293         * FolderBrowserDialog.cs: When adding folder, immediately create the
10294         directory with temporary name and rename the directory when editing
10295         finishes. This matches MS. Ensure the node for the new folder is 
10296         selected and LabelEdit is disabled, when editing is either finished
10297         or cancelled.
10298
10299 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
10300
10301         * TreeView.cs: When editing label of node, ensure node is visible.
10302
10303 2007-08-25  Ivan N. Zlatev  <contact@i-nz.net>
10304
10305         * PropertyGridView.cs: Set the value only if it has changed.
10306
10307 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10308
10309         * ListView.cs: Some more code refactoring to add support sorting
10310         with groups (now for Details view). Remove unused code also.
10311
10312 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
10313
10314         * NodeLabelEditEventArgs.cs: EndEdit immediately when CancelEdit is called.
10315         Not a big fan of reacting immediately to a field in an EventArg, but that's
10316         the way it's done.  (This is part of the previous commit that got left out.)
10317
10318 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
10319
10320         * FolderBrowserDialog.cs: Removed need for separate description field.
10321         Replaced "" with string.Empty. Fixed tabindex. Ensure OK button
10322         has focus when dialog box is displayed again, regardless of what
10323         button was pressed the previous time. Set RootFolder and SelectedPath
10324         each time dialog box is displayed. This ensures the treeview is
10325         refreshed, and fixes bug #82579. Do no hide selected node in TreeView
10326         when it does not have focus. Added support for more special folders.
10327
10328 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
10329
10330         * TreeView.cs: Create a CancelEdit method.  Clone the edit_args in EndEdit
10331         before calling AfterLabelEdit.  If the user calls BeginEdit in that event,
10332         it resets the edit_args.
10333         * TreeNode.cs: Call CancelEdit if the user passes cancel = true to EndEdit.
10334         [Fixes bug #82577]
10335
10336 2007-08-24  Gert Driesen  <drieseng@users.sourceforge.net>
10337
10338         * FolderBrowserDialog.cs: Modifies form caption and text of new folder
10339         button to match MS. Provide more meaningful exception message for
10340         invalid RootFolder value. Use zero-length string when SelectedPath
10341         is set to null. Allow non-rooted paths in SelectedPath, but ignore
10342         them in FolderBrowserTreeView. Allow folders to be created in
10343         RootFolder. Fixes bug #82576.
10344
10345 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10346
10347         * ListView.cs: Correctly compute the layout_ht (height) when using groups,
10348         since we need to take into account the group headers and the margin
10349         between them.
10350         * ListViewGroup.cs: Add a rows field to store the number of rows per
10351         group.
10352
10353 2007-08-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10354
10355         * DateTimePicker.cs: The MS' MTB has a really stupid year formatting.
10356           Anyways, let's just follow the lead.
10357
10358 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
10359
10360         * CheckBox.cs: Set the AutoSizeMode to GrowAndShrink.
10361         * Form.cs, GroupBox.cs: Don't skip Right or Bottom anchored 
10362         controls in GetPreferredSizeCore.
10363         * ThemeWin32Classic.cs: Tweak text drawing of CheckBoxes.
10364         [Fixes bug #82488]
10365
10366 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
10367
10368         * PrintDialog.cs: Need to instantiate the form variable here too.
10369
10370 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10371
10372         * ListView.cs: Do some reorganization to support sorting in groups,
10373         by doing the layout sequentially in ListView.Items. Also add support
10374         for the Default Group, which should be available for items with no
10375         group assigned.
10376         * ListViewGroup.cs: Add support for DefaultGroup. Include new members
10377         for storing layout info also.
10378         * ListViewGroupCollection.cs: Add a DefaultGroup as part of the
10379         collection, as well as providing internal members to do a traversal
10380         including the default group (needed when doing layout/drawing).
10381         * ThemeWin32Classic.cs: When drawing group headers use internal
10382         ListViewGroupCollection members to take into account the default
10383         group.
10384
10385 2007-08-23  George Giolfan  <georgegiolfan@yahoo.com>
10386
10387         * FlowLayoutPanel.cs: Add GetPreferredSizeCore.  [Fixes bug #82537]
10388
10389 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
10390
10391         * TreeView.cs: IsInputKey: don't ask for any keys if the handle hasn't
10392         been created.  If handle is created, we want arror keys.  If we are editing
10393         a node, we want things like enter, esc, home, end, page up, page down.
10394         Allows Esc to work for FolderBrowserDialog.
10395
10396 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
10397
10398         * ColorDialog.cs, FontDialog.cs: Set the form's CancelButton so that
10399         they close when ESC is pressed.  Thanks Andy!
10400
10401 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
10402
10403         * CommonDialog.cs: Do not instantiate form, leave that for derived classes.
10404         This way we can tell if this is a CommonDialog provided with mono, or one
10405         that is being implemented outside by a developer.  If it is an external one,
10406         the developer is responsible for showing their own form.  We were showing
10407         our blank form after the developer showed his.
10408         * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs, FontDialog.cs,
10409         PageSetupDialog.cs: Instantiate form variable in our constructor.
10410         [Fixes bug #82531]
10411
10412 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
10413
10414         * ListBox.cs, ListView.cs, TreeView.cs: Override IsInputCharInternal
10415         and always return true.  [Fixes bug #81616]
10416
10417 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
10418
10419         * TextBoxBase.cs: Allow 2.0 AutoSize to change the height of the
10420         TextBox.  [Fixes bug #82549]
10421
10422 2007-08-23  Gert Driesen  <drieseng@users.sourceforge.net>
10423
10424         * FileDialog.cs: When Save/Open is clicked and no filename is selected
10425         or entered then do not close the dialog. Fixes bug #82539. Removed
10426         CWLs.
10427
10428 2007-08-22  Everaldo Canuto  <ecanuto@novell.com>
10429
10430         * FileDialog.cs: Create UpdateRecentFiles and move the recent files refresh
10431         code to this method. It is calling every time filter changes. This method
10432         will help to fix the bug #80887.
10433
10434 2007-08-22  Jonathan Pobst  <monkey@jpobst.com>
10435
10436         * CheckBox.cs: Implement AutoSize calculation.
10437
10438 2007-08-22  Jonathan Pobst  <monkey@jpobst.com>
10439
10440         * CheckBox.cs: Use new 2.0 rendering for 2.0.
10441         * Theme.cs: Method declarations for 2.0 rendering path.
10442         * ThemeWin32Classic.cs: 2.0 rendering implementation for CheckBox.
10443
10444 2007-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10445
10446         * ListViewGroupCollection.cs: Fix a typo of the previous patch.
10447
10448 2007-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10449
10450         * ListViewGroupCollection.cs: Implement AddRange the right way, to
10451         only call Redraw on the parent one time.
10452
10453 2007-08-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10454
10455         * DataGridViewRowHeaderCell.cs, DataGridViewColumnHeaderCell.cs: Implemented
10456           GetClipboardContent.
10457         * DataGridViewCell.cs: Implemented GetClipboardContent,
10458           GetEditedFormattedValue, GetFormattedValue.
10459         * DataGridView.cs: Implemented GetClipboardContent, TopLeftHeaderCell.
10460
10461 2007-08-21  Jonathan Pobst  <monkey@jpobst.com>
10462
10463         * TableLayoutStyleCollection.cs: corcompare fix.
10464
10465 2007-08-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10466
10467         * DataObject.cs: Implemented retrieval of convertible / not convertible
10468           objects.
10469
10470 2007-08-21  Jonathan Pobst  <monkey@jpobst.com>
10471
10472         * ToolStripItem.cs: When changing the item's text, invalidate before we resize
10473         ourselves.  This ensures the entire old bounds are repainted, in case our new
10474         size is smaller.  [Fixes bug #82518]
10475
10476 2007-08-20  Everaldo Canuto  <ecanuto@novell.com>
10477
10478         * XplatUIX11.cs: Apply patch from #81588, it makes use of PointerMotionHintMask
10479         flag to make fast handle of mouse events, without this the mouse move is
10480         handled in some manner, whether it is a mouse move or not. Fixes #81588.
10481
10482 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10483
10484         * ListView.cs: When doing layout calculations don't use a ref
10485         param to keep the current item; instead use its Index value (this 
10486         is specially important when doing the layout with Groups
10487         and Items being sparse). Also don't take into account items added to
10488         the Group but not yet added to the main ListView.Items collection.
10489
10490 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10491
10492         * ListViewGroupCollection.cs: Forgot to mimic an issue
10493         in the indexer (don't assign the ListView owner for new values).
10494
10495 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10496
10497         * ListViewGroupCollection.cs: Make the string indexer use
10498         the int based indexer to re-use code, instead of duplicate the code.
10499         Also Redraw as needed and take into account null values.
10500
10501 2007-08-20  Jonathan Pobst  <monkey@jpobst.com>
10502
10503         * StatusStrip.cs: Make sure the item's parent gets set in SetDisplayedItems.
10504         [Fixes bug #82481]
10505
10506 2007-08-20  Jonathan Pobst  <monkey@jpobst.com>
10507
10508         * ToolStrip.cs: Add some logic to un-focus controls in ToolStripControlHosts
10509         when other buttons are clicked or navigated to.
10510
10511 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10512
10513         * XplatUIX11.cs: Treat toolwindows as if they had no window manager, since
10514           it's XplatUIX11 that attaches them.
10515
10516 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10517
10518         * DataGridView.cs: If a column has been added, recreate the editing row.
10519           Fixes #82226.
10520
10521 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10522
10523         * TextControl.cs: Use Math.Max instead of Math.Min when deciding the length
10524           of the tag to draw. Makes disappearing text show up again.
10525
10526 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10527
10528         * StatusBar.cs: Take into account any icons when a panel has AutoSize =
10529           Contents. Fixes #82487.
10530
10531 2007-08-19  Andreia Gaita  <avidigal@novell.com>
10532
10533         * Added HtmlElement.cs, HtmlElementCollection.cs, 
10534           HtmlElementEventArgs.cs, HtmlElementEventHandler.cs
10535           
10536 2007-08-19  Andreia Gaita  <avidigal@novell.com>
10537
10538         * BindingSource.cs: Implement this, dispose and getenumerator.
10539         * DataGridViewRowCollection.cs: Move the InvalidOperationException
10540         out of AddInternal, throw it only on public Add calls. The 
10541         UsingWebBrowser sample was blowing up with this when setting the
10542         DataSource after adding DataBindings, so it's likely that .net
10543         only throws this exception when Add is called directly. 
10544         
10545         * ToolStripControlHost.cs: Return the hosted control's text
10546         property, and not the ToolStripItem one (it would always return
10547         the initial value).
10548         
10549         * HtmlDocument.cs: Implement GetElementById and All
10550         * WebBrowser.cs: Remove exception on set_DocumentStream.        
10551
10552 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
10553
10554         * Form.cs: Fix the max and min value for opacity (0~1).
10555
10556 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
10557
10558         [Fixes #80118]
10559         * DataGridTableStyle.cs: Default header font is now null, on getter it 
10560         returns datagrid font when is null. On setter permits null.
10561
10562         * DataGrid.cs:
10563         - When ResetHeaderFont set header font to null.
10564         - On EndInit set grid_style.DataGrid.
10565
10566 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
10567
10568         * TabControl.cs: Fix regression in default padding x.
10569
10570 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
10571
10572         * TabControl.cs: Fix tab page text area removing padding. Fixes #82471.
10573
10574 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
10575
10576         * TabControl.cs: Fix first tab drawing, when selected it must have x = 0
10577         not 2. Fixes #82229.
10578
10579 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
10580
10581         * TabControl.cs: Fix tab size when image height is less than text height.
10582         Partially fixes #81837.
10583
10584 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
10585
10586         * Form.cs: Add WS_EX_CONTROLPARENT to forms to make it selectable using 
10587         "alt + tab". It works only for Win32, for X11 theres no way to remove window
10588         from taskbar and keep it on "alt_tab". Fixes #81722.
10589
10590 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
10591
10592         * XplatUIX11.cs: Apply patch from Jurek Bartuszek to fix DrawReversibleFrame
10593         and DrawReversibleLine, also apply same behavior to FillReversibleRectangle. 
10594         Fixes #80877 and #79418.
10595
10596 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
10597
10598         * MenuAPI.cs: Fix popup menu position when the size is larger than distance 
10599         between position and one of the screen borders. Fixes #82349.
10600
10601 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
10602
10603         * MessageBox.cs: When there is no form that invoked the MessageBox, shows
10604         the MessageBox in the taskbar. Fixes #82457.
10605
10606 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
10607
10608         * MessageBox.cs: Fix form size when icon is set and text height is bigger
10609         than icon. Fixes #82468.
10610
10611 2007-08-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10612
10613         * ThemeWin32Classic.cs: A FixedToolWindow has border size 3.
10614         * InternalWindowManager.cs: Change HandleCalcSize to return a boolean value
10615           if handled or not. Implement WM_NCCALCSIZE for WParam == 0 as well.
10616           Refactored HandleNCCalcSize somewhat to avoid code duplication.
10617         * Form.cs: Add is_clientsize_set, set in set_ClientSize, used by
10618           FormBorderStyle to decide if we're calculating a new size from the
10619           client size or not. CreateParams: Don't fake tool windows, only the X11
10620           backend manages toolwindows manually.
10621
10622 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
10623
10624         * Form.cs: Only reset is_visible if !IsDisposed to prevent an
10625         ObjectDisposedException.
10626
10627 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
10628
10629         * Form.cs: Reset is_visible back to true after OnLoad.  Setting this
10630         in OnLoad should not have any effect.  [Fixes bug #82470]
10631
10632 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
10633
10634         * ToolTip.cs: Add a hack to ToolTipWindow so it will still size and
10635         paint for controls that create their own ToolTipWindow instead of
10636         going through ToolTip.
10637
10638 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
10639
10640         * ToolTip.cs: Make Hide internal instead of public to match MS API.
10641
10642 2007-08-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10643
10644         * ListViewGroupCollection.cs: Use generic List instead of an
10645         ArrayList, since this collection is 2.0 only.
10646
10647 2007-08-17  Jeffrey Stedfast  <fejj@novell.com>
10648
10649         * ToolTip.cs (Hide): Made public to make the build work (should
10650         this not be public?).
10651
10652 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
10653
10654         * ToolBar.cs, ToolStrip.cs, TreeView.cs: Use a ToolTip instead of a
10655         ToolTipWindow.
10656         * ToolTip.cs: Add an internal Visible property to facilitate transition.
10657
10658 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
10659
10660         * DrawToolTipEventArgs.cs, DrawToolTipEventHandler.cs, PopupEventArgs.cs,
10661         PopupEventHandler.cs: Make these internal for 1.1.
10662         * ThemeClearlooks.cs, ThemeWin32Classic.cs: Use TextRenderer, and modify to not
10663         use ToolTipWindow internals.
10664         * ToolTip.cs: Add 2.0 modal Show methods.  Had to move a lot of stuff around to
10665         support this.  A lot of stuff in the ToolTipWindow got moved to the ToolTip.
10666
10667 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10668
10669         * X11Dnd.cs: Add a null check.
10670
10671 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10672
10673         * X11Dnd.cs: MwfWindow: Try to load the control directly from the handle if
10674           nothing else succeeds. Fixes #82453.
10675
10676 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10677
10678         * XplatUIWin32.cs: PaintEventStart: validate the entire source client
10679           rectangle if we're painting to another window than the one the paint
10680           message was generated on. Simplify the code somewhat, which makes
10681           PaintEventEnd also simpler.
10682
10683 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10684
10685         * Control.cs: When changing parent of a form, let the form decide whether
10686           XplatUI.SetParent should be called or not.
10687         * Form.cs: ChangingParent: only call XplatUI.SetParent if we're not
10688           recreating the handle. If the new parent's handle isn't created, don't
10689           recreate our handle, just destroy it. CreateParams: Check if the
10690           parent's handle is created before fetching it.
10691
10692 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10693
10694         * Control.cs, Form.cs, InternalWindowManager.cs, MainMenu.cs, MdiClient.cs:
10695           Update calls to PaintEventStart/End to take a Message argument.
10696         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Update PaintEventStart/End to
10697           take a Message argument.
10698         * XplatUIWin32.cs, XplatUIX11.cs: Update PaintEventStart/End to take a
10699           Message argument, and handle the case where we don't paint to the window
10700           for which the paint message was generated.
10701
10702 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10703
10704         * XplatUIWin32.cs: Don't call Win32GetLastError directly, use
10705           Marshal.GetLastWin32Error. Plug nasty memory leak in
10706           PaintEventStart/End, we were creating a DC we weren't releasing.
10707
10708 2007-08-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10709
10710         * ListView.cs: Add Groups support in Details view. Also have a small
10711         method to do the layout of the group header. Don't use a separate
10712         method to do the groups calculation in Icons view, since our methods
10713         are now a little simpler.
10714         * ListViewGroup.cs: Use the more accurate `HeaderBounds' name than
10715         `Bounds'.
10716         * ThemeWin32Classic.cs: Likewise.
10717
10718 2007-08-16  Jonathan Pobst  <monkey@jpobst.com>
10719
10720         * Application.cs: Add FilterMessage method and rework our message loop
10721         logic to use it.
10722
10723 2007-08-16  Jonathan Pobst  <monkey@jpobst.com>
10724
10725         * Application.cs: Add some methods and stub a few methods that are
10726         pretty much never used.
10727
10728 2007-08-15  Jonathan Pobst  <monkey@jpobst.com>
10729
10730         * TreeNode.cs: Add some serialization methods.
10731
10732 2007-08-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10733
10734         * ListView.cs: In ListViewItemCollection have a 
10735         'is_main_collection' field to not modify ListViewItem.ListView
10736         when using it as ListViewGroup.Items (and not ListView.Items)
10737         and also don't modify selection state (.Net behaviour). 
10738         Instead, set group for items contained in a ListViewGroup.Items collection.
10739         * ListViewItem.cs: Simplify some code in Group setter.
10740         * ListViewGroup.cs: use the new .ctor to pass the current instance
10741         to the ItemsCollection.
10742         * ListViewGroup.cs: Set the ListView property for ListViewGroup
10743         instances when adding/removing. Also make Remove use RemoveAt, which
10744         should perform better.
10745
10746 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
10747
10748         * Message.cs, TabControl.cs, TextBox.cs, TextBoxBase.cs: Hide some 2.0 API
10749         that crept into the 1.1 profile.
10750
10751 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
10752
10753         * ToolBarButton.cs: Implement ImageKey.
10754
10755 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
10756
10757         * ToolBar.cs: Implement ScaleControl/ScaleCore.
10758
10759 2007-08-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10760
10761         * PictureBox.cs: OnAnimateImage/UpdateAnimateImage: Check if handle is still
10762           created, it might have gotten destroyed since we last checked. Fixes
10763           #82405.
10764
10765 2007-08-11  Jonathan Pobst  <monkey@jpobst.com>
10766
10767         * ToolTip.cs: Remove mouse in control check from mouseleave handler so
10768         tooltip will hide when mouse is moved off the control.
10769         [Fixes bug #82407]
10770
10771 2007-08-11 Andreia Gaita <avidigal@novell.com>
10772
10773         * WebBrowserBase.cs, WebBrowser.cs: add implementation
10774         using Mono.Mozilla for loading and navigating webcontrol
10775         with xulrunner.
10776         The initial implementation was done on 
10777         /trunk/mozembed/tests/browser , and copied here.
10778
10779 2007-08-11  Gert Driesen  <drieseng@users.sourceforge.net>
10780
10781         * ThemeWin32Classic.cs: On 2.0 profile, use ForeColor and BackColor of
10782         ToolTipWindow for drawing the tooltip. Fixes bug #82408.
10783
10784 2007-08-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10785
10786         * DataGridView.cs: Add support for an editing row. Fixes #82226.
10787           RowTemplateFull: throw an exception if a column doesn't have a template.
10788         * DataGridViewRowCollection.cs: AddInternal: if there are any editing rows,
10789           add the row just before it.
10790         * DataGridViewTextBoxCell.cs: Don't paint cells which are in edit mode as
10791           selected.
10792         * DataGridViewSelectedRowCollection.cs: Don't return the editing row. Add a
10793           DataGridView field to be able to reach the grid's editing row.
10794
10795 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
10796
10797         * ToolTip.cs: If the control's handle hasn't been created when it has a
10798         tooltip set on it, don't check to see if we need to show the tooltip.  This
10799         check was causing the control's handle to be created.
10800         [Fixes bug #82399]
10801
10802 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
10803
10804         * TextBoxBase.cs: Fix SelectionLength when no text selected to match MS:
10805                                         1.1             2.0
10806         Handle Not Created      -1              0
10807         Handle Created          0               0
10808         [Fixes bug #82371]
10809
10810 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
10811
10812         * ToolTip.cs: Hide the tooltip if the control is clicked to match MS behavior.
10813         [Fixes bug #82348]
10814
10815 2007-08-09  Jonathan Pobst  <monkey@jpobst.com>
10816
10817         * DrawToolTipEventArgs.cs: Don't dispose a brush we got from the respool.
10818         * ToolTip.cs: Implement some properties and owner draw.
10819
10820 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10821
10822         * DataGridView.cs: OnPaint: don't set scrollbar visibility to false then
10823           show them again, since setting visibility causes a paint, causing an
10824           endless loop (instead use a temporary and set it all when it's known if
10825           they should be shown or not). Fixes #79265.
10826
10827 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10828
10829         * DataGridView.cs: Only do a full column/row selection if a header was
10830           clicked and we're in Column/RowHeader selection mode. If shift and ctrl
10831           isn't pressed, deselect everything before selecting something.
10832
10833 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10834
10835         * DataGridView.cs: Fix SelectedRows and SelectedColumns to match MS
10836           behaviour according to bug #81075 - they are returned in the order they
10837           are selected. Fix HitTest to check if the point is within any of the
10838           headers. Allow for row/column selection when in ColumnHeader or
10839           RowHeader selection mode. Add SetSelected[Column|Row]CoreInternal for
10840           the row and column to call when their selected state changes, and
10841           updated selected_[rows|columns] whenever SetSelected* is called.
10842         * DataGridViewBand.cs: Initialize isRow correctly. Call
10843           SetSelected[Row|Column]CoreInternal when the selected state changes, and
10844           add a SelectedInternal to avoid StackOverflows.
10845         * DataGridViewColumn.cs, DataGridViewRow.cs: If DGV is ReadOnly, we're also
10846           ReadOnly no matter what.
10847         * DataGridViewSelectedColumnCollection.cs,
10848           DataGridViewSelectedRowCollection.cs: Add an InternalAddRange that adds
10849           the items in reverse order (just as MS does...)
10850
10851 2007-08-09  Jonathan Pobst  <monkey@jpobst.com>
10852
10853         * Application.cs: Only release menustrips if Alt (MenuKey) is pressed by
10854         itself, not part of a mnemonic.  [Fixes bug #82378]
10855
10856 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10857
10858         * DataGridView.cs: BeginEdit: don't allow editing of readonly cells.
10859         * DataGridViewCell.cs: Implement ReadOnly better: the cell is ReadOnly if
10860           the DGV, the column, the row, or the cell itself is readonly.
10861
10862 2007-08-09  Gert Driesen  <drieseng@users.sourceforge.net>
10863
10864         * ThemeNice.cs: Use XplatUI.RunningOnUnix instead of checking
10865         OSVersion.Platform.
10866         * FileDialog.cs: Same.
10867         * TextRendered.cs: Same.
10868         * FolderBrowserDialog.cs: Same.
10869         * TextBoxBase.cs: Same.
10870         * Application.cs: Same.
10871         * Cursors.cs: Same.
10872         * ThemeClearLooks.cs: Same.
10873
10874 2007-08-09  Gert Driesen  <drieseng@users.sourceforge.net>
10875
10876         * XplatUI.cs: Added RunningOnUnix property to be used by controls
10877         instead of duplicating these checks everywhere.
10878         * FileDialog.cs: Use case-insensitive comparison for populating the
10879         DirComboBox when not running on unix. Fixes bug #82385.
10880         * OpenFileDialog.cs: to match MS, change label of DirComboBox to 
10881         "Look in".
10882
10883 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10884
10885         * DataGridView.cs: SelectedRows: we need to check if selectionMode is
10886           FullRowSelect (not FullColumnSelect). Fixes #81075. Implemented
10887           BeginEdit, EndEdit, SetSelected<Cell|Row|Column>Core. Implemented row,
10888           cell and column selection with ctrl and shift pressed. Call the correct
10889           BeginEdit/EndEdit whenever we start/end editing. Move painting code to
10890           the corresponding virtual method (PaintBackground to paint background,
10891           etc).
10892         * DataGridViewCell.cs: Implement Selected correctly, we're selected if
10893           either the column, row or the cell itself is selected.
10894         * DataGridViewRowCollection.cs: Use DGV.OnRowsAddedInternal instead of
10895           OnRowsAdded.
10896         * DataGridViewRow.cs: Moved some of the painting code from DataGridView
10897           here. When the row is selected, don't select all cells. Each cell now
10898           queries the row to see if the row is selected.
10899
10900 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10901
10902         * DataGridViewColumn.cs: Throw if the SortMode conflicts with DataGridView's
10903           SelectionMode.
10904
10905 2007-08-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10906
10907         * ListView.cs: In ListViewItemsCollection check that owner is
10908         not null before trying to access it (this happens quite often
10909         using Groups). Also don't duplicate calls by calling CollectionChanged
10910         method.
10911
10912 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
10913
10914         * ToolStrip.cs: Record if we were activated by mouse or keyboard.  Redraw
10915         when we are dismissed to clear keyboard mnemonics.
10916         * MenuStrip.cs, ToolStripDropDown.cs, ToolStripItem.cs, 
10917         ToolStripMenuItem.cs: Record if we were activated by mouse or keyboard.
10918         * ToolStripItemTextRenderEventArgs.cs: Draw mnemonic underlines if menu
10919         was activated by keyboard or the OS tells us to always draw them.
10920         * ToolStripManager.cs: Setup storage for activated by mouse or keyboard.
10921         [Fixes bugs #82376, #82377]
10922
10923 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
10924
10925         * Control.cs: If no one accepts a mnemonic, let the MenuStrip have a 
10926         shot at having it because Alt was pressed.
10927         * MenuStrip.cs: When handling Alt, don't select a SystemMenuItem, select
10928         the first real menu item.
10929         * ToolStrip.cs: Don't crash when looking for a ToolStripItem to handle
10930         a mnemonic if Text is null.
10931         [Fixes bug #82374]
10932
10933 2007-08-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10934
10935         * ListView.cs: In ListViewItemCollection.AddItem, don't do a linear
10936         search do check whether the item is already contained in the
10937         collection or not; instead check if the owner of the item is the same
10938         as ours. Also, remove a redundant check in the same method. 
10939
10940 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
10941
10942         * Control.cs: Allow the clip region to be set back to null.
10943         * XplatUIWin32.cs: If we are sent a null clip region, use IntPtr.Zero.
10944         [Fixes button still showing up in bug #82370 when Show Through is turned off]
10945
10946 2007-08-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10947
10948         * GridEntry.cs: Add a null check.
10949         * PropertyGrid.cs: When checking for existing grid entries, ignore category
10950           entries. Fixes #82297.
10951
10952 2007-08-07  Jonathan Pobst  <monkey@jpobst.com>
10953
10954         * OwnerDrawPropertyBag.cs: Make the serialization constructor protected
10955         for 2.0.
10956
10957 2007-08-07  Jonathan Pobst  <monkey@jpobst.com>
10958
10959         * ListBox.cs: Implement ScaleControl.
10960
10961 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10962
10963         * Form.cs: Add a few ActiveMenu null checks. ActiveMenu might be null if we
10964           have a menu strip.
10965         * MdiWindowManager.cs: Don't create a maximized menu if the child or it's
10966           parent has a menu strip. Fixes #81689.
10967
10968 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10969
10970         * ToolTip.cs: We don't get mouse events on all platforms in the exact same
10971           moments, so apply some fuzzy logic to determine if the mouse is still
10972           inside a control or not. Fixes #82288 (for the third time).
10973
10974 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10975
10976         * Control.cs: CreateControl: create implicit children as well. Fixes #82344.
10977           Don't create the child if it has been disposed already (may happen if
10978           the user closes the form the Load event).
10979
10980 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10981
10982         * ToolTip.cs: If ReshowDelay is 0, show the tooltip immediately. Fixes
10983           #82288.
10984
10985 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10986
10987         * Control.cs: Add a null check in OnParentBindingContextChanged. The parent
10988           might call us after we've been destroyed, in which case our own private
10989           parent field is null. Fixes #82326.
10990
10991 2007-08-06  Jonathan Pobst  <monkey@jpobst.com>
10992
10993         * ToolStripDropDown.cs: Fix a failing test on X11 by adding a null
10994         check for setting the dropdown's owner.
10995
10996 2007-08-06  Jonathan Pobst  <monkey@jpobst.com>
10997
10998         * MdiClient.cs: Fix some failing tests on X11 by adding a null check
10999         before removing system menu items.
11000
11001 2007-08-02  Jonathan Pobst  <monkey@jpobst.com>
11002
11003         * MdiClient.cs, MdiWindowManager.cs: Support 2.0 Mdi MenuStrip
11004         folding.
11005         * MdiControlStrip.cs: Added.  These are the menu items used in mdi
11006         folding.
11007         * ToolStrip.cs: Add a null check to mnemonics.
11008         * ToolStripDropDownMenu.cs: When using a SystemMenuItem, there is
11009         no ConnectedArea.
11010         [Fixes most of bug #81689]
11011
11012 2007-08-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11013
11014         * PropertyGrid.cs: Add a null-check. Fixes #82289/SVGPad.
11015
11016 2007-08-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11017
11018         Use InitialDelay if ReshowDelay is zero. Fixes #82288.
11019
11020 2007-08-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11021
11022         * DataGridViewCell.cs: EditType: returns
11023           DataGridViewTextBoxEditingControl always.
11024
11025 2007-08-01  Jonathan Pobst  <monkey@jpobst.com>
11026
11027         * TextRenderer.cs: Remove the LineLimit string format flag from the
11028         DrawString fallback method so that things like buttons that aren't
11029         tall enough to draw a full line will still draw part of the text.
11030         [Fixes part of bug #82272]
11031
11032 2007-08-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11033
11034         * DataGridView.cs: Implemented AutoResizeColumn(s).
11035         * DataGridViewCellStyle.cs: Added SetAlignment, fills in a StringFormat
11036           according to the Alignment.
11037         * DataGridViewColumnHeaderCell.cs, DataGridViewTextBoxCell.cs:
11038           Implement alignment and padding when painting.
11039         * DataGridViewRow.cs: SetValues: Don't create a cell if it already
11040           exists.
11041         * DataGridViewCell.cs: Implement BorderWidths in the most primitive
11042           way.
11043         * DataGridViewColumnCollection.cs: Raise OnColumnAdded on the DGV when
11044           a column is added.
11045
11046 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
11047
11048         * TextBoxBase.cs: Use Control.ExplicitBounds instead of explicit_bounds,
11049         which is internal.
11050
11051 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
11052
11053         * ToolStrip.cs: Stub out drag and drop methods, fix some corcompare stuff,
11054         hide GetPreferredSize from public API.
11055         * ToolStripDropDown.cs: Override AllowItemReorder, fix AccessibleObject.
11056         * ToolStripItem.cs: Stub out drag and drop methods and events.
11057         * ToolStripManager.cs: Stub out Save/LoadSettings.
11058         * ToolStripOverflow.cs: Use renamed ToolStrip.GetPreferredSize.
11059         * ToolStripPanel.cs: Fix corcompare error.
11060         * ToolStripPanelRow.cs: Use renamed ToolStrip.GetPreferredSize.
11061         * ToolStripSplitButton.cs: Fix AccessibleObject stuff.
11062         * ToolStripSplitStackLayout.cs: Use renamed ToolStrip.GetPreferredSize.
11063
11064 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
11065
11066         * TextBoxBase.cs: In our new GetPreferredSizeCore, return the explicit
11067         bounds height instead of PreferredHeight.  Puts things back the way 
11068         they were for height while still fixing the width.  Fixes broken unit
11069         tests.
11070
11071 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11072
11073         * Binding.cs: Implement 2.0 constructors and add a null check.
11074
11075 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11076
11077         * DataGridViewRowCollection.cs: Allow a null DGV in the constructor,
11078           and fix row index (off by one).
11079
11080 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11081
11082         * PropertyGridView.cs: Remove debug output.
11083
11084 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11085
11086         * Control.cs: We need to reset the is_created flags when the handle is
11087           destroyed. Fixes #82187.
11088         * XplatUIWin32.cs: In GetWindowRect don't offset screen coordinates to
11089           client coordinates if the window doesn't have a parent.
11090           Win32GetParent returns the parent or the owner, and for top-level
11091           windows with no parent (but with an owner) we were calculating the
11092           location from the location of the owner.
11093         * Form.cs: Remove incorrect fix for #82187. Don't raise OnLoad if the
11094           form has been disposed.
11095         * MdiClient.cs: Add a null-check.
11096
11097 2007-07-30  Jonathan Pobst  <monkey@jpobst.com>
11098
11099         * TextBoxBase.cs: TextBoxBase reports itself at AutoSize, but doesn't
11100         actually do auto-sizing.  Override the internal GetPreferredSizeCore 
11101         so we can provide an implementation that returns the current width
11102         and preferred height.  Allows anchor = right to work with TextBox 2.0.
11103         [Fixes bug #82233]
11104
11105 2007-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11106
11107         * ListView.cs: Add support for navigating items in Groups mode, by
11108         creating a big matrix containing all rows and cols of all groups. When
11109         are in other mode than Details, pressing Up should have a similar
11110         behaviour as that one of Down (moving to the next available column if
11111         current one doesn't have an item in the requested row). Also, don't
11112         proceed to use groups if ShowGroups is false.
11113         * ListViewGroup.cs: Add an internal int field to store the starting
11114         row of the group (used by the big matrix used for navigating the
11115         ListView).
11116         * ThemeWin32Classic.cs: Don't draw headers if ListView.ShowGroups is
11117         false.
11118
11119 2007-07-30  Jonathan Pobst  <monkey@jpobst.com>
11120
11121         * ToolStripDropDown.cs: When we do Show, start with the 
11122         DefaultDropDownDirection, but if our popup menu is going to off-screen,
11123         modify the direction to keep it on screen.  [Fixes bug #82210]
11124
11125 2007-07-29  Gert Driesen  <drieseng@users.sourceforge.net>
11126
11127         * FileDialog.cs: Accept any FilterIndex value, and store it
11128         unmodified. When FilterIndex is less than 1, or greater than number
11129         of filters, then default to first filter. Only add filter extension to
11130         file if user did not specifiy an extension. When type of dialog is
11131         OpenFileDialog and DefaultExt is set, then only use filter extension
11132         if: CheckFileExists is true and no file wih the default extension
11133         exists, or CheckFileExists is false, and user specified file does not
11134         exist. When CheckFileExists is true, then add first extension of 
11135         selected filter that matches existing file. Perform checks for
11136         existing file, overwrite and create after extension has been added to
11137         file name. When CheckFileExists is true and type is SaveFileDialog,
11138         then only consider first filter extension if DefaultExt is set.
11139         When CheckFileExists is true, then ignore DefaultExt if file with that
11140         extension does not exist. Also perform check for existing file when
11141         type is SaveFileDialog. Changed some field to constants.
11142
11143 2007-07-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11144
11145         * ListView.cs: Take into account the region used by header
11146         control when doing the vertical scroll (this way we invalidate
11147         the precise area, and don't get any dirty one).
11148
11149 2007-07-27  Everaldo Canuto  <ecanuto@novell.com>
11150
11151         * FileDialog.cs: Check for valid filterIndex on button open/save. 
11152         Fixes #82184.
11153
11154 2007-07-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11155
11156         * ListView.cs: Update some layout calculations in details view
11157         and clean the code in a pair of assignations.
11158
11159 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
11160
11161         * ComboBox.cs, ContainerControl.cs, DataGrid.cs, FontDialog.cs, Label.cs,
11162         LinkLabel.cs, ListBox.cs, ListView.cs, ListViewItem.cs, MessageBox.cs,
11163         MonthCalender.cs, StatusBar.cs, ThemeClearlooks.cs, ThemeWin32Class.cs,
11164         ToolBar.cs, TreeView.cs: First pass at using thread-safe string measuring.
11165
11166 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
11167
11168         * TextRenderer.cs: Use [ThreadStatic] instead of locks to improve
11169         performance of thread-safe Graphic methods.  (Thanks rolf!)
11170
11171 2007-07-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11172
11173         * ListView.cs: When doing the layout calculations, don't calculate
11174         scroll bars before handle is created. This is unnecessary and also
11175         calculating them before handle creation item causes a number of random
11176         bugs (which begin to appear after Chris' big patch for handle creation
11177         fixes). 
11178
11179 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
11180
11181         * TextRenderer.cs: Create thread-safe versions of Graphics.MeasureString
11182         for things that don't have a Graphics object.  Currently, things just use
11183         the static Hwnd.bmp_g which is not thread safe.
11184
11185 2007-07-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11186
11187         * Form.cs: ShowDialog: don't destroy handles if the dialog is a common
11188           dialog. Fixes #82187.
11189
11190 2007-07-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11191
11192         * DataGridViewElement.cs: Initialize state.
11193         * DataGridView.cs: Forward a few Mouse events to cells. Add
11194           GetRowInternal and GetCellInternal that doesn't unshare rows.
11195           Implement GetCellDisplayRectangle. HitTest: if the row is shared,
11196           don't use the index, but look it up. Add
11197           DataGridViewControlCollection.RemoveInternal to remove controls
11198           that Remove won't remove (scrollbars, edit control).
11199         * DataGridViewColumn.cs: Initialize State correctly.
11200         * DataGridViewColumnHeaderCell.cs, DataGridViewComboBoxCell.cs,
11201           DataGridViewHeaderCell.cs, DataGridViewRowHeaderCell.cs: Started
11202           implementing this.
11203         * DataGridViewRowCollection.cs: Implemented shared rows.
11204         * DataGridViewRow.cs: Throw exceptions as MS do.
11205         * DataGridViewCell.cs: A few properties are implemented by a
11206           Get<Property> method, so move implementation there and remove the
11207           NIEX in the method. Add a bunch of OnXInternal that DataGridView
11208           calls when necessary.
11209         * DataGridViewComboBoxEditingControl.cs: Remove a few NIEX'es that just
11210           complicates matters.
11211         * DataGridViewCellCollection.cs: Add a GetCellInternal that doesn't
11212           unshare any rows.
11213
11214 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
11215
11216         * UpDownBase.cs: We cannot override SetBoundsCore for 2.0, which was relayout-ing
11217         the children controls.  Instead, we will just set up the proper docking for the
11218         children controls so we don't have to worry about it.  [Fixes bug #82188]
11219
11220 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
11221
11222         * TreeView.cs, NodeLabelEditEventArgs.cs, LabelEditTextBox.cs: Support edit
11223         canceling and correct Before/AfterLabelEdit properties as layed out in bug
11224         81847.  [Fixes bug #81847]
11225
11226 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
11227
11228         * Label.cs: If AutoSize = true and a width or height is set, ignore it and
11229         redo the autosize.  VS2005 defaults to setting the AutoSize, and then setting
11230         an explicit size based on the design-time size of the text.  Since our fonts
11231         may not match this explicit size, we tend to cut off the ends of people's labels.
11232
11233 2007-07-24  Jonathan Pobst  <monkey@jpobst.com>
11234
11235         * Menu.cs: Add some missing methods to MenuItemCollection.
11236
11237 2007-07-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11238
11239         * DataGridView.cs: Added RowTemplateFull, creates a row from the templates in the columns.
11240         * DataGridViewBand.cs: DefaultHeaderCellType: initialize correctly. Resizable: if not set, check DGV.
11241         * DataGridViewColumn.cs: InheritedAutoSizeMode: if not set, check DGV. Resizable: delegate to base class. ToolTipText: Never return null. Initialize a few other properties correctly.
11242         * DataGridViewColumnCollection.cs: Add: Default column is a TextBoxColumn.
11243         * DataGridViewComboBoxCell.cs: Started implementing this, lots left still.
11244         * DataGridViewElement.cs: State defaults to Visible.
11245         * DataGridViewRowCollection.cs: Add: creates the new row based on a template.
11246         * DataGridViewTextBoxColumn.cs: SortMode: delegate to base class, but initialize to Automatic. ToString: implement correctly.
11247
11248 2007-07-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11249
11250         * Control.cs: Minor 1.1 corcompare fix.
11251
11252 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
11253
11254         * LinkLabel.cs, PrintPreviewDialog.cs, TabPage.cs, TextBox.cs,
11255         TextBoxBase.cs, ToolBar.cs: 2.0 corcompare work.
11256
11257 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11258
11259         * DataGridViewLinkColumn.cs, DataGridViewRowCollection.cs,
11260           DataGridViewImageColumn.cs, DataGridViewSelectedCellCollection.cs,
11261           DataGridViewComboBoxCell.cs, DataGridViewLinkCell.cs,
11262           DataGridViewSelectedColumnCollection.cs,
11263           DataGridViewSelectedRowCollection.cs: Corcompare work.
11264
11265 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
11266
11267         * PrintDialog.cs: Stub UseEXDialog.  I chose to stub this because
11268         it is autoset by VS2005 designer and the effect is barely noticeable.
11269
11270 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
11271
11272         * TreeView.cs: Implement HitTest.
11273
11274 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11275
11276         * DataGridViewTextBoxCell.cs: Use DGV.EditControlInternal instead of
11277           manually adding and removing the control from the Controls
11278           collecftion.
11279         * DataGridView.cs: Implement DataGridViewControlCollection. Add an
11280           EditingControlInternal property that tracks the editing control.
11281           Always keeping the scrollbars in the Controls collection, as MS
11282           testing confirms is the right behaviour.
11283
11284 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11285
11286         * ScrollableControl.cs: Fix implementation of AutoScrollPosition
11287           according to MSDN and new test.
11288
11289 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
11290
11291         * TreeNode.cs: Implement ToolTipText.
11292         * TreeView.cs: Implement tooltips, NodeMouse* events.
11293
11294 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
11295
11296         * TreeView.cs: Implement OnNodeMouseClick and OnNodeMouseDoubleClick.
11297
11298 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
11299
11300         * TreeNode.cs: Implement ContextMenu, ContextMenuStrip, and Level.
11301         * TreeView.cs: Use the node's contextmenu[strip] if applicable.
11302
11303 2007-07-20  Ivan N. Zlatev  <contact@i-nz.net>
11304
11305         * Control.cs, Form.cs, ContainerControl.cs,
11306         ScrollableControl.cs, ButtonBase.cs:  Added ShouldSerialize
11307         for misc properties.
11308
11309 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
11310
11311         * TreeNode.cs: Implement StateImageIndex and StateImageKey.
11312         * TreeView.cs: Implement StateImageList.
11313
11314 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11315
11316         * Form.cs: Don't check if the current form is the active form before
11317           activating it. Fixes #81904.
11318
11319 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11320
11321         * Form.cs: Don't check if the current form is the active form before
11322           activating it. Fixes #81904.
11323
11324 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11325
11326         * TreeView.cs: Apply patch from Tyron (tmm@aon.at). Fixes #81847.
11327
11328 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11329
11330         * Form.cs: Don't try to position the form after loading if the form was
11331           disposed. Fixes #81969.
11332
11333 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11334
11335         * PropertyGrid.cs, PropertyGridView.cs: Implemented 2.0 methods and
11336           properties. Had to change ToolBar into ToolStrip, which required a
11337           few #ifs.
11338
11339 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11340
11341         * PropertyGrid.cs: PropertyToolBar: Redraw the entire toolbar when it's
11342           resized, fixes part of #79829 (vertical lines in toolbar).
11343           PropertyGrid: Refactored Populate* to something that's easier to
11344           follow at least for me, as well as splitting it up into several new
11345           methods, required to update only subitems when something has
11346           changed by a popup editor or listbox. Don't use events to check
11347           when any values are changed, since the events are unreliable (we're
11348           changing the objects the events are registered with, and if the
11349           event handling requires the objects to be immutable (objects stored
11350           in hashtables for instance), the events will never be raised).
11351         * PropertyGridView.cs: Call PropertyGrid.PropertyValueChangedInternal
11352           everytime we change a value, since events are unreliable.
11353           DropDownButtonClicked: For the same reason don't compare objects to
11354           check if it has changed or not, it would require all objects to
11355           derive Equals. Fix dialog location on windows, MS is doing weird
11356           things when creating parented forms.
11357         * GridEntry.cs: Add a SelectedObject setter.
11358
11359 2007-07-19  Jonathan Pobst  <monkey@jpobst.com>
11360
11361         * TreeNode.cs: Add some corcompare attributes.
11362         * TreeNodeCollection.cs: Implement 2.0 stuffs.
11363         * TreeView.cs: Implement some 2.0 stuffs.
11364
11365 2007-07-18  Andreia Gaita  <avidigal@novell.com>
11366
11367         * WebBrowser.cs, WebBrowserBase.cs: add some more MonoTODOs now
11368         for moma.
11369
11370 2007-07-19  Jonathan Pobst  <monkey@jpobst.com>
11371
11372         * ListBox.cs: Implement custom tab offsets.
11373
11374 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
11375
11376         * ToolStripContentPanel.cs: Support System renderer.
11377         * ToolStripControlHost.cs: Set RightToLeft to default to No.
11378
11379 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
11380
11381         * ScrollableControl.cs: Don't mess up the user's explicit bounds.
11382
11383 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
11384
11385         * CheckBox.cs: Chain TextAlign to base implementation instead of
11386         maintaining another one.
11387
11388 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
11389
11390         * ButtonBase.cs: Fix an incorrect string constant.
11391
11392 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
11393
11394         * TextRenderer.cs: Use the static Graphics context in Hwnd instead
11395         of creating one for measuring strings.
11396
11397 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
11398
11399         * ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownMenu.cs: 
11400         Implement MaxItemSize.
11401
11402 2007-07-17  Jonathan Pobst  <monkey@jpobst.com>
11403
11404         * Control.cs: Remove per-control 1x1 Bitmap and Graphics context used
11405         for DeviceContext.  Instead, use the static one available in Hwnd.
11406         Informal tests show this saves about 500k on formtest.exe.
11407
11408 2007-07-17  Jonathan Pobst  <monkey@jpobst.com>
11409
11410         * ContainerControl.cs: Implement 2.0 AutoScaling.
11411
11412 2007-07-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11413
11414         * ComboBox.cs: Work around bug #82120 (bug in mcs).
11415
11416 2007-07-16  Jonathan Pobst  <monkey@jpobst.com>
11417
11418         * ThemeWin32Classic.cs: Allow a Flat button to be Focused and Entered.
11419         Darken the focus color.
11420
11421 2007-07-16  Jonathan Pobst  <monkey@jpobst.com>
11422
11423         * ListBox.cs: When measuring items, if it's a CheckedListBox, add room
11424         for the checkbox.
11425         * ThemeWin32Classic.cs: Make the checkbox bigger in a CheckedListBox and use
11426         X, Y instead of a rect for drawing text.
11427         - For ControlPaint.DrawCheckBox, center the check a little better when the
11428         checkbox is odd width.  When drawing a flat checkbox, use a white background
11429         when state != inactive.
11430         [Fixes bugs #82097, 82100]
11431
11432 2007-07-16  Gert Driesen  <drieseng@users.sourceforge.net>
11433
11434         * ListControl.cs: When changing CurrencyManager, disconnect event
11435         handlers from previous one. Fixes bug #81771. Code formatting.
11436
11437 2007-07-15  Andreia Gaita <avidigal@novell.com>
11438
11439         * PrintPreviewControl.cs: Remove extraneous Invalidate calls. Separate
11440         full preview invalidation from layout invalidation, and only invalidate
11441         the layout when setting zoom or other properties. Invalidation should
11442         always be done even when resetting properties with the same values as
11443         what is there. Fixes #81744 and #79830.
11444
11445 2007-07-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11446
11447         * ListView.cs: Implement initial support for Groups. Split some of the
11448         LayoutIcons code to render a partial list of the items (needed by
11449         items contained in ListViewGroup instances). Let the
11450         ListViewItemsCollection.ListView property be modifiable (needed when
11451         using Groups, too).
11452         * ListViewGroup.cs: Use a Bounds property rather than a Location
11453         one. Also invalidate the bounds when they get changed.
11454         * ThemeWin32Classic.cs: When drawing items, also draw the group header
11455         if ListView.Groups.Count is bigger than 0. Add a DrawListViewGroupHeader
11456         method as well.
11457
11458 2007-07-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11459
11460         * ListView.cs: When space gets pressed and CheckBoxes is true, 
11461         don't invoke the Begin and EndUpdate methods. We are generating 
11462         a redraw of the entire control without need to do so.
11463
11464 2007-07-13  William Holmes <billholmes54@gmail.com> 
11465
11466         * Control.cs: Changing logic in FindFlatForward and 
11467           FindFlatBackward to handle multiple Controls with 
11468           the same TabIndex.  
11469           This fixes bug 81687.
11470
11471 2007-07-13  Jonathan Pobst  <monkey@jpobst.com>
11472
11473         * OSFeature.cs: Enable IsPresent.
11474
11475 2007-07-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11476
11477         * Control.cs: Don't do anything in WmShowWindow if the control has been
11478           disposed. We can get WM_SHOWWINDOW after a control is disposed: a
11479           control is created, put on a form, the control is disposed (the
11480           form is never shown), and then we get a MapNotify, triggering a
11481           WM_SHOWWINDOW.
11482         * Form.cs: Exclude the current form when sending Deactivate to all
11483           MdiChildren.
11484         * NativeWindow.cs: Set WindowCreating to null as soon as possible,
11485           there was a race condition because assigning the handle raises
11486           events, we can get more messages, therefore trying to assign the
11487           handle again, which would fail if any of those event handlers
11488           closed/disposed the control.
11489
11490 2007-07-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11491
11492         * Form.cs: Make the fix for #80775 windows-only (fixes #81957).
11493
11494 2007-07-12  Jonathan Pobst  <monkey@jpobst.com>
11495
11496         * SystemInformation.cs, Theme.cs, XplatUI.cs, XplatUIDriver.cs,
11497         XplatUIWin32.cs: Implement SystemInformation 2.0 properties.
11498
11499 2007-07-12  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11500
11501         * DateTimePicker.cs: If there's no part format specifier, return an
11502           empty string.
11503
11504 2007-07-12  Jonathan Pobst  <monkey@jpobst.com>
11505
11506         * FlatButtonAppearance.cs: Throw NotSupportedException for a
11507         Transparent BorderColor.
11508
11509 2007-07-12  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11510
11511         * DataGridView.cs, TextControl.cs, ProgressBar.cs, PrintDialog.cs,
11512           MessageBox.cs, ButtonBase.cs, PageSetupDialog.cs, NumericUpDown.cs,
11513           X11Dnd.cs, Binding.cs, DataGrid.cs, AxHost.cs,
11514           LinkLabelLinkClickedEventArgs.cs, TextRenderer.cs, Label.cs,
11515           LinkLabel.cs, TreeNode.cs, BindingSource.cs, TabPage.cs,
11516           TextBoxBase.cs, BindingNavigator.cs, Application.cs,
11517           ToolStripPanel.cs, TabControl.cs, ThemeClearlooks.cs, TreeView.cs:
11518           Remove warnings.
11519         * X11Structs.cs: Remove warnings, add ToString implementations.
11520
11521 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11522
11523         * XplatUIX11.cs: Translate min/max size according to the actual min/max
11524           size, and not the current size. Fixes #81798.
11525
11526 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11527
11528         * XplatUIX11.cs: Fix #80822 again (DefWndProc can be reached before
11529           XplatUI.CreateWindow returns, in which case the hwnd isn't assigned
11530           to the control yet).
11531
11532 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11533
11534         * PropertyGridTextBox.cs: Add a method that sends any forwarded
11535           mousedowns to the contained textbox.
11536         * X11Structs.cs: More ToString implementation.
11537         * PropertyGridView.cs: Forward any mousedowns to the textbox, fixes
11538           #81791.
11539
11540 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11541
11542         * PropertyGridView.cs: Add a null-check, fixes a few tests.
11543
11544 2007-07-10  Jonathan Pobst  <monkey@jpobst.com>
11545
11546         * TableLayoutPanelCellPosition.cs: TypeConverter.
11547
11548 2007-07-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11549
11550         [ Fixes #79761]
11551         
11552         * PropertyGridTextBox.cs: Propagate any color changes to all contained
11553           controls.
11554         * PropertyGridView.cs: A few color fixes.
11555
11556 2007-07-10  Jackson Harper  <jackson@ximian.com>
11557
11558         * TextControl.cs: Remove some old unused text formatting stuff.
11559
11560 2007-07-10  Jackson Harper  <jackson@ximian.com>
11561
11562         * TreeView.cs: Update full row select invalidation to match the
11563         newer DrawSelection... method.
11564         - Make sure to invalidate the entire width when selecting a new
11565         node, if we have full row selection enabled.
11566
11567 2007-07-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11568
11569         * PropertyGridView.cs: Fix for #81800, makes text show up on initial
11570           display of properties again.
11571
11572 2007-07-10  Jonathan Pobst  <monkey@jpobst.com>
11573
11574         * ListBox.cs: Add IntegerCollection and Add, Clear, Remove
11575         to existing collections.
11576
11577 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
11578
11579         * AccessibleObject.cs, RadioButton.cs: Fix some base classes
11580         that changed between 1.1 and 2.0.
11581
11582 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
11583
11584         * PowerStatus.cs: Added.  This is just a data class, it is filled
11585         in by SystemInformation.
11586
11587 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
11588
11589         * Message.cs: Add op_Equality and op_Inequality.
11590
11591 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
11592
11593         * MenuStrip.cs: Finish corcompare work.
11594
11595 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
11596
11597         * LinkArea.cs: Add op_Equality and op_Inequality.
11598
11599 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
11600
11601         * Application.cs: Add MessageLoopCallback delegate.
11602
11603 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
11604
11605         * ListBox.cs: First set of 2.0 stuffs.
11606
11607 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
11608
11609         * Control.cs: Make an internal Height property we can override
11610         without messing up the public API.
11611         * ListBox.cs: Override HeightInternal to always return the size
11612         the user set.  [Fixes bug #80466]
11613
11614 2007-07-08  Jonathan Pobst  <monkey@jpobst.com>
11615
11616         * TableLayoutPanel.cs: Add a null check so we don't NRE trying to
11617         paint cell borders if we haven't calculated where they go yet.
11618         [Fixes bugs #82040 and #82041]
11619
11620 2007-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11621
11622         * ListView.cs: In Details view, set the location of item_control
11623         in the (0,0) position (and the header_control is thus on the
11624         item_control). This way the Bounds of the Items are relative to the
11625         ListView control (before this, they had a Bounds value without the
11626         header_control offset, which wasn't matching .Net). Fixes #82004.
11627
11628 2007-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11629
11630         * ListControl.cs: When DataSource is set to null, pass an empty
11631         array of object to SetItemsCore. This is done to clean the items
11632         in the ListContol children. Fixes #81788.
11633
11634 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
11635
11636         * ListControl.cs: Add 2.0 stuffs.
11637
11638 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
11639
11640         * Label.cs: Finish up 2.0 stuffs.  Replace calls to Refresh with Invalidate,
11641         Refresh is overkill for just about every repaint request.
11642
11643 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
11644
11645         * ToolStripItem.cs: TextDirection getter handles looking up Inherit for us,
11646         so remove my custom Get method and fix the property getter.
11647
11648 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
11649
11650         * Label.cs: DefaultMargin for 2.0.
11651
11652 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
11653
11654         * ComboBox.cs: Override IsInputCharInternal and return true.  Fixes 
11655         reported issue where other controls with mnemonics would steal strokes
11656         from a selected ComboBox.
11657
11658 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
11659
11660         * ScrollOrientation.cs: Make internal for 1.1.
11661         * ScrollEventArgs.cs: Add 2.0 stuffs.
11662
11663 2007-07-05  Jonathan Pobst  <monkey@jpobst.com>
11664
11665         * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
11666         ToolStripItem.cs, ToolStripItem.cs, ToolStripItemTextRenderEventArgs.cs,
11667         ToolStripRenderer.cs, ToolStripSeparator.cs: Implement TextDirection.
11668
11669 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11670
11671         * ListViewItem.cs: Implement the small 2.0 GetSubItemAt method.
11672
11673 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11674
11675         * ListView.cs: Implement the so-incredibly broken 2.0 
11676         VirtualItemsSelectionRangeChanged event.
11677
11678 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11679
11680         * ListView.cs: When enter is pressed and selection is non empty,
11681         an OnItemActivate event must be fired.
11682
11683 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11684
11685         * ListView.cs: Store the FocusedItem information as an
11686         int instead of a ListViewItem (needed by VirtualMode).
11687         Update the calls to SetFocusedItem to pass an index instead of
11688         an item.
11689         * ListViewItem.cs: Likewise. Also, in VirtualMode retrieve
11690         the Focused state from the owner ListView. 
11691
11692 2007-07-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11693
11694         * ListView.cs: Set ListView.focused_item from ListViewItem.Focused
11695         property. Also, invalidate previous focused item in the mentioned
11696         property (match .Net).
11697
11698 2007-07-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11699
11700         * ListView.cs: Implement 2.0 FocusedItem property setter.
11701
11702 2007-07-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11703
11704         * ListView.cs: Implement 2.0 TopItem property setter.
11705
11706 2007-07-03  Jonathan Pobst  <monkey@jpobst.com>
11707
11708         * StatusStrip.cs: The default renderer is System.
11709         * ToolStrip.cs, ToolStripManager: Now that we have System renderer, use it 
11710         if the user specifies it.
11711         * ToolStripDropDown.cs: Don't reset our Renderer on changing OwnerItem
11712         if we are ManagerRenderMode.
11713         * ToolStripMenuItem.cs: Calculate our text color better.
11714         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Move some stuff
11715         from Professional to the base class based off working with the System renderer.
11716         * ToolStripSystemRenderer.cs: Added.
11717
11718 2007-07-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11719
11720         * ListView.cs: I'm so lame - the real name is HitTest, not HitInfo.
11721
11722 2007-07-02  Jonathan Pobst  <monkey@jpobst.com>
11723
11724         * ToolTip.cs: Implement 2.0 Tag property.
11725
11726 2007-06-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11727
11728         * ListView.cs: Implement 2.0 HitTest methods.
11729
11730 2007-06-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11731
11732         * ListViewItem.cs: Add a 2.0 bool Hot property, to tell whether the
11733         item is under the pointer or not (sugar). Also remove the TODO
11734         regarding to the cursor changes in OneClick activation.
11735         * ThemeWin32Classic.cs: When HotTracking is true and we are drawing
11736         the subitems use the parent's HotFont if UseItemStyleForSubItems is
11737         true; otherwise don't show the underline style.
11738
11739 2007-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11740
11741         * ListView.cs: In ItemControl.ItemsMouseMove, refactor
11742         the code to retrieve the item at position only one time. Also
11743         change cursor when Activation is ItemActivation.OneClick as well
11744         as invalidate the item if HotTracking is true (to show/hide the
11745         underline style). Add an internal HotItemIndex property to retrieve
11746         the current hot item's index.
11747         * ListViewItem.cs: Add an internal HotFont property to cache the
11748         font used when HotTracking is true and the pointer moves within the
11749         item's borders.
11750         * ThemeWin32Classic.cs: When drawing the item's text, use Font or
11751         HotFont depending on the hot state of the item.
11752
11753 2007-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11754
11755         * ListView.cs: Implement 2.0 HotTracking property.
11756
11757 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
11758
11759         * ToolStripControlHost.cs: If our hosted control never got created,
11760         don't try to dispose it.  [Fixes bug #81909]
11761
11762 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
11763
11764         * TableLayoutPanel.cs: Implement ScaleCore, ScaleControl.
11765
11766 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
11767
11768         * TableLayoutPanel.cs: Implement CellBorderStyle.  [Fixes bug #81884]
11769
11770 2007-06-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11771
11772         * ThemeWin32Classic.cs: In OwnerDraw mode draw subitems only for 
11773         Details view.
11774         * DrawListViewColumnHeaderEventArgs.cs:
11775         * DrawListViewSubItemEventArgs.cs: Add padding to the bounds when drawing text
11776         using the DrawText () methods.
11777
11778 2007-06-19  Jonathan Pobst  <monkey@jpobst.com>
11779
11780         * ToolStripProfessionalRenderer.cs: Put back clearing a ToolStripDropDown's
11781         background which got erased in my changes yesterday.
11782
11783 2007-06-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11784
11785         * ListViewItem.cs: Actually set bounds for subitems in Details view
11786         (2.0 feature).
11787         * ThemeWin32Classic.cs: Refactor the drawing code for subitems, so we
11788         can invoke from the owner draw routines if we need it. Also, add
11789         support for Owner draw in Details view.
11790
11791 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
11792
11793         * ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripLabel.cs,
11794         ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs: Respect the
11795         ShowImageMargin setting, properly align text in a ToolStripLabel
11796         hosted on a ToolStripDropDown.
11797
11798 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
11799
11800         * ToolStrip.cs, ToolStripContentPanel.cs, ToolStripDropDownMenu.cs,
11801         ToolStripProfessionalRenderer.cs: Refactor and clean up some rendering code.
11802
11803 2007-06-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11804
11805         * DrawListViewSubItemEventArgs.cs: Actually implement its methods.
11806
11807 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
11808
11809         * ToolStripLabel.cs: If the label is on a dropdown, adjust the text
11810         location to match ToolStripMenuItems.
11811
11812 2007-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11813
11814         * DrawListViewColumnHeaderEventArgs.cs:
11815         * ThemeWin32Classic.cs: Implement 2.0 OwnerDraw support for
11816         column headers in ListView. 
11817
11818 2007-06-15  Jonathan Pobst  <monkey@jpobst.com>
11819
11820         * UserControl.cs: Implement AutoSize.
11821
11822 2007-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11823
11824         * DrawListViewItemEventArgs.cs:
11825         * ListView.cs:
11826         * ThemeWin32Classic.cs: Implement basic support for 2.0 OwnerDraw in
11827         ListView.
11828
11829 2007-06-15  Jonathan Pobst  <monkey@jpobst.com>
11830
11831         * ToolStripDropDownItemAccessibleObject.cs: Added.
11832         * ToolStripDropDownItem.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
11833         ToolStripOverflow.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
11834         ToolStripProgressBar.cs, ToolStripSeparator.cs, ToolStripSplitButton.cs,
11835         ToolStripTextBox.cs: corcompare work.
11836
11837 2007-06-14  Jonathan Pobst  <monkey@jpobst.com>
11838
11839         * OSFeature.cs, StatusStrip.cs, TabControl.cs, TableLayoutSettings.cs,
11840         TableLayoutStyle.cs, TableLayoutCollection.cs, ToolStripContentPanel.cs,
11841         ToolStripControlHost.cs, ToolStripDropDown.cs, ToolStripDropDownButton.cs:
11842                 corcompare.
11843
11844 2007-06-14  Jonathan Pobst  <monkey@jpobst.com>
11845
11846         * OSFeature.cs: Add IsPresent.
11847         * PrintPreviewControl.cs: Add RightToLeft.
11848         * SplitContainer.cs: Add AutoScrollOffset, ScaleControl.
11849         * SplitterPanel.cs: Add AutoSizeMode.
11850
11851 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
11852
11853         * LayoutEventArgs.cs: Add 2.0 AffectedComponent.
11854         * MdiClient.cs: Add 2.0 ScaleControl.
11855         * NativeWindow.cs: Implement 2.0 interface IWin32Window.
11856         * NumericUpDownAccelerationCollection.cs: Add [ListBinding].
11857
11858 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
11859
11860         * Form.cs: Implement some scaling methods, stub some RTL methods,
11861         corcompare work.
11862
11863 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
11864
11865         * Control.cs: corcompare work.
11866         * FlatButtonAppearance.cs, FolderBrowserDialog.cs: Add TypeConverters.
11867
11868 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
11869
11870         * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Implement
11871         ControlPaint 2.0 stuffs.
11872
11873 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
11874
11875         * ThreadExceptionDialog.cs: Add 2.0 stuffs.
11876
11877 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
11878
11879         * UpDownBase.cs: Add 2.0 stuffs.
11880
11881 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
11882
11883         * NumericUpDown.cs: Add 2.0 stuffs.
11884
11885 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
11886
11887         * NotfiyIcon.cs: Add MouseDoubleClick event, hook up MouseClick event.
11888
11889 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
11890
11891         * ErrorProvider.cs: Implement 2.0 stuffs.
11892
11893 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
11894
11895         * DomainUpDown.cs: Implement 2.0 stuffs.
11896
11897 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
11898
11899         * CheckedListBox.cs: Fix RefreshItems signature.
11900
11901 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
11902
11903         * PictureBox.cs: Implement 2.0 stuffs.
11904
11905 2007-06-12  Andreia Gaita  <avidigal@novell.com>
11906         
11907         * TabControl.cs: Check if there are tabpages before checking
11908         the selected index - fix #81802 (font changes raise a ResizeTabs
11909         call on controls.add, which blew up nicely with no tabpages)
11910
11911 2007-06-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11912
11913         * ListView.cs:
11914         * ListViewItem.cs: Implement 2.0 ItemSelectionChanged event.
11915
11916 2007-06-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11917
11918         * ListView.cs:
11919         * ListViewItem.cs: In VirtualMode the selection information
11920         resides in the ListView, rather than in the Items. Also, throw
11921         InvalidOperationExceptions when VirtualMode is being used and
11922         CheckedItemCollection is accessed.
11923
11924 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
11925
11926         * ComboBox.cs: Add ScaleControl.
11927
11928 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
11929
11930         * ButtonBase.cs: ButtonBaseAccessibleObject.State should not be visible to 1.1.
11931
11932 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
11933
11934         * GroupBox.cs: Add 2.0 stuffs.
11935
11936 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
11937
11938         * Panel.cs: Add autosize properties/event.
11939
11940 2007-06-07  Jonathan Pobst  <monkey@jpobst.com>
11941
11942         * Control.cs:
11943         - When we remove a control, remove it from the collection before performing the layout.
11944         - Setup an internal property for explicit_bounds.
11945         - Don't let the UpdateBounds in CreateHandle overwrite our explicit bounds.
11946         - Perform a layout when we set a new AutoSizeMode.
11947
11948 2007-06-07  Jonathan Pobst  <monkey@jpobst.com>
11949
11950         * ScrollableControl.cs: Add 2.0 stuffs.
11951
11952 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
11953
11954         * ScrollBar.cs: Add 2.0 stuffs.
11955
11956 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
11957
11958         * Splitter.cs: Add 2.0 stuffs.
11959
11960 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
11961
11962         * SplitContainer.cs: Apply patch from Neil Cawse <neilcawse@geotab.com>
11963         to have BindingContext simply use base implementation.
11964
11965 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
11966
11967         * ColumnHeader.cs: corcompare fix.
11968
11969 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
11970
11971         * Button.cs: corcompare fixes.
11972         * ButtonBase.cs: corcompare fixes, add ButtonBaseAccessibleObject.State.
11973
11974 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
11975
11976         * Button.cs: Override GetPreferredSizeCore.
11977         * ButtonBase.cs: PerformLayout after changing properties that can affect
11978         AutoSize.  Simplify some mouse/keyboard code.
11979         * Control.cs: PerformLayout after changing Padding if AutoSize = true.
11980         * MouseEventArgs.cs: Make Location internal for 1.1.
11981         * TextRenderer.cs: Make MeasureTextInternal (string, Font, bool) internal for 1.1.
11982         * Theme.cs: Add CalculateButtonAutoSize.
11983         * ThemeWin32Classic.cs: Implement CalculateButtonAutoSize.
11984
11985 2007-06-05  Miguel de Icaza  <miguel@novell.com>
11986
11987         * TreeNodeCollection.cs: Applied patch from Neil Cawse <neilcawse@geotab.com>
11988
11989 2007-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11990
11991         * ListViewItem.cs: We can't cache Bounds in VirtualMode 
11992         since we can get different item instances every time we retrieve it.
11993
11994 2007-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11995
11996         * ListView.cs: Work around for #81602, since an unkown an pretty
11997         infrequent condition appears only in some systems (old linux boxes, it
11998         seems).
11999
12000 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
12001
12002         * Button.cs: Completely reformat and a little refactor to bring
12003         this closer to Mono circa 2007.
12004
12005 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
12006
12007         * CheckBox.cs, Form.cs, RadioButton.cs: Change call to ButtonBase.Redraw
12008         to be ButtonBase.Invalidate.
12009
12010 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
12011
12012         * ButtonBase.cs: GetPreferredSize is 2.0 only.  Fixes build.
12013
12014 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
12015
12016         * ButtonBase.cs: Completely reformat and a little refactor to bring
12017         this closer to Mono circa 2007.
12018
12019 2007-06-01  Everaldo Canuto  <ecanuto@novell.com>
12020
12021         * Label.cs: Fixes preferred sizes for 2.0 profile, also adjust some
12022         values for autosize. Fixes #80137.
12023
12024 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
12025
12026         * Control.cs: Don't perform layout when AutoSize changes.
12027         * Form.cs: Perform layout in AutoSize override.  Don't set ClientSize
12028         directly when autosizing, use SetBounds with BoundsSpecified.None.
12029         Fixes unit tests my last commit broke.
12030
12031 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
12032
12033         * Control.cs: Perform layout when AutoSize changes.
12034         * Form.cs: Implement AutoSizing.
12035
12036 2007-06-01  Chris Toshok  <toshok@ximian.com>
12037
12038         * DataGrid.cs: remove the XXX'ed check at the top of
12039         ProcessGridKey.  fixes #80464.
12040
12041 2007-06-01  Chris Toshok  <toshok@ximian.com>
12042
12043         * DataGridTextBoxColumn.cs: TextBox.TextChanged event handler
12044         adding idempotent (add/remove in Edit()), and also make sure we
12045         don't add it until after we set the text, so it's not tripped in
12046         Edit().  Fixes unit test regression.
12047
12048 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
12049
12050         * Control.cs: In UpdateBounds, only recalculate anchor distances if the
12051         change is user explicit, not when the layout engine moves stuff.  Fixes
12052         anchoring to bottom and right.  [Fixes bug #81790]
12053
12054 2007-06-01  Andreia Gaita  <avidigal@novell.com>
12055
12056         * PrintDialog.cs: Add collation preview thumbnails. Fixes #80726.
12057
12058 2007-06-01  Andreia Gaita  <avidigal@novell.com>
12059
12060         * ContainerControl.cs: 
12061         Fire enter event for common ancestor if it is not a ContainerControl.
12062         Send focus to the active_control and not the 'value', the active 
12063         control might have been changed in one of the events fired.     
12064         Definitely fixes #80159.
12065
12066 2007-06-01  Andreia Gaita  <avidigal@novell.com>
12067
12068         * DataGrid.cs: Finish editing when focus leave the datagrid. Fixes #80159.
12069
12070 2007-06-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12071
12072         * PropertyGrid.cs: Anchor the help description to the bottom of the
12073           help panel and refactor SelectGridItem into a
12074           SelectGridItemInternal that can be set to null (and update it to
12075           clear the help texts when it is set to null). Set root item to null
12076           when there's no SelectedObject. Fixes #80438.
12077         * ScrollableControl.cs: In Recalculate we need to ResumeLayout(true)
12078           when we're recalculating after a resize (only).
12079
12080 2007-05-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12081
12082         * ListView.cs: Implement 2.0 RedrawItems method.
12083
12084 2007-05-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12085
12086         * ListControl.cs: Disconnect PositionChanged and ItemChanged
12087         handlers from previous data manager when DataSource is set to
12088         null. Fixes #81771.
12089
12090 2007-05-31  Jackson Harper  <jackson@ximian.com>
12091
12092         * TextBoxBase.cs: These seem to be the correct values.
12093
12094 2007-05-31  Everaldo Canuto  <ecanuto@novell.com>
12095
12096         * FileDialog.cs: When close dialog with ok set filterindex using combobox
12097         value. Fixes #81784.
12098
12099 2007-05-31  Jonathan Pobst  <monkey@jpobst.com>
12100
12101         * Control.cs: Implement 2.0 scaling methods.
12102
12103 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12104
12105         * ProgressBar.cs, WebBrowserBase.cs, Control.cs, MaskedTextBox.cs,
12106           MessageBox.cs, PropertyGrid.cs, RichTextBox.cs: Fix warnings and
12107           corcompare issues.
12108
12109 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12110
12111         * ProgressBar.cs: Implemented missing 2.0 members.
12112
12113 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12114
12115         * Control.cs: Corcompare issues.
12116         * MessageBox.cs: Implemented missing 2.0 functions.
12117
12118 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12119
12120         * CheckedListBox.cs, ListBox.cs, ListControl.cs, ComboBox.cs:
12121           Implemented more 2.0 members.
12122
12123 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12124
12125         * Application.cs: Try to avoid NRE when Assembly.GetEntryAssembly is
12126           null (strange, but it seems to happen when running unit tests).
12127
12128 2007-05-30  Andreia Gaita  <avidigal@novell.com>
12129
12130         * ContainerControl.cs: Set active_control even earlier, before 
12131         firing any events, and undo it if validation returns false.
12132
12133 2007-05-30  Andreia Gaita  <avidigal@novell.com>
12134
12135         * ContainerControl.cs: Raise Validation and Enter/Leave events
12136         even if there is no Form and set active_control earlier, just
12137         before firing Enter events (toshok's patches). Fixes #80647.
12138
12139 2007-05-30  Jackson Harper  <jackson@ximian.com>
12140
12141         * TextControl.cs: Redid the pageup/pagedown a little to simplify
12142         things and fix bug #81311.
12143
12144 2007-05-30  Jackson Harper  <jackson@ximian.com>
12145
12146         * X11Dnd.cs: Now that we have our own event loop, we need to
12147         cancel when we get a mouseup but it won't be accepted.
12148
12149 2007-05-30  Chris Toshok  <toshok@ximian.com>
12150
12151         * DataGrid.cs (set_CurrentCell): guard against negative
12152         column/row.
12153
12154         * DataGridColumnStyle.cs (CheckValidDataSource): just use the
12155         array index syntax instead of looping over the property names.
12156
12157         * DataGridTextBoxColumn.cs: add a changed handler on the textbox,
12158         and set IsInEditOrNavigateMode to false there.
12159
12160 2007-05-30  Jackson Harper  <jackson@ximian.com>
12161
12162         * TreeView.cs: Make sure we don't get a bad visible order when
12163         setting to the top node.  Fixes some misc crashing in
12164         ControlInspector.
12165
12166 2007-05-30  Andreia Gaita  <avidigal@novell.com>
12167
12168         * UserControl.cs: Add 2.0 AutoSizeMode
12169
12170 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
12171
12172         * DataGridTextBoxColumn.cs: Fix textbox horizontal offset.
12173
12174 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
12175
12176         * DataGridTextBoxColumn.cs: Fix textbox position to prevent override grid
12177         lines. Fixes #80285. 
12178
12179 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
12180
12181         * DataGridColumnStyle.cs: Add char trimming column header text format. 
12182
12183 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
12184
12185         * DataGridColumnStyle.cs: Fix grid header arrow drawing over column name. 
12186         Fixes #80147.
12187
12188 2007-05-29  Jackson Harper  <jackson@ximian.com>
12189
12190         * TreeNode.cs: Fix off by one on calculating whether or not a node
12191         is visible.
12192
12193 2007-05-29  Jonathan Pobst  <monkey@jpobst.com>
12194
12195         * Control.cs: ResumeLayout(false) should recalculate anchor distances.
12196         * ScrollableControl.cs: Force an UpdateDistances when we move the
12197         scrollbars.
12198         [Fixes bug #80605]
12199
12200 2007-05-29  Andreia Gaita  <avidigal@novell.com>
12201
12202         * PageSetupDialog.cs: Fix #80728 - Changing the printer doesn't
12203         update the page setup screen.
12204
12205 2007-05-29  Andreia Gaita  <avidigal@novell.com>
12206
12207         * PageSetupDialog.cs: Fix landscape mode.
12208
12209 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12210
12211         * SystemInformation.cs: Add 2.0 IconSizeVerticalSpacing and
12212         IconSizeHorizontalSpacing.
12213
12214 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12215
12216         * ListView.cs: The declaration of prev_tooltip_item should be inside
12217         a NET_2_0 conditional (avoid a warning).
12218
12219 2007-05-28  Andreia Gaita  <avidigal@novell.com>
12220
12221         * PageSetupDialog.cs: Implement PrintPreview control to display
12222         the preview thumbnail. Change unit conversion to use 
12223         PrinterUnitConvert methods.
12224         
12225         Note: there is a huge bug in ms.net where the default margins are 
12226         interpreted as centimeters (?), when in fact they are set in inches. When 
12227         loading the page setup dialog initially (ms.net), the default margins 
12228         are set to 1 inch, and the dialog shows them with value 10, when in fact 
12229         it should be 25 (properly converted). Our dialog doesn't have this bug.
12230         
12231         * Theme.cs, ThemeWin32Classic.cs: Add a CPDrawBorder override for 
12232         RectangleF.
12233         * ControlPaint.cs: Add a DrawBorder internal method for RectangleF.
12234
12235 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12236
12237         * ListView.cs:
12238         * ListViewItem.cs: Implement 2.0 ToolTipText support for listview
12239         items.
12240
12241 2007-05-28  Andreia Gaita  <avidigal@novell.com>
12242
12243         * X11Dnd.cs: A direct cast to VirtualKeys is not allowed from
12244         an IntPtr on csc (it builds fine on mcs, could it be a compiler
12245         bug?), convert the ptr to Int32 first.
12246
12247 2007-05-28  Jackson Harper  <jackson@ximian.com>
12248
12249         * X11Dnd.cs: Add a timer, so after drop, if a finish is not
12250         recieved, we will exit the dnd tracking loop.
12251
12252 2007-05-28  Jackson Harper  <jackson@ximian.com>
12253
12254         * X11Dnd.cs: Keep tracking until the xdnd finished event is
12255         recieved. TODO: I should probably stick a timer on the dropped
12256         event, and finish the drag if the XDND Finished event never shows
12257         (because some apps don't seem to send it).
12258
12259 2007-05-28  Everaldo Canuto  <ecanuto@novell.com>
12260
12261         * ToolBar.cs: Fix toolbar default width for button with image. Fixes
12262         #81733.
12263
12264 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12265
12266         * MonthCalendar.cs: Only mark the keypresses we actually handle as
12267           handled.
12268
12269 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12270
12271         * MonthCalendar.cs: Set the size after initializing all the relevant
12272           variables. Fixes #81742.
12273
12274 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12275
12276         * KeyEventArgs.cs: Fix typo.
12277
12278 2007-05-28  Gert Driesen  <drieseng@users.sourceforge.net>
12279
12280         * DateTimePicker.cs: Changed exceptions thrown by MinDate and MaxDate
12281         to match MS. Fixed MinDate to only accept value less than or equal
12282         to MaxDate on 2.0 profile and less than MaxDate on 1.0 profile.
12283         Removed TODO's that are now verified by unit tests.
12284
12285 2007-05-27  Gert Driesen  <drieseng@users.sourceforge.net>
12286
12287         * TreeNodeCollection.cs: Minor corrections to exceptions to match
12288         MS.
12289
12290 2007-05-25  Jackson Harper  <jackson@ximian.com>
12291
12292         * X11Dnd.cs: Rework to make StartDrag a blocking call that runs
12293         it's own message loop.
12294         * XplatUIX11.cs: Remove some of the dnd hooks
12295
12296 2007-05-25  Gert Driesen  <drieseng@users.sourceforge.net>
12297
12298         * XplatUIX11.cs: Change MinimumWindowSize to {Width=0,Height=0}
12299         instead of MinimizedWindowSize.
12300
12301 2007-05-25  Jackson Harper  <jackson@ximian.com>
12302
12303         * TextBoxBase.cs: Raise textchanged when cutting and pasting text.
12304
12305 2007-05-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12306
12307         * KeyEventArgs.cs: Added SuppressKeyPress.
12308         * Control.cs: Added support for SuppressKeyPress.
12309
12310 2007-05-24  Andreia Gaita  <avidigal@novell.com>
12311
12312         * NumericUpDown.cs: Refactor code to fix regressions on #79950 and
12313         problems with PieChart. suppress_validation should not be a counter,
12314         if there are several BeginInit calls, the first EndInit will 
12315         activate validation. Fix exceptions thrown by set_Value.
12316         * UpDownBase.cs: ValidateText only if it's the user editing it.
12317
12318 2007-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12319
12320         * ListControl.cs: FilterItemOnProperty should return the filtered
12321         item proeprty even if DataSource is null. The same applies for
12322         GetItemText. Fixes #80427.
12323
12324 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
12325
12326         * Control.cs: If a control doesn't have a parent when it's Dock is
12327         set, but it has children, it needs to do a layout.  Fixes some nested
12328         controls issues.  [Fixes bug #81199]
12329
12330 2007-05-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12331
12332         * ComboBox.cs: If there are few items in the drop down list, make it
12333           the exact size the items need, no bigger. Fixes #81612.
12334
12335 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
12336
12337         * Application.cs: When we have captured the keyboard for a menu,
12338         check for mouse down events in case we need to close the menu.
12339         * Control.cs, Form.cs: Remove mouse down checks for menus.
12340
12341 2007-05-24  Jackson Harper  <jackson@ximian.com>
12342
12343         * TextControl.cs: Handle tabs in non multiline mode a little
12344         differently.
12345
12346 2007-05-24  Jackson Harper  <jackson@ximian.com>
12347
12348         * TextControl.cs: We need to manually break apart tabbed text and
12349         move the tabs, since the system.drawing tabbing mechanism relies
12350         on tab stops.
12351         * TextBoxBase.cs: Move the caret properly when the user enters a
12352         tab.
12353
12354 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
12355
12356         * ContainerControl.cs: Don't check CanSelect before calling
12357         ProcessMnemonic.
12358         * ToolStrip.cs: Only do implicit mnemonics on MenuStrips.  Don't
12359         release a KeyboardActive on click if it's not ours.
12360
12361 2007-05-23  Andreia Gaita  <avidigal@novell.com>
12362
12363         * ColumnHeader.cs: Add TypeConverter
12364
12365 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
12366
12367         * LinkLabel.cs: Implement LinkCollection.Add with Link parameter (2.0).
12368
12369 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
12370
12371         * LinkLabelLinkClickedEventArgs.cs, LinkLabel.cs: Implement Button property.
12372
12373 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
12374
12375         * LinkLabel.cs: Implement public Padding property.
12376
12377 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
12378
12379         * LinkLabel.cs: Implement public FlatStyle.
12380
12381 2007-05-23  Jonathan Pobst  <monkey@jpobst.com>
12382
12383         * Control.cs: Apply patch from George to call parent.PerformLayout
12384         when Visible is changed.  [Fixes bugs #81118, 81718]
12385
12386 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
12387
12388         * MainMenu.cs, MenuAPI.cs: Implement Collapse event for MainMenu (2.0).
12389
12390 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
12391
12392         * ContextMenu.cs: Implement ProcessCmdKey with control parameter.
12393
12394 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
12395
12396         * ContextMenu.cs: Implement Collapse.
12397
12398 2007-05-23  Rolf Bjarne Kvinge <RKvinge@novell.com>
12399
12400         * ToolBarButton.cs: Implement Name.
12401
12402 2007-05-22  Everaldo Canuto  <ecanuto@novell.com>
12403
12404         * ToolBar.cs: Fix OnButtonDropDown to save item used in dropdown instead of
12405         use current_item, it prevents some NRE. Fixes #81675.  
12406
12407 2007-05-22  Andreia Gaita  <avidigal@novell.com>
12408
12409         * NumericUpDown.cs: Fix PieChart by not returning from UpdateEditText
12410         without updating the text.
12411
12412 2007-05-22  Jonathan Pobst  <monkey@jpobst.com>
12413
12414         * XplatUIWin32.cs: Plug a GDI leak caused by calling Font.ToHfont ()
12415         without calling DeleteObject.  [Should fix bug #81709]
12416
12417 2007-05-22  Jackson Harper  <jackson@ximian.com>
12418
12419         * RichTextBox.cs: Set the line endings correctly, when flushing
12420         RTF text.
12421
12422 2007-05-22  Gert Driesen  <drieseng@users.sourceforge.net>
12423
12424         * XplatUIX11.cs: MinimumWindowSize on X11 is actually
12425          {Width=0,Height=0}.
12426
12427 2007-05-22  Jackson Harper  <jackson@ximian.com>
12428
12429         * TreeView.cs: Setting top with a null node should set to the very
12430         top.
12431
12432 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12433
12434         * Form.cs: ShowDialog: destroy the handle when message loop is
12435           finished, matches MS behaviour. Refactor parts of WmClose into
12436           RaiseCloseEvents, that only raises events if they haven't already
12437           been raised. Fixes #81688 and #81521.
12438         * Application.cs: Don't call close on the form when exiting a modal
12439           loop, it will raise all the (Form)Closed/Closing events again if
12440           WM_CLOSE has been sent earlier on, instead call RaiseCloseEvent,
12441           which doesn'r raise any events it they have been raised before.
12442
12443 2007-05-22  Jonathan Pobst  <monkey@jpobst.com>
12444
12445         * Control.cs: Add OnPrint.
12446         * ToolStrip.cs: Add GetChildAtPoint.
12447         * ToolStripContainer.cs: Add OnRightToLeftChanged.
12448         * ToolStripRenderer.cs: Make CreateMirrorImage internal.
12449
12450 2007-05-22  Everaldo Canuto  <ecanuto@novell.com>
12451
12452         * MenuAPI.cs: Prevent context menu to be typed as MainMenu. Fixes #81509.  
12453
12454 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12455
12456         * InternalWindowManager.cs: ToolTipShow: Don't show tooltip if the form
12457           isn't visible anymore. Fixes #81651.
12458
12459 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12460
12461         * Control.cs: WmShowWindow: Update children's z-order after setting
12462           their parent. SetParent may show the window, thereby corrupting
12463           z-order, since the window will be shown on top.
12464         * XplatUIWin32.cs: SetParent: don't call SetVisible on forms. Prevents
12465           multiple (and redundant) WM_SHOWWINDOW messages.
12466         * MdiWindowManager.cs: RaiseDeactivate: only raise after an Activate
12467           event has already been raised.
12468         * Form.cs: Change is_changing_visible_state to a counter, since
12469           SetVisibleCore can be called recursively. CreateHandle: when
12470           creating mdi children, send (De)Activated events.
12471         * MdiClient.cs: Update use of is_changing_visible_state.
12472         * Application.cs: OnThreadException: Surround exception handling with
12473           try/finally to ensure we always reset the error-handling state
12474           before leaving.
12475
12476 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12477
12478         * ThemeWin32Classic.cs: DrawProgressBar: Avoid a DivideByZero exception
12479           (#81704).
12480
12481 2007-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12482
12483         * ListView.cs: Use Theme.ListViewHorizontalSpacing for List and
12484         SmallIcon views, now that we have a standarized horizontal spacing.
12485
12486         * ThemeWin32Classic.cs: ListViewHorizontalSpacing now has a value of
12487         4, just like the other views (Match .Net).
12488
12489 2007-05-21  Jonathan Pobst  <monkey@jpobst.com>
12490
12491         * Control.cs: Delay calculating anchor distances until we actually layout.
12492         Always query the WM for the actual size and location it put us at instead of
12493         only when we send negative values.
12494         [Fixes bugs #81694, 81695]
12495
12496 2007-05-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12497
12498         * Application.cs: Avoid a possible stack overflow when trying to exit
12499           the application.
12500
12501 2007-05-19  Marek Safar  <marek.safar@gmail.com>
12502
12503         * Theme.cs (GetHatchBrush): A key uses internal value instead of formated
12504         enum value.
12505
12506 2007-05-19  Andreia Gaita  <avidigal@novell.com>
12507
12508         * NumericUpDown.cs: Added 2.0 methods (spin acceleration)
12509         * NumericUpDownAcceleration.cs, 
12510           NumericUpDownAccelerationCollection.cs: Added 2.0
12511           implementation.
12512
12513 2007-05-19  Gert Driesen  <drieseng@users.sourceforge.net>
12514
12515         * RichTextBox.cs: Recalculate the document after the ScrollBars
12516         property is changed. Fixes bug #81681.
12517
12518 2007-05-18  Jonathan Pobst  <monkey@jpobst.com>
12519
12520         * DataObject.cs: Implement 2.0 methods.
12521
12522 2007-05-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12523
12524         * ThemeWin32Classic.cs: Draw the check marks in ListViewItems
12525         in the center of the checkbox, not in the left-top corner. 
12526         Fixes #80037.
12527
12528 2007-05-18  Jackson Harper  <jackson@ximian.com>
12529
12530         * RichTextBox.cs: Recalculate the document after the scrollbars
12531         property is changed.
12532         * TextBoxBase.cs: ScrollBars is not a flags enum...This fixes
12533         81486.
12534
12535 2007-05-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12536
12537         * CreateParams.cs: Make HasWindowManager marginally faster.
12538         * XplatUIX11.cs, Hwnd.cs: CreateWindow: Move the default location code
12539           into Hwnd so that other drivers can use it as well.
12540         * XplatUIWin32.cs: CreateWindow: If the window has a window manager get
12541           the default location from Hwnd. Fixes MDI client windows always
12542           showing up at (0,0) in Windows (Win32 won't set the default
12543           location since the window styles aren't correct).
12544
12545 2007-05-18  Gert Driesen  <drieseng@users.sourceforge.net>
12546
12547         * TreeView.cs: Modified DoubleBuffered to just use the base
12548         implementation.
12549
12550 2007-05-18  Jackson Harper  <jackson@ximian.com>
12551
12552         * TreeView.cs: Set the top node to the last child node when
12553         expanding all
12554         - When we get focus, if there is no selected node, use the top
12555         node.
12556
12557 2007-05-18  Jonathan Pobst  <monkey@jpobst.com>
12558
12559         * KeysConverter.cs: Add CanConvertTo.
12560         * LinkLabel.cs: Add some 2.0 constructors and properties to LinkLabel.Link.
12561         * LinkConverter.cs: Added.
12562
12563 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
12564
12565         * Cursor.cs: Apply Sebastien patch from #81669 to open file in read mode,
12566         it prevents error when file dont have write access. Fixes #81669 and #81667.  
12567
12568 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
12569
12570         * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw toolbar 
12571         button text. Fixes #79640.  
12572
12573 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
12574
12575         * Control.cs: According to MSDN controls created in the designer theres 
12576         keyboard accelerators visible by default. So included check for design
12577         in ShowKeyboardCuesInternal.  
12578
12579 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
12580
12581         * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw combobox 
12582         text. Fixes #81621.  
12583
12584 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
12585
12586         * Control.cs: ShowKeyboardCuesInternal add to expose ShowKeyboardCues
12587         for 1.0, becuse ShowKeyboardCues is protected on 1.0.  
12588
12589 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
12590
12591         * Control.cs: Finish implementation of UI State using WmChangeUIState
12592         to send WM_UPDATEUISTATE to all child controls. Some hack will be needed
12593         in some controls to check for show_keyboard_cues to draw accell keys "_".  
12594
12595 2007-05-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12596
12597         * ListBox.cs: When calculating the horizontal scrollbar
12598         in single column mode, don't use values less than 0 for
12599         Maximum. Fixes #81474.
12600
12601 2007-05-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12602
12603         * ListBox.cs: Throw the some missing exceptions in
12604         ListBox.ObjectCollection methods.
12605
12606 2007-05-17  Jackson Harper  <jackson@ximian.com>
12607
12608         * TextBoxBase.cs: Recalculate the document when the word wrap
12609         value has changed. This fixes 81488.
12610
12611 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
12612
12613         * Clipboard.cs: Implement missing GetText overload.
12614
12615 2007-05-17  Chris Toshok  <toshok@ximian.com>
12616
12617         * Control.cs (CheckDataBindings): remove the binding_context arg
12618         to binding.Check.
12619
12620         * CurrencyManager.cs (OnItemChanged): fix this now that
12621         BindingManagerBase is fixed. also remove the comment telling where
12622         the fix should go.  We set transfering_data to true/false around
12623         the call to PushData to keep UpdateIsBinding from being called.
12624         (ListChangedHandler): remove the extra OnMetaDataChanged call for
12625         PropertyDescriptorAdded in the 1.1 case.  The extra call is
12626         actually generated by System.Data generating 2 metadata changed
12627         events of its own per column add.  The fix should go there.  Add a
12628         comment to that affect in our test's Assert.Ignore.
12629
12630         * BindingManagerBase.cs: Rework PullData and PushData slightly.
12631         we keep a boolean flag (transfering_data) that keeps us from
12632         calling UpdateIsBinding multiple times if we re-enter either of
12633         them.
12634
12635         * ControlBindingsCollection.cs (AddCore): remove the
12636         binding_context arg to binding.Check.
12637
12638         * Binding.cs (IsBinding): don't check if we're binding here, just
12639         return our cached value.  we update it in UpdateIsBinding.
12640         (Check): don't take the binding_context arg, we'll just use our
12641         control's.  Also, for some reason MS doesn't use the data member
12642         field when getting the bindingmanager for this binding.  it just
12643         uses the datasource.  Make this method callable multiple times,
12644         and only do the is_null_desc stuff if manager.Position != -1 (so
12645         we don't get an exception accessing manager.Current).
12646         (UpdateIsBinding): move the code from IsBinding here.
12647         (PositionChangedHandler): call Check here to we can initialize
12648         things that require a non- -1 position.
12649
12650 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
12651
12652         * Form.cs: When alt keys is pressed send WM_CHANGEUISTATE to top level
12653         control.
12654
12655 2007-05-17  Andreia Gaita  <avidigal@novell.com>
12656
12657         * TabControl.cs: Add 2.0 methods and events, including
12658         OnEnter / OnLeave and raises it for tabpages (fixes #79869)
12659         * TabPage.cs: Add 2.0 methods
12660
12661 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
12662
12663         * Control.cs: Implement WmUpdateUIState, show_focus_cues and
12664         keyboard_cues is properly handled by message method.  
12665
12666 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
12667
12668         * TreeViewImageIndexConverter.cs: Add 2.0 methods.
12669
12670 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
12671
12672         * ToolStripTextBox.cs: Wire up new 2.0 Textbox methods/properties.
12673
12674 2007-05-16  Everaldo Canuto  <ecanuto@novell.com>
12675
12676         * Control.cs: 
12677         - WmUpdateUIState added to handle state changes, it make call to
12678         OnChangeUICues event.
12679         - Fixed ShowKeyboardCues to check for MenuAccessKeysUnderlined in
12680         SystemInformation.
12681
12682 2007-05-16  Jonathan Pobst  <monkey@jpobst.com>
12683
12684         * ImageKeyConverter.cs: Added.
12685         * TreeViewImageKeyConverter.cs: Added.
12686
12687 2007-05-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12688         
12689         * ToolTips.cs: Update Text if SetToolTip is called for a control
12690         already showing the tooltip, as well as restarting its timer; show
12691         tooltip if we are inside the control bounds by the time of calling
12692         SetToolTip. Inside ShowTooltip remove the check to not show the 
12693         tooltip again for the active control (it is allowed by .Net to 
12694         show the tooltip on the same control multiple times).
12695
12696 2007-05-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12697
12698         * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
12699
12700 2007-05-16  Andreia Gaita <avidigal@novell.com> 
12701
12702         * ContainerControl.cs: only process tab key if there are no 
12703         modifier keys present, otherwise the control does the 
12704         tab processing, if it needs to. Fixes #81622
12705         * TabControl.cs: Fixes calculation for which tab to select on
12706         shift+ctrl+tab.
12707
12708 2007-05-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12709
12710         * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
12711
12712 2007-05-15  Jonathan Pobst  <monkey@jpobst.com>
12713
12714         * Control.cs: Make IsInputCharInternal to allow controls to
12715         override it and still match MS API.
12716         * TextBoxBase.cs: Override IsInputCharInternal and always
12717         return true.
12718         [Fixes bug #81616]
12719
12720 2007-05-15  Jackson Harper  <jackson@ximian.com>
12721
12722         * TextBox.cs: Disable some of the menu options when using a
12723         readonly textbox.
12724
12725 2007-05-15  Jackson Harper  <jackson@ximian.com>
12726
12727         * TextBox.cs:
12728         * TextBoxBase.cs:
12729         * RichTextBox.cs: Some new 2.0 methods
12730
12731 2007-05-15  Gert Driesen  <drieseng@users.sourceforge.net>
12732
12733         * FileDialog.cs: On 1.0 profile, do not support multidotted 
12734         extensions.
12735
12736 2007-05-14  Jackson Harper  <jackson@ximian.com>
12737
12738         * TextBoxBase.cs: Implement some of the new 2.0 methods.
12739         * RichTextBox.cs: We need to override these methods on 2.0.
12740         * MaskedTextBox.cs: These are implemented now
12741         * TextControl.cs: This was off by one.
12742
12743 2007-05-14  Jackson Harper  <jackson@ximian.com>
12744
12745         * TextControl.cs: Because the line endings are including in the
12746         text, we don't need to add them in anymore.
12747
12748 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
12749
12750         * ToolBar.cs: Fix autosize and get it working only after hadle is created,
12751         also prevent redraw in set_autosize if handle is not created. Fixes #81523.
12752
12753 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
12754
12755         * ToolBar.cs: Adjust size to default size when button theres no text and
12756         image, it fixes remaining issues from #81524.
12757
12758 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
12759
12760         * ToolBar.cs: 
12761         - When not flat call redraw to recalculate sizes on creare handle to match
12762         win32 behavior.
12763         - Revert 77220 because it causes some regressions in toobar
12764         button.
12765
12766 2007-05-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12767
12768         * MaskedTextBox.cs: Update the base text whenever the text changes. MTB
12769           now actually enters a usable state.
12770
12771 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
12772
12773         * ToolBar.cs: Check for handle created in redraw to prevent unneeded size
12774         calculations, it reduces the size cauculation from 7 to 3 on a toolbar with
12775         3 buttons.
12776
12777 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
12778
12779         * ToolBar.cs: Save default_size on create handle to use later for buttons
12780         without text, needed to mimic win32 behavior.
12781
12782 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
12783
12784         * ToolBar.cs: Fix button layour to best fit width or height according to
12785         vertical or not. Fixes #81524.
12786
12787 2007-05-10  Everaldo Canuto  <everaldo@simios.org>
12788
12789         * ToolBarButton.cs: When change style call ToolBar.Redraw to update
12790         toolbar size info because different styles theres different sizes.
12791         Fixes #81522.
12792
12793 2007-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12794
12795         * ThemeWinClassic.cs: For .Net 2.0 don't draw any image
12796         if we are using checkboxes, checked is true, and we have less
12797         than two images in StateImageList; for the 1.1 in the same scenario
12798         draw the first image if we have at least one image in StateImageList.
12799         Fixes part of #81191.
12800
12801 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
12802
12803         * ToolStrip.cs, ToolStripManager.cs: We need to remove items from
12804         the owner's Items collection on merge.
12805
12806 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
12807
12808         * ToolStrip.cs: Use new internal ToolStripItemCollection constructor.
12809         * ToolStripItemCollection.cs: Lots of fixes to when events get called
12810         and parent/owner gets changed based on gert's unit tests.
12811
12812 2007-05-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12813
12814         * MaskedTextBox.cs: Started implementing parts of it.
12815
12816 2007-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12817
12818         * ListView.cs: When clicking the checkbox on the items
12819         take into account the double clicks even if we have only
12820         one image in StateImageList (only for 1.0/1.1). Also 
12821         generate an extra change of checked state when we receive
12822         the second click on checkbox (match .Net behaviour). 
12823         Fixes part of #81191.
12824
12825 2007-05-10  Everaldo Canuto  <everaldo@simios.org>
12826
12827         * ThemeWin32Classic.cs: Fix text rectangles in Tooltips.
12828
12829 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
12830
12831         * Form.cs: Move some of OnLoad to OnLoadInternal so it gets called
12832         even if OnLoad is overriden and base.OnLoad is not called.
12833         [Fixes bug #81582]
12834
12835 2007-05-10  Andreia Gaita  <avidigal@novell.com>
12836
12837         * TableLayoutSettings.cs: A big doh! fix and bowing down of head in 
12838         shame. (I blame my ever-persisting and annoying cold)
12839
12840 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
12841
12842         * ListView.cs: Don't eat navigation keys.  Let them flow through to
12843         KeyDown/KeyPress routines.  [Fixes bug #81569]
12844
12845 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
12846
12847         * ListView.cs: When handling keys for selecting the item based off
12848         keyboard input, do not consider keys pressed with Alt or Control.  Also,
12849         correctly handle keys when the Shift key is down. [Fixes bug #81578]
12850
12851 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
12852
12853         * Control.cs: When using UseWaitCursor, we have to store the requested
12854         Cursor to use when UseWaitCursor is turned off.
12855
12856 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
12857
12858         * Control.cs: Implement PreProcessControlMessage.  Default IsInputChar
12859         to false.
12860         * Application.cs: Use PreProcessControlMessage instead of
12861         PreProcessMessage.
12862         * PreProcessControlMessage.cs: Make internal for 1.1.
12863
12864 2007-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12865
12866         * Control.cs: Add InternalContains focus property, which hast the same
12867         functionality of ContainsFocus, but also including implicit controls.
12868         * ListViewItem.cs: Use InternalContainsFocus instead of ContainsFocus,
12869         since we need to know if the focus is contained in our implicit
12870         ItemControl when calculating Layout. Fixes part of #80888.
12871
12872 2007-05-08  Everaldo Canuto  <everaldo@simios.org>
12873
12874         * ToolTip.cs: Remove center form string alignment as it must be align to
12875         left.
12876
12877 2007-05-08  Jonathan Pobst  <monkey@jpobst.com>
12878
12879         * ToolStripItemCollection.cs: Set the new item's parent and owner
12880         in Insert like we do in Add.  [Fixes bug #81568]
12881
12882 2007-05-08  Jackson Harper  <jackson@ximian.com>
12883
12884         * TreeView.cs: GotFocus differences between 1.1 and 2.0.
12885         - Off by one error in SetTop
12886         - Disable DoubeBuffering
12887         
12888 2007-05-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12889
12890         * ScrollableControl.cs: ScrollIControlntoView: we now only move the
12891           control as much as necessary in order to make it entirely visible,
12892           instead of centering the control in the container (matches MS
12893           behaviour). CalculateCanvasSize: we need to take the current scroll
12894           position into account when calculating the maximum canvas,
12895           otherwise the following scenario will fail: resize so that the
12896           scrollbars appear, use the scrollbars to scroll, resize again
12897           smaller, and now the canvas size is too small. Recalculate: when
12898           showing scrollbars make sure they start off at 0, and try to scroll
12899           the active control into view. Fixes #79540. HandleScrollBar: don't
12900           scroll anywhere if the scrollbar isn't visible.
12901
12902 2007-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12903
12904         * ListView.cs: When focus changed, call Layout/Invalidate
12905         in the focused item to update the selected state (should show
12906         entire label when ListView is focused, and a part of it if is not).
12907         * ListViewItem.cs: When doing layout for LargeIcon, take into account
12908         for displaying the entire label not only the Focused state of the
12909         item, but also the Focused state of the ListView (match .Net
12910         behaviour).
12911
12912 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
12913
12914         * Control.cs: Stub CanRaiseEvents, IsMirrored, and NotifyClients.
12915         Implement UseWaitCursor. 
12916
12917 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
12918         Applying contributed patch from Sergey Volk.
12919
12920         * Clipboard.cs: Implement SetDataObject retry logic and new overload
12921         of SetDataObject.
12922         * XplatUIWin32.cs: Throw an ExternalException if the clipboard set fails.
12923
12924 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
12925
12926         * Control.cs: Implement DrawToBitmap.
12927
12928 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
12929         Applying contributed patch from Stefan Noack.
12930         
12931         * Control.cs: Add [Get|Set]AutoSizeMode.
12932
12933 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
12934
12935         * MdiClient.cs: Unmerge menus when the last child is closed.
12936
12937 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
12938
12939         * ToolStrip.cs: Do not call BeginMerge on DropDowns.
12940         * ToolStripManager.cs: Call Merge on DropDowns.
12941         [Fixes bug #81477]
12942
12943 2007-05-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12944
12945         * XplatUIWin32.cs: Changed Win32CreateWindow to take enums instead of
12946           uints.
12947         * Form.cs: CreateParams: don't set WS_VISIBLE if we're changing
12948           visibility. We can't create forms visible, since we have to set the
12949           owner before making the form visible (otherwise Win32 will do
12950           strange things with task bar icons). The problem is that we set the
12951           internal is_visible to true before creating the control, so
12952           is_changing_visible_state is the only way of determining if we're
12953           in the process of creating the form due to setting Visible=true -
12954           this works because SetVisibleCore explicitly makes the form
12955           visibile afterwards anyways. Fixes #80775.
12956
12957 2007-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12958
12959         * ThemeWin32Classic.cs: When drawing ListViewItems,
12960         use StringTrimming.EllipsisCharacter if the view is Tile, Details,
12961         or LargeIcon _and_ item is not focused (match .Net behaviour).
12962
12963 2007-05-04  Jonathan Pobst  <monkey@jpobst.com>
12964
12965         * Control.cs, Form.cs: Fix some obsolete method warnings.
12966
12967 2007-05-04  Jonathan Pobst  <monkey@jpobst.com>
12968
12969         * Control.cs: Implement GetChildAtPoint and OnParentCursorChanged.
12970         * GetChildAtPointSkip.cs: Make internal for 1.1 profile.
12971
12972 2007-05-04  Andreia Gaita  <avidigal@novell.com>
12973
12974         * ContainerControl.cs: Fix active_control attribution when going
12975         up the parent chain so that the first parent container gets the control
12976         and the rest of the parent containers get the child containers (skips
12977         non-containers). Fixes #80729
12978
12979 2007-05-04  Randolph Chung  <tausq@debian.org>
12980
12981         * FileDialog.cs: Implement the SupportMultiDottedExtensions property.
12982         [Fixes bug #81499]
12983
12984 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12985
12986         * XplatUIX11.cs: Add a TranslateWindowSizeToXWindowSize overload that
12987           takes a size parameter, since the CreateParam's size isn't true for
12988           minimized forms. Fixes #81518,
12989
12990 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12991
12992         * Form.cs: Add OnDeactivateInternal.
12993         * MdiClient.cs: Raise Deactivate event. Fixes #81409.
12994
12995 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12996
12997         * DateTimePicker.cs: CalculateDropDownLocation: do a null check before
12998           accessing the parent. Fixes #81508.
12999
13000 2007-05-03  Chris Toshok  <toshok@ximian.com>
13001
13002         * CurrencyManager.cs (CurrencyManager.ListChangeHandler): in the
13003         2.0 block, pass listposition + 1 to ChangeRecordState when a row
13004         was added before the current listposition.  Fixes the
13005         TestInsertRowBeforeCurrent unit test.
13006
13007 2007-05-03  Jonathan Pobst  <monkey@jpobst.com>
13008
13009         * Application.cs: Add RaiseIdle.
13010         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
13011         XplatUIX11.cs: Implement RaiseIdle.
13012
13013 2007-05-02  Jonathan Pobst  <monkey@jpobst.com>
13014         corcompare work: N - Z
13015         * NotifyIcon.cs
13016         * ProgressBar.cs
13017         * RadionButton.cs
13018         * ScrollableControl.cs
13019         * SplitContainer.cs
13020         * SplitterPanel.cs
13021         * StatusBar.cs
13022         * SystemInformation.cs
13023         * TabControl.cs
13024         * TableLayoutControlCollection.cs
13025         * TableLayoutPanel.cs
13026         * TabPage.cs
13027         * ToolBar.cs
13028         * ToolBarButton.cs
13029         * ToolStrip.cs
13030         * ToolStripComboBox.cs
13031         * ToolStripContainer.cs
13032         * ToolStripContentPanel.cs
13033         * ToolStripDropDown.cs
13034         * ToolStripDropDownItem.cs
13035         * ToolStripDropDownMenu.cs
13036         * ToolStripItem.cs
13037         * ToolStripItemCollection.cs
13038         * ToolStripMenuItem.cs
13039         * ToolStripPanel.cs
13040         * ToolStripSplitButton.cs
13041         * ToolTip.cs
13042         * TreeNode.cs
13043         * TreeNodeCollection.cs
13044         * TreeNodeMouseHoverEventArgs.cs
13045         * TreeView.cs
13046
13047 2007-05-01  Everaldo Canuto  <everaldo@simios.org>
13048
13049         * ContextMenu.cs: Add public method Show with alignment property to 2.0
13050         stuff. Thanks aatdark for the patch. 
13051
13052 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
13053
13054         * GridItem.cs: Implement 2.0 Tag property.
13055
13056 2007-05-01  Frederik Carlier <frederik.carlier@carlier-online.be> 
13057
13058         * TreeNodeCollection.cs: Fix ContainsKey and IndexOfKey methods to use
13059         count instead of Nodes.Length.  [Fixes bug #81448]
13060
13061 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
13062
13063         * ComboBox.cs: Fix paramName sent to ArgumentOutOfRangeException's.
13064         [Fixes bug #81506]
13065
13066 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
13067         corcompare work: A - M
13068         * BindingNavigator.cs
13069         * Button.cs
13070         * ButtonBase.cs
13071         * CheckBox.cs
13072         * Control.cs
13073         * FlowLayoutPanel.cs
13074         * Form.cs
13075         * Label.cs
13076         * LinkLabel.cs
13077         * ListView.cs
13078
13079 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
13080
13081         * Application.cs: Give toolstrips a chance to process mnemonics.
13082         * ToolStrip.cs, ToolStripDropDownButton.cs, ToolStripItem.cs,
13083         ToolStripItemTextRenderEventArgs.cs, ToolStripLabel.cs,
13084         ToolStripMenuItem.cs, ToolStripSplitButton.cs: Implement keyboard mnemonics.
13085
13086 2007-05-01  Jackson Harper  <jackson@ximian.com>
13087
13088         * TextBoxBase.cs: Better preferred height, FixedSingle gets the
13089         wider area too.
13090         - Don't set the BoundsSpecified
13091
13092 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
13093
13094         * Application.cs: When using the toolstrip shortcut mechanism, allow the
13095         message to pass through to a regular control if it hosted by a toolstrip.
13096         * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
13097         ToolStripManager.cs: Enable keyboard navigation for ToolStrips.
13098
13099 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
13100
13101         * TextRenderer.cs: Use the flags argument when using the MeasureString
13102         fallback algorithm.
13103
13104 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
13105
13106         * MenuStrip.cs: Don't let multiple ToolStripSeparators get added to
13107         the MDI menu item.  [Fixes bug #81483]
13108
13109 2007-04-30  Gert Driesen  <drieseng@users.sourceforge.net>
13110
13111         * DataGridViewColumn.cs: Initialize value of headercell to zero-length
13112         string. When setting Name to null, use zero-length string instead.
13113
13114 2007-04-29  Andreia Gaita  <avidigal@novell.com>
13115
13116         * TabControl.cs: Implement missing 2.0 methods (SelectTab, 
13117         DeselectTab). Implement missing 2.0 TabPageCollection methods
13118         (Add, ContainsKey, RemoveByKey, IndexOfKey)
13119
13120 2007-04-29  Pedro Martínez Juliá  <pedromj@gmail.com>
13121
13122         * DataGridViewColumn.cs: Make HeaderText take preference over Name.
13123
13124 2007-04-29  Gert Driesen  <drieseng@users.sourceforge.net>
13125
13126         * RichTextBox.cs: In LoadFile, use StreamReader to read plain text.
13127         Fixes bug #81479. Include details of exception when LoadFile fails.
13128
13129 2007-04-28  Alan McGovern <alan.mcgovern@gmail.com>
13130
13131         * DrawListViewSubItemEventArgs.cs: Added missing setter
13132
13133 2007-04-27  Andreia Gaita  <avidigal@novell.com>
13134
13135         * ToolTip.cs: Add missing 2.0 properties. Implement 2.0 Show and 
13136         Hide methods (not complete). Implement missing 2.0 OnPopup event.
13137
13138 2007-04-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13139
13140         * ListView.cs: In ItemControl.OnMouseDown restore a pair of braces I
13141         removed in ly last commit (it was breaking the Label edit feature).
13142
13143         * ThemeWin32Classic.cs: When drawing a ListViewItem use
13144         StringAlignment.Near for LineAlignment (match .Net).
13145
13146 2007-04-27  Andreia Gaita  <avidigal@novell.com>
13147
13148         * TabControl.cs: Change SetTab so it adds the tabpage to the list
13149         of controls if it isn't already there - was blowing up when doing
13150         tabcontrol.TabPages[i]=new TabPage(). 
13151         SetTab now does a replace by removing the page at the index. 
13152         Add a new InsertTab method that inserts a page in a given index 
13153         instead of replacing. 
13154         Implements TabPageCollection.Insert(int, TabPage).
13155
13156 2007-04-27  Chris Toshok  <toshok@ximian.com>
13157
13158         * BindingManagerBase.cs: fill in CurrentItemChanged (and have an
13159         internal handler that can be invoked from our subclasses.)  Also,
13160         add a comment to PushData about how we need to fix it.
13161
13162         * CurrencyManager.cs: tons of changes here.  trying to get things
13163         matching the behavior of .net wrt event orders (ItemChanged,
13164         CurrentChanged, PositionChanged.)  I've implemented a private .net
13165         symbol (ChangeRecordState) that appears in stack traces because
13166         it's actually easier to do this than to effective inline all its
13167         various behaviors at every call site.
13168
13169         * RelatedPropertyManager.cs: guard against an exception here by
13170         not using parent.Current if the position is set to -1 (if the
13171         parent datasource is cleared, for instance).
13172
13173         * Binding.cs: don't parse data in PushData (this might be wrong,
13174         but it jives with MS's behavior.)  Also, don't call PushData when
13175         we get a CurrentChanged event.
13176
13177 2007-04-27  Andreia Gaita  <avidigal@novell.com>
13178
13179         * WebBrowser.cs,
13180           WebBrowserBase.cs,
13181           WebBrowserSiteBase.cs,
13182           HtmlDocument.cs: Added stubbed out classes, no real implementations 
13183           yet.
13184
13185 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
13186
13187         * MainMenu.cs: In draw method without parameters call draw method with 
13188         PaintEvent, another one (just rect) adjust rectangle and we dont need it
13189         as Rect property is already adjusted. Fixes #80694.
13190
13191 2007-04-27  Jonathan Pobst  <monkey@jpobst.com>
13192
13193         * Application.cs: Need to handle keyboard menu deselection here.
13194         * Control.cs: Use WM_SYSKEYUP instead of WM_SYSCOMMAND to start menu keyboard
13195         navigation, allowing keyboard to work on X11.
13196         * ToolStrip.cs: Don't worry about handling the Menu key here anymore.
13197
13198 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
13199
13200         * MenuAPI.cs: When deactivate menu verify if hotkey (_) is active and redraw
13201         menu bar. It fixes some drawing issues in menu bar.
13202
13203 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
13204
13205         * MenuAPI.cs: Remove unneeded "keynav_state = KeyNavState.Idle" before 
13206         Deactivate calls, Deactivate method already do it. Also ser ActiveTracker
13207         when <alt> key is pressed.
13208
13209 2007-04-26  Everaldo Canuto  <everaldo@simios.org>
13210
13211         * XplatUIX11.cs: Simplify SystrayRemove to be like other libraries,     Gtk as 
13212         example just set visible to false and make this prevent from other problems.
13213         In SystrayAdd always remove pending expose. Fixes #81072.
13214
13215 2007-04-26  Marek Safar  <marek.safar@gmail.com>
13216
13217         * TextBoxBase.cs (CaretMoved): Consider scroll maximum when scroll
13218         value is set.
13219
13220 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
13221
13222         * ListView.cs: Added three missing 2.0 events and corresponding
13223         EventHandlers. Added the OwnerDraw property.
13224         * DrawListViewColumnHeaderEventHandler.cs: fixed typo
13225
13226 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
13227
13228         * DrawListViewItemEventArgs.cs
13229         * DrawListViewSubItemEventArgs.cs: Brought classes up to 2.0 status.
13230
13231 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
13232
13233         * TextControl.cs: Fixed typo in constructor
13234
13235 2007-04-26  Jonathan Pobst  <monkey@jpobst.com>
13236
13237         * Application.cs: Create a shortcut path so that currently selected
13238         MenuStrips can intercept keyboard events without having focus.
13239         * Control.cs: Handle WM_SYSCOMMAND message to activate MenuStrips.
13240         * MenuStrip.cs, ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownItem.cs,
13241         ToolStripItem.cs, ToolStripManager.cs, ToolStripMenuItem.cs: Support
13242         keyboard navigation (arrows, tab, enter, esc) on Windows.  Still need to
13243         generate WM_SYSCOMMAND message in X11 for other platforms.
13244         * ToolStripProfessionalRenderer.cs: ToolStripMenuItems need to be painted
13245         in OnRenderMenuItemBackground instead of OnRenderButtonBackground.
13246         * ToolStripSplitButton.cs: Add DefaultItem property.
13247         
13248 2007-04-26  Everaldo Canuto  <everaldo@simios.org>
13249
13250         * MainMenu.cs: In OnMenuChanged pass PaintEventArgs to Draw method, it
13251         fixes some menu draw problem on Windows with border diferent from default
13252         it also fixes #81403.
13253
13254 2007-04-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13255
13256         * Form.cs: Refactor WndProc into separate methods, just like Control is
13257           doing it.
13258
13259 2007-04-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13260
13261         * Control.cs: set_Text: move the call to the driver into a seperate
13262           virtual method so that Form can override it.
13263         * MaskedTextBox.cs: Corcompare fixes.
13264         * Form.cs: Override UpdateWindowText and only update the styles if the
13265           form has been shown (fixes #81405).
13266
13267 2007-04-25  Jonathan Pobst  <monkey@jpobst.com>
13268
13269         * Control.cs, Form.cs: Use the better supported WM_?BUTTONDOWN and
13270         WM_ACTIVATE messages instead of WM_MOUSEACTIVATE and
13271         WM_ACTIVATEAPP.  This fixes menus not disappearing on X11 when
13272         the form lost focus or another control was clicked.
13273
13274 2007-04-25  Gert Driesen  <drieseng@users.sourceforge.net>
13275
13276         * DataGrid.cs: Uncomment MakeTransparent calls since bug #80151 is
13277         fixed.
13278
13279 2007-04-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13280
13281         * DrawListViewColumnHeaderEventHandler.cs, DrawToolTipEventArgs.cs,
13282           DrawListViewItemEventHandler.cs,
13283           DrawListViewSubItemEventHandler.cs, DrawToolTipEventHandler.cs:
13284           Added.
13285         * X11Structs.cs: More ToString implementation.
13286
13287 2007-04-25  Jonathan Pobst  <monkey@jpobst.com>
13288
13289         * ToolStripDropDownItem.cs: Don't lazy create a DropDown in Dispose.
13290         * ToolStripOverflowButton.cs: Don't lazy create a DropDown in HasDropDownItems.
13291
13292 2007-04-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13293
13294         * Control.cs: Only raise OnVisibleChanged if we're not recreating the
13295           handle.
13296         * FormCollection.cs: Don't add a form if it's already in the
13297           collection.
13298         * Form.cs: Change ShowDialog () to call ShowDialog (owner) with a null
13299           according to behaviour and MSDN. The ownerWin32 is the active
13300           window at the moment when we call ShowDialog, not the context's
13301           main form (the context's main form may open another form that opens
13302           a form with ShowDialog, the win32 owner is the second form). Add
13303           and remove forms to the Application.OpenForms in other places to
13304           better match MS behaviour. Add an IsActive property that raises
13305           On(de)Activated only if the active state has changed (we were
13306           raising OnDeactivated before OnActivated while creating forms).
13307         * Application.cs: Refactor Enabling/Disabling of windows for modal
13308           dialog loops out to separate methods, and restore the thread
13309           context when we quit the method. Fixes #81407.
13310
13311 2007-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13312
13313         * ListView.cs: In ItemControl.HandleClicks, also fire 
13314         2.0 MouseClick or MouseDoubleClick events on the parent,
13315         not only the Click/DoubleClick events.
13316
13317 2007-04-24  Andreia Gaita  <avidigal@novell.com>
13318
13319         * TableLayoutSettings.cs: 
13320         - Added a GetControls method and a support structure to help the 
13321         TypeConverter to enumerate the controls for     serialization. 
13322         - Added a new serialization constructor. 
13323         - Added a isSerialized flag initialized to true on the 
13324         serialization constructor so that the TableLayoutPanel.LayoutSettings 
13325         setter does not throw the designed NotSupportedOperation exception
13326         when the object is built through deserialization.
13327         - Implemented GetObjectData
13328         
13329         * TableLayoutPanel.cs: Added check on LayoutSettings.
13330
13331 2007-04-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13332
13333         * ListView.cs: Report Click and DoubleClick events to the parent
13334         from ItemsMouseUp, instead of ItemsMouseDown. This prevents us
13335         from breaking the click count state when using dialog forms (Control
13336         reports the clicks in a similar fashion). In the previous behaviour
13337         the last WM_LBUTTONUP message in a  double click was sent to the
13338         ListView's form, instead of the ListView, which was breaking the click
13339         count for it. Fixes #80387.
13340
13341 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
13342
13343         * BindingNavigator.cs : fixed bugs revealed by new nunit tests
13344
13345 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
13346
13347         * ToolStripDropDownItem.cs: Lazy initialize the DropDown.  This prevents
13348         us from created dropdowns for menu items that do not have subitems.
13349         * ToolStripItem.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs:
13350         Check HasDropDownItems before calling DropDown so a dropdown will not be
13351         created if it isn't needed.
13352
13353 2007-04-24  Jackson Harper  <jackson@ximian.com>
13354
13355         * TreeView.cs: Set the first node to the selected node when we get
13356         focus if there is no selected node.
13357
13358 2007-04-24  Andreia Gaita  <avidigal@novell.com>
13359
13360         * MimeIcon.cs: remove using blocks so that image streams are
13361         not disposed of. Fixes #80151
13362
13363 2007-04-24  Jackson Harper  <jackson@ximian.com>
13364
13365         * TextBoxBase.cs: Fixup the height of textboxes when the control
13366         is created.
13367
13368 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
13369
13370         * ToolStrip.cs: Fully implement GetNextItem.  Call OnParentRightToLeftChanged
13371         for each ToolStripItem when the parent's RightToLeftChanged is called.
13372
13373 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13374
13375         * ComboBox.cs: Forward ContextMenu to the underlying textbox, if any.
13376           Fixes #80163.
13377         * Control.cs: Replace GetContextMenuInternal() with ContextMenuInternal
13378           property, so that the setter can be overriden too.
13379         * TextBox.cs: Change GetContextMenuInternal() to use
13380           ContextMenuInternal.
13381
13382 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13383
13384         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
13385           #81406.
13386
13387 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13388
13389         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
13390           #81406.
13391
13392 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13393
13394         * MaskedTextBox.cs: Commit this so nobody else starts working on it and
13395           avoid duplicate work. Mostily skeleton code, it's not working at
13396           all yet.
13397
13398 2007-04-20  Leszek Ciesielski <skolima@gmail.com>
13399
13400         * NotifyIcon.cs : stub for MouseClick event
13401         * Application.cs: stub for SetUnhandledExceptionMode
13402
13403 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
13404
13405         * BindingNavigator.cs : Initial (partial) implementation
13406
13407 2007-04-23  Jackson Harper  <jackson@ximian.com>
13408
13409         * TreeView.cs: Do not create the treeview's handle when setting
13410         the scroll position.
13411         - ExpandAll needs to compute the scrollbars so it knows which
13412         position to set the bar too.
13413         * TreeNode.cs: 
13414         * TreeNodeCollection.cs: Pass new flag to UpdateScrollBars
13415
13416 2007-04-23  Jackson Harper  <jackson@ximian.com>
13417
13418         * TextBoxBase.cs: Non multiline textboxes shouldn't take the enter
13419         key. Fixes #81408.
13420
13421 2007-04-23  Jonathan Pobst  <monkey@jpobst.com>
13422
13423         * ToolStripItem.cs: Make GetImageSize internal.
13424         * ToolStripMenuItem.cs: Use GetImageSize to determine the size we
13425         need to draw an item.  Fixes a reported issue where images on menus
13426         that were not 16x16 were drawing incorrectly.
13427
13428 2007-04-21  Miguel de Icaza  <miguel@novell.com>
13429
13430         * Padding.cs: Use the converter, fixes the resgen2 issue with
13431         XMLNotePad. 
13432
13433 2007-04-21  Jackson Harper  <jackson@ximian.com>
13434
13435         * TreeView.cs: Dont try to unhighlight the selected node if there
13436         isn't a selected node.
13437
13438 2007-04-21  Jackson Harper  <jackson@ximian.com>
13439
13440         * UpDownBase.cs:
13441         * TextBoxBase.cs:
13442         * ListView.cs:
13443         * ListBox.cs:
13444         * TreeView.cs: Use the InternalBorderStyle property to set the
13445         initial border style, this forces the client rectangle to be sized
13446         correctly.
13447
13448 2007-04-20  Jackson Harper  <jackson@ximian.com>
13449
13450         * TreeView.cs: Simplify scrolling to the last node after expanding
13451         all.
13452         - Fix some off by ones with setting the bottom.
13453
13454 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
13455
13456         * Control.cs: Use DefaultSize for Size, calculate ClientSize from
13457         that.  We were incorrectly doing it the other way around.  Also,
13458         update ClientSize if we change the BorderStyle before the control
13459         is created.
13460
13461 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
13462
13463         * XplatUI.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
13464         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
13465         XplatUIDriver.Caption to CaptionHeight. Spaces to tabs.
13466         * XplatUIDriver.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
13467         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
13468         Caption to CaptionHeight.
13469         * XplatUIX11.cs: Renamed Caption to CaptionHeight.
13470         * Theme.cs: Modified Border3DSize, BorderSize, CaptionButtonSize
13471         and FixedFrameBorderSize to return value from current XplatUI driver.
13472         * XplatUIWin32.cs: Implemented Border3DSize, BorderSize,
13473         CaptionButtonSize, DragFullWindows, DoubleClickSize, DoubleClickTime
13474         and FixedFrameBorderSize using win32 API. Renamed Caption to
13475         CaptionHeight.
13476         * XplatUIOSX.cs: Renamed Caption to CaptionHeight.
13477         * SystemInformation.cs: Fixed typo in BorderSize.
13478
13479 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
13480
13481         * XplatUI.cs: Added MenuAccessKeysUnderlined.
13482         * XplatUIDriver.cs: Added MenuAccessKeysUnderlined.
13483         * XplatUIX11.cs: Implemented MenuAccessKeysUnderlined by always
13484         returning false.
13485         * Theme.cs: Modified MenuAccessKeysUnderlined to return corresponding
13486         value from XplatUI driver.
13487         * XplatUIWin32.cs: Implemented MenuAccessKeysUnderlined using
13488         SystemParametersInfo.
13489         * ThemeWin32Classic.cs: Remove obsolete MenuAccessKeysUnderlined
13490         override.
13491         * XplatUIOSX.cs: Implemented MenuAccessKeysUnderlind by always
13492         returning false.
13493
13494 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13495
13496         * XplatUIX11.cs, Hwnd.cs: Remove warnings.
13497
13498 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13499
13500         * MessageBox.cs, XplatUIX11.cs, Hwnd.cs: Remove warnings.
13501
13502 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
13503
13504         * ToolStripManager.cs: Fix a reported InvalidCastException when unmerging
13505         MenuStrips that contain ToolStripSeparators.
13506
13507 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13508
13509         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Add
13510           DefineStdCursorBitmap.
13511         * Cursor.cs: Add an internal constructor so that the Cursor knows if it
13512           has been created off a standard cursor. This is used to get a
13513           bitmap of the standard cursor when Draw or DrawStretched is called
13514           in order to draw the cursor.
13515         * X11Structs.cs: Added XcursorImage and XcursorImages.
13516         * XplatUIX11.cs, XplatUIWin32.cs: Add and implement
13517           DefineStdCursorBitmap.
13518         * Cursors.cs: Update all relevant creations of Cursor to use the new
13519           internal constructor.
13520
13521 2007-04-19  Jackson Harper  <jackson@ximian.com>
13522
13523         * TextBox.cs: Move the has_been_focused into the base control, so
13524         some of the text adding methods can manipulate it (probably time
13525         for a better name for this flag too).
13526         - Call a new version of selectall that doesn't scroll
13527         * TextBoxBase.cs: When we append text, if the document is empty,
13528         don't scroll.  If the document has text already, we scroll to the
13529         end of the appended text.
13530         - When the text is changed, we reset the has_been_focused, so the
13531         next time the control gets focused, all the text is selected.
13532
13533 2007-04-19  Jackson Harper  <jackson@ximian.com>
13534
13535         * TextControl.cs: Move the margins to the document, add a method
13536         so the margin sizes can be updated.
13537         * TextBoxBase.cs: When the border style is changed, update the
13538         border sizes.
13539
13540 2007-04-19  Jonathan Pobst  <monkey@jpobst.com>
13541
13542         * Control.cs: Respect DefaultPadding.
13543         * GroupBox.cs: Implement DefaultPadding, DisplayRectangle takes
13544         padding into account.
13545         * ToolStrip.cs: Remove setting padding to DefaultPadding in constructor.        
13546
13547 2007-04-19  Jackson Harper  <jackson@ximian.com>
13548
13549         * TextControl.cs: Oops, we need to use the ClientRect not the
13550         bounds here.
13551
13552 2007-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13553
13554         * ListView.cs: In ItemControl.ItemsMouseDown, take into
13555         account the double clicks when CheckBoxes are used and
13556         the pointer is inside the checkbox. Fixes part of #81191.
13557
13558 2007-04-18  Jackson Harper  <jackson@ximian.com>
13559
13560         * TextControl.cs: Pressing the end key shouldn't move the caret
13561         past the line ending.
13562         * TextBoxBase.cs: We can still delete if we are in the line
13563         ending and the combine will just kill the existing line ending.
13564
13565 2007-04-18  Jackson Harper  <jackson@ximian.com>
13566
13567         * TextControl.cs: We can't move lines, then invalidate their
13568         bounds, we need to get the old bounds and combine that with the
13569         new bounds.
13570         * TextBoxBase.cs: Before combining two lines for a delete, we need
13571         to invalidate the area of the old line, since that will be moved
13572         in the combine operation.
13573
13574 2007-04-18  Everaldo Canuto  <everaldo@simios.org>
13575
13576         * LinkLabel.cs: In OnPaint invoke draw background to fix problems
13577         with transparent background. Fixes #80482.
13578
13579 2007-04-18  Jonathan Pobst  <monkey@jpobst.com>
13580
13581         * PictureBox.cs: Refresh on resize when SizeMode = Zoom.
13582         * ThemeWin32Classic.cs: Implement PictureBox.SizeMode = Zoom.
13583         [Fixes bug #81391]
13584
13585 2007-04-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13586
13587         * CreateParams.cs: Add a couple of helper methods and do a less string
13588           concatenation in ToString.
13589         * XplatUIX11.cs: Add an TranslateClientRectangleToXClientRectangle
13590           overload that takes a Control parameter, since this method may be
13591           called before a control is assigned to the hwnd (from
13592           CreateWindow), and update CreateWindow to use the new overload. In
13593           GetMenuOrigin subtract the title bar from the y position if the
13594           form has a window manager (since we're painting it and not X).
13595         * XplatUIWin32.cs: If we can get a form in GetMenuOrigin use the form's
13596           CreateParams to calculate the origin (since border sizes may vary).
13597           In ScreenToMenu only subtract the title height if we actually have
13598           a title.
13599         * MdiWindowManager.cs: Override MenuHeight to always return 0, since
13600           mdi children never have menus of themselves.
13601         * InternalWindowManager.cs: Implement menu handling like form does.
13602           Added GetMenuOrigin to calculate the menu origin, can't use the
13603           CreateParams from the form like normally since it's lying.
13604         * Hwnd.cs: Implement GetBorderSize better (in the sense more
13605           windows-like) and add Inflate and comparison operators to the
13606           Borders type. When calculating MenuOrigin and it's a form with a
13607           window manager, use the window manager to calculate it.
13608
13609 2007-04-17  Chris Toshok  <toshok@ximian.com>
13610
13611         * Control.cs (CreateControl): turns out in 2.0 we don't need this
13612         OnBindingContextChanged thing here.  It's only generated from
13613         ContainerControl.OnCreateControl.  Fixes a newly written unit test
13614         - BindingTest.BindingContextChangedTest4.
13615         
13616 2007-04-17  Jackson Harper  <jackson@ximian.com>
13617
13618         * ScrollBar.cs: When setting values, make sure the current
13619         position stays within the new values range.
13620
13621 2007-04-17  Chris Toshok  <toshok@ximian.com>
13622
13623         * Control.cs (CreateControl): talk about a bizarre corner case.
13624         Don't emit OnBindingContextChanged here if we're a parentless
13625         control (i.e. if we're a form.).  Fixes
13626         BindingTest.BindingContextChangedTest2.
13627
13628 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
13629
13630         * ButtonBase.cs: Remove TextFormatFlags.WordBreak to mimic same behavior 
13631         from win32. Fixes #81255.
13632
13633 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
13634
13635         * ThemeWin32Classic.cs: Remove text offset from DrawButtonText as it is
13636         already present in CalculateButtonTextAndImageLayout.
13637
13638 2007-04-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13639
13640         * XplatUIX11.cs: When setting min/max size for a window we need to
13641           translate the coordinates to x coordinates. Create an overload of
13642           SetWindowMinMax that takes a CreateParams handling this, and change
13643           SetWMStyles to call this function (can't use Control.FromHandle in
13644           the SetWindowMinMax to get the control/CreateParams from the handle
13645           because the handle might not have been assigned to the control
13646           yet). Fixes #81371.
13647
13648 2007-04-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13649
13650         * ListView.cs: In ItemControl.ItemMouseDown, don't change check state
13651         if StateImageList is non-null and it has less than two items (match MS
13652         behaviour). Also, in HandleNavKeys handle the Space key, calling
13653         the new ToggleItemsCheckState method, which tries to change the
13654         checked state of the selected items. Fixes part of #81191.
13655
13656 2007-04-16  Jackson Harper  <jackson@ximian.com>
13657
13658         * RichTextBox.cs: namespace cleanup.
13659
13660 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
13661
13662         * XplatUIWin32.cs: Back last parameter to true in SetClipRegion.
13663
13664 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
13665
13666         [Fixes #79447]
13667         * Control.cs: Call invalidate in set_Region.
13668
13669         * XplatUIX11.cs, XplatUIWin32.cs: Remove invalidate from SetClipRegion as
13670         it dont works here.
13671
13672 2007-04-16  Jackson Harper  <jackson@ximian.com>
13673
13674         * TextBoxBase.cs: When enter is pressed, we need to update all
13675         lines below the current.
13676
13677 2007-04-16  Jonathan Pobst  <jpobst@monkey.com>
13678
13679         * MdiClient.cs: Implement implicit menu merging for MDI
13680         children.  When a child form is active, if it has a menustrip
13681         and the parent form has a MainMenuStrip, automatically merge
13682         the menus.
13683
13684 2007-04-15  Andreia Gaita  <avidigal@novell.com>
13685
13686         * TabControl.cs: Refactored sizing methods to not repeat
13687         code all over the place. Tab bounds are now calculated
13688         as if alignment is top and single line, and only when 
13689         setting the bounds are the positions adjusted according
13690         to alignment. Replaced hardcoded positions, spacings and
13691         paddings by getting the values the ThemeEngine. 
13692         Fixes #79619.
13693         
13694         * Theme.cs: Change TabControl properties and methods so
13695         that all start with TabControl*. Added more properties
13696         to help remove hardcoded values on tabcontrol.
13697         Add CPDrawBorder3D declaration so the Theming classes
13698         can access it.
13699         
13700         * ThemeClearlooks.cs, ThemeNice.cs: Method signature changes from Theme.
13701
13702         * ThemeWin32Classic.cs: Rector TabControl out to the TabControlPainter
13703         on the Theming namespace, and call the appropriate methods here.
13704         Change CPDrawBorder3D to public.
13705
13706 2007-04-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13707
13708         * Control.cs: In WmRButtonUp, send the WM_CONTEXTMENU message to
13709         the control after firing the OnMouseUp event, instead of sending
13710         the message before the mentioned event. This is so we can match the
13711         MS behaviour. Fixes part of #80385.
13712
13713 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
13714
13715         * ToolStripItem.cs: Call the RightToLeftChanged event when setting the
13716         RightToLeft property.
13717
13718 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
13719
13720         * ToolStrip.cs: Add properties and internal methods to support merging.
13721         * ToolStripItem.cs: Add MergeAction and MergeIndex.
13722         * ToolStripItemCollection.cs: Add Insert and Remove methods that do
13723         not trigger reparenting or layouts.
13724         * ToolStripManager.cs: Add Merge and RevertMerge methods.
13725         * ToolStripOverflow.cs: Add a convenience method to find the ToolStrip that
13726         is hosting the overflow menu.
13727
13728 2007-04-13  Jackson Harper  <jackson@ximian.com>
13729
13730         * TextControl.cs: Set the line ending correctly for the first
13731         inserted line.
13732
13733 2007-04-13  Sebastien Pouliot  <sebastien@ximian.com>
13734
13735         * Theme.cs: Update GetMethod to get the new definition for 
13736         KnownColors.Update (and fix theme color updates).
13737
13738 2007-04-12  Everaldo Canuto  <everaldo@simios.org>
13739
13740         * MessageBox.cs: Fix some test and button position.
13741
13742 2007-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13743
13744         * Form.cs: Consider the implicit controls in
13745         GetRealChildAtPoint. We need it since this method
13746         is called on Form when handling the some messages in
13747         WndProc, and need to consider those implicit ones too.
13748         Fixes #80385.
13749
13750 2007-04-12  Jonathan Pobst  <monkey@jpobst.com>
13751
13752         * ToolStripMenuItem.cs: Display the ShortcutKeyDisplayString even
13753         if there are no ShortcutKeys set.
13754         * ToolStripProfessionalRenderer.cs: If an item has had its BackColor
13755         set, use it when painting.
13756
13757 2007-04-12  Jackson Harper  <jackson@ximian.com>
13758
13759         * TextControl.cs: Fix some off-by-one issues in line duplication
13760         and insertion in the undo manager. Also, overwrite the first tag
13761         of a line on insert, if it is just a zero lengthed tag. This
13762         prevents us from getting an extra stranded tag at the beginning of
13763         the first line.
13764
13765 2007-04-11  Everaldo Canuto  <everaldo@simios.org>
13766
13767         * Label.cs: Remove check for handle created in CalcAutoSize, we need 
13768         to calculated proper size including when handle was not created yet.
13769
13770 2007-04-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13771
13772         * MdiWindowManager.cs: When moving a form, allow the form to be moved
13773           when the mouse is outside of it's parent's client rectangle. Fixes
13774           #79982 (take 3, part 2).
13775
13776 2007-04-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13777
13778         * X11Structs.cs: Add a few ToString() overrides.
13779         * XplatUIX11.cs: Added GetTopLevelWindowLocation to try to calculate
13780           the window location in a window-manager independent way. Reworked
13781           FrameExtents, it now actually works. Reworked AddConfigureNotify
13782           and ReparentNotify handling to use GetTopLevelWindowLocation
13783           instead of the earlier, more hacky solution. Reworked SetWMStyles,
13784           hopefully for the better: we now set _NET_WM_WINDOW_TYPE* for all
13785           windows, DIALOG for modal windows, UTILITY for toolboxes and NORMAL
13786           for all other windows (fixes #81281 part 1), a toolwindow is hidden
13787           from the taskbar if it has a parent (fixes #81281 part 2 for kwin),
13788           and generally refactored to do as few calculations as possible
13789           inside the lock.
13790
13791 2007-04-09  Sebastien Pouliot  <sebastien@ximian.com>
13792
13793         * Theme.cs: Change "reflective-contract" between MWF and SD to 
13794         minimize # of calls, avoid Color serialization and avoid updating 
13795         every "known colors" each time a single one is updated.
13796
13797 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
13798
13799         * DataGridTextBoxColumn.cs: Only set IsInEditOrNavigateMode to false
13800         when not readonly and the text is explicitly set. Code style updates.
13801         * DataGridTableStyle.cs: Removed extra line.
13802         * DataGrid.cs: Code style updates. Removed extra whitespace.
13803         * DataGridColumnStyle.cs: Code style updates. Removed extra 
13804         whitespace.
13805
13806 2007-04-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13807
13808         * XplatUIX11.cs: Added comment that "fixes" #80021.
13809
13810 2007-04-09  Jackson Harper  <jackson@ximian.com>
13811
13812         * TextControl.cs: We don't need this -1 on the line count anymore.
13813
13814 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
13815
13816         * DataGridTextBoxColumn.cs: In Commit, use TypeConverter to convert
13817         entered value to underlying type, and convert it back to a string to
13818         apply formatting. Modified GetFormattedValue to use TypeConverter
13819         if available.
13820
13821 2007-04-08  Gert Driesen  <drieseng@users.sourceforge.net>
13822
13823         * ListViewItem.cs: Added null checks. Avoid duplicating code in ctors.
13824         Use SubItems property when we want to ensure there's at least one
13825         subitem. Modified SubItems property to ensure there's always at least
13826         one subitem. Avoid using ListViewSubItemCollection.AddRange to match
13827         the NRE's reported by MS.
13828
13829 2007-04-07  Gert Driesen  <drieseng@users.sourceforge.net>
13830
13831         * ProgressBar.cs: On 2.0 profile, default forecolor is Highlight. Added
13832         ResetForeColor override on 2.0. Fixed a few API compatibility issues.
13833         Spaces to tabs. Removed extra tabs.
13834
13835 2007-04-06  Jonathan Pobst  <monkey@jpobst.com>
13836
13837         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
13838         infinite loop.  (Forgot to copy to the horizontal toolstrip case.)
13839
13840 2007-04-06  Jackson Harper  <jackson@ximian.com>
13841
13842         * TextBoxBase.cs: When a delete removes a line, recalculate all
13843         lines below that line (they need to get offsets setup correctly)
13844         and invalidate.
13845
13846 2007-04-05  Jackson Harper  <jackson@ximian.com>
13847
13848         * TextControl.cs: We need to invalidate across the width of the
13849         document when we are invalidating multiple lines.
13850         * TextBoxBase.cs: Don't delete into the line ending.
13851
13852 2007-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13853
13854         * ListView.cs: Restore the check for the MouseHover event
13855         in ListView. It looks like the ListView fires more than one MouseHover
13856         event when HoverSelection is true  _only_ in weird-corner scenarios, but
13857         in most of the cases it only fires one. Also, add the 2.0 ItemMouseHover
13858         event.
13859
13860 2007-04-05  Mike Kestner  <mkestner@novell.com>
13861
13862         * ListView.cs : raise MouseDown before updating selection.
13863         [Fixes #80373 tab 1&3]
13864
13865 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
13866
13867         * ToolStripRenderer.cs: Add static method to mirror image.
13868         * ToolStripProfessionalRenderer.cs: Support ImageTransparentColor
13869         and RightToLeftAutoMirrorImage.
13870         * ToolStripItem.cs: Remove MonoTODO from ImageTransparentColor.
13871
13872 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
13873
13874         * ToolStripSplitStackLayout.cs: Support Alignment property.
13875         * ToolStripItem.cs: Remove MonoTODO from the Alignment property.
13876
13877 2007-04-05  Jackson Harper  <jackson@ximian.com>
13878
13879         * TextControl.cs: Move around the line endings when crossing line
13880         boundaries.
13881         - When combining lines, strip the ending text off the first line.
13882
13883 2007-04-05  Jackson Harper  <jackson@ximian.com>
13884
13885         * TextControl.cs:
13886         * TextBoxBase.cs: Try to never move the cursor into the line
13887         ending.
13888         
13889 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
13890
13891         * ToolStripItem.cs: Make sure we aren't firing mouse events when
13892         the item is disabled.  Also add a few missing methods.
13893
13894 2007-04-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13895
13896         * ListView.cs: We don't need the MouseEnter/MouseLeave check
13897         to fire just one MouseHover event when HoverSelection is true, since
13898         .Net does fire more than one MouseHover event in that scenario. Also,
13899         fix the selection in HoverSelection, by invoking UpdateMultiSelect
13900         if MultiSelect is true, instead of only setting ListViewItem.Selected.
13901         Finally, we need to reset the Hover logic in MouseMove, even when we
13902         don't have a selected item.
13903
13904 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
13905
13906         * ToolStrip.cs: Add several missing methods, properties, and events.
13907
13908 2007-04-04  Chris Toshok  <toshok@ximian.com>
13909
13910         * DataGridTextBoxColumn.cs: set the bounds of the text box to
13911         (0,0,0,0) in Commit, as MS does.
13912
13913         * DataGrid.cs: call EndEdit() from Select() as microsoft does, and
13914         make sure we set CurrentRow on a row header click *before* calling
13915         Select.  This moves the current cell (and the textbox) to the new
13916         row.  The call to Select then hides the textbox, giving us the
13917         correct behavior.  Fixes #80362.
13918
13919         * CurrencyManager.cs (UpdateIsBinding): raise ItemChanged (-1).
13920         (ListChangedHandler): reorder the position/current changed events,
13921         and call UpdateIsBinding in the ItemAdded case.
13922
13923         * GridColumnStylesCollection.cs: add some columns events, one of
13924         which raises the CollectionChanged event.
13925
13926 2007-04-04  Jackson Harper  <jackson@ximian.com>
13927
13928         * TextControl.cs: When we delete multiple selection lines
13929         invalidate the selection area, don't need to do that for single
13930         lines because the final update view will handle it.
13931
13932 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
13933
13934         * Control.cs: When we CreateControl, we need to also create all of the
13935         control's children.  The child's OnLoad must also fire before the parent's
13936         OnLoad.  Fixes the toolbox size in PDN.
13937
13938 2007-04-04  Jackson Harper  <jackson@ximian.com>
13939
13940         * TextBoxBase.cs: When the user presses enter, insert a line
13941         ending into the text. (Maybe this would be a good spot for
13942         Environment.NewLine).
13943         * TextControl.cs: Remove undo manager hack, line endings get
13944         inserted properly now.
13945         
13946 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
13947
13948         * MenuAPI.cs: 
13949         - Remove unneeded parameters in UpdateCursor.
13950         - Fix UpdateCursor to check if menu is active.
13951         - Call UpdateCursor when menu deactivate my click.
13952         [Fixes remaining issues from #80410]
13953
13954 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
13955
13956         * Control.cs: GetRealChildAtPoint method added, it make an
13957         recursive child control search for the point. 
13958
13959         * Form.cs: Makes use of GetRealChildAtPoint in mouse event after closes
13960         menu.
13961
13962         * MenuAPI.cs: Makes use of GetRealChildAtPoint in UpdateCursor.
13963
13964 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
13965
13966         * Form.cs: Fix mouse position when send back mouse event after closes
13967         menu.
13968
13969 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
13970
13971         * Form.cs: Simplify the BUTTONDOWN for active tracker.
13972
13973 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
13974
13975         * Control.cs: Fix an issue where if a user resized a control inside
13976         a sizing method like OnResize, we would overwrite their explicit
13977         value.  Also, only call DefaultSize once in the constructor instead
13978         of 4 times.  Also, do not call SetBoundsCore from SetBounds if 
13979         nothing actually changed.
13980
13981 2007-04-03  Jackson Harper  <jackson@ximian.com>
13982
13983         * TextControl.cs: Don't attempt to copy text for lines with no
13984         text in them (technically this shouldn't happen, but we aren't
13985         always inserting line endings when we should be).
13986
13987 2007-04-03  Jackson Harper  <jackson@ximian.com>
13988
13989         * TextBoxBase.cs: Calculate the scrollbars before calculating the
13990         document, because this sets some of the document size properties
13991         that are needed.
13992
13993 2007-04-03  Jackson Harper  <jackson@ximian.com>
13994
13995         * TextBoxBase.cs: We need to calculate maximums even if this is
13996         not a multiline control, because the maxs are used for scrolling.
13997         - Display the caret after doing a page up/down, we need to
13998         manually display it because a proper CaretMoved event isn't
13999         triggered (this is because of the way the math is done to
14000         determine how far to scroll).
14001
14002 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
14003
14004         * ToolBar.cs: Fix some breakage caused by the SetBoundsCore change.
14005         (ToolBar was relying on SetBoundsCore to default the values sent 
14006         base off of BoundsSpecified.)
14007
14008 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14009
14010         * DateTimePicker.cs: Change Text so that when a null value or empty
14011           string is assigned to the test we always raise ValueChanged and
14012           TextChanged (earlier implementation would only raise ValueChanged
14013           if the current date value was different from DateTime.Now).
14014
14015 2007-04-03  Andreia Gaita <avidigal@novell.com> 
14016
14017         * ButtonBase: Call update after invalidation, fixes #80194
14018
14019 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14020
14021         * ThemeWin32Classic.cs: Draw StatusBar using double buffering. Fixes
14022           #79335.
14023
14024 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14025
14026         * XplatUIX11.cs: SetWMStyles: If the control is a form with
14027           FormBorderStyle = None, don't give the window any decorations.
14028           Fixes #81276.
14029
14030 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14031
14032         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
14033         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style
14034           to check for is a mix of several styles (such as WS_CAPTION for
14035           instance).
14036         * Control.cs: Don't paint an area bigger than the client area when
14037           painting the background colour. Add an internal GetCreateParams.
14038           Update calls to XplatUI.CalculateWindowRect due to API change.
14039         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole
14040           window's size, and handle WM_NCCALCSIZE in DefWndProc to calculate
14041           the size if it hasn't been handled by any windows. When creating
14042           and moving windows, X wants the location of the entire window, but
14043           the size of the client window, so add
14044           TranslateClientRectangleToXClientRectangle,
14045           TranslateWindowSizeToXWindowSIze and
14046           TranslatedXWindowSizeToWindowSize to cope with this, and call them
14047           before every window creation and move. Update CalculateWIndowRect
14048           to use Hwnd.GetWindowRect (one step towards removing DeriveStyles).
14049           In AddConfigureNotify don't do anything if the hwnd is a zombie
14050           (fixes the BadWindow we were getting while running the tests),
14051           always calculate the offsets when it's a parentless window, not
14052           only when reparented, and translate the window size, since we're
14053           getting the client size of the whole window, excluding entire
14054           window.
14055         * Theme.cs: Added BorderSizableSize.
14056         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
14057           anymore. Update calls to XplatUI.CalculateWindowRect due to API
14058           chang
14059         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API
14060           change. Fake the window styles here instead of in XplatUIWin32 so
14061           that all back-ends get the same window styles (and it's Form that's
14062           deciding when to use wm, not the Win32 backend anyways)
14063         * Hwnd.cs: Completely reworked GetWindowRectangle and
14064           GetClientRectangle - they are now passed a CreateParams and they
14065           only use Style and ExStyle to determine the rectangles (they should
14066           now work just like Win32AdjustWindowRectEx - though quite a few
14067           special cases are probably missing). They should also be 100%
14068           complimentary (i.e. GetWindowRectangle (GetClientRectangle (rect))
14069           == rect), and all numbers (borders, menu sizes) are taken from the
14070           current theme. Added a GetBorders helper function that will return
14071           the borders for any given CreateParams (including captions and
14072           menus), and GetBorderSize that returns the given border size only.
14073         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
14074           Hwnd.GetClientRectangle.
14075
14076 2007-04-02  Chris Toshok  <toshok@ximian.com>
14077
14078         * DataGridBoolColumn.cs: rewrite things a bit, and fix up the
14079         logic between the values we present to the user and the values
14080         which are stored in the column's property.  Also, don't call
14081         GetPreferredSize - it's virtual. Along the way, fix bug #80965.
14082
14083 2007-04-02  Jackson Harper  <jackson@ximian.com>
14084
14085         * TextBoxBase.cs: Scroll faster!
14086
14087 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
14088
14089         * StatusStrip.cs: Layout fixes for PDN.
14090         * ToolStrip.cs: Set item's available to true, and placement to main when
14091         added.
14092         * ToolStripItem.cs: Fix an Available issue, check that Parent is really
14093         changing in setter before doing any work, add InternalVisible.
14094         * ToolStripPanel.cs: Remove unused variable to fix compiler warning.
14095         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
14096         infinite loop.
14097
14098 2007-04-02  Jackson Harper  <jackson@ximian.com>
14099
14100         * TextBox.cs: LBUTTON does not make the textbox select all of it's
14101         text on focus.
14102
14103 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14104
14105         * XplatUIWin32.cs: Use the previous change in SetParent for forms only.
14106           Makes ToolStripComboBoxes show up again.
14107
14108 2007-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14109
14110         * ListView.cs: Add a hover_pending field in ListView
14111         to fire just one OnMouseHover event for each MouseEnter/MouseLeave
14112         cycle (we are resetting the MouseHover logic in XplatUI
14113         to handle HoverSelection). Fixes #80429.
14114
14115 2007-04-02  Jackson Harper  <jackson@ximian.com>
14116
14117         * TextControl.cs: Make sure the attributes get set on the last
14118         tag.
14119         - Still have to do the end tag if we have stepped all the ways to
14120         the end.
14121
14122 2007-04-02  Sebastien Pouliot  <sebastien@ximian.com>
14123
14124         * XplatUIOSX.cs, XplatUIX11.cs, XplatUIX11GTK.cs: Remove dependency
14125         on an internal libgdiplus call when the information is already 
14126         available via the public API.
14127
14128 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14129
14130         * Control.cs: Call ContainerControl.ChildControlRemoved whenever a
14131           control is removed from a control collecftion.
14132         * XplatUIX11.cs: The first location for toplevel form is (22, 22).
14133           Fixes FormPropertyTest (failed on rare occasions).
14134         * XplatUIWin32.cs: Add a workaround in SetParent for strange behaviour
14135           of Win32SetParent (when changing from no parent to a parent it
14136           might add the new parent's location in screen coordinates to this
14137           window's location).
14138         * Form.cs: Rework ChangingParent once again, now the handle is
14139           recreated whenever a FormWindowManager is added or removed (that is
14140           whenever a normal form is parented or abandoned). Also change
14141           CreateParams so that all non-toplevel windows always get the
14142           specified sice (StartupPosition is never considered for
14143           non-TopLevel forms).
14144         * ContainerControl.cs: Add ChildControlRemoved, the container control
14145           needs to be notified when a control is removed from it's
14146           collection, in the case the removed control is the active control.
14147
14148 2007-04-02  Jackson Harper  <jackson@ximian.com>
14149
14150         * RichTextBox.cs: Use the new methods for setting the font and
14151         color, these methods set the specified attribute without
14152         overriding the other attributes.
14153
14154 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
14155
14156         * ToolStripPanel.cs: Fixes for better layouts in PDN.
14157
14158 2007-03-31  Gert Driesen  <drieseng@users.sourceforge.net>
14159
14160         * TextBox.cs: Added internal ChangeBackColor method to special-case
14161         Color.Empty. Added check for invalid ScrollBars value.
14162         * TextBoxBase.cs: Added internal ChangeBackColor method.
14163         * RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added
14164         internal ChangeBackColor method to special-case Color.Empty. Added
14165         check for invalid ScrollBars value.
14166
14167 2007-03-30  Everaldo Canuto  <everaldo@simios.org>
14168
14169         * MenuItem.cs: On invalidate prevent form to create handle. [Fixes #81272]
14170
14171 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
14172
14173         * ScollableControl.cs: Add HorizontalScroll and VerticalScroll properties.
14174         * ScrollProperties.cs, HScrollProperties.cs, VScrollProperties.cs: Added.
14175         [Based on submitted patch from Olivier Duff.]
14176
14177 2007-03-30  Jackson Harper  <jackson@ximian.com>
14178
14179         * TextBox.cs: Only select all on initial focus if the user has not
14180         specified a selection area.
14181
14182 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
14183
14184         * UserControl.cs: Override CreateParams.
14185
14186 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14187
14188         [ Fixes #80995 ]
14189
14190         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
14191         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style to
14192           check for is a mix of several styles (such as WS_CAPTION for instance).
14193         * Control.cs: Don't paint an area bigger than the client area when painting
14194           the background colour. Add an internal GetCreateParams. Update calls to
14195           XplatUI.CalculateWindowRect due to API change.
14196         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole window's
14197           size, and handle WM_NCCALCSIZE in DefWndProc to calculate the size if it
14198           hasn't been handled by any windows. When creating and moving windows, X
14199           wants the location of the entire window, but the size of the client
14200           window, so add TranslateClientRectangleToXClientRectangle,
14201           TranslateWindowSizeToXWindowSIze and TranslatedXWindowSizeToWindowSize
14202           to cope with this, and call them before every window creation and move.
14203           Update CalculateWIndowRect to use Hwnd.GetWindowRect (one step towards
14204           removing DeriveStyles). In AddConfigureNotify don't do anything if the
14205           hwnd is a zombie (fixes the BadWindow we were getting while running the
14206           tests), always calculate the offsets when it's a parentless window, not
14207           only when reparented, and translate the window size, since we're getting
14208           the client size of the whole window, excluding entire window.
14209         * Theme.cs: Added BorderSizableSize.
14210         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
14211           anymore. Update calls to XplatUI.CalculateWindowRect due to API change.
14212         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API change.
14213           Fake the window styles here instead of in XplatUIWin32 so that all
14214           back-ends get the same window styles (and it's Form that's deciding when
14215           to use wm, not the Win32 backend anyways)
14216         * Hwnd.cs: Completely reworked GetWindowRectangle and GetClientRectangle -
14217           they are now passed a CreateParams and they only use Style and ExStyle
14218           to determine the rectangles (they should now work just like
14219           Win32AdjustWindowRectEx - though quite a few special cases are probably
14220           missing). They should also be 100% complimentary (i.e. GetWindowRectangle
14221           (GetClientRectangle (rect)) == rect), and all numbers (borders, menu
14222           sizes) are taken from the current theme. Added a GetBorders helper
14223           function that will return the borders for any given CreateParams
14224           (including captions and menus), and GetBorderSize that returns the given
14225           border size only.
14226         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
14227           Hwnd.GetClientRectangle.
14228
14229 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14230
14231         * Form.cs: Don't layout mdi children on MdiParent creation, the initial
14232           layout of the mdi children is handled by CreateParams. Fixes
14233           #79964,
14234
14235 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
14236
14237         * MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is
14238         processed.
14239
14240         * Form.cs: When active tracker mouse down is not processed, send event 
14241         back to control inside mouse position. [Fixes #81227]
14242
14243 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
14244
14245         * ComboBox.cs: Override the ComboListBox's ActivateOnShow property and
14246         remove WS_VISIBLE from CreateParams to prevent combobox dropdowns from
14247         stealing focus from the active form on Windows.  (Control will be made
14248         visible in ShowWindow.)
14249
14250 2007-03-29  Mike Kestner  <mkestner@novell.com>
14251
14252         * ImageList.cs : add internal Changed event.
14253         * ListView.cs : hook up to StateImageList.Changed to perform
14254         invalidations when the the state icon list changes. [Fixes #81191]
14255
14256 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
14257
14258         * ToolTip.cs: Override the ToolTipWindow's ActivateOnShow property
14259         to prevent tooltips from stealing focus from the active form on Windows.
14260
14261 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
14262
14263         * ThemeWin32Classic.cs: Small stetic fixes in notifyicon balloon. 
14264
14265         * ThemeClearlooks.cs: Implement notifyicon balloon for clearlooks theme.
14266
14267 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
14268
14269         * NotifyIcon.cs, ThemeWin32Classic.cs: Icon support added to notifyicon
14270         balloons.
14271
14272 2007-03-29  Jackson Harper  <jackson@ximian.com>
14273
14274         * TextControl.cs: When deleting text from non multiline textboxes,
14275         we need to update the entire document, because line offsets will
14276         be shifting.
14277
14278 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
14279
14280         * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method
14281         added to theme, now we can create themes that uses diferent notify engines
14282         like notification-daemon from galago project or growl for Mac OS.
14283
14284 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
14285
14286         * NotifyIcon.cs: Prevent Balloon to show in task bar.
14287
14288 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
14289
14290         * XplatUIX11.cs: Prevent system to open more than one balloon.
14291
14292         * NotifyIcon.cs: Prevent system to open more than one balloon and remove
14293         some compiler warning messages.
14294
14295 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
14296
14297         [Fixes #79149]
14298
14299         * XplatUIX11.cs: Implement SystrayBalloon for X11 systems.
14300
14301         * ThemeWin32Classic.cs, Theme.cs: DrawBalloonWindow and BalloonWindowRect 
14302         implemented, this methods is used by NotifyIcon.BalloonWindow class.
14303
14304         * NotifyIcon.cs: BalloonWindow class added to support Balloon in X11 
14305         systems.
14306
14307 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14308
14309         * ListViewItem.cs: Forgot to make Invalidate internal.
14310
14311 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14312
14313         * ListView.cs: Add a InvalidateSelection method to
14314         invalidate methods which are currently selected, and call
14315         it when setting FullRowSelect and HideSelection, instead of
14316         calling Redraw.
14317
14318 2007-03-28  Chris Toshok  <toshok@ximian.com>
14319
14320         * XplatUIX11.cs (UnmapWindow): reindent this block.
14321
14322         * DataGrid.cs (UpdateSelectionAfterCursorMove): we need to update
14323         the selection_start if we're moving the selection (that is, not
14324         extending it). Fixes bug #80461.
14325
14326 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
14327
14328         * ProgressBar.cs: Make the default MarqueeAnimationSpeed = 100.
14329         * ToolStripPanel.cs: Fix RowMargin, Renderer, RenderMode, and
14330         create private ControlCollection.
14331
14332 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
14333
14334         * Control.cs: We need to call OnVisibleChanged for our implicit
14335         children as well as our normal children.  Fixes scrollbars in
14336         comboboxes not showing up.
14337
14338 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
14339
14340         * Control.cs, Form.cs: Anywhere we call CreateHandle, we need to do
14341         the check for IsHandleCreated first.  The check in CreateHandle is not
14342         good enough because CreateHandle can be overriden, and the override 
14343         should not be called if the handle is already created.
14344
14345 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
14346
14347         * ToolStrip.cs: Remove MonoTODO for tooltips.
14348         * ToolStripComboBox.cs: Fix MonoTODO for DropDownHeight and events.
14349         * ToolStripContainer.cs: Add custom ControlCollection class.
14350         * ToolStripContentPanel.cs: Fix Renderer setting to match MS behavior.
14351         * ToolStripDropDown.cs: Add some missing properties/methods.
14352         * ToolStripDropDownMenu.cs: Override OnLayout and SetDisplayedItems.
14353         * ToolStripItem.cs: Remove MonoTODO for tooltips.
14354         * ToolStripManager.cs: Add IsShortcutDefined.
14355         * ToolStripOverflow.cs: Override LayoutEngine.
14356         * ToolStripProgressBar.cs: Add MarqueeAnimationSpeed.
14357         * ToolStripSeparator.cs: Add ImageKey.
14358
14359 2007-03-28  Jackson Harper  <jackson@ximian.com>
14360
14361         * TextControl.cs: If a char delete removes a line ending, we need
14362         to update the ending style.
14363         - Make sure the line ending calcs get called.
14364
14365 2007-03-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14366
14367         * XplatUIX11.cs: CreateWindow: Remove old default form location code,
14368           it was making the new code not work. Fixed a typo in the new code
14369           as well. Fixes #79826.
14370
14371 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
14372
14373         * XplatUIWin32.cs:
14374         - NIF_STATE and NIF_INFO added to NotifyIconFlags.
14375         - NOTIFYICONDATA properties sizes fixed, szTip is 128, not 64.
14376         - SystrayBalloon method implemented.
14377         [Add support for notifyicon balloon on win32, #79149]
14378
14379 2007-03-27  Mike Kestner  <mkestner@novell.com>
14380
14381         * ThemeWin32Classic.cs : update StateImageList selection to mirror
14382         the ms behavior when only one image is added to the list.
14383         [Fixes #81191]
14384
14385 2007-03-27  Jackson Harper  <jackson@ximian.com>
14386
14387         * TextControl.cs: Improvements to non multiline line ending
14388         drawing/measuing.
14389
14390 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
14391
14392         * XplatUIX11.cs: Fix the time which tooltip is opened for NotifyIcon. 
14393
14394 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
14395
14396         * NotifyIcon.cs: 
14397         - Balloon message handling added.
14398         - Call XplatUI.SystrayBalloon in ShowBalloonTip. 
14399
14400         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
14401         XplatUIOSX.cs, XplatUIX11-new.cs: ShowBalloonTip method renamed 
14402         to SystrayBalloon to me like other Systray method, also a
14403         handle parameter added.
14404
14405 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14406
14407         * ListView.cs: Show scrollbars even when items.Count == 0
14408         but the columns Width is bigger than the ListView.Width.
14409         Also, when columns.Count == 0 set layout_wd and layout_ht
14410         to the ClientRectangle values, so we don't show any scrollbar
14411         in that case.
14412
14413 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
14414
14415         * XplatUIStructs.cs: Balloon (NIN_BALLOON*) constants added.
14416
14417 2007-03-27  Jackson Harper  <jackson@ximian.com>
14418
14419         * RichTextBox.cs: The RTF library decodes the text properly for us
14420         now.
14421
14422 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14423
14424         * ListView.cs: Display HeaderControl even when columns.Count == 0.
14425         * ThemeWin32Classic.cs: Use SystemBrushes.Control to draw the
14426         ListView header (HeaderControl), instead of Control.BackColor.
14427
14428 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
14429
14430         * Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
14431         Fixes tab control issues where controls would not show up because they
14432         never received their OnVisibleChanged call.
14433
14434 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
14435
14436         * NotifyIcon.cs: Balloon events added (BalloonTipClicked, BalloonTipClosed,
14437         BalloonTipShown).
14438
14439 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
14440
14441         * Control.cs: We won't get a WM_SHOWWINDOW when we create a window that
14442         is maximized or minimized, so move CreateControl to Control.OnVisibleChanged.
14443         * Form.cs: After we set the form visible, send a fake WM_SHOWWINDOW if we
14444         are max or min.  Remove WS_VISIBLE from CreateParams unless we are recreating
14445         the handle.  Fix WindowState by using the internal variable until we are 
14446         sure that we've been shown.
14447         * XplatUIX11.cs: Do not generate a WM_SHOWWINDOW message if new form is
14448         max or min.
14449         [Fixes bug #81198]
14450
14451 2007-03-27  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14452
14453         * XplatUIX11.cs: Windows without WS_CAPTION can still get decorations
14454           (at least borders). Fixes #79386 on Linux (with a small difference
14455           in behaviour: when trying to resize a caption-less window metacity
14456           shows the sysmenu. Resizing is still possible though).
14457         * XplatUIWin32.cs: When setting window styles send request an extra
14458           WM_NCCALCSIZE when it's a form without title (due to no text and no
14459           caption), since Win32 seems to calculate it wrong the first time we
14460           get the message, though the second time things work as they should.
14461         * Form.cs: Reorder a few statements in ChangingParent, otherwise the
14462           newly reparented window might show up unparented. Update
14463           CreateParams to exclude WS_DLGFRAME if ControlBox is false and
14464           there's no title text. Fixes #79386.
14465
14466 2007-03-27  Mike Kestner  <mkestner@novell.com>
14467
14468         * ListBox.cs : don't perform invalidations if the handle hasn't been
14469         created.  [Fixes #80753]
14470
14471 2007-03-27  Mike Kestner  <mkestner@novell.com>
14472
14473         * ListBox.cs : don't adjust top item when SelectedIndex is set to -1.
14474         [Fixes #80428]
14475
14476 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
14477
14478         * XplatUIWin32.cs: Complete NOTIFYICONDATA structure, additional fields 
14479         needed to implement Balloon.
14480
14481 2007-03-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14482
14483         * ListViewItem.cs: In the constructors that take
14484         an array of strings, don't use ListViewSubItemCollection.AddRange
14485         method to add items, since we need to have a different behaviour (in
14486         the constructors we add an item for each null string, opposed to
14487         the behaviour of AddRange, which adds nothing).
14488
14489 2007-03-26  Andreia Gaita  <avidigal@novell.com>
14490
14491         * NumericUpDown.cs: Fix broken 1.1 api for ParseEditText
14492
14493 2007-03-26  Jackson Harper  <jackson@ximian.com>
14494
14495         * TextControl.cs: Draw and measure line endings when in non
14496         multiline mode.
14497         - When searching the text, count the end of the last line as a
14498         word boundary.
14499
14500 2007-03-26  Jackson Harper  <jackson@ximian.com>
14501
14502         * RichTextBox.cs: The selection_start and selection_end don't
14503         really track the correct tags for the selection. So we'll manually
14504         compute the correct tag here.
14505
14506 2007-03-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14507
14508         * ProgressBar.cs, ThemeWin32Classic.cs: Implemented drawing of Marquee
14509           and Continuous styles. Fixes #79469.
14510
14511 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
14512
14513         * ToolStrip.cs: Implement Tooltips.
14514         * ToolStripItem.cs: Create internal method for determining tooltip.
14515
14516 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
14517
14518         * PropertyGrid.cs: Hide a EditorBrowsable attribute from 1.1 API.
14519
14520 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
14521
14522         * NotifyIcon.cs: On disposing verify if icon is visible and hide it,
14523         it prevents a problem thak keeps icon visible after application 
14524         closes on win32.
14525
14526 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
14527
14528         * NotifyIcon.cs: Balloon properties and methods created.
14529
14530         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
14531         XplatUIOSX.cs, XplatUIX11-new.cs: Implement ShowBalloonTip method.
14532
14533 2007-03-25  Jonathan Pobst  <monkey@jpobst.com>
14534
14535         * ToolStripComboBox.cs: Default the ComboBox's FlatStyle to Popup.
14536
14537 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
14538
14539         * Control.cs: Make SetBoundsCore match MS better.  The BoundsSpecified
14540         parameter indicates which aspects were explicit/user-set.
14541         * ComboBox.cs, ListBox.cs: Call SetBoundsCore correctly. (no 0 parameters).
14542
14543 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
14544
14545         * ProgressBar.cs: Throw AOORE instead of AE for property Value (2.0).
14546         * ScrollBar.cs: Throw AOORE instead of AE for properties LargeChange,
14547         SmallChange, and Value (2.0).
14548         * Timer.cs: Throw AOORE instead of AE for property Interval (2.0).
14549
14550 2007-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14551
14552         * ListView.cs: Always set item_control.Width in LayoutDetails
14553         if View is Details. Setting it later in CalculateScrollBars
14554         in a not-so-corner scenario (the sum of columns width is
14555         not bigger than the ListView width when handle is created, and then
14556         that sum gets bigger by increasing the width of the columns)
14557         causes a very weird recursion path (which shouldn't be happening,
14558         since header_control sets it in CalculateScrollBars too). This bug
14559         appeared after Chris' fixes for handle created issues, so probably
14560         it's related to some handle-creation time.
14561
14562 2007-03-23  Chris Toshok  <toshok@ximian.com>
14563
14564         * DataGrid.cs (GetVisibleRowCount): increase the row count in the
14565         case where there's an add row, just so we don't end up in a case
14566         where it's not displayed (this happens when the row is partially
14567         obscured).  Fixes bug #79574.
14568
14569 2007-03-23  Jackson Harper  <jackson@ximian.com>
14570
14571         * TextControl.cs:
14572         * TextBoxBase.cs:
14573         * RichTextBox.cs: Preserve line endings in the lines text buffer,
14574         also added an enum that represents the line ending type. 
14575
14576 2007-03-23  Andreia Gaita  <avidigal@novell.com>
14577
14578         * NumericUpDown.cs: Fix logic so Text and Value properties are not
14579         messed with in every method call, but only from DownButton, 
14580         UpButton, UpdateEditText() and ValidateText. Fixes #80346
14581
14582 2007-03-23  Chris Toshok  <toshok@ximian.com>
14583
14584         * DataGridTextBoxColumn.cs (GetFormattedValue): don't try to
14585         format objects if the format spec is "".  Fixes bug #80889.
14586
14587 2007-03-22  Miguel de Icaza  <miguel@novell.com>
14588
14589         * ToolStripPanel.cs (Join): added stubs to build PDN3
14590
14591         * Control.cs (AutoScrollOffset): Add.
14592
14593         * SystemInformation.cs (MouseWheelScrollDelta): Expose this
14594         property, its only implemented for Win32, on X11 it defaults to
14595         some hardcoded value.
14596
14597         * ToolStripItem.cs (AllowDrop): Add property
14598
14599 2007-03-22  Mike Kestner  <mkestner@novell.com>
14600
14601         * ListView.cs : in FullRowSelect Details mode, only enable box
14602         selection if the user clicks over the "item" column outside of the
14603         text area.  Mmmmm, compatibility.  [Fixes #80374 subpart 7]
14604
14605 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14606
14607         * Control.cs: ChangeParent: Call Form's ChangingParent even if the
14608           handle is not created yet.
14609         * Form.cs: Select: Don't call CreateHandle if the handle is already
14610           created, avoids a stack overflow on Windows when we are recreating
14611           controls.
14612         * ScrollableControl.cs: Set the correct z-order for the scrollbars when
14613           they are made visible, and override AfterTopMostControl to keep
14614           them on top when other controls are brought to front.
14615           CalculateCanvas: Scrollbars are only visible if auto_scroll is true
14616           or force_*scroll_visible is true (old implementation always shows
14617           scrollbars when needed, no matter what auto_scroll was set to).
14618         * InternalWindowManager.cs: UpdateWindowDecorations: Add a
14619           IsHandleCreated check.
14620
14621 2007-03-22  Andreia Gaita  <avidigal@novell.com>
14622
14623         * DataGrid.cs: Implement Column and Row auto sizing when double-clicking on
14624         row or col separator.
14625         * DataGridTextBoxColumn.cs: Implement GetPreferredHeight and GetPreferredSize
14626
14627 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
14628
14629         * MenuAPI.cs: Remove unneeded check for grab_control in UpdateCursor.
14630
14631 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
14632
14633         * MenuAPI.cs: UpdateCursor method added, it is calling in OnMotion to update
14634         cursor for child controls. In ShowWindow and HideWindow now call SetCursor 
14635         every time. Fixes #80410.
14636
14637 2007-03-22  Chris Toshok  <toshok@ximian.com>
14638
14639         * BindingSource.cs (AddNew): partially implement.
14640
14641         remove a couple of NotImplementedException's
14642         to get bug #81148 closed.
14643
14644 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
14645
14646         [Fixes #80380]
14647         
14648         * Control.cs:
14649         - UpdateCursor method added to update the screen cursor.
14650         - GetAvailableCursor method added to return cursor for enabled tree,
14651         it searches for cursor on control and it's parent's for enabled control.
14652         - Call UpdateCursor method on setter of Cursor property.
14653         - On setter of Enabled call UpdateCursor when it is false, we need to
14654         change cursor to normal (or to this parent cursor) because cursor 
14655         setting theres no effect to disabled controls.
14656         - Some minor source changes to follow the coding style guidelines.
14657
14658         * XplatUIX11.cs: In MotionNotify only dispatch SET_CURSOR event for enabled 
14659         controls.
14660
14661 2007-03-22  Chris Toshok  <toshok@ximian.com>
14662
14663         * XplatUIX11.cs: ignore the BadPicture errors cairo+render
14664         generates.
14665
14666 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14667
14668         * XplatUIX11.cs: Implement default locations for forms.
14669         * Form.cs: Completely rework startup location for forms. Fixes #79964.
14670         * Hwnd.cs: Add previous_child_startup_location (to track the current
14671           startup location for any child forms of the current form) and
14672           previous_main_startup_location (to track the startup location for
14673           the current toplevel form).
14674
14675 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
14676
14677         * Control.cs: Don't trigger a layout if an implicit control is added
14678         that isn't visible.  Also, don't notify the owner when an implicit control
14679         is added.  (Owners shouldn't even know about their implicit controls.)
14680
14681 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
14682
14683         * ScrollableControl.cs: Add implicit controls with AddRangeImplicit
14684         to save some re-layouts.
14685
14686 2007-03-21  Everaldo Canuto  <everaldo@simios.org>
14687
14688         * MenuAPI.cs: In ProcessKeys returns false when key is not processed.
14689         [Fixes #81203]
14690
14691 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
14692
14693         * FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
14694         ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.
14695
14696 2007-03-21  Mike Kestner  <mkestner@novell.com>
14697
14698         * ListView.cs : disable selection update for non-left button clicks
14699         with mods and over selected items.  [Fixes #80524]
14700
14701 2007-03-20  Jackson Harper  <jackson@ximian.com>
14702
14703         * TextControl.cs:
14704         * TextBoxBase.cs: Allow different types of line endings. \r, \r\n,
14705         \r\r\n, \n.
14706
14707 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14708
14709         * ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
14710           very probably a more complicated calculation there. Update the
14711           textbox' ForeColor and BackColor when the ComboBox' colors are
14712           changed. Change the border change in LayoutComboBox to only affect
14713           the textbox, not all the calculations there. Seems to fix most of
14714           #79436.
14715
14716 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14717
14718         * ComboBox.cs: Handle Home and End keys as well as all combinations of
14719           modifiers + navigation keys as input keys, enables advanced text
14720           selection in the combobox (like Shift+Left Arrow for instance).
14721           ComboTextBox now overrides Focused and returns whatever
14722           ComboBox.Focused returns, since it really should be focused
14723           whenever the ComboBox is. Fixes #80795. Also make the border around
14724           the text box one pixel bigger, as mentioned in #79436.
14725
14726 2007-03-20  Jackson Harper  <jackson@ximian.com>
14727
14728         * TreeView.cs: Don't offset the images, this was causing some
14729         artifacts when expanding/collapsing with images that were the
14730         exact height of the treenode.
14731
14732 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14733
14734         * TrackBar.cs: Query the theme for the correct value when the mouse
14735           moves and the thumb is pressed. 
14736         * Theme.cs: Added TrackBarValueFromMousePosition
14737         * ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
14738           implementation was updating the trackbar value when drawing, now
14739           the drawing methods only draw. Fixes #80900. Refactored the
14740           calculations out to TrackBarValueFromMousePosition and
14741           GetTrackBarDrawingInfo, so that TrackBar can get the correct value
14742           according to the mouse position whenever it wants to. Changed the
14743           light coloured pen when drawing the thumb from ControlLight to
14744           ControlLightLight, because the ControlLight is the same colour as
14745           the background so the 3D effect is lost. 
14746
14747 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
14748
14749         * Form.cs: In ShowDialog uses MainForm as transient form when no form is
14750         defined. Fixes #80784.
14751
14752 2007-03-20  Marek Habersack  <mhabersack@novell.com>
14753
14754         * ContextMenuStrip.cs: align with the change introduced in
14755         revision 74664.
14756
14757 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
14758
14759         * XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs, 
14760         XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner 
14761         in SetTopmost.
14762
14763 2007-03-19  Chris Toshok  <toshok@ximian.com>
14764
14765         * Control.cs (WmPaint): don't make use of the Handle property
14766         after an event is emitted, as the user could have closed the
14767         form/destroyed the control.  Store the Handle in a local variable
14768         and make use of that.  Fixes bug #80768.
14769
14770 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
14771
14772         * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
14773         behavior in X11 environments.
14774
14775 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
14776
14777         * Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
14778         because on setter of topmost we dont call SetTopmost when handle is not
14779         created.
14780
14781 2007-03-20  Jackson Harper  <jackson@ximian.com>
14782
14783         * TextControl.cs: Need to use SelectionLength () not
14784         selection_length, since that var is reset to -1.
14785         - Draw the caret when we don't have focus.
14786         * TextBox.cs: The selectall actually doesn't occur until the first
14787         focus.
14788         * TextBoxBase.cs: Need to update the caret position after a
14789         selectall.
14790         
14791 2007-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14792
14793         * ListView.cs: Enable scrolling when using Tile view.
14794
14795 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
14796
14797         [Fixes #80902]
14798
14799         * XplatUIDriver.cs: Abstract SetOwner method created.
14800
14801         * XplatUIOSX.cs: Override SetOwner to prevent compilation errors method 
14802         must be implemented and was masked as todo.
14803
14804         * XplatUIWin32.cs: SetOwner implemented using SetWindowLong with 
14805         GWL_HWNDPARENT.
14806
14807         * XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but 
14808         cheking for null owner to remove transient. The SetTopmost will be change
14809         on a decond step.
14810
14811         * Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
14812         SetTopmost. Now owned forms will work properly in win32 and X11.
14813
14814 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14815
14816         * MdiWindowManager.cs: Update function name.
14817         * Form.cs: After closing a form MdiParent is always null.
14818         * MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
14819           better what it should do: necessary book-keeping when the form is
14820           closed, it should not close the form itself.
14821
14822 2007-03-19  Andreia Gaita  <avidigal@novell.com>
14823
14824         * ListViewItem.cs: Fix back and fore color. The subitems only
14825         use their own colors if they are set, otherwise use the listview's
14826         colors. Don't set default colors on constructor for subitem.
14827         Fixes #79315.
14828
14829 2007-03-19  Mike Kestner  <mkestner@novell.com>
14830
14831         * ListView.cs : make box selection for Details views with 
14832         FullRowSelect conform to MS behavior when clicking in the "item" 
14833         column and clicking outside the defined columns.
14834         [Fixes case 5-6 of #80374]
14835
14836 2007-03-19  Chris Toshok  <toshok@ximian.com>
14837
14838         * ScrollableControl.cs: create the controls from within the ctor,
14839         but don't actually add them until our handle is created.  this
14840         fixes a NRE possibility jpobst found (if you override OnLayout in
14841         a subclass, it's called before your ctor).  Also, add a
14842         IsHandleCreated guard to UpdateSizeGripVisibility as well.
14843
14844 2007-03-19  Jackson Harper  <jackson@ximian.com>
14845
14846         * TextBox.cs: Reduce the amount of invalidation we do.
14847         * TextBoxBase.cs: Make shortcuts enabled true by default, at least
14848         some of them are true by default on MS.
14849         - Add some functions to reduce the amount of invalidates we do.
14850         * TextControl.cs: Less invalidation.
14851
14852 2007-03-19  Chris Toshok  <toshok@ximian.com>
14853
14854         [ Fixes #81773, and *seems* to fix #81553 as well ]
14855
14856         * XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
14857         AccumulateDestroyedHandles.  We need to do it *after* we send
14858         WM_DESTROY, as the user's code can access Control.Handle in
14859         OnHandleDestroyed, and this shouldn't cause a recreation.  Also,
14860         move the WM_DESTROY/zombie handling to before the call to
14861         XDestroyWindow.  For some reason without this ordering
14862         FormTest.RecreateHandle hangs.  This ordering is semantically
14863         equivalent, however, as XDestroyWindow is async anyway.
14864
14865 2007-03-19  Gert Driesen  <drieseng@users.sourceforge.net>
14866
14867         * RichTextBox.cs: Reset backcolor_set after setting default.
14868
14869 2007-03-19  Chris Toshok  <toshok@ximian.com>
14870
14871         * ScrollableControl.cs: the scroll position should not effect the
14872         canvas size.  commit patch from georgegiolfan@yahoo.com, which
14873         fixes some really bizarre behavior on resizing.  Fixes bug #80778.
14874         
14875 2007-03-19  Chris Toshok  <toshok@ximian.com>
14876
14877         * ScrollableControl.cs: clean this up a bit.  create the
14878         scrollbars in the ctor and just show/hide them as needed.  Also,
14879         make hscroll_visible/vscroll_visible internal to Recalculate, and
14880         just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
14881         everywhere else.  This seems to fix the scrollbars appearing
14882         beneath the content for me (i have *no* idea why that is,
14883         however.)
14884
14885 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
14886
14887         * ToolStrip.cs: Don't call DoAutoSize when we change Dock.  Also, remove
14888         some redundacy for stuff in Anchor and Dock that base will take care of.
14889         [Fixes #80762]
14890
14891 2007-03-19  Mike Kestner  <mkestner@novell.com>
14892
14893         * ListView.cs : make box selection for Details views without 
14894         FullRowSelect dependent on the text bounds, not item bounds.
14895         * ListViewItem.cs : add an internal property to obtain the TextBounds
14896         in Details view.  [Fixes case 1-4 of #80374]
14897
14898 2007-03-19  Andreia Gaita  <avidigal@novell.com>
14899
14900         * PaintEventArgs.cs (Dispose): Only dispose of graphics object if
14901         we're < 2.0. #78448 && #80316
14902
14903 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
14904
14905         * FontDialog.cs: Don't crash when we switch to a new font that doesn't
14906         have the same style available as the previously selected one.  Also,
14907         support FixedPitchOnly property.  [Fixes bugs #80918, #80947]
14908
14909 2007-03-19  Jackson Harper  <jackson@ximian.com>
14910
14911         * TextControl.cs: Add an alignment property that all new lines
14912         will be given.
14913         - Make sure to use the align shift when calculating the line's X
14914         position.
14915         * TextBox.cs: Set the alignment on the document as well as on all
14916         the document lines.
14917
14918 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14919
14920         * Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
14921           throw if setting the parent of an mdichild that already has an
14922           mdiparent. Update signature for 2.0 profile. ProductName: If there's no
14923           AssemblyProductAttribute in the assembly, use the type's namespace (as
14924           MS seems to do). CreateControl: don't create the handle if the control
14925           is not visible (according to MS behaviour and spec).  SetTopLevel: Only
14926           create handle if the control is not a form. Change FocusInternal to
14927           virtual so that it can be overriden by Form.
14928         * TextBox.cs: Update call to FocusInternal.
14929         * Form.cs: Always create the handle when calling Focus on a MdiChild. The
14930           form is not a toplevel form when it's a mdi child, so update is_toplevel
14931           accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
14932           hasn't been created. Show (IWin32Window): Don't allow this overload for
14933           toplevel windows. CenterToParent/CenterToScreen/Select: create the
14934           handle as MS does. SetVisibleCore: if called on a MdiChild and the
14935           parent isn't visible yet, save the visibility and restore it when the
14936           parent is made visible.
14937         * ScrollableControl.cs: Refactor out scrollbar visibility code to separate
14938           methods, since the visibility of the scrollbars can be changed from
14939           several places, not only from AutoScroll.
14940           [Fixes #81179]
14941
14942 2007-03-19  Jackson Harper  <jackson@ximian.com>
14943
14944         * RichTextBox.cs: Enable shortcuts by default.
14945         * TextBoxBase.cs: Add conditional shortcuts.  
14946
14947 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
14948
14949         * MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).  
14950
14951 2007-03-19  Chris Toshok  <toshok@ximian.com>
14952
14953         [ Fixes bug #80604]
14954         
14955         * XplatUIX11.cs (WaitForHwndMessage): change this to actually
14956         swallow the message we're waiting on, instead of delivering it, as
14957         this is only used for the WM_SHOWWINDOW raised from
14958         MapWindow/UnmapWindow, and the message needs to be generated
14959         (MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
14960         before doing the Map/Unmap.  Also make sure that the Hwnd is still
14961         alive after the message has been handled.
14962
14963         *before* the window is shown.
14964
14965         * Control.cs (CreateControl): guard a few more things inside the
14966         if (!is_created) block, as we might end up being called again -
14967         yay .net.
14968         (WmShowWindow): call CreateControl if we're showing the control.
14969
14970 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14971
14972         * Control.cs: Fix 2.0 signature for Invoke. Support invoking on
14973           controls without a handle if they have any parent with a handle. In
14974           Dispose add a check whether the handle is created or not before
14975           calling BeginInvoke, this removes the need of the extra disposing
14976           parameter (which was bogus anyway since it didn't prevent the
14977           invoke from happening, it only skipped the check for an existing
14978           handle, meaning that the invoke would call on an inexistent
14979           handle).
14980
14981 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
14982
14983         * MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
14984         appears in taskbar.
14985
14986 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
14987
14988         * MessageBox.cs:
14989         - Fixed a problem that dont show help button for messages with 3 buttons.
14990         - Refactory button size and position calculations, now dont use fixed 
14991         values, also fixed button sizes (#80043) and form's border space.
14992         - AddButton method created, now all other AddButton methods call this one.
14993         - Some other source code cosmetic changes.
14994
14995 2007-03-18  Jackson Harper  <jackson@ximian.com>
14996
14997         * RichTextBox.cs: Don't do this all fonts must match check if
14998         there is only one char selected.
14999
15000 2007-03-18  Jackson Harper  <jackson@ximian.com>
15001
15002         * TreeView.cs: ScrollWindow works properly now, so we don't need
15003         to screw around with the scroll area.  This fixes some artifacts
15004         when expanding and collapsing.
15005
15006 2007-03-18  Jackson Harper  <jackson@ximian.com>
15007
15008         * TextBoxBase.cs: Allow updating the selection position when the
15009         cursor is outside the textarea, but we have a capture.
15010         * TextControl.cs: A special case for when the cursor is outside
15011         the bounds of the TB.
15012         
15013 2007-03-18  Jackson Harper  <jackson@ximian.com>
15014
15015         * TextBoxBase.cs: Remove image pasting code for now.  There is no
15016         way to get an image on the clipboard right now anyways.
15017         * TextControl.cs:
15018         * RichTextBox.cs: Use the new RTF Picture class for pictures.
15019
15020 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
15021
15022         * MessageBox.cs:
15023         - Set window properties in constructor intead of on CreateParams.
15024         - Remove topmost from Window ExStyle.
15025         - Set ShowInTaskbar to false.
15026         - Set form border to FixedDialog.
15027         - Some cosmetic changes and remove unneeded comments.
15028         - It fixes itens 2,3 and 4 of bug #80043.
15029
15030 2007-03-18  Gert Driesen  <drieseng@users.sourceforge.net>
15031
15032         * TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
15033         none was explicitly set. Fixes part of bug #79949.
15034
15035 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
15036
15037         * ToolStripComboBox.cs: Add AutoComplete*.
15038
15039 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
15040
15041         * ToolStripComboBox.cs: Add FlatStyle.
15042
15043 2007-03-16  Jonathan Pobst  <monkey@jpobst.com>
15044
15045         * ToolStrip.cs, ToolStripProfessionalRenderer.cs,
15046         ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
15047
15048 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15049
15050         * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
15051           CheckBox.cs, RadioButton.cs, BindingSource.cs,
15052           DataGridColumnStyle.cs: Remove warnings.
15053
15054 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15055
15056         * Menu.cs: MergeMenu: Check menu argument for null before looping over
15057           it.
15058         * MdiWindowManager.cs: Add IsVisiblePending to track the pending
15059           visibility of mdi child forms. FormSizeChangedHandler: update the
15060           maximized size if size has changed while maximized.
15061         * MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
15062           creating the handle.
15063         * InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
15064           avoid creating the handle if not created.
15065         * XplatUI.cs: Update debug output.
15066         * XplatUIStructs.cs: Added ToString's for a couple of structs.
15067
15068 2007-03-16  Jonathan Pobst <monkey@jpobst.com>
15069
15070         * ContainerControl.cs: Give ToolStripManager the opportunity to handle
15071         ProcessCmdKey().
15072         * ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs, 
15073         ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
15074         Implement keyboard shortcuts.
15075
15076 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
15077
15078         * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
15079         Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog, 
15080         ColorDialog and all derived classes.
15081
15082 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
15083
15084         [ Fixes bug #79828 ]
15085
15086         * ToolBar.cs:
15087         - Rename ToolBarButtonInfor to ToolBarItem.
15088         - Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
15089         - Maintain an array of ToolBarItem, used instead of ToolBarButton
15090         collection to be able add same button more than one time on a toolbar.
15091         - Refactory all properties and methods to use ToolBarItem. 
15092
15093         * ToolBarButton.cs: 
15094         - Remove all propeties and methods that is now in ToolBarItem.
15095         - Rectangle propery now gets the rectangle from first ToolBarItem to
15096         mimic win32 behavior.
15097         - Size calculation and layout methods also removed.
15098
15099         * ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
15100         ToolBarItem instead of ToolBarButton to right drawing buttons when
15101         same button/separator was added more than one time to ToolBar.
15102
15103         * ThemeNice.cs: Same as above. 
15104
15105 2007-03-15  Andreia Gaita  <avidigal@novell.com>
15106
15107         * XplatUIX11.cs: Fire extra MouseMove events right after
15108         MouseDown and MouseUp, emulating win32's <censored> behaviour
15109         for apps that rely on it.
15110
15111 2007-03-15  Jackson Harper  <jackson@ximian.com>
15112
15113         * TextControl.cs:
15114         * TextBoxBase.cs: On MS, a fixed single border is not in NC area,
15115         it is drawn on the controls client window and there is no NC
15116         area.
15117         - Set the background color to gray on 2.0 when we are readonly.
15118
15119 2007-03-15  Chris Toshok  <toshok@ximian.com>
15120
15121         [ Fixes bug #81144 ]
15122         
15123         * XplatUIX11.cs: implement VirtualScreen independently of
15124         WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
15125         property.
15126
15127 2007-03-15  Chris Toshok  <toshok@ximian.com>
15128
15129         * Hwnd.cs: add an internal field for the cached_window_state.
15130
15131         * XplatUIX11.cs: cache the window state, invalidating the cache
15132         (and thus re-querying the X server) only when we see an update to
15133         the _NET_WM_STATE property.
15134
15135 2007-03-15  Chris Toshok  <toshok@ximian.com>
15136
15137         * BindingSource.cs: get a lot of the unit tests working.
15138
15139 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
15140
15141         * Control.cs: Modify UpdateStyles to store distances when bounds >=
15142         0 instead of just bounds > 0.  [Fixes bug #80912]
15143
15144 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
15145
15146         * ToolStrip.cs, ToolStripItem.cs: Implement several new properties
15147         and methods.
15148
15149 2007-03-15  Ivan N. Zlatev <contact@i-nz.net>
15150         
15151         * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
15152         XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
15153         XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
15154         WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
15155
15156 2007-03-15  Chris Toshok  <toshok@ximian.com>
15157
15158         [ Fixes #81101 ]
15159         
15160         * Control.cs: add Ivan's fix for 81101, with a slight modification
15161         - you can set control.Target to null.
15162
15163 2007-03-14  Jonathan Pobst  <monkey@jpobst.com>
15164
15165         * ToolStripItem.cs: If our OwnerItem is null, we can't use 
15166         HideDropDown, use Hide instead to prevent an NRE.
15167         [Fixes bug #81147]
15168
15169 2007-03-14  Jackson Harper  <jackson@ximian.com>
15170
15171         * TextBoxBase.cs: Mess with the creation stuff a little. We need
15172         to calculate the document before the handle is created, in some
15173         cases. (Actually just one case).
15174
15175 2007-03-14  Jackson Harper  <jackson@ximian.com>
15176
15177         * TextBoxBase.cs: Need to display the caret after letting the base
15178         wndproc handle the focus methods, because the caret display
15179         methods check the focus state.
15180         - Try to display the caret after updating it's position with SelectWord.
15181         - Don't need to do an immediate update on this recalc, since there
15182         will be an invalidate anyways.
15183
15184 2007-03-14  Jackson Harper  <jackson@ximian.com>
15185
15186         * TreeView.cs: Some workarounds so that we can match event order a
15187         little better.
15188
15189 2007-03-14  Gert Driesen  <drieseng@users.sourceforge.net>
15190
15191         * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
15192         #80803. Avoid NullReferenceException when Control does not have
15193         parent. Fixed different blinkstyle issues. Only subscribe to Tick
15194         event a single time. Only draw error icon when control is created and
15195         visible. Fixes failing unit tests.
15196
15197 2007-03-14  Andreia Gaita  <avidigal@novell.com>
15198
15199         * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
15200         Selecting events. Fire Leave and Enter events when changing tabs.
15201
15202 2007-03-14  George Giolfan  <georgegiolfan@yahoo.com>
15203
15204         * TreeView.cs: Add TreeViewNodeSorter.
15205         * TreeNodeCollection.cs: Add sorter parameter to Sort method.
15206
15207 2007-03-14  Chris Toshok  <toshok@ximian.com>
15208
15209         * Form.cs: go ahead and remove the RecreateHandles that jpobst
15210         removed earlier and I had him add back it.  It turns out metacity
15211         *does* in fact handle the MOTIF_WM_HINTS property changing, it
15212         just doesn't redraw the window titlebar until you resize the
15213         window.  This also means we aren't recreating the entire window
15214         hierarchy on X when you change this property.  And it looks better
15215         on windows, too.
15216
15217 2007-03-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15218
15219         * ListViewItem.cs:
15220         * ListView.cs: Collecting selection information
15221         is now done in SelectedIndexCollection rather than in
15222         SelectedListViewItemCollection. This is done so we can
15223         have the selection information code in one single place
15224         (virtual mode selection information entirely depends on
15225         SelectedIndexCollection).
15226
15227 2007-03-13  Miguel de Icaza  <miguel@novell.com>
15228
15229         * ErrorProvider.cs: Add stubs for ISupportInitialize
15230
15231 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15232
15233         * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
15234         in the right order with the right values, from the Checked property, 
15235         just as MS does (instead of triggering them from ListView).
15236
15237         * ListView.cs: Make OnItemCheck and OnItemChecked internal.
15238
15239 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15240
15241         * ListView.cs: Implement ItemChecked 2.0 event. Also cast to 
15242         the correct handler in OnItemCheck method (ItemCheckEventHandler 
15243         instead of EventHandler). This used to throw an InvalidCastException.
15244
15245 2007-03-13  Jackson Harper  <jackson@ximian.com>
15246
15247         * TextBoxBase.cs: Calculate the document before the handle is
15248         created, so there isn't an extra invalidate called.
15249
15250 2007-03-13  Jonathan Pobst  <monkey@jpobst.com>
15251
15252         * Form.cs: Don't set owner in ShowDialog until we are sure
15253         that we aren't going to throw an exception.  [Fixes bug #80773]
15254
15255 2007-03-12  George Giolfan  <georgegiolfan@yahoo.com>
15256
15257         * TreeView.cs: Make it compile.
15258
15259 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
15260
15261         * Control.cs: Another place we don't call SizeFromClientSize.
15262         * Form.cs: Another place we don't call SizeFromClientSize.
15263         [Fixes bug #81125]
15264
15265 2007-03-12  Jackson Harper  <jackson@ximian.com>
15266
15267         * TreeView.cs: Basically emulating some strangness here with
15268         exanding nodes and setting node positions when windows aren't
15269         created.
15270         - Also attempting to walk the node tree less than previously, and
15271         just use visible order calculations for determining offsets.
15272         - oops made scrolling backwards.
15273         * TreeNode.cs: We need to start nodes with a zero visible order,
15274         because the order calcs are based on the first nodes order.
15275
15276 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
15277
15278         * Form.cs: Don't exit the program if RecreateHandle is called on
15279         the main form.
15280
15281 2007-03-12  Chris Toshok  <toshok@ximian.com>
15282
15283         * XEventQueue.cs: remove the use of PostQuitState.
15284
15285         * XplatUIX11.cs: remove the use of PostQuitState.  If we get a
15286         WM_QUIT message in GetMessage, return false (and if we're in the
15287         nested WaitForHwndMessage, repost the WM_QUIT message).
15288
15289 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
15290
15291         * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
15292         or the MaximizeBox properties.  [Part of bug #80640]
15293
15294 2007-03-12  Everaldo Canuto  <everaldo@simios.org>
15295
15296         * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
15297         no links.
15298
15299 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
15300
15301         * ToolStripItem.cs: Fix some tests I broke by checking Visible
15302         instead of visible.
15303
15304 2007-03-12  Gert Driesen  <drieseng@users.sourceforge.net>
15305
15306         * FileDialog.cs: Use text of File name combobox to determine what
15307         files the user selected. Added tokenizer to parse the file names.
15308         Fixes bug #81123.
15309
15310 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
15311
15312         * Control.cs: We can't call SizeFromClientSize in the constructor,
15313         but we still need to do the same work, so make an internal version.
15314         [Fixes bug #80621]
15315
15316 2007-03-12  Jackson Harper  <jackson@ximian.com>
15317
15318         * TreeView.cs:
15319         * TreeNode.cs:
15320         * OpenTreeNodeEnumerator: Match MS better for IsVisible and
15321         IsExpanded.
15322
15323 2007-03-12  Jackson Harper  <jackson@ximian.com>
15324
15325         * TextBoxBase.cs: Now that the handles are being created a little
15326         later, we need to make sure that the document is recalculated when
15327         the handle is created.
15328
15329 2007-03-11  Everaldo Canuto  <everaldo@simios.org>
15330
15331         * Theme.cs: GetLinkFont abstract method added.
15332         
15333         * LinkLabel.cs: 
15334         - Remove CalcTrimRectangle, no longer needed.
15335         - Factor also remove, position issues must be fixed in libgdiplus.
15336         - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
15337         - GetPieceFont, CreateLinkFont and link_font removed, theme must be 
15338         care about font used to draw links.
15339         - Set TabStop to true when control is "Selectable", control is selectable
15340         when have one or more links. Fixes #80501 (test case is also added).
15341         - Set the LinkArea values after links change, LinkArea values must be
15342         based in first link position and size, a test case was created.
15343         - Fix ControlStyles.Selectable value, now is based on LinkArea value, 
15344         the attribute must be true LinkArea.Length > 0. The same was applied to
15345         TabStop.
15346         
15347         * ThemeWin32Classic.cs: 
15348         - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used 
15349         in draw method.
15350         - Use CPDrawStringDisabled to draw disabled text instead of hard code 
15351         color change.
15352         - Draw focus rectangle for every parts focused, including parts that 
15353         is on another line, its because regions returns various rectangles
15354         and not only one. Needed to mimic W32 look.
15355         - Uses Graphics.Clip to delimite region painted, it mean that now 
15356         complete text is passed to DrawString, with this we solve layout
15357         issues without create another text renderer.
15358         - Uses Region.Intersect to fix some flickers problems, now only needed
15359         parts will redrawed.
15360         - This changes fixes #79614 and some other unreported issues, on Linux 
15361         some layout problems still remain, the problem is under 
15362         MeasureCharacterRanges but it is an libgdiplus bug.
15363
15364 2007-03-10  Gert Driesen  <drieseng@users.sourceforge.net>
15365
15366         * TextBox.cs: Set for foreground color.
15367         * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
15368         this is already done in Control.
15369
15370 2007-03-10  Jackson Harper  <jackson@ximian.com>
15371
15372         * TextBox.cs: Set the background color, but reset the
15373         backcolor_set flag which is just for the user setting the
15374         background color.
15375
15376 2007-03-09  Chris Toshok  <toshok@ximian.com>
15377
15378         * Control.cs: really remove the call to XplatUI.SetVisible from
15379         CreateHandle(), like I said I did when I merged the branch.
15380
15381         * BindingSource.cs: implement some more of this stuff.
15382
15383 2007-03-09  Jackson Harper  <jackson@ximian.com>
15384
15385         * TextBox.cs: Don't explicitly set our background colors.
15386         * TextControl.cs:
15387         * TextBoxBase.cs: Draw readonly text.
15388         - Need to invalidate when backcolor or readonly are changed.
15389         
15390 2007-03-09  Jackson Harper  <jackson@ximian.com>
15391
15392         * TextBoxBase.cs: Don't set the forecolor until the handle is
15393         created.
15394         - Do not raise OnPaint, and removed some old debug code.
15395
15396 2007-03-09  George Giolfan  <georgegiolfan@yahoo.com>
15397
15398         * ScrollableControl.cs: Fix mouse wheel scrolling.
15399
15400 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
15401
15402         * Control.cs: Wire up MouseDoubleClick event.
15403
15404 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
15405
15406         * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
15407         top or bottom.
15408         * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
15409         * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
15410         item is added.  This logic was moved to ToolStrip.OnItemAdded.
15411         [Fixes bug #81090]
15412
15413 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15414
15415         * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
15416
15417 2007-03-08  Jackson Harper  <jackson@ximian.com>
15418
15419         * TreeView.cs: Show the correct image for selected node (this used
15420         to work, not sure how the code got deleted). Also implemented 2.0 feature
15421         SelectedImageKey.
15422
15423 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15424
15425         * ListView.cs:
15426         * ListViewItem.cs: Cache index in items when retrieving them
15427         in VirtualMode.
15428
15429 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
15430
15431         * ToolStripItem.cs: Don't return the explicit_size if we are using 
15432         AutoSize.  Fixes invalidation issue when user has explicitly set a
15433         size and has AutoSize = true.
15434
15435 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
15436
15437         * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
15438
15439 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
15440
15441         * DataGridView.cs: Remove event handler from DataView when a
15442         DataTable is used as DataSource.
15443
15444 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
15445
15446         * Control.cs: Create internal setter for client_size to allow it to be
15447         set without triggering resizing code.
15448         * Form.cs: Calculate client_size in constructor, only change client_size
15449         in FormBorderStyle property if Handle has been created.
15450         [Fixes #80574, #80791]
15451
15452 2007-03-08  George Giolfan  <georgegiolfan@yahoo.com>
15453
15454         * SystemInformation.cs: Add TerminalServerSession.
15455
15456 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
15457
15458         * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
15459         TreeView code.
15460
15461 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
15462
15463         * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
15464         Handle before we were supposed to.  Now checks ActivateOnShow property
15465         in Control.
15466         * Control.cs: Add internal ActivateOnShow property.
15467         * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
15468         for ActivateOnShow.
15469         * Hwnd.cs Remove no longer needed no_activate field.
15470
15471 2007-03-07  Jackson Harper  <jackson@ximian.com>
15472
15473         * TreeView.cs: Implement owner draw tree nodes.  And a couple more
15474         2.0 properties
15475         * DrawTreeNodeEventHandler.cs: Add
15476         * DrawTreeNodeEventArgs.cs: Correct default value.
15477         
15478 2007-03-07  Chris Toshok  <toshok@ximian.com>
15479
15480         * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
15481         to be called before NativeWindow.WndProc.  Put the HwndCreating
15482         magic there to hook up our Hwnd's to handles.
15483
15484 2007-03-07  Gert Driesen  <drieseng@users.sourceforge.net>
15485
15486         * DataGridView.cs: Comment out debug code.
15487
15488 2007-03-07  Chris Toshok  <toshok@ximian.com>
15489
15490         [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
15491         to make the rest of the world happy]
15492
15493         * Control.cs (CreateHandle): there's no need to call
15494         XplatUI.SetVisible here, it's effectively done by
15495         XplatUI.CreateWindow on X now, and always was on windows.
15496
15497         * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
15498         shortcircuit out of the loop if we have a message loop running on
15499         this thread.
15500
15501         [Changelog from merge]
15502
15503         2007-03-05  Chris Toshok  <toshok@ximian.com>
15504
15505                 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
15506                 causes handle creation.
15507
15508         2007-02-28  Chris Toshok  <toshok@ximian.com>
15509
15510                 * ApplicationContext.cs: Add a flag to make sure we only raise the
15511                 ThreadExit event once (ExitThreadCore can be indirectly called
15512                 from a few places.)  I don't like the additional flag, but it
15513                 makes the event ordering/count correct.
15514
15515                 * Application.cs (MWFThread.LoopCount): don't use an enumerator
15516                 without locking the collection.  An enumerator doesn't give us any
15517                 protection from modification anyway.  Lock the thread hash and
15518                 replace the complicated enumerator loop with a foreach.
15519                 (Application.CloseForms): make internal so it can be called from
15520                 ApplicationContext.  This should probably be moved to MWFThread.
15521                 (Application.ExitThread): don't call MWFThread.Current.Exit()
15522                 here.  just call XplatUI.PostQuitMessage.  We'll exit the thread
15523                 when the runloop exits (in response to WM_QUIT.)
15524                 (Application.RunLoop): add a comment (and check) for
15525                 context.MainForm being null after setting context.MainForm.Visible
15526                 = true.  This is because you're perfectly free to dispose of a
15527                 form in VisibilityChanged.  Chalk this up to another case where we
15528                 need to synchronously generate WM_ACTIVATE from Control.Show.
15529                 Also, add handling for WM_QUIT here so we'll exit the loop.
15530                 
15531                 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit.  The
15532                 fact that we don't wait if we're only unmapping the whole_window
15533                 makes me a bit nervous, but it doesn't seem to cause any problems
15534                 yet.
15535
15536                 also, add a comment about the stupid, broken and wrong resetting
15537                 of PostQuitState to false in GetMessage().
15538
15539                 In PostQuitMessage, we need to add a WM_QUIT message to the
15540                 thread's queue.  We use the FosterParent to get the right
15541                 handle/hwnd/queue.
15542
15543                 Lastly, in SetVisible, we need to unmap both windows, since the
15544                 waiting only happens when we're unmapping the client window.  So
15545                 now, the *only* time we unmap just the whole_window is in the hack
15546                 for resizing a control to 0,0.
15547                 
15548         2007-02-21  Chris Toshok  <toshok@ximian.com>
15549
15550                 * Application.cs (CloseForms): rewrite this so that we don't
15551                 modify the list while we're traversing it.
15552
15553         2007-02-20  Chris Toshok  <toshok@ximian.com>
15554
15555                 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
15556                 of OnHandleCreated.
15557                 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
15558                 handle is created.  otherwise we'll create it here.
15559                 (VerticalScrollEvent): same here.
15560
15561                 * Application.cs (CloseForms): call Form.Dispose, don't post
15562                 WM_CLOSE_INTERNAL.
15563
15564                 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
15565                 here. Application should Dispose() of the Form's.
15566
15567                 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
15568                 WM_DESTROY as well.
15569                 (MapWindow,UnmapWindow): only actually do the waiting for
15570                 SHOWWINDOW if the control we're dealing with is a Form.
15571                 (CreateWindow): if the control isn't a form, SendMessage
15572                 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
15573
15574                 * Control.cs (SetVisibleCore): always use is_visible here, not
15575                 value.  If we use value, we can end up re-setting something
15576                 visible if, for instance, you do Control.Hide() in a delegate
15577                 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
15578
15579         2007-02-20  Chris Toshok  <toshok@ximian.com>
15580
15581                 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
15582                 the message we need.  PeekMessage returning false should not be a
15583                 condition under which we exit the loop.
15584
15585         2007-02-15  Chris Toshok  <toshok@ximian.com>
15586
15587                 * Control.cs (Refresh): only refresh if we've got a handle and are
15588                 visible.
15589                 (CreateAccessibilityInstance): CreateControl() here.
15590                 (UpdateChildrenZOrder): complicate the code loop even more by
15591                 taking into account controls that haven't had their handle
15592                 created, and those that aren't visible.  But on the flip side,
15593                 simplify the code by splitting it into two loops.  one which
15594                 builds up the list of child controls we're interested in, and the
15595                 other that sets the z order of those children.
15596
15597         2007-02-14  Chris Toshok  <toshok@ximian.com>
15598
15599                 * Control.cs: Control.AccessibilityObject causes the control to be
15600                 created, not just the handle.
15601
15602         2007-02-14  Chris Toshok  <toshok@ximian.com>
15603
15604                 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
15605                 problem on X where a window might have its handle created (and be
15606                 visible) while the window is unmapped.  calling XConfigureWindow
15607                 on an unmapped window is bad, and generates X errors.
15608
15609         2007-02-13  Chris Toshok  <toshok@ximian.com>
15610
15611                 * Control.cs (CreateHandle): don't loop over our children setting
15612                 their parent here.  do it when in WndProc when we're shown.
15613                 (UpdateChildrenZOrder): make this internal so we can call it from
15614                 ScrollableControl.
15615                 (WndProc): for WM_SHOWWINDOW, reparent the child control after
15616                 creating its handle.  Also, remove the calls to PerformLayout from
15617                 here.  they're done in ScrollableControl.OnVisibleChanged.  Also,
15618                 OnVisibleChanged only seems to be called directly here for the
15619                 toplevel control.  It's propagated down the window hierarchy by
15620                 calls to child.OnParentVisibleChanged.
15621                 (OnVisibleChanged): don't do layout here - it's done (oddly
15622                 enough, according to a glance at stack traces on ms.net..) in
15623                 ScrollableControl.
15624                 
15625                 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
15626                 z order of our children before calling PerformLayout.
15627
15628         2007-02-12  Chris Toshok  <toshok@ximian.com>
15629
15630                 [big change, fixes #80020]
15631                 
15632                 * AccessibleObject.cs: we need to make owner internal again to fix
15633                 some of ControlAccessibleObject.
15634
15635                 * Control.cs: lots of changes here.  add support for WM_CREATE,
15636                 for which we generate OnHandleCreated.  Remove the OnHandleCreated
15637                 call from CreateHandle.  Also add support for WM_SHOWWINDOW where
15638                 we create child controls.  leave the MonoTODO's for the
15639                 accessibility calls, but fix the exceptions so the tests pass.
15640
15641                 Add the InvalidOperationExceptions to Invoke methods, and remove a
15642                 couple of InvokeInternal methods we aren't using.
15643                 
15644                 Also, add a couple of CreateHandle calls in places where we know
15645                 the handles are being created but our code doesn't reference
15646                 .Handle.
15647
15648                 Make SetVisibleCore call OnVisibleChange if the handle isn't
15649                 created.  If the handle is created, we rely on XplatUI.SetVisible
15650                 generating the event synchronously.
15651                 
15652                 Lastly, make sure we don't use this.Handle inside CreateHandle,
15653                 because we can call back into client (and that code can dispose of
15654                 the control).
15655
15656                 * XplatUIStructs.cs: misc/cleanup.
15657
15658                 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
15659                 although we don't populate the wParam properly.
15660                 (CreateWindow): generate WM_CREATE.
15661                 (MapWindow,UnmapWindow): make these calls synchronous, at great
15662                 performance expense (particularly in the unmap case), to match
15663                 win32 behavior.
15664
15665                 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
15666                 to call it.
15667                 (set_MdiParent): don't recreate the handle unless it's been
15668                 created already.
15669                 
15670                 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
15671                 it's created.
15672
15673                 * NativeWindow.cs: this is probably the weirdest part of the
15674                 patch.  We need a way to link up the window being created to the
15675                 WM_CREATE message.  Since we can only be creating one window at a
15676                 time on a given thread, we keep track of a per-thread reference so
15677                 we can dispatch it properly.  We also need to keep track of the
15678                 Hwnd currently being created so that the win32 backend doesn't
15679                 have problems.
15680                 
15681                 * XplatUIWin32.cs: a similar change to the one we made in
15682                 NativeWindow.cs.
15683
15684 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
15685
15686         * ToolStripItem.cs: Make CalculatePreferredSize virtual.
15687         * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
15688         to draw the menu shortcut string.
15689
15690 2007-03-07  Jackson Harper  <jackson@ximian.com>
15691
15692         * TreeNode.cs: Add the 2.0 collapse method.
15693
15694 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
15695
15696         * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
15697
15698 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
15699
15700         * DataGridView.cs: Change DataSource will clear column and row
15701         lists. Call Invalidate() to reflect DataSource change.
15702
15703 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
15704
15705         * DataGridView.cs: Add rows when DataSource is System.Data.DataView
15706         and a new row is added to it.
15707
15708 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
15709
15710         * DataGridView.cs: Add columns when DataSource is en empty list but
15711         is a System.Data.DataView (from a System.Data.DataTable).
15712
15713 2007-03-06  Andreia Gaita  <avidigal@novell.com>
15714
15715         * Label.cs: Implement AutoEllipsis (2.0)
15716
15717 2007-03-06  Jackson Harper  <jackson@ximian.com>
15718
15719         * TreeView.cs: Implement 2.0 TopNode setter property.
15720         - Use a local var instead of the skipped_nodes field for computing
15721         how many nodes to skip.  Otherwise we won't scroll because the
15722         valuechanged handler checks if skipped_nodes is equal to the new
15723         value.
15724         - Implement 2.0 Sort method.
15725         - Add useless 2.0 DoubleBuffer property
15726         - Implement 2.0 LineColors property.  Lets you change the color of
15727         the lines in the tree. Terribly useful for creating non cohesive
15728         desktops.
15729         - Implement 2.0 image key feature.
15730
15731 2007-03-06  Jackson Harper  <jackson@ximian.com>
15732
15733         * TreeView.cs: We can't get the bounds of the nodes before raising
15734         the AfterSelect event, because that event could change the node's
15735         bounds (scrolling, font change, etc).
15736
15737 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15738
15739         * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
15740         * Form.cs: Don't recreate handle when creating FormWindowManager, just
15741           update window styles. In CreateParams us VisibleInternal instead of
15742           VIsible to get the actual visible flag set for this form.
15743         * FormWindowManager.cs: Activate the form whenever the mouse clicks on
15744           the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
15745           handle the case when the form is already maximized, in which case
15746           it should be restored. Fixes #81043.
15747
15748 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15749
15750         * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
15751
15752 2007-03-05  Jackson Harper  <jackson@ximian.com>
15753
15754         * TreeViewHitTestInfo.cs: implement.
15755
15756 2007-03-05  Jackson Harper  <jackson@ximian.com>
15757
15758         * InternalWindowManager.cs: class status fix.
15759
15760 2007-03-05  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15761
15762         * InternalWindowManager.cs: All windows that have a parent
15763         are confined to their parent when they're being moved.
15764         Fixes #80822.
15765
15766 2007-03-04  Gert Driesen  <drieseng@users.sourceforge.net>
15767
15768         * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
15769         on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
15770
15771 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15772
15773         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
15774           buttons invisible before deciding which ones should be visible
15775           (fixes minimize/maximize buttons showing up in toolwindows). Remove
15776           an unused variable.
15777         * InternalWindowManager.cs: Remove warning.
15778
15779 2007-03-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15780
15781         * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
15782         to throw an InvalidOperationException is virtual mode is being used.
15783
15784 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
15785
15786         * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
15787         ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
15788         ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
15789         ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
15790         ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
15791         ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
15792
15793 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15794
15795         * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
15796           driver.KeyboardDelay from XplatUI.KeyboardDelay 
15797         * XplatUIW      in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
15798           (patch by Sergey Volk)
15799
15800 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15801
15802         * ToolWindowManager.cs: Added, contains logic for
15803           tool windows.
15804         * CreateParams.cs: Add a few helper methods and an
15805           internal variable to know which control the CreateParams belongs
15806           to.
15807         * Control.cs: Call Form.ChangingParent when the
15808           parent is about to be changed.
15809         * XplatUIX11.cs: DeriveStyles (): Set
15810           caption_height for all windows that have captions and are children.
15811           Update to use ToolWindowManager instead of InternalWindowManager
15812           for ToolWindows.
15813         * XplatUIWin32.cs: Set fake window styles for all
15814           windows that have window managers.
15815         * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
15816           now duplicated for mdi windows when they are
15817           maximized, first for the buttons the window itself has, then for
15818           the buttons that appear in the menu bar. Makes things a little
15819           easier). Updated UpdateWindowDecorations, SetWindowState and the
15820           mouse eventhandlers accordingly.
15821         * Form.cs: Add ChangingParent (), contains the
15822           logic of what should happen when the parent changes. In MdiParent
15823           don't set things that ChangingParent () is doing. When handling
15824           WM_CLOSE, we can close the form if there are any other modal forms
15825           and the current form is a descendent of the modal form.
15826         * InternalWindowManager.cs: A lot of refactoring,
15827           the title buttons are now extracted to a separate container class
15828           that takes care of all button code (clicks, tooltips, etc). Moved
15829           Iconic|Maximized|Normal Bounds properties to this class from
15830           MdiWindowManager, so that the window state logic can succeed for
15831           other than mdi wm's. Implemented general window state change logic.
15832           Moved CreateButtons to ThemeWin32Classic, since the theme might
15833           override which buttons are available when as well as the exact
15834           location.
15835         * FormWindowManager.cs: Added, contains logic for
15836           normal forms.
15837         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
15838           which buttons go where (and if they are at all visible). 
15839           Removed special handling of maximized windows, since they aren't special. 
15840           In DrawManagedWindowDecorations don't try to draw the text if it is
15841           empty.
15842         * MdiClient.cs: ArrangeIconicWindows: Don't  calculate any sizes, 
15843           use whatever the wm gives us.
15844
15845 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
15846
15847         * ButtonBase.cs: Add 2.0 properties.
15848         * Button.cs: Override Draw for 2.0.
15849         * Control.cs: Add Entered and Selected properties.
15850         * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
15851         TextRenderer.cs: Make internal for 1.1 to unify drawing code.
15852         * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
15853         buttons.
15854         * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
15855
15856 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
15857
15858         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code.  :/
15859
15860 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
15861
15862         * XplatUIWin32.cs: Register a new class with Windows each time we get
15863         a new ClassStyle.  [Fixes bugs #79432, #80817]
15864         * Controls.cs: Set the correct ClassStyle in CreateParams.
15865         * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
15866
15867 2007-03-01  Gert Driesen  <drieseng@users.sourceforge.net>
15868
15869         * ListView.cs: Add fireEvent argument to ReorderColumn since the
15870         ColumnReordered event must not be signaled when modifying DisplayIndex
15871         of a ColumnHeader. Added internal ReorderColumns method which takes
15872         care of drawing, and updating the internal DisplayIndex of the
15873         ColumnHeader. Added AddColumn method which is invoked from
15874         ColumnHeaderCollection when adding or inserting columns, and which
15875         ensures that reorder_columns_indices is kept in sync. Avoid redrawing
15876         after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
15877         Recalculated dispay indices after removing a ColumnHeader.
15878         * ColumnHeader.cs: Save DisplayIndex separately from ListView to
15879         match MS. Allows last display index to be returned after ListView
15880         is disposed. Update actual location of ColumnHeader when DisplayIndex
15881         is modified.
15882
15883 2007-03-01  Everaldo Canuto  <everaldo@simios.org>
15884
15885         * LinkLabel.cs: Improve CalcTrimRectangle.
15886         
15887         * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
15888
15889 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
15890
15891         * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
15892         get rectangle as a result value.
15893
15894 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
15895
15896         * LinkLabel.cs: Theres some diferences between rectangle return from 
15897         MeasureCharacterRanges and the area used for DrawString to fix this 
15898         CalcMeasurementFactor method was created, it calcules the diferences
15899         to be use later to adjust rectangle in draw operations. Fixes #80473.
15900         
15901         * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
15902         to adjust draw rectangle.
15903
15904 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
15905
15906         * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
15907         text and some other changes to reduce and optimize source code.
15908
15909 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
15910
15911         * RadioButton.cs: Implement 2.0 event.
15912         * RelatedImageListAttribute.cs: Implement new class.
15913
15914 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
15915
15916         * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
15917
15918 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
15919
15920         * CheckBox.cs: Implement 2.0 functionality.
15921
15922 2007-02-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15923
15924         * ListView.cs: Refactor Add and AddRange methods of
15925         ListViewItemCollection, to not update the ListView
15926         everytime an item is added in AddRange. Also move the update
15927         code to a new CollectionChanged method, and call it
15928         from other methods that need it as well (this should also fix some
15929         bugs when Sorting is used).
15930
15931 2007-02-27  Jackson Harper  <jackson@ximian.com>
15932
15933         * TextControl.cs: Try to never let the caret stay in a non-text
15934         tag.
15935         * TextBoxBase.cs: Update the caret.
15936
15937 2007-02-26  Jonathan Pobst  <monkey@jpobst.com>
15938
15939         * XplatUIStructs.cs: Add some convenience methods for POINT structure.
15940         * XplatUIWin32.cs: Add some convenience methods for RECT structure,
15941         delete POINT structure, duplicate of one in XplatUIStructs.
15942         * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
15943
15944 2007-02-26  Gert Driesen  <drieseng@users.sourceforge.net>
15945
15946         * ListView.cs: Initialize LabelEditEventArgs after setting Text of
15947         edit box since otherwise the Label would immediately be set (even if
15948         the user did not modify the label). In OnKeyDown set Handled to true
15949         if Return or Escape was pressed. In ColumnHeaderCollection unlink
15950         columns that are to be removed. In ListViewItemCollection unlink items
15951         that are to be removed.
15952
15953 2007-02-24  Jonathan Pobst  <monkey@jpobst.com>
15954
15955         * TextRenderer.cs: If we set a GDI clip region, we need to clear
15956         it when we are done.  [Fixes bug #80949]
15957
15958 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
15959
15960         * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
15961
15962 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15963
15964         * ListView.cs: I forgot to commit the changes for ListView 
15965         in my previous patch.
15966
15967 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
15968
15969         * Clipboard.cs: Partially implement an overload of SetDataObject.
15970         * Form.cs: Implement ShowWithoutActivation.
15971         * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
15972
15973 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15974
15975         This is a first set of changes to make the Virtual mode works,
15976         by avoiding the retrieval of ListViewItem instances until
15977         draw time.
15978
15979         * ListView.cs: Store item position in the ListView instead of the
15980         ListViewItem, this way we don't request the Bounds property of
15981         ListViewItem inside the ListView calculations, as well as cache the item
15982         size in item_size field. Store indexes instead of ListViewItem
15983         instances in the matrix used by icon view. Add a ItemMatrixLocation
15984         struct to hold the row and col info of the matrix info.
15985
15986         * ListViewItem.cs: Don't store the location anymore, and only cache
15987         the rectangles for GetBounds. Use the ListView.GetItemLocation
15988         method to retrieve the actual location.
15989
15990 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
15991
15992         * TextRenderer.cs: Add clipping support, thanks to George.
15993         [Fixes bug #80949]
15994
15995 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
15996
15997         * ListViewItem.cs: Cancel label edit when item is removed from 
15998         ListView.
15999         * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
16000         event before the edit textbox is displayed.  Added CancelEdit method
16001         which is used end to editing while ignoring the value set by the
16002         user. In EndEdit, set focus to ListView to avoid losing focus to
16003         other controls. In ListViewItemCollection.Clear, cancel editing of
16004         any of the items.  In Remove, cancel editing of item being removed.
16005         Avoid udplicate code by modifing RemoveAt to invoke Remove.
16006
16007 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
16008
16009         * FileDialog.cs: Update FSEntry when move is successful. Fixes
16010         bug #80948.  
16011
16012 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
16013
16014         * MainMenu.cs: Change Draw method to take care about MenuOrigin to be 
16015         compatible with non X11 systems. Fixes #80901.
16016
16017 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
16018
16019         * ListView.cs: Added bool argument to UpdateMultiSelection to specify
16020         whether the item should be unselected and reselect. We do no want this
16021         when we're starting to edit the label. Do not fire the 
16022         SelectedIndexChanged event from ListView when its already been fired
16023         by modifying ListViewItem.Selected. Fixes bug #80943.
16024
16025 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
16026
16027         * TextRenderer.cs: Previos commit logic was backwards.
16028
16029 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
16030
16031         * TextRenderer.cs: Don't add padding on MeasureText if we were
16032         sent the NoPadding flag.
16033
16034 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
16035
16036         * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
16037         after DrawButton. To prevent image overlaps button borders SetClip and 
16038         ResetClip added before and after draw image. Fixes #79129.
16039
16040 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
16041
16042         * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify 
16043         window size, it fix problem when you run under win32 that theres
16044         Size diferent than ClientSize. Also fix controls size and positions
16045         to mimic Win32. Fixes #80837.
16046
16047 2007-02-22  Everaldo Canuto  <everaldo@simios.org>
16048
16049         * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on 
16050         menu area to fix some problems for non X11 systems. Fixes #80613.
16051
16052 2007-02-22  Jackson Harper  <jackson@ximian.com>
16053
16054         * TreeNode.cs: When a node is expanded, set its is_expanded flag
16055         even if it doesn't have any children.
16056
16057 2007-02-22  Jackson Harper  <jackson@ximian.com>
16058
16059         * TreeView.cs: Calculate the top node 'on the fly', this
16060         eliminates issues where you need to click on the tree before
16061         scrolling it to get the top node computed correctly.
16062         * TreeNodeCollection.cs: We don't need to mess with the top node
16063         anymore.
16064
16065 2007-02-22  Jackson Harper  <jackson@ximian.com>
16066
16067         * DataGridViewRow.cs: Fix typo so height can actually be set.
16068         Patch by Peter Grimm.
16069
16070 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
16071
16072         * FileDialog.cs: Fixed support for renaming files and directories.
16073         * ListView.cs: Do not lose focus when edit is canceled. Process
16074         Escape as regular key (to prevent closing of dialogs).
16075
16076 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
16077
16078         * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
16079         spaces. Changed spaces to tabs. Removed unnecessary init of bools.
16080
16081 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
16082
16083         * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
16084         did not modify label.
16085         * ListView.cs: Only set LabelEditEventArgs.Label if user actually
16086         modified the text. Reset Label when user presses Escape in edit mode.
16087         Move focus to ListView after having cancelled or finished editing the
16088         label.
16089
16090 2007-02-21  Gert Driesen  <drieseng@users.sourceforge.net>
16091
16092         * ComboBox.cs: Removed unnecessary initializations. Marked items field
16093         private. Clear textbox when Text is set to null and SelectedIndex is
16094         already -1.
16095         * FileDialog.cs: Removed unnecessary initializations. Removed 
16096         workarounds for ComboBox bugs that are now fixed. Modified
16097         DefaultExt, InitialDirectory and Title property to change null to
16098         zero-length string in getters. Avoid directly accessing fields.
16099
16100 2007-02-20  Jackson Harper  <jackson@ximian.com>
16101
16102         * TextControl.cs: Remove RecalAlignments call, that was some
16103         debugging leftovers.
16104         - Don't use the line indent when we shouldn't.
16105         * RichTextBox.cs: Add support for paragraph left indents.
16106
16107 2007-02-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16108
16109         * Control.cs: Fix BeginInvoke signature for 2.0 profile.
16110         Seems like the class status pages doesn't catch params differences.
16111
16112 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
16113
16114         * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
16115
16116 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
16117
16118         * ComboBox.cs: Setting Text should have no effect if item text of
16119         selected item exactly matches value. First lookup text using
16120         case-sensitive comparison, and fallback to case-insensitive comparison.
16121         FindString(Exact) returns -1 if search string is null. On 2.0 profile, 
16122         allow startIndex to be last index. Changed ArgumentOutOfRangeException
16123         paramname to match MS. Restart from first item if string is not found
16124         after startIndex. Fixed paramname of ArgumentNullException that is
16125         thrown for null value in ObjectCollection.Contains.
16126
16127 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
16128
16129         * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
16130
16131 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16132
16133         * ListControl.cs: In SelectedValue use value.Equals to compare for
16134         equality instead of ==, otherwise it will fail for strings.
16135         Fixes #80794.
16136
16137 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16138         
16139         * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
16140         since the caret won't show up unless ShowSelection is true. 
16141         Fixes #80795.
16142
16143 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16144
16145         * Application.cs: When disabling all forms but the main form, do not
16146           disable any descendants of the main form (such as mdi children or
16147           other parented forms). Fixes #80822 on Windows.
16148         * Form.cs: If we have a parent, set the WS_CHILD style.
16149         * Control.cs: Update the window styles if the control whose parent has
16150           changed is a form (the WS_CHILD style has to be switched).
16151
16152 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
16153
16154         * XplatUIStructs.cs: MsgUIState structure added.
16155
16156 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
16157
16158         * FileDialog.cs: Removed need for separate fileName field. On 2.0
16159         profile, do not check filename(s) for illegal character if filename(s)
16160         were set non-interactively but always check on 1.0 profile. Fixed NRE
16161          in DefaultExt and only strip off first leading dot. Improve exception
16162         message when invalid Filter is set. Do not ignore InitialDirectory if
16163         it does no exist. Store specified Title, and if empty use default
16164         title (depending on type of dialog). Added an internal DialogTitle 
16165         property for retrieving dialog title. Fixed logic of displayed dir to
16166         more closely match MS. Avoid setting ComboBox.Text to a zero-length 
16167         string as its buggy.
16168         * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
16169         FileName is a zero-length string (it can never be null). Override 
16170         DialogTitle property to set default title of dialog box.
16171         * SaveFileDialog.cs: Override DialogTitle property to set default
16172         title of dialog box.
16173
16174 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
16175
16176         * FileDialog.cs: Modify default text of filename and filetype labels
16177         to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
16178         after we've updated the SelectedIndex. Fixes part of bug #80887.
16179         * SaveFileDialog.cs: Set text of filetype label.
16180
16181 2007-02-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16182
16183         * LabelEditEventArgs.cs: New internal SetLabel method, to set the
16184         label field. Needed by latest Jackson's fixes for ListView.
16185
16186 2007-02-16  Andreia Gaita  <avidigal@novell.com>
16187
16188         * PrintPreviewControl/PrintPreviewDialog: Properly dispose of 
16189         print preview images.
16190
16191 2007-02-16  Jackson Harper  <jackson@ximian.com>
16192
16193         * ListView.cs: Make AfterLabelEdit work correctly.
16194         * FileDialog.cs: After changing the name of the folder, we have to
16195         make sure that it is created, or that we pop up an error because
16196         it already exists.
16197
16198 2007-02-16  Jackson Harper  <jackson@ximian.com>
16199
16200         * X11Dnd.cs: Implement aliases on mime handlers, so things like
16201         System.String are mapped to text.
16202         - Handle dataobjects, getting all the possible formats out of them
16203         - We dont need the drag event args before we give feedback. This
16204         allows feedback cursors to be immediate before selections have
16205         been converted.
16206
16207 2007-02-16  Jackson Harper  <jackson@ximian.com>
16208
16209         * TextBoxBase.cs: Modified the method for inserting images to
16210         taking a line and position instead of tag and position.
16211         * RichTextBox.cs: Handle PngBlip data by inserting the png image
16212         into the RTF file.
16213         * TextControl.cs: Allow images to be inserted as the first tag of
16214         a line.
16215         - Fix some off by one issues when we assume the first tag is a
16216         text tag, not an image tag.
16217
16218 2007-02-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16219
16220         * ListView.cs: Set focus to ListView when ItemControl gets a
16221         WM_RBUTTONDOWN message, to mimic .Net behaviour. 
16222         Fixes part of #80467.
16223
16224 2007-02-15  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16225
16226         * DateTimePicker.cs: Call RecreateHandle if the Format changes and
16227           validate Text input (if null or empty string reset Value to default
16228           value). Fixes #80830.
16229
16230 2007-02-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16231
16232         * ListView.cs: Set owner as null for columns and items when
16233         Dispose is invoked. Fixes #80607.
16234
16235 2007-02-14  Jonathan Pobst  <monkey@jpobst.com>
16236
16237         * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
16238         showing DropDowns, don't show a Grip when doing Flow layout.
16239         [This fixes the toolbox in PDN 2.72.]
16240         * ToolStripItem.cs: Add Anchor property and some internal properties to
16241         reduces needed changes to FlowLayout.
16242         * ToolStripOverflow.cs: Remove unused variable.
16243         * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
16244         use it in the layout calculations.
16245
16246 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
16247
16248         * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
16249         reported in #79640.
16250         
16251         * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
16252         size calculation.
16253
16254 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
16255
16256         * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from 
16257         MeasureString format, it can make button very large in some cases, it is
16258         strange but is what win32 do.
16259
16260 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
16261
16262         * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string 
16263         size calculation.
16264
16265         * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
16266         rendering, the value is based on MenuAccessKeysUnderlined.
16267
16268 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
16269
16270         * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
16271         for most themes.
16272         
16273         * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
16274         
16275         * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
16276         and use MenuAccessKeysUnderlined instead.
16277
16278 2007-02-13  Andreia Gaita  <avidigal@novell.com>
16279
16280         * ContainerControl.cs: Focus fix for nunit treeview selection bug.
16281         A selected control would not get a Focus call if:
16282                 - the default active control of the container is the same as
16283                   the one that was selected
16284                 - we are switching from one container to another
16285         Under these conditions, the container being selected already has
16286         an active_control, which is the same as the one being activated, 
16287         so set_ActiveControl would always return and not send the Focus
16288         call. Fix to check if the currently active control of the container
16289         is actually focused.
16290
16291 2007-02-13  Jonathan Pobst  <monkey@jpobst.com>
16292
16293         * StatusStrip.cs: Implement the spring layout.
16294         * ToolStripControlHost.cs: Make sure the hosted control's visibility
16295         always matches the host.
16296         * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
16297         and TextAfterImage.
16298
16299 2007-02-13  Andreia Gaita  <avidigal@novell.com>
16300
16301         * Control.cs: Code reorganization only.
16302           - Reorganize the WndProc cases so that each case has it's own handling method, 
16303           to help with the no-line-numbering stack traces.
16304           - Formatting changes (it's vstudio's fault, really :p)
16305
16306 2007-02-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16307
16308         * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
16309           Thread.CurrentUICulture to match DateTimePicker's (and MS)
16310           behaviour.
16311
16312 2007-02-12  Jackson Harper  <jackson@ximian.com>
16313
16314         * RichTextBox.cs:
16315         * TextBox.cs: By default we have a non multiline document
16316         - use the multiline property instead of the internal variable
16317         * TextBoxBase.cs: Treat multiline and non multiline the same in
16318         most places.
16319         - Use the documents multiline flag instead of tracking it ourself
16320         * TextControl.cs: Attempt at getting multiline to match MS
16321         behavior.  Lines now track an offset, which is either their X or Y
16322         offset depending on whether or not we are in multiline mode.
16323         - Update all the methods to understand that lines have an X value.
16324         - Fix crash in Undo::Duplicate when empty lines are deleted.
16325
16326 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
16327
16328         * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and 
16329         code moved to properties PreferredHeight and PreferredWidth. It solve the
16330         all problems when preferred sizes must be recalculated. Fixes #80801.
16331
16332 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
16333
16334         * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
16335         font height when compatible_text_rendering is false. Partially fix #80801.
16336
16337 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
16338
16339         * Form.cs: Fixed typo in exception message. Fixes bug #80779.
16340
16341 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
16342
16343         * Form.cs: Improved exception messages in ShowDialog.
16344
16345 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
16346
16347         * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
16348         PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
16349         if not set. Fixes bug #80764. Avoid accessing current_settings field
16350         directly.
16351
16352 2007-02-08  Everaldo Canuto  <everaldo@simios.org>
16353
16354         * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
16355         false.
16356
16357         * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
16358         public in 2.0 and for easy maintenance and dont break compatibility it is 
16359         internal in 1.1.
16360         
16361 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
16362
16363         * ToolStripItem.cs: Implement using images from ImageList.
16364
16365 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16366
16367         * DateTimePicker.cs: Change default date-formatting culture from
16368           CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
16369           seems to be the way MS does it.
16370
16371 2007-02-08  Andreia Gaita  <avidigal@novell.com>
16372
16373         * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image 
16374         (the 6 was cut off on the right side)
16375
16376 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
16377
16378         * Form.cs: Tell MenuStrips to close when the form is clicked.
16379         * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs, 
16380         ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
16381         ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
16382         ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add 
16383         support for Overflow, where items that do not fit are automatically
16384         reparented to a drop down menu.
16385         * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
16386         Also: fixes bug #80747.
16387
16388 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16389
16390         * ComboBox.cs: Remove warning (unused code).
16391         * ScrollableControl.cs: Remove warning for 1.1 profile.
16392
16393 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16394
16395         * Form.cs: Remove a warning.
16396
16397 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16398
16399         * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
16400           'g' specifier, not documented anywhere, but seems to always show up
16401           as a single space (might have something to do with the DateTime 'g'
16402           specifier, which is the era format, but since DateTimePicker can't
16403           go earlier than 1753 it wouldn't matter) . Fixed quote handling,
16404           won't crash if the format has an unmatched quote. Now shows
16405           single-character formats correctly. Fixes #80744.
16406
16407 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
16408
16409         * StatusStrip.cs: Stretch property needs to call base.Stretch,
16410         not this.Stretch to fix stack overflow. [Fixes bug #80760]
16411
16412 2007-02-07  Chris Toshok  <toshok@ximian.com>
16413
16414         * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
16415         background color.  it overwrites the background image we've
16416         already painted.  Fixes #80599.
16417
16418 2007-02-07  Chris Toshok  <toshok@ximian.com>
16419
16420         * DataGrid.cs: return immediately from Edit() when there are no
16421         columns.  Fixes #80662.
16422
16423 2007-02-07  Chris Toshok  <toshok@ximian.com>
16424
16425         * MessageBox.cs: fix #80625.  don't always show the Help button in
16426         2.0.  use the displayHelpButton parameter to determine if we
16427         should show it. Also, make the internal show_help field private.
16428
16429 2007-02-07  Chris Toshok  <toshok@ximian.com>
16430
16431         * Control.cs (SetVisibleCore): check in the proposed patch for
16432         80604, and set is_visible before calling CreateControl.
16433
16434 2007-02-07  Jonathan Pobst  <monkey@jpobst.com>
16435
16436         * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to 
16437         MonoInternalNote.  This is added automagically by VS2005, so let's not crash
16438         on it.
16439
16440 2007-02-06  Everaldo Canuto  <everaldo@simios.org>
16441
16442         * MenuAPI.cs: hotkey_active internal field added, it is required because
16443         we need to know when hotkeys must be draw, before this change a keystate
16444         Navigating was used but we can have menu in navigating state without
16445         hotkeys. Fixes #80694.
16446         
16447         * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
16448
16449 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16450
16451         * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
16452           corresponding events and methods to be internal for 1.1 profile and
16453           public for 2.0 profile (required by SizeGrip).
16454         * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
16455           implicit control list). Don't set the size nor the location of the
16456           SizeGrip anymore as it's not needed.
16457         * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
16458           draw directly on the captured control (fixes #80656). Removed
16459           ShowGrip (it wasn't used anywhere), redraw (always true), added
16460           GetDefaultSize and GetDefaultRectangle to calculate defaults.
16461         * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
16462           be called from SizeGrip.
16463
16464 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16465
16466         * Timer.cs: Throw ArgumentException if Interval <= 0.
16467
16468 2007-02-05  Jackson Harper  <jackson@ximian.com>
16469
16470         * TreeView.cs: We need to check scrollbar visibility when window
16471         visibility is updated, because non visible trees don't ever add
16472         scrollbars.
16473         * Cursor.cs: We want the override cursor to be reset to NULL when
16474         we set current cursor to the default cursor.
16475
16476 2007-02-05  Jackson Harper  <jackson@ximian.com>
16477
16478         * TextControl.cs: Don't have crlfs when we are non multiline.
16479         - Consolidate the line position.
16480
16481 2007-02-05  Jackson Harper  <jackson@ximian.com>
16482
16483         * X11Keyboard.cs: BACK+CTRL gets a special char code.
16484
16485 2007-02-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16486
16487         * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
16488           handling LeaveNotify->NotifyUngrab in order to send
16489           WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
16490           after calling XUngrabPointer, so we call WindowUngrabbed directly
16491           from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
16492         * Control.cs: Handle WM_CAPTURECHANGED in order to raise
16493           MouseCaptureChanged correctly. Also create handles if changing
16494           Capture (matches MS behaviour).
16495
16496 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16497
16498         * SizeGrip.cs: Make the last change 2.0 only.
16499
16500 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16501
16502         * SizeGrip.cs: If resizing and the capture is lost, revert any size
16503           changes to initial size (fixes #80597).
16504
16505 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16506
16507         * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
16508
16509 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16510
16511         * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
16512           background) and only allow dragging if enabled. This way the
16513           sizegrip can be used to fill the open square that otherwise would
16514           have been shown in the bottom right corner of ScrollableControl
16515           when ScrollableControl is not suppose to support sizing.
16516         * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
16517           sizegrip is shown and enabled, and hook up with necessary events.
16518
16519 2007-02-01  Chris Toshok  <toshok@ximian.com>
16520
16521         * DataGridTextBoxColumn.cs: clean up the
16522         GetFormattedString/GetColumnValueAtRow combination of functions.
16523         Also fix UpdateUI, and the initial state of
16524         IsInEditOrNavigateMode.
16525
16526         * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
16527         aren't supposed to scroll the textbox here, we're supposed to
16528         scroll the datagrid.
16529
16530 2007-02-01  Chris Toshok  <toshok@ximian.com>
16531
16532         * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
16533         setting the position.
16534
16535 2007-02-01  Chris Toshok  <toshok@ximian.com>
16536
16537         * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
16538         here, since the most recent focus fixes keep us from generating
16539         the Leave event when our textbox gets focus.
16540         (Edit): we should be passing null for the column style's
16541         instantText parameter.
16542         
16543 2007-02-01  Jonathan Pobst  <monkey@jpobst.com>
16544
16545         * ToolStripDropDownItem.cs: Make sure DropDownOpening event is 
16546         raised.  Fixes menu text/icons not showing up in PDN.
16547
16548 2007-02-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16549
16550         * Control.cs: Remove code in constructor that makes every
16551         control with WS_CHILD set have initial location -1, -1.
16552
16553 2007-01-31  Jackson Harper  <jackson@ximian.com>
16554
16555         * X11Dnd.cs: Take the keyboard on init to reduce coupling with
16556         XplatUIX11.
16557         * XplatUIX11.cs: Give teh keyboard to teh dnd.
16558
16559 2007-01-31  Jackson Harper  <jackson@ximian.com>
16560
16561         * X11Dnd.cs: Use IDataObject instead of the DataObject class.
16562         - Remove some debug code.
16563
16564 2007-01-31  Jackson Harper  <jackson@ximian.com>
16565
16566         * XplatUIX11.cs: If you set the override cursor during a grab, it
16567         should actually override the grab cursor.  This comes into play
16568         when you are setting custom cursors in a DND feedback method.
16569
16570 2007-01-31  Jackson Harper  <jackson@ximian.com>
16571
16572         * X11Dnd.cs: Add support for handling the QueryContinue and
16573         GiveFeedback events.
16574         - Cancel drag and drop actions when the escape key is clicked.
16575         * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
16576         can handle the ESCAPE key.
16577         - Allow dnd to swallow BUTTONUP messages if it needs to.  This is
16578         done when dnd events are continued after the button is released.
16579         - Add a new helper method so that dnd can translate key events.
16580
16581 2007-01-31  Alexander Olk  <alex.olk@googlemail.com>
16582
16583         * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
16584         make it more obvious what is happening.
16585
16586 2007-01-30  Jackson Harper  <jackson@ximian.com>
16587
16588         * XplatUIX11.cs: Don't break when handling button release in drag
16589         and drop operations. We need that BUTTONUP message to get through
16590         so capture is released.
16591         * X11Dnd.cs: We don't need to manually grab the pointer anymore,
16592         this is handled automatically when the mouse is down.
16593
16594 2007-01-30  Jackson Harper  <jackson@ximian.com>
16595
16596         * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
16597         is closed, so we need to make sure that we aren't changing the
16598         dialog result when the OK (Open or Save) button has been clicked
16599         and we are closing the window ourselves.  Note we don't need to
16600         worry about the cache being written in this case, because it was
16601         already done in the previous FilOk call.
16602
16603 2007-01-30  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16604         
16605         * DateTimePicker.cs: Remove a warning.
16606         * ComboBox.cs: Remove a couple of warnings.
16607
16608 2007-01-29  Chris Toshok  <toshok@ximian.com>
16609
16610         * XplatUIX11.cs: don't crash, and remove the icon if the user has
16611         set one, if SetIcon is passed a null icon.
16612
16613 2007-01-29  Andreia Gaita  <avidigal@novell.com>
16614
16615         * TextBox.cs: Redraw when the password characters changes
16616         * TextControl.cs: Check if textbox has a password char and draw 
16617         a line of password chars instead of the text in the line. LineTag gets 
16618         an extra Draw() method which allows document.Draw to override the text 
16619         that will be drawn. Removes 1024 char limitation on length of passworded 
16620         lines.
16621
16622 2007-01-29  Jackson Harper  <jackson@ximian.com>
16623
16624         * TextBoxBase.cs: Deleting sections of text is undoable.  Deleting
16625         single chars is not.
16626
16627 2007-01-28  Jonathan Pobst  <monkey@jpobst.com>
16628
16629         * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
16630         one pixel.  Fix a StackOverflowException caused by an overload wrongly
16631         calling itself.
16632
16633 2007-01-26  Everaldo Canuto  <everaldo@simios.org>
16634
16635         * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
16636         also remove ProcessArrowKey and put the code inside ProcessKeys.
16637
16638 2007-01-26  Jonathan Pobst  <monkey@jpobst.com>
16639
16640         * PaddingConverter.cs: Added.
16641
16642 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16643         
16644         * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
16645         ShowPanels is false (fixes #80600). Only draw up to 127 characters
16646         of text (fixes #80601). For panels clip the text to draw to the
16647         panel (fixes #80603).
16648
16649 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16650
16651         * ComboBox.cs: Fixed implementation of ResetText.
16652
16653 2007-01-25  Jackson Harper  <jackson@ximian.com>
16654
16655         * TextControl.cs: For the last char of a line we need to use the
16656         line size, not that chars width, since it won't actually be
16657         computed since the right side of a char is based on the start of
16658         the left side of the next char, and the next char does not exist.
16659
16660 2007-01-25  Chris Toshok  <toshok@ximian.com>
16661
16662         * Splitter.cs: fix the new unit tests, and reindent some switch
16663         statements.
16664
16665 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16666
16667         * ComboBox.cs: Implemented 2.0 methods and events.
16668         * TextBoxBase.cs: Added OnTextUpdate, so that
16669         ComboBox.ComboTextBox can inform ComboBox of it.
16670
16671 2007-01-25  Jackson Harper  <jackson@ximian.com>
16672
16673         * TextControl.cs: Respect ShowSelection when deciding whether or
16674         not to display the caret, this allows comboboxes to have carets
16675         when the combotextbox does not have focus.
16676
16677 2007-01-25  Jackson Harper  <jackson@ximian.com>
16678
16679         * TextControl.cs: Add a Suspend/Resume for updating, basically the
16680         same as the Suspend/Resume for recalc, except this will do actual
16681         Invalidates.
16682         - New Undo manager, works much like the MS version.
16683         - Implemented Redo
16684         * TextBoxBase.cs: The Cut operation is undoable.
16685
16686 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16687         
16688         * TextBoxBase.cs: Don't antialias text. Makes it look way better
16689         on Windows (no difference on Linux).    
16690
16691 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16692
16693         * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
16694         we don't want to activate any windows. Fixes #79433.
16695
16696 2007-01-25  Jonathan Pobst  <monkey@jpobst.com>
16697
16698         - ButtonBase.cs: Fix capitalization of parameter: disposing.
16699         [Fixes bug #80609]
16700
16701 2007-01-25  Alexander Olk  <alex.olk@googlemail.com>
16702
16703         * FileDialog.cs:
16704         - Move to using System.ComponentModel.EventHandlerList
16705         - Replace Refresh with Invalidate
16706         - Clear the mime filecache on closing
16707         - Some other memory reducing work. After beeing closed FD now uses
16708           only about 300 KB for the fdo mime stuff plus the memory of the
16709           cached icons.
16710         * Mime.cs: Changed coding style and removed unnecessary commented
16711         code. Some more memory memory reducing work.
16712
16713 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16714
16715         * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
16716         a few other missing 2.0 properties.
16717         * Theme.cs: Added DrawFlatStyleComboBox.
16718         * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
16719
16720 2007-01-24  Chris Toshok  <toshok@ximian.com>
16721
16722         * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
16723         wake_waiting flag, not just when there's data to be read.  if we
16724         don't, then future wakeup's won't reach us and we'll be doomed to
16725         wait for the entire 1 second timeout forever (unless there are X
16726         events to be had).
16727
16728 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
16729
16730         * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
16731         until you pass Items.Count, not Items.Count - 1 like 1.1.
16732
16733 2007-01-24  Gert Driesen  <drieseng@users.sourceforge.net>
16734
16735         * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
16736
16737 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
16738
16739         * ToolStripContainer.cs: The recent Dock fix exposed that I was
16740         adding the panels in the wrong order.
16741
16742 2007-01-24  Jackson Harper  <jackson@ximian.com>
16743
16744         * TextBoxBase.cs: When we move the caret we also need to move the
16745         selection, this fixes some random crashing after doing select
16746         text, unselect, delete a char, paste.
16747
16748 2007-01-24  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16749
16750         * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
16751
16752 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
16753
16754         * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
16755         OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553. 
16756         * ToolBar.cs: Force redraw in BackgroundImageChanged.
16757
16758 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
16759
16760         * ToolBar.cs:
16761         - Implement support for vertical toolbars. Fixes #80539;
16762         - Call LayoutToolBar when resize, it fix some other problems in layout.
16763         - Rename requested_height to requested_size, as we can have width on it
16764         when toolbar is vertical.
16765         - Create a private property "Vertical" that uses Dock to verify when 
16766         toolbar is vertical or not.
16767         - Set ControlStyles when change Dock property.
16768         - Refactory in LayoutToolBar to have better variables names and to support
16769         vertical toolbars.
16770         - Fixes default value for ButtonSize when button count is equal zero, size
16771         must be (39, 36) test case writed.
16772
16773 2007-01-23  Chris Toshok  <toshok@ximian.com>
16774
16775         * Control.cs: fix the checks so that they work correctly for mdi
16776         parents/children.
16777
16778 2007-01-23  Chris Toshok  <toshok@ximian.com>
16779
16780         * Control.cs: ControlCollection seems to have super-secret
16781         abstraction breaking knowledge of Mdi containers.  allow MdiClient
16782         to add toplevel controls.
16783
16784 2007-01-23  Chris Toshok  <toshok@ximian.com>
16785
16786         * Control.cs: throw an ArgumentException if a toplevel control is
16787         added to our control collection from ControlCollection.Add, as
16788         well as from ControlCollection.IList.Add.  This fixes the
16789         ControlSetTopLevelTest.TestTopLevelAdd unit test.
16790
16791         Also, in ControlCollection.IList.Add, don't through an
16792         ArgumentNullException, throw an ArgumentException, when value ==
16793         null.  This matches MS.
16794
16795 2007-01-23  Chris Toshok  <toshok@ximian.com>
16796
16797         * BindingSource.cs: initial, incomplete, implementation of
16798         BindingSource.
16799
16800 2007-01-23  Jackson Harper  <jackson@ximian.com>
16801
16802         * TextControl.cs:
16803         * TextBoxBase.cs: Checking in some pieces of the undo stuff so
16804         that I can fix a broken unit test (TextBoxTest::ClearUndo)
16805         
16806 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
16807
16808         * ToolBar.cs: Add status fields to ToolBarButtonInfo.
16809
16810 2007-01-23  Andreia Gaita  <avidigal@novell.com>
16811
16812         * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
16813         * TreeNodeCollection.cs: New Add() methods, ContainsKey and
16814         IndexOfKey() for 2.0
16815
16816 2007-01-23  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16817
16818         * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
16819         to prevent it from changing z-order.
16820         * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
16821         leave UI updates in MdiWindowManager.
16822         * InternalWindowManager.cs: Check for 0 sized nc areas and make them
16823         1 sized (NC handling goes weird on Linux otherwise).
16824         * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
16825         necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
16826         remove a few NCRequestRecalcs. Changed calculations in IconicBounds
16827         to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
16828         and SetWindowState(s) to allow for changing the size of an activated child
16829         before activating it (reduces a lot of flicker).
16830
16831 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
16832
16833         * Form.cs: Changing FormBorderStyle has different semantics based
16834         on whether the Form is visible or not.  If not visible, don't change
16835         the Size.  But InvalidateNC needs to be called to force the window
16836         to pick up the changes and redraw itself.  [Fixes bug #80574]
16837
16838 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
16839
16840         [Moma work]
16841         * ContainerControl.cs: ProcessCmdKey.
16842         * ErrorProvider.cs: new constructor.
16843         * Form.cs: fix AutoValidateEvent compiler warning.
16844         * Label.cs: fix OnAutoSizeChanged compiler warning.
16845         * MenuStrip.cs: fix CanOverflow compiler warning.
16846         * TabControl.cs: SelectTab, OnSelected methods, Selected event.
16847         * TextBox.cs: Dispose.
16848         * ToolStrip.cs: CanOverflow, re-enable double buffering.
16849         * ToolStripControlHost.cs: fix CausesValidation compiler warning.
16850         * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
16851         * ToolStripItem.cs: Overflow, RightToLeft properties.
16852
16853 2007-01-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16854
16855         * Form.cs: Move the layout of the main form to MdiWindowManager.
16856         * MdiWindowManager.cs: If WindowState changes from or to Maximized,
16857         do a layout of the main window to update MdiClient's client area to
16858         the right area. Fixes #80533. Remove the calculation of nc size, 
16859         it was just wrong and the correct one is the same as for 
16860         InternalWindowManager. 
16861
16862 2007-01-20  Jonathan Pobst  <monkey@jpobst.com>
16863
16864         * Control.cs: Setting Anchor or Dock needs to reset the other
16865         to its default.  [Fixes bug #80556]
16866
16867 2007-01-20  Chris Toshok  <toshok@ximian.com>
16868
16869         * CheckedListBox.cs: class status changes.
16870
16871         * ScrollableControl.cs: same.
16872
16873         * RichTextBox.cs: same.
16874
16875         * ContainerControl.cs: same.
16876
16877         * ListView.cs: same.
16878
16879         * NotifyIcon.cs: same.
16880
16881         * MenuStrip.cs: same.
16882
16883         * RadioButton.cs: same.
16884
16885         * CheckBox.cs: same.
16886
16887         * PrintPreviewDialog.cs: same.
16888
16889         * Form.cs: same.
16890
16891 2007-01-19  Jonathan Pobst  <monkey@jpobst.com>
16892
16893         * TreeNode.cs: Apply Alan's patch for Name property.
16894
16895 2007-01-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16896         
16897         * Form.cs: Implemented SizeGripStyle.
16898         * SizeGrip.cs: Check for minimum and maximum size for the
16899         control being resized and only resize if size has actually
16900         changed.
16901
16902 2007-01-19  Chris Toshok  <toshok@ximian.com>
16903
16904         * DataGridColumnStyle.cs: stop setting _readonly in the
16905         PropertyDescriptor setter.  fixes a unit test failure.
16906
16907         also, rename ParentReadOnly to TableStyleReadOnly, and have it
16908         just consult our table style (if we have one).  We don't need to
16909         consult the datagrid readonly attribute because that's passed in
16910         as the _ro arg to Edit.  this simplifies things a little.
16911         
16912         * DataGrid.cs: use CurrentColumn instead of
16913         current_cell.ColumnNumber just to simplify some of the code.
16914
16915         switch the order of some things in the CurrentCell setter to keep
16916         the previous cell from getting a textbox again -
16917         EnsureCellVisibility causes scrolling to happen, which calls Edit.
16918         So we need to set the new cell before calling it.
16919         
16920         call Edit in OnEnter, as does Microsoft.
16921         
16922         also, make sure the current table style isn't the one we create
16923         initially when checking to see if it's different than the one
16924         we're setting it to in BindColumns (this fixes #80421).
16925
16926         * GridTableStylesCollection.cs: table styles can have "" for a
16927         mapping name.  part of the fix for #80421.
16928
16929         * DataGridTextBoxColumn.cs: simplify the readonly calculation in
16930         Edit significantly.
16931
16932 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
16933
16934         * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
16935         and less GDI object leaky-er.
16936
16937 2007-01-18  Andreia Gaita  <avidigal@novell.com>
16938
16939         * LinkLabel.cs: Add opaque control style
16940
16941 2007-01-18  Jackson Harper  <jackson@ximian.com>
16942
16943         * TextControl.cs: Calculate width properly.
16944         - Don't store the tag's X offset, this can be figured out very
16945         easily.
16946         - When getting the caret tag make sure to get the last empty tag.
16947
16948 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
16949
16950         * Form.cs: Recalculate our size after setting a new FormBorderStyle.
16951         [Fixes bug #79959]
16952
16953         * Control.cs: Color.Empty shouldn't count for previous transparent
16954         redraw changes.
16955
16956 2007-01-18  Jackson Harper  <jackson@ximian.com>
16957
16958         * TextBox.cs:
16959         * RichTextBox.cs:
16960         * TextControl.cs: Starting to merge in some pieces of my older
16961         undo work.  Basically just some slight cleanup of the undo API.
16962
16963 2007-01-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16964
16965         * TrackBar.cs: Fix signature of RightToLeftLayout.
16966         * StatusBar.cs: Implemented missing 2.0 methods and attributes.
16967         * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
16968         * Application.cs: Implemented UseWaitCursor.
16969
16970 2007-01-18  Jackson Harper  <jackson@ximian.com>
16971
16972         * TextControl.cs: We can't skip tags if any part of the tag is
16973         visible.
16974
16975 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
16976
16977         * ContainerControl.cs: Override OnLayout.
16978
16979 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
16980
16981         * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
16982
16983         * ContextMenuStrip.cs: Make sure context menu is shown on top of 
16984         everything else.
16985
16986 2007-01-18  Chris Toshok  <toshok@ximian.com>
16987
16988         * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
16989         (leftover from the container_selected days, I'd wager).  fixes bug
16990         #80546.
16991
16992 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
16993
16994         * Control.cs: Apply patch from George to fix the new testcase on
16995         bug #80451.  We can't just check for Color.Transparent, we need 
16996         to check if the back color's alpha channel is < 255.
16997
16998 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
16999
17000         * Form.cs: Move setting show_icon = true to before the constructor
17001         so that the base constructor has that information when it calculates
17002         the form's size.  Was causing forms to be (6, 6) bigger than they
17003         were supposed to be.  Thanks for catching this Rolf!
17004
17005 2007-01-18  Jackson Harper  <jackson@ximian.com>
17006
17007         * TextControl.cs: When replacing a selection we need to invalidate
17008         from the initial selection start, because selection start is moved
17009         to the end of the replacement.
17010
17011 2007-01-18  Andreia Gaita  <avidigal@novell.com>
17012
17013         * LinkLabel.cs: Missing ControlStyles. Fixes #80482
17014
17015 2007-01-18  Chris Toshok  <toshok@ximian.com>
17016
17017         * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
17018         I just added.
17019
17020 2007-01-17  Everaldo Canuto  <everaldo@simios.org>
17021
17022         * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every 
17023         layout methods and properties from ToolBarButton must be available
17024         into ToolBarButtonInfo.
17025
17026 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
17027
17028         * Control.cs: If the control has a transparent background, we
17029         need to refresh it when it moves and when it's parent's background
17030         image changes.  [Fixes bug #80451]
17031
17032 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
17033
17034         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code!  Doh!
17035
17036 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
17037
17038         * XplatUIWin32.cs: Implement proper double buffering for Windows.
17039         [Fixes bug #80447, and probably speeds up things as well]
17040
17041 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17042
17043         * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
17044         * XplatUIWin32.cs: We need to recalculate NC size after changing 
17045         window style to toolwindow (otherwise the client rectangle will be
17046         3 pixels to small for some reason).
17047         * MdiWindowManager.cs: Revert NC size calculations to match how
17048         they are calculated only based on window styles (to match
17049         Win32AdjustWindowRectEx, since otherwise when setting size or 
17050         location, Control will call Win32AdjustWindowRectEx to update client 
17051         size, which would provoke a paint, then we'd get a NCCALCSIZE and 
17052         calculate a different value of client size causing another paint 
17053         (and flickering))
17054         * InternalWindowManager.cs: When moving or resizing a window only
17055         update size or location if they actually changed.
17056         * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
17057         (seems to match Windows behaviour better). Cleaned up 
17058         ManagedWindowDecorations to draw what's needed and nothing else
17059         (was drawing borders and lines where they shouldn't be)
17060         * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
17061         (style = 0xFFFF) and takes into account caption height when 
17062         calculating window rectangle.   
17063
17064 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
17065
17066         * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button 
17067         can be added to toolbar multiple times, we need to maintain a list of 
17068         button information for each positions.
17069
17070 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
17071
17072         * ToolBar.cs: Some small stetic changes.
17073
17074 2007-01-16  Jackson Harper  <jackson@ximian.com>
17075
17076         * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
17077         that allow us to have nested recalc = false blocks.
17078         - Add paste support for images in the RichTextBox
17079         * RichTextBox.cs: flush the text after the color is changed, so
17080         the change takes effect.
17081         - Use SuspendRecalc
17082         - Some extra debugging info
17083         * TextControl.cs: Tags no longer track their length, it is just
17084         computed from the next tags length, this makes things a little
17085         simpler and reduces places that we have to track length changes.
17086         - Refactored the linetag class a little so we could make it
17087         a base class for different kinds of tags
17088         - Created a image tag, a tag that can have a single image inserted
17089         into it
17090         - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
17091         that we can call suspend multiple times.
17092         - Add some debugging methods
17093
17094 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17095
17096         * MdiClient.cs: Add ActivatePreviousChild for 
17097         mdi child window navigation.
17098         * Form.cs: Use MdiClient.ActivateNextChild/
17099         ActivatePreviousChild instead of Form.SelectNextControl
17100         to select the next/previous child since 
17101         SelectNextControl doesn't do it in the same order
17102         as mdi children should do it.
17103
17104 2007-01-16  Chris Toshok  <toshok@ximian.com>
17105
17106         * Control.cs: remove container_selected field.
17107
17108 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17109
17110         * MdiClient.cs: Update main form's ActiveChild when
17111         updating keyboard focus for the mdi child.
17112
17113 2007-01-16  Jonathan Pobst  <jpobst@novell.com>
17114
17115         * Control.cs: PreferredSize fix.
17116
17117         * Form.cs: Add several 2.0 events, properties, and methods.
17118
17119 2007-01-16  Gert Driesen  <drieseng@users.sourceforge.net>
17120
17121         * Form.cs: Provide meaningful message when MdiParent is assigned a
17122         Form that is not an MdiContainer.
17123
17124 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17125
17126         * MdiClient.cs: Update main form's ActiveChild when
17127         activating a mdi child.
17128
17129 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17130
17131         * MdiWindowManager.cs: Fix NRE when merging menus and main form
17132         doesn't have a menu.
17133
17134         * Form.cs: Request NCRecalc after creating a mdi child window.
17135         Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab, 
17136         Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
17137         
17138         * MdiClient.cs: Add new method SendFocusToActiveChild that either
17139         sends keyboard focus to the active child, or to the MdiClient
17140         if there are no child forms.
17141         
17142 2007-01-15  Chris Toshok  <toshok@ximian.com>
17143
17144         * ListView.cs: drop the *Internal overrides, just do our work in
17145         ItemControl's WndProc instead.
17146
17147         * UpDownBase.cs: a few large changes.  Fix up the Selectable state
17148         of the various controls, and forward the events properly (in the
17149         same manner as MS) from the textbox to the UpDown.  Also the
17150         ActiveControl of the UpDownBase gets set properly now.  Finally,
17151         we don't call UpdateEditText from the ctor.  Fixes bug #79957.
17152
17153         * NumericUpDown.cs: set Text in the ctor.
17154
17155         * DomainUpDown.cs: call UpdateEditText in the ctor.
17156         
17157         * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
17158         so even a Selectable = false textbox can be focused if you click
17159         in it.  Go figure.
17160
17161         * Control.cs: remove On{Got,Lost}FocusInternal.  Subclasses can
17162         just add their handling in their respective WndProc's.  Also add
17163         an explicit FocusInternal method that doesn't consult CanFocus
17164         before calling Select(this).
17165
17166         * TextBoxBase.cs: deal with removal of the FocusInternal calls -
17167         do our work in WndProc instead.
17168
17169         * TabControl.cs: same.
17170
17171         * ComboBox.cs: same.
17172
17173 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
17174
17175         * Menu.cs: implement MergeItems and Replace for MenuMerge method.
17176         Fixes #80006.
17177
17178 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17179
17180         * ListViewItem.cs:
17181         * ThemeWin32Classic.cs: Don't draw the item text outside
17182         item bounds in Details view, as well as use trimming.
17183         Fixes bug #80376.
17184
17185 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
17186
17187         * Form.cs: Implement Form.ShowIcon.
17188         
17189         * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
17190         null, which when combined with the DlgModalFrame window style removes
17191         the icon from the title bar.
17192
17193 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
17194
17195         * Control.cs: Call OnMouseClick after OnClick. (2.0)
17196
17197 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
17198
17199         * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
17200         menu when mdi child windows theres a menu, uses insert to get icon
17201         at first position. Partially fix #80006.
17202
17203 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
17204
17205         * Clipboard.cs: Implement 2.0 methods.
17206
17207 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
17208
17209         * Menu.cs: Implement Insert method of MenuItemCollection class
17210         to fix MenuMerge.
17211
17212 2007-01-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17213
17214         * ListView.cs: Implement 2.0 FindItemWithText method.
17215
17216 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
17217
17218         * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
17219         to calculate menu bar size. Fixes #80290.
17220
17221 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
17222
17223         * ThemeWin32Classic.cs: Fix position of menuitem check mark.
17224
17225 2007-01-11  Chris Toshok  <toshok@ximian.com>
17226
17227         * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
17228         initial form.
17229
17230 2007-01-11  Chris Toshok  <toshok@ximian.com>
17231
17232         * LinkLabel.cs: make sure to call base.Select in our Select method
17233         if it turns out we're going to be selected (i.e. if we have a link
17234         that is going to receive focus).  That way our container's
17235         ActiveControl is updated properly.
17236
17237 2007-01-11  Chris Toshok  <toshok@ximian.com>
17238
17239         * LinkLabel.cs: turns out that LinkLabels are only Selectable if
17240         they have 1 or more links.  this fixes the crash gert reported.
17241
17242 2007-01-11  Andreia Gaita  <avidigal@novell.com>
17243
17244         * ContainerControl.cs: Remove ContainerSelected flag, not needed
17245         anymore.
17246
17247         * Control.cs (Controls.Add): Check if control to be added to the collection
17248         is a top level control, and throw an ArgumentException if it is.
17249         Remove ContainerSelectedFlag, not needed anymore.
17250
17251         * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
17252         top most control doesn't activate the form. This fixes a problem in the
17253         MessageBox, where the default button wouldn't get focus because the form
17254         was activated before being Loaded - when the Owner is set, SetTopMost is
17255         called, and it would activate it.
17256
17257 2007-01-11  Jonathan Pobst  <jpobst@novell.com>
17258
17259         * Button.cs: When clicked and setting the parent form's DialogResult,
17260         use FindForm instead of Parent, since parent could be a container
17261         control and not the Form.  Fixes bug #80495.
17262
17263 2007-01-10  Chris Toshok  <toshok@ximian.com>
17264
17265         * Form.cs: move the call to SendControlFocus into the same
17266         is_loaded check.
17267
17268 2007-01-10  Chris Toshok  <toshok@ximian.com>
17269
17270         * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
17271         It breaks in the face of the new ActiveControl stuff, and should
17272         be unnecessary.
17273
17274         * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
17275         activecontrol's focus if it's not already set, after we set
17276         ActiveControl, but before we call OnActivated.  Re-fixes #79667
17277         after the previous focus/active control fixes regressed it.
17278
17279         * Control.cs: reindent some code.
17280         
17281 2007-01-10  Chris Toshok  <toshok@ximian.com>
17282
17283         * Splitter.cs: clearing some outstanding changes from my tree.
17284         Replace all accesses (not writes) to the internal dock_style field
17285         with the Dock property.
17286
17287 2007-01-10  Chris Toshok  <toshok@ximian.com>
17288
17289         * Control.cs: make FireEnter, FireLeave, FireValidating, and
17290         FireValidated virtual.
17291
17292         * Form.cs: override and don't chain up calls to FireEnter and
17293         FireLeave.
17294
17295 2007-01-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17296
17297         * ListView.cs: Add more text padding space when using
17298         auto resize for columns (the previous value didn't work fine).
17299
17300         * ThemeWin32Classic.cs: Update text position inside columns,
17301         to match the appeareance of .Net.
17302
17303         * ColumnHeader.cs: When using auto resize, only the Width should
17304         depend on the sub items, not the Height. Also, set width after
17305         auto resizing (the value of Width should never remain as -1 or -2).
17306
17307 2007-01-10  Chris Toshok  <toshok@ximian.com>
17308
17309         * Application.cs: fix compilation errors when debug is enabled.
17310
17311 2007-01-10  Chris Toshok  <toshok@ximian.com>
17312
17313         * ContainerControl.cs (set_ActiveControl): rework this a bit (and
17314         add some nice ascii art pictures and explanation of the process).
17315         (GetMostDeeplyNestedActiveControl): new utility function we need
17316         because our ActiveControl can refer to a child container with its
17317         own ActiveControl.
17318
17319         * Form.cs (OnActivated): remove the call to SelectActiveControl
17320         from here, since you can override this method and not chain up,
17321         and winforms still sets the active control.
17322         (OnCreateControl): also remove the unnecessary SelectActiveControl
17323         call from here.
17324         (WndProc): it's actually called from the WM_ACTIVATE block, just
17325         before calling OnActivated.
17326
17327         * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
17328         inside the else.  the ActiveControl setter will end up setting
17329         focus on @control.  This keeps us from setting it again (and
17330         generating an extra LostFocus/GotFocus pair).
17331         (Select (bool, bool)): reindent.
17332
17333 2007-01-10  Jonathan Pobst  <jpobst@novell.com>
17334
17335         * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
17336         StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
17337         ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
17338         ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
17339         ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
17340         ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
17341         ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
17342         ToolStripTextBox.cs: Another wave of corcompare work.
17343
17344 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17345
17346         * ColumnHeader.cs: Implement 2.0 AutoResize method using
17347         the Width property.
17348
17349         * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
17350         methods by callling Column.AutoResize method on columns.
17351
17352 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
17353
17354         * Control.cs: Provide proper implementations of PreferredSize
17355         and GetPreferredSize (2.0).
17356
17357 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
17358
17359         * Form.cs: Remove one character (!) to make my previous OnClosing
17360         stuff work for modal windows like MessageBox.
17361
17362 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17363
17364         * ListView.cs:
17365         * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
17366         ListView.Columns to get the last displayed column. Fixes #80452.
17367
17368 2007-01-09  Everaldo Canuto  <everaldo@simios.org>
17369
17370         * Label.cs, LinkLabel.cs: Source code identation fixes.
17371
17372 2007-01-08  Everaldo Canuto  <everaldo@simios.org>
17373
17374         * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
17375         we dont need to invalidate only borders because when we invalidate four
17376         border lines the invalidate's generates a complete redraw of button, 
17377         because it now invalidate a complete rect some other redraws operations
17378         are fixed. Fixes #80196.
17379         
17380         * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
17381         Remove ToolBarInvalidateEntireButton as it is not used.
17382
17383 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
17384         
17385         * Form.cs: Make sure that both OnClosing and OnFormClosing are
17386         called for 2.0 profile.
17387         * CloseReason.cs: Make class internal for 1.1.
17388
17389 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
17390
17391         * ToolStripManager.cs: Implement FindToolStrip functionality.
17392         * ToolStrip.cs: Register and unregister with ToolStripManager.
17393
17394 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
17395
17396         * Control.cs: This was messy.  2.0 moves much of ControlCollection
17397         to ArrangedElementCollection.  Implemented this with as few #if's as 
17398         possible (which is still too many).
17399
17400 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
17401
17402         * Control.cs: Implement SizeFromClientSize() [2.0].
17403
17404 2007-01-07  Everaldo Canuto  <everaldo@simios.org>
17405
17406         * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
17407         use Theme.BorderSize to calculate area instead of static value 1, 
17408         by the way use new BorderStaticSize instead     Border3DSize when 
17409         border_static is true. Fixes #79537.
17410         
17411         * XplatUIOSX.cs: Fix call to GetClientRectangle. 
17412         
17413         * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
17414         it is not needed.
17415
17416 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
17417
17418         * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
17419
17420 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
17421
17422         * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
17423         WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
17424         
17425         * Hwnd.cs: 
17426         - border_static field added, it will used to define when a control 
17427         theres 3D border but it must be static (thin).
17428         - In GetWindowRectangle use Theme.BorderSize to calculate area 
17429         instead of static value 1, by the way use new BorderStaticSize instead
17430         Border3DSize when border_static is true.
17431
17432         * XplatUIX11.cs, XplatUIOSX.cs: 
17433         - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
17434         
17435         * Theme.cs: BorderStaticSize field added.
17436
17437 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
17438
17439         * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
17440
17441 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
17442
17443         * Control.cs: Under InternalBorderStyle call RecreateHangle to 
17444         mimic same behavior than win32 that set border only in CreateParams,
17445         it fix problems under CreateParams overrides. Fix #79442 and partial
17446         fix #79537.
17447         
17448         * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
17449         of thi control you must call recreate handle. 
17450         
17451         * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
17452         need to do anything as RecreateHangle will take care about borders.
17453
17454 2007-01-05  Mike Kestner  <mkestner@novell.com>
17455
17456         * ListView.cs: hack to eliminate Lost/Got focus notifications on
17457         cycles between the ItemControl and parent.  Fixes #80388.
17458
17459 2007-01-05  Gert Driesen  <drieseng@users.sourceforge.net>
17460
17461         * Control.cs: Lazy init layout engine. Do not directly use 
17462         layout_engine since LayoutEngine may be overridden (on 2.0 profile).
17463
17464 2007-01-05  Chris Toshok  <toshok@ximian.com>
17465
17466         * DataGrid.cs: don't forceably rebind columns in SetDataSource
17467         unless our list manager has changed (i.e. unless we have reason to
17468         believe our columns have changed).  Fixes #80422.
17469         
17470         also, disable the call do BindColumns in
17471         OnListManagerMetaDataChanged.  this breaks this test in 2.0 (in
17472         1.1 the event isn't raised in response to a column addition on a
17473         table.)
17474
17475 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
17476
17477         * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
17478         that inheritors can not call it if they choose.  Fixes bug #80456.
17479
17480 2007-01-05  Andreia Gaita  <avidigal@novell.com>
17481
17482         * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it 
17483         doesn't blow up with a null exception on marshalling.
17484         
17485 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
17486
17487         * Control.cs: Implement several 2.0 protected properties and methods.
17488         Ensure that all necessary events are being called when properties
17489         are set.
17490
17491 2007-01-05  Mike Kestner  <mkestner@novell.com>
17492
17493         * ListView.cs: implement PgUp/PgDn for Details view.  Also
17494         fixes First/LastVisibleIndex to use the item_control.ClientRect 
17495         instead of the parent control.  Fixes #80378.
17496
17497 2006-01-05  Atsushi Enomoto  <atsushi@ximian.com>
17498
17499         * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
17500           determine whether to use yard-pound or not (bug #78399).
17501
17502 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
17503
17504         * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
17505         problems. So it is time to bring back the old popupbutton colors.
17506
17507 2006-01-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17508
17509         * ColumnHeader.cs:
17510         * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
17511         property by using the internal information of the
17512         columns order in ListView.
17513
17514 2007-01-04  Jonathan Pobst  <monkey@jpobst.com>
17515
17516         * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
17517         Add 2.0 Tag properties.
17518
17519         * LinkArea.cs: Add 2.0 ToString method.
17520
17521 2007-01-03  Chris Toshok  <toshok@ximian.com>
17522
17523         * DataGrid.cs: the Alt+0 handling was wrong, it should have been
17524         Ctrl+0.  Fixes bug #80367.  Also, don't eat the Delete keypress
17525         when we're editing, which fixes #80047.
17526
17527 2007-01-03  Chris Toshok  <toshok@ximian.com>
17528
17529         * Form.cs: apply patch contributed by Dominik Seichter.  fixes
17530         #80404.
17531
17532 2007-01-03  Jonathan Pobst  <monkey@jpobst.com>
17533
17534         * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
17535         property and implementation.
17536
17537         * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
17538         for MdiWindowListItem property.
17539
17540         * ToolStripDropDown.cs: Don't consider hidden menu items while
17541         laying out the menu.
17542
17543 2007-01-03  Andreia Gaita  <avidigal@novell.com>
17544
17545         * SendKeys.cs: window handle is not needed in win32, so just
17546         get the active window for X after parsing keys and don't use
17547         it when building the message; it is passed by parameter to the 
17548         Xplat method and used there to build the message instead. Also,
17549         wait for events to be processed on SendWait, as opposed to Send,
17550         which doesn't wait :) Playing with threads and Send() completely 
17551         hangs on ms.net, only SendWait() works.
17552         
17553         XplatUIX11.cs
17554         X11Display.cs: Check for valid window handle.
17555
17556 2007-01-03  Jackson Harper  <jackson@ximian.com>
17557
17558         * TextControl.cs: Need to prevent wrap calculations when replacing
17559         text (this was there before i removed it accidently).
17560         - Don't update the cursor during the positioning, just set it to
17561         selection_start at the end of the operaion.
17562
17563 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17564
17565         * Control.cs:
17566         * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
17567         
17568 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17569
17570         * MonthCalendar.cs: Added Click and DoubleClick events again,
17571         but this time they only hide Control's Click and DoubleClick.
17572         
17573 2007-01-03  Gert Driesen  <drieseng@users.sourceforge.net>
17574
17575         * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
17576         System.Drawing assembly. Spaces to tabs. Removed extra tabs.
17577
17578 2007-01-02  Jackson Harper  <jackson@ximian.com>
17579
17580         * TextBoxBase.cs: We move the caret with the split now, so we
17581         don't need to explicitly move the caret after splitting.  This
17582         fixes the caret bumping down an extra line on Enter.
17583
17584 2007-01-02  Miguel de Icaza  <miguel@novell.com>
17585
17586         * ContainerControl.cs: Add AutoValidateChanged event (for PDN
17587         2.72). 
17588
17589         * ScrollableControl.cs: Add Scroll event.
17590
17591 2007-01-02  Mike Kestner  <mkestner@novell.com>
17592
17593         * ListView.cs: one more try with help from georgegiolfan@yahoo.com 
17594         to fix all hdr height padding codepaths.  Fixes #80207.
17595
17596 2007-01-02  Chris Toshok  <toshok@ximian.com>
17597
17598         * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
17599         setting it to the Control defaults anyway, and it being after the
17600         Dock set was screwing up layout.
17601         (set_Dock): don't short circuit out of setting base.Dock.  Also,
17602         no need to call UpdateStatusBar here, as it'll be re-layed out if
17603         it needs to be.
17604
17605 2007-01-02  Mike Kestner  <mkestner@novell.com>
17606
17607         * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
17608         to header height for width == -1. Fixes the rest of #80207.
17609
17610 2007-01-02  Mike Kestner  <mkestner@novell.com>
17611
17612         * ListView.cs: rework the mouse event forwarding everaldo added
17613         to translate the coordinates to the parent control not
17614         raise the parent events until after we've done our work. Hover
17615         needs more work, in the case where HoverSelection is on, because
17616         the item control receives more than one MouseHover per Enter
17617         event, so we need to ensure only the "first" hover gets forwarded.
17618         Opening a minor bug for that.
17619
17620 2007-01-02  Gert Driesen  <drieseng@users.sourceforge.net>
17621
17622         * CheckedListBox.cs: Fixed SelectionMode to match MS.
17623         * ListControl.cs: Implemented AllowSelection property. Removed extra
17624         tabs.
17625         * ListBox.cs: Implemented AllowSelection property.
17626
17627 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
17628
17629         * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
17630         SelectedItem, it prevent for errors when you must disable item
17631         before perform click. Fixes #80409.
17632
17633 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
17634
17635         * MenuAPI.cs: Prevent second level and beyond submenus to close
17636         until first level when move out side of popup.
17637         
17638 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
17639
17640         * MenuAPI.cs:
17641         - Down submenu positin in three pixels.
17642         - Closes sub menu when mouse leaves from menu. Fixes #80402.
17643
17644 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
17645
17646         * ThemeWin32Classic.cs:
17647         - Fix popup menu size adding one pixel on the top.
17648         - Down menu item border from two to one to mimic Win32.
17649         - Some source identation fixes. 
17650
17651 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
17652
17653         * ThemeWin32Classic.cs: Use float numbers to calculate size and
17654         position of menu arrows, it fix wrong arrow size.
17655
17656 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
17657
17658         * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
17659         instead of line, it simplify draw operation and fix it using 3D
17660         borders to mimic Win32.
17661
17662 2007-01-01  Jonathan Pobst  <monkey@jpobst.com>
17663
17664         * StatusStrip.cs: Add implementation of the sizing grip.
17665
17666         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
17667         StatusStrip rendering.
17668
17669 2006-12-31  Chris Toshok  <toshok@ximian.com>
17670
17671         * ToolBar.cs: don't assign to dock_style in the .ctor.  it doesn't
17672         override the layout style (anchor/dock) of the control.  assign to
17673         Dock instead.  Fixes bug #80416.
17674
17675         * ToolStrip.cs: same.
17676
17677 2006-12-31  Andreia Gaita  <avidigal@novell.com>
17678
17679         * ContainerControl.cs: Use ContainerSelected flag to check if 
17680         a Container is directly selected, or if Select is called on a 
17681         non-container. If a container is directly selected, focus events 
17682         should not be raised.
17683         Apply #80411 patch to throw exception on set_ActiveControl if 
17684         control is the same as the current one.
17685         
17686         * Control.cs: Use ContainerSelected flag (see above).
17687         Add invalidation check to raise event but not invalidate if 
17688         dimensions are 0.       
17689         Apply #80411 patch.
17690         
17691
17692 2006-12-31  Everaldo Canuto  <everaldo@simios.org>
17693
17694         * MenuAPI.cs: After click, dont close popup menu when menu is
17695         ContextMenu. Fixes #80399.
17696
17697 2006-12-30  Chris Toshok  <toshok@ximian.com>
17698
17699         * ContainerControl.cs: make sure we throw the exception if the
17700         container control doesn't contain the control we're setting
17701         ActiveControl to.
17702
17703 2006-12-30  Chris Toshok  <toshok@ximian.com>
17704
17705         * Control.cs (SetTopLevel): fix the exception raised by
17706         SetTopLevel for child controls.
17707         (set_Anchor): call UpdateDistances when setting the anchor type.
17708         This fixes bug #80336.
17709
17710 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
17711
17712         * Theme.cs: For now, revert back to 8pt font.
17713
17714 2006-12-29  Everaldo Canuto  <everaldo@simios.org>
17715
17716         * MenuAPI.cs: Set popup as active when open a ContextMenu. 
17717         Fixes #80395.
17718
17719 2006-12-29  Chris Toshok  <toshok@ximian.com>
17720
17721         * Control.cs: reorder the code in OnResize to give the same event
17722         ordering as MS.
17723
17724 2006-12-29  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17725
17726         * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
17727         TileHorizontally and TileVertically.
17728         
17729 2006-12-29  Alexander Olk  <alex.olk@googlemail.com>
17730
17731         * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
17732         FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
17733         SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
17734         Corrected copyright and email adress.
17735
17736 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
17737
17738         * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
17739         of Exception in FullPath property if no TreeView is associated with
17740         the TreeNode.
17741
17742 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
17743
17744         * Theme.cs: Marked default_font as private, and initialize it in ctor
17745         with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
17746         on 2.0 profile.
17747         * ThemeGtk.cs: Removed default_font intialization.
17748         * ThemeWin32Classic.cs: Removed default_font initialization.
17749
17750 2006-12-28  Chris Toshok  <toshok@ximian.com>
17751
17752         * Control.cs: fix a couple of place where we were creating handles
17753         more aggressively than we should be.  Fixes ControlRefresh unit
17754         tests.
17755
17756 2006-12-28  Chris Toshok  <toshok@ximian.com>
17757
17758         * Control.cs: contrary to what the comment said, Control.Dock does
17759         not supercede Control.Anchor - the last one you assign to decides
17760         the layout behavior.  so we need to keep track of which was the
17761         last set.  Also, fix some of the affected property arguments in
17762         PerformLayout calls, and remove an redundant parent.PerformLayout
17763         call in OnResized.
17764
17765         Add a VisibleInternal property, which returns is_visible.  We
17766         can/should get rid of all the usage of this field elsewhere.
17767
17768 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17769         
17770         * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
17771         control style, not DoubleBuffer. Added UseDoubleBuffering property
17772         that indicates whether doublebuffering is enabled and supported.
17773         (comment from and code based on Gert Driesen's patch in #80324).
17774         Fixes #80324.
17775
17776 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17777         
17778         * Control.cs: Fixed a NRE.
17779
17780 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17781
17782         * TrackBar.cs: Fix SmallChange and LargeChange exceptions
17783         for 2.0.
17784
17785 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17786
17787         * Control.cs: Rewrote double buffering, now a seperate
17788         class handles all the buffering, no Graphics is disposed of
17789         until the painting is finished (earlier implementation 
17790         would crash if the control was resized in the OnPaint, 
17791         since it would cause the double buffer to be recreated
17792         and the old one disposed), a separate Graphics is 
17793         created for every paint (MS behaviour and anyways the state
17794         of the Graphics would have to be saved and restored otherwise)
17795         
17796         * XplatUIDriver.cs: 
17797         * XplatUIX11.cs:
17798         * XplatUI.cs: Added and implemented GetOffscreenGraphics 
17799         so that we can get the graphics for the back buffer without
17800         having to create a new one and remove the offscreen_dc parameter
17801         from CreateOffscreenDrawable and DestroyOffscreenDrawable.
17802         
17803 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17804
17805         * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
17806         Also make virtual all the key-related methods.
17807
17808         * ListViewItem.cs: Make virtual the key related methods for
17809         ListViewSubItemCollection.
17810
17811 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17812
17813         * ListView.cs:
17814         * ListViewItem.cs:
17815         * ThemeWin32Classic.cs:
17816         * Theme.cs: Initial support for Tile view in ListView,
17817         as well as the implementation of the required bits for it (Item
17818         and Subitem).
17819
17820 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
17821
17822         * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
17823         of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
17824         Provide useful exception messages.
17825
17826 2006-12-27  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17827
17828         * TrackBar.cs: Remove a warning.
17829         * MonthCalendar.cs: Moved back to using Capture to hide the calendar
17830         when used by DateTimePicker, fixes #80287. This also requires that 
17831         MonthCalendar implements it's own drawing for the yearly updown control,
17832         otherwise the Capture tracking would be too complicated. Removed the Click 
17833         and DoubleClick events (according to comments they were hiding the base class
17834         event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
17835         raise these events, not that they cannot be raised. It is possible to raise 
17836         them by calling OnClick and OnDoubleClick). Added two internal fields in 
17837         HitTestInfo in order to track give more tracking info needed by MonthCalendar.
17838         * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
17839         * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
17840         event, no longer needed.
17841         
17842 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
17843
17844         * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
17845         true if new value differs from current value.
17846
17847 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
17848
17849         * Control.cs: ControlCollection.Count must be public. Fixed build of
17850         unit tests.
17851
17852 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
17853
17854         * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
17855
17856 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
17857
17858         * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
17859
17860 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
17861
17862         * Control.cs: Invalidates control including when Width and Height is 
17863         equal zero or is not visible, only Paint event must be care about 
17864         this. Fixes #79913.
17865
17866 2006-12-26  Chris Toshok  <toshok@ximian.com>
17867
17868         * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
17869         more corcompare work.
17870
17871         * DataGridView.cs: fix compiler warning.
17872
17873         * ColumnHeader.cs: some corcompare work, and also take the
17874         opportunity to make the internal fields private.
17875
17876         * ListView.cs: fix the fallout from the above field change.
17877
17878 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
17879
17880         * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
17881         ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
17882         ToolStripTextBox.cs: Fixes to events and corcompare.
17883
17884 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
17885
17886         * ListView.cs: Call owner.OnMousexx event to propagate events from
17887         item to ListView. Fixes #80367.
17888
17889 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
17890
17891         * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
17892         if value is less than one. ItemHeight should not be set to a value
17893         less than 1, and throw ArgumentOutOfRangeException on 2.0 profile. 
17894         Removed extra tabs.
17895
17896 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
17897
17898         * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
17899         * ToolStripStatusLabel.cs: Add Spring for Moma.
17900
17901 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
17902
17903         * DataGridView.cs: Fixed several NullReferenceException in On* methods.
17904         Fixed code formatting. Removed debug code.
17905         * DataGridViewTextBoxEditingControl.cs: Removed debug code.
17906
17907 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
17908
17909         * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
17910         RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
17911         ArgumentOutOfRangeException if ColumnCount is negative. In 
17912         ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
17913         less than 4 or higher than 32768.
17914         * DataGridViewCellStyle.cs: Fixed default value for NullValue.
17915         Fixed FormatProvider to return CurrentCulture unless explicitly set.
17916         Fixed IsFormatProviderDefault to return true if FormatProvider has
17917         not been explicitly set.
17918
17919 2006-12-25  Chris Toshok  <toshok@ximian.com>
17920
17921         * Application.cs: add a couple of 2.0 events.
17922
17923 2006-12-25  Chris Toshok  <toshok@ximian.com>
17924
17925         * Control.cs: fix compiler warning.
17926
17927         * AxHost.cs: corcompare fixes.
17928
17929         * ApplicationContext.cs: corcompare fixes.
17930
17931 2006-12-25  Chris Toshok  <toshok@ximian.com>
17932
17933         * Control.cs: only update dist_right/dist_bottom if the
17934         width/height is > 0.  this fixes anchored controls being resized
17935         smaller until they disappear and then resized larger again.
17936
17937 2006-12-25  Chris Toshok  <toshok@ximian.com>
17938
17939         * Control.cs: a couple of changes.  Remove dist_left and dist_top,
17940         since they're nothing more than X/Left and Y/Top, respectively.
17941
17942         Also, move back to a per-control Bitmap/Graphics for
17943         DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
17944         MT case.  Go with a tiny bitmap though, 1x1, instead of Width x
17945         Height.
17946
17947 2006-12-25  Miguel de Icaza  <miguel@novell.com>
17948
17949         * MessageBox.cs: Implemented overload that takes a new "bool
17950         displayHelpButton" by adding a new internal field "show_help".
17951         When clicked this will raise the HelpRequested on the owner or the
17952         main form. 
17953
17954         From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
17955         From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
17956
17957         * ListView.cs: Add support ColumnWidthChanged and
17958         ColumnWidthChanging. 
17959
17960         Add support for ColumnReordered event.
17961         (ReorderColumn): Add NET_2_0 specific support for cancelling the
17962         reorder.
17963
17964         Very nice codebase!
17965
17966         * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
17967
17968         This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
17969
17970 2006-12-24  Chris Toshok  <toshok@ximian.com>
17971
17972         * GridTablesFactory.cs: 2.0 corcompare work.
17973
17974         * ToolStripContainer.cs: add "override" to
17975         ContextMenuStripChanged, and remove the local event object.
17976
17977         * ToolStripDropDown.cs: same with a couple properties.
17978
17979         * ToolStripPanel.cs: same with AutoSizeChanged event.
17980
17981         * TextBoxBase.cs: add "override" to AutoSizeChanged.
17982
17983         * Form.cs: add the remaining 2.0 events, and do some corcompare
17984         attribute work.
17985
17986         * DateTimePicker.cs: add "new" to padding.
17987
17988         * ButtonBase.cs: use Control's use_compatible_text_rendering.
17989
17990         * ToolStripContentPanel.cs: use base.AutoSizeChanged.
17991
17992         * DataGridView.cs: PaddingChanged is overridden.
17993
17994 2006-12-24  Chris Toshok  <toshok@ximian.com>
17995
17996         * Control.cs: corecompare work here too.
17997
17998         * DataGridViewElement.cs, DataGridView.cs,
17999         DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
18000         DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
18001         DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
18002         DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
18003         work.
18004
18005 2006-12-24  Miguel de Icaza  <miguel@novell.com>
18006
18007         * Control.cs: Switched the error message on the console for a
18008         todo.  A review of the code will have to cope with this anyways
18009         (since its a large feature, it is in our radar) and it was
18010         producing too much output when running PDN.
18011
18012         * ToolStripComboBox.cs: Set the text when the SelectedIndex
18013         changes.  Applications depend on this (PDN 2.72)
18014
18015 2006-12-23  Chris Toshok  <toshok@ximian.com>
18016
18017         * TableLayoutSettings.cs: finish up the corcompare work for this
18018         class.
18019
18020 2006-12-23  Chris Toshok  <toshok@ximian.com>
18021
18022         * Control.cs: make SetImplicitBounds internal, do some futzing
18023         with LayoutEngine so that it's available in 1.1, and remove the
18024         entire duplicated code mess from PerformLayout.  Use
18025         System.Windows.Forms.Layout.DefaultLayout instead.
18026
18027         * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
18028
18029 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
18030
18031         * Form.cs: Add MainMenuStrip property.
18032
18033 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
18034
18035         * Control.cs: Add ContextMenuStrip property and implementation.
18036         Fix ContextMenu implementation to show menu centered on control when
18037         activated using the keyboard instead of showing at screen (0,0).
18038
18039         * ToolStripDropDown.cs: Fix needed overload of Show ().
18040
18041 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
18042
18043         * Menu.cs: Name property added for 2.0 profile.
18044         
18045 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
18046
18047         * Menu.cs: Update information about FindMenuItem, method to be
18048         implemented soon.
18049
18050 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
18051
18052         * MenuAPI.cs: When deselect items deselect also selected subitems.
18053         
18054 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
18055
18056         * MenuAPI.cs: When hides menu set Wnd to null, it prevents
18057         FindSubItemByCoord to found itens that is not active, also an
18058         cheking added to FindSubItemByCoord to search for items only 
18059         in visible popup windows. Fixes #80274.
18060
18061 2006-12-22  Everaldo Canuto  <everaldo@simios.org>
18062
18063         * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
18064         internal property, it be care about change ExStyle. 
18065
18066 2006-12-22  Andreia Gaita  <avidigal@novell.com>
18067
18068         * ContainerControl.cs: set activeControl for parent forms up the 
18069         tree when the new activecontrol is a container.
18070         When validating the active control, if it is a container, also
18071         raise up the validation for it's active control. Fixes #80280
18072         
18073         * Control.cs: Add internal property flag and check to prevent
18074         Focus events from getting raised when Select() is called for
18075         a ContainerControl. There are still too many focus events being
18076         raised at the moment though.
18077         Cleaned up the code a bit.
18078
18079 2006-12-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18080
18081         * Control.cs: Added all missing 2.0 events.and
18082         fixed a couple of corcompare issues.
18083         * TrackBar.cs: Implemented missing 2.0 bits.
18084         * MonthCalendar.cs, 
18085         * DateTimePicker.cs, 
18086         * MdiClient.cs: Fixed some corcompare issues.
18087
18088 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
18089
18090         * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
18091         SplitterPanel.cs: corecompare work.
18092
18093 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
18094
18095         * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
18096         Clean up warnings for BackgroundImageChanged and PaddingChanged
18097         events now that they are implemented in Control.cs.
18098
18099 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
18100
18101         * Control.cs: Make sure layout_engine isn't null before using it (2.0).
18102         
18103         * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
18104         TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
18105         of TableLayoutPanel and supporting cast.
18106
18107 2006-12-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18108
18109         * XplatUIWin32.cs: 
18110         - GrabWindow now confines the mouse pointer to the confine window.
18111         - Added Win32ClipCursor and Win32GetClipCursor.
18112
18113         * Control.cs: 
18114         - Added CaptureWithConfine to be able to capture and confine 
18115         mouse pointer.
18116         
18117         * InternalWindowManager.cs: 
18118         - Call CaptureWithConfine instead of Capture if we're an
18119         MdiChild (fixes #79982).
18120
18121 2006-12-21  Chris Toshok  <toshok@ximian.com>
18122
18123         * DataGrid.cs: guard against the initial state of selection, where
18124         selection_start == -1.  make sure we only select from index >= 0.
18125         Fixes bug #80291.
18126
18127 2006-12-21  Chris Toshok  <toshok@ximian.com>
18128
18129         * Control.cs: we don't need to be so draconian with
18130         UpdateDistances, and we thusly don't need to call it before
18131         calling PerformLayout in ResumeLayout.  Fixes bug #80289.
18132
18133 2006-12-21  Daniel Nauck  <dna@mono-project.de>
18134
18135         * ComboBox.cs,
18136         TextBox.cs: Implemented AutoComplete properties.
18137
18138 2006-12-20  Chris Toshok  <toshok@ximian.com>
18139
18140         * DataGridView*.cs: some corecompare work.
18141
18142 2006-12-20  Jackson Harper  <jackson@ximian.com>
18143
18144         * XplatUIX11.cs: We need to hide the caret when deleting it,
18145         otherwise you get carets left lying around everywhere.
18146         * TextBoxBase.cs: Kill then redraw the caret when scrolling.  This
18147         prevents getting some weird half drawn caret tracers when
18148         scrolling.
18149         * TextControl.cs: Attempt to reduce the number of times we need to
18150         recreate the caret.
18151
18152 2006-12-20  Gert Driesen  <drieseng@users.sourceforge.net>
18153
18154         * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
18155
18156 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18157
18158         * DateTimePicker.cs:
18159         - Implemented missing 2.0 bits.
18160         - Changed some default values to match MS.
18161         
18162 2006-12-20  Jackson Harper  <jackson@ximian.com>
18163
18164         * TextBoxBase.cs: When changing the font across the document we
18165         can't recalculate after changing each line, since that will cahnge
18166         the line count.
18167         - PreferredHeight is a little different than i thought.
18168         - When backspacing, move the caret before we do the actual char
18169         delete, because when that delete crosses a wrap boundary the
18170         positional information will change.
18171
18172 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18173
18174         * Control.cs: Added some missing 2.0 bits: 
18175         BackgroundImageLayout, BackgroundImageLayoutChanged, 
18176         OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and 
18177         add IBindableComponent and IDropTarget implementation.
18178         
18179         * MonthCalendar.cs: 
18180         - Added all missing 2.0 features:
18181         BackgroundImageLayout, RightToLeftLayout, 
18182         OnHandleDestroyed, RightToLeftLayoutChanged, 
18183         BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
18184         PaddingChanged.
18185         - Rewrote all the BoldDate code, it was completely broken.
18186         - Fixed all the tests (the tests can now be re-enabled, the
18187         problems were not with the tests, but with the control, it was
18188         mostly broken).
18189         
18190         * DateTimePicker.cs: Changed the location where the 
18191         MonthCalendar is shown.
18192         
18193 2006-12-19  Chris Toshok  <toshok@ximian.com>
18194
18195         * DataGridView.cs: add IDropTarget implementation.
18196
18197         * ToolStripPanel.cs: add IDropTarget implementation.
18198
18199 2006-12-19  Jackson Harper  <jackson@ximian.com>
18200
18201         * TextControl.cs: soft now means something different than what it
18202         used to mean, we want to move the caret regardless of whether or
18203         not this break was soft (would we really have wanted the caret
18204         to not move with the break in the old context?)
18205         * TreeView.cs: Make sure we factor in the vert scrollbar when
18206         calculating the horizontal scrollbar's maximum.
18207
18208 2006-12-19  Andreia Gaita  <avidigal@novell.org>
18209
18210         * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
18211         check for keywords in alternate casing, close bug #80049.
18212
18213 2006-12-19  Chris Toshok  <toshok@ximian.com>
18214
18215         * ToolStripItem.cs: add the implementation of the 4 IDropTarget
18216         methods (which all do nothing).
18217
18218         * IDropTarget.cs: add the 4 missing methods.
18219
18220 2006-12-19  Chris Toshok  <toshok@ximian.com>
18221
18222         * TableLayoutRowStyleCollection.cs: corcompare work.
18223         
18224         * TableLayoutSettings.cs: same.
18225
18226         * TableLayoutStyle.cs: same.
18227
18228         * TableLayoutColumnStyleCollection.cs: same.
18229
18230 2006-12-19  Jonathan Pobst  <monkey@jpobst.com>
18231
18232         * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
18233         TableLayoutPanel I've had in my local tree for way too long.
18234
18235 2006-12-19  Miguel de Icaza  <miguel@novell.com>
18236
18237         * TableLayoutSettings.cs: Finish the public API (still needs all
18238         the logic to update on changes). 
18239
18240         * TableLayoutPanelCellPosition.cs: new file.
18241         
18242         * TableLayoutRowStyleCollection.cs,
18243         TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
18244         TableLayoutSettings.cs: Track the final 2.0 table api.
18245
18246 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18247
18248         * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
18249         and Image List 2.0 members for ColummnHeader.
18250         * ListView.cs: Add key-related 2.0 methods for
18251         ColumnHeaderCollection.
18252
18253 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
18254
18255         * ListViewItem.cs: Changed AddRange overloads to match MS: throw
18256         ArgumentNullException if items argument is null. Ignore null item in
18257         arrays. Removed extra tabs.
18258
18259 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
18260
18261         * MonthCalendar.cs: Fixed InvalidCastException.
18262
18263 2006-12-19  Jackson Harper  <jackson@ximian.com>
18264
18265         * TextControl.cs: Don't increment the position here.
18266         - When calculating char positions only add in the line break size
18267         for hard line breaks.
18268
18269 2006-12-19  Andreia Gaita  <avidigal@novell.org>
18270
18271         * SendKeys.cs: Changed some things to match ms.net behaviour
18272         when parsing shifted capital letters.
18273         
18274         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX: 
18275         Add window handle as parameter to SendInput. X11 needs the 
18276         window handle, and the handle being passed      to it in the keys 
18277         queue is the active control handle (which windows needs), not 
18278         the window handle.
18279         
18280         XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput 
18281         to support SendKeys on X.       
18282         
18283         * X11Keyboard: Implement helper method to lookup a linux keycode
18284         given the virtual keycode. Added table of keycode-2-virtualkey
18285         values to support this.
18286
18287 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18288
18289         * ListView.cs: Add support for SelectedIndexCollection
18290         and SelectedItemCollection 2.0 methods. Implement support
18291         for ImageKey too.
18292         * ListViewItem.cs: Add support for ListViewSubItemCollection
18293         2.0 methods. Also, fix an incorrect behavior of AddRange method
18294         (it shouldn't call Clear).
18295         * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
18296
18297 2006-12-19  Jackson Harper  <jackson@ximian.com>
18298
18299         * RichTextBox.cs: 
18300         * TextBoxBase.cs: New args for FormatText
18301         * TextControl.cs: Rewrote the main drawing method, this version
18302         feels a little easier to understand and debug to me.  Hopefully it
18303         does to others also
18304         - Fix FormatText to OR in the new formating values.  Added
18305         FormatSpecified param, basically this works in the same way as
18306         BoundsSpecified in Control.
18307         - Set the caret properties when the caret is positioned.
18308         - When wrapping text make sure that we calculate the width of the
18309         last character
18310         - when calculating alignments we might have wrapped down to the
18311         next line, so don't search for an individual tag, search for the
18312         end of the line
18313         - We need to invalidate the selection area when we replace the
18314         selection.
18315         
18316 2006-12-19  Daniel Nauck  <dna@mono-project.de>
18317
18318         * Application.cs: add Restart () 2.0 support
18319
18320 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
18321
18322         * MenuItem.cs: Invalidate menu item rectangle after change Enable
18323         property. Fixes #80268.
18324         
18325 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
18326
18327         * MenuAPI.cs: Dont trigger select event when closes top menu
18328         item. Fixes #80270.
18329
18330 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
18331
18332         * MenuAPI.cs: When you click on menuitem only trigger onselect
18333         event for top menu itens. Fixes #80271.
18334         
18335 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18336
18337         * MdiWindowManager.cs: Make IconicBounds depend on
18338         the bottom of MdiClient, not the top (fixes #80267)
18339         
18340 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18341
18342         * MdiClient.cs: Added missing 2.0 attribute
18343
18344 2006-12-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18345
18346         * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
18347         as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
18348
18349 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
18350
18351         * MenuAPI.cs: Fix click when menuitem is not popup,
18352         this regression was caused by last commit (#80272).
18353
18354 2006-12-17  Everaldo Canuto  <everaldo@simios.org>
18355
18356         * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
18357         fire click event or close menu. Fixes #80272.
18358
18359 2006-12-17  Daniel Nauck  <dna@mono-project.de>
18360
18361         * ListViewHitTestInfo.cs: add
18362
18363 2006-12-17  Daniel Nauck  <dna@mono-project.de>
18364
18365         * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
18366         * FlatButtonAppearance.cs: add
18367         * DockingAttribute.cs: add
18368
18369 2006-12-17  Chris Toshok  <toshok@ximian.com>
18370
18371         * DataGrid.cs: hook up MetaDataChanged event on the list manager,
18372         and rebind our columns when it does - this way, if you make
18373         changes to the DataTable (or set the Table attribute on a DataView
18374         after setting it as the DataGrid's DataSource, the changes are
18375         made visible.)  Fixes bug #80107.
18376
18377 2006-12-17  Daniel Nauck  <dna@mono-project.de>
18378
18379         * ListViewGroup.cs: add internal Location property for layouting.
18380         * Theme.cs: add abstract ListViewGroupHeight function.
18381         * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
18382
18383 2006-12-16  Andreia Gaita  <avidigal@novell.com>
18384
18385         * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
18386         Added reset of selected index to 0 when adding first tab page.
18387         Fixes #80264
18388         
18389         * NumericUpDown.cs: Fix NET_2_0 check
18390
18391 2006-12-16  Daniel Nauck  <dna@mono-project.de>
18392
18393         * ListViewGroup.cs: fixed DefaultValueAttribute value
18394
18395 2006-12-16  Daniel Nauck  <dna@mono-project.de>
18396
18397         * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
18398
18399 2006-12-15  Miguel de Icaza  <miguel@novell.com>
18400
18401         * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
18402         TextBoxBase.cs, ListView.cs, ContainerControl.cs,
18403         ScrollableControl.cs: Add a handful of methods that are
18404         overwritten in 2.0 
18405
18406 2006-12-15  Chris Toshok  <toshok@ximian.com>
18407
18408         * XplatUIWin32.cs: initial implementation of the Reversible
18409         drawing functions.  there are some problems.  DrawReversibleFrame
18410         doesn't seem to work at all for Dashed FrameStyle, and in the
18411         Thick case there are drawing errors at the corners (we probably
18412         need to bind Rectangle instead of doing moveto/lineto's.)
18413
18414 2006-12-16  Andreia Gaita  <avidigal@novell.com>
18415         
18416         * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput, 
18417         to send blocks of key messages. Send accumulates keys to send with Flush, 
18418         while SendWait sends all keys immediately.
18419                 
18420         * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, 
18421         XplatUIX11.cs,  XplatUIX11-new.cs:
18422         - Define SendInput and stubs for OSX and X11, implements Win32 with a call
18423         to Win32 SendInput.
18424         - Added INPUT support structures to XplatUIWin32 for Win32SendInput
18425         
18426         Tests:  It seems ms.net is hooking the keyboard to implement this, so doing unit
18427         testing for ms.net on this class is very tricky, as the tests run too fast 
18428         to allow the hook to release, essentially freezing the keyboard and the 
18429         test. So, barring a win32 miracle, they'll be commited in the ms-notworking     
18430         category :p
18431
18432 2006-12-16  Daniel Nauck  <dna@mono-project.de>
18433
18434         * Padding.cs: fixed serialization compability to MS ("_var" field names),
18435                         added missing attributes.
18436  
18437 2006-12-15  Daniel Nauck  <dna@mono-project.de>
18438
18439         * ListViewGroup.cs: Added missing attributes.
18440         * ListViewGroupCollection.cs: Added missing attributes.
18441
18442 2006-12-15  Daniel Nauck  <dna@mono-project.de>
18443
18444         * ListViewItem.cs: fixed ListViewSubItem text property.
18445
18446 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18447         
18448         * Control.cs: Added missing 2.0 attributes
18449         
18450 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18451         
18452         * MdiClient.cs: Added missing 2.0 attribute.
18453         * MonthCalendar.cs: Added some missing 2.0 attributes 
18454         and properties.
18455         
18456 2006-12-15  Daniel Nauck  <dna@mono-project.de>
18457
18458         * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
18459
18460 2006-12-15  Jonathan Pobst  <monkey@jpobst.com>
18461
18462         * MainMenu.cs: Add the new 2.0 constructor to help out people
18463         using the MainMenu in VS2005.
18464
18465 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18466         
18467         * MdiChildContext.cs: Removed it, no longer used.
18468         * MdiClient.cs: Added missing 2.0 attributes.
18469         
18470 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18471         
18472         * InternalWindowManager.cs: Fix a NullRef with previous 
18473         changes for toolwindows.
18474         
18475 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18476
18477         * Control.cs: 
18478         - Added AfterTopMostControl to allow for certain controls 
18479         to always stay on top when normal controls are brought to 
18480         front.
18481         
18482         * XplatUIWin32.cs: 
18483         - (DrawInversibleRectangle): Get window rectangle from Win32 
18484         in stead of from control, since Win32 doesn't calculate
18485         screen coords correctly from control's Location if it 
18486         have docked siblings.
18487         
18488         * MdiWindowManager.cs:
18489         - Correct the control menu popup location when clicked on
18490         the maximized form icon. (fixes #80223.1)
18491         - Don't show moving rectangle if mouse hasn't moved from
18492         the original clicked point.
18493         - Removed FormGotFocus handler (not used).
18494         - Calculate the control buttons location from the main
18495         window's size and not client size (fixes #79770).
18496         - Form is now closed when the form icon is double-clicked
18497         (fixes #79775). 
18498         - Correct NCCalcSize numbers a little bit (fixes #80223.2)
18499         
18500         * InternalWindowManager.cs:
18501         - Moved some MDI-only methods to MdiWindowManager.
18502         - Removed unused properties and methods.
18503         - Unified method naming for methods handling wm messages.
18504         - Moved all message handling to seperate methods for
18505         each message.
18506         
18507         * ThemeWin32Classic.cs:
18508         - DrawManagedWindowDecorations now draws the title bar 
18509         with a gradient brush.
18510         - Add a CPDrawButtonInternal that allows us to specify
18511         light, normal and dark colors for the buttons (control 
18512         buttons for MDI children were drawn with the same light
18513         color as the background, therefore loosing the 3D effect).
18514         
18515         * SizeGrip.cs:
18516         - Add a CapturedControl property that is used to 
18517         determine the control to resize (defaults to parent). 
18518         Needed for MdiClient, since its SizeGrip's parent is
18519         MdiClient, but the control to resize is the main form.
18520         
18521         * MdiClient.cs:
18522         - Set SizeGrip's CapturedControl to the main form in order
18523         to resize the main form and not the MdiClient.
18524         - Override AfterTopMostControl to leave the scrollbars 
18525         always on top.
18526
18527 2006-12-15  Daniel Nauck  <dna@mono-project.de>
18528
18529         * ListView.cs: fixed ListViewItemCollection AddRange and
18530                         implemented ListViewItemCollection AddRange 2.0 support.
18531
18532 2006-12-15  Daniel Nauck  <dna@mono-project.de>
18533
18534         * ListViewGroup.cs: Add.
18535         * ListViewGroupCollection.cs: Add
18536         * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
18537         * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
18538                                 stub for ImageKey 2.0 support.
18539
18540 2006-12-14  Mike Kestner  <mkestner@novell.com>
18541
18542         * ListView.cs: add text padding to the autocalculation for columns
18543         of width -2.  Fixes #80207.
18544  
18545 2006-12-14  Mike Kestner  <mkestner@novell.com>
18546
18547         * ListView.cs: add some index guarding for partial row navigation 
18548         logic.  Fixes #80250.
18549
18550 2006-12-14  Mike Kestner  <mkestner@novell.com>
18551
18552         * ListView.cs: throw ArgumentExceptions when parented ListViewItems
18553         are added or inserted to the collection.  Fixes #81099.
18554
18555 2006-12-13  Everaldo Canuto  <everaldo@simios.org>
18556
18557         * MenuAPI.cs: Closes menu when right click out side of popup
18558         it fix problem in ContextMenu and MainMenu. Fixes #80252.
18559
18560 2006-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18561
18562         * ListViewItem.cs: Fix dumb error.
18563
18564         * ListView.cs: Add Find and ContainsKey methods in 
18565         ListViewItemCollection, and also return true for IsReadOnly
18566         and IsFixedSize (changes for 2.0). 
18567
18568 2006-12-13  Gert Driesen  <drieseng@users.sourceforge.net>
18569
18570         * Control.cs: Allow Region to be set to null.
18571
18572 2006-12-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18573
18574         * MdiWindowManager.cs: Remove unused (commented out) code.
18575         * Form.cs: When the MdiChild is maximized, the form needs 
18576         WM_NCMOUSELEAVE, so request it.
18577         * InternalWindowManager.cs: 
18578         - Added tooltips to control buttons.
18579         - Removed duplicated control button handling code.
18580         - Removed unused (commented out) code.
18581         
18582 2006-12-12  Everaldo Canuto  <everaldo@simios.org>
18583
18584         * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor 
18585         was used because we must set cursor without trigger ChangeCursor event
18586         and without change Cursor control property. Fixes #79963.
18587
18588 2006-12-12  Andreia Gaita  <avidigal@novell.com>
18589         
18590         * Control.cs: Check if Region setter value is null, and ignore
18591
18592 2006-12-12  Jackson Harper  <jackson@ximian.com>
18593
18594         * TextControl.cs: We were almost always drawing one more line then
18595         needed, since the GetLineByPixel will return the last line found
18596         at that pixel. In most cases though, we were invalidating up to
18597         the junction between two lines.
18598         - Improve debug code.
18599
18600 2006-12-12  Chris Toshok  <toshok@ximian.com>
18601
18602         * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
18603         and FillReversibleRectangle.
18604
18605         * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
18606         and FillReversibleRectangle.
18607
18608         * XplatUIWin32.cs: add stubs which do nothing for
18609         DrawReversibleFrame, DrawReversibleLine, and
18610         FillReversibleRectangle.
18611
18612         * XplatUIOSX.cs: add stubs which raise NIE for
18613         DrawReversibleFrame, DrawReversibleLine, and
18614         FillReversibleRectangle.
18615
18616         * XplatUIX11.cs: add working implementation for
18617         DrawReversibleFrame, DrawReversibleLine, and
18618         FillReversibleRectangle.
18619         
18620         * ControlPaint.cs: implement DrawReversibleFrame,
18621         DrawReversibleLine, and FillReversibleRectangle, by calling into
18622         the appropriate XplatUI method.
18623
18624 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18625
18626         * Form.cs: Make MdiClient have the focus even if it's
18627         not selectable, since it should receive WM_KEY* and WM_MOUSE 
18628         messages. Fixes #79907.
18629         
18630 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18631
18632         * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
18633         queried after the window is created.
18634         
18635         * XplatUIX11.cs: Added SendParentNotify to implement 
18636         WM_PARENTNOTIFY logic. Fixes #79965.
18637         
18638         * Control.cs: Added MakeParam.
18639         
18640 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18641
18642         * MdiClient.cs: Resume Layout before setting window
18643         states (fixes #80201).
18644
18645 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18646
18647         * MenuAPI.cs: Deselect a menu item after performing
18648         the click (fixes #80197).
18649
18650 2006-12-11  Jackson Harper  <jackson@ximian.com>
18651
18652         * TextBoxBase.cs: We need to cap this value, since Maximum -
18653         ViewPortHeight can be less than zero.
18654         - Only do selection with the left mouse button.
18655         * TextBox.cs: Don't tell the world that we have a context menu.
18656         * Control.cs: New method so that we can control whether or not the
18657         context menu is visible outside MWF.
18658
18659 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
18660
18661         * ToolBarButton.cs: Fix text positon. 
18662
18663 2006-12-11  Miguel de Icaza  <miguel@novell.com>
18664
18665         * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
18666
18667         * Control.cs (DoubleBuffered): Add implementation.
18668
18669         * Application.cs (OpenForms): Add.
18670
18671 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
18672
18673         * Form.cs: Use opacity instead of Opactiy to determine if we need
18674         to set the WS_EX_LAYERED bit.  [Fixes bug #80185]
18675
18676 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
18677
18678         * Control.cs: Fix NRE if Control.Site was set to null.
18679
18680 2006-12-11  Chris Toshok  <toshok@ximian.com>
18681
18682         * Control.cs: ControlCollection.Remove should return if the arg is
18683         null, and ControlCollection.SetChildIndex should raise a ANE.
18684
18685 2006-12-11  Gert Driesen  <drieseng@users.sourceforge.net>
18686
18687         * Control.cs: Verify value set for Dock property. Code formatting
18688         updates.
18689
18690 2006-12-11  Jackson Harper  <jackson@ximian.com>
18691
18692         * TextControl.cs: Draw the caret and the selection when a flag is
18693         set on the owner.
18694         * TextBoxBase.cs: We want to draw the caret and the selection for
18695         TextBox but not for TextBoxBase.
18696         - If the window is resized and scrolling is no longer needed (the
18697         whole doc is visible) set the scroll position to zero.
18698         - The default SelectWord (the one TextBox uses) should move the
18699         caret to the end of the word.
18700         - SelectAll moves the caret to the end of the selection.
18701         * TextBox.cs: We don't selectall on focus, we just do it when the
18702         control is created.
18703         
18704 2006-12-11  Mike Kestner  <mkestner@novell.com>
18705
18706         * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
18707
18708 2006-12-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18709
18710         * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer 
18711         2.0 support.
18712         * ListViewItem.cs: Add Name 2.0 property.
18713
18714 2006-12-11  Andreia Gaita  <avidigal@novell.com>
18715
18716         * TabControl.cs: Set visibility on selected or default tab 
18717         when tabcontrol handle is created, so that it's contents
18718         actually show up (duh). Fixes #80193
18719         Don't redraw the control if there is no handle created, as
18720         the selected index might be completely invalid. Added some tests
18721         to check for this.
18722
18723 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
18724
18725         * ToolBar.cs: Uses maximun width and height of all buttons as 
18726         button rectangle when ButtonSize specified, it looks strange but
18727         is what happens in Win32. Fixes #80189.
18728
18729 2006-12-11  Jackson Harper  <jackson@ximian.com>
18730
18731         * TextControl.cs: Need to track undo levels ourself, since
18732         compound actions will mess them up.
18733
18734 2006-12-10  Andreia Gaita  <avidigal@novell.com>
18735
18736         * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
18737         SelectedIndex value is changed (even if it's not valid).
18738         Reset SelectedIndex to 0 when the handle is created and if
18739         the current index is invalid.
18740         Fixes SelectdeIndex unit tests and #80128
18741
18742 2006-12-08  Chris Toshok  <toshok@ximian.com>
18743
18744         * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
18745         calls EndEdit, it needs to be called before we set current_cell to
18746         its new value.  Otherwise, we end up committing the value in the
18747         textbox to the new cell as well.  Fixes bug #80160.
18748
18749 2006-12-08  Chris Toshok  <toshok@ximian.com>
18750
18751         * Form.cs (set_CancelButton): if the button's DialogResult is
18752         None, set it to Cancel.  Fixes bug 80180.
18753
18754 2006-12-08  Jackson Harper  <jackson@ximian.com>
18755
18756         * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
18757         to watch ourselves when setting the canvas size and setting the
18758         scrollbar values.
18759
18760 2006-12-08  Chris Toshok  <toshok@ximian.com>
18761
18762         * DataGrid.cs: comment out the two MakeTransparent calls for the
18763         time being so people using trunk (and not 1.2.2) on windows can
18764         actually use the datagrid.  This deals with bug #80151.
18765
18766 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
18767
18768         * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
18769         Graphics.DrawImage (image, int, int, int, int) overload instead
18770         of Graphics.DrawImage (image, int, int).  GDI+ can't figure out
18771         the dpi difference and was blurring images it drew.
18772         [Fixes bug #79960]
18773
18774 2006-12-08  Chris Toshok  <toshok@ximian.com>
18775
18776         * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
18777         rowcnt is 0 (such as with an empty datasource), and make sure we
18778         initialize not_usedarea.Y to cells.Y, so we don't draw over the
18779         other areas (caption, parent row, etc, etc).  Fixes bug #80095.
18780
18781 2006-12-08  Chris Toshok  <toshok@ximian.com>
18782
18783         * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
18784         grid.
18785
18786 2006-12-08  Chris Toshok  <toshok@ximian.com>
18787
18788         [ Fixes bug #80167 ]
18789         
18790         * ThemeWin32Classic.cs: don't draw the image if the button's flat
18791         style is FlatStyle.System.
18792
18793         * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
18794         ButtonBase.flat_style private, and switch uses of it to the public
18795         property.
18796         
18797 2006-12-08  Chris Toshok  <toshok@ximian.com>
18798
18799         [ Fixes bug #80121 ]
18800         
18801         * ThemeWin32Classic.cs: center the caption text in the datagrid
18802         when we draw it.
18803
18804         * DataGrid.cs: lessen the amount we add to the caption height from
18805         6 to 2.  6 was making it huge.
18806
18807 2006-12-08  Andreia Gaita  <avidigal@novell.com>
18808
18809         * UpDownBase: Handle MouseWheel call directly instead of capturing
18810         the inner textbox's OnMouseWheel. Fixes #80166
18811
18812 2006-12-08  Jackson Harper  <jackson@ximian.com>
18813
18814         * TextControl.cs: We need to invalidate the textbox when we empty
18815         it (how had this not been discovered before?)
18816
18817 2006-12-08  Jackson Harper  <jackson@ximian.com>
18818
18819         * TextBoxBase.cs: Reworked the mouse down code so I could get it
18820         to behave like MS, we now ignore the eventargs.Click and just
18821         track state ourself, which we were already doing anyways.
18822         - Constrain the double click handler to the double click size.
18823         
18824 2006-12-08  Chris Toshok  <toshok@ximian.com>
18825
18826         * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
18827         direction if that scrollbar isn't shown.  fixes bug #80158.
18828
18829 2006-12-08  Andreia Gaita  <avidigal@novell.com>
18830
18831         * NumericUpDown.cs: Update value on getter. Fixes #79950
18832
18833 2006-12-08  Chris Toshok  <toshok@ximian.com>
18834
18835         * MenuItem.cs: add back in the event cloning code.  I didn't know
18836         how to do it in the face of the EventHandlerList work i'd done
18837         last week.  Fixes bug #80183.
18838
18839 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
18840
18841         * Control.cs: Add an invalidate to the BackgroundImage setter.
18842         [Fixes 80184]
18843
18844 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
18845
18846         * ToolStrip*: Add some small properties reported by MoMA, fix event
18847         firing and default properties based off of unit tests, and add some
18848         attributes based off of the class status page.
18849
18850 2006-12-07  Jackson Harper  <jackson@ximian.com>
18851
18852         * TextBoxBase.cs: Take HideSelection into account when determining
18853         whether or not to show the selection.
18854         * RichTextBox.cs: After inserting the RTF into the document move
18855         the cursor to the beginning of the document.
18856
18857 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
18858
18859         * Control.cs: Remove static ArrayList "controls" which maintained
18860         a reference to every control created.
18861         * Application.cs: Create a static FormCollection to maintain a reference
18862         to every form created.  Use it in places that formerly enumerated through
18863         the controls one looking for forms.
18864         * Form.cs: Add and remove self from above FormCollection.
18865
18866 2006-12-07  Alexander Olk  <alex.olk@googlemail.com>
18867
18868         * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
18869           not libgdk (though it makes me wonder why I didn't have any
18870           problems)
18871
18872 2006-12-07  Chris Toshok  <toshok@ximian.com>
18873
18874         [ you had to know this was coming after that last commit...]
18875         
18876         * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
18877         XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
18878         DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
18879         XCopyArea).
18880
18881 2006-12-07  Chris Toshok  <toshok@ximian.com>
18882
18883         * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
18884         DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
18885         all the behavior we need for double buffering.
18886
18887         * XplatUIDriver.cs: implement the 3 double buffer methods using a
18888         client side Bitmap, just like the old Control-based double buffer
18889         code did.  The methods are virtual, so each XplatUI driver
18890         subclass can replace the implementation to use a faster, platform
18891         specific approach.
18892
18893         * Control.cs: make use of the 3 Offscreen XplatUI calls in the
18894         double buffer code, and clean things up a bit in the process.
18895
18896 2006-12-06  Chris Toshok  <toshok@ximian.com>
18897
18898         * Control.cs: reindent WndProc.
18899
18900 2006-12-06  Chris Toshok  <toshok@ximian.com>
18901
18902         [ I wanna be like BenM when I grow up ]
18903         
18904         * Hwnd.cs: create a single static Graphics object on the static
18905         Bitmap we create.  use this for our text measurements.
18906
18907         * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
18908         This was causing us to allocate a backbuffer for every control,
18909         even when it wasn't flagged as double buffered.  Instead use the
18910         single graphics instance.  This might have implications for
18911         multithreaded applications.  If we run into problems we can switch
18912         to creating 1 Graphics per control, on the static Hwnd bitmap.
18913
18914         this change nets us a 7M savings in private dirty mappings when
18915         running FormsTest.exe.
18916
18917 2006-12-06  Chris Toshok  <toshok@ximian.com>
18918
18919         * ListView.cs: the BackgroundImage override is just to set
18920         attributes.  chain up to base.BackgroundImage.
18921
18922         * RichTextBox.cs: same.
18923
18924         * ToolBar.cs: same, but we need to also redraw the toolbar when it
18925         changes, so instead a handler for BackgroundImageChanged.
18926         
18927         * Control.cs: make background_image private.
18928
18929 2006-12-06  Chris Toshok  <toshok@ximian.com>
18930
18931         * ScrollBar.cs: change the assignment of cursor to Cursor.  not
18932         sure we even need this assignment, but roll with it for now.
18933
18934         * Control.cs: make the cursor field private.
18935
18936 2006-12-06  Chris Toshok  <toshok@ximian.com>
18937
18938         * Form.cs: we don't need to explicitly set ImeMode to
18939         ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
18940         behavior in the face of ImeMode.Inherit.
18941
18942         * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
18943         change the ctor's assignment to use ImeMode instead of ime_mode.
18944
18945         * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
18946         ImeModeInherit.  Only check for the parent's imemode (and return
18947         NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
18948         This fixes the button unit test, which sets both ImeMode and
18949         DefaultImeMode to ImeMode.Disable.
18950
18951         also make the ime_mode field private.
18952
18953 2006-12-06  Chris Toshok  <toshok@ximian.com>
18954
18955         * Control.cs: make control_style private.
18956
18957         * TextBoxBase.cs: fix the HandleClick override.  it was explicitly
18958         setting the styles to true, then setting them to false instead of
18959         reverting to their previous values.
18960
18961         also, call SetStyle on the scrollbars instead of using
18962         control_style directly.
18963
18964 2006-12-06  Jonathan Pobst  <monkey@jpobst.com>
18965
18966         * FormCollection.cs: Implement. [2.0]
18967
18968 2006-12-06  Chris Toshok  <toshok@ximian.com>
18969
18970         * Control.cs: make tab_stop private.
18971
18972         * Label.cs: set TabStop, not tab_stop.  reformat some event
18973         add/remove methods to make them more compact.
18974
18975 2006-12-06  Chris Toshok  <toshok@ximian.com>
18976
18977         * RadioButton.cs: fix TabStop handling.
18978
18979 2006-12-06  Chris Toshok  <toshok@ximian.com>
18980
18981         * TextBox.cs: remove the explicit assignments to has_focus.
18982         Control does that.
18983
18984         * ButtonBase.cs: remove the assignment to has_focus.  Control will
18985         manage that.
18986         
18987 2006-12-06  Chris Toshok  <toshok@ximian.com>
18988
18989         * ButtonBase.cs: remove all uses of is_enabled from this code.
18990         it's always true when any of the code containing the checks is
18991         executed.
18992
18993 2006-12-06  Chris Toshok  <toshok@ximian.com>
18994
18995         * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
18996         with different semantics (some are present in both 1.1 and 2.0
18997         profiles) so that we match MS's behavior in our unit tests.
18998
18999 2006-12-06  Jackson Harper  <jackson@ximian.com>
19000
19001         * TextControl.cs: Make this operation undoable.
19002         * TextBoxBase.cs: Factor the border width into the preferred
19003         height.
19004         - implement Modified as per the spec.
19005
19006 2006-12-06  Chris Toshok  <toshok@ximian.com>
19007
19008         * Timer.cs, Control.cs, Menu.cs: make control_tag private.
19009
19010 2006-12-06  Chris Toshok  <toshok@ximian.com>
19011
19012         * Control.cs: make right_to_left and context_menu fields private.
19013
19014 2006-12-06  Chris Toshok  <toshok@ximian.com>
19015
19016         * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
19017         XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
19018         Control.child_controls private.  switch all uses over to
19019         Control.Controls.
19020
19021 2006-12-06  Chris Toshok  <toshok@ximian.com>
19022
19023         * System.Windows.Forms/GroupBox.cs,
19024         System.Windows.Forms/AccessibleObject.cs,
19025         System.Windows.Forms/ErrorProvider.cs,
19026         System.Windows.Forms/Control.cs,
19027         System.Windows.Forms/UpDownBase.cs,
19028         System.Windows.Forms/ScrollBar.cs,
19029         System.Windows.Forms/DateTimePicker.cs,
19030         System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
19031         System.Windows.Forms/ToolTip.cs,
19032         System.Windows.Forms/RadioButton.cs,
19033         System.Windows.Forms/LinkLabel.cs,
19034         System.Windows.Forms/Splitter.cs,
19035         System.Windows.Forms/TextBoxBase.cs,
19036         System.Windows.Forms/ToolStripTextBox.cs,
19037         System.Windows.Forms/ContainerControl.cs,
19038         System.Windows.Forms/ThemeWin32Classic.cs,
19039         System.Windows.Forms/SizeGrip.cs,
19040         System.Windows.Forms/ToolStripDropDown.cs,
19041         System.Windows.Forms/ScrollableControl.cs: Make Control.parent
19042         private.  switch all uses over to Control.Parent.
19043
19044 2006-12-06  Chris Toshok  <toshok@ximian.com>
19045
19046         * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
19047         Control does this before calling emitting these events.
19048
19049         * TabControl.cs: same.
19050
19051         * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
19052         Control.client_rect.
19053
19054         * ButtonBase.cs: use the ClientSize property instead of the
19055         client_size field.
19056
19057         * ScrollableControl.cs: same.
19058
19059         * Control.cs: another pass at making properties private.  also,
19060         move the initialization of tab_stop to the ctor.
19061
19062 2006-12-05  Andreia Gaita <avidigal@novell.com>
19063
19064         * TabControl.cs: Let the selected index be set freely if the 
19065         control handle is not yet created.
19066
19067 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
19068
19069         * Control.cs: Revert dist_top, dist_right, and dist_bottom to 
19070         internal until I can rewrite DefaultLayout.
19071         * ToolStrip.cs: Fix build error and some general cleaning.
19072         * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
19073         Fix build errors caused by making some of Control's fields private.
19074
19075 2006-12-05  Jackson Harper  <jackson@ximian.com>
19076
19077         * TextControl.cs: Redo Insert a little so that it use IndexOf
19078         instead of Split, this prevents it from messing up on things like
19079         \n\n\n. Also more effecient since the split array doesn't need to
19080         be created.
19081         * TextBoxBase.cs: AppendText doesnt handle multiline and non
19082         multiline text differently, this is the first of many fixes that
19083         will make multiline/non-multiline the same thing as far as the
19084         TextBoxBase is concerned.
19085         - Don't split the text and insert lines, this can lose some line
19086         endings (like is the last line a soft or hard break). Instead use
19087         the new Insert.
19088         - Fix an off by one when combining all the lines in the Text
19089         getter.
19090         - Remove separate multiline handling from the Text getter/setter.
19091
19092 2006-12-05  Chris Toshok  <toshok@ximian.com>
19093
19094         * ButtonBase.cs: a few changes:
19095
19096         - don't reinitialize internal Control fields in the ctor when they
19097         have the same values as Control sets them.
19098
19099         - don't set has_focus in OnGotFocus/OnLostFocus.  Control does
19100         this before calling those methods.
19101
19102         - we don't need to call Refresh for anything.  use Invalidate
19103         instead.
19104
19105         - OnEnabledChanged doesn't need to redraw at all - Control.cs
19106         calls Refresh in its OnEnabledChanged.
19107         
19108         - several of the events we were registered for in the ctor to
19109         redraw ourselves already include calls to Invalidate in the
19110         property setters that raise the events.  remove the extra
19111         invalidation.
19112
19113         - reformat a switch statement that was 83274658 columns wide.
19114         
19115 2006-12-05  Mike Kestner  <mkestner@novell.com>
19116
19117         * ComboBox.cs: fix a unit test regression from a TextBox
19118         SelectionLength return of -1 when there's no selection.  
19119
19120 2006-12-05  Chris Toshok  <toshok@ximian.com>
19121
19122         * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
19123         ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
19124         cleaning up some of the internal Control fields being used by
19125         subclasses.
19126
19127 2006-12-05  Mike Kestner  <mkestner@novell.com>
19128
19129         * ComboBox.cs: fix some Simple mode regressions.  Set Visible on the
19130         listbox after AddImplicit calls since it defaults to hidden. Add a 
19131         hack to preserve requested heights across DropDownStyle changes.
19132
19133 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
19134
19135         * PropertyGrid.cs: Hide FindFirstItem method from public API.
19136
19137 2006-12-05  Chris Toshok  <toshok@ximian.com>
19138
19139         * DataGridView.cs: fix compiler warnings.
19140
19141         * PrintControllerWithStatusDialog.cs: same.
19142
19143         * ToolBar.cs: same.
19144
19145         * FolderBrowserDialog.cs: same.
19146
19147         * Splitter.cs: same.
19148
19149         * DataGridViewComboBoxCell.cs: same.
19150
19151         * XplatUIWin32.cs: same.
19152
19153         * PictureBox.cs: same.
19154
19155         * Win32DnD.cs: same.
19156
19157         * PageSetupDialog.cs: same.
19158
19159         * FileDialog.cs: same.
19160
19161         * PrintDialog.cs: same.
19162
19163         * DataGridTextBoxColumn.cs: same.
19164
19165         * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
19166
19167 2006-12-05  Chris Toshok  <toshok@ximian.com>
19168
19169         * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
19170         MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
19171         System.ComponentModel.EventHandlerList work.
19172
19173 2006-12-05  Jonathan Chambers  <joncham@gmail.com>
19174
19175         * DrawTreeNodeEventArgs.cs: Added.
19176
19177 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19178         
19179         * InternalWindowManager.cs: Remove an unused field.
19180         
19181 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19182
19183         * InternalWindowManager.cs:
19184         - Save the point where the title bar is clicked.
19185         
19186         * MdiWindowManager.cs:
19187         - Only allow moving of the window as long as the 
19188         clicked point on the title bar does not get out of
19189         MdiClient's rectangle. Fixes #79982.
19190         
19191         * MdiClient.cs:
19192         - Added Horizontal/VerticalScrollbarVisible.
19193         - Simplified the scrollbar sizing algorithm.
19194         - Cache the difference in scrolled value in
19195         H/VBarValueChanged and move the calculation out
19196         of the for loop.
19197
19198 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19199
19200         * Control.cs: Make the Console.WriteLine in WndProc 
19201         write more info.
19202
19203 2006-12-05  Chris Toshok  <toshok@ximian.com>
19204
19205         * ToolStripManager.cs, ToolStripButton.cs,
19206         ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
19207         ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
19208         ToolStripSplitButton.cs, ToolStripSeparator.cs,
19209         ToolStripRenderer.cs, ToolStripDropDownItem.cs,
19210         ToolStripProgressBar.cs, ToolStripContainer.cs,
19211         ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
19212         to using System.ComponentModel.EventHandlerList.
19213
19214 2006-12-04  Chris Toshok  <toshok@ximian.com>
19215
19216         * LinkLabel.cs: fix up compiler warnings.
19217
19218         * TableLayoutSettings.cs: same.
19219
19220         * TreeView.cs: same.
19221
19222         * ToolBar.cs: same.
19223
19224         * TabControl.cs: same.
19225
19226         * RichTextBox.cs: same.
19227
19228         * ListViewItem.cs: same.
19229
19230         * PropertyGrid.cs: same.
19231
19232         * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
19233
19234         * ToolTip.cs same.
19235
19236         * TextRenderer.cs: fix up compiler warnings.
19237
19238         * Label.cs: same.
19239
19240         * Form.cs: corcompare fixes.
19241
19242         * PictureBox.cs: fix up compiler warnings.
19243
19244         * ImageListStreamer.cs: same.
19245
19246         * TrackBar.cs: corcompare fix.
19247
19248         * Control.cs: fix up compiler warnings.
19249
19250         * SplitterPanel.cs: same.
19251
19252         * NumericTextBox.cs: same.
19253
19254         * ImageList.cs: same.
19255
19256         * StatusStrip.cs: same.
19257
19258         * ProgressBar.cs: corcompare fix.
19259
19260         * ToolStripButton.cs: fix up compiler warnings.
19261
19262         * ToolStripStatusLabel.cs: same.
19263
19264         * ToolStripSplitButton.cs: same.
19265
19266         * ToolStripSeparator.cs: same.
19267
19268         * ToolStripProgressBar.cs: same.
19269
19270         * ToolStripDropDownMenu.cs: same
19271
19272         * ToolStripDropDown.cs: same.
19273
19274         * ToolStripDropDownButton.cs: same.
19275
19276         * ToolStrip.cs: same.
19277
19278         * ToolStripControlHost.cs: same.
19279
19280         * ToolStripContentPanel.cs: same.
19281
19282         * ToolStripDropDown.cs: same.
19283
19284         * ToolStripContainer.cs: same.
19285
19286         * ToolStripPanel.cs: same, and add "new" where we need it to work
19287         with the new ArrangedElementCollection.
19288
19289         * ToolStripItemCollection.cs: add "new" where we need it to work
19290         with the new ArrangedElementCollection.
19291
19292 2006-12-04  Andreia Gaita <avidigal@novell.com>
19293
19294         * TabControl.cs: Fix default tab selection to after TabControl
19295         gets focus and not before. Fixes #80128
19296
19297 2006-12-04  Chris Toshok  <toshok@ximian.com>
19298
19299         * DataGridTableStyle.cs: remove the gross calling of
19300         datagrid.Refresh from here.  It's a broken idea and it doesn't
19301         work anyway.
19302
19303         * DataGrid.cs: instead, just register/unregister from the
19304         DataGridTableStyle events in CurrentTableStyle.  we play it
19305         conservatively and EndEdit + CalcAreasAndInvalidate on any event,
19306         even though some would most likely not require it.  Fixes bug
19307         #80115 (and one portion of #80117 as a side effect).
19308
19309 2006-12-04  Chris Toshok  <toshok@ximian.com>
19310
19311         * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
19312         so the textbox (if any) goes away.  Fixes bug #80117.
19313
19314 2006-12-04  Chris Toshok  <toshok@ximian.com>
19315
19316         * DataGridColumnStyle.cs: set the column's readonly property
19317         initially based on the property descriptor's IsReadOnly.  Fixes
19318         bug #80044.
19319
19320 2006-12-04  Chris Toshok  <toshok@ximian.com>
19321
19322         * ComboBox.cs: wrap the dropdown style changing work in
19323         SuspendLayout/ResumeLayout.  Fixes bug #79968.
19324
19325 2006-12-04  Jackson Harper  <jackson@ximian.com>
19326
19327         * TextBoxBase.cs: Fix off by one, since these are one-based.
19328         * TextBox.cs: Select all the text when we get focus.  The TextBox
19329         does this but the RTB does not.
19330
19331 2006-12-04  Chris Toshok  <toshok@ximian.com>
19332
19333         * DataGridTextBoxColumn.cs: remove some spew.
19334
19335         * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
19336         but some part of me is saying "it shouldn't be here.."  At any
19337         rate, it fixes bug #80046.  Call IEditableObject.EndEdit after
19338         setting the value.
19339
19340 2006-12-04  Chris Toshok  <toshok@ximian.com>
19341
19342         * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
19343         to reassign the propertydescriptor.
19344
19345 2006-12-04  Jackson Harper  <jackson@ximian.com>
19346
19347         * TextBoxBase.cs:
19348         * TextControl.cs: Remove some unused variables.  Maybe this will
19349         patch things up between mike and I.
19350         - don't split lines less then one char wide, if the viewport is
19351         that small text won't be visible anyways.
19352         
19353 2006-12-04  Jackson Harper  <jackson@ximian.com>
19354
19355         * TextBoxBase.cs: Default selection length is -1, need to do some
19356         more testing on windows to see when this is used for the property.
19357         - Redid the Lines [] property to that we properly remove soft line
19358         breaks
19359         - added support for preserving carriage returns
19360         -  CanUndo is not a variable like 'is undo enabled' it just returns
19361         true if there is undo operations available.
19362         - AppendText doesn't need to grab the last tag itself anymore,
19363         this happens automatically when we move the cursor.
19364         * TextControl.cs: Add CompoundActions to the undo class. This
19365         allows combining the other operations into one big option.  ie a
19366         paste will combine { delete old, insert new, move cursor }
19367         - Add InsertString undo operation
19368         - New method for deleting multiline text
19369         - Add carriage returns to lines. So we can preserve carriage
19370         returns when text is 'roundtripped'
19371
19372 2006-12-04  Chris Toshok  <toshok@ximian.com>
19373
19374         * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
19375         minimum 0.  Fixes the scrollbar exception in bug #80136.
19376
19377 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19378
19379         * MdiClient.cs: 
19380         * MdiWindowManager: Removed unused fields and methods.
19381         
19382 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19383         
19384         * StatusBar.cs: Update all panels when a AutoSize=Contents
19385         panel needs updating.
19386         
19387         * StatusBarPanel.cs: Remove twidth and only use initialize.
19388         Fixes #80031.
19389                 
19390 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19391
19392         * Form.cs: When a form's MdiParent is set add it directly
19393         on top of the z-order in stead of relying on MdiClient's
19394         ActivateChild to do it. Fixes #80135.
19395         
19396         * MdiClient.cs: 
19397         - Remove original_order, mdi_child_list is already doing
19398         the same thing.
19399         - Create mdi_child_list on construction in
19400         stead of first use (avoids a few null checks).
19401
19402         * MenuItem.cs: Use an already existing list of mdi children
19403         to get the correct order of children and remove the other
19404         redundant list.
19405
19406 2006-12-04  Chris Toshok  <toshok@ximian.com>
19407
19408         * PropertyGridView.cs: cached_splitter_location is only used in
19409         !DOUBLEBUFFER code.
19410
19411         * PropertyGrid.cs: implement the ComComponentNameChanged event
19412         using Events, hoping that would fix the warning.  Looks like a
19413         compiler bug instead (#80144).
19414
19415         * PropertyManager.cs: remove unused method.
19416
19417 2006-11-04  Everaldo Canuto  <everaldo@simios.org>
19418
19419         * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar, 
19420         include parentesis to fix expression evaluation. Fixes #79634.
19421
19422 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
19423         
19424         * MenuAPI.cs:
19425         - Changes to fix behavior in Menu control, some reported in #80097
19426         and other detected during behavior refactory like a select event
19427         problems.
19428         - Remove unneded "if's" conditions.
19429         - Created an internal to flag when popup is active in control, we need 
19430         it because in .NET you can have menu active but without popup active
19431         when you active menu using popup without visible items.
19432         - Mimic win32 behavior for Select and Popup events.  
19433         - Dont open popup menu when you dont have visible subitems.
19434         - Do nothing when click on disabled menu item.
19435         - Some small changes to follow the coding style guidelines.
19436         - Unselect menu only when another control gives focus. Fixes #80097.
19437         - Remove unused code.
19438         
19439         * MenuItem.cs: internal VisibleItems method to check if menu
19440         theres visible subitems, it will be usefull to fix some 
19441         behavior in Menu control.
19442         
19443 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
19444         
19445         * Timer.cs: Tag property for 2.0 profile.
19446         
19447 2006-12-01  Chris Toshok  <toshok@ximian.com>
19448
19449         [ after removing all warning suppressions, this cleans up over 100 warnings. ]
19450         
19451         * Win32DnD.cs: comment out some unused fields.
19452
19453         * XplatUIWin32.cs: comment out some unused pinvokes, and remove
19454         some unused properties/methods.
19455
19456         * XplatUIX11.cs: fix MousePosition so we override the base class's
19457         property instead of conflicting with it.
19458
19459         * PictureBox.cs: comment out some unused fields
19460
19461         * OSXStructs.cs: make some struct fields public.
19462
19463         * XplatUIOSX.cs: comment out some unused pinvokes, and fix
19464         MousePosition so we override the base class's property instead of
19465         conflicting with it.
19466
19467         * X11Dnd.cs: comment out some unused fields
19468
19469         * X11DesktopColors.cs: fix some struct field visibility to quiet
19470         the compiler.
19471
19472         * X11Dnd.cs: remove some debug code.
19473
19474         * ThemeClearlooks.cs: comment out unused field.
19475
19476         * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
19477
19478         * ThemeGtk.cs: comment out some unused pinvokes.
19479
19480         * Timer.cs: remove some unused fields.
19481
19482         * ThemeClearlooks.cs: comment out unused field.
19483
19484         * UpDownBase.cs: comment out unused field.
19485
19486         * DataObject.cs: comment out unused field.
19487
19488         * DataGridBoolColumn.cs: reomve unused field.
19489
19490         * DataGrid.cs: remove unused field.
19491
19492         * Cursor.cs: remove old ToBitmap code.
19493
19494         * ControlPaint.cs: remove unused method.
19495
19496         * ScrollBar.cs: remove unused fields.
19497
19498         * ComboBox.cs: remove unused field, and chain up to
19499         AccessibleObject ctor.
19500
19501         * ListBox.cs: remove unused field.
19502
19503         * ButtonBase.cs: wrap a couple fields in NET_2_0.
19504
19505         * GridEntry.cs: remove unused fields.
19506
19507         * Binding.cs: remove unused fields.
19508
19509         * AxHost.cs: remove unused method.
19510
19511         * ContainerControl.cs: remove unused field.
19512
19513         * ScrollableControl.cs: remove unused fields.
19514
19515 2006-12-01  Chris Toshok  <toshok@ximian.com>
19516
19517         * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
19518         the Where/WhereString stuff.  it's easy enough to CWL
19519         Environment.StackTrace.
19520
19521         * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
19522         unused private fields.
19523
19524 2006-12-01  Jackson Harper  <jackson@ximian.com>
19525
19526         * TextControl.cs: Do not update the view while inserting multiline
19527         text. If we update the view we might wrap lines, before entering
19528         the new lines, which causes the new line insertion calculations to
19529         be totally fubared.
19530         - Remove an old TODO
19531         - Make debug output a little nicer
19532         
19533 2006-12-01  Chris Toshok  <toshok@ximian.com>
19534
19535         * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
19536
19537 2006-12-01  Chris Toshok  <toshok@ximian.com>
19538
19539         [ fix the majority of the CS0108 warnings we've been suppressing ]
19540         
19541         * TreeView.cs: mark BackgroundImageChanged as 'new'.
19542
19543         * ToolBar.cs: ImeMode just passes stuff to Control.  Rename Layout
19544         to "LayoutToolBar" to quiet mcs.
19545         
19546         * TabControl.cs: mark our ControlCollection class as 'new'.
19547
19548         * TextBoxBase.cs: mark some events as 'new'.
19549
19550         * Splitter.cs: TabStop is 'new'.
19551
19552         * ControlBindingsCollection.cs: mark a few methods as new since
19553         they change the visibility from protected to public.
19554
19555         * RadioButton.cs: DoubleClick -> base class, and remove unused
19556         HaveDoubleClick.
19557
19558         * MonthCalendar.cs: ImeMode property -> base class, and mark many
19559         events as new.
19560
19561         * NumericUpDown.cs: TextChanged -> base class.
19562
19563         * CheckedListBox.cs: mark our ObjectCollection class as new to
19564         quiet mcs.
19565
19566         * FolderBrowserDialog.cs: make HelpRequest event new and have it
19567         muck with the base class.
19568
19569         * StatusBar.cs: fix some mcs warnings about Update being the same
19570         name as a base class method.
19571
19572         * RichTextBox.cs: mark some events as new, and make them do things
19573         to the base class impl.
19574
19575         * UserControl.cs: mark TextChanged as new, and have it manipulate
19576         base.TextChanged.
19577
19578         * UpDownBase.cs: mark some things new.
19579
19580         * CheckBox.cs: mark DoubleClick "new", and add some text about
19581         what we need to look at.
19582
19583         * Panel.cs: make the events "new", and manipulate the base
19584         version.  these are just here for attributes.
19585
19586         * AccessibleObject.cs: make owner private.
19587
19588         * Control.cs: deal with AccessibleObject.owner being private.
19589         cache our own copy if we need it.
19590
19591         * Button.cs: add "new" to the DoubleClickEvent.
19592
19593         * ListBox.cs: no need to track our own has_focus here.  let
19594         Control.has_focus do it for us.  Also some other work to clear up
19595         warnings about not overriding base class methods of the same name.
19596         
19597         * ComboBox.cs: clear up some warnings about not override base
19598         class methods of the same name.
19599
19600 2006-12-01  Chris Toshok  <toshok@ximian.com>
19601
19602         * Form.cs: flag a few things as "new" to quiet some of the mcs
19603         warnings.
19604
19605         * AxHost.cs: same.
19606
19607         * PrintPreviewDialog.cs: same.
19608
19609         * DataGridView.cs: fix a ton of corcompare warnings.  not all, but
19610         now DGV isn't so horrible on the class status page.  also, move
19611         all events to using System.ComponentModel.EventHandlerList.  my
19612         wrists hurt.
19613
19614 2006-12-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19615
19616         * MdiWindowManager.cs:
19617         - Set form to active mdi child if shown,
19618         and update the active mdi child to the next 
19619         remaining child in the z-order if the form is hidden.
19620
19621         * Form.cs: 
19622         - Track if the form has been visible and if its 
19623         visibility is beeing changed, so that the MdiClient
19624         can properly decide the ActiveMdiChild. The MdiClient 
19625         cannot track this since the form can change visibility 
19626         before MdiClient is created.
19627
19628         * MdiClient.cs:
19629         - Don't activate anything of the parent form is changing
19630         its visibility.
19631         - Rework ActiveMdiChild to only return visible mdi 
19632         children and take into account several other corner 
19633         cases.
19634
19635 2006-12-01  Chris Toshok  <toshok@ximian.com>
19636
19637         * IBindableComponent.cs: new 2.0 interface.
19638
19639 2006-12-01  Gert Driesen  <drieseng@users.sourceforge.net>
19640
19641         * DataGrid.cs: Font for caption area is bold by default.
19642
19643 2006-12-01  Everaldo Canuto  <everaldo@simios.org>
19644
19645         * Menu.cs: Tag property for 2.0.
19646         
19647 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
19648
19649         * ThemeWin32Classic.cs: Adjust menu separator drawing. 
19650         
19651 2006-12-01  Chris Toshok  <toshok@ximian.com>
19652
19653         * TreeView.cs: doh, the Begin* events should be
19654         TreeViewCancelEventHandler.
19655
19656 2006-12-01  Chris Toshok  <toshok@ximian.com>
19657
19658         * Form.cs: Form.ControlCollection already stores off the
19659         form_owner field.  don't access the base class's internal "owner"
19660         field.
19661
19662         * Control.cs: make all the fields in Control.ControlCollection
19663         private.  there's no need for any internal fields here.
19664
19665 2006-12-01  Chris Toshok  <toshok@ximian.com>
19666
19667         * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
19668         OnHandleCreated.  Fixes bug #80109.
19669
19670 2006-12-01  Chris Toshok  <toshok@ximian.com>
19671
19672         * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
19673         SplitContainer.cs, Control.cs, StatusStrip.cs,
19674         DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
19675         NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
19676         DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
19677         DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
19678         Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
19679         LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
19680         MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
19681         TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
19682         PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
19683         DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
19684
19685         do most of the work to convert our code over to use
19686         System.ComponentModel.Component.Events for
19687         adding/removing/dispatching events.
19688
19689
19690 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
19691
19692         * DataGridView.cs: Fix an ArgumentNullException reported 
19693         twice today in IRC.
19694
19695 2006-11-30  Mike Kestner  <mkestner@novell.com>
19696
19697         * ComboBox.cs: fix the scrollbar mouse event forwarding in the 
19698         grabbed listbox.  Fixes #80036 and #80101.
19699
19700 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
19701
19702         * Message.cs: Changed ToString() to match MS.
19703         
19704 2006-11-30  Jackson Harper  <jackson@ximian.com>
19705
19706         * TextBoxBase.cs: You can still change the selected text on a read
19707         only textbox.
19708         * TextControl.cs: Lower magic number for wrap calculations. This
19709         lets text get closer to the right (far) edge.
19710
19711 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
19712
19713         * Control.cs: Tweak 2.0 layout properties.
19714         * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
19715         * TextRenderer.cs: Add a new overload.
19716         * ToolStrip*: Huge amount of changes and new features.
19717
19718 2006-11-30  Mike Kestner  <mkestner@novell.com>
19719
19720         * ComboBox.cs: fixes for LargeChange and Maximum to get the 
19721         scroll range correct.  Fixes #79994.
19722
19723 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
19724
19725         * MdiWindowManager.cs: Update main form's text when
19726         a form is closed. (fixes #80038)
19727         
19728 2006-11-30  Everaldo Canuto  <everaldo@simios.org>
19729
19730         * ToolBar.cs:
19731         - Fix an regression in ButtonSize.
19732         - Get ImeMode default value change to "Disable".
19733         - Get ShowTooltips default value change to true, default value is 
19734         "false" but after make a test in .NET we get "true" result as default.
19735         
19736 2006-11-29  Jonathan Pobst  <monkey@jpobst.com>
19737
19738         * ToolStripDropDown.cs: Fix for SupportsTransparency change.
19739
19740 2006-11-29  Chris Toshok  <toshok@ximian.com>
19741
19742         * XplatUIWin32.cs (GetWindowTransparency): check return value of
19743         GetLayeredWindowAttributes.  if it's 0, return 1.0, as
19744         SetWindowTransparency hasn't been called.
19745
19746 2006-11-29  Chris Toshok  <toshok@ximian.com>
19747
19748         * Form.cs (set_TransparencyKey): only call SetWindowTransparency
19749         if it's supported.
19750         (set_AllowTransparency): reorder things a little so that the
19751         WS_EX_LAYERED style is removed properly.
19752
19753 2006-11-29  Chris Toshok  <toshok@ximian.com>
19754
19755         [ totally cosmetic eye-candy feature, fixes bug #80089 ]
19756         
19757         * Form.cs: only call the XplatUI transparency method (get/set) if
19758         SupportsTransparency says it's supported. Otherwise fallback to
19759         doing nothing (in the set case) or returning the instance field we
19760         cache (in the get case).
19761
19762         * XplatUIStructs.cs: add TransparencySupport flag enum.
19763         
19764         * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
19765         change to SupportsTransparency.
19766
19767         * XplatUIOSX.cs: stub out GetWindowTransparency, and return
19768         TransparencySupport.None from SupportsTransparency.
19769
19770         * XplatUIX11.cs: Stub out GetWindowTransparency, and return
19771         TransparencySupport.Set from SupportsTransparency.
19772
19773         * XplatUIWin32.cs: implement GetWindowTransparency calling
19774         GetLayeredWindowAttributes, and implement SupportsTransparency by
19775         checking whether or not both
19776         GetWindowTransparency/SetWindowTransparency are available
19777         entrypoints.  We need to do this since SetWindowTransparency is
19778         available as of win2k, but GetWindowTransparency requires winxp.
19779         yay win32 api.
19780
19781         * XplatUI.cs: Add GetWindowTransparency, and change
19782         SupportsTransparency to allow for either/both Get/Set.
19783
19784 2006-11-29  Chris Toshok  <toshok@ximian.com>
19785
19786         * DataGrid.cs: keep from going into an infinite loop redrawing a
19787         datagrid that has no datasource.  Fixes bug #80033.
19788
19789 2006-11-29  Chris Toshok  <toshok@ximian.com>
19790
19791         * MenuItem.cs: fix the NRE when we assign text (and therefore call
19792         Invalidate) before the mainmenu has been assigned to a control.
19793
19794 2006-11-29  Chris Toshok  <toshok@ximian.com>
19795
19796         * DataGrid.cs: detect when we should be double the double click
19797         row/column autosize stuff, although that codepath has yet to be
19798         written.  part of the work for bug #79891.
19799
19800 2006-11-29  Chris Toshok  <toshok@ximian.com>
19801
19802         * Binding.cs (SetControl): fix unit test.
19803
19804 2006-11-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19805
19806         * PageSetupDialog.cs: Validate the margins and set them in
19807         PageSettings. 
19808         * NumericTextBox.cs: New class to mimic the behavior of the
19809         textboxes used in the printing dialogs.
19810
19811 2006-11-29  Andreia Gaita  <avidigal@novell.com>
19812         
19813         * Form.cs: Revert previous change (remove call UpdateBounds
19814         from form constructor), because it messes with the handle creation
19815         order, and that one needs lots and lots of love.
19816         * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
19817         for valid printer and throw InvalidPrinterException if document
19818         is set but printer not valid), adding a MonoTODO. Once 
19819         handle creation is done properly, we can put this back in.
19820
19821 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
19822
19823         * MenuItem.cs: Create a invalidate method for menu item, to be
19824         calling from set text, it make text changes to imadiate update
19825         on screen. Fixes #80013. 
19826         
19827 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
19828
19829         * ToolBar.cs: Fixes and simplify toolbar button layout, it 
19830         fixes bug #80070 and some other problem on toolbar buttons
19831         layout.
19832
19833 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
19834
19835         * ThemeWin32Classic.cs: Paint toolbar toggle button background 
19836         with dotted brush.      Fixes #79564
19837         
19838 2006-11-28  Andreia Gaita  <avidigal@novell.com>
19839
19840         * Form.cs: Removed call to UpdateBounds on Form
19841         constructor, it was causing a call to CreateHandle
19842         before it was supposed to.
19843         * PrintControllerWithStatusDialog: Applied patch
19844         by Chris Toshok to hide controller when there are
19845         no printers available.
19846         PrintDialog.cs: initialize printer settings to 
19847         null - correct DefaultValues test #5
19848         * PrintPreviewControl.cs: Move PrintController
19849         initialization to GeneratePreview
19850         * PrintPreviewDialog.cs: 
19851         - Remove Preview generation     from Document_set(). It is 
19852         called on OnPaint
19853         - Throw InvalidPrinterException on CreateHandle if
19854         a Document is set but there are no printers or 
19855         printer is not valid.
19856         * ThemeWin32Classic: don't paint PrintPreviewControl
19857         if there is nothing to paint    
19858
19859 2006-11-28  Miguel de Icaza  <miguel@novell.com>
19860
19861         * Form.cs: Add another popular method.
19862
19863         * TabPage.cs: ditto.
19864
19865 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19866
19867         * MenuItem.cs: Fixed a warning.
19868         * InternalWindowManager: Fixed a warning.
19869
19870 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19871
19872         * MenuItem.cs:
19873         - When cloning a menu also clone MdiList and clone the 
19874           window menu items properly (as the forms and menuitems
19875           are kept in an internal hashtable, these need updating 
19876           as well)
19877         - Rewrote the window menu code, menu items are added in the
19878           order the forms were added to their parent, and they are
19879           updated every time the window menu is shown (before the
19880           list was only generated once, in the current order of the
19881           forms, and would never be updated). A checkmark is shown
19882           next to the item corresponding to the active mdi child.
19883
19884 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19885
19886         * XplatUIStructs.cs: 
19887         - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
19888         
19889         * XplatUIWin32.cs: 
19890         - Added TME_NONCLIENT to TMEFlags.
19891         - Handles WM_NCMOUSEMOVE in GetMessage to 
19892           generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
19893
19894         * MdiWindowManager:
19895         - Now merges mdi child menu to parent menu when maximized.
19896         - Recalculate NC areas of both mdi child and mdi parent. 
19897           Fixes #79757 (4).
19898           on window state and size changes.Fixes #79844 (3).
19899         - Handle WM_NCCALCSIZE to properly calculate borders.
19900
19901         * Form.cs:
19902         - Add/remove to the mdi containers list of mdi children 
19903           in the order they are added.
19904         - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE 
19905           to the maximized mdi child.
19906         
19907         * InternalWindowManager.cs:
19908         - Only execute a click on the control buttons on the mouse up,
19909           not on the mouse down. Show the state of the button 
19910           (was only showing Normal state, never Pressed state). The
19911           pressed button now follows the mouse (if you click the Close 
19912           button and move the mouse over the Maximize button, the 
19913           Maximize button will be shown as pressed). Since Win32 does
19914           not generate WM_NCLBUTTONUP if you release the button outside
19915           of the nc area, we need to handle WM_NCMOUSELEAVE and treat
19916           it as a mouse up.
19917         
19918         * ThemeWin32Classic.cs:
19919         - Draw a missing border around mdi child forms. Fixes #79844 (2).
19920
19921         * MdiClient.cs:
19922         - Added a list of forms which contains the order the forms are
19923           added to the mdi parent.
19924         - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
19925         - Handle WM_NCCALCSIZE to properly calculate the 3D border.
19926         - If the active form changes set the scrollbars to the top
19927           of the Z order, otherwise the form could hide them.
19928         - Scrollbars are now sized according to ClientSize, not 
19929           to Size, and they take into account the other scrollbar
19930           to determine maximum.
19931         
19932 2006-11-28  Rolf Bjarne Kvinge <RKvinge@novell.com>
19933         
19934         * XplatUI.cs:
19935         * XplatUIDriver.cs:
19936         * XplatUIX11.cs:
19937         * XplatUIWin32.cs:
19938         * XplatUIOSX.cs:
19939         - Added RequestAdditionalWM_NCMessages for windows to 
19940           opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
19941           Currently only implemented in XplatUIWin32.
19942
19943 2006-11-27  Chris Toshok  <toshok@ximian.com>
19944
19945         * Hwnd.cs: only add the hwnd to the windows hash in
19946         set_WholeWindow and set_ClientWindow if whole_window/client_window
19947         are not IntPtr.Zero.  also, remove the unused SetObjectWindow.
19948
19949 2006-11-27  Mike Kestner  <mkestner@novell.com>
19950
19951         * ComboBox.cs: remove redundant OnDropDown call.  It is called
19952         from the ComboListBox.ShowWindow code. Fixes #79969.
19953
19954 2006-11-27  Chris Toshok  <toshok@ximian.com>
19955
19956         * Hwnd.cs: remove the setters for ExposePending and
19957         NCExposePending - noone uses them.
19958
19959 2006-11-27  Jackson Harper  <jackson@ximian.com>
19960
19961         * TextControl.cs: new param for ReplaceSelection which determines
19962         whether we select the new selection, or set the cursor to the end
19963         of the new selection.
19964         * TextBoxBase.cs: Use new param for ReplaceSelection.  When
19965         pasting, select the new text.
19966         * RichTextBox.cs: Use new param for ReplaceSelection.
19967
19968 2006-11-27  Jackson Harper  <jackson@ximian.com>
19969
19970         * TextBoxBase.cs: Set the selection to the caret after the caret
19971         is moved, otherwise they get out of sync.
19972
19973 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
19974
19975         * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
19976         it fixes #80015
19977
19978 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
19979
19980         * ThemeWin32Classic.cs: 
19981         - Fix toolbar drop down arrow position.
19982         - Fix drop down appearance when ToolBar.Appearance is normal,
19983         it fixes #80018.
19984         
19985 2006-11-26  Gert Driesen  <drieseng@users.sourceforge.net>
19986
19987         * ProgressBar.cs: GetStyle fixes for 2.0 profile.
19988         * Control.cs: Same.
19989         * UpDownBase.cs: Same.
19990         * ButtonBase.cs: Same.
19991         * ScrollBar.cs: Same.
19992         * TrackBar.cs: Same.
19993         * PictureBox.cs: Same.
19994         * UserControl.cs: Same.
19995         * Label.cs: Same.
19996         * ListControl.cs: Same.
19997         * TextBoxBase.cs: Same.
19998         * ListView.cs: Same.
19999         * RichTextBox.cs: Same.
20000         * TreeView.cs: Same.
20001
20002 2006-11-25  Jordi Mas i Hernandez <jordimash@gmail.com>
20003
20004         * PrintDialog.cs:
20005         - Text label for where 
20006         - Text label comment was not shown
20007
20008 2006-11-23  Everaldo Canuto  <everaldo@simios.org>
20009
20010         * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
20011
20012 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
20013
20014         * InternalWindowManager.cs: 
20015         - Handle WM_PARENTNOTIFY to activate the form
20016         if any child control is clicked.
20017         - The form is only sizable if not minimized.
20018
20019         * MdiWindowManager.cs:
20020         - Save the IconicBounds if the form is moved.
20021         - Rework SetWindowState, now the window bounds 
20022         are stored only if the old window state is Normal.
20023         
20024         * MdiClient.cs:
20025         - In SetWindowStates store the old window state if 
20026         the window is maximized and restore window state if
20027         the window looses focus.
20028         - Don't handle any scrollbar value changes if 
20029         initializing the scroll bars. Fixes #79771.
20030         - Reworked ArrangeIconicWindows. Current algorithm
20031         tests bounds agains all other minimized windows, if
20032         any intersections create new bounds (going left to 
20033         right, bottom to top) and then test again. When 
20034         successful the bounds are saved and never computed
20035         again. Fixes #79774.
20036
20037 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
20038
20039         * InternalWindowManager.cs: Added HandleTitleBarUp.
20040
20041 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
20042
20043         * NumericUpDown.cs: In .NET 1.1, user entered text is still
20044         hexadecimal in ParseUserEdit.
20045
20046         
20047 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
20048
20049         * MdiWindowManager.cs: 
20050         - Handle a click on the form's icon to show the 
20051         system menu (when maximized). Fixes #79775.
20052         - Change the existing click handler for the form's
20053         icon when not maximized to show on MouseUp.
20054         Fixes #79776.
20055
20056         * Form.cs: In OnResize only layout the mdi child's
20057         parent if it actually has a parent. Might not if
20058         the window is closing.
20059
20060
20061 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
20062
20063         * MdiClient.cs: Ignore active MDI client for text of parent, if
20064         child has no text set.
20065
20066 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
20067
20068         * ToolBar.cs: Fixed ToString to match MS.
20069
20070 2006-11-22  Andreia Gaita  <avidigal@novell.com>
20071
20072         * NumericUpDown: 
20073         - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to 
20074         update inner values on set. Fixes #79966.
20075         - Override OnLostFocus to update value on NET 2. Fixes #79950.
20076         - Fix hexadecimal parsing.
20077         
20078         * UpDownBase: Override OnGotFocus and OnLostFocus to notify 
20079         parent. Fixes #79957
20080
20081 2006-11-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20082
20083         * Control.cs: After calling SetWindowsPos in SetBoundsCore 
20084         the actual size has to be queried, since if height /
20085         width is negative Win32 changes it to 0. 
20086         Fixes #79999 on Windows.
20087         
20088         * XplatUIX11.cs: Set height / width to 0 if negative
20089         in SetWindowPos. Fixes #79999 on Linux.
20090         
20091 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
20092
20093         * ThemeWin32Classic.cs: Fix text redenring when button is
20094         pressed.
20095
20096 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
20097
20098         * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
20099         and later navigate by mouse. Fixes #79528.
20100
20101 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
20102
20103         * ToolBar.cs: Set default value for TabStop to false in
20104         constructor, it fixes remaining behavior of bug #79863.
20105
20106 2006-11-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20107
20108         * MdiWindowManager.cs:
20109         * InternalWindowManager.cs:
20110         - Moved a few methods specific to Mdi from 
20111         InternalWindowManager to MdiWindowManager.
20112         Fixes #79996.
20113         
20114 2006-11-21  Chris Toshok  <toshok@ximian.com>
20115
20116         * XplatUIOSX.cs: stub out InvalidateNC.
20117
20118         * XplatUIWin32.cs: implement InvalidateNC using the call I found
20119         at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
20120
20121         * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
20122
20123         * XplatUIDriver.cs: add InvalidateNC abstract method.
20124
20125         * XplatUI.cs: add InvalidateNC.
20126
20127 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
20128
20129         * ToolBar.cs: Invalidate complete button area when pressed status 
20130         was changed.
20131         * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
20132         * ThemeWin32Classic.cs: Increase vertical and horizontal position 
20133         by 1 when button is pressed.
20134
20135 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
20136
20137         * ToolButton.cs: Invalidate middle of DropDown button when
20138         ToolBar theres DropDownArrows.
20139         * ThemeWin32Classic.cs: Change position of DropDown arrow and
20140         fix DropDown drawing operations.
20141
20142 2006-11-20  Chris Toshok  <toshok@ximian.com>
20143
20144         * NativeWindow.cs: fix the formatting of functions ('{' on the
20145         following line), and enable the thread exception dialog.
20146
20147         * Application.cs: remove the duplicate exception catching from
20148         here.
20149
20150 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
20151
20152         * Toolbar.cs: Triggers button click event when click on icon
20153         of dropdown ToolBarButton. Fixes #79912.
20154         
20155 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20156
20157         * Theme.cs:
20158         * ThemeWin32Classic.cs:
20159         - Added a property WindowBorderFont to enable themeing
20160           of mdi child windows' Text.
20161           
20162 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20163
20164         * InternalWindowManager.cs:
20165         * Form.cs:
20166         * MdiClient.cs:
20167         * MdiWindowManager.cs: 
20168         - If mdi child is maximized, set mdi parent's
20169           text to "Parent - [Child]". Fixes #79770.
20170         - If there is any maximized mdi child windows, only the active 
20171           window (and any new windows) is maximized, the rest are normal.
20172         - On a WindowState change only save mdi child's window bounds 
20173           if the old window state was normal. Fixes #79774.
20174         - The scroll bars are now calculated on hopefully all
20175           necessary events. Fixed #79771 / #79844->6 / #79906.
20176         - MdiClient.SizeScrollBars() now takes into account docked 
20177           controls in the parent when calculating available space.
20178         - InternalWindowManager now always repaints the entire title
20179           area. Fixes #79844->1/4/5.
20180         - Added RequestNCRecalc on mdi child windowstate changes.
20181           Fixes #79772.
20182
20183 2006-11-20  Mike Kestner  <mkestner@novell.com>
20184
20185         * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
20186         in the MouseUp handler of the listbox and move the return handling
20187         code to FireMouseUp to avoid scrolling on ups.  Fixes #79952.
20188
20189 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
20190
20191         * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855. 
20192
20193 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
20194
20195         * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
20196           working in 1.2.x anymore. So, updated.
20197
20198 2006-11-19  Gert Driesen  <drieseng@users.sourceforge.net>
20199
20200         * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
20201         NumberGroupSeparator of current culture instead of assuming en-US.
20202         Fixed bug #79967.
20203
20204 2006-11-17  Mike Kestner  <mkestner@novell.com>
20205
20206         * Control.cs: Add the concept of implicit bounds setting so that
20207         dock/undock round trips preserve explicitly set size/locations.
20208         Fixes #79313.
20209
20210 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
20211
20212         * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
20213           can't handle those filters. (Fixes bug #79961)
20214
20215 2006-11-17  Chris Toshok  <toshok@ximian.com>
20216
20217         [ fixes the exit/crashes associated with #79835.  it's clearly
20218         suboptimal though, we need to figure out a better way to solve
20219         this. ]
20220         
20221         * PrintPreviewControl.cs: deal with the new invalid printer
20222         exceptions.
20223
20224         * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
20225         and return false (so CommonDialog.ShowDialog doesn't actually show
20226         the form.)
20227
20228         * PrintDialog.cs: enable/disable the Ok button depending on
20229         whether or not the printer is valid.
20230
20231         * CommonDialog.cs (ShowDialog): only actually show the form if
20232         RunDialog returns true.
20233
20234 2006-11-17  Jackson Harper  <jackson@ximian.com>
20235
20236         * TextControl.cs: When soft splitting a line, mark it as a soft
20237         split line. Also carry over the current line break to the next
20238         line.
20239
20240 2006-11-17  Chris Toshok  <toshok@ximian.com>
20241
20242         * XplatUIX11.cs: when scrolling a window with an invalid area, we
20243         only want to shift the part of the invalid area that overlaps the
20244         area we're scrolling.  we also don't want to clear the invalid
20245         area unless the invalid area was entirely contained within the
20246         scrolling area.
20247
20248 2006-11-16  Chris Toshok  <toshok@ximian.com>
20249
20250         * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
20251         also make sure to free the memory returned by XGetWindowProperty
20252         in GetText().
20253
20254         * X11Structs.cs: remove the TimerEvent stuff, it's unused.
20255
20256 2006-11-16  Chris Toshok  <toshok@ximian.com>
20257
20258         * XplatUI.cs: add a new super secret way to get at the totally
20259         unsupported X11 backend.
20260
20261 2006-11-16  Gert Driesen  <drieseng@users.sourceforge.net>
20262
20263         * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
20264
20265 2006-11-16  Jackson Harper  <jackson@ximian.com>
20266
20267         * TreeView.cs: Allow more explicit setting of top node position
20268         for scrollbars. Slower algo, but more accurate.
20269         - CollapseAll should maintain the current top node.
20270         * TextBoxBase.cs: When positioning the caret, use the line, pos
20271         method, since the x, y method does not grab the correct tag, and
20272         the caret height never gets set correctly. (Maybe I should just do
20273         away with the caret having its own height, and always use the
20274         carets current tag for height).
20275
20276 2006-11-16  Jonathan Pobst  <monkey@jpobst.com
20277
20278         [Fixes 79778, 79923]
20279
20280         * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
20281         Parent to the FosterParent instead.
20282
20283 2006-11-16  Jackson Harper  <jackson@ximian.com>
20284
20285         * TreeView.cs: Need to recalc the topnode when we expand or
20286         collapse. The scrolling methods can't handle this on their own,
20287         since they use differences between the last scroll position, and
20288         those difference get completely messed up since we are expanding
20289         nodes.  This problem should probably be fixed in the scrolling
20290         methods, so they can figure out exactly where they are, but this
20291         will slow things down a little.
20292         * ThemeWin32Classic.cs: Special case for groupboxes with empty
20293         strings, makes nunit-gui look a lot nicer.
20294
20295 2006-11-16  Chris Toshok  <toshok@ximian.com>
20296
20297         * XplatUIX11.cs: nasty, nasty, nasty changes required because of
20298         the broken multithreaded event handling we have in here.  File
20299         this entry under "Why we should move to the new X11 backend".
20300
20301         Any thread can make it into UpdateMessageQueue, which gets events
20302         from the X socket - some of which could belong to hwnds being
20303         managed by a different thread.  We can also have multiple threads
20304         in UpdateMessageQueue at the same time, with each one reading from
20305         the X socket.  This leads to many problems, with the following
20306         solutions:
20307
20308         We can't use hwnd.Queue.Enqueue anywhere in here and must use
20309         EnqueueLocked.
20310
20311         The MotionNotify compression we do can't work across threads
20312         (without locking the entire queue, perhaps) since we call
20313         hwnd.Queue.Peek, so we just punt and don't compress motion events
20314         unless the owning thread is the one which got the X event.
20315
20316         ConfigureNotify is another fun one, since it modifies the hwnd's
20317         bounds and then enqueues the event.  We add a lock to Hwnd which
20318         is held when setting configure_pending to true (and enqueuing the
20319         event).
20320
20321         There is a race wrt the wake socket.  we need to make sure that
20322         only 1 thread is waiting on that socket, or else a thread could
20323         sleep waiting for data that never comes.  It's difficult (but not
20324         impossible) to make happen, because it seems to require something
20325         like the following:
20326
20327             1. Thread 1 polls on wake_receive
20328         
20329             2. poll returns saying there's data to be read on
20330                wake_receive.
20331         
20332             3. Thread 2 polls on wake_receive and immediately returns
20333                saying there's data to be read.
20334
20335             4. Thread 2 reads the wakeup byte from wake_receive
20336
20337             5. Thread 1 attempts to read the wakeup byte from
20338                wake_receive.
20339
20340             6. Thread 2 exits (due to a form closing, perhaps).
20341
20342             7. Thread 1 blocks forever.
20343         
20344         Fun, eh?
20345
20346         Fixing the Expose handling isn't done yet, and the races inherent
20347         in that piece of code are responsible for the drawing mistakes you
20348         see when generating expose events in a MT app (like NPlot).  This
20349         one is the likely to be the hardest to bandaid, and it doesn't
20350         appear to cause anything but drawing problems.  The other issues
20351         caused apps to exit or hang.
20352
20353         * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
20354         called from a different thread than the one that should be calling
20355         these functions.
20356
20357         * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
20358
20359 2006-11-15  Chris Toshok  <toshok@ximian.com>
20360
20361         * Application.cs: null out the context's MainForm when we exit
20362         RunLoop.  Fixes a newly checked in unit test as well as the last
20363         ODE from bug #79933.
20364
20365 2006-11-15  Chris Toshok  <toshok@ximian.com>
20366
20367         * Form.cs (set_Owner): allow a null value so we can clear the
20368         form's owner.
20369         (Dispose): set all our owned_form's Owner properties to null, and
20370         clear the owned_forms collection.
20371         (WM_CLOSE): clean up this a little bit.. still not right though.
20372
20373         * ApplicationContext.cs: OnMainFormClosed should only call
20374         ExitThreadCore if the main form isn't recreating.  Fixes unit
20375         test.
20376
20377 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
20378
20379         [Fixes 78346]
20380
20381         * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
20382
20383 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
20384
20385         [Fixes 79433]
20386
20387         * Hwnd.cs: Add a flag to show a window, but not activate it, to 
20388         keep popup window types from stealing focus from the main form
20389         on Windows.
20390
20391         * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
20392
20393         * MenuAPI.cs: Set above flag to true.
20394
20395 2006-11-15  Chris Toshok  <toshok@ximian.com>
20396
20397         * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
20398         the button being released is not in wParam.
20399
20400 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
20401
20402         * Form.cs: Add the released button to MouseEventArgs.Button
20403         for the OnMouseUp call to the MenuTracker.  Fixes menu clicking
20404         on Win32.
20405
20406 2006-11-15  Chris Toshok  <toshok@ximian.com>
20407
20408         * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
20409         GetText().  untested because it's unused in our implementation.
20410         Control.Text always caches the text, even if
20411         ControlStyles.CacheText is not set.
20412
20413         fixes bug #79939.
20414
20415 2006-11-15  Chris Toshok  <toshok@ximian.com>
20416
20417         [ fixes #79933 ]
20418         
20419         * Form.cs: in Close() don't do anything after we send the WM_CLOSE
20420         message.  no hiding, no disposing.
20421
20422         in the WM_CLOSE handler, hide the form if it's modal.
20423
20424 2006-11-15  Chris Toshok  <toshok@ximian.com>
20425
20426         * XplatUIX11.cs: use AddExpose instead of sending a message.
20427         fixes textbox border drawing.
20428
20429 2006-11-15  Chris Toshok  <toshok@ximian.com>
20430
20431         * PropertyGridView.cs: keep from crashing on mouse move/down when
20432         the property grid is empty.
20433
20434 2006-11-14  Jackson Harper  <jackson@ximian.com>
20435
20436         * TextControl.cs: Make PageUp and PageDown more like the MS
20437         versions.
20438         * TextBoxBase.cs: When we set the text property position the
20439         cursor at the beginning of the document.
20440
20441 2006-11-14  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20442
20443         * Form.cs: if a mdi child's WindowState has changed
20444         before it's creation, it would display wrong control
20445         buttons.
20446         
20447 2006-11-14  Alexander Olk  <alex.olk@googlemail.com>
20448
20449         * TreeView.cs: De-uglify TreeView checkbox checkmarks.
20450           (Fixes bug #79927)
20451
20452 2006-11-14  Rolf Bjarne Kvinge <RKvinge@novell.com> 
20453
20454         * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that 
20455         the window gets to paint its borders even if the window is
20456         getting smaller.
20457         
20458         * Form.cs: on a WM_NCPAINT invalidate the entire menu, 
20459         otherwise the old control buttons would still be painted 
20460         if the window gets bigger.
20461         
20462         * PaintEventArgs.cs: add an internal method so that the clip 
20463         rectangle can be changed.
20464         
20465 2006-11-13  Chris Toshok  <toshok@ximian.com>
20466
20467         [ fixes bug #79745 ]
20468         
20469         * NotifyIcon.cs: lots of cleanup.
20470
20471         * X11Structs.cs: add an enum for XEMBED messages.
20472
20473         * XplatUIX11.cs: reindent one of the giant switch statements, it
20474         was taking up an additional tab stop, and this file is already way
20475         too wide for my laptop's screen.
20476
20477         Also, add handling for the XEmbed EMBEDDED_NOTIFY message.  When
20478         we get it, resize the hwnd to the WMNormalHints max_width/height.
20479
20480 2006-11-13  Jackson Harper  <jackson@ximian.com>
20481
20482         * TextBoxBase.cs: Compute the value changes for the mouse wheel
20483         teh simple way.
20484
20485 2006-11-13  Chris Toshok  <toshok@ximian.com>
20486
20487         * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
20488         #79898.  force a reference to the Region to stick around so the
20489         unmanaged object isn't collected (rendering our handle in the MSG
20490         stale).
20491
20492 2006-11-13  Chris Toshok  <toshok@ximian.com>
20493
20494         * XplatUIX11.cs: fix #79917 for window managers which support
20495
20496         using XStoreName on the raw utf8, and we need to convert to
20497         COMPOUND_TEXT if it's non-latin1.
20498
20499 2006-11-13  Chris Toshok  <toshok@ximian.com>
20500
20501         * Form.cs (set_DialogResult): we need to set closing to false if
20502         we're setting our result to None.  fixes bug #79908.
20503
20504 2006-11-13  Jackson Harper  <jackson@ximian.com>
20505
20506         * TextControl.cs: When formatting text, compute the adjusted tag
20507         lengths correctly, using FindTag for the end tag instead of trying
20508         to figure it out outselves.
20509         * TreeNode.cs: Use ActualItemHeight, which is the actual height of
20510         the item, ItemHeight doesn't work, because trees with large
20511         imagelists use those for their height
20512         * TreeView.cs: ActualItemHeight factors in the image height
20513         - compute left edge of checkboxes correctly
20514         - when expanding/collapsing move the bottom down one pixel, so we
20515         aren't moving part of the node
20516
20517 2006-11-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20518
20519         * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
20520         stack in PaintEventStart so that it won't get disposed by the gc
20521         before reaching PaintEventEnd.
20522
20523 2006-11-13  Jackson Harper  <jackson@ximian.com>
20524
20525         * TextBoxBase.cs: Don't select the word if we are on a line with
20526         no text.
20527         - We don't need to position the caret on mouse up, since the mouse
20528         move handler should be doing this
20529         - When double clicking a blank line, the caret is advanced to the
20530         next line.
20531
20532 2006-11-13  Gert Driesen  <drieseng@users.sourceforge.net>
20533
20534         * TreeNodeCollection.cs: Avoid duplicating indexer code.
20535
20536 2006-11-12  Gert Driesen  <drieseng@users.sourceforge.net>
20537
20538         * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
20539         Fixes part of bug #79910.
20540
20541 2006-11-11  Alexander Olk  <alex.olk@googlemail.com>
20542
20543         * ColorDialog.cs: Fix a NRE when adding a color to custom colors
20544           (bug #79903). Some minor string updates to match ms.
20545
20546 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
20547
20548         * FileDialog.cs: Don't add an extension if the filename
20549           already ends with that extension.
20550
20551 2006-11-10  Jackson Harper  <jackson@ximian.com>
20552
20553         * TreeView.cs: Use the currently highlighted node for the
20554         BeforeSelect event.
20555         * TextBoxBase.cs: There is no need to expand selection on
20556         MouseMove.
20557         - CanUndo means 'is there any undo operations', not 'is undo
20558         allowed on this textcontrol. Fixed ClearUndo unit test.
20559
20560 2006-11-10  Andreia Gaita  <shana.ufie@gmail.com>
20561
20562         * Button.cs: only perform click when button is Selectable (so as 
20563         not to activate default buttons when they're disabled)
20564         
20565         * Control.cs: Rewrite of the SelectNextControl and related 
20566         methods. HandleClick now selects next control if the current one
20567         is being disabled.
20568         
20569         * Form.cs: OnActivated selects next active control only if Load 
20570         has already occurred. If Load hasn't run, there's no point in 
20571         selecting here, Load might change the state of controls.
20572         
20573         * FocusTest.cs: Tests marked as working again for these fixes
20574
20575 2006-11-10  Chris Toshok  <toshok@ximian.com>
20576
20577         * XplatUIX11.cs: a couple of fixes.
20578
20579         - use XInternAtoms with almost all the atoms we need to register,
20580         instead of many, many calls to XInternAtom.  should help a bit on
20581         startup time, at the expense of making the code look a little
20582         worse.
20583
20584         - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
20585         isn't reparented (which seems to be a clue that we're running fon
20586         compiz) and they have an Owner form.  This fixes the tool windows
20587         in paint.net when running under compiz.
20588
20589         - when setting the opacity of a window, support both the case
20590         where the window has been reparented and also when it hasn't been.
20591         Since compiz/beryl doesn't seem to reparent windows, and these are
20592         the only window managers which support translucency, I'm not sure
20593         why we need the hwnd.reparented case at all.. but leave it in.
20594         now we get translucent windows in paint.net under compiz/beryl.
20595
20596 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
20597
20598         * FileDialog.cs: Always return the value for FilterIndex that
20599           was set. Internally convert it to values that make sense.
20600
20601 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
20602         
20603         * ThemeWin32Classic.cs: Fix drowp down arrow borders.
20604
20605 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
20606
20607         * Toolbar.cs: Change default value of DropDownArrows to true, the 
20608         signature still using false to make it compatible with MS but the 
20609         initial value is true. Fixes #79855.
20610
20611 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
20612
20613         * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
20614           only available on Linux.
20615
20616 2006-11-09  Everaldo Canuto  <everaldo@simios.org>
20617
20618         * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
20619         reduce number of calls to redraw method during toolbar creation.
20620
20621 2006-11-09  Mike Kestner  <mkestner@novell.com>
20622
20623         * ListView.cs : raise SelectedIndexChanged when an item is selected
20624         programmatically via the Item.Selected property.  Gert's nice 
20625         ListViewSelectedIndexChanged test fixture now runs clean.
20626
20627 2006-11-09  Mike Kestner  <mkestner@novell.com>
20628
20629         * ListView.cs : raise SelectedIndexChanged when a selected item is
20630         removed from the item collection using Remove or RemoveAt.
20631
20632 2006-11-09  Mike Kestner  <mkestner@novell.com>
20633
20634         * ListView.cs : raise SelectedIndexChanged once per selected item
20635         for compat with MS.  Fixes #79849+.
20636
20637 2006-11-09  Chris Toshok  <toshok@ximian.com>
20638
20639         * TabControl.cs: initialize row_count to 0, and set it to 1 when
20640         we need to (if we have any tab pages).  Fixes unit test.
20641
20642 2006-11-09  Chris Toshok  <toshok@ximian.com>
20643
20644         * Label.cs (CalcPreferredWidth): if Text == "", our preferred
20645         width is 0, not 3.  Fixes a unit test.
20646
20647 2006-11-09  Mike Kestner  <mkestner@novell.com>
20648
20649         * ListView.cs : use Implicit scrollbars so that focus isn't 
20650         stolen from the listview when they are clicked. Fixes #79850.
20651
20652 2006-11-09  Chris Toshok  <toshok@ximian.com>
20653
20654         * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
20655         have a root item.  Fixes #79879.
20656
20657 2006-11-09  Alexander Olk  <alex.olk@googlemail.com>
20658
20659         * FileDialog.cs:
20660           - Fix ToString ()
20661           - An ArgumentException is now thrown if a wrong filter
20662             is applied (matches ms). The previous filter doesn't change
20663             anymore if an exception is thrown.
20664           - Changing the FileName property also affects FileNames
20665         * ColorDialog.cs: The length of the CustomColors array is always
20666           16. It doesn't matter if we use a smaller array or null to update
20667           or change the custom colors property.
20668         * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
20669           for RootFolder if we get a undefined value.
20670
20671 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20672
20673         * StatusBarPanel.cs: 
20674         - Width is set to MinWidth if Width is smaller than
20675         MinWidth. Fixes #79842.
20676         - MinWidth now always overrides Width (MSDN says MinWidth
20677         is set to Width when AutoSize = None, but they do not 
20678         behave like that).
20679         - Style has now the the correct default value.
20680         
20681 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20682  
20683         * TrackBar.cs: 
20684         - The control is completely invalidated on 
20685         Got/LostFocus to draw the focus rectangle correctly.
20686         - When AutoSize then height is always 45 (width for 
20687         vertical controls).
20688         
20689         * ThemeWin32Classic.cs: The TrackBar thumb is now centered
20690         on the mouse when moved and it doesn't move when grabbed
20691         until the mouse moves as well. Also fixed some wrong 
20692         calculations when clicking on the thumb (control thought
20693         click was outside of thumb and didn't grab it).
20694         Fixes some of the issues in #79718.
20695
20696 2006-11-08  Everaldo Canuto  <everaldo@simios.org>
20697
20698         * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
20699
20700 2006-11-08  Chris Toshok  <toshok@ximian.com>
20701
20702         * PropertyGridView.cs: only call ToggleValue if the item is not
20703         readonly.
20704
20705 2006-11-08  Jackson Harper  <jackson@ximian.com>
20706
20707         * TextBoxBase.cs: The RichTextBox and textbox have very different
20708         word selection methods.  Implement the textbox's simple word
20709         selection here, and let the RichTextBox override and provide it's
20710         own.
20711         - Don't do extra selection on mouseup
20712         * RichTextBox.cs: Use the documents word selection algorithm, I
20713         think ideally, this function will be pulled into the
20714         RichTextBox.cs code someday.
20715
20716 2006-11-08  Chris Toshok  <toshok@ximian.com>
20717
20718         * RootGridEntry.cs: new class to represent GridItemType.Root.
20719
20720         * CategoryGridEntry.cs: reformat, and add boilerplate.
20721         
20722         * GridEntry.cs: remove the UIParent stuff - turns out .Parent
20723         returns the UI parent anyway, and we need special handling to
20724         implement the GetTarget method in the face of it.  Also, implement
20725         Select().
20726
20727         * PropertyGrid.cs, PropertyGridView.cs: a number of fixes.  create
20728         a root grid item, and use that instead of PropertyGrid.grid_items.
20729         Also, make use of TypeConverters (and add limitted support for
20730         ICustomTypeDescriptors) when initially populating the grid.
20731         Arrays now show up more or less properly.
20732
20733 2006-11-08  Chris Toshok  <toshok@ximian.com>
20734
20735         * Application.cs: set the modal dialog to non modal after we close
20736         it.  Fixes bug #79866.
20737
20738 2006-11-08  Jackson Harper  <jackson@ximian.com>
20739
20740         * TextControl.cs: When combining lines carry over the line end
20741         style from the end line.
20742         - Invalidate the selected area when setting it, if it is visible.
20743         * TextBoxBase.cs: Only rich text box can do full line selects.
20744         - Make sure to set the cursor position when there is a click,
20745         otherwise two clicks in separate areas could cause a large chunk
20746         to be selected.
20747
20748 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
20749
20750         * Toolbar.cs: Release flat button borders when Toolbar lost focus. 
20751         Fixes #79863.
20752
20753 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
20754
20755         * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
20756         time. Remove tooltips when ToolButton click events.  Fixes #79856.
20757
20758 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
20759
20760         * MenuAPI.cs: Ignore right click for menu actions and fixes
20761         menu border when clicked.  Fixes #79846.
20762
20763 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
20764
20765         * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
20766         MouseState after create wParam for message, this fixes mouse button 
20767         equal none in mouse up events.
20768         
20769 2006-11-07  Andreia Gaita  <shana.ufie@gmail.com>
20770
20771         * Control.cs : Focus() now calls Select to set the Container's
20772         Active Control and to give it focus. To avoid infinite recursion
20773         (because ActiveControl also calls Focus at one point), a check 
20774         is made in Focus with the help of a new internal variable
20775         is_focusing.
20776
20777 2006-11-07  Mike Kestner  <mkestner@novell.com>
20778
20779         * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
20780         if there's a selection.  Fixes #79849.
20781
20782 2006-11-07  Gert Driesen  <drieseng@users.sourceforge.net>
20783
20784         * PropertyGrid.cs: Avoid fixed height of help description label.
20785         Fixes part of bug #79829.
20786
20787 2006-11-07  Chris Toshok  <toshok@ximian.com>
20788
20789         * XplatUIX11.cs: fix #79790 again, by using the
20790         _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
20791
20792 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
20793
20794         * ToolBar.cs: Fix left click checking.
20795
20796 2006-11-07  Chris Toshok  <toshok@ximian.com>
20797
20798         * ProgressBar.cs: fix a typo in ToString().  fixes a unit test.
20799
20800 2006-11-07  Chris Toshok  <toshok@ximian.com>
20801
20802         * RelatedPropertyManager.cs: set property_name in our ctor.  fixes
20803         PropertyManager unit tests.
20804
20805         * PropertyManager.cs: make property_name internal.
20806
20807 2006-11-07  Chris Toshok  <toshok@ximian.com>
20808
20809         * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
20810         pass a unit test.  Also, don't set image_index to anything in
20811         response to setting the ImageList property.
20812
20813 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
20814
20815         * ToolBar.cs: Ignore click events when mouse button is not a
20816         left button, only accepts other button for dropdown menus.  
20817         Fixes #79854.
20818
20819 2006-11-07  Chris Toshok  <toshok@ximian.com>
20820
20821         * DataGrid.cs: make the back and parent row buttons a little less
20822         ugly.
20823
20824 2006-11-07  Jackson Harper  <jackson@ximian.com>
20825
20826         * TextBoxBase.cs: When converting to Text don't put line breaks in
20827         for soft line breaks.
20828         * TextControl.cs: There is an initial "fake" line in the document,
20829         this is now a soft break line, so that an extra line feed doesn't
20830         get added to the end of documents.
20831
20832 2006-11-07  Chris Toshok  <toshok@ximian.com>
20833
20834         [ fix bug #79778 ]
20835         
20836         * CurrencyManager.cs: if the list is readonly, don't bother
20837         checking if IBindingList.AllowNew is true.
20838
20839         * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
20840         for non-DataRowView datasources..  or rather, make it not crash.
20841         (DataGridPaintRelationRow): make sure we limit the row painting to
20842         the area not covered by the row header, and make our cell width at
20843         least large enough to cover the relation area.  This allows grids
20844         that have relations but no rows to render correctly.
20845         (DataGridPaintRowContents): same type of changes here.
20846         (SetDataSource): move back to always calling
20847         CalcAreasAndInvalidate.  this fixes a crash/drawing problem when
20848         navigating back through relations.
20849         (HitTest): handle the case where we have no cells but have
20850         relations.  Right now we generate a hit in cell 0 of whatever the
20851         row is, not sure if this is strictly correct, but it works for our
20852         purposes.
20853         
20854         * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
20855         bother doing anything.
20856
20857 2006-11-07  Jonathan Pobst  <monkey@jpobst.com>
20858
20859         * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
20860         early version of StatusStrip.  Not responsible for eaten
20861         application or firstborn children.
20862
20863 2006-11-06  Chris Toshok  <toshok@ximian.com>
20864
20865         * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
20866         call GetTabRect with a -1 index.  Fixes #79847.
20867
20868 2006-11-06  Jackson Harper  <jackson@ximian.com>
20869
20870         * TreeNodeCollection.cs: Update scrollbars after clearing.
20871
20872 2006-11-06  Chris Toshok  <toshok@ximian.com>
20873
20874         * NumericUpDown.cs: fix the ToString method for some unit test
20875         love.
20876
20877 2006-11-06  Chris Toshok  <toshok@ximian.com>
20878
20879         * PropertyGrid.cs:
20880         - set the initial SelectedGridItem if we can.
20881
20882         - Exclude non-mergable properties only if we're merging > 1
20883         object.  Merging 1 object isn't really merging, obviously.
20884
20885         - Handle PropertySort.NoSort just like Alphabetical, which is
20886         wrong of course, but at least gets things on the screen.
20887         
20888         * PropertyGridView.cs:
20889         - Add method "FindFirstItem" which finds the first property grid
20890         item, so we can select it by default.
20891
20892         - make use of GridEntry.CanResetValue.
20893
20894         - Don't call RedrawBelowItemOnExpansion here anymore, the
20895         individual GridEntry's will do that.
20896
20897         - Remove the ITypeDescriptorContextImpl internal class.
20898         
20899         * GridEntry.cs:
20900         - this class needs to implement ITypeDescriptorContext, as it's
20901         what MS's PropertyDescriptorGridEntry does, which means we can
20902         remove the ITypeDescriptorContextImpl internal class from
20903         PropertyGrid.cs.  This fixes the crashing portion of bug #79829.
20904
20905         - keep a reference to our PropertyGridView, and move the call to
20906         RedrawBelowItemOnExpansion here from PGV.  This means
20907         programmaticly setting Expanded actually does something visible.
20908
20909         - add a CanResetValue() function which takes into account our
20910         possibly multiple "selected_objects" in the merged case.  Shifting
20911         PropertyGridView to use this method fixes another unreported
20912         crasher found running the test for #79829.
20913
20914         - when Top or Bounds is updated, make sure the PropertyGridTextBox
20915         is updated to reflect this.
20916
20917         * CategoryGridEntry.cs: the ctor takes the PGV now.
20918         
20919 2006-11-06  Jackson Harper  <jackson@ximian.com>
20920
20921         * TextControl.cs: These are 1 based.
20922         * TextBoxBase.cs: When setting the selected text, don't change the
20923         selected text tags, this is done by ReplaceText, just position the
20924         cursor at the end of the new text.
20925
20926 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
20927
20928         * ListView.cs: Allow label edit only when, when LabelEdit is
20929           set to true.
20930
20931 2006-11-06  Jackson Harper  <jackson@ximian.com>
20932
20933         * TextControl.cs: If a suitable wrapping position isn't found,
20934         just wrap right in the middle of a word.
20935
20936 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
20937
20938         * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
20939           bug #79820.
20940
20941 2006-11-06  Jackson Harper  <jackson@ximian.com>
20942
20943         * TreeView.cs: Can't use the VisibleCount property when setting
20944         scrollbar heights, because this doesn't take into account whether
20945         or not the horz scrollbar just came visible.
20946
20947 2006-11-05  Everaldo Canuto  <everaldo@simios.org>
20948
20949         * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
20950         activated.  Fixes #79369, #79832.
20951
20952 2006-11-05  Alexander Olk  <alex.olk@googlemail.com>
20953
20954         * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
20955           had to remove support for links that point to a directory. FileInfo
20956           returns no usefull information (means, the directory they point to)
20957           for such links. Replaced some empty string ("") with String.Empty.
20958
20959 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
20960
20961         * TreeNodeCollection.cs: To match MS, in 1.0 profile throw 
20962         NullReferenceException when attempting to remove node that is not in
20963         collection. Throw NullReferenceException when null is passed to 
20964         Remove. Allow first element of the collection to be removed. Fixes
20965         bug #79831.  In GetEnumerator ().Current return null if positioned 
20966         before the first element of the collection. In GetEnumerator ().Reset,
20967         position before first element of the collection.
20968
20969 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
20970
20971         * PropertyGrid.cs: To match MS, remove default title and description
20972         for panel. Fixed tooltips for Categorized and Alphabetic toolbar
20973         buttons.
20974
20975 2006-11-04  Chris Toshok  <toshok@ximian.com>
20976
20977         * Theme.cs: add a Clamp method, just for kicks.
20978
20979         * ThemeWin32Classic.cs: clamp all color components to [0..255].
20980
20981 2006-11-04  Chris Toshok  <toshok@ximian.com>
20982
20983         * Form.cs: if the form isn't visible, Close() does nothing.
20984
20985 2006-11-03  Chris Toshok  <toshok@ximian.com>
20986
20987         * Form.cs (Close): if the form is modal, don't Dispose of it, only
20988         Hide it.
20989         (WndProc): don't Dispose after handling the WM_CLOSE message.
20990
20991         * Application.cs (RunLoop): toplevels is a list of Forms, so treat
20992         them as such, instead of using casts from Control to Form.  Also,
20993         don't Dispose of the modal dialog when we fall out of the loop -
20994         Close() it instead.
20995
20996         fixes bug #79813.
20997
20998 2006-11-03  Chris Toshok  <toshok@ximian.com>
20999
21000         * Control.cs (Dispose): only go through the dispose thing if we're
21001         @disposing, and we haven't already been disposed.  Fixes bug
21002         #79814.
21003
21004         * Form.cs: no reason to call "base.Dispose()" here instead of
21005         "Dispose()".
21006
21007 2006-11-03  Mike Kestner  <mkestner@novell.com>
21008
21009         * ComboBox.cs : use ToString instead of casts in AddItem for
21010         sorting functionality.  Fixes #79812.
21011
21012 2006-11-03  Chris Toshok  <toshok@ximian.com>
21013
21014         * Application.cs: pave the way for actually using the thread
21015         exception dialog.  it's ifdefed out at the moment.
21016
21017 2006-11-03  Chris Toshok  <toshok@ximian.com>
21018
21019         * ThreadExceptionDialog.cs: until we get a better layout, actually
21020         hide the details textbox and label when we shouldn't see them.
21021
21022 2006-11-03  Jackson Harper  <jackson@ximian.com>
21023
21024         * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
21025         multiline textboxes anymore.  This method also determines the
21026         width/height of a textboxes canvas area.
21027         - Sorta a revert of the last patch.  For multiline just position
21028         the controls, then bail.  This way the scrollbar width won't be
21029         altered.
21030
21031 2006-11-03  Everaldo Canuto  <everaldo@simios.org>
21032
21033         * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
21034         it dont need.  Fixes #79537.
21035
21036 2006-11-02  Jackson Harper  <jackson@ximian.com>
21037
21038         * X11Dnd.cs: We always allow copy, since XDND implies Copy.  Also
21039         send the status after firing the DndOver event.
21040
21041 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
21042
21043         * TrackBar.cs: Now orientation only switches height / width if
21044         the control's handle is created (Win32 does it like this). Also 
21045         fixed a typo in ToString() for a test to pass, changed the 
21046         exception thrown in set_LargeChange and set_SmallChange to 
21047         match Win32 behaviour, and added TrackBar tests to the unit 
21048         tests.
21049
21050 2006-11-02  Chris Toshok  <toshok@ximian.com>
21051
21052         * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
21053         not _NET_WM_STATE_NO_TASKBAR.
21054
21055 2006-11-02  Jackson Harper  <jackson@ximian.com>
21056
21057         * TextControl.cs: Increment count by one, since in the update view
21058         count - 1 is used.
21059
21060 2006-11-02  Jackson Harper  <jackson@ximian.com>
21061
21062         * TextBoxBase.cs: Use client rectangle not bounds for checking if
21063         the mouse is in the client rectangle (duh).
21064
21065 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
21066         
21067         * TrackBar.cs: Fixed trackbar jumping around when clicking
21068         on it - the trackbar was not detecting correctly at which
21069         side of the thumb the click was done. (fixes #79718)
21070
21071 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
21072
21073         * ListBox.cs: scroll visible area when change SelectedIndex to
21074         a non visible area.  Fixes #79481.
21075
21076 2006-11-01  Jackson Harper  <jackson@ximian.com>
21077
21078         * TextControl.cs: When replacing the selection move the selection
21079         start/end/anchor to the end of the new text.
21080
21081 2006-11-01  Jackson Harper  <jackson@ximian.com>
21082
21083         * XplatUIWin32.cs: When setting the parent change the controls
21084         visibility to it's visibility flag, not to it's old parents
21085         visibility (.Visible walks the parent chain).
21086
21087 2006-11-01  Chris Toshok  <toshok@ximian.com>
21088
21089         * XplatUIX11.cs: revert the #79790 fix, as the simple.
21090         XSetTransientForHint fix breaks paint .net's tool windows.  more
21091         work needed for that one.
21092
21093 2006-11-01  Chris Toshok  <toshok@ximian.com>
21094
21095         * ScrollBar.cs: throw ArgumentException instead of Exception in
21096         LargeChange/SmallChange setters.  fixes unit tests.
21097
21098 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
21099
21100         * ContainerControl.cs: reverted rev.67183 (which was itself
21101         a reversion of rev.66853... eh).
21102         
21103         * Control.cs: Fixes Reflector hang by changing Focus() call
21104         to what it was before rev.66643 (calling Select() here sets 
21105         ActiveControl, which in some situations calls back Focus and 
21106         eventually does a stack overflow). Temp fix.    
21107         Changes to GetNextControl() to not look for children to select when
21108         parent cannot be selectable (so it looks for siblings instead)  
21109         
21110 2006-10-31  Mike Kestner  <mkestner@novell.com>
21111
21112         * CheckedListBox.cs : off by one error in returned index from
21113         ObjectCollection.Add.  Fixes #79758.
21114
21115 2006-10-31  Chris Toshok  <toshok@ximian.com>
21116
21117         * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
21118         calls for the textbox/spinner, to keep from recursing to the point
21119         where we crash.  Fixes #79760.
21120
21121 2006-10-31  Chris Toshok  <toshok@ximian.com>
21122
21123         * ListControl.cs (set_SelectedValue): don't throw exceptions on
21124         null/"" value, just return.  matches ms's behavior and fixes some
21125         failing tests.
21126
21127 2006-10-31  Chris Toshok  <toshok@ximian.com>
21128
21129         * Control.cs (set_Capture): make a logic a little easier to
21130         follow.
21131
21132         * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
21133         if it's being destroyed.  A necessary fix surely, but a bandaid
21134         also, to fix the stuck capture problem in bug #78413.
21135
21136 2006-10-31  Chris Toshok  <toshok@ximian.com>
21137
21138         * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
21139         convention of clearing hwnd.ClientRect when we set the
21140         width/height (so it'll be recalculated by Hwnd).
21141
21142 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
21143
21144         * ContainerControl.cs: reversed Contains check from
21145         ActiveControl due to hanging problems. This fix
21146         partly regresses #79667 (button does not have
21147         initial focus), so this might be a symptom for 
21148         a larger parenting problem (set_ActiveControl
21149         is being called but the child control does
21150         not have the parent set yet?)   
21151         
21152 2006-10-31  Mike Kestner  <mkestner@novell.com>
21153
21154         * MenuAPI.cs : fix keynav when menu is click activated.
21155
21156 2006-10-31  Jonathan Pobst  <monkey@jpobst.com>
21157
21158         * ToolStrip*: Version 0.2.
21159
21160         * MenuStrip.cs: Version 0.1.
21161
21162         * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
21163
21164 2006-10-30  Chris Toshok  <toshok@ximian.com>
21165
21166         [ fixes the oversized notify icon issue in bug #79745 ]
21167         
21168         * NotifyIcon.cs: scale the icon down to the size we're given by
21169         the XplatUI layer (this would be faster if we did it once instead
21170         of whenever we paint..)  Also, remove the WM_NCPAINT handling,
21171         since it's never invoked.
21172
21173         * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
21174         pixels high by default, so let's hardcode our systray icon to that
21175         size.  The SYSTEM_TRAY protocol should really have a way for
21176         client apps to query for the correct icon size.. but oh well.  A
21177         couple of patches to deal with the screwy client_window ==
21178         whole_window notifyicon stuff (we don't want to PerformNCCalc, for
21179         instance, and also make sure we don't XSelectInput twice).
21180
21181 2006-10-30  Chris Toshok  <toshok@ximian.com>
21182
21183         * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
21184         recreating forms.  Control recreation is the bane of my existence.
21185         Fix it in a way that keeps everyone happy.
21186
21187 2006-10-30  Chris Toshok  <toshok@ximian.com>
21188
21189         * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
21190         just non-CHILD ones.  otherwise sometimes scrollbars end up with
21191         client_windows not being resized to the proper size (ReportBuilder
21192         shows this extremely well).
21193
21194 2006-10-30  Chris Toshok  <toshok@ximian.com>
21195
21196         * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
21197         for non-WS_EX_APPWINDOW windows.  This is what keeps them from
21198         showing up in the gnome taskbar.  Fixes bug #79790.
21199
21200 2006-10-30  Chris Toshok  <toshok@ximian.com>
21201
21202         * ApplicationContext.cs: guard against a NRE.
21203
21204         * Application.cs: null out the old MainForm for the context, so we
21205         don't try to use it again once it's disposed.  Fixes bug #79783.
21206
21207 2006-10-30  Chris Toshok  <toshok@ximian.com>
21208
21209         * DataGrid.cs (set_DataSource, set_DataMember): if we have a
21210         BindingContext, set the data source directly, otherwise do the
21211         lazy approach - the actual ListManager will be created when we get
21212         a BindingContext. Fixes bug #79700.
21213
21214 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
21215
21216         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
21217           XplatUIX11.cs: Remove old 2 parameter SetVisible.
21218
21219         * Control.cs: Use the new 3 parameter SetVisible with activate = true.
21220
21221 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
21222
21223         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
21224         of SetVisible that allows a window to be shown, but not activated.
21225         This is needed on Windows for MenuStrip, and can probably be used
21226         with MainMenu and ComboBox to fix the focus stealing issues on
21227         Windows.
21228
21229         * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
21230
21231 2006-10-30  Alexander Olk  <alex.olk@googlemail.com>
21232
21233         * PictureBox.cs: Fix the output of the ToString method.
21234
21235 2006-10-29  Chris Toshok  <toshok@ximian.com>
21236
21237         * Control.cs (get_TopLevelControl): fix bug #79781.
21238
21239 2006-10-29  Chris Toshok  <toshok@ximian.com>
21240
21241         * ListControl.cs (set_DataSource): throw Exception here, not
21242         ArgumentException, to match MS behavior.
21243
21244 2006-10-29  Chris Toshok  <toshok@ximian.com>
21245
21246         * Form.cs: remove the try-catch's around calls to GetWindowState.
21247         We can just check the return value.
21248
21249         * XplatUIX11.cs: don't throw exceptions from GetWindowState.
21250         Instead return -1.
21251
21252         * XplatUI.cs: Add note about additional return value for
21253         GetWindowState.
21254
21255 2006-10-29  Chris Toshok  <toshok@ximian.com>
21256
21257         * Control.cs (CreateHandle): when we create our handle, we also
21258         create the handles of our child controls.  Fixes one of the
21259         Control unit tests (CH11).
21260
21261 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
21262
21263         * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
21264
21265 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
21266
21267         * ThemeClearlooks.cs: A little speedup.
21268
21269 2006-10-27  Chris Toshok  <toshok@ximian.com>
21270
21271         * Control.cs: implement Control.FromChildHandle in a way that
21272         matches the docs (and fixes the failed test.)
21273
21274 2006-10-27  Chris Toshok  <toshok@ximian.com>
21275
21276         * DataGridTableStyle.cs: reproduce buggy MS behavior (with
21277         comments).
21278
21279         * DataGrid.cs: implement ResetForeColor such that the tests
21280         succeed.
21281         
21282 2006-10-27  Chris Toshok  <toshok@ximian.com>
21283
21284         * ToolBarButton.cs: setting text/tooltiptext to null results in it
21285         being set to "".  Fixes bug #79759.
21286
21287 2006-10-27  Jackson Harper  <jackson@ximian.com>
21288
21289         * TextControl.cs: We need to clear the entire selection area when
21290         setting the start, otherwise multiline selections are still
21291         visible.
21292
21293 2006-10-26  Chris Toshok  <toshok@ximian.com>
21294
21295         * PropertyGridView.cs: 
21296
21297         - ifdef all the code specific to the double
21298         buffer case, and provide some alternatives in the non-doublebuffer
21299         code, which makes heavy use of XplatUI.ScrollWindow to move things
21300         around without having to invalidate (and cause flicker).  There
21301         are still some drawing problems in the non-doublebuffered case, so
21302         DOUBLEBUFFER is defined by default.
21303
21304         - Fix the way dropdowns are handled.  now we explicitly watch for
21305         the events which might cause the dropdown to close, and break out
21306         of the nested event loop there.  This gets rid of all Capture
21307         code, at the expense of the Msg special casing.  Seems to work,
21308         though, and fixes bug #79743.
21309
21310 2006-10-27  Rolf Bjarne Kvinge <RKvinge@novell.com>
21311         * Control.cs: SetIsRecreating now recreates implicitly added
21312         child controls as well. Finally fixes #79629. The flag passed to 
21313         SetIsRecreating has also been removed since it wasn't used.
21314         
21315 2006-10-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
21316
21317         * PageSetupDialog.cs: Clean some code, fix some bits, 
21318         add some checks, and add a printer sub-dialog.
21319
21320 2006-10-26  Chris Toshok  <toshok@ximian.com>
21321
21322         * PropertyGrid.cs: make set_SelectedObject call
21323         set_SelectedObjects, and move the duplicate logic to the
21324         SelectedObjects setter.  Also, raise SelectedObjectsChanged.
21325
21326         * PropertyGridView.cs: hide the textbox when we get a
21327         SelectedObjectsChanged event.
21328
21329         Fixes bug #79748.
21330
21331 2006-10-26  Chris Toshok  <toshok@ximian.com>
21332
21333         * PropertyGridView.cs: deal with the type converter not supporting
21334         GetStandardValues() or GetStandardValues() returning null, which
21335         is does in the default case.  Fixes #79742.
21336
21337 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
21338
21339         * CheckedListBox.cs: nunit no longer crashes when selecting 
21340         Project/Edit menu option
21341         
21342 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
21343
21344         * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
21345         is no menu selected. fixes #79739
21346
21347 2006-10-25  Chris Toshok  <toshok@ximian.com>
21348
21349         * PropertyGridView.cs: factor out the splitter invalidation code
21350         into the SplitterPercent setter, and for kicks implement the
21351         Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
21352         amount in either direction.
21353
21354 2006-10-25  Chris Toshok  <toshok@ximian.com>
21355
21356         * PropertyGridView.cs: do some cleanup of the brush used to draw
21357         text - read only fields should be grayed out.  not sure how to do
21358         this with the textbox, though.  but the textbox's should also be
21359         readonly now at least.  Also, hide/show the textbox when resizing
21360         the control.
21361         
21362         * CursorConverter.cs: use System.Reflection when getting the
21363         properties of Cursors, as TypeDescriptor.GetProperties isn't
21364         returning static properties.
21365
21366 2006-10-25  Chris Toshok  <toshok@ximian.com>
21367
21368         * PropertyGridView.cs: factor out the up/down handling, and reuse
21369         it for page up/down.  also add End/Home support.
21370
21371 2006-10-25  Chris Toshok  <toshok@ximian.com>
21372
21373         * PropertyGridView.cs:
21374
21375         - ensure the selected grid item is visible in the scrolled area,
21376         fixes bug #79572.
21377
21378         - fix Keys.Down handling when you're on the last item in the
21379         propertygrid.
21380
21381 2006-10-25  Mike Kestner  <mkestner@novell.com>
21382
21383         * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup 
21384         clicks too.  Fixes #79725.
21385
21386 2006-10-24  Chris Toshok  <toshok@ximian.com>
21387
21388         * PropertyGrid.cs: use property.Converter instead of
21389         TypeDescriptor.GetConverter(property.PropertyType), so we catch
21390         TypeConverters declared on the property as well as on the
21391         PropertyType.  Fixes bug #79678.
21392
21393 2006-10-24  Alexander Olk  <alex.olk@googlemail.com>
21394
21395         * MimeIcon.cs, Mime.cs:
21396           Fallback to the default platform handler if no shared mime info
21397           stuff exists (fixes #79693).
21398
21399 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
21400         * ContainerControl.cs: Incorrect contains check in ActiveControl 
21401         from previous fix (duh).
21402
21403 2006-10-20  Chris Toshok  <toshok@ximian.com>
21404
21405         * PropertyGridView.cs: the dropdown should be MIN(number of items
21406         in list, 15).  Fixes #79551.
21407
21408 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
21409         Fixes #79384, #79394, #79652, #79667
21410         * Application.cs: 
21411         
21412         - Modal windows are now destroyed in the proper order for windows
21413         
21414         * ContainerControl.cs:
21415         
21416         - ActiveControl setter has more conditions on when to return:
21417                 - if we're reselecting the active control, but it actually
21418                 didn't have focus (window hidden or some such), it runs
21419                 - if the active control being selected doesn't actually 
21420                 exist in the container, it returns
21421         
21422         * Form.cs
21423         
21424         - The ShowDialog now gets the current form as the owner when
21425         invoking without parameters, and correctly activates the owner 
21426         when returning
21427         
21428         * MessageBox.cs
21429         
21430         - MessageBox now catches the Escape key to exit
21431
21432 2006-10-20  Chris Toshok  <toshok@ximian.com>
21433
21434         * PropertyGridView.cs: fix a number of issues (bug #78565, and
21435         most of bug #79676):
21436
21437         - you can navigate around the property grid with the arrow keys.
21438
21439         - the dropdown is sized properly when the pg has a vertical
21440         scrollbar.
21441
21442         - fix the indentation for subentries, and properly select the
21443         entire label rect.
21444
21445         - fix the gray bar's drawing (only draw it to the last element,
21446         not for the height of the control.  Also make sure we draw that
21447         last horizontal grid line.
21448
21449         - use the same mechanism the datagrid uses wrt the editing textbox
21450         when scrolling/resizing/etc.  Namely, we hide it first, do the
21451         operation, then show it again (if it's still visible).
21452         
21453         - aggressively remove a lot of unnecessary refreshes (and also
21454         calls to Invalidate(). call more limited variants, and only redraw
21455         what we need.)
21456         
21457         * PropertyGrid.cs:
21458
21459         - when we're populating the merged collection, fill in the UI
21460         parent with either the passed in item, or the category item we
21461         create.
21462
21463         - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
21464
21465         * GridItem.cs: drop some fully qualified names.
21466         
21467         * GridEntry.cs: add a "UIParent", which is basically the parent
21468         treenode.
21469
21470         * GridItemCollection.cs: add an IndexOf method.
21471
21472 2006-10-20  Mike Kestner  <mkestner@novell.com>
21473
21474         * MainMenu.cs : go back to Draw in OnMenuChanged.  Until we get
21475         a working win32 NC invalidation mechanism, we can't invalidate
21476         menus.  [Fixes #79705]
21477
21478 2006-10-20  Mike Kestner  <mkestner@novell.com>
21479
21480         * ListBox.cs : don't update the VScrollbar if the list is empty,
21481         just hide it.  [Fixes #79692]
21482
21483 2006-10-20  Jackson Harper  <jackson@ximian.com>
21484
21485         * RichTextBox.cs: Handle some special chars better, and don't skip
21486         the entire group when we encounter a special char that we don't
21487         handle correctly.
21488
21489 2006-10-18  Chris Toshok  <toshok@ximian.com>
21490
21491         * PropertyGridView.cs: address a number of issues from bug #79676,
21492         mostly of the cosmetic variety.
21493
21494         - The highlight rectangle for indented items not extends all the
21495         way to the left.
21496
21497         - Indented items aren't indented so much.
21498
21499         - the dropdown is properly sized width-wise if the pg has a
21500         vertical scrollbar.
21501
21502 2006-10-18  Chris Toshok  <toshok@ximian.com>
21503
21504         * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
21505         systray stuff is rather convoluted to begin with.
21506
21507         systray icons are a single window for some reason (that I haven't
21508         figured out yet), and for them, client_window == whole_window.
21509         Given the way the tests are structured elsewhere to determine
21510         which paints are pending (client vs. nc), that situation will
21511         always yield PAINT, not NCPAINT.  So, if we have a pending
21512         nc_expose and no pending expose, remove the hwnd from the paint
21513         queue, and also set nc_expose_pending to false, to keep us from
21514         blocking further expose's adding the hwnd to the paint queue.
21515
21516         phew.  like i said, a rather convoluted change.  Fixes the
21517         notifyicon repaint issues in bug #79645.
21518
21519 2006-10-18  Chris Toshok  <toshok@ximian.com>
21520
21521         * Form.cs: when getting the backcolor of the form, don't get
21522         base.BackColor, as this allows parents to influence the background
21523         color.  This breaks mdi forms.  Instead, if the background_color
21524         is empty, return the default.
21525
21526 2006-10-18  Chris Toshok  <toshok@ximian.com>
21527
21528         * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
21529         to being private instead of internal static.
21530
21531         * Control.cs: remove all the stupid ParentWaitingOnRecreation
21532         crap, it wasn't working for more deeply nested controls anyway,
21533         and we already have the is_recreating flag - use that instead.
21534         Before calling DestroyHandle in RecreateHandle, recurse through
21535         the control tree setting it to true.  this returns the recreate
21536         code to much of its original simplicity, while now guaranteeing we
21537         actually recreate everything we're supposed to.  This change gets
21538         fyireporting actually showing mdi children.
21539
21540 2006-10-17  Chris Toshok  <toshok@ximian.com>
21541
21542         * Form.cs: remove some debug spew, and collapse some duplicate
21543         code at the end of SetClientSizeCore.
21544
21545         * XplatUIX11.cs: 
21546         - add some more debug spew here too wrt Destroy handling.
21547         - don't call hwnd.Dispose in DestroyWindow, it's effectively done
21548         in Control's handling of WM_DESTROY.
21549         - Remove the handling of zombie window DestroyNotifies from the
21550         event loop - we don't need it.  Now the only DestroyNotifies we
21551         actually handle are ones generated by X.
21552         - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
21553         match gtk's (functioning) handling of this. This keep metacity
21554         from leaving droppings in the form of wm borders with no window
21555         contents all over the place.
21556
21557         * Control.cs:
21558         - add a bunch of debug spew wrt control recreation.
21559         - fix a bug where we weren't tracking Visible properly on
21560         recreated hwnds.
21561         - fixed the WM_PAINT double buffer handling to support re-entrant
21562         calls (yes, i know it's gross, but it's happening to us).
21563
21564 2006-10-17  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
21565         * ThemeWin32Classic.cs: changed drawing of selected days
21566         to make them look better.
21567
21568 2006-10-16  Chris Toshok  <toshok@ximian.com>
21569
21570         * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
21571         drawing_stack.  Nuke the ClientDC/NonClientDC properties.
21572
21573         * XplatUIX11.cs: move away from using hwnd.client_dc and
21574         hwnd.non_client_dc and on to a stack of dc's (and in window's
21575         case, PAINTSTRUCT's), so we can deal with nested Paint calls
21576         without puking or not disposing of Graphics objects.
21577
21578         * XplatUIOSX.cs: same.
21579
21580         * XplatUIWin32.cs: same.
21581
21582 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
21583
21584         * FileDialog.cs: Don't call on_directory_changed inside
21585           OnSelectedIndexChanged (it changes the SelectedIndex too).
21586           Instead move it to OnSelectionChangeCommitted.
21587
21588 2006-10-13  Chris Toshok  <toshok@ximian.com>
21589
21590         * XplatUIX11.cs: more Destroy work.  the current code does the
21591         following things, in order:
21592
21593         1. Enumerates all handles of all controls at or below the one
21594         being destroyed, in pre-order.  As it is doing this, it marks the
21595         handles as zombie and clears all references to them.
21596         
21597         2. calls XDestroyWindow on the window passed in.
21598
21599         3. SendMessage's WM_DESTROY to all he handles in the accumulated
21600         list.
21601
21602 2006-10-13  Chris Toshok  <toshok@ximian.com>
21603
21604         * XplatUIX11.cs: set hwnd.zombie to true before calling
21605         SendMessage (WM_DESTROY).  this keeps us from marking the new
21606         window a zombie, and also keeps us from calling sendmessage at
21607         all.
21608
21609 2006-10-13  Jackson Harper  <jackson@ximian.com>
21610
21611         * TextControl.cs: Do not show the caret and selection at the same
21612         time.  Reduces ugliness by 35%.
21613
21614 2006-10-13  Chris Toshok  <toshok@ximian.com>
21615
21616         * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
21617         zombie after we do the recursive call, so we actually do call
21618         SendMessage on the children controls.
21619         (GetMessage): if we find a pending paint event for a zombie hwnd,
21620         remove the hwnd from the paint queue, or else it will always be
21621         there (and we'll effectively loop infinitely)
21622
21623 2006-10-13  Mike Kestner  <mkestner@novell.com>
21624
21625         * MenuItem.cs : add Selected format under keynav too.
21626         Fixes #79528.
21627
21628 2006-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
21629
21630         * PropertyGrid.cs: Fixed some NRE's and small difference between our
21631         implementation and that of MS.
21632
21633 2006-10-13  Chris Toshok  <toshok@ximian.com>
21634
21635         * Control.cs (OnInvalidated) only futz with the invalid_region if
21636         the control is double buffered.  this fixes the apparent hang in
21637         the ListView unit tests.  Someone needs to make the
21638         BeginEndUpdateTest not call OnInvalidated 15004 times, though..
21639
21640 2006-10-13  Chris Toshok  <toshok@ximian.com>
21641
21642         * PropertyGridView.cs:
21643
21644         - do a little refactoring so that only one place calls
21645         dropdown_form.Hide, and that is CloseDropDown.  make everywhere
21646         else call that.  Also make it Refresh, since there are redraw bugs
21647         otherwise (we should take a look at that...)
21648
21649         - do a little more refactoring work to share the body of code
21650         involved with the drop down.  it was duplicated in the code
21651         dealing with the listbox handling and in the code dealing with the
21652         UITypeEditors.
21653
21654         - add a Capture to the dropdown form's control once it's
21655         displayed, and add a MouseDown handler that checks to make sure
21656         the position is inside the control.  If it's not, close the
21657         dropdown.  This fixes #78190.
21658
21659         - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
21660         if the value is different than the initial value.
21661         
21662 2006-10-13  Andreia Gaita  <shana.ufie@gmail.com>
21663
21664         * Control.cs: see #78650
21665         - Fixed GetNextControl for several cases:
21666                 - Changed FindFlatForward to return 
21667                 correct sibling control when more than one
21668                 control has same TabIndex as the currently 
21669                 focused one.
21670                 - Changed FindFlatBackward to loop children
21671                 from last to first and apply same logic as in
21672                 FindFlatForward
21673                 - Changed FindControlForward to search for
21674                 children when control is not a container
21675                 but has children, or search for siblings if
21676                 control is a container...
21677                 - Changed FindControlBackward   to continue
21678                 searching for child controls when hitting 
21679                 Panel-like parents
21680                 
21681         - Fixed Focus method to update ActiveControl
21682         (FocusTest.FocusSetsActive failure)
21683         
21684         * TabControl.cs:
21685         - Focus rectangle now refreshes when gaining
21686         or losing focus
21687         - Removed grab for Tab key on IsInputKey that 
21688         was keeping tab navigation from working (#78650)
21689
21690 2006-10-13  Chris Toshok  <toshok@ximian.com>
21691
21692         * PropertyGridView.cs:
21693         - Rewrite SetPropertyValue to loop over SelectedGridItem's
21694         SelectedObjects.
21695
21696         - Deal with GridItem.Value == null a few places.
21697
21698         * PropertyGrid.cs: 
21699         - replace the PopulateGridItemCollection with a pair of methods
21700         which compute the intersection of all the properties in the
21701         SelectedObjects array.  Fixes #79615.
21702
21703         - Throw ArgumentException from set_SelectedObjects if there's a
21704         null in the array.
21705
21706         - Add GetTarget method which can be used to traverse up the
21707         GridItem.Parent chain.  It depends on the assumption that
21708         selected_objects for different GridEntries are always in the same
21709         order (a safe assumption).  Use this method and loop over all the
21710         selected objects in the entry when calling RemoveValueChanged and
21711         AddValueChanged.
21712         
21713         * GridEntry.cs: Make this handle multiple selected objects.
21714         .Value returns null if not all the selected objects share the same
21715         value.
21716
21717 2006-10-12  Jonathan Pobst  <monkey@jpobst.com>
21718         * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
21719           ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
21720           ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
21721           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
21722           ToolStripTextBox.cs: Add accessibility, fix attributes/API and
21723         add additional functionality.
21724
21725 2006-10-12  Mike Kestner  <mkestner@novell.com>
21726
21727         * ErrorProvider.cs : new ToolTipWindow ctor sig.
21728         * HelpProvider.cs : new ToolTipWindow ctor sig.
21729         * ToolTip.cs : remove ToolTip param from Window sig since it is
21730         not used.
21731         * ToolBar.cs : add tooltip support.  Fixes #79565.
21732
21733 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
21734
21735         * ComboBox.cs: move the events in set_SelectedIndex to 
21736         after the call to HighlightIndex in order to avoid 
21737         possible recursion and subsequent problems with the call
21738         to HighlightIndex and include a range check in 
21739         set_HighlightIndex. Fixes #79588
21740         
21741 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
21742
21743         * MonthCalendar.cs: When FirstDayOfWeek is default set firstday 
21744         to ui thread's settings instead of sunday. 
21745         * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
21746
21747 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
21748
21749         * DateTimePicker.cs
21750         * MonthCalendar.cs
21751         * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
21752         and implement missing functionality (selecting different parts 
21753         of the date and edit them individually with the keyboard).
21754         
21755 2006-10-11  Chris Toshok  <toshok@ximian.com>
21756
21757         * Control.cs (OnInvalidated): fix NRE relating to last change.
21758
21759 2006-10-11  Chris Toshok  <toshok@ximian.com>
21760
21761         * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
21762         atoms in _NET_WM_STATE here if the window is maximized.  We need
21763         to do this because we're *replacing* the existing _NET_WM_STATE
21764         property, so those atoms will be lost otherwise, and any further
21765         call to GetWindowState will return Normal for a window which is
21766         actually maximized.  Fixes #79338.
21767
21768 2006-10-11  Jackson Harper  <jackson@ximian.com>
21769
21770         * TextControl.cs: Special case for setting selection end to
21771         selection start, we basically kill the anchor.
21772         - some todo comments.
21773
21774 2006-10-11  Chris Toshok  <toshok@ximian.com>
21775
21776         * Control.cs: switch to using an "invalid_region" to track which
21777         parts of the image buffer need updating.  This is more code than
21778         the simple fix from r66532.  That version just attempted to always
21779         fill the entire buffer on redraw, which turns out to be
21780         inefficient when invalidating small rectangles.  This version
21781         simply adds the invalid rectangle to the invalid region.  When we
21782         get any WM_PAINT message we see if it can be filled using the
21783         image buffer, and if it can't (if the paint event's clip rectangle
21784         is visible in the invalid region) we first fill the image buffer.
21785         So, the image buffer is still a cache, we just fill it lazily.
21786
21787         * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
21788         need it any longer.
21789
21790 2006-10-11  Chris Toshok  <toshok@ximian.com>
21791
21792         * XplatUIX11.cs (SetWindowPos): we need to update both position as
21793         well as size after calling XMoveResizeWindow.  This keeps us from
21794         ignoring future SetWindowPos calls.  Fixes the disappearing
21795         DateTimePicker in the ToolBarDockExample from bug #72499.
21796
21797 2006-10-11  Chris Toshok  <toshok@ximian.com>
21798
21799         * TextBoxBase.cs: reorder things a bit when it comes to
21800         resizing-causing-recalculation.  we were recalculating the
21801         document when our position was changed, which shouldn't happen.
21802         We only care about size changes.  Clear up some more redundant
21803         recalculation calls while I'm at it.  This makes the toolbar dock
21804         example snappy when you're just dragging toolbars around (since it
21805         causes a relayout whenever you move one.)
21806
21807 2006-10-11  Chris Toshok  <toshok@ximian.com>
21808
21809         * ToolBarButton.cs (get_Rectangle): this only returns
21810         Rectangle.Empty if Visible == false, or Parent == null.
21811         Parent.Visible doesn't matter.
21812
21813 2006-10-10  Chris Toshok  <toshok@ximian.com>
21814
21815         * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
21816         by .net 1.1, so switch to an internal method instead.
21817
21818 2006-10-10  Chris Toshok  <toshok@ximian.com>
21819
21820         * Control.cs (WM_PAINT): when a control is double buffered we draw
21821         initially to the ImageBuffer and then copy from there.  But when a
21822         parent control which has child controls is double buffered, the
21823         initial drawing doesn't encompass the entire ClientRectangle of
21824         the parent control, so we end up with uninitialized bits (this is
21825         easily seen by dragging the top toolbar in
21826         wf-apps/ToolBarDockExample to the right, quickly).  The fix is to
21827         manually set the ClipRectangle of the paint_event (only the one we
21828         use to populate the ImageBuffer) to ClientRectangle.  Fixes more
21829         of the nastiness in bug #72499.
21830
21831         * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
21832         which we use in Control.cs's WM_PAINT handling.
21833
21834 2006-10-10  Jackson Harper  <jackson@ximian.com>
21835
21836         * TextBoxBase.cs: Finish off the autoscrolling stuff.
21837
21838 2006-10-10  Chris Toshok  <toshok@ximian.com>
21839
21840         * Cursor.cs: Apply a slightly different patch to the one suggested
21841         in #79609.
21842
21843 2006-10-10  Jackson Harper  <jackson@ximian.com>
21844
21845         * MenuItem.cs: Make sure to put the mdi child in the hashtable,
21846         not the parent form.
21847         * TextControl.cs: use difference in old line count vs new count to
21848         calculate how many lines were added, this takes into account soft
21849         line breaks properly.
21850
21851 2006-10-10  Chris Toshok  <toshok@ximian.com>
21852
21853         * LinkLabel.cs: don't call MeasureCharacterRanges against a
21854         rectangle located at 0,0 and the size of the text.  Use
21855         ClientRectangle instead.  This fixes rendering of non-left aligned
21856         link labels.
21857
21858 2006-10-10  Jackson Harper  <jackson@ximian.com>
21859
21860         * TextBoxBase.cs: When we set the selection start position the
21861         caret.
21862         * TextControl.cs: Need to update the caret when we decrement it to
21863         zero.
21864         - Make sure that the selection_visible flag gets reset to false if
21865         the selection isn't visible.  Before this you could get it set to
21866         visible by changing the selection start, then changing the end to
21867         equal the start.
21868
21869 2006-10-09  Jackson Harper  <jackson@ximian.com>
21870
21871         * TreeView.cs: Don't update scrollbars when we aren't visible.
21872         * TreeNodeCollection.cs: Only need to update scrollbars if being
21873         added to an expanded visible node or the root node.
21874
21875 2006-10-09  Chris Toshok  <toshok@ximian.com>
21876
21877         * XplatUIX11.cs (SendMessage): fix NRE.
21878
21879 2006-10-09  Jackson Harper  <jackson@ximian.com>
21880
21881         * TextBoxBase.cs: Implement horizontal autoscrolling.
21882         * TextControl.cs: Add a movement types that allows moving forward
21883         and backwards without wrapping.
21884
21885 2006-10-09  Mike Kestner  <mkestner@novell.com>
21886
21887         * ListViewItem.cs : layout changes for wrapped LargeIcon labels
21888         with focus "expansion" of labels.  Fixes #79532 and then some.
21889         * ThemeWin32Classic.cs : add LineLimit to ListView label format
21890         when wrapping.
21891
21892 2006-10-09  Jackson Harper  <jackson@ximian.com>
21893
21894         * TextBoxBase.cs: Set the default max values to MaxValue since
21895         we use the scrollbar for autoscrolling and the default value is
21896         100.  If we don't do this the caret won't keep up with typing
21897         after about 18 characters.
21898         * TextControl.cs: Make sure the selection is offset by the
21899         viewport x.  This fixes selection when using auto scrolling.
21900
21901 2006-10-07  Andreia Gaita <shana.ufie@gmail.com>
21902         
21903         * Form.cs: The active control should be selected after the 
21904         OnLoad so that any child control initialization that affects
21905         the selection is done. Fixes #79406
21906
21907 2006-10-06  Chris Toshok  <toshok@ximian.com>
21908
21909         * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
21910         to have no evil effects.
21911
21912         - Stop selecting StructureNotifyMask on non-toplevel windows.
21913
21914           The only way children should be resized is by using the SWF api,
21915           and we already send WM_WINDOWPOSCHANGED messages in those cases.
21916           Toplevel windows can be interacted with via the window manager,
21917           and so we keep the input mask there.
21918
21919           The other event StructureNotifyMask gives us (that we care
21920           about) is DestroyNotify.  The code is already structured such
21921           that it assumes we won't be getting a DestroyNotify event for
21922           the window we pass to XDestroyWindow (which is what
21923           StructureNotifyMask is supposed to guarantee.)  So, that code
21924           shouldn't be affected by this either.
21925
21926         - Stop selecting VisibilityChangeMask altogether.
21927
21928           We weren't doing anything with the resulting events anyway.
21929         
21930         This vastly reduces the number of X requests and events we see
21931         when resizing/laying out a large ui.
21932
21933 2006-10-06  Chris Toshok  <toshok@ximian.com>
21934
21935         * ScrollableControl.cs (DisplayRectangle): we need to take into
21936         account the DockPadding regardless of whether or not auto_scroll
21937         == true.  rework this slightly to this effect, and fix bug #79606,
21938         and part of #72499 (you can now see the drag handles and drag
21939         toolbars around).
21940
21941 2006-10-06  Gert Driesen  <drieseng@users.souceforge.net>
21942
21943         * ListViewItem.cs: Collections of selected and checked items are now
21944         dynamically rebuilt. Whenever an item is (un)checked or (de)selected
21945         we mark the collection "dirty".
21946         * ListView.cs: Marked collections readonly. Modified UpdateSelection
21947         to only clear SelectedItems when a new item is selected and MultiSelect
21948         is enabled. CheckedItems and SelectedItems now subscribe to Changed
21949         event of ListViewItemCollection, and mark its list dirty whenever
21950         that event is fire. This allows us to return selected/checked items 
21951         in the same order as they are in the Items collection. This matches
21952         the MS behavior.
21953
21954 2006-10-06  Chris Toshok  <toshok@ximian.com>
21955
21956         * NotifyIcon.cs (HandleMouseUp): only show the context menu on
21957         right mouse clicks.  Fixes bug #79593.
21958
21959 2006-10-06  Chris Toshok  <toshok@ximian.com>
21960
21961         * Splitter.cs: doh, fix splitters that don't want to cancel the
21962         movement when you drag them.  Also, impose the limits on the
21963         values we send to the SplitterMovingEvent.  Fixes #79598.
21964
21965 2006-10-06  Jackson Harper  <jackson@ximian.com>
21966
21967         * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
21968         since we use this for auto scrolling also.
21969
21970 2006-10-05  Chris Toshok  <toshok@ximian.com>
21971
21972         * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus.  I'm
21973         beginning to think that most datagrid column types don't need this
21974         method.  Fixes bug #79392.
21975
21976 2006-10-05  Chris Toshok  <toshok@ximian.com>
21977
21978         * DataGrid.cs: move back to a more lazy scheme for creating the
21979         CurrencyManager, so we aren't updating it every time you set
21980         either DataSource or DataMember.  Also, don't call
21981         RecreateDataGridRows if the currency manager hasn't changed.
21982
21983 2006-10-05  Chris Toshok  <toshok@ximian.com>
21984
21985         * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
21986         emitted, SelectedIndex should already be updated.  Fixes bug
21987         #78929.
21988
21989 2006-10-05  Jonathan Pobst  <monkey@jpobst.com>
21990
21991         * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
21992           ToolStripTextBox.cs: Initial commit.
21993         * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
21994
21995 2006-10-05  Jackson Harper  <jackson@ximian.com>
21996
21997         * TabControl.cs: We need to invalidate the tab control area when
21998         new ones are added (duh).
21999
22000 2006-10-03  Chris Toshok  <toshok@ximian.com>
22001
22002         * Form.cs (ProcessDialogKey): if the focused control is in this
22003         form and is a button, call its PerformClick method here.  Fixes
22004         #79534.
22005
22006 2006-10-04  Jackson Harper  <jackson@ximian.com>
22007
22008         * TabPage.cs: Ignore setting of Visible, and add an internal
22009         method for setting the controls visibility.  TabPage's Visible
22010         property is a little strange on MS, this seems to make us
22011         compatible, and fixes cases where people set all the tab pages to
22012         visible.
22013         * TabControl.cs: Use the new internal setting on tab pages
22014         visibility.
22015
22016 2006-10-03  Mike Kestner  <mkestner@novell.com>
22017
22018         * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
22019
22020 2006-10-03  Mike Kestner  <mkestner@novell.com>
22021
22022         * ListView.cs : use is_visible instead of Visible to check if 
22023         scrollbars should be placed/sized.  Also some max_wrap_width
22024         love for LargeIcon view.  [Fixes #79533]
22025
22026 2006-10-03  Atsushi Enomoto  <atsushi@ximian.com>
22027
22028         * TextControl.cs :
22029           Make set_TextAlign() do actually update the align. Fixed #78403.
22030
22031 2006-10-03  Chris Toshok  <toshok@ximian.com>
22032
22033         * DataGrid.cs: fix a crash when switching datasources if the
22034         vertical scrollbar is at someplace other than Value = 0.  Also,
22035         reduce the number of recalculation passes we do in SetDataSource
22036         from 2 to 1.
22037
22038 2006-10-03  Jackson Harper  <jackson@ximian.com>
22039
22040         * TextBoxBase.cs: Move the if value the same bail check up, we
22041         don't want to empty the document if it is already empty, this
22042         seems to severly mess up the caret.  TODO: I should probably fix
22043         the empty statement to update teh caret somehow.
22044
22045 2006-10-03  Chris Toshok  <toshok@ximian.com>
22046
22047         * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
22048         incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
22049         reflection, an internal row type, properties on said type, etc.)
22050         will work with our datagrid.  Fixes #79531.
22051
22052 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
22053
22054         * FileDialog.cs: Don't crash if a path is not accessible
22055           (System.UnauthorizedAccessException). Fixes #79569.
22056         * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
22057           a ':' too. Return unknown icon for those paths/files.
22058
22059 2006-10-03  Sebastien Pouliot  <sebastien@ximian.com>
22060
22061         * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when 
22062         GetContainerControl returns null.
22063
22064 2006-10-02  Chris Toshok  <toshok@ximian.com>
22065
22066         * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
22067         call to XGetWindowAttributes instead of "handle".  fixes an X
22068         error using notifyicon after the NotifyIconWindow to Form base
22069         class switch.
22070
22071 2006-10-02  Chris Toshok  <toshok@ximian.com>
22072
22073         * XplatUIX11.cs (QueryPointer): new function, encapsulating the
22074         server grab and looping we need to do to get down to the most
22075         deeply nested child window.
22076         (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
22077         QueryPointer again after the WarpPointer so we can generate a
22078         proper (fake) MotionNotify event to be enqueued in the destination
22079         window's queue.
22080         (GetCursorPos): call QueryPointer.
22081
22082         Fixes #79556.
22083
22084 2006-10-02  Jackson Harper  <jackson@ximian.com>
22085
22086         * NotifyIcon.cs: Derive the notify icon from a form, so things
22087         like FindForm work on it.
22088         - Swallow the WM_CONTEXTMENU message, since that is generated on
22089         mouse down, and context menu is a mouse up kinda guy.  I believe
22090         the correct fix here is probably to make the notify icon entirely
22091         NC area, but this seems to work fine for anyone not manipulating
22092         WndProc.
22093
22094 2006-10-02  Jonathan Pobst  <monkey@jpobst.com>
22095
22096         * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
22097           ToolStripItemCollection.cs, ToolStripLabel.cs,
22098           ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
22099           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
22100           Initial implementation.
22101         * TextRenderer.cs: Provide padding to MeasureText.
22102
22103 2006-10-02  Sebastien Pouliot  <sebastien@ximian.com>
22104
22105         * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
22106         of ButtonBaseAccessibleObject. Fix bug #79552.
22107
22108 2006-10-02  Jackson Harper  <jackson@ximian.com>
22109
22110         * MdiWindowManager.cs: When maximizing use the containers client
22111         rect, not it's bounds, so nc area is accounted correctly.
22112         - Use the parent form's size for the menu position, since the
22113         client isn't always the full form size.
22114
22115 2006-10-01  Chris Toshok  <toshok@ximian.com>
22116
22117         * ScrollableControl.cs: make sure neither right_edge or
22118         bottom_edge are < 0, since they're used as LargeChange for the
22119         horiz/vert scrollbars respectively.  Fixes #79539.
22120
22121 2006-10-01  Chris Toshok  <toshok@ximian.com>
22122
22123         * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
22124         the xplatuix11 code can cause us to destroy/recreate our handle.
22125
22126         * XplatUIX11.cs
22127         (SystrayAdd):
22128         - this code can be invoked many times for the same Hwnd.  Make
22129           sure we only destroy the client window once (the first time this
22130           method is called).  This fixes bug #79544.
22131         - Remove the call to the improperly bound XSync.  why we had two
22132           bindings to this, I will never know, but this call resulted in
22133           events being discarded from the queue(!).
22134         - correct a misunderstanding of _XEMBED_INFO - the second atom is
22135           not our current state but the state we wish to be in.  So, 0 if
22136           we don't want to be mapped.  Change it to 1.
22137         (SystrayRemove): The XEMBED spec makes mention of the fact that
22138         gtk doesn't support the reparent of client windows away from the
22139         embedder.  Looking at gtksocket-x11.c seems to agree with this.
22140         The only avenue we have for removing systray icons is to destroy
22141         them.  We don't want the handle to go away for good, though, so
22142         call InternalRecreateHandle on the NotifyIconWindow.  Fixes
22143         #79545.
22144         
22145 2006-10-01  Chris Toshok  <toshok@ximian.com>
22146
22147         * Form.cs (WndProc): inline the native_enabled variable usage into
22148         the cases in which it's used.  Fixes #79536.
22149
22150 2006-09-29  Mike Kestner  <mkestner@novell.com>
22151
22152         * ListView.cs : toggle the selection state for ctrl clicks in 
22153         multiselect mode. [Fixes #79417]
22154
22155 2006-09-29  Mike Kestner  <mkestner@novell.com>
22156
22157         * ListView.cs : kill CanMultiSelect and refactor the selection
22158         code to support multiselection in the absence of mod keys. Steal
22159         arrow/home/end keys by overriding InternalPreProcessMessage to
22160         restore regressed keynav behavior.
22161         [Fixes #79416]
22162
22163 2006-09-29  Jackson Harper  <jackson@ximian.com>
22164
22165         * MdiClient.cs: Repaint the titlebars when the active window is
22166         changed.
22167
22168 2006-09-29  Chris Toshok  <toshok@ximian.com>
22169
22170         * Application.cs: when entering a runloop with a modal, make sure
22171         the hwnd is enabled.  Fixes #79480.
22172
22173 2006-09-29  Chris Toshok  <toshok@ximian.com>
22174
22175         * DataGrid.cs (CurrentCell): if we try to navigate to the add row
22176         when ListManager.CanAddRows == false, bump us back one.
22177
22178         * DataGridColumnStyle.cs (ParentReadOnly): remove the
22179         listmanager.CanAddRows check.  This makes ArrayLists uneditable
22180         using a datagrid, which is not right.
22181         (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
22182         is an IEditable, but call property_descriptor.SetValue regardless.
22183         fixes #79435.
22184
22185 2006-09-29  Chris Toshok  <toshok@ximian.com>
22186
22187         * DataGridBoolColumn.cs: we need to test equality in the face of
22188         possible null values (as is the case with the default NullValue).
22189         This patch keeps us from crashing in that case.
22190
22191 2006-09-29  Jackson Harper  <jackson@ximian.com>
22192
22193         * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
22194         here, since it will get called for every node collection in the
22195         tree. This is now done in the treeview once the sorting is
22196         finished.
22197         * TreeView.cs: Recalculate the visible order, and update the
22198         scrollbars after sorting, set the top nope to the root so that the
22199         recalc actually works.
22200
22201 2006-09-29  Chris Toshok  <toshok@ximian.com>
22202
22203         * LinkLabel.cs: more handling of the default link collection in
22204         the face of LinkArea manipulation.  The default link collection
22205         contains 1 element (start=0,length=-1).  If the user sets LinkArea
22206         to anything and the links collection is the default, clear it.
22207         Then only add the link if its nonempty.  Fixes #79518.
22208
22209 2006-09-29  Chris Toshok  <toshok@ximian.com>
22210
22211         * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
22212         piece correctly when we hit a '\n'.  Fixes #79517.
22213
22214 2006-09-29  Chris Toshok  <toshok@ximian.com>
22215
22216         * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
22217         change the binding of gdk_init_check to take two IntPtr's, and
22218         pass IntPtr.Zero for both of them.  Fixes #79520.
22219
22220 2006-09-29  Mike Kestner  <mkestner@novell.com>
22221
22222         * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
22223         [Fixes #78779]
22224
22225 2006-09-28  Jackson Harper  <jackson@ximian.com>
22226
22227         * XplatUIX11.cs: When translating NC messages make sure we go from
22228         whole window to screen, not client window to screen.
22229         * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
22230         method doesn't exist
22231         - Skip over controls that aren't forms when arranging.
22232
22233 2006-09-28  Jackson Harper  <jackson@ximian.com>
22234
22235         * XplatUIWin32.cs: Clip the rect to the parent window.
22236         * XplatUIStructs.cs: Add clipping modes struct.
22237         * InternalWindowManager.cs: New private method that factors title
22238         bar heights in when calculating the pos of an NC mouse message.
22239         - Use SendMessage to force a paint when the form's size is changed
22240         instead of painting the decorations immediately.
22241         - Don't let the NC button click messages get to DefWndProc,
22242         because they will attempt to handle windowing themself, and this
22243         messes up z-order (it will put them in front of the scrollbars).
22244         * XplatUIX11.cs: Make sure that we don't reset window managers if
22245         we already have one (ie the window is an MDI window).
22246
22247 2006-09-28  Chris Toshok  <toshok@ximian.com>
22248
22249         * MainMenu.cs: fix #79405 by way of a disgusting hack.  all the
22250         menu code really needs going over.
22251
22252 2006-09-27  Chris Toshok  <toshok@ximian.com>
22253
22254         * XplatUIX11.cs (SetWMStyles): more metacity wonderment.  turns
22255         out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
22256         window is maximizable.  So, we need to make sure that even if we
22257         clear the border/wm frame of those functions, they're still
22258         available (basically, we remove the decoration without removing
22259         the function).  Half the fix for #79338.
22260
22261 2006-09-27  Chris Toshok  <toshok@ximian.com>
22262
22263         * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
22264         Fixes bug #79515.
22265
22266 2006-09-27  Chris Toshok  <toshok@ximian.com>
22267
22268         * Splitter.cs: reorder things a bit so that we don't actually
22269         draw/move the splitter until after calling OnSplitterMoving.  This
22270         lets users cancel/disallow the movement by explicitly setting
22271         event.SplitX/SplitY.  Fixes #79372.
22272
22273 2006-09-27  Jackson Harper  <jackson@ximian.com>
22274
22275         * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
22276         because it is most likely on a window being destroyed, and that
22277         will give us an X11 error.
22278
22279 2006-09-27  Chris Toshok  <toshok@ximian.com>
22280
22281         * PropertyGridView.cs: half of the fix for #78190.  Clicking on
22282         the dropdown button now toggles between showing and hiding the
22283         dropdown.  Also, get rid of dropdown_form_showing and just use
22284         dropdown_form.Visible.  We still don't do a grab, but I'll leave
22285         that part to someone who has handled Capture-fu before.
22286
22287 2006-09-27  Chris Toshok  <toshok@ximian.com>
22288
22289         * DataGrid.cs: return false if alt isn't pressed when '0' is
22290         pressed.  this keeps the '0' key from being swallowed, and fixes
22291         bug #79350.
22292
22293 2006-09-27  Chris Toshok  <toshok@ximian.com>
22294
22295         * ComboBox.cs: use Invalidate when scrolling the dropdown list.
22296         Calling Refresh (in response to a scrollbar event) screws up the
22297         scrollbar painting.  Fixes bug #78923.
22298
22299 2006-09-27  Chris Toshok  <toshok@ximian.com>
22300
22301         * Theme.cs (SystemResPool): make the "if hashtable[key] == null
22302         then insert into hashtable" blocks threadsafe.
22303
22304 2006-09-27  Chris Toshok  <toshok@ximian.com>
22305
22306         * MessageBox.cs (CreateParams): the styles should be |'ed with our
22307         baseclass's, since otherwise the
22308         ControlBox/MinimizeBox/MaximizeBox assignments above have no
22309         effect.  This gets the close button back in messageboxes.
22310
22311 2006-09-27  Chris Toshok  <toshok@ximian.com>
22312
22313         * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
22314         flag, not just != 0.  this makes flags that are actually multiple
22315         bits (like WS_CAPTION) work.  fixes bug #79508.
22316
22317 2006-09-27  Jordi Mas i Hernandez <jordimash@gmail.com>
22318
22319         * PageSetupDialog.cs: add support for getting and settings the 
22320         paper size, source and orientation.
22321
22322 2006-09-26  Chris Toshok  <toshok@ximian.com>
22323
22324         * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
22325         and caption == "", we need to remove the resize handles as well as
22326         the title bar.
22327
22328         * Control.cs (set_Text): turns out that setting Text on a form
22329         should change the WM styles on the window, since if ControlBox ==
22330         false, the only way to get a window border is to have a non-""
22331         Text property.  check winforms/forms/text.cs for an example.  so,
22332         call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
22333         update both window styles and title.  This fixes a lot of dialogs
22334         (including the preferences dialog in MonoCalendar.)
22335
22336 2006-09-26  Chris Toshok  <toshok@ximian.com>
22337
22338         * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
22339         control isn't a Form), call Win32ShowWindow to hide the window,
22340         but don't update the control Visible property.  When we reparent
22341         back to a parent control, call SetVisible in order for the
22342         window's visibility to be reinstated.
22343
22344         * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
22345         the FosterParent.
22346
22347         * Control.cs (ControlCollection.Remove): remove that value.Hide()
22348         call for good, since it breaks MonoCalendar (and other things I'm
22349         sure.) Also, set all_controls to null *after* the owner calls,
22350         which end up regenerating it.
22351         (ChangeParent): allow new_parent to be == null, passing
22352         IntPtr.Zero down to XplatUI.
22353
22354         this fixes #79294 the right way.
22355
22356 2006-09-26  Mike Kestner  <mkestner@novell.com>
22357
22358         * GridEntry.cs : internal SetParent method.
22359         * PropertyGrid.cs : attach to property changed on the proper
22360         target if we have a hierarchical grid with subobjects. Setup
22361         GridItem.Parent for hierarchical items.
22362         * PropertyGridView.cs : Set value on the correct target for
22363         hierarchical grids. [Fixes #78903]
22364
22365 2006-09-26  Chris Toshok  <toshok@ximian.com>
22366
22367         * Control.cs (ChildNeedsRecreating): this should return true if
22368         either we're being recreated and the child is in our list, or our
22369         parent is waiting for our recreation.
22370
22371 2006-09-26  Chris Toshok  <toshok@ximian.com>
22372
22373         * Control.cs (ControlCollection.Remove): reinstate the
22374         value.Hide() call as suggested in bug #79294.
22375
22376 2006-09-26  Sebastien Pouliot  <sebastien@ximian.com>
22377
22378         * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
22379         coordinates (versus a relative move).
22380
22381 2006-09-26  Chris Toshok  <toshok@ximian.com>
22382
22383         * Control.cs: rework child recreation a little bit.  It turns out
22384         that we race between the DestroyNotify the WM_DESTROY message.  If
22385         the parent gets its DestroyNotify before the child gets the
22386         WM_DESTROY message, the child ends up not recreating (since the
22387         parent finishes its recreation on DestroyNotify, and the child
22388         checks ParentIsRecreating.)
22389
22390         So, instead we store off a list of all the child controls which
22391         need to be recreated when the parent control starts to recreate
22392         itself.  Then, when child controls get their WM_DESTROY message we
22393         check to see if they're in the parent's pending recreation list,
22394         and if so, we recreate.  This removes all dependency on ordering
22395         from the code and fixes the initial MonoCalendar upgrade dialog.
22396         
22397 2006-09-26  Jackson Harper  <jackson@ximian.com>
22398
22399         * TextControl.cs: Use the Line to get the length of the line,
22400         since soft line breaks can change the end line.
22401
22402 2006-09-26  Chris Toshok  <toshok@ximian.com>
22403
22404         * Control.cs (ControlCollection.AddImplicit): don't add the
22405         control again if it's already in one of our lists.  This keeps us
22406         from adding controls over and over again for comboboxes when their
22407         handle gets recreated (as the combobox adds implicit controls in
22408         OnHandleCreated).  Fixes the X11 errors in bug #79480.
22409
22410 2006-09-26  Jackson Harper  <jackson@ximian.com>
22411
22412         * TextControl.cs: When deleting characters make sure that any
22413         orphaned zero lengthed tags get deleted.
22414         - Fix ToString for zero lengthed tags.
22415
22416 2006-09-25  Jackson Harper  <jackson@ximian.com>
22417
22418         * TextControl.cs: When getting a tag at the location there can be
22419         multiple tags at the same spot, these are 0-lengthed tags that
22420         appear when extra formatting has been stuck in a location.  We
22421         need to pull out the last of these 0 lengthed tags.
22422
22423 2006-09-25  Jackson Harper  <jackson@ximian.com>
22424
22425         * TextControl.cs: Fix print out in debug method.
22426         * TextBoxBase.cs: When text is set bail if we are setting to the
22427         previous value.
22428         
22429 2006-09-24  Alexander Olk  <alex.olk@googlemail.com>
22430
22431         * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
22432           It is now possible to change the selected index in a FontXXXListBox
22433           with the up and down arrow keys from the FontXXXTextBoxes.
22434           Also, send the FontXXXTextBox mouse wheel event to the corresponding
22435           FontXXXListBoxes to match ms.
22436
22437 2006-09-22  Sebastien Pouliot  <sebastien@ximian.com>
22438
22439         * SystemInformation.cs: Return a clone of the theme's MenuFont because
22440         anyone can dispose it, anytime. All other properties returns enums, 
22441         structs or basic types so they don't need such tricks.
22442
22443 2006-09-22  Jackson Harper  <jackson@ximian.com>
22444
22445         * XplatUI.cs:
22446         * XplatUIWin32.cs:
22447         * Clipboard.cs:
22448         * DataFormats.cs:
22449         * XplatUIOSX.cs:
22450         * XplatUIDriver.cs: Update interface to add a primary selection
22451         flag, so the driver can use the primary selection buffer if
22452         needed.
22453         * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
22454
22455         * RichTextBox.cs: We need to supply the data object to paste now
22456         (so we can choose to supply CLIPBOARD or PRIMARY).
22457         * TextBoxBase.cs: Supply data object to paste (see above).
22458         - Middle click uses the primary selection data object.
22459         
22460 2006-09-21  Chris Toshok  <toshok@ximian.com>
22461
22462         * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
22463         of SetWMStyles.  It's still a rat's nest and is largely
22464         order-dependent which I dislike immensely.  This also fixes the X
22465         button disappearing from toplevel forms.
22466
22467 2006-09-21  Mike Kestner <mkestner@novell.com>
22468
22469         * ListBox.cs: move Jordi's click/dblclick raising code to the
22470         mouse up handler.
22471
22472 2006-09-21  Jordi Mas i Hernandez <jordimash@gmail.com>
22473
22474         * ListBox.cs: Fixes 79450
22475
22476 2006-09-21  Mike Kestner <mkestner@novell.com>
22477
22478         * TreeView.cs: guard against disposed conditions in UpdateScrollbars
22479         to deal with people updating the TreeNodeCollection after the tree
22480         is disposed.  "Fixes" 79330.
22481
22482 2006-09-20  Jackson Harper <jackson@ximian.com>
22483
22484         * TextControl.cs: Push the cursor record onto the undo stack
22485         before the delete action. This fixes 78651.
22486
22487 2006-09-20  Jonathan Chambers  <joncham@gmail.com>
22488
22489         * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
22490         CreateParams. Fixes 79329.
22491
22492 2006-09-19  Chris Toshok  <toshok@ximian.com>
22493
22494         * XplatUIX11.cs: a couple of blanket code massage passes to clean
22495         things up a bit.  First, get rid of the NetAtoms array (and the NA
22496         enum), and just embed the atoms as static fields.  Also, add a
22497         couple of functions (StyleSet and ExStyleSet) to clean up all the
22498         bitmask testing of styles.
22499
22500         * X11Structs.cs: remove the NA enum, not needed anymore.
22501         
22502 2006-09-19  Chris Toshok  <toshok@ximian.com>
22503
22504         * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
22505         (mapping them to _NET_WM_WINDOW_TYPE_UTILITY).  and add a little
22506         added cleanup to get MessageBox titles appearing again, which were
22507         broken by my earlier fix for caption-less/ControlBox-less windows.
22508
22509 2006-09-18  Jonathan Pobst <monkey@jpobst.com>
22510
22511         * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
22512           ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
22513           ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
22514           ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
22515           ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
22516           ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
22517           ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
22518           ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
22519           ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
22520           ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
22521           ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
22522             Inital import.
22523         * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
22524           ToolStripButton.cs: Stubs needed for above.
22525         * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
22526
22527 2006-09-15  Chris Toshok  <toshok@ximian.com>
22528
22529         * XplatUIX11.cs:
22530         - make the MessageQueues hashtable Synchronized.
22531         
22532         - SendMessage: if the Hwnd is owned by a different thread, use the
22533         AsyncMethod stuff to dispatch the SendMessage on the hwnd's
22534         thread.  Fixes bug #79201.
22535
22536 2006-09-15  Chris Toshok  <toshok@ximian.com>
22537
22538         * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly.  If
22539         ControlBox == false, we disallow maximize/minimize/close.  If the
22540         form Caption is "" we also disallow move (and get rid of the Title
22541         decoration).  Unfortunately, regardless of how things are set,
22542         we're stuck with the Title and WM menu.
22543
22544 2006-09-15  Chris Toshok  <toshok@ximian.com>
22545
22546         * Application.cs: add locking around the static message_filters
22547         ArrayList, part of #79196.
22548
22549 2006-09-15  Chris Toshok  <toshok@ximian.com>
22550
22551         * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
22552         Form.ControlBox == false, the window has no titlebar nor resize
22553         handles.  fixes bug #79368.
22554
22555 2006-09-15  Chris Toshok  <toshok@ximian.com>
22556
22557         * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
22558         >= 0.  Fixes bug #79370.
22559
22560 2006-09-15  Jonathan Pobst <monkey@jpobst.com>
22561         * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
22562         * Control.cs:
22563             Add properties: LayoutEngine, Margin, DefaultMargin.
22564             Add method: GetPreferredSize.
22565             Move layout logic from PerformLayout to layout engines. 
22566
22567 2006-09-13  Chris Toshok  <toshok@ximian.com>
22568
22569         * XplatUIX11.cs: more destroy work.  Jackson pointed out that my
22570         fix for #79326 broke #78718, so this change addresses that.
22571
22572         - in SendWMDestroyMessages remove the call to
22573         CleanupCachedWindows, since we might be recreating the control and
22574         need to maintain the references to right Hwnd handles.  Also, set
22575         the zombie flag to true for each of the children in the hierarchy
22576         instead of calling hwnd.Dispose.  This will cause GetMessage to
22577         ignore all events for the window except for DestroyNotify.
22578
22579         - In GetMessage, ignore messages except for DestroyNotify for
22580         zombie hwnds.
22581         
22582         * Control.cs: revert the is_recreating fix from the last
22583         ChangeLog.  It's definitely "right", but it breaks switching from
22584         an MDI form to a non-MDI form.  Will need to revisit that.
22585
22586         * Hwnd.cs: add a zombie flag, which means "the
22587         client_window/whole_window handles are invalid, but we're waiting
22588         for the DestroyNotify event to come in for them".  Set the flag to
22589         false explicitly if setting WholeWindow/ClientWindow, and also
22590         when Disposing.
22591         
22592 2006-09-13  Chris Toshok  <toshok@ximian.com>
22593
22594         * XplatUIX11.cs: rework window destruction slightly.
22595
22596         - when destroying the windows associated with a control, we don't
22597         need 2 separate XDestroyWindow calls.  Just the one for the
22598         whole_window (or for client_window if whole_window is somehow
22599         IntPtr.Zero -- can this happen?) is enough.
22600
22601         - reworked SendWMDestroyMessages slightly, so we always dispose
22602         the child control hwnd's after sending the messages.
22603         
22604         - refactored out the ActiveWindow/FocusWindow/Caret clearing from
22605         the two places it was used (one was even using hwnd.Handle and the
22606         other hwnd.client_window.  ugh), adding another call in
22607         SendWMDestroyMessages.  We need this new call because now the
22608         DestroyNotify events in the queue will be ignored for the child
22609         controls (as their hwnd's were disposed, and the window id's
22610         removed from the hashtable in SendWMDestroyMessages.) fun, eh?
22611
22612         - this fixes bug #79326.
22613
22614 2006-09-13  Chris Toshok  <toshok@ximian.com>
22615
22616         * Control.cs: don't always set is_recreating to false at the end
22617         of RecreateHandle, since sometimes we're not done (and won't be
22618         until WndProc handles the WM_DESTROY message).  Also, set
22619         is_recreating to false in the WM_DESTROY handling code.  Part of
22620         the fix for bug #79326.
22621
22622 2006-09-13  Miguel de Icaza  <miguel@novell.com>
22623
22624         * X11DesktopColors.cs: Start the droppage of debugging messages.
22625
22626         * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
22627
22628 2006-09-13  Jonathan Pobst <monkey@jpobst.com>
22629
22630         * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
22631
22632 2006-09-12  Chris Toshok  <toshok@ximian.com>
22633
22634         * DataGrid.cs (get_ListManager): if the list_manager is null, try
22635         to create it using SetDataSource.  Fixes bug #79151.
22636
22637 2006-09-11  Chris Toshok  <toshok@ximian.com>
22638
22639         * XEventQueue.cs: add a DispatchIdle property.
22640
22641         * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
22642         either the queue is null, or the queue has DispatchIdle set to
22643         true.
22644         (DoEvents): set queue.DispatchIdle to false around the
22645         peek/translate/dispatch message loop in this method.  This keeps
22646         Application.Doevents from emitting idle events.  Part of the fix
22647         for #78823.
22648
22649 2006-09-11  Chris Toshok  <toshok@ximian.com>
22650
22651         * DataGrid.cs (set_DataSource): make this work for both the
22652         winforms/datagrid test and ReportBuilder.  It seems as though when
22653         we've created a ListManager (or maybe it's if we have a
22654         BindingContext?), when we set the DataSource it clears the
22655         DataMember to "".  otherwise we reuse the datamember.  Fixes bug
22656         #79333.
22657
22658 2006-09-11  Chris Toshok  <toshok@ximian.com>
22659
22660         * XplatUIX11.cs: deal with queue being null, which happens in all
22661         the Clipboard functions.  Fixes one of the two problems mentioned
22662         in #78612.
22663
22664 2006-09-11  Chris Toshok  <toshok@ximian.com>
22665
22666         * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
22667         button on various spots (including outside the menu) works closer
22668         to MS, and doesn't crash.  Fixes #79343.
22669
22670 2006-09-11  Gert Driesen  <drieseng@users.sourceforge.net>
22671
22672         * ListView.cs: Do not initialize item_sorter in init. To match MS,
22673         return null for ListViewItemSorter if View is SmallIcon or LargeIcon
22674         and the internal comparer is set. When a new ListViewItemSorter is set,
22675         sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
22676         was specified. No further processing is necessary if SortOrder is set
22677         to it's current value. If Sorting is modified to None, and View is
22678         neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
22679         (either custom or our internal ItemComparer) to null, on 1.0 profile
22680         only set item_sorter to null if its our internal IComparer. If Sorting
22681         is modified to Ascending or Descending, then use our internal IComparer
22682         if none is set, and if the current IComparer is our internal one then:
22683         on 2.0 profile always replace it with one for new Sorting, and on 1.0
22684         profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
22685         Enum.IsDefined to verify whether a valid View value is specified in
22686         its setter. Automatically sort listview items when listview is
22687         created. In Sort, do nothing if ListView is not yet created, or if
22688         no item_sorter is set (no Sorting was set, Sorting was explicitly set
22689         to None or ListViewItemSorter was set to null). Added Sort overload
22690         taking a bool to indicate whether the ListView should be redrawn when
22691         items are sorted (we use this in ListViewItemCollection to avoid double
22692         redraws). Modified our internal IComparer to take the sort order into
22693         account. In Add and AddRange methods of ListViewItemCollection, also
22694         call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
22695         view), but use overload with noredraw option to avoid double redraw.
22696         On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
22697         true when View is Tile, and do the same when attempting to set View to
22698         Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
22699         for selected/checked indices, as it involves overhead when sorting is
22700         done while these collections are not used all that often. Instead
22701         we'll build the indices on demand. Modified IList implementation of
22702         CheckedIndexCollection to use public methods if object is int.
22703         Modified CheckedListViewItemCollection to hide checked items if
22704         ListView.CheckBoxes is false. Removed LAMESPEC remark in 
22705         ListViewItemCollection as the .NET SDK docs have been fixed. Modified
22706         IList implementation in SelectedIndexCollection to use public methods
22707         if object is int. Modified SelectedListViewItemCollection to hide
22708         selected items if listview is not yet created.
22709         * ListViewItem.cs: CheckedIndices list no longer needs to be
22710         maintained separately (see ListView changes). Also clone font, fixes
22711         test failure.
22712
22713 2006-09-11  Mike Kestner  <mkestner@novell.com>
22714
22715         * ComboBox.cs: if we are updating the contents of the currently
22716         selected index, refresh the control or the textbox selection.
22717         [Fixes #79066]
22718
22719 2006-09-11  Mike Kestner  <mkestner@novell.com>
22720
22721         * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since 
22722         the 'specified' logic has been moved there.  This seems like a bug 
22723         in Control.cs, since our current SetBoundsCore completely ignores 
22724         the specified parameter.  Peter's commit seems to indicate that is 
22725         the way the MS control implementation works.  [Fixes #79325]
22726
22727 2006-09-10  Jonathan Chambers  <joncham@gmail.com>
22728
22729         * XplatUI.cs: Set default_class_name to be composed
22730         of current domain id. This allows MWF to be loaded in multiple
22731         domains on Win32.
22732
22733 2006-09-09  Miguel de Icaza  <miguel@novell.com>
22734
22735         * X11Keyboard.cs: If we are unable to obtain the input method, do
22736         not call CreateXic to create the input context.   Should fix
22737         #78944/79276.
22738
22739 2006-09-08  Alexander Olk  <alex.olk@googlemail.com>
22740
22741         * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
22742           Simplified gnome support by adding more pinvokes to get the
22743           icon for a file or mime type.
22744
22745 2006-09-08  Jackson Harper  <jackson@ximian.com>
22746
22747         * MenuAPI.cs: Deslect popup context menu items before closing the
22748         window, so that you don't see the previously selected item
22749         selected when you reopen the menu.
22750         * TextControl.cs: Update the cursor position even if we don't have
22751         focus.  This fixes typing in things like the ComboBox.  I'm not
22752         totally sure we should always set the visibility if we don't have
22753         focus, but couldn't find any corner cases where the cursor showed
22754         up when it shouldn't.
22755
22756 2006-09-08  Chris Toshok  <toshok@ximian.com>
22757
22758         * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
22759         our arrays are length 256.  & 0xff before indexing.  Fixes the
22760         crash in bug #78077.
22761         
22762 2006-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22763
22764         * ThemeWin32Classic.cs: 
22765         * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
22766         is true. Handle that check box too.
22767
22768 2006-09-07  Chris Toshok  <toshok@ximian.com>
22769
22770         * MenuAPI.cs: move the PerformClick call to OnMouseUp.  Fixes bug
22771         79244.
22772
22773 2006-09-07  Chris Toshok  <toshok@ximian.com>
22774
22775         * Control.cs: in set_BackColor only do the work if
22776         background_color != value.
22777
22778         * XplatUIX11.cs: move the clearing of invalid areas (both client
22779         and nc) to the same block of code where we set (nc_)expose_pending
22780         to false.  That is, move it from PaintEventEnd to PaintEventStart,
22781         so things that cause invalidates from within OnPaint will trigger
22782         another call to OnPaint.  Fixes bug #79262.
22783
22784 2006-09-07  Alexander Olk  <alex.olk@googlemail.com>
22785
22786         * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
22787         * FileDialog.cs: Fix typo
22788
22789 2006-09-07  Jackson Harper  <jackson@ximian.com>
22790
22791         * ThemeWin32Classic.cs:  oops, forgot to commit.  Draw the images
22792         for tab pages if they have any.
22793
22794 2006-09-06  Mike Kestner  <mkestner@novell.com>
22795
22796         * Splitter.cs: use the "current" rect when finishing drag handle
22797         to avoid an artifact demonstrated by resedit.exe.  [Fixes #79251]
22798
22799 2006-09-06  Mike Kestner  <mkestner@novell.com>
22800
22801         * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
22802         support offset splitters. [Fixes #79298]
22803
22804 2006-09-06  Alexander Olk  <alex.olk@googlemail.com>
22805
22806         * Mime.cs: Fixed a bug that could override the global mime type
22807           result.
22808
22809 2006-09-05  Jackson Harper  <jackson@ximian.com>
22810
22811         * TabControl.cs: Better calculation method for setting the slider
22812         pos. Prevents crashes on really wide tabs.
22813         - Draw Image on tab pages if an image list is used.
22814
22815 2006-09-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22816
22817         * MonthCalendar.cs: When Font changes, the Size should be
22818         updated to fit the new font's space requirements.
22819
22820 2006-09-02  Alexander Olk  <alex.olk@googlemail.com>
22821
22822         * ListBox.cs: If the items are cleared with Items.Clear set
22823           top_index to 0.
22824
22825 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22826
22827         * MonthCalendar.cs: Handle arrow keys as input keys. Also
22828         fire DateChanged event instead of DateSelected event when
22829         the date was changed by keyboard interaction.
22830
22831 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22832
22833         * DateTimePicker.cs: Handle DateChanged for the associated
22834         month_calendar control, and set month_calendar.Font from 
22835         OnFontChanged method, as well as resize the height of the
22836         control when needed. Make PreferredHeight proportional.
22837
22838 2006-09-01  Chris Toshok  <toshok@ximian.com>
22839
22840         * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
22841         properties.
22842
22843         * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
22844
22845 2006-09-01  Peter Dennis Bartok  <pbartok@novell.com> 
22846
22847         * FileDialog.cs: Set ClientSize instead of window size, to allow space
22848           for decorations (Fixes #79219)
22849
22850 2006-09-01  Mike Kestner  <mkestner@novell.com>
22851
22852         * ComboBox.cs: first stab at sorting plus some selection handling
22853         fixes to bring us more in line with MS behavior.  Also switches back
22854         to index based selection.  Alternative patches for index-based 
22855         selection were provided by Jackson Harper, Carlos Alberto Cortez, 
22856         and latency@gmx.de on bug 78848.  I assume they were similar to this
22857         code I've had simmering in my tree forever.
22858         [Fixes #78848]
22859
22860 2006-09-01  Chris Toshok  <toshok@ximian.com>
22861
22862         * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
22863         when setting list position guard against ending up with a -1 index
22864         (the other part of the fix for #78812).  Should probably make sure
22865         we don't need the analogous fix in the ItemDeleted case.
22866
22867         * DataGrid.cs:
22868         - in SetDataSource, work around the fact that the way
22869         OnBindingContextChanged is invoked will cause us to re-enter this
22870         method.  I'll remove the hack once I investigate
22871         OnBindingContextChanged.
22872
22873         - fix the logic in set_DataSource and set_DataMember (basically
22874         what to do if the other of the two is null.)
22875         
22876         - in OnListManagerItemChanged, we need to take into account the
22877         edit row when deciding whether or not to call RecreateDataGridRows
22878         (part of the fix for #78812).
22879
22880 2006-09-01  Jackson Harper  <jackson@ximian.com>
22881
22882         * Splitter.cs: Don't do anything if there is no control to affect
22883         (prevents us from crashing in weird tet cases).
22884         * TreeView.cs: Bounding box for the mouse movement reverting
22885         focus/selection back to previously selected node.  This matches
22886         MS, and makes the tree a lot more useable.
22887         * GroupBox.cs: Instead of drawing over the lines of the groupbox,
22888         use clipping so they are not drawn.  This fixes when the control
22889         is set to have a transparent background, or if it was over an
22890         image.
22891
22892 2006-09-01  Alexander Olk  <alex.olk@googlemail.com>
22893
22894         * MimeIcon.cs: Improved handling for reading default icons when
22895           using gnome (2.16 made it necessary). Check and read svg icons
22896           first, then 48x48 and then 32x32 icons.
22897
22898 2006-08-31  Chris Toshok  <toshok@ximian.com>
22899
22900         * DataGridTextBoxColumn.cs: only hide the textbox if it's still
22901         visible.
22902
22903         * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
22904         ProcessKeyPreview.  Fixes part of #77806.
22905
22906         * DataGrid.cs: big patch.
22907
22908         - revert the queueing up of DataSource/DataMember if inside
22909         BeginInit/EndInit calls.  That's not the way the datagrid achieves
22910         its delayed databinding.  Instead, call SetDataSource in
22911         OnBindingContextChanged.  This mimic's MS's behavior, and fixes
22912         #78811.
22913
22914         - Also, it wasn't mentioned in #78811, but the test case exhibits
22915         behavior that was lacking in our datagrid implementation - Columns
22916         that have mapping names that don't exist in the datasource's
22917         properties aren't shown.  Yuck.  To fix this I added the bound
22918         field to the column style, and basically any calculation to figure
22919         out anything about columns uses a loop to find the bound columns.
22920         still need to investigate if I can cache an array of the bound
22921         columns or if the indices must be the same.
22922
22923         - When setting CurrentCell, we no longer abort if the cell being
22924         edited was in the add row.  This fixes the other part of #77806.
22925
22926         - The new code also fixes #78807.
22927         
22928         * ThemeWin32Classic.cs: perpetrate the same disgusting
22929         column.bound field hack, and only render bound fields.
22930
22931 2006-08-31  Chris Toshok  <toshok@ximian.com>
22932
22933         * DataGridColumnStyle.cs: add bound field.  this field is true if
22934         the datasource has a property corresponding to the mapping name.
22935
22936         * DataGridTableStyle.cs: set the bound field on the column styles
22937         depending on whether or not we have a column for that property.
22938
22939 2006-08-31  Peter Dennis Bartok  <pbartok@novell.com> 
22940
22941         * Splitter.cs (SetBoundsCore): Don't ignore width/height of the 
22942           splitter control (fixes #79228)
22943
22944 2006-08-31  Chris Toshok  <toshok@ximian.com>
22945
22946         * DataGridColumnStyle.cs: we need to delay the assignment of
22947         property descriptor until the last possible moment due to the lazy
22948         databinding stuff in the datagrid.  Also, fix the exceptions
22949         thrown by CheckValidDataSource to match MS.
22950
22951 2006-08-31  Jackson Harper  <jackson@ximian.com>
22952
22953         * Form.cs: When activated select the active control, if there is
22954         no active control, we select the first control.
22955         * XplatUIX11.cs: If there is no focus control when we get a
22956         FocusIn event, find the toplevel form and activate it.  This
22957         occurs when you popup a window, it becomes the focus window, then
22958         you close that window, giving focus back to the main window.
22959
22960 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22961
22962         * MonthCalendar.cs: 
22963         * ThemeWin32Classic.cs: Cache Font in bold style, as well
22964         as StringFormat with Center alignments in MonthCalendar,
22965         instead of creating new ones when drawing the control. 
22966         Also, draw the month name in bold style.
22967
22968 2006-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
22969
22970         * Control.cs:
22971           - PerformLayout(): It would seem MS performs the fill even if the 
22972             control is not visible (part of #79218 fix)
22973           - ResetBackColor(): Use the setter to reset the color, to allow
22974             overriders to catch the change.
22975         * Form.cs:
22976           - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
22977           - CreateHandle(): dito (part of $79218 fix)
22978           - Don't set an icon if we have a dialog
22979         * ScrollableControl.cs:
22980           - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
22981           - ScrollIntoView(): No need to scroll if control is already visible
22982             (resolves fixme and fixes #79218)
22983
22984 2006-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22985
22986         * MonthCalendar.cs: Change proportions in SingleMonthSize
22987         to match the aspect of the original control.
22988
22989 2006-08-29  Alexander Olk  <alex.olk@googlemail.com>
22990
22991         * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
22992           get updated when they get maximized.
22993
22994 2006-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
22995
22996         * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
22997
22998 2006-08-29  Chris Toshok  <toshok@ximian.com>
22999
23000         * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
23001
23002 2006-08-29  Jackson Harper  <jackson@ximian.com>
23003
23004         * TreeView.cs: Need to track selected node and highlighted node,
23005         they aren't always the same thing, when the mouse is down on a
23006         node it is hilighted, but not selected yet.
23007         - Do the HideSelection stuff right
23008         - Need to focus on rbutton mouse down. And redraw selection when
23009         right click is mouse upped.
23010
23011 2006-08-29  Mike Kestner  <mkestner@novell.com>
23012
23013         * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
23014         when SubItems.Count < Columns.Count.  [Fixes #79167]
23015
23016 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com> 
23017
23018         * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
23019
23020 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com>
23021
23022         * XplatUIX11.cs: Preempt the roundtrip for getting the location back
23023           from X. Only send based on ConfigureNotify if we don't have the
23024           correct location in hwnd (if the window manager moved us)
23025
23026 2006-08-28  Mike Kestner  <mkestner@novell.com>
23027
23028         * ListView.cs: remove a TODO. 
23029         * ThemeWin32Classic.cs: implement HideSelection support for ListView.
23030         [Fixes ListView part of #79166]
23031
23032 2006-08-28  Mike Kestner  <mkestner@novell.com>
23033
23034         * ListView.cs: move wheel handler to parent since it is focused
23035         instead of the item_control now.  [Fixes #79177]
23036
23037 2006-08-28  Mike Kestner  <mkestner@novell.com>
23038
23039         * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
23040         when the control is focused. [Fixes #79171]
23041
23042 2006-08-28  Mike Kestner  <mkestner@novell.com>
23043
23044         * ListView.cs: size the item and header controls for empty and
23045         unscrollable views.
23046         * ThemeWin32Classic.cs: draw disabled backgrounds.
23047         [Fixes #79187]
23048
23049 2006-08-28  Chris Toshok  <toshok@ximian.com>
23050
23051         * Form.cs: remove unused "active_form" static field.
23052
23053         * Hwnd.cs: lock around accesses to static windows collection.
23054
23055         * Application.cs: lock threads in Exit ().
23056
23057 2006-08-28  Chris Toshok  <toshok@ximian.com>
23058
23059         * NativeWindow.cs: lock around accesses to window_collection.
23060         
23061 2006-08-28  Chris Toshok  <toshok@ximian.com>
23062
23063         * Control.cs: err, fix this the right way, by locking on controls
23064         when using it.  not by making it synchronized.
23065
23066 2006-08-28  Chris Toshok  <toshok@ximian.com>
23067
23068         * Control.cs: make the static "controls" field synchronized, as it
23069         gets updated from multiple threads.
23070
23071 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
23072
23073         * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
23074           Prevent other threads from exiting when calling thread sets quit state.
23075         * XEventQueue.cs: Added PostQuitState property
23076
23077 2006-08-27  Chris Toshok  <toshok@ximian.com>
23078
23079         * AsyncMethodData.cs: add a slot for the window handle.
23080
23081         * XplatUIX11.cs (SendAsyncMethod): send the event to the right
23082         window (the destination control's window, not the foster window).
23083
23084         * Control.cs (BeginInvokeInternal): store the window's handle in
23085         the AsyncMethodData.
23086         
23087
23088 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
23089
23090         * XplatUIX11.cs:
23091           - PostQuitMessage: Removed resetting S.D display handle, we might have
23092             another loop started after calling PostQuitMessage (Fixes #79119)
23093           - Created destructor to reset S.D handle
23094
23095 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com> 
23096
23097         * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
23098
23099 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
23100
23101         * TextControl.cs (Insert): Update the caret position even if we don't
23102           have a handle yet, just don't call the driver in that case.
23103         * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
23104           to the end of the new selection text (Fixes #79184)
23105
23106 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
23107
23108         * Form.cs (Activate): Only activate if the handle is created)
23109         * Control.c:
23110           - Mark window as invisible when it's disposed
23111           - Check if window handle is created when setting window visible, 
23112             instead of relying just on the is_created variable
23113           - Check if object is disposed when creating the control (Fixes #79155)
23114
23115 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
23116
23117         * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
23118           when allowing layout again. Otherwise we re-generate the anchoring 
23119           distance to the border again and actually alter what the user wanted
23120           This is ugly, it'd be better if we used DisplayRectangle instead of
23121           ClientRectangle for Control.UpdateDistances, but that causes us to
23122           have other problems (initial anchoring positons would be wrong)
23123           (Fixes #78835)
23124
23125 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
23126
23127         * Control.cs:
23128           - The size and location setters shouldn't go directly to 
23129             SetBoundsCore, but to SetBounds, which triggers layout on the
23130             parent, then calls SetBoundsCore. (Related to fix for #78835)
23131           - SetBounds: Moved actual location update code into this function
23132             from SetBoundsCore, to match MS. Added call to PerformLayout if
23133             we have a parent (to trigger resizing of anchored parents if the 
23134             child size has changed (see testcase for #78835) 
23135         * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match 
23136           new control code
23137         * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
23138
23139 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
23140
23141         * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
23142           System.Drawing when a toplevel window gets closed; there might
23143           be other toplevel windows belonging to the same app (Fixes #78052)
23144
23145 2006-08-26  Alexander Olk  <alex.olk@googlemail.com>
23146
23147         * FileDialog.cs: After reading FileDialog settings from mwf_config
23148           use Desktop prefix only if a real folder doesn't exist anymore.
23149         * FontDialog.cs: Added char sets.
23150           It is now possible to select the font, size or style with the
23151           textboxes.
23152
23153 2006-08-25  Kornél Pál  <kornelpal@gmail.com>
23154
23155         * PrintPreviewDialog.cs: Use assembly name constants.
23156
23157 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
23158
23159         * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
23160           scrollbar from whacking it's buttons)
23161
23162 2006-08-24  Chris Toshok  <toshok@ximian.com>
23163
23164         * ScrollableControl.cs: fix #78271.  There's a lot of misc stuff
23165         in this patch (aggregating setting Left/Top/Width/Height to
23166         setting Bounds on the scrollbars), but the crux of the fix is in
23167         Recalculate, where we scroll by the remaining scroll_position if
23168         we're hiding a scrollbar.  The 2*$5 reward in the comment is
23169         serious.
23170
23171 2006-08-24  Jackson Harper  <jackson@ximian.com>
23172
23173         * MdiClient.cs:
23174         * MdiWindowManager.cs: If the form is made a non-mdi window we
23175         need to remove the form closed event so that closing forms works
23176         correctly.
23177
23178 2006-08-24  Jackson Harper  <jackson@ximian.com>
23179
23180         * Control.cs: Make IsRecreating internal so that the driver can
23181         check it
23182         - Temporarily remove the Hide when controls are removed, its
23183         making a whole bunch of things not work because visibility isn't
23184         getting reset elsewhere correctly
23185         * Form.cs: Need to do a full handle recreation when the mdi parent
23186         is set.
23187         * XplatUIX11.cs: If we are recreating handles don't dispose the
23188         HWNDs.  What was happening is the handles were being recreated in
23189         SendWMDestroyMessages, but then flow continued on in that method
23190         and destroyed the new handles.
23191
23192 2006-08-23  Jackson Harper  <jackson@ximian.com>
23193
23194         * Form.cs: MdiClient is always at the back of the bus
23195         * Control.cs: When the order of items in the collection is changed
23196         we need to reset the all_controls array
23197         - do the same sorta setup thats done when adding a control when a
23198         control is set on the collection.
23199
23200 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
23201
23202         * TextBoxBase.cs (get_Text): Return an empty array if our document
23203           is empty (fixes #79052)
23204
23205 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
23206
23207         * Control.cs: We should call IsInputChar on only on WM_CHAR but not
23208           on WM_SYSCHAR messages (fixes #79053)
23209
23210 2006-08-23  Chris Toshok  <toshok@ximian.com>
23211
23212         * DataGrid.cs: fix flickering when scrolling vertically.
23213
23214 2006-08-23  Chris Toshok  <toshok@ximian.com>
23215
23216         * DataGrid.cs (EndEdit): only invalidate the row header when we
23217         need to.
23218
23219 2006-08-23  Chris Toshok  <toshok@ximian.com>
23220
23221         * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
23222         methods.  fixes the flicker when scrolling around.
23223
23224 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
23225
23226         * FileDialog.cs: Making sure the control is created before we get a 
23227           chance to use it with BeginInvoke (Fixes #79096)
23228
23229 2006-08-23  Chris Toshok  <toshok@ximian.com>
23230
23231         * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
23232         width to use when painting the rows.
23233
23234 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
23235
23236         * TextBoxBase.cs:
23237           - Throw ArgumentException if a negative value is passed to SelectionLength
23238           - Update the selection end if start is moved. end needs to be always
23239             after start. (Fixes #79095)
23240           - Track selection length; MS keeps the selection length even if start
23241             is changed; reset on all other operations affection selection
23242
23243 2006-08-22  Jackson Harper  <jackson@ximian.com>
23244
23245         * TreeView.cs: Make sure both scrollbars get displayed and sized
23246         correctly when the other bar is visible.
23247         - Use the original clip rectangle for checking if the area between
23248         the two scrollbars is visible, not the viewport adjusted clipping
23249         rectangle.
23250
23251 2006-08-22  Jackson Harper  <jackson@ximian.com>
23252
23253         * Binding.cs: We don't use IsBinding because it requires the
23254         control to be created, which really shouldn't be necessary just to
23255         set a property on the control.
23256
23257 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23258
23259         * ComboBox.cs: Some CB.ObjectCollection methods must throw
23260         ArgumentNullReferenceException when the argument is null.
23261
23262 2006-08-21  Jackson Harper  <jackson@ximian.com>
23263
23264         * Timer.cs: Track the thread that the timer is started in (NOT
23265         CREATED), this way messages for it will only be triggered on its
23266         queue.
23267         * XEventQueue.cs: Track the timers here, this makes timers per
23268         thread, like MS.
23269         * XplatUIX11.cs: The timers are moved to the XEventQueue.
23270
23271 2006-08-19  Chris Toshok  <toshok@ximian.com>
23272
23273         * XplatUIX11.cs: after further communication with pdb, we get the
23274         best of both worlds.  SetZOrder working for un-Mapped windows, and
23275         no X errors for un-mapped windows.
23276
23277 2006-08-19  Chris Toshok  <toshok@ximian.com>
23278
23279         * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
23280         as it was causing pdn toolbars to not have the correct stacking.
23281
23282 2006-08-18  Mike Kestner  <mkestner@novell.com> 
23283
23284         * ListView.cs : guard against negative ClientArea.Width in scrollbar
23285         calculation.  Not sure why control should ever be setting a negative
23286         width though.  Fixes #78931.
23287
23288 2006-08-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23289
23290         * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
23291         null items in ObjectCollection class.
23292         * ListBox.cs.: Likewise.
23293
23294 2006-08-18  Atsushi Enomoto  <atsushi@ximian.com>
23295
23296         * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
23297           as the base method in ThemeWin32Classic should work fine.
23298           Fixed bug #78607.
23299
23300 2006-08-18  Jackson Harper  <jackson@ximian.com>
23301
23302         * Binding.cs: When validating if the value entered doesn't convert
23303         properly reset to the old value.
23304         * RadioButton.cs: Don't fire click when we get focus.
23305
23306 2006-08-18  Jackson Harper  <jackson@ximian.com>
23307
23308         * FileDialog.cs: Paint the selection on the directory combobox the
23309         same way as on MS. 
23310
23311 2006-08-17  Jackson Harper  <jackson@ximian.com>
23312
23313         * ErrorProvider.cs: Don't allow the error control to be selected.
23314         * Control.cs: Don't send the SetFocus messages, the control
23315         activation will do this, and if we do it blindly here validation
23316         does not work.
23317
23318 2006-08-17  Jackson Harper  <jackson@ximian.com>
23319
23320         * Control.cs:
23321         * ContainerControl.cs: Make validation events fire in the correct
23322         order.  TODO: For some reason the first validation event is not
23323         getting fired.
23324
23325 2006-08-17  Mike Kestner  <mkestner@novell.com> 
23326
23327         * ComboBox.cs : some null guarding for ComboListBox.Scroll.
23328
23329 2006-08-17  Mike Kestner  <mkestner@novell.com> 
23330
23331         * ComboBox.cs : implement scroll wheel support for popped-down
23332         state. Fixes #78945. 
23333
23334 2006-08-17  Jackson Harper  <jackson@ximian.com>
23335
23336         * TreeView.cs: Specify treeview actions (old patch that didn't get
23337         committed for some reason).
23338         - Don't let the mouse wheel scroll us too far.  Just want to make
23339         the bottom node visible, not scroll it all the ways to the top.
23340
23341 2006-08-17  Jackson Harper  <jackson@ximian.com>
23342
23343         * XplatUIX11.cs: Mouse wheel events go to the focused window.
23344
23345 2006-08-17  Mike Kestner  <mkestner@novell.com> 
23346
23347         * ComboBox.cs : don't do mouseover selection in simple mode.
23348
23349 2006-08-16  Jackson Harper  <jackson@ximian.com>
23350
23351         * Form.cs: Fire the closing events for all the mdi child windows
23352         when a window is closed.  If the cancel args are set to true, the
23353         main window still gets the event fired, but it doesn't not close.
23354         * MdiWindowManager.cs: Do this closing cleanup in a Closed
23355         handler, instead of when the button is clicked, so cancelling the
23356         close works correctly.
23357         * ComboBox.cs: Send the mouse down to the scrollbar.
23358
23359 2006-08-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23360
23361         * ListBox.cs: When passing 'null' to SelectedItem,
23362         set SelectedIndex to -1, to unselect items. This is the
23363         observed behaviour in .Net.
23364
23365 2006-08-16  Peter Dennis Bartok  <pbartok@novell.com> 
23366
23367         * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
23368           MS flags saying there won't be any. (fixes #78800)
23369         * Control.cs (HandleClick): Made virtual
23370
23371 2006-08-16  Atsushi Enomoto  <atsushi@ximian.com>
23372
23373         * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
23374           cultures. Fixed bug #78399.
23375
23376 2006-08-16  Jackson Harper  <jackson@ximian.com>
23377
23378         * Form.cs: Use the MdiClients MdiChildren property to access
23379         MdiChildren instead of creating the array from the child controls.
23380         * MdiClient.cs: Maintain a separate array of the mdi children, so
23381         that insertion order is maintained when the Z-order is changed.
23382
23383 2006-08-16  Mike Kestner  <mkestner@novell.com> 
23384
23385         * ListView.cs : add an ItemComparer and default to it for sorting.
23386         Fixes #79076, but sorting needs a complete overhaul to be compat with
23387         MS.
23388
23389 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
23390
23391         * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
23392
23393 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
23394
23395         * Hwnd.cs (Mapped): Properly traverse the tree
23396
23397 2006-08-15  Chris Toshok  <toshok@ximian.com>
23398
23399         * Binding.cs: fix PullData/SetPropertyValue.  We don't want to
23400         pass manager.Current.GetType() to ParseData.  It has to be the
23401         property type.  So, hold off doing the ParseData until we're in
23402         SetPropertyValue where we know the type.  This fixes the crash in
23403         #78821 but the textbox is still empty.
23404
23405 2006-08-15  Chris Toshok  <toshok@ximian.com>
23406
23407         * DataGrid.cs:
23408         - when we're scrolling, only call Edit() again if the
23409         current cell is still unobscured. Fixes bug #78927.
23410         - when handling mousedown on a cell, ensure the cell is visible
23411         before calling Edit.
23412         - remove the properties from DataGridRow, and remove the
23413         DataGridParentRow class altogether.
23414         
23415
23416 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
23417
23418         * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
23419           fire OnTextChanged by ourselves. There's no point calling base,
23420           we don't set the base value anywhere else. Fixes #78773.
23421
23422 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23423
23424         * ListBox.cs: Call CollectionChanged when modifying
23425         an item from Items indexer, to update the actual items
23426         in the list box.
23427
23428 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23429
23430         * PrintDialog.cs: Small fixes for focus and a pair of checks,
23431         to match .Net behaviour.
23432
23433 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
23434
23435         * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
23436
23437 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
23438
23439         * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
23440
23441 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
23442
23443         * MessageBox.cs: Prevent potential NRE exception.
23444         * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
23445
23446 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
23447
23448         * MessageBox.cs: Calculate the owner of a messagebox, also make
23449           it topmost. Fixes #78753
23450
23451 2006-08-14  Chris Toshok  <toshok@ximian.com>
23452
23453         * XplatUIX11.cs: A couple of fixes so that metacity will let us
23454         programmatically move windows.  first, set the PPosition hint as
23455         well as the USPosition hint.  Second include some code from pdb
23456         that sets the window type to NORMAL when we set the transient for
23457         hint.  This is because, in the absence of a window type, metacity
23458         thinks any window with TransientFor set is a dialog, and refuses
23459         to let us move it programmatically.  fascists.
23460
23461 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
23462
23463         * XplatUIX11.cs: When setting normal hints, take into consideration
23464           an different hints previously set so we don't delete them (fixes #78866)
23465
23466 2006-08-12  Chris Toshok  <toshok@ximian.com>
23467
23468         * ToolBarButton.cs: make Layout return a boolean, if something to
23469         do with the button's layout changed.
23470
23471         * ToolBar.cs:
23472         - add another parameter to Redraw, @force, which all existing
23473           calls set to true.
23474         - make the Layout function return a boolean which is true if the
23475           layout has actually changed.  Redraw now uses this (and @force)
23476           to determine when to invalidate.  At present the only place
23477           where @force can be false is the call from OnResize, when
23478           background_image == null.  So, resizing a toolbar when the
23479           layout doesn't change results in no drawing.
23480
23481 2006-08-12  Chris Toshok  <toshok@ximian.com>
23482
23483         * ThemeWin32Classic.cs: fix the bottom right corner painting.  had
23484         the VScrollBar and HScrollbar reversed.  oops.
23485
23486         * DataGrid.cs: fix the logic that assigns sizes to the implicit
23487         scrollbars.  we were assigning them twice (once in
23488         Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
23489         therefore causing two scrollbar resizes (and redraws?) to happen
23490         per grid resize.
23491
23492 2006-08-12  Chris Toshok  <toshok@ximian.com>
23493
23494         * ToolBarButton.cs: redraw the entire button if the theme tells us
23495         to.
23496
23497         * Theme.cs: add ToolBarInvalidateEntireButton.
23498
23499         * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
23500         buttons, just the border.
23501
23502         * ThemeNice.cs: redraw the entire toolbar button since we need to
23503         draw the highlight image.
23504
23505         * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
23506         we need to redraw the entire button (not just the border).
23507
23508 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
23509
23510         * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
23511           for vertical bars. Fixes the mismatches shown by #78513
23512
23513 2006-08-11  Alexander Olk  <alex.olk@googlemail.com>
23514
23515         * FileDialog.cs: If a saved/remembered path doesn't exist
23516           anymore, fall back to "Desktop".
23517
23518 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
23519
23520         * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
23521           parent. It's apparently legal to not have one
23522         * XplatUIX11.cs:
23523           - SetZOrder: Don't try to set Z-Order on an unmapped window
23524           - CreateWindow: 0,0 are legal coordinates for a window. don't move
23525             it unless the coordinates are negative
23526
23527 2006-08-10  Mike Kestner  <mkestner@novell.com>
23528
23529         * ListControl.cs: allow null for DataSource.  Clear DisplayMember
23530         when setting to null per msdn docs.  Fixes #78854.
23531
23532 2006-08-10  Chris Toshok  <toshok@ximian.com>
23533
23534         * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
23535         flickering by setting a clip rectangle on the Graphics when we
23536         need to redraw just a particular menuitem.  Also, rename "OnClick"
23537         to "OnMouseDown" to reflect what it actually is.
23538         
23539         * Form.cs: track the OnMouseDown change.
23540
23541 2006-08-10  Peter Dennis Bartok  <pbartok@novell.com>
23542
23543         * CommonDialog.cs: Properly inherit the CreateParams from the form
23544           and only change what we need. Fixes #78865
23545
23546 2006-08-10  Chris Toshok  <toshok@ximian.com>
23547
23548         * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
23549         flickering in flat mode (and most of the flickering in general) by
23550         only invalidating the button border (and not the entire rectangle)
23551         when the state changes.  A couple of cases still flicker:
23552         ToggleButtons, and the dropdown arrow case when the user mouse
23553         ups.
23554
23555 2006-08-10  Alexander Olk  <alex.olk@googlemail.com>
23556
23557         * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
23558           for german keyboards. Numlock state shouldn't affect the behaviour
23559           of the Del key. Fixes bug #78291.
23560
23561 2006-08-10  Chris Toshok  <toshok@ximian.com>
23562
23563         * ListControl.cs: remove the items.Clear line from BindDataItems,
23564         as this is the first thing done by both subclasses in their
23565         SetItemsCore overrides.  Also, add a ItemChanged handler, and when
23566         passed -1, refresh the list.  This gets databinding working when
23567         the datasource is set on the list before the datasource is
23568         populated (as in wf-apps/ReportBuilder.)
23569
23570         * ComboBox.cs: remove the argument to BindDataItems.  This call
23571         should really go away, and be initiated by the ListControl code.
23572
23573         * ListBox.cs: same.
23574
23575 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
23576
23577         * TextControl.cs (Document.ctor): Initialize caret so we don't crash
23578           if no data is in the document when the control is displayed
23579
23580 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com> 
23581
23582         * TextBoxBase.cs: Don't try moving the caret if we don't have a window
23583           yes (fixes #78806)
23584         * TextControl.cs: 
23585           - PositionCaret: Allow positioning of caret but don't call methods 
23586             requiring a handle if the window isn't created yet
23587           - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
23588           - owner_HandleCreated: Don't position the caret, just update it's 
23589             location. User might have already set a different position
23590
23591 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
23592
23593         * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
23594           windows. Screws up the returned coordinates for child windows. 
23595           Fixes #78825. I'm hoping this doesn't break something, since the
23596           code was explicitly put in 8 months ago, but no bug was attached.
23597           Menus still seem to work properly.
23598
23599 2006-08-08  Chris Toshok  <toshok@ximian.com>
23600
23601         * DataGrid.cs: make BeginInit/EndInit actually do what they're
23602         supposed to do - delay data binding until the EndInit call.  Also,
23603         make the table style collection's CollectionChangeAction.Refresh
23604         work properly.
23605
23606         * GridTableStylesCollection.cs: raise a CollectionChangeEvent
23607         (with action = Refresh) when a consituent table's MappingName is
23608         changed.
23609
23610 2006-08-08  Chris Toshok  <toshok@ximian.com>
23611
23612         * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
23613         Invalidate, since changing the text can change the size of the all
23614         toolbar buttons.
23615
23616 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
23617
23618         * Form.cs (AddOwnedForm): Still need to add the form to our listif
23619           we don't have it yet
23620
23621 2006-08-08  Chris Toshok  <toshok@ximian.com>
23622
23623         * PrintControllerWithStatusDialog.cs: don't .Close() the status
23624         dialog, as this causes X errors later on, since we actually
23625         destroy the window.  Instead, .Hide() it.
23626
23627 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
23628
23629         * ComboBox.cs: Added focus reflection for popup window
23630         * XplatUIX11.cs: 
23631           - Removed transient setting for non-app windows for now, not sure it
23632             was needed
23633           - Fixed logic checking if we have captions when deciding 
23634             override_redirect, WS_CAPTION is two bits and a 0 check was not
23635             sufficient
23636           - Removed the WINDOW_TYPE stuff, it was unneeded and making things
23637             complicated
23638         * Form.cs: 
23639           - AddOwnedForm: Don't just add the form to the list, call the property
23640             to ensure the driver is informed about the ownership as well
23641           - CreateHandle: Set the TopMost status in the driver if we have an owner
23642         * XplatUI.cs: Fixed debug statement
23643
23644 2006-08-08  Jonathan Pobst <monkey@jpobst.com>
23645         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
23646           GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
23647           ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs, 
23648           TrackBarRenderer.cs: Make constructor private.
23649         * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
23650         * ProfessionalColorTable.cs: Make properties virtual.
23651
23652 2006-08-06  Duncan Mak  <duncan@novell.com>
23653
23654         * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
23655         is not changing.
23656
23657 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
23658         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
23659           GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
23660           ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
23661           TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
23662           Initial import of new 2.0 classes.
23663
23664 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
23665         * Application.cs: Add 2.0 VisualStyles properties.
23666
23667 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
23668         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
23669           XplatUIX11.cs: Create property to allow access to existing private
23670           variable "themes_enabled"
23671
23672 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23673
23674         * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
23675         file size, as otherwise our class libraries fail using windows. Fixes
23676         bug #78759.
23677
23678 2006-08-04  Jackson Harper  <jackson@ximian.com>
23679
23680         * Form.cs:
23681         * XplatUIX11.cs: Move the toolwindow window manager creation into
23682         the X11 driver, this way on win32 we can let windows create/handle
23683         the toolwindows.
23684
23685 2006-08-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23686
23687         * PrintDialog.cs: Remove some redundant checks, add some others,
23688         clean some code, and move the focus to the text boxes when the
23689         values are incorrect.
23690
23691 2006-08-04  Alexander Olk  <alex.olk@googlemail.com>
23692
23693         * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
23694
23695 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
23696
23697         * NumericUpDown.cs: Setting the Minimum and Maximum is now
23698           handled correctly. Fixes bug #79001.
23699
23700 2006-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23701
23702         * PrintDialog.cs: The "Copies" numeric up down must have
23703         set the Minimum property to 1; only if the value is bigger
23704         than 1, activate "Collate" check box. This is the behaviour of .Net.
23705         Also modify the Document elements only if it is not null.
23706
23707 2006-08-03  Jackson Harper  <jackson@ximian.com>
23708
23709         * TreeNodeCollection.cs: Fix copyto to use the correct nodes
23710         length. (We have a larger array then actual node count).
23711                 
23712 2006-08-03  Jackson Harper  <jackson@ximian.com>
23713
23714         * ComboBox.cs: Don't show selection by default.
23715         - The SelectAll isn't needed here, since the focus code should do
23716         that
23717         - DDL style lists to manual selection drawing, so when they
23718         get/lose focus they have to invalidate.
23719
23720 2006-08-03  Peter Dennis Bartok  <pbartok@novell.com>
23721
23722         * TextBoxBase.cs: Don't always show all selections by default.
23723
23724 2006-08-03  Jonathan Pobst  <monkey@jpobst.com>
23725         * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
23726           HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
23727           Fixed various typos.
23728
23729 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
23730
23731         * Control.cs: Removing the controls in a ControlCollection with
23732           Clear now hides the controls as expected. Fixes bug #78804. 
23733
23734 2006-08-03  Jackson Harper  <jackson@ximian.com>
23735
23736         * Control.cs: Revert previous focus patch, it breaks reflector.
23737
23738 2006-08-03  Jackson Harper  <jackson@ximian.com>
23739
23740         * ComboBox.cs: Cleanup selection and focus with the combobox.
23741         This also eliminates some duplicated keyboard code, since now
23742         everything is handled by the main class.
23743         - Make list selection work on mouse up instead of down, to match
23744         MS.
23745
23746 2006-08-02  Jackson Harper  <jackson@ximian.com>
23747
23748         * Control.cs: Setting focus needs to go through the whole
23749         selection mechanism.
23750
23751 2006-08-02  Chris Toshok  <toshok@ximian.com>
23752
23753         * PrintPreviewDialog.cs: change MinimumSize to use
23754         base.MinimumSize so it works.
23755
23756 2006-08-02  Peter Dennis Bartok  <pbartok@novell.com>
23757
23758         * TextControl.cs:
23759           - UpdateCaret: Added sanity check in case caret isn't defined yet
23760           - Line.Delete: Now updating selection and caret markers if we're
23761             transfering a node (Properly fixes #78323)
23762           - SetSelectionEnd: Added sanity check
23763         * TextBoxBase.cs: Removed broken attempt to fix #78323
23764
23765 2006-08-01  Chris Toshok  <toshok@ximian.com>
23766
23767         * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
23768         Close() call is handled in Form, not here.
23769
23770 2006-08-01  Chris Toshok  <toshok@ximian.com>
23771
23772         * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
23773         layout/rendering.
23774
23775         * PrintPreviewDialog.cs: add scrollbars, and add an image cache
23776         for sizes < 100% zoom.  The code now aggressively attempts to keep
23777         from calling document.Print (), and tries not to use the scaling
23778         g.DrawImage whenever possible (it still does if you scale to >
23779         100%, since usually that involves huge images).
23780
23781         * PrintPreviewControl.cs: hook up the close button.
23782
23783 2006-08-01  Jonathan Pobst  <monkey@jpobst.com>
23784         * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
23785           ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
23786           ItemDragEventHandler.cs, LabelEditEventHandler.cs,
23787           LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
23788           MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
23789           PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
23790           SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
23791           Removed [Serializable] for 2.0 Event Handlers.
23792
23793 2006-07-31  Jackson Harper  <jackson@ximian.com>
23794
23795         * TextBoxBase.cs: Make ShowSelection invalidate when changed.
23796         * TextControl.cs: Uncomment out the body of this method.
23797
23798 2006-07-31  Alexander Olk  <alex.olk@googlemail.com>
23799
23800         * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
23801           standard cursors.
23802
23803 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
23804
23805         * TextBoxBase.cs: Added internal property ShowSelection to allow controls
23806           that embed TextBox and need selections visible even if textbox is not
23807           focused to enforce that behaviour.
23808         * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
23809           selection drawing
23810
23811 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
23812
23813         * TextControl.cs:
23814           - Added new SetSelectionStart/SetSelectionEnd overloads
23815           - Fixed viewport width assignment to be accurate
23816           - Adjusted alignment line shift calculations to allow cursor on right
23817             aligned lines to be always visible at the right border (like MS)
23818         * TextBoxBase.cs:
23819           - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
23820           - TextBoxBase_SizeChanged: recalculating canvas on size changes
23821           - CalculateScrollBars: Use ViewPort size instead of window size, to
23822             properly consider space occupied by the border and scrollbars 
23823             (Fixes #78661)
23824           - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll 
23825             calculations; no longer leaves artifacts
23826           - CaretMoved: Adjusted window scrolling to match MS and fixed several
23827             calculation bugs (Still missing right/center align calculations)
23828
23829 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com> 
23830
23831         * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
23832           use of both scroll rect and clip rect, as they do the same.
23833
23834 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
23835
23836         * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key 
23837           in the event handler (fixes #78912)
23838
23839 2006-07-31  Chris Toshok  <toshok@ximian.com>
23840
23841         * ThemeWin32Classic.cs: use grid.RowsCount here instead of
23842         grid.ListManager.Count, since grid.ListManager might be null.
23843         This of course begs the question "why are we drawing rows for a
23844         grid with no list manager (and therefor no rows)?"  Fixes the
23845         crash in bug #78929.
23846
23847 2006-07-31  Chris Toshok  <toshok@ximian.com>
23848
23849         * RelatedPropertyManager.cs: Don't always chain up to the parent
23850         ctor.  instead, call SetDataSource if the parent's position is !=
23851         -1.  Fixes the crash in #78822.
23852
23853 2006-07-31  Chris Toshok  <toshok@ximian.com>
23854
23855         * DataGrid.cs (get_ListManager): use field instead of property
23856         accessors for datasource and datamember.
23857         (RowsCount): make internal again.
23858         (OnMouseDown): end edits before resizing columns/rows.
23859         (OnMouseUp): restart edits after resizing columns/rows.
23860
23861 2006-07-30  Peter Dennis Bartok  <pbartok@novell.com>
23862
23863         * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
23864           This fixes the situation where the last set cursor is displayed
23865           whenever the mouse is over scrollbars.
23866
23867 2006-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23868
23869         * PrintDialog.cs: Fix the behaviour of PrinterSettings and
23870         Document properties, as well as initial values.
23871
23872 2006-07-29  Peter Dennis Bartok  <pbartok@novell.com>
23873
23874         * XplatUIWin32.cs (SetBorderStyle): Setting both border
23875           and ClientEdge results in a 3-pixel border, which is
23876           wrong.
23877
23878 2006-07-28  Jackson Harper  <jackson@ximian.com>
23879
23880         * TreeNodeCollection.cs: Fix the clear method.
23881         - Fix the Shrink also
23882
23883 2006-07-27  Jackson Harper  <jackson@ximian.com>
23884
23885         * TreeView.cs: Make sure the visible order is computed when we
23886         attempt to size the scrollbars (for trees that mess with the
23887         scrolling when they shouldn't.
23888         - Make sure to give the scrollbars valid values.
23889
23890 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
23891
23892         * XplatUIX11.cs: Move motion compression code to where it
23893           has less performance impact
23894
23895 2006-07-26  Jackson Harper  <jackson@ximian.com>
23896
23897         * UpDownBase.cs: When the control is selected make the child
23898         controls non selectable, so that a click on them won't do a
23899         focus/unfocus cycle.
23900         - Don't give focus to the text box when the spinner is selected.
23901         * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
23902
23903 2006-07-26  Chris Toshok  <toshok@ximian.com>
23904
23905         * ThemeWin32Classic.cs: add print preview rendering.  I'm not
23906         satisfied with this solution.  If the bitmaps are small, we should
23907         just cache them in the PrintPreviewDialog and draw them here.
23908         Also, the layout is broken for the 2-up and 3-up cases.
23909
23910         * Theme.cs: add PrintPReviewControlPaint.
23911
23912         * PrintPreviewDialog.cs: first pass implementation.
23913
23914         * PrintPreviewControl.cs: first pass implementation.  No
23915         scrollbars yet.
23916
23917         * PrintDialog.cs: only validate fields if that particular portion
23918         of the UI is enabled.  Also, set the document's controller to a
23919         PrintControllerWithStatusDialog wrapping the document's print
23920         controller.
23921
23922         * PrintControllerWithStatusDialog.cs: if we're printing to a file,
23923         bring up a SaveFileDialog (i hope we don't want to match the
23924         behavior of the crappy windows file entry) and set the
23925         PrinterSettings.PrintFileName accordingly.
23926
23927 2006-07-26  Jackson Harper  <jackson@ximian.com>
23928
23929         * ContainerControl.cs: Add a field that disables auto selecting
23930         the next control in a container when the container is activated.
23931         * UpDownBase.cs: Don't select the text box when the up down is
23932         selected.
23933
23934 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
23935
23936         * XEventQueue.cs: Added methods for peeking (used for compression
23937           of successive events)
23938         * XplatUIX11.cs (GetMessage): We're now compressing consecutive
23939           mouse move events (fixes #78732)
23940
23941 2006-07-25  Jackson Harper  <jackson@ximian.com>
23942
23943         * UpDownBase.cs: Use an internal class for the textbox so that we
23944         can control focus.  the updown control should always have focus,
23945         if either the text area or the buttons are clicked.
23946         - Send the key messages to the textbox, since it never actually
23947         has focus
23948         - Activate and decativate the textbox caret.
23949
23950 2006-07-24  Jackson Harper  <jackson@ximian.com>
23951
23952         * Control.cs: Use the directed select when selecting a control,
23953         this way the container controls override will get called and the
23954         whole ActiveControl chain will get triggered.  TODO: probably need
23955         to make sure this gets done everywhere instead of the old
23956         Select(Control).
23957         * ContainerControl.cs: Implement the directed Select method to
23958         find and activate the correct child control.    
23959         
23960 2006-07-22  Mike Kestner  <mkestner@novell.com>
23961
23962         * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
23963         menu handling code so that clicks without a grab work too.
23964         [Fixes #78914]
23965
23966 2006-07-22  Alexander Olk  <alex.olk@googlemail.com>
23967
23968         * FileDialog.cs: Enable the BackButton when dirstack has one element.
23969           Added some small optimizations.
23970
23971 2006-07-21  Matt Hargett  <matt@use.net>
23972
23973         * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
23974
23975 2006-07-21  Peter Dennis Bartok  <pbartok@novell.com> 
23976
23977         * Control.cs (GetNextControl): Fixes to make all of Jackson's unit 
23978           tests pass and match MS in some strange border cases.
23979
23980 2006-07-21  Chris Toshok  <toshok@ximian.com>
23981
23982         * ThemeWin32Classic.cs: handle drawing of the relation links and
23983         parent row buttons.
23984
23985         * Theme.cs: change args to DataGridPaintParentRow.
23986
23987         * DataGrid.cs: Don't use controls for the relation links and
23988         parent buttons, so we have to handle all their interactions in
23989         MouseMove, MouseDown, MouseUp, etc.  Also, store a lot more stuff
23990         when we're navigating through child tables, so we can reinstate
23991         selection, expanded state, current cell, etc.
23992
23993 2006-07-20  Chris Toshok  <toshok@ximian.com>
23994
23995         * ToolBar.cs: When we redraw a button, for whatever reason,
23996         there's no reason to redraw the entire toolbar.  Also, don't call
23997         Control.Refresh from within Redraw, as it's much heavier than
23998         Invalidate (which is really what we want).
23999
24000 2006-07-20  Chris Toshok  <toshok@ximian.com>
24001
24002         * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
24003         DataGridTextBoxColumn.cs, DataGridTextBox.cs,
24004         ThemeWin32Classic.cs, ListControl.cs: After staring at stack
24005         traces from within a debug IBindingList datasource
24006         (in mono/winforms/datagrid) for *days*, I've finally gotten things
24007         to work in a similar fashion.
24008
24009 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24010
24011         * ListBox.cs: Don't call Sort () when setting 
24012         the Sorted property to false (avoid an unnecessary sort).
24013
24014 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24015
24016         * ListControl.cs: DataSource should throw an ArgumentException
24017         instead of a normal exception when the argument is not of the 
24018         correct type.
24019
24020 2006-07-20  Mike Kestner  <mkestner@novell.com>
24021
24022         * Control.cs: add InternalPreProcessMessage to allow us to steal
24023         key events before MWF gets its paws on them.  Adapted from a
24024         suggestion by eno.
24025         * ToolBar.cs: add GotLostFocus handing for flat toolbars, with 
24026         up/down/left/right navigation. Override the new internal control
24027         method to steal the events since they never make it to WndProc.
24028         * ToolBarButton.cs: don't worry about pushed when setting hilight
24029         since the drawing code prefers pushed to hilight. Invalidate on 
24030         Hilight changes. Fixes #78547 and #78525.
24031
24032 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
24033
24034         * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
24035           the canvas size. Fixes #78868
24036
24037 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com>
24038
24039         * Splitter.cs: Track requested split position until first layout
24040           is performed. Fixes #78871
24041
24042 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
24043
24044         * Application.cs: Removed code that forces 1.x for the version
24045           number if the version started with 0. Not sure why that code was
24046           there and I couldn't find any bugs that indicated we needed it.
24047           Fixes #78869
24048
24049 2006-07-20  Alexander Olk  <alex.olk@googlemail.com>
24050
24051         * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
24052           ResetDefaults(), just write some output to the console until it's
24053           implemented. Fixes bug #78907 for now. Eliminated two warnings.
24054
24055 2006-07-19  Jonathan Chambers  <joncham@gmail.com>
24056
24057         * PropertyGridView.cs: set StartPosition of drop down forms
24058         so they appear in correct initial spot.  Fixes #78190.
24059
24060 2006-07-19  Mike Kestner  <mkestner@novell.com>
24061
24062         * ThemeWin32Classic.cs: use parent background color when drawing
24063         flat toolbars.  Restructure the conditionals to make sure non-flat
24064         non-Divider toolbars are filled too.  Fixes #78837.
24065
24066 2006-07-19  Mike Kestner  <mkestner@novell.com>
24067
24068         * ListBox.cs: Sort on collection changes even if the handle
24069         isn't created yet.  Fixes #78813.
24070
24071 2006-07-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24072
24073         * ListControl.cs: DisplayMember should never be null,
24074         and now we assign String.Empty when null is passed to it (this
24075         is the .Net way).
24076
24077 2006-07-17  Mike Kestner  <mkestner@novell.com>
24078
24079         * ListViewItem.cs: restructure Font and subitem Font handling 
24080         to hold a specific font and refer back to owner on null.
24081         Fixes #78761.
24082
24083 2006-07-17  Mike Kestner  <mkestner@novell.com>
24084
24085         * ToolBar.cs: bandaid for side-effect of previous patch which was
24086         discarding explicit heights for non-AutoSize toolbars.  Need to
24087         extend my format tester to deal with AutoSize=false. Fixes #78864.
24088
24089 2006-07-15  Jackson Harper  <jackson@ximian.com>
24090
24091         * LabelEditTextBox.cs:
24092         * TreeView.cs: Use a new LabelEdit class for node editing, this
24093         class automatically 'closes' itself when it gets the enter key or
24094         loses focus.
24095         - Use the client rectangle when setting the trees scrollbars, so
24096         border style is taken into account.
24097         
24098 2006-07-14  Jackson Harper  <jackson@ximian.com>
24099
24100         * TreeNode.cs:
24101         * TreeView.cs: Make the editing work similar to MSs, firing the
24102         events correctly and ending edits correctly.
24103
24104 2006-07-14  Mike Kestner  <mkestner@novell.com>
24105
24106         * ToolBarButton.cs:
24107         * ToolBar.cs: layout restructuring and redraw enhancements to support
24108         formatting changes gracefully, like setting TextAlign, ImageList, 
24109         ButtonSize, and Appearance.  Handles explicit button sizing quirks
24110         of the MS controls.  Things like flat toolbars ignoring button size
24111         but becoming constant sized at the largest button's size.  Normal
24112         toolbars with an image set cannot be shrunk smaller than the image,
24113         but text can be clipped/ignored.
24114         * ThemeWin32Classic.cs: don't draw text if text_rect height or width
24115         is zero.  Seems like DrawString should be smart enough to not put
24116         anything on screen though. Also trim labels and ellipsize at the char
24117         boundary, not word.
24118         Fixes #78711 and #78483.
24119
24120 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
24121
24122         * FolderBrowserDialog.cs: Disable "New Folder" button and
24123           "New Folder" contextmenu menuitem if a folder like "My Computer"
24124           is selected.
24125
24126 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
24127
24128         * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
24129         * FolderBrowserDialog.cs:
24130           - Use MWFConfig to store and read size and position settings
24131           - Added code to create a new folder (button or context menu).
24132             Use TreeView labeledit to change the name of the new folder.
24133
24134 2006-07-14  Jackson Harper  <jackson@ximian.com>
24135
24136         * TreeView.cs: Raise the OnAfterLabelEdit event correctly.  Also,
24137         when the tree is scrolled we end editing.
24138
24139 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
24140
24141         * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
24142           Down arrows
24143
24144 2006-07-14  Jonathan Pobst  <monkey@ipobst.com> 
24145
24146         WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
24147         BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
24148         BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
24149         CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
24150         ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
24151         ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
24152         ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
24153         FormClosedEventHandler.cs, FormClosingEventArgs.cs,
24154         FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
24155         ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
24156         ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
24157         ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
24158         ListViewItemSelectionChangedEventHandler.cs,
24159         ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
24160         ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
24161         MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
24162         PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
24163         PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
24164         RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
24165         SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
24166         SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs, 
24167         TabControlCancelEventHandler.cs, TabControlEventArgs.cs, 
24168         TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
24169         TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
24170         ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
24171         ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
24172         TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
24173         TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
24174         TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
24175         WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
24176         WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
24177         WebBrowserNavigatingEventHandler.cs, 
24178         WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
24179
24180 2006-07-14  Jonathan Pobst  <monkey@ipobst.com>
24181
24182         MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
24183         RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
24184         SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
24185         TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
24186         ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
24187         ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
24188         ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
24189         ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
24190         ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
24191         ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
24192         ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
24193         ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
24194         TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
24195         WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
24196         ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
24197         AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
24198         BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
24199         ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
24200         FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
24201         HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
24202         ListViewItemStates.cs, MaskFormat.cs: Added
24203
24204 2006-07-13  Jonathan Chambers  <joncham@gmail.com>
24205
24206         * PropertyGridView.cs: Fix keyboard navigation of drop down.
24207         Patch from eno for bug 78558.
24208         
24209 2006-07-13  Jackson Harper  <jackson@ximian.com>
24210
24211         * TreeView.cs: When an edit is finished make sure that the
24212         selected node is visible.
24213         - When setting the top/bottom use the scrollbars is_visible, so
24214         everything will be set correctly even if the tree isn't visible
24215         yet.
24216
24217 2006-07-13  Jackson Harper  <jackson@ximian.com>
24218
24219         * ComboBox.cs: Revert the item->index part of my previous patch.
24220         * TreeView.cs: Use LostFocus instead of Leave for detecting when
24221         the edit box has lost focus (duh).
24222         - Just make the edit box not visible when we get return, that will
24223         take the focus, which will call EndEdit
24224         * TreeNode.cs When we start editing, notify the treeview.
24225
24226 2006-07-12  Jackson Harper  <jackson@ximian.com>
24227
24228         * ComboBox.cs: Clear out old items before setting the item list.
24229         This prevents databound controls from having their items added
24230         twice.
24231         - Switch the combobox to use indices whereever possible instead of
24232         using Item's.  This allows usto navigate through lists that have
24233         more then one item with the same string value (ie a, b, b, a).
24234         - Scroll the listboxes scrollbar when a non visible item is
24235         highlighted
24236         - Allow keypress to cycle through all the possible values. For
24237         example if you have b1, b2, b3 and hold down the B key all the
24238         values will be cycled through.
24239         
24240 2006-07-12  Jackson Harper  <jackson@ximian.com>
24241
24242         * TextBoxBase.cs:
24243         * ListView.cs: Don't need to override SETFOCUS anymore, we can do
24244         this using the internal methods.
24245         * Control.cs: Add OnGotFocusInternal.  A new method that allows
24246         controls to "override" OnGotFocus and change focus behavior if
24247         needed.
24248         - Same thing for LostFocus
24249         * ComboBox.cs: Pass off focus to the text control properly.
24250
24251 2006-07-12  Alexander Olk  <alex.olk@googlemail.com>
24252
24253         * FileDialog.cs: Added GetFoldersOnly to MWFVFS
24254         * FolderBrowserDialog.cs: Almost a complete rewrite.
24255           - Better support for Environment.Specialfolders
24256           - Added support for MWFVFS
24257           - Made setting SelectedPath work
24258
24259 2006-07-12  Jackson Harper  <jackson@ximian.com>
24260
24261         * Control.cs: Optimze getting all the controls.
24262
24263 2006-07-11  Jackson Harper  <jackson@ximian.com>
24264
24265         * ContainerControl.cs: Override SETFOCUS in the container control,
24266         so that it is not selected on mouse click.
24267
24268 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com> 
24269
24270         * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel. 
24271           Hopefully we will have a better way once all of focus is complete.
24272
24273 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com>
24274
24275         * ThemeWin32Classic.cs: Commented out some debug code and fixed
24276           a compile error with csc.
24277
24278 2006-07-11  Jackson Harper  <jackson@ximian.com>
24279
24280         * Control.cs: When hiding a control only select the next control
24281         if the current control was focused.
24282         - Don't handle enter/leave when setting/killing focus, this is
24283         done by the container control.
24284         - Remove is_selected, it's not needed anymore.
24285         - Add utility methods for selecting a child control, and for
24286         firing the Enter/Leave events.
24287         * ContainerControl.cs: When a control is activated fire the
24288         enter/leave events.
24289         - Don't wrap when processing the tab key, so that focus can be
24290         moved outside of the container.
24291         - Use the correct active control
24292
24293 2006-07-11  Jackson Harper  <jackson@ximian.com>
24294
24295         * ComboBox.cs: Remove some debug code that was blinding me.
24296         * UpDownBase.cs: These controls actually aren't implicit, they are
24297         visible to the user.
24298
24299 2006-07-10  Chris Toshok  <toshok@ximian.com>
24300
24301         * DataGrid.cs: move back to the is_adding boolean field.  god i
24302         hate this is_editing/is_adding/is_changing stuff.
24303
24304 2006-07-10  Chris Toshok  <toshok@ximian.com>
24305
24306         * DataGridTableStyle.cs: just check if the property type is bool.
24307         if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
24308         Don't use CanRenderType.
24309
24310         * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
24311         if our text == NullText.  Remove CanRenderType.
24312
24313         * DataGridBoolColumn.cs: nuke CanRenderType.
24314
24315         * DataGrid.cs: reenable some code to end the current edit inside
24316         of set_CurrentCell.  This fixes the other 1.1.16 regression.
24317         Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
24318         Also, remove the visible_row_count arg from CalcRowHeaders, since
24319         we don't need to worry about the actual height of the area.
24320
24321 2006-07-10  Chris Toshok  <toshok@ximian.com>
24322
24323         * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
24324         mode, just return.
24325
24326         * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
24327         the real sense of the IsInEditOrNavigateMode property (true =
24328         navigate, false = edit).  Also, update OnKeyPress to reflect this.
24329
24330         * DataGridTableStyle.cs (CreateColumnsForTable): even if the
24331         column style exists, we still need to set its property descriptor
24332         to match up with our list manager.
24333
24334 2006-07-10  Chris Toshok  <toshok@ximian.com>
24335
24336         * ThemeWin32Classic.cs: implement the new row/header painting
24337         approach.  The parent row painting will likely go away and
24338         replaced with label controls, but the rest seems to work ok (and
24339         efficiently).
24340
24341         * Theme.cs: change the way we draw datagrid rows.  we don't draw
24342         the row headers as a block now.  Instead we draw them in the
24343         normal draw-row loop.  Add some calls for drawing parent rows and
24344         relation rows.
24345
24346         * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
24347         a default table style.  Set the defaults from ThemeEngine.Current,
24348         not SystemColors.  Fix lots of misc issues with property setters.
24349
24350         * DataGrid.cs: move loads of style information out of this class
24351         as it's being duplicated with DataGridTableStyle.  keep track of a
24352         special DataGridTableStyle for the properties we used to mirror
24353         here.  Switch all the style properties to access this table style
24354         instead of instance fields of this class.  Also add a internal
24355         class to represent parent rows (more needs to be stored here, like
24356         the selection state from the parent table, as well as the
24357         expansion state.)  Also, for datasources with relations, do the
24358         right thing for collapse/expand, and add support for the
24359         navigation/parent row buttons.
24360
24361         Lastly, fix the crash in the 1.1.16 build.
24362
24363         * GridTableStylesCollection.cs: make the explicit interface
24364         implementations call the class's methods as opposed to duplicating
24365         them.
24366
24367         * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
24368         0 so the text doesn't jump around when we move the cursor.
24369
24370 2006-07-10  Jackson Harper  <jackson@ximian.com>
24371
24372         * TextBoxBase.cs:
24373         * ListBox.cs: Match MS's ToString (this makes debugging focus
24374         stuff infinitely easier).
24375
24376 2006-07-10  Jackson Harper  <jackson@ximian.com>
24377
24378         * Control.cs (SelectNextControl): When checking the control's
24379         parent use this instead of ctrl.parent so that null can be passed
24380         to SelectNextControl. (I have unit tests for this).
24381         - Remove unused var.
24382
24383 2006-07-10  Chris Toshok  <toshok@ximian.com>
24384
24385         * CurrencyManager.cs: correct one regression, the removal of the
24386         finalType field.  Also, add a MonoTODO on CanAddRows, implement
24387         Refresh() correctly, and fix some event emission in
24388         ListChangedHandler.
24389
24390 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
24391
24392         * FileDialog.cs: Don't use brackets for new folders if they exist
24393           under *nix. Instead use -(number of existing folders +1).
24394
24395 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
24396
24397         * FileDialog.cs:
24398           - Fixed really nasty bug #78771
24399           - Don't block the whole GUI when reading directories with a lot of
24400             entries. Use an other thread instead and call BeginInvoke to
24401             update the ListView in MWFFileView
24402
24403 2006-07-07  Chris Toshok  <toshok@ximian.com>
24404
24405         * Control.cs (Dispose): release any Capture when disposing.
24406
24407 2006-07-07  Chris Toshok  <toshok@ximian.com>
24408
24409         * LinkLabel.cs (Select): if we chain up to the parent, set
24410         focused_index to -1 so we'll search for the first available link
24411         the next time the user tabs into us.  Also, if the direction is
24412         backward and focused_index == -1, start the search from the last
24413         element.
24414
24415 2006-07-07  Chris Toshok  <toshok@ximian.com>
24416
24417         * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
24418         is beyond the end of the text, don't do anything.
24419         (CreateLinkPieces): set our ControlStyles.Selectable based on
24420         whether or not we have any links.
24421         (Link.Invalidate): use a loop instead of foreach.
24422         (Link.set_Start): null out owner.sorted_links so it'll be
24423         recreated by CreateLinkPieces.
24424
24425 2006-07-06  Chris Toshok  <toshok@ximian.com>
24426
24427         * LinkLabel.cs: revert the SetStyle change.
24428
24429 2006-07-06  Chris Toshok  <toshok@ximian.com>
24430
24431         * LinkLabel.cs (.ctor): SetStyle Selectable to true.
24432         (OnEnableChanged): s/Refresh/Invalidate
24433         (OnGotFocus): if we have a focused index already, refocus it (so
24434         if we mouse out/in to the window it'll focus the right link).
24435         (OnKeyDown): move the tab handling out of here.
24436         (OnLostFocus): don't set focused_index to -1, so we can refocus it
24437         when we lose focus.
24438         (OnMouseDown): don't Capture here - Control handles it.  Also,
24439         focus the active link.
24440         (OnMouseUp): don't deal with Capture.
24441         (OnPaintBackgroundInternal): remove.
24442         (OnTextAlignChanged): CreateLinkPieces before calling the
24443         superclass's method.
24444         (OnTextChanged): call CreateLinkPieces before calling superclass's
24445         method.
24446         (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
24447         move around.
24448         (Select): implement this, moving the selection between different
24449         links, and call parent.SelectNextControl if we don't have another
24450         link to focus in the given direction.
24451         (CreateLinkPieces): call Invalidate instead of Refresh.
24452         
24453 2006-07-06  Chris Toshok  <toshok@ximian.com>
24454
24455         * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
24456         new LinkLabel internals.
24457
24458         * LinkLabel.cs: fairly major rewrite.  get rid of all the loops
24459         over pieces looking for active/focused/etc links.  also, deal with
24460         runs of text (and links) with embedded \n's in them, and use
24461         MeasureCharacterRanges instead of MeasureString to figure out the
24462         regions text occupies.  Lastly, do the usual s/Refresh/Invalidate
24463         two-step.
24464
24465 2006-07-04  Jackson Harper  <jackson@ximian.com>
24466
24467         * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
24468         XKB or key auto repeat, do it manually.  Without key auto repeat,
24469         when a key is held down we get key press, key release, key press,
24470         key release, ... with auto repeat we get key press, key press, key
24471         press ..., and then a release when the key is actually released.
24472
24473 2006-07-03  Jackson Harper  <jackson@ximian.com>
24474
24475         * TabControl.cs:
24476         * ThemeWin32Classic.cs: Tabs do not obey normal background color
24477         rules, they are always control color regardless of the background
24478         color.
24479
24480 2006-07-02  Alexander Olk  <alex.olk@googlemail.com>
24481
24482         * FileDialog.cs: Added internal class MWFConfig.
24483           Removed Registry support and replaced it with support for the new
24484           MWFConfig class. See MWFConfig comments for more information.
24485
24486 2006-06-30  Alexander Olk  <alex.olk@googlemail.com>
24487
24488         * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
24489           rectangle. Added some patches from eno from bug #78490 and fixed
24490           the arrow position for small up and down CPDrawScrollButtons.
24491
24492 2006-06-30  Jackson Harper  <jackson@ximian.com>
24493
24494         * InternalWindowManager.cs: Remove some debug code.
24495         * Form.cs: When an MdiParent is set to null, the window is
24496         "detatched" and becomes a normal window.
24497         * MdiClient.cs: Don't bring the new child form to the front until
24498         it is activated (setting it as active does this), this makes the
24499         previously active forms titlebar get redrawn as inactive.
24500
24501 2006-06-29  Peter Dennis Bartok  <pbartok@novell.com>
24502
24503         * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
24504           with later controls
24505
24506 2006-06-29  Mike Kestner  <mkestner@novell.com>
24507
24508         * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
24509         arrow in keynav state.  Fixes #78682.
24510
24511 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
24512
24513         * PrintDialog.cs: Reorder, relayout, remove extra code, set tab 
24514           order (fixes #78393)
24515
24516 2006-06-28  Jonathan Pobst  <monkey@ipobst.com>
24517
24518         * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs, 
24519           ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
24520           ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
24521           FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
24522           GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
24523           ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs, 
24524           PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
24525           Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
24526           TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
24527           ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
24528           enumerations (FlagsAttribute, SerializableAttribute, added/removed
24529           values)
24530
24531 2006-06-28  Mike Kestner  <mkestner@novell.com>
24532
24533         * ComboBox.cs: implement scroll wheel support. Fixes #78360.
24534
24535 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
24536
24537         * PropertyGrid.cs,
24538           PropertyGridTextBox.cs : explicitly set BackColor to differentiate
24539           item lines from other area (It also makes BackColor consistent and
24540           compatible with .NET). Fixed bug #78564.
24541
24542 2006-06-28  Jonathan Chambers  <jonathan.chambers@ansys.com>
24543
24544         * PropertyGrid.cs: refresh toolbar when PropertySort is set.
24545         Patch from Eno for #78555.
24546
24547 2006-06-27  Chris Toshok  <toshok@ximian.com>
24548
24549         * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
24550
24551         * DataGridColumnStyle.cs: same.
24552
24553         * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
24554         
24555         * DataGridDrawingLogic.cs: nuke.
24556
24557 2006-06-27  Chris Toshok  <toshok@ximian.com>
24558
24559         * DataGridTableStyle.cs: clean up the constructors, and build the
24560         list of child relations for this table.  I have no idea if this is
24561         where we should be doing it (it probably isn't), but since we're
24562         already iterating over the properties..
24563
24564         * DataGrid.cs: add row resizing.  for now we add a DataGridRow
24565         struct and array for keeping track of row information, similar to
24566         what's shown in a hack on
24567         http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
24568
24569         * Theme.cs: be consistent about the naming of DataGrid methods,
24570         prefering ColumnWidths and RowHeights over columnsWidths and
24571         RowsHeights.
24572
24573         * ThemeWin32Classic.cs: same, and also add support for variable
24574         sized rows (and the +/- expansion icons for related rows).
24575
24576 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
24577
24578         * TextBoxBase.cs: Applied Eno's patch from #78660
24579
24580 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
24581
24582         * Form.cs (ScaleCore): We don't want to scale our form if it's
24583           state is minimized or maximized, but we still need to scale our
24584           child windows. Also, added try/finally block to ensure layout
24585           gets reset (Fixes #78697)
24586
24587 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
24588
24589         * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
24590
24591 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
24592
24593         * Form.cs: Fixed c+p error and added check to resize form if minimum
24594           size is bigger than current size (Fixes #78709)
24595
24596 2006-06-26  Peter Dennis Bartok  <pbartok@novell.com> 
24597
24598         * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
24599
24600 2006-06-26  Mike Kestner  <mkestner@novell.com>
24601
24602         * ComboBox.cs: only do Keypress handling in the combo when there  
24603         are items in the collection. Fixes #78710.
24604
24605 2006-06-26  Chris Toshok  <toshok@ximian.com>
24606
24607         * Binding.cs: make this work bi-directionally.  also, clear up
24608         other mixups between Push/Pull Data (e.g. we're supposed to pull
24609         data when validating).
24610
24611         * BindingManagerBase.cs: trim some fully qualified collection
24612         types.
24613
24614         * PropertyManager.cs (get_IsSuspended): oops, fix this check.
24615
24616 2006-06-23  Chris Toshok  <toshok@ximian.com>
24617
24618         * PropertyManager.cs: It appears (according to the unit tests)
24619         that PropertyManager doesn't use
24620         PropertyDescriptor.AddValueChanged to track propery value changes
24621         in its datasource, but uses the same scheme as Binding, where it
24622         looks for a <Property>Changed event and binds to it.
24623
24624         Also, according to the docs, IsSuspended always returns false for
24625         a property manager with a non-null datasource.
24626
24627 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com> 
24628
24629         * Form.cs: (ShowDialog): If we're returning a forced cancel we still
24630           need to update the actual DialogResult. (Fixes #78613)
24631
24632 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com>
24633
24634         * Form.cs (ShowDialog): Release any captures before running the
24635           new message pump (fixes #78680)
24636
24637 2006-06-22  Mike Kestner  <mkestner@novell.com>
24638
24639         * ListView.cs: Layout column widths properly in details mode even 
24640         if HeaderStyle.None is set.  Fixes #78691.
24641
24642 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com>
24643
24644         * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
24645
24646 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com> 
24647
24648         * Control.cs (ContainsFocus): Using new driver method to get focused
24649           window, instead of trying to use internal tracking var, which can
24650           recursion issues (Fixes #78685)
24651         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
24652           XplatUIWin32.cs: Added GetFocus method to return focused window
24653
24654 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24655
24656         * ColorDialog.cs: when the mouse button is pressed inside the color
24657         matrix, don't let the cursor move out of it until the button is
24658         released, which is the behavior on windows. Changed 'colours' by
24659         'colors' to use the same word consistently.
24660
24661 2006-06-21  Chris Toshok  <toshok@ximian.com>
24662
24663         * DataGrid.cs: add in some basic navigation stuff (navigating to a
24664         child relation and back, using a stack).  Also, remove
24665         GetDataSource and the code that calls it - it's not needed.  Also,
24666         track CurrencyManager.ListName's removal.
24667
24668 2006-06-21  Chris Toshok  <toshok@ximian.com>
24669
24670         * CurrencyManager.cs: push some of the original type checking from
24671         BindingContext.CreateBindingManager to here, and remove some of
24672         the finalType stuff.  Need more tests to make sure I've got the
24673         ListName part right, and we might need more in SetDataSource.
24674
24675         * PropertyManager.cs: add a ctor that takes just the datasource,
24676         and no property name.  Make SetDataSource work with a null
24677         property_name, and make Current return the data_source if the
24678         property descriptor is null.  this makes 'string foo = "hi";
24679         BindingContext[foo].Current' return "hi" as it should.
24680
24681         * RelatedCurrencyManager.cs: make this code more generic - there's
24682         no reason the parent manager has to be CurrencyManager, and
24683         there's no reason to pass the DataRelation.  It suffices to use a
24684         BindingManagerBase and PropetyDescriptor.
24685
24686         * RelatedPropertyManager.cs: make a similar change here.
24687         
24688         * BindingContext.cs: make CreateBindingManager the beautiful, tiny
24689         flower I knew it could be.
24690
24691 2006-06-20  Chris Toshok  <toshok@ximian.com>
24692
24693         * PropertyManager.cs: the PropertyChangedHandler is invoked when
24694         data in the source has changed and we need to update the control,
24695         so s/PullData/PushData.
24696
24697         * CurrencyManager.cs: Refresh is meant to update the control from
24698         data in the datasource.  So, s/PullData/PushData.
24699
24700         * BindingContext.cs: add more ugliness (we weren't handling the
24701         case where data_source = DataTable and data_member = column_name).
24702
24703         * Binding.cs: fix PushData/PullData mixup.  Both are interpreted
24704         from the perspective of the datasource.  PullData pulls from the
24705         control, PushData pushes to the control.
24706
24707 2006-06-20  Chris Toshok  <toshok@ximian.com>
24708
24709         * BindingContext.cs: rewrite the CreateBindingManager code to
24710         handle navigation paths more or less properly.  This could
24711         definitely stand some more work, in particular to push the
24712         recursion up to the toplevel.  But that relies on fixes in other
24713         places (System.Data comes to mind).
24714
24715         Also, move to a flat hashtable (and encode the twolevel nature of
24716         the dictionary into the hash key).  This lets us implement the
24717         IEnumerable.GetEnumerator method.
24718
24719         * RelatedCurrencyManager.cs: new class.  Update our view based on
24720         our relation and our parent CurrencyManager's position.
24721
24722         * CurrencyManager.cs: split out some logic from the ctor into
24723         SetView, so it can be called from the new RelatedCurrencyManager
24724         subclass.
24725
24726         * RelatedPropertyManager.cs: new class.  Update our datasource
24727         based on the position of our parent CurrencyManager.
24728
24729         * PropertyManager.cs: split out some logic from the ctor into
24730         SetDataSource, so it can be called from the new RelatedDataSource
24731         subclass.  Also, make the Current getter return the value
24732         of the PropertyDescriptor, not the data_source.
24733
24734         * Binding.cs: no need to duplicate the string splitting code here.
24735
24736 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
24737
24738         * Control.cs:
24739           - set_Enabled: OnEnabledChanged is not called if the inherited state 
24740             of the control is not altered, even though  we might be changing the
24741             internal state of the control (#78458)
24742           - set_Enabled: (Re)Moved the enabling/disabling of the window to 
24743             OnEnabledChanged, to allow easy altering of any child window state
24744           - OnEnabledChanged: Added code to enable/disable driver window state
24745           - OnParentEnabledChanged: Instead of firing the event, call 
24746             OnEnabledChanged, which will fire the event and also a) set driver
24747             window state and pass the enabled state to any grandchildren (#78458)
24748
24749 2006-06-19  Jackson Harper  <jackson@ximian.com>
24750
24751         * InternalWindowManager.cs: We don't set the cursor explicitly
24752         thats done via the response to NCHITTESTs.
24753         - Don't need to adjust for titlebar heights anymore, the
24754         coordinates are coming in the correct coordinates now (see peters
24755         last patch).
24756
24757
24758 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
24759
24760         * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
24761           being translated relative to whole window, instead of client window.
24762           That caused broken offsets on mouseclick (and caused gas for our
24763           InternalWindowManager)
24764
24765 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
24766
24767         * TextControl.cs:
24768           - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
24769           - Undo(): Added replay of cursor move on DeleteChars action; added
24770             calling Undo() again if a recorded cursor move is invalid (to
24771             ensure that some action is performed on Undo)
24772         * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
24773
24774 2006-06-16  Jackson Harper  <jackson@ximian.com>
24775
24776         * MdiClient.cs: Instead of just sizing maximized windows when
24777         there is a resize we also have to adjust the Y of minimized
24778         windows, so they stay pinned to the bottom of the mdi container.
24779         - Eliminate separate tracking of the active control, we can just
24780         get this from the controls collection.
24781         - Paint the decorations for the newly activated titlebar so we get
24782         a pretty blue bar.
24783         * InternalWindowManager.cs:
24784         * ThemeWin32Classic.cs: Minimized windows get all three buttons
24785         even if they are a tool window.
24786         
24787 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
24788
24789         * TextControl.cs (Undo): Handle non-existent cursor locations in the
24790           undo buffer, these can happen when text was deleted and the cursor
24791           was recorded first. Since we will also have a recorded cursor
24792           after the delete this is not an issue. (Fixes #78651)
24793
24794 2006-06-14  Peter Dennis Bartok  <pbartok@novell.com> 
24795
24796         * AccessibleObject.cs: Remove dependence on Control.is_selected;
24797           instead properly track control states internally (allows us to
24798           remove is_selected from Control)
24799
24800 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24801
24802         * ImageListStreamer.cs: correctly generate the 1bpp mask for images
24803         whose width is not a multiple of 8.
24804
24805 2006-06-13  Jackson Harper  <jackson@ximian.com>
24806
24807         * MdiClient.cs:  Only maximize the next child if the current one
24808         is maximized.
24809
24810 2006-06-13  Chris Toshok  <toshok@ximian.com>
24811
24812         * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
24813         modified.  Also, guard against grid or grid_drawing being null in
24814         Invalidate.
24815
24816         * DataGrid.cs: Reformat tons of getters/setters.  In the
24817         DataMember setter, just call SetNewDataSource instead of
24818         duplicating some of its functionality.  In SetNewDataSource, don't
24819         check ListManager for null, since the property getter creates the
24820         object if needed.
24821
24822         * DataGridTableStyle.cs: don't set TableStyle or call
24823         SetDataGridInternal on the column here, it's done in
24824         GridColumnStylesCollection.Add.
24825
24826         * GridColumnStylesCollection.cs: fix all the explicit interface
24827         implementations to just call our methods.  Nuke AddInternal() and
24828         move the body of it to Add().  Also, add a call to
24829         column.SetDataGridInternal to Add().
24830
24831         * DataGridTextBoxColumn.cs (.ctors): call this() instead of
24832         base()+duplicate code.  Also, use the Format property instead of
24833         format to generate an Invalidate ala MS.  Lastly, create the
24834         textbox here, unconditionally.
24835         (set_Format): call Invalidate.
24836         (get_TextBox): no need to call EnsureTextBox.
24837         (Commit): remove the message box.
24838         (Edit) remove the call to EnsureTextBox.
24839         (EndEdit): call HideEditBox instead of ReleaseHostedControl.
24840         (EnterNullValue): no need to check textbox for null.
24841         (HideEditBox): no need to check textbox for null.
24842         (SetDataGridInColumn): add the textbox to the grid's controls.
24843         (EnsureTextBox): nuke.
24844         
24845 2006-06-13  Jackson Harper  <jackson@ximian.com>
24846
24847         * MdiWindowManager.cs: Hook up to the maximized menus paint event
24848         and redraw the buttons when needed. Unhook when the window is
24849         unmaximized.
24850         * MainMenu.cs: Add an internal Paint event, the mdi window manager
24851         needs this so that it can redraw its buttons when the menu is
24852         repainted.
24853         * InternalWindowManager.cs:
24854         * Form.cs: The method order has changed for DrawMaximizedButtons,
24855         so that it can be a PaintEventHandler.
24856         
24857 2006-06-13  Jackson Harper  <jackson@ximian.com>
24858
24859         * MdiClient.cs: When we close a maximized mdi window, the next mdi
24860         window is activated and maximized, even if it wasn't before.
24861         - When  a new window is activated repaint the decorations of the
24862         old one, so that it no longer has the Active "look" (the blue
24863         titlebar).
24864         * InternalWindowManager.cs: Open up CreateButtons to base classes
24865         so they can recreate the buttons on state changes.
24866         - If a window is maximized give it all three buttons
24867         * MdiWindowManager.cs: Create the titlebar buttons when the state
24868         is changed, this is needed because a toolwindow will not have all
24869         three buttons until it is maximized.
24870
24871 2006-06-13  Atsushi Enomoto  <atsushi@ximian.com>
24872
24873         * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
24874           Fixed bug #78609.
24875
24876 2006-06-12  Jackson Harper  <jackson@ximian.com>
24877
24878         * KeysConverter.cs: Make sure we handle the Ctrl special case
24879         if its the only key.
24880         
24881 2006-06-12  Jackson Harper  <jackson@ximian.com>
24882
24883         * Theme.cs: Add a method to get the size of a managed window
24884         toolbar button.
24885         * InternalWindowManager.cs: Remove the ButtonSize property, this
24886         should be retrieved from the theme.
24887         * MdiWindowManager.cs: Get the button size from the theme
24888         * ThemeWin32Classic.cs: Make the method to get the managed window
24889         titlebar button size public.
24890         - Handle the different button sizes of maximized toolwindows
24891         (should match any maximized window).
24892         - Get the titlebar height from the theme, not the WM (which gets
24893         it from the theme).
24894
24895 2006-06-12  Jackson Harper  <jackson@ximian.com>
24896
24897         * InternalWindowManager.cs: Handle NC Double Clicks, passing the
24898         event down to the mdi window manager.
24899         - Expose some extra stuff to base classes
24900         - Make sure to end the Capture on an NC Mouse up, so that we can
24901         get double clicks properly, and the sizing doens't stick.
24902         - When doing PointToClient contain it in the workable desktop
24903         area, this prevents windows from changing size when the cursor is
24904         pulled outside of the working area while sizing.
24905         * MdiWindowManager.cs: When we get a double click maximize the
24906         window.
24907         - Reset the cursor after handling mode changes.
24908
24909 2006-06-12  Peter Dennis Bartok  <pbartok@novell.com> 
24910
24911         * XplatUIX11.cs (WorkingArea): Read the actual workarea for the 
24912           current desktop, instead of just assuming a 0, 0 origin. This
24913           is needed for our internal window manager, to know the top
24914           margin of the desktop
24915
24916 2006-06-12  Chris Toshok  <toshok@ximian.com>
24917
24918         * DataGrid.cs (set_CurrentCell): concede focus as we move around.
24919         we need this to get rid of the selected background in the bool
24920         column.
24921         (CancelEditing): move the ConcedeFocus call to above the Abort
24922         call.  Also, set is_changing to false and invalidate the row
24923         header if we were changing before.
24924         (ProcessKeyPreviewInternal): remove, since noone outside this
24925         class calls it anymore.  Roll the code into ProcessKeyPreview.
24926         (EndEdit): remove the internal version.
24927         (InvalidateCurrentRowHeader): make private.
24928
24929         * DataGridBoolColumn.cs: simplify this class a bunch.  remove the
24930         Keys.Escape handling (and with it the last call to
24931         DataGrid.EndEdit from outside the class.)
24932
24933
24934 2006-06-12  Chris Toshok  <toshok@ximian.com>
24935
24936         * DataGridTextBox.cs (.ctor): isedit defaults to false.
24937         (OnKeyPress): set isedit to true.
24938         (ProcessKeyMessage): remove Keys.Enter handling from here.  it's
24939         already handled by the grid.
24940
24941         * DataGrid.cs (set_CurrentCell): more work here.  it's still not
24942         right.  ugh.
24943         (set_DataSource): SetDataSource always returns true, so stop
24944         putting it in an if statement.
24945         (EndEdit): get rid of some {}'s
24946         (ProcessGridKey): return true in case Keys.Escape.
24947         (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
24948         (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
24949         PositionChanged, stopped connecting to CurrentChanged.
24950         (GetDataSource): simplify this a bunch.
24951         (SetDataSource): change return type from bool to void.
24952         (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
24953         to this, and make sure we don't set ListManager.Position inside
24954         set_CurrentCell.
24955         (OnListManagerItemChanged): if we're passed an actual index,
24956         redraw that row.
24957
24958         * CurrencyManager.cs (set_Position): don't call PullData here.
24959
24960 2006-06-09  Jackson Harper  <jackson@ximian.com>
24961
24962         * TreeNode.cs:  Recalculate the visible order before doing the
24963         Expand/Collapse Below calls, because those calls generate an
24964         expose.
24965         - Reduce calls to the TreeView property, which is mildly expensive
24966         by using a local var.
24967         * Form.cs: Layout the MDI child windows when creating the parent
24968         form.
24969         - Don't use the internal constructor anymore
24970         * MdiClient.cs: use the parent form width/height (if available)
24971         when laying out the child windows, we do this because the
24972         mdiclient isn't docked yet when the initial layout is done.
24973         - Don't need an internal constructor anymore.
24974
24975 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24976
24977         * FileDialog.cs: handle access errors when trying to create a folder
24978         or changing to a directory. No need to initialize out parameters.
24979
24980 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
24981
24982         * FileDialog.cs: Append a number when creating a new folder if the
24983           folder already exists (use parenthesis instead of square brackets)
24984
24985 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
24986
24987         * FileDialog.cs:
24988           - Disabled registry support for windows and added better registry
24989             error checking for other systems (need to investigate why it
24990             works perfectly on my system)
24991           - If a folder already exist show an error MessageBox instead of
24992             trying to create an indexed name.
24993           - Fixed a non intentional typo.
24994
24995 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24996
24997         * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
24998
24999 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
25000
25001         * FileDialog.cs: When creating a new folder don't crash if the
25002           folder already exists.
25003
25004 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
25005
25006         * FileDialog.cs: Allmost a complete rewrite.
25007           - added a "virtual" file system that handles the differences
25008             between unix and windows file systems (especially the directory
25009             structure). Moved most of the directory and file handling code
25010             into the vfs.
25011             Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
25012             UnixFileSystem and FSEntry.
25013           - Recently used folder/directory, size, location and used file names
25014             (file name ComboBox) are now stored in the registry and get read
25015             before the dialog shows up (fixes part 6 of bug #78446).
25016           - Creation of new folders/directories is now possible (context menu
25017             or ToolBar). Added TextEntryDialog for this that fills in the gap
25018             until ListView.LabelEdit works.
25019           - Fixed cursor handling (bug #78527) and focus handling for
25020             PopupButtonPanel
25021           - Various "Search in" ComboBox enhancements. The content of the
25022             dropdown listbox now almost matches ms.
25023           - Changed the behaviour when the user switches to SpecialFolder
25024             Recent to show the ListView in View.Details.
25025           - Beside using the ToolBar to change the View property of the
25026             file ListView it is now possible to use the context menu too.
25027
25028 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
25029
25030         * ComboBox.cs: Don't create a new ObjectCollection when an item
25031           gets inserted. Just insert the item in the existing object_items
25032           ArrayList.
25033
25034 2006-06-08  Jackson Harper  <jackson@ximian.com>
25035
25036         * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
25037         that the treeview and root node checks are done also, this fixes a
25038         regression i caused in the unit tests.
25039
25040 2006-06-07  Wade Berrier <wberrier@novell.com> 
25041
25042         * RichTextBox.cs: More ISO8859-1 -> unicode
25043
25044 2006-06-07  Mike Kestner  <mkestner@novell.com>
25045
25046         * ComboBox.cs : use items to hold highlight/selection so that
25047         collection insertions don't require synchronization.
25048
25049 2006-06-07  Jackson Harper  <jackson@ximian.com>
25050
25051         * InternalWindowManager.cs: Simplify (and FIX) the window sizing
25052         routine.  We now always keep the sized edge at the cursor instead
25053         of computing movement and adjusting rects.  There is one buglet
25054         with this method though when the cursor is moved over area that
25055         the window can not expand too (such as the toolbars on the desktop).
25056
25057 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25058
25059         * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
25060         here. Fixes crash on startup in AlbumSurfer.
25061
25062 2006-06-07  Peter Dennis Bartok  <pbartok@novell.com> 
25063
25064         * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
25065           values
25066
25067 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25068
25069         * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
25070         statement to avoid calling XNextEvent which will block if another thread
25071         took the event that we were expecting. Fixes bug #78605.
25072
25073 2006-06-07  Mike Kestner  <mkestner@novell.com>
25074
25075         * ListView.cs : isolated checkbox clicking from the selection logic.
25076         Toggle check state on item doubleclicks.  Really fixes #78454 part2.
25077
25078 2006-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
25079
25080         * Form.cs: Check that the value passed to Form.DialogResult
25081         is a valid enum value.
25082
25083 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25084
25085         * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
25086         Computer'. Clicking it in the network view goes to 'My Computer'.
25087         Added CIFS filesystem type. Display the mount point of filesystems.
25088         Avoid duplicate mount points (happens for me with CIFS);
25089
25090 2006-06-06  Jackson Harper  <jackson@ximian.com>
25091
25092         * InternalWindowManager.cs: Draw the maximized windows buttons
25093         when resizing.
25094
25095 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25096
25097         * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
25098         all other dialogs. Fixes bug #78585.
25099
25100 2006-06-06  Mike Kestner  <mkestner@novell.com>
25101
25102         * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
25103         Only invalidate checkbox on checkstate changes to avoid flicker.
25104         * ListBox.cs : avoid unselect/select when clicking selected item.
25105         avoid reselection flicker for already multiselected items.
25106         Fixes #78382.
25107
25108 2006-06-06  Jackson Harper  <jackson@ximian.com>
25109
25110         * MdiWindowManager.cs: When the window is closed do an NCRecalc on
25111         the parent form so that the menu is removed if needed.
25112
25113 2006-06-06  Mike Kestner  <mkestner@novell.com>
25114
25115         * ListBox.cs : add ScrollWindow call to UpdateTopItem.  fix
25116         Prev/Next/PrevPage/NextPage/Home/End index calculation.  Fixes #78559.
25117
25118 2006-06-06  Mike Kestner  <mkestner@novell.com>
25119
25120         * CheckedListBox.cs : rebuild check collection on Add.  Fixes #78426.
25121
25122
25123 2006-06-06  Jackson Harper  <jackson@ximian.com>
25124
25125         * Control.cs: Use the property (instead of the field) to get the
25126         default cursor so it is instantiated correctly.
25127         * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
25128         resizes so we need to manually repaint the window decorations here.
25129         - Set the titlebar button locations as soon as they are created,
25130         otherwise they are not set correctly on win32.
25131         
25132 2006-06-06  Chris Toshok  <toshok@ximian.com>
25133
25134         * CurrencyManager.cs (set_Position): call PullData before
25135         OnCurrentChanged.
25136         (AddNew): after calling IBindingList.AddNew, update our
25137         listposition, and call OnCurrentChanged/OnPositionChanged (without
25138         calling PullData).
25139         (OnCurrentChanged): remove the call to PullData from here.
25140         (OnItemChanged): remove the call to PushData from here.
25141         (OnPositionChanged): change the test from == null to != null to
25142         match the other methods.
25143         (ListChangedHandler): the grossest part of the patch.  Implement
25144         this such that it passes the unit tests in CurrencyManagerTest and
25145         the output more or less matches that of MS's implementation.
25146  
25147 2006-06-06  Mike Kestner  <mkestner@novell.com>
25148
25149         * ListView.cs : only update check state on single click.
25150         * ThemeWin32Classic.cs : fix focus drawing for details view without
25151         fullrowselect.  Fixes #78454.
25152         * XplatUIX11.cs : fix for double click emission.
25153
25154 2006-06-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
25155
25156         * PropertyGridView.cs : Applied Atsushi's patch to fix
25157         font dialog bug  (#78197).
25158
25159 2006-06-05  Jackson Harper  <jackson@ximian.com>
25160
25161         * TreeNode.cs: Compute the next node for expanding/collapsing
25162         correctly. We now factor in nodes without a NextNode
25163         correctly. (Fixes somes cases in nunit-gui).
25164         * InternalWindowManager.cs: Set the bounds when updating the
25165         virtual position of a tool window.
25166         
25167 2006-06-05  Chris Toshok  <toshok@ximian.com>
25168
25169         * DataGrid.cs: rename cached_currencymgr to list_manager.
25170         (set_CurrentCell): move SetCurrentCell code here, and clean it up
25171         some.
25172         (CurrentRow, CurrentColumn): single accessors so we can make the
25173         cursor movement code a lot easier to understand.
25174         (CurrentRowIndex): implement this in terms of CurrentRow.
25175         (BeginEdit): clean this up a bit.
25176         (CancelEditing): sort out the is_editing/is_changing/is_adding
25177         stuff a little.
25178         (EndEdit): minor changes.
25179         (OnKeyDown): add a comment about a (most likely) unnecessary
25180         check.
25181         (OnMouseDown): cancel editing when we click on a row header.  And
25182         use the CurrentRow setter, not CurrentCell.
25183         (ProcessDialogKey): directly call ProcessGridKey.
25184         (UpdateSelectionAfterCursorMove): factor out this common block of
25185         code (it's used everywhere that we move the cursor by updating row
25186         or column).
25187         (ProcessGridKey): pretty substantial overhaul.  Use the
25188         CurrentRow/CurrentColumn properties to make the code a lot more
25189         readable.  Only use the CurrentCell property when we have to
25190         modify both row and column at once.  Tab behavior is still broken,
25191         and Delete is untested.
25192         (Select): if we have no selected rows, set selection_start to
25193         @row.
25194         (EditCurrentCell): rename EditCell this.  It was only ever invoked
25195         with CurrentCell as the arg, so drop the arg and rename it.
25196
25197         * DataGridColumnStyle.cs: clean up the constructors a little, and
25198         drop CommonConstructor().
25199
25200         * DataGridTextBox.cs (.ctor): set accepts_return to true so we
25201         actually get notified when the user hits it.
25202         (ProcessKeyMessage): *substantially* simplify this method.
25203         There's no reason (that I can see) for the textbox to be making
25204         calls into the datagrid at all.  Remove all of them but the ones
25205         for Enter handling.  those will take some more work.
25206
25207         * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
25208         calling HideEditBox.
25209         (HideEditBox): if we have an active textbox, render it invisible
25210         without causing a re-layout of the datagrid.
25211
25212 2006-06-05  Mike Kestner  <mkestner@novell.com>
25213
25214         * ListView.cs : fix NRE crasher when focuseditem is cleared by
25215         collection changes by resetting it to Items[0].  Fixes #78587.
25216
25217 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25218
25219         * MessageBox.cs: if the height of the text is larger than the icon_size,
25220         use that. Fixes bug #78575.
25221
25222 2006-06-05  Jackson Harper  <jackson@ximian.com>
25223
25224         * TreeView.cs: Fix line drawing when scrolling.  To do this each
25225         node is basically responsible for drawing its entire horizontal
25226         area.  When drawing a node it draws its parent node lines if
25227         needed.
25228         - Adjust the clip area to the viewport rectangle
25229         - Fix Left/Right key handling to match MS. (It expand/collapses
25230         and moves to parents/first child but does not move selection to
25231         sibling nodes).
25232         - Fix SetTop to work with new bound calculation code
25233         - When scrollbars are no longer needed we need to reset scrolling
25234         vars and recalculate the visible order so the redraw is correct
25235         * TreeNode.cs: We can't expand/collapse nodes with no children.
25236
25237 2006-06-03  John Luke  <john.luke@gmail.com> 
25238
25239         * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
25240         so the colors work without dev packages
25241         
25242 2006-06-02  Peter Dennis Bartok  <pbartok@novell.com> 
25243
25244         * Control.cs 
25245           - Select: Implemented to just use activate. Seems to match MS 
25246             behaviour closest. Documented to only do actual control walking 
25247             based on it's parameters if in a container control so I moved 
25248             the code there.
25249           - Removed selection check logic from our internal Select() method
25250         * ContainerControl.cs:
25251           - Select: Moved selection logic from Control here, since MS documents
25252             that containers obey the bool arguments. No longer calling base
25253
25254 2006-06-02  Jackson Harper  <jackson@ximian.com>
25255
25256         * TreeView.cs: If the selected node isn't changed when we get
25257         focus update the previously selected node so that we see the
25258         selection box.
25259
25260 2006-06-02  Mike Kestner  <mkestner@novell.com>
25261
25262         * ComboBox.cs: restructure grab and general mouse event handling.
25263         Make the composite control raise mouse events like it was a single
25264         control for leaves/enters/motion/up/down events.  fix dropdown list
25265         coordinate mangling and refactor it into the scrollbar subclass to
25266         reduce code duplication.  Fixes #78282 #78361 and #78457.
25267
25268 2006-06-02  Mike Kestner  <mkestner@novell.com>
25269
25270         * ScrollBar.cs: remove Capture setting/clearing, as it happens
25271         automatically in the Control.WndProc.
25272
25273 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25274
25275         * FileDialog.cs: fix crash when running SharpChess, which sets the
25276         FilterIndex to 2 with only one Filter.
25277
25278 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25279
25280         * ToolBar.cs: add SizeSpecified property.
25281         * ToolBarButton.cs: when the ButtonSize is calculated by the container,
25282         try to figure out our real size, otherwise fallback to what the
25283         container says.
25284
25285 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
25286
25287         * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
25288         * Control.cs (WndProc): MS always calls the DefWndProc to pass
25289           up the event
25290
25291 2006-06-01  Mike Kestner  <mkestner@novell.com>
25292
25293         * ListView.cs: revamp the focus management in ListView.  It still
25294         causes churn of LostFocus/GotFocus emissions on clicks, but it's
25295         better than not handling focus at all.  Will revisit when pdb feels
25296         the general focus handling is solid.  Fixes #78526.
25297
25298 2006-06-01  Jackson Harper  <jackson@ximian.com>
25299
25300         * TreeView.cs: Set the default border style in the constructor.
25301         - Move painting to use OnPaintInternal instead of capturing
25302         WM_PAINT, this is the correct way of doing things
25303         - UpdateBelow shouldn't invalidate the scrollbar area
25304         - Cap the top on update below in case the node was above the top
25305         of the viewport rectangle.
25306         - ExpandBelow and Collapse below need to obey Begin/End Update.
25307         * TreeNode.cs: Make is_expanded internal so the treenode
25308         collection can change it without firing the whole event chain.
25309         * TreeNodeCollection.cs: When clearing all the child nodes make
25310         sure to recalc the visible order.
25311         - Improve algo for remove the top node
25312
25313 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
25314
25315         * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
25316           SendMessage directly calling window procedures, which in turn might
25317           call SetFocus()
25318
25319 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com>
25320
25321         * Control.cs: Don't handle WM_SETFOCUS if the same window already
25322           has focus (works around X11 sending a FocusIn after our SetFocus)
25323         * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
25324
25325 2006-06-01  Alexander Olk  <alex.olk@googlemail.com>
25326
25327         * Mime.cs: Fix for the NET_2_0 build.
25328           NameValueCollection needs StringComparer now.
25329
25330 2006-05-31  Chris Toshok  <toshok@ximian.com>
25331
25332         * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
25333         return (via an out parameter) the starting X of the column.
25334         (UpdateVisibleColumn): track change to FromPixelToColumn.
25335         (HitTest): add a ColumnResize case here.
25336         (DrawResizeLine): new function, probably poorly named.
25337
25338         * DataGrid.cs (.ctor): get rid of cached_currencymgr_events.  We
25339         only need to keep one reference.
25340         (set_ListManager): same.
25341         (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
25342         Also, add support for HitTestType.ColumnResize.
25343         (OnMouseMove): add column resize behavior here, and change the
25344         cursor to the correct one as we move around the datagrid.
25345         (OnMouseUp): terminate the column resize if we're resizing.
25346         (ProcessGridKey): from the MS docs, Alt-0 enters the null value
25347         for the current cell.
25348         (ConnectListManagerEvents): use cached_currencymgr.
25349         (DisconnectListManagerEvents): fill this in, using
25350         cached_currencymgr.
25351         (SetCurrentCell): remove cached_currencymgr_events handling.
25352         (SetDataMember): only call DisconnectListManagerEvents if
25353         cached_currencymgr is != null.
25354         (SetDataSource): same.
25355         (OnListManagerCurrentChanged): cached_currencymgr_events ->
25356         cached_currencymgr.
25357
25358 2006-05-31  Jackson Harper  <jackson@ximian.com>
25359
25360         * BindingManagerBase.cs: Remove somedebug code that creeped into
25361         SVN.
25362         * TreeNode.cs: We get the indent level dynamically right now, so
25363         don't track it as a member.
25364         * TreeNodeCollection.cs: Make sure all nodes added to the list
25365         have parents, treeviews/topnodes setup properly.
25366         - Don't attempt to track indent level.
25367
25368 2006-05-30  Jackson Harper  <jackson@ximian.com>
25369
25370         * BindingContext.cs: Create the currency manager tables here.
25371         This allows us to more easily create null tables (when bad data
25372         members are used), and more easily create related currency
25373         managers.
25374         * CurrencyManager.cs: All the table creation stuff is done by the
25375         binding context now.
25376         - Current should throw an exception if listposition is -1.
25377         - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
25378         been bound yet.
25379
25380 2006-05-30  Mike Kestner  <mkestner@novell.com>
25381
25382         * ListView.cs: allow reexpansion of zero-width column headers.
25383         Fixes #78528.
25384
25385 2006-05-28  Chris Toshok  <toshok@ximian.com>
25386
25387         * CurrencyManager.cs (get_Current): after the late binding
25388         listposition = -1 fix, we need to guard against it here and return
25389         null, otherwise we raise an exception (which is swallowed
25390         elsewhere, and breaks datagrid databinding.)
25391
25392 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
25393
25394         * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
25395           than WM_SYSKEY, don't throw if get something unexpected (#78507)
25396
25397 2006-05-26  Jackson Harper  <jackson@ximian.com>
25398
25399         * ControlPaint.cs:
25400         * ThemeWin32Classic.cs: For color comparisons just use the ARGB
25401         values, it's faster and it's all we care about (we don't care if
25402         the names aren't equal).
25403         * KeyboardLayouts.cs: Eliminate some dead code.
25404         - Lazy init things
25405         * X11Keyboard.cs: Lazy init keyboard detection.
25406         - Cleanup access modifiers a little.
25407
25408 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
25409
25410         * XplatUIX11.cs: Once again, attempting to get layout just right.
25411
25412 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com> 
25413
25414         * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
25415           the sizes of each link section, that will result in sizes that
25416           match DrawString's layout (Fixes #78391)
25417
25418 2006-05-27  Alexander Olk  <alex.olk@googlemail.com>
25419
25420         * FileDialog.cs: If AddExtension property is true autocomplete the
25421           extensions in SaveFileDialog correctly. Fixes bug #78453.
25422           Set MyNetwork and MyComputer to "C:\" for windows. This should
25423           fix part 8 of bug #78446 for now.
25424
25425 2006-05-26  Chris Toshok  <toshok@ximian.com>
25426
25427         * DataGrid.cs (ColumnStartedEditing): fill these in.  for now just
25428         invalidate the current row header if we need to, but presumably
25429         we'll invalidate the row corrsponding to the bounds or
25430         editingControl.
25431         (GridHScrolled): switch back to this method, as it's part of the
25432         public api.  *sigh*.
25433         (GridVScrolled): same.
25434         (OnMouseWheel): hack up something that more or less works.  Call
25435         GridHScrolled/GridVScrolled directly, instead of duplicating much
25436         of their code here.
25437         (EnsureCellVisibility): reinstate a bunch of this code, since we
25438         can't just set the scrollbar Value and expect to do all the work
25439         in the ValueChanged handler.  Also, Call Update() after scrolling
25440         in one direction so the other XplatX11.ScrollWindow call has the
25441         proper stuff in the proper places.
25442         (EditCell): set is_editing to true before calling .Edit.
25443
25444         * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
25445         don't bother comparing first.
25446         (OnKeyPress): call grid.ColumnStartedEditing before calling
25447         base.OnKeyPress.  this will set is_changing and invalidate the row
25448         header if necessary.
25449         (ProcessKeyMessage): for WM_CHAR messages, call
25450         ProcessKeyEventArgs directly.  swallow anything other than WM_CHAR
25451         and WM_KEYDOWN.
25452         
25453         * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
25454         it's done in the DataGrid.
25455         (NextState): call grid.ColumnStartedEditing, which takes care of
25456         invalidating the row header (and setting is_changing).
25457
25458         * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
25459         here.  it's done in the DataGrid.
25460
25461 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25462
25463         * Control.cs: allow changing the cursor when the mouse position is
25464         out of bounds but Capture is set.
25465         * LinkLabel.cs: handle the case when the mouse button is pressed on the
25466         linklabel but released somewhere else.
25467
25468 2006-05-25  Jackson Harper  <jackson@ximian.com>
25469
25470         * TreeView.cs: When we get focus if there is no selected node make
25471         it the top node
25472         - Remove some uneeded setup code from Draw.
25473         * TreeNodeCollection.cs: If the tree doesn't have a top node when
25474         a new node is inserted make the new node the top.
25475         * XplatUIX11.cs:
25476         * Timer.cs: Use Utc time so that no local time zone stuff needs to
25477         be used (should be faster).
25478         
25479 2006-05-25  Chris Toshok  <toshok@ximian.com>
25480
25481         * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
25482         problem with the last commit.
25483
25484 2006-05-25  Chris Toshok  <toshok@ximian.com>
25485
25486         * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
25487         need the invalidate call here, while scrolling right-to-left via
25488         the left arrow key (i.e. moving the editing cell while scrolling).
25489
25490         * DataGrid.cs (.ctor): remove the initialization of
25491         ctrl_pressed/shift_pressed.  We no longer track them using key
25492         up/down handlers, but by using Control.ModifierKeys.  Also, switch
25493         to using ValueChanged handlers on the scrollbars instead of
25494         Scrolled event handlers.  This simplifies a bunch of the scrolling
25495         code.
25496         (GridHValueChanged): rename from GridHScrolled, and change it to
25497         work with the new event args.
25498         (GridVValueChanged): same.
25499         (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
25500         (OnMouseWheel): actually scroll the datagrid.  Don't change the
25501         selected cell.
25502         (ProcessGridKey): correct all the keyboard navigation stuff I
25503         could find.  Ctrl up/down/left/right/home/end work now.
25504         (EnsureCellVisibility): correct method name spelling.  Also,
25505         simplify this a touch by not explicitly calling the
25506         ScrollToRow/ScrollToColumnInPixels methods.  We just set the
25507         scrollbar value.
25508         (OnKeyUpDG): no need for this method now.
25509         
25510 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25511
25512         * LinkLabel.cs: display the OverrideCursor when hovering the label.
25513         Fixes bug #78392.
25514
25515 2006-05-25  Chris Toshok  <toshok@ximian.com>
25516
25517         * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
25518         r61019.
25519
25520 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
25521
25522         * Application.cs: Moved setting of is_modal and closing to before
25523           we create the control, to allow the event handlers called as a
25524           result of creation affect closing. Also removed Gonzalo's previous
25525           change to setting DialogResult, the behaviour has been moved to 
25526           Form.ShowDialog()
25527         * Form.cs: 
25528           - ShowDialog(): Removed explicit creation of the form, let RunLoop
25529             handle it instead
25530           - ShowDialog(): If no dialog result is set, we need to return Cancel
25531           - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
25532             the close is cancelled
25533
25534 2006-05-25  Jackson Harper  <jackson@ximian.com>
25535
25536         * StatusBar.cs: We only need to update the sizes of the other
25537         panels when we have auto size contents.  Also we are only updating
25538         the contents of the panel, not the borders, so compensate for the
25539         border width (TODO: get this width from the theme somehow).
25540         * TreeView.cs: Scrollable is true by default
25541         - Use invalidate instead of refresh where needed
25542         - Factor the scrollable value into scrollbar updating
25543         - Update the scrollbars if the Scrollable property is altered
25544         - Update the selected node if its ImageIndex is changed
25545         - Handle null nodes in UpdateNode (mainly so we don't have to
25546         check if selected is null when updating it
25547         - Fix VisibleCount to use the ViewportRectangle so that scrollbars
25548         are factored into the visible count
25549         - Use VisibleCount for clarity in the code
25550         - When the font is changed we need to recurse through all the
25551         nodes and invalidate their sizes
25552         
25553 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25554
25555         * Application.cs: set the DialogResult to fixed when the main form is
25556         hidden or destroyed while being modal.
25557
25558 2006-05-25  Miguel de Icaza  <miguel@novell.com>
25559
25560         * Theme.cs: Use Tangoified messagebox icons. 
25561
25562         (GetSizedResourceImage): Also cope with width = 0 and do not
25563         trigger a warning in that case (0 means "give me your icon from
25564         the resouce, no special size needed).
25565
25566 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
25567
25568         * Application.cs: Leave runloop if the the main modal form is 
25569           hidden (fixes #78484)
25570
25571 2006-05-25  Atsushi Enomoto  <atsushi@ximian.com>
25572
25573         * BindingContext.cs : reject null datasource in Contains() and
25574           Item[].
25575         * CurrencyManager.cs : check data_member validity when data_source
25576           is dataset. When it is late binding, the initial position is -1.
25577
25578 2006-05-24  Jackson Harper  <jackson@ximian.com>
25579
25580         * TreeNodeCollection.cs: Dont't recalculate the visible order on
25581         inserted nodes that aren't visible.  This changes the
25582         max_visible_order which confuses scrollbar settings.
25583         - Use the enumerator to get the prev node instead of duplicating
25584         code.
25585         * TreeView.cs: Use new method for setting scrollbar values
25586         - Don't set the bounds every time the scrollbar is updated
25587         - When updating below the root node use an invalidate instead of a
25588         refresh to prevent the child controls (scrollbars) from being
25589         refreshed. (UpdateBelow still needs to be reworked anyways).
25590         - Reenable SetBottom now that visible orders are set correctly,
25591         added some debug code incase we ever get bad values there again.
25592         - Set the scrollbar max to 2 less then the max value, this
25593         compensates for the max value being one above the node count, and
25594         for scrollbars adding one extra "notch".
25595         - When drawing image nodes if there is an imagelist we draw the
25596         first image in the list if the supplied image index is out of the
25597         image list's bounds.
25598         
25599 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
25600
25601         * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when 
25602           we receive a size change from the WM (Fixes #78503)
25603
25604 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com>
25605
25606         * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip 
25607           rectangle (Fixes #78501)
25608
25609 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
25610
25611         * ButtonBase.cs: 
25612           - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button 
25613             as a bitfield.
25614           - Fixed MouseMove to no longer switch pressed state unless the left
25615             mouse button is pressed. Atsushi provided the original patch (#78485)
25616           
25617 2006-05-24  Jackson Harper  <jackson@ximian.com>
25618
25619         * ScrollBar.cs: New internal methods that allow us to change a
25620         couple values on the scrollbar (the most common case is maximum
25621         and large change) without getting multiple invalidates.
25622
25623 2006-05-24  Chris Toshok  <toshok@ximian.com>
25624
25625         * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
25626         (Edit): save off the original state in oldState, and set
25627         grid.is_editing to true.
25628         (OnKeyDown): abort editing if escape is pressed.  also, call
25629         NextState if space is pressed.
25630         (OnMouseDown): call NextState.
25631         (NextState): factor out shared code from OnKeyDown and OnMouseDown
25632         here.  Also, only invalidate the row header once (on the initial
25633         is_changing switch) to save on redraws.
25634
25635 2006-05-24  Chris Toshok  <toshok@ximian.com>
25636
25637         * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
25638         if the value in the cell is different than it was before.  This
25639         keeps us from triggering a layout when we move around a datarid
25640         with a highlighted cell.
25641         (Edit): suspend layout when creating/positining the text box, and
25642         resume passing false so we don't ever actually re-layout.
25643         (ReleaseHostedControl): same.
25644         (EnsureTextBox): reformat slightly, and set WordWrap to false.
25645
25646         * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
25647         control-key sequences should go to the datagrid - remove that
25648         lock.  Also, modify the conditions under which we move between
25649         cells when moving the cursor within a cell, and remove the "this"
25650         and "base" from field accesses.  We weren't even consistent, given
25651         they all were in the base class.
25652
25653 2006-05-24  Atsushi Enomoto  <atsushi@ximian.com>
25654
25655         * Binding.cs : (.ctor)
25656           An obvious NRE fix for BindingTest.CtorNullTest().
25657
25658 2006-05-23  Chris Toshok  <toshok@ximian.com>
25659
25660         * TextBoxBase.cs (get_Text): don't add a trailing newline, add
25661         them between lines.  This fixes some quirks editing cells in the
25662         datagrid.
25663
25664 2006-05-23  Jackson Harper  <jackson@ximian.com>
25665
25666         * TreeView.cs: Use begin/end update when doing expand/collapse all
25667         so that we don't get flicker on the scrollbar.
25668
25669 2006-05-23  Jackson Harper  <jackson@ximian.com>
25670
25671         * TreeNode.cs: Bounds are computed 'on the fly' now.  This allows
25672         treenode calculations to be independant of the painting code. To
25673         do this nodes track a visible order which is calculated by the
25674         treeview.
25675         - Call new methods for expanding/collapsing nodes.  These methods
25676         use scrollwindow so we don't have to update everything below the
25677         node.
25678         * TreeView.cs: Refactored drawing and scrolling code.  We don't
25679         need to update nodes when drawing anymore or calculate scrollbar
25680         stuff.
25681         - Added new methods for expanding/collapsing nodes. These methods
25682         use ScrollWindow so as to not have to redraw all the nodes below.
25683         * TreeNodeCollection.cs: Recalc visible order and scrollbars when
25684         we add/remove nodes or sort.
25685         - Handle removing the selected and the top node properly.
25686
25687 2006-05-23  Chris Toshok  <toshok@ximian.com>
25688
25689         * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
25690         maybe this should actually happen in the datagrid code?
25691         (EndEdit): no need to invalidate anything, given that
25692         ReleaseHostedControl causes the datagrid to relayout, which
25693         invalidates everything anyway.
25694
25695         * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
25696         in SetCurrentCell).
25697         (set_SelectionBackColor): call InvalidateSelection instead of
25698         Refresh.
25699         (set_SelectionForeColor): same.
25700         (BeginEdit): Flesh this out a bit.
25701         (CancelEditing): only do any of this if we're editing/adding.
25702         (EndEdit): same.
25703         (OnMouseDown): there's no need to cancel editing here, it's done
25704         in SetCurrentCell.
25705         (SetCurrentCell): only invalidate the current row header if it's a
25706         different row than the new one.
25707         (ShiftSelection): fix this to work like MS does.
25708         (ResetSelection): factor out the invalidation of selected_rows to
25709         InvalidateSelection.
25710         (SetDataSource): cancel any editing that's going on.
25711
25712         * DataGridColumnStyle.cs
25713         (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
25714         call the non-interface version.
25715
25716         * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
25717         header rectangle with the clip rectangle so we don't redraw the
25718         entire header for just a small area.  Gets rid of the last flicker
25719         when horizontally scrolling.
25720         (DataGridPaintRow): same.
25721
25722 2006-05-23  Mike Kestner  <mkestner@novell.com>
25723
25724         * ListViewItem.cs: remove size for line hack from LargeIcon layout.
25725         * ThemeWin32Classic.cs: don't draw line.  it's really the top of a
25726         poorly placed checkbox on the MS control.  Fixes Alex's unfiled
25727         Critical bug report.
25728
25729 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
25730
25731         * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
25732           and this fixes #78493
25733
25734 2006-05-23  Miguel de Icaza  <miguel@novell.com>
25735
25736         * Theme.cs (GetSizedResourceImage): Scale images if the proper
25737         size is not found.  
25738         
25739         * FileDialog.cs: Do not change the background for the side bar as
25740         it wont work nicely with the theme, and also reduces the artifacts
25741         in rendering the icons (which I want to fix too).
25742
25743         * MimeIcon.cs (ResourceImageLoader): Load images from assembly
25744         resources, not resgen resources. 
25745
25746         (PlatformDefaultHandler): Pull images using the new API.
25747
25748 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
25749
25750         * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
25751           a reference to the hwnd and will not remove it unless there are
25752           no pending exposures (fixes #78341)
25753         * XplatUI.cs: Improved debug
25754
25755 2006-05-23  Atsushi Enomoto  <atsushi@ximian.com>
25756
25757         * MenuAPI.cs : don't handle OnClick event when it was not the left
25758           button. Fixed bug #78487.
25759
25760 2006-05-23  Mike Kestner  <mkestner@novell.com>
25761
25762         * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
25763         prefer submenus to the top menu for item lookup, to avoid popping down
25764         top-row items.
25765
25766 2006-05-23  Alexander Olk  <alex.olk@googlemail.com>
25767
25768         * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
25769           Graphics.FillRectangle as the visual results are really bad (even
25770           on win). We now draw perfect arrows (and perfect shadows when the
25771           scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
25772           Pen.DashPattern to draw the dots of each line.
25773
25774 2006-05-22  Alexander Olk  <alex.olk@googlemail.com>
25775
25776         * FileDialog.cs: Update the filename combobox when navigating through
25777           the ListView with the cursor keys. Fixes part 7 of bug #78446.
25778
25779 2006-05-22  Mike Kestner  <mkestner@novell.com>
25780
25781         * ListView.cs: raise SelectedIndexChanged on keyboard selection.
25782         Fixes #78463.
25783
25784 2006-05-22  Mike Kestner  <mkestner@novell.com>
25785
25786         * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
25787         requests. Fix a misspelled parameter and a copy paste exception error
25788         in Select.
25789
25790 2006-05-22  Peter Dennis Bartok  <pbartok@novell.com> 
25791
25792         * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
25793           to get the same width/height (5/13) on X11 as the default font has on
25794           win32. This means that our DefaultFont emSize is smaller than the 
25795           the MS SWF equivalent (even thought the width/height stays the same)
25796
25797 2006-05-20  Jackson Harper  <jackson@ximian.com>
25798
25799         * MdiClient.cs:
25800         * MdiWindowManager.cs:
25801         * InternalWindowManager.cs: Make sure to use the border width from
25802         the theme.
25803
25804 2006-05-20  Jordi Mas i Hernandez <jordimash@gmail.com>
25805
25806         * PrintDialog.cs: Implements printer details
25807
25808 2006-05-19  Alexander Olk  <alex.olk@googlemail.com>
25809
25810         * FileDialog.cs: Added focus handling for PopupButtonPanel.
25811           Fixes part 1 and 2 of bug #78446
25812
25813 2006-05-19  Peter Dennis Bartok  <pbartok@novell.com> 
25814
25815         * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
25816           instead of sticking to the first ever calculated value
25817
25818 2006-05-19  Mike Kestner  <mkestner@novell.com>
25819
25820         * ComboBox.cs: fix mouse motion selection to use MousePosition and
25821         PointToClient, since Capture is set. Fixes #78344.
25822
25823 2006-05-19  Mike Kestner  <mkestner@novell.com>
25824
25825         * ListView.cs: match MS behavior in Details view where items are not
25826         drawn if Columns.Count == 0. 
25827         * ThemeWin32Classic.cs: only highlight ListView selection if focused.
25828         Use a separate pen to draw the check, since changing the width affects
25829         the box as well.  Fixes #78454.
25830
25831 2006-05-18  Miguel de Icaza  <miguel@novell.com>
25832
25833         * ListView.cs: ArgumentOutOfRangeException, single versions of the
25834         exception should throw the name of the invalid argument.
25835
25836         * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
25837         there are no files listed. 
25838
25839 2006-05-18  Jackson Harper  <jackson@ximian.com>
25840
25841         * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
25842         up.
25843
25844 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
25845
25846         * Control.cs: Brought back our old UpdateZOrder method as a private
25847           function and switched our calls from UpdateZOrder to the new one.
25848           This fixes the Paint.Net canvas disappearing bug.
25849
25850 2006-05-18  Jackson Harper  <jackson@ximian.com>
25851
25852         * Theme.cs:
25853         * ThemeWin32Classic.cs:
25854         * InternalWindowManager.cs: Move the drawing into the theme,
25855         expose everything the theme should need from the window manager.
25856
25857 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
25858
25859         * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value 
25860           from the call to NativeWindow to avoid walking up the parent chain
25861           further than needed (speeds up setting cursors and avoids setting
25862           the wrong cursor if a parent has another cursor defined)
25863         * Cursor.cs: When loading an icon as cursor, MS uses the center of
25864           the icon as hotspot, not what's contained as hotspot in the icon
25865           file. This fixes the perceived drawing offset seen with Paint.Net
25866         
25867 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
25868
25869         * XplatUIX11.cs: 
25870           - Store the calculated rectangle in Hwnd object and use it when 
25871             setting the client size
25872           - Force Toolwindows to always be type Dock, to ensure they're on top
25873
25874 2006-05-18  Mike Kestner  <mkestner@novell.com>
25875
25876         * ComboBox.cs: first pass at ComboBox rework.  Layout is more
25877         consistent with MS positioning.  IntegralHeight, ItemHeight, Sizing.
25878         Correctly initialize textcontrol and ListBox on DropDownStyle changes. 
25879         Substantial refactoring to remove confusing nested classes. Coding
25880         standard and Get+Set->property refactorings.  Shift to index based
25881         highlighting in ComboListBox instead of constantly using IndexOf and
25882         Items[]. Add invalidations on resize for DropDownList to fix ugliness
25883         in FileDialog growth.  Draw borders manually since Simple mode needs
25884         to look like two independent controls.  Make listbox border
25885         conditional to DropDownStyle.  Improved OwnerDraw support.
25886
25887 2006-05-18  Sebastien Pouliot  <sebastien@ximian.com>
25888
25889         * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor. 
25890         Don't set the disposed graphics to null, so we can throw the "right"
25891         exception if the graphics is reused later (added a flag to avoid 
25892         double disposing). Some behaviours are different under 2.0 and are
25893         filled under bug #78448.
25894
25895 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
25896
25897         * Control.cs: When double-buffering is enabled, we need to reset
25898           our graphics context between paint calls. Otherwise, any 
25899           transformations and other alterations on the context will 
25900           become cumulative (#77734)
25901
25902 2006-05-18  Mike Kestner  <mkestner@novell.com>
25903
25904         * ListView.cs: do focused item selection like MS on clicks. 
25905         Rework focus handling for ItemControl so LostFocus invalidates as
25906         well.
25907         * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
25908         the ListView ItemControl has focus.
25909
25910 2006-05-17  Peter Dennis Bartok  <pbartok@novell.com>
25911
25912         * XplatUIX11.cs: If client_window ends up being width or height zero
25913           due to border settings, move it off window inside whole_window (#78433)
25914
25915 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
25916
25917         * Mime.cs: Shrink the mime file cache correctly.
25918
25919 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
25920
25921         * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
25922
25923 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
25924
25925         * XplatUIX11.cs (AddExpose): More sanity checks
25926
25927 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
25928
25929         * XplatUIX11.cs:
25930           - AddExpose: Don't add expose ranges outside the size of our
25931             window
25932           - Cast opacity values to Int32 to avoid crashes with certain
25933             values
25934           - Added disabled code paths that protect against illegal cross-
25935             thread painting (Developers.exe)
25936
25937 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
25938
25939         * ProgressBar.cs: Invalidate the control when it's resized
25940           since block size is based on control size. (#78388)
25941
25942 2006-05-16  Miguel de Icaza  <miguel@novell.com>
25943
25944         * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
25945         of setting the incoming argument to the "reset" value, we set the
25946         this.datamember to string.empty (before we were invalidating the
25947         incoming data).   
25948
25949         Fixes 78420
25950
25951 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
25952
25953         * Form.cs: Only apply transparency settings after the form
25954           is created. (Fixes #77800)
25955
25956 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
25957
25958         * ApplicationContext.cs: Grab the HandleDestroyed event so
25959           we know when to fire OnMainFormClosed 
25960
25961 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
25962
25963         * Application.cs: Introduced sub-class to allow tracking of
25964           threads and centralized triggering of the event mess for
25965           ThreadExit, AppExit, etc..  (#76156)
25966
25967 2006-05-16  Alexander Olk  <alex.olk@googlemail.com>
25968
25969         * MimeIcon.cs:
25970           - Do not return a null icon index value for a mime subclass.
25971             Instead try the main mime type class too.
25972           - Seems that some newer distributions don't have a link to some
25973             gnome default icons anymore. So check the default gnome dir too.
25974           
25975
25976 2006-05-16  Jackson Harper  <jackson@ximian.com>
25977
25978         * MdiClient.cs: Don't paint the parent background image if we have
25979         our own background image.
25980
25981 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
25982
25983         * Control.cs:
25984           - PerformLayout: Do not shrink space filled by DockStyle.Fill
25985             controls, all filled controls are supposed to overlap (#78080)
25986           - UpdateZOrder is supposed to update the control's z-order in the
25987             parent's z-order chain. Fixed to behave like that
25988           - BringToFront: Removed obsolete code
25989           - SendToBack: Simplyfied
25990           - SetChildIndex: Trigger layout calculations when Z-order changes
25991             since layout is done by z-order
25992
25993 2006-05-16  Chris Toshok  <toshok@ximian.com>
25994
25995         [ fixes bug #78410 ]
25996         * DataGrid.cs (set_AlternatingBackColor): use
25997         grid_drawing.InvalidateCells instead of Refresh().
25998         (set_BackColor): call grid_drawing.InvalidateCells.
25999         (set_BackgroundColor): use Invalidate instead of Refresh.
26000
26001         * DataGridDrawingLogic.cs (InvalidateCells): new function, just
26002         invalidate the cell area.
26003
26004 2006-05-15  Chris Toshok  <toshok@ximian.com>
26005
26006         [ fixes bug #78011 ]
26007         * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
26008         on to DataGridPaintRow.
26009         (DataGridPaintRow): take a clip argument, and only draw the cells
26010         which intersect it.  same with the not_usedarea.
26011
26012         * Theme.cs (DataGridPaintRow) add @clip parameter.
26013
26014         * DataGrid.cs (ScrollToColumnInPixels): simplify, use
26015         XplatUI.ScrollWindow.
26016         (ScrollToRow): same.
26017
26018         * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
26019         with last column which was causing a gray swath to appear with the
26020         XplatUI.ScrollWindow code.
26021
26022 2006-05-15  Chris Toshok  <toshok@ximian.com>
26023
26024         * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
26025         use XplatUI.ScrollWindow.
26026         (VerticalScrollEvent): use XplatUI.ScrollWindow.
26027
26028 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com> 
26029
26030         * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
26031
26032 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
26033
26034         * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
26035           file since there are no equivalent X11 cursors
26036
26037 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
26038
26039         * MonthCalendar.cs : DateTimePicker should reflect selected date
26040           on mouse*up*, not mouse*down*. Fixed originally reported part of
26041           bug #76474.
26042
26043 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
26044
26045         * TabControl.cs : When argument index is equal or more than tab
26046           count, just ignore. Fixed bug #78395.
26047
26048 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
26049
26050         * Control.cs: Dispose all child controls when control is diposed (#78394)
26051
26052 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
26053
26054         * ColorDialog.cs: Finally it is possible to select the color with
26055           the text boxes
26056
26057 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
26058
26059         * PrintDialog.cs: Fix typo
26060
26061 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
26062
26063         * PrintDialog.cs: PrintDialog is not resizable
26064         * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
26065           color. Made some ToolBar drawing methods protected virtual.
26066
26067 2006-05-13  Jordi Mas i Hernandez <jordimash@gmail.com>
26068
26069         * PrintDialog.cs: Implementation of the PrintDialog
26070
26071 2006-05-12  Chris Toshok  <toshok@ximian.com>
26072
26073         * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
26074         thumb, instead use MoveThumb.  This has the side effect of making
26075         most of the other thumb moving machinery use MoveThumb as well.
26076         (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
26077         need to actually invalidate the rectangle where the new thumb will
26078         go.
26079         (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
26080         We force an Update() after, so it's not as fast as it could be,
26081         but at least there's zero flicker and no droppings.
26082         (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
26083         (UpdateThumbPos): add another argument (dirty), which says whether
26084         or not to calculate/add dirty regions which we later invalidate.
26085         For cases where we know we're going to use MoveThumb, we pass
26086         false for this.  Otherwise, pass true.
26087
26088 2006-05-12  Jackson Harper  <jackson@ximian.com>
26089
26090         * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
26091         the status bar.
26092         
26093 2006-05-12  Peter Dennis Bartok  <pbartok@novell.com>
26094
26095         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
26096           and GetClipRegion methods and UserClipWontExposeParent property.
26097         * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
26098           overriding UserClipWontExposeParent property, setting to false, since
26099           Win32 handles the required expose messages to draw our clipped parent
26100           areas internally
26101         * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
26102           PaintEventStart to set the user clip region if set.
26103         * Control.cs: 
26104           - Now internally tracking the Region for the control since we need to
26105             store it if the handle is not yet created and only set it when it
26106             becomes created. Before setting the region forced handle creation
26107           - Added code to draw the parents underneath a user-clipped region
26108         * Hwnd.cs: Added UserClip property
26109
26110 2006-05-12  Chris Toshok  <toshok@ximian.com>
26111
26112         * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
26113         (set_Maximum): same.
26114         (set_Minimum): same.
26115         (set_SmallChange): same.
26116         (OnMouseUpSB): remove the call to refresh when releasing the
26117         thumb.  We shouldn't need it.
26118         
26119 2006-05-12  Miguel de Icaza  <miguel@novell.com>
26120
26121         * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
26122         AutoSize set to None, we do not need to relayout everything, we
26123         just need to invalidate the current region.
26124
26125         (Draw): Do not draw the entire ClientArea, just redraw the
26126         clip area being passed.
26127
26128         * MdiClient.cs: Make MdiClient constructor with the Form argument
26129         internal. 
26130
26131 2006-05-12  Jackson Harper  <jackson@ximian.com>
26132
26133         * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
26134         parents background image,  but strangely not their own.
26135         - (DrawStatusBarPanel): Take into account horizontal alignment
26136         when drawing the strings and icons.
26137
26138 2006-05-12  Mike Kestner  <mkestner@novell.com>
26139
26140         * ListBox.cs: avoid invalidations for focus when the collection is
26141         empty. 
26142
26143 2006-05-12  Chris Toshok  <toshok@ximian.com>
26144
26145         * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
26146         invalidate the entire thumb area.  Call InvalidateDirty which
26147         limits the redraw to the thumb itself and surrounding pixels.
26148
26149         * XplatUIX11.cs (ScrollWindow): optimize copying.
26150         
26151 2006-05-12  Chris Toshok  <toshok@ximian.com>
26152
26153         * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
26154         Figure out the positioning/layout in a single pass instead of
26155         multiple recursive invocations.  Speeds up the initial display of
26156         the data grid.  Also, make many things private that were
26157         originally public but unused outside this class.
26158
26159 2006-05-11  Jackson Harper  <jackson@ximian.com>
26160
26161         * MdiClient.cs: Improved layout code.
26162
26163 2006-05-11  Jonathan Chambers  <jonathan.chambers@ansys.com>
26164
26165         * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
26166           not SelectedObject.
26167
26168 2006-05-11  Chris Toshok  <toshok@ximian.com>
26169
26170         * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
26171         union of that will always be {0,0,width,height}.
26172
26173 2006-05-11  Jackson Harper  <jackson@ximian.com>
26174
26175         * Form.cs: Match MS's DefaultSize for forms (they must have
26176         changed the size in sp2).
26177
26178 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
26179
26180         * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
26181
26182 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
26183
26184         * TextControl.cs : Fixed bug #78109. This incorrect position
26185           comparison caused crash on automatic line split.
26186         * TextBoxBase.cs : reduce duplicate code.
26187
26188 2006-05-10  Jackson Harper  <jackson@ximian.com>
26189
26190         * MdiClient.cs: Active form is only sent to the back when using
26191         the Next form functionality, when a form is clicked the current
26192         active shouldn't be sent to the back.
26193         - Layout the mdi windows when the container is first made visible.
26194         * Form.cs: Give the MdiClient a ref to the containing form when we
26195         create it.
26196         
26197 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
26198
26199         * LinkLabel.cs : link_font could be uninitialized, so populate one
26200           before actual use. Fixed bug #78340.
26201
26202 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
26203
26204         * XplatUIX11.cs : clipboard format native value is IntPtr.
26205           Fixed bug #78283.
26206
26207 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
26208
26209         * Control.cs: 
26210           - Instead of showing context menus directly we send WM_CONTEXTMENU, 
26211             which is passed up the parent chain by DefWndProc
26212           - We now handle WM_CONTEXTMENU to display any menu, or pass it 
26213             to DefWndProc (#77956)
26214         * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
26215
26216 2006-05-10  Jackson Harper  <jackson@ximian.com>
26217
26218         * MdiClient.cs: We need to remove the controls from the mdi
26219         collection, when we close the window.
26220         * MdiWindowManager.cs: Special handling of closing mdi windows.
26221         * InternalWindowManager.cs: Make the close method virtual so the
26222         mdi window manager can handle it specially.
26223
26224 2006-05-10  Jordi Mas i Hernandez <jordimash@gmail.com>
26225
26226         * DataGrid.cs:
26227           - Recalculate grid when the data source has changed
26228           - Matches styles provided by user from all data sources types
26229         * DataGridTableStyle.cs: For columns that provided by the user set the
26230         with the preferred value is there was unassigned.
26231         * CurrencyManager.cs: throw OnItemChanged event
26232
26233 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com> 
26234
26235         * PictureBox.cs: Don't animate until handle is created. Start animation
26236           when handle is created.
26237
26238 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
26239
26240         * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
26241           current codebase.
26242         * XEventQueue.cs: We don't need to provide the extra info
26243
26244 2006-05-10  Jackson Harper  <jackson@ximian.com>
26245
26246         * MdiClient.cs: If the mdi clients parent form has a background
26247         image set, we draw that background image for the mdi area's
26248         background.
26249
26250 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
26251
26252         * TextBoxBase.cs: Set IBeam cursor (#78347)
26253
26254 2006-05-10  Mike Kestner  <mkestner@novell.com>
26255
26256         * ToolBar.cs: fix some text padding issues with ButtonSize
26257         calculation. Update the default size to match MS documentation.
26258         * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
26259         button size. Fixes #78296.
26260
26261 2006-05-10  Mike Kestner  <mkestner@novell.com>
26262
26263         * ListBox.cs: use is_visible for scrollbar positioning in case the
26264         control isn't on screen yet.  Fix off by one with Right vs Width
26265         usage.  Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
26266         
26267 2006-05-10  Jackson Harper  <jackson@ximian.com>
26268
26269         * X11Dnd.cs: Drop to a control with another control on top of it.
26270         * ToolBar.cs: Work on a copy of the buttons list, so that it can
26271         be modified in click handlers. TODO: Look for similar problems in
26272         other controls.
26273
26274 2006-05-09  Jackson Harper  <jackson@ximian.com>
26275
26276         * Form.cs: Window managers need the old window state when setting
26277         window state now.
26278         * InternalWindowManager.cs: Allow the base mdi window manager to
26279         handle more of the MDI only stuff (like maximize buttons).
26280         * MdiWindowManager.cs: Fix some snafus in changing the window
26281         state.  Add all the menu functionality, for both popup and
26282         maximized menus.
26283         * MdiClient.cs: When a new form is selected the currently
26284         activated form is sent to the back, this matches MS.
26285         - Implement a new method to activate the next mdi child window.
26286
26287 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com>
26288
26289         * Control.cs: 
26290           - Added new InternalCapture method to allow controls to prevent
26291             the capture behaviour on the click handlers
26292           - Switched to use InternalCapture
26293         * ComboBox.cs:
26294           - Using InternalCapture to prevent mouse captures from being released
26295             on mouse button release (Fixes #78100)
26296         * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
26297           returns Form borders if a caption is present. (Fixes #78310)
26298
26299 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com> 
26300
26301         * TreeNode.cs: Changed serialization .ctor to not require every field
26302           to be present. (#78265)
26303         * OwnerDrawPropertyBag.cs: Added serialization .ctor
26304
26305 2006-05-05  Alexander Olk  <alex.olk@googlemail.com>
26306
26307         * MimeIcon.cs: for is faster than foreach for strings.
26308
26309 2006-05-05  Mike Kestner  <mkestner@novell.com>
26310
26311         * CheckedListBox.cs: update check handling code to not use selected.
26312         * ListBox.cs: rewrite of mouse selection handling to correspond to MS
26313         behavior for visual feedback, motion response, shift/ctrl handling,
26314         and properly deal with all 4 selection modes. Updates to bounds
26315         handling logic.  Add scroll wheel support. [Fixes #77842]
26316
26317 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
26318
26319         * ListView.cs:
26320           - Moved adding of Implicit controls into .ctor. That way, subsequent
26321             creation of the controls will not cause them to think they are 
26322             toplevel windows (fixes #78200 header problem)
26323           - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
26324           - Switched visibility setting of header control to use internal field
26325             to avoid triggering handle creation
26326           - Now checking if handle is created before causing a refresh when items
26327             are added (This makes us now match handle creation time with MS)
26328         * Splitter.cs: Removed loading of private splitter cursor, switched to
26329           Cursors version now that that is loading the right ones
26330         * Cursors.cs: Load proper splitter cursors from resources
26331         * Cursor.cs: Added second method of loading resource cursors for the 
26332           VS.Net users amongst us
26333
26334 2006-05-05  Mike Kestner  <mkestner@novell.com>
26335
26336         * ListView.cs: give header_control a minimum size based on the
26337         ListView size.
26338
26339 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
26340
26341         * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
26342           window seems to do that with metacity, so set that type. (#78120)
26343
26344 2006-05-05  Mike Kestner  <mkestner@novell.com>
26345
26346         * ListViewItem.cs: fix Details mode checkbox layout bug.
26347         * ThemeWin32Classic.cs: draw a ListView column header for unused space
26348         at the end of the header, if it exists. [Fixes for #78200]
26349
26350 2006-05-04  Jackson Harper  <jackson@ximian.com>
26351
26352         * MdiClient.cs: Add a helper property to get the container form.
26353         * MdiWindowManager.cs: We have to make sure to use the menu origin
26354         when drawing the icons and buttons, this fixes maximized window
26355         icons/buttons on win32.
26356         * InternalWindowManager.cs: Reset the restore captions when a
26357         window goes from Maximized to Minimized and vice versa. Move the
26358         DrawMaximizedButtons into the MdiWindowManager source, tool
26359         windows can't be maximized. NOTE: This could use a little
26360         refactoring if time ever permits.
26361         
26362 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
26363
26364         * TextBox.cs: Add MWFCategoryAttributes
26365         * TextBoxBase.cs: Add MWFCategoryAttributes
26366         * Form.cs: Add MWFCategoryAttributes
26367
26368 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
26369
26370         * Control.cs: Add MWFCategoryAttributes
26371         * ScrollableControl.cs: Add MWFCategoryAttributes
26372
26373 2006-05-03  Alexander Olk  <alex.olk@googlemail.com>
26374
26375         * ThemeWin32Classic.cs: Draw the ToolBar top border only if
26376           Divider is true. Fix a little glitch in PropertyToolBar
26377           drawing code
26378
26379 2006-05-02  Peter Dennis Bartok  <pbartok@novell.com> 
26380
26381         * Control.cs:
26382           - Dispose: Call base.Dispose, this causes the disposed event
26383             to be fired (and probably other, more important stuff)
26384           - SetVisibleCore: Set is_visible to true after creating the
26385             window so that the window still gets created invisible (if
26386             WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
26387             to generate a WM_ACTIVE message
26388         * Form.cs: Call Dispose when we want to destroy the window, instead of
26389           just destroying the handle (Dispose will do that for us)
26390         * XplatUIX11.cs:
26391           - RootWindow also needs a queue, so we can properly process the
26392             property change events from RootWindow (like Activate)
26393           - Generatic synthetic WM_ACTIVE message when the active window is
26394             being destroyed
26395
26396 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
26397
26398         * LinkLabel.cs: Trigger a recalc of our label dimensions when
26399           bounds are changed
26400
26401 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com>
26402
26403         * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
26404           for determining width and height (image might not be assigned if
26405           we're drawing an imagelist)
26406
26407 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
26408
26409         * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
26410         * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
26411           height from system
26412         * Theme.cs: No longer returns hardcoded menu height, instead calls
26413           new driver method
26414         * Form.cs (OnLoad): Scaling happens before triggering Load events 
26415           on MS (# 78257)
26416
26417 2006-05-01  Mike Kestner  <mkestner@novell.com>
26418
26419         * MenuItem.cs: fix NRE for text == null.  Fixes #78250.
26420
26421 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com> 
26422
26423         * TextBoxBase.cs: Removed Fixme
26424         * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
26425
26426 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com>
26427
26428         * XplatUIX11.cs:
26429           - ScrollWindow: We were passing hwnd.ClientRectangle which returns
26430             the rectangle relative to the parent, considering borders. We
26431             don't really want that.
26432           - ScrollWindow: Fixed warning to be more understandable
26433         * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
26434           scrollbars and scroll only the visible area
26435         * RichTextBox.cs: Removed debug output
26436
26437 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
26438
26439         * NumericUpDown.cs (Text): Just use base
26440         * UpDownBase.cs: Ensure txtView is created before using it
26441
26442 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
26443
26444         * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
26445           casting to IntPtr to avoid 64bit overflow errors
26446
26447 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
26448
26449         * Control.cs:
26450           - AllowDrop: Don't force handle creation.
26451           - CreateHandle: Added call to tell driver if we're allowed to drop
26452
26453 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
26454
26455         * FileDialog.cs: Remember the last directory not only for the
26456           current instance but also for new FileDialog instances.
26457
26458 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
26459         
26460         * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
26461           broke sending async messages
26462
26463 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
26464
26465         * XplatUIX11.cs:
26466           - ScrollWindow: Fixed method. We finally generate expose events again
26467             for scrolled areas. This was causing 'garbage' when scrolling
26468             textbox and other controls that used ScrollWindow
26469           - Switched from using the regular queue for paint events to the MS 
26470             model of 'generating' paint events when the queue is empty.
26471             We use the new XQueueEvent.Paint subclass to store which windows
26472             need painting.
26473           - AddExpose now takes the x/y/width/height of the exposed area
26474             and inserts the window into the paint queue if not already there
26475           - InvalidateWholeWindow: Switched to use new AddExpose method
26476           - UpdateMessageQueue: Added which queue to monitor for paint events
26477           - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
26478             the unlikely case nothing above handles it. We reset the expose
26479             pending states to get them off the queue.
26480           - GetMessage: Now pulls a paint event if no other events are in the
26481             queue
26482           - Invalidate: Switched to new AddExpose method
26483           - PeekMessage: Updated to understand pending paint events
26484           - UpdateWindow: Fixed logic bug. We were only updating if the window
26485             didn't need updating. Also switched to sending WM_PAINT directly,
26486             like MS does.
26487         * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
26488           and random access Remove(). The random access is needed to handle
26489           UpdateWindow() where a WM_PAINT is sent directly without accessing
26490           the queue.
26491         * ScrollBar.cs: Added Update() calls to cause immediate updates to
26492           allow for better feedback when scrolling. Scrollbars are small and
26493           the immediate update should make it 'feel' more responsive without
26494           slowing things down. ScrollBar still needs it's invaliate logic
26495           updated to not always invalidate the whole bar on certain changes.
26496
26497 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26498
26499         * Control.cs:
26500         (BackColor): if the control does not support a transparent background,
26501         return the default backcolor when the parent backcolor is transparent.
26502
26503 2006-04-28  Peter Dennis Bartok  <pbartok@novell.com>
26504
26505         * Application.cs: Updated to new StartLoop/GetMessage API
26506         * RichTextBox.cs: Provide some output on RTF parsing errors
26507         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
26508           new queue_id argument to GetMessage and PeekMessage to allow faster
26509           handling of per-thread queues in drivers.
26510         * Hwnd.cs: Added Queue tracking and property
26511         * MenuAPI.cs: Updated to new StartLoop/GetMessage API
26512         * XEventQueue.cs: Added thread trackingA
26513         * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
26514         * XplatUIX11.cs:
26515           - Implemented new per-thread queue
26516           - GetMessage: Fixed return/break behaviour on several cases. We were
26517             returning stale messages in some cases, instead of just processing
26518             the next message
26519
26520 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
26521
26522         * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
26523
26524 2006-04-27  Peter Dennis Bartok  <pbartok@novell.com>
26525
26526         * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
26527           fixed off-by-one comparisons between Width/Height and Right/Bottom.
26528
26529 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
26530
26531         * PropertyGridView.cs: Fix drop down width.
26532
26533 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
26534
26535         * ThemeWin32Classic.cs: Peter thinks that three additional lines are
26536           a mess in DrawToolBar, so I removed one of them.
26537
26538 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
26539
26540         * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
26541           needed (clip). Otherwise we get artifacts.
26542
26543 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
26544
26545         * FixedSizeTextBox.cs: Added constructor to allow specifying which
26546           dimension is fixed
26547         * UpDownBase.cs: Set the spinner control to be fixed height vertical,
26548           and switched FixedSizeTextBox to only be fixed vertical (#78116)
26549         * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
26550           if it matches the scale base font (avoids unneeded scaling)
26551
26552 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
26553
26554         * X11DesktopColors.cs: One gtk_init_check should be enough
26555
26556 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com> 
26557
26558         * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
26559           match MS behaviour
26560
26561 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
26562
26563         * TextBoxBase.cs: 
26564           - Generate OnTextChanged for Backspace even if we're only deleting
26565             the current selection
26566           - When setting the Text property, only select all text if the
26567             control does not have focus when it is being set. Otherwise
26568             just place the cursor at the beginning of the control
26569
26570 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
26571
26572         * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
26573           Added a little helper to draw PropertyGrid ToolBar with a different
26574           border and a different BackColor.
26575         * PropertyGrid.cs: Some background parts didn't get painted with the
26576           correct background color. Added a class that helps us to draw the
26577           correct border for PropertyGridView and a class that helps us to
26578           draw ToolBars with a different backcolor
26579         * PropertyGridView.cs: Draw PlusMinus with the correct colors.
26580
26581 2006-04-25  Jonathan Chambers  <jonathan.chambers@ansys.com>
26582
26583         * PropertyGrid.cs: Bug 78196, font size, and splitter location.
26584         * PropertyGridView.cs: Bug 78196, font size, and splitter location.
26585
26586 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
26587
26588         * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
26589           into the palette entries. Also, since we're working on a copy
26590           we needed to copy the palette back onto the bitmap.
26591         * Cursor.cs: Same fix as XplatUIWin32.cs.
26592
26593 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com>
26594
26595         * ImageListStreamer.cs: Need to read the var (or we're off)
26596
26597 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
26598
26599         * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs, 
26600           XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
26601           TextBoxBase.cs: Unused var fixes
26602         * AxHost.cs: Small 2.0 fix
26603         * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms 
26604           as it seems that is what at least Metacity expects. This will make
26605           icons show up on 64bit platforms. We still have some 64bit size
26606           issues, though, since the startup app window size still won't match.
26607
26608 2006-04-25  Mike Kestner  <mkestner@novell.com>
26609
26610         * *.cs: cleanup newly reported exception var unused warnings.
26611
26612 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
26613
26614         * ThemeWin32Classic.cs: Button image alignment now matches exactly
26615           ms
26616
26617 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
26618
26619         * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
26620           image. The image position is always the same, no matter if the
26621           button is pressed or not.
26622
26623 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
26624
26625         * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
26626           selection and set the correct filename for SaveFileDialog.
26627           Patch by Emery Conrad.
26628
26629 2006-04-24  Mike Kestner  <mkestner@novell.com>
26630
26631         * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
26632         check for item.X outside the ClientRect instead of item.Y. Fixes
26633         #78151.
26634
26635 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26636
26637         * ImageListStreamer.cs: some images store a wrong grow factor, so don't
26638         trust that value blindly and do some sanity check. Fixes bug #77814.
26639
26640 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26641
26642         * ImageListStreamer.cs: save the mask as a 1bpp image.
26643
26644 2006-04-21  Mike Kestner  <mkestner@novell.com>
26645
26646         * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
26647         pass Checked and Indeterminate to the Theme Engine. Improve
26648         encapsulation with ListBox.
26649         * ListBox.cs: Keep a StringFormat instead of calculating it every item
26650         draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
26651         nested types.  Move all CheckState functionality to CheckedListBox.
26652         Make IntegralHeight work like MS.  Rewrite of Layout engine.  Fix
26653         OwnerDrawVariable layout/rendering.  Fix multicolumn rendering.  Fix
26654         ScrollAlwaysVisible handling. Refactor "selected" collections to use a
26655         single base list. Fix scrollbar sizing and placement to mirror MS.
26656         * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
26657         used.
26658         * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
26659         for CheckedListBox by using new DrawItemState info.  Center the
26660         checkboxes on the items. Use new StringFormat property.
26661
26662 2006-04-18  Jackson Harper  <jackson@ximian.com>
26663
26664         * Form.cs: MdiChildren don't do default locations the same way as
26665         regular forms.  This prevents a crash when trying to position the
26666         mdi windows.
26667
26668 2006-04-17  Jonathan Chambers  <jonathan.chambers@ansys.com>
26669
26670         * PropertyGridTextBox.cs: Formatting, copyright
26671         * PropertiesTab.cs: Formatting
26672         * PropertyGrid.cs: Formatting
26673         * PropertyGridView.cs: Formatting, fix drop down, enabled double 
26674           click toggling of values
26675           
26676 2006-04-17  Peter Dennis Bartok  <pbartok@novell.com> 
26677
26678         * KeyPressEventArgs: Added 2.0 only setter for KeyChar
26679         * Control.cs (.ctor): verify_thread_handle is static, don't reset
26680           every time a control is created
26681         * Application.cs: Removed obsolete EnableRTLMirroring method
26682
26683 2006-04-18  Gert Driesen  <drieseng@users.sourceforge.net>
26684
26685         * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
26686         SelectedIndex to -1. Fixes bug #78121.
26687
26688 2006-04-17  Jackson Harper  <jackson@ximian.com>
26689
26690         * Binding.cs: Handle null values for Current and BindingContext.
26691         This occurs when binding is a little delayed.
26692         * CurrencyManager.cs: return null for Current when there are no
26693         items in the list.
26694         - Hookup to the listchanged event on the DataView and update
26695         bindings when the list is changed.  This fixes late binding of
26696         controls.
26697
26698 2006-04-17  Jackson Harper  <jackson@ximian.com>
26699
26700         * X11Dnd.cs:
26701         * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
26702         Ringenbach.
26703
26704 2006-04-15  Alexander Olk  <alex.olk@googlemail.com>
26705
26706         * ThemeWin32Classic.cs: Draw disabled combo button in the correct
26707           place
26708         * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
26709           with the correct ButtonState
26710
26711 2006-04-14  Peter Dennis Bartok  <pbartok@novell.com>
26712
26713         * XplatUIX11.cs: Improved distinguishing between window types to
26714           tell the WM a type closer to what the app wants (Fixes #78107)
26715
26716 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
26717
26718         * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
26719           GrabHandle
26720
26721 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
26722
26723         * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
26724           drawing code to reflect the size grip changes
26725
26726 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26727
26728         * ImageListStreamer.cs: fix handling of the mask that follows the main
26729         bitmap when deserializing and serialize it properly. The generated mask
26730         should better be a 1bpp image, but I'll do that later.
26731
26732 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
26733
26734         * FileDialog.cs: Show something in the DirComboBox on *nix if the
26735           path doesn't fit into some of our Current.Places
26736
26737 2006-04-13  Jackson Harper  <jackson@ximian.com>
26738
26739         * ComboBox.cs: Use borders instead of drawing our own decorations,
26740         try to obey correct rules for heights.
26741         * Theme.cs:
26742         * ThemeNice.cs:
26743         * ThemeClearLooks.cs:
26744         * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
26745         this is now handled by borders.
26746         - Remove unused DrawListBoxDecorationSize method.
26747         
26748 2006-04-13  Mike Kestner  <mkestner@novell.com>
26749
26750         * MenuAPI.cs: null guarding for the disbled click check fixes crash
26751         reported by Alex.
26752
26753 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
26754
26755         * ThemeWin32Classic.cs: 
26756           - Fixed CPDrawStringDisabled
26757           - Corrected drawing of disabled menu items
26758           - Fixed drawing of disabled radio buttons (bug #78095)
26759           - Draw check in a disabled CheckBox with color ControlDark 
26760
26761 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
26762
26763         * Form.cs: Use the provided width when calculating the menu size;
26764           when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
26765           and ClientSize.Width won't be updated yet
26766         * Application.cs: Use Visible instead of Show() to make form visible,
26767           this way we create the handle later and menusize is considered
26768
26769 2006-04-12  Mike Kestner  <mkestner@novell.com>
26770
26771         * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
26772         reporting.
26773
26774 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
26775
26776         * TextBox.cs: Implemented context menu
26777
26778 2006-04-12  Mike Kestner  <mkestner@novell.com>
26779
26780         * ListView.cs: implement box selection. fixes #77838.
26781         * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
26782
26783 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
26784
26785         * XplatUIX11.cs: Added setting of window type when transient window
26786           is created (metacity would move it otherwise)
26787         * X11Structs.cs: Added WINDOW_TYPE atoms
26788         * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
26789           background (the control is Opaque but still wants transparent
26790           backgrounds)
26791
26792 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
26793
26794         * Control.cs: Added OnPaintBackgroundInternal to allow controls
26795           that set Opaque but don't mean it (like all ButtonBase-derived
26796           controls) to still draw their background
26797         * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
26798           the background
26799
26800 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
26801
26802         * Control.cs (PaintControlBackground): Set the graphics object
26803           on our PaintEvent to null to prevent it from being disposed
26804           when the PaintEvent gets disposed
26805
26806 2006-04-12  Alexander Olk  <alex.olk@googlemail.com>
26807
26808         * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
26809         * ThemeNice.cs, ThemeClearlooks.cs: fix typo
26810
26811 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
26812
26813         * Control.cs: 
26814           - Added transparency check to BackColor property. Transparent
26815             backgrounds are only allowed if the control styles permit it
26816           - Added recursive painting of parent control background and
26817             foreground if a control with a transparent backcolor is drawn
26818             (Thanks to Tim Ringenback for providing his 'hack' as a base
26819              for this patch) Fixes #77985 and #78026.
26820           - Added Opaque style check before calling OnPaintBackground, no
26821             need to draw the background if the control is opaque
26822           - Removed ControlAccessibleObject owner variable (inherited from
26823             base, no need to define again)
26824           - Added some documentation links explaining the drawing events
26825             and styles
26826
26827 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
26828
26829         * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
26830           that the affected control is the located at the left border of our
26831           parent (Fixes #77936)
26832
26833 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
26834
26835         * TextBoxBase.cs: When rendering disabled or readonly controls,
26836           draw the background with 'Control' instead of 'Window' color as
26837           long as the user hasn't specifically set a color
26838
26839 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
26840
26841         * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
26842           since that won't be updated if the user types text (only if it's
26843           programatically set)
26844
26845 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
26846
26847         * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
26848           layout changes do to app-triggered resizes will have the proper
26849           display rectangle for layout
26850
26851 2006-04-11  Alexander Olk  <alex.olk@googlemail.com>
26852
26853         * ThemeWin32Classic.cs:
26854           - Make use of the SystemBrushes and SystemPens wherever possible
26855           - Corrected some highlight colors
26856           - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
26857             drawing
26858         * Theme.cs: Added Empty field to CPColor struct
26859
26860 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
26861
26862         * ScrollabeControl.cs: We need to consider whether or not a scrollbar
26863           is displayed when calculating the display rectangle. Thanks to Mike
26864           for teaching me the err of my ways.
26865
26866 2006-04-10  Peter Dennis Bartok  <pbartok@novell.com>
26867
26868         * ScrollableControl.cs:
26869           - Rewrote DisplayRectangle code, now returning the proper x/y coords 
26870             (instead of 0,0) and we now return the real width/height instead of
26871             just the clientrectangle, adjusted for padding. The rectangle is
26872             now cached and created by the new CalculateDisplayRectangle method.
26873           - Created new CalculateDisplayRectange method, which basically does
26874             what get_DisplayRectangle() did originally, but now using the 
26875             right edge instead of DisplayRectangle to determine the size of
26876             our scrollbars
26877           - get_Canvas(): Fixed it to properly calculate canvas for 
26878             right/bottom controls which seem to be placed to the right/bottom
26879             of any controls that have a fixed location
26880           - Removed TODO that's taken care of
26881           - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
26882             and SetDisplayRectLocation according to new MSDN2 docs
26883           - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
26884             event when that is called, this is added for compatibility
26885           - ScrollControlIntoView(): Implemented.
26886           - Switched scrollbars to be implicit, they shouldn't be selectable
26887         * ContainerControl: Now that ScrollControlIntoView is implemented, we 
26888           call it when the active control is set/changed
26889         * ScrollBar.cs: Added support for generating Win32 scrollbar messages
26890         * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
26891           implicit_control variable (used for native Win32 message generation)
26892         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new 
26893           HorizontalScrollBarHeight and VerticalScrollBarWidth properties
26894         * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
26895         * XplatUIStructs.cs: Added ScrollBarCommands enum
26896
26897 2006-04-10  Jackson Harper  <jackson@ximian.com>
26898
26899         * ButtonBase.cs:
26900         * CheckedListBox.cs:
26901         * ComboBox.cs:
26902         * DataGrid.cs:
26903         * DataGridView.cs:
26904         * Form.cs:
26905         * GroupBox.cs:
26906         * ListBox.cs:
26907         * PrintPreviewControl.cs:
26908         * ProgressBar.cs:
26909         * PropertyGrid.cs:
26910         * Splitter.cs:
26911         * StatusBar.cs:
26912         * TrackBar.cs:
26913         * UpDownBase.cs: Fixup base event overrides.
26914         
26915 2006-04-06  Mike Kestner  <mkestner@novell.com>
26916
26917         * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
26918         all user-initiated value changes to min <= value <= max-thumbsz+1.
26919         (set_Value): check for vert/horiz when calculating new thumb position.
26920         (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
26921         like MS does.
26922         (OnMouseMoveSB): refactor the thumb dragging code and refine
26923         invalidation logic to reduce flicker.
26924         (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
26925         (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
26926         (UpdateThumbPosition): small code readability cleanup
26927
26928 2006-04-10  Alexander Olk  <alex.olk@googlemail.com>
26929
26930         * ThemeNice.cs: Small UI polishing. Draw borders a little bit
26931           different
26932
26933 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
26934
26935         * ThemeNice.cs: Use a better graphics effect when a button is pressed
26936
26937 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
26938
26939         * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
26940         * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
26941           This dramatically reduces the number of Pen.Dispose calls. 
26942           Where possible call ResPool methods only once instead of calling it
26943           over and over again (for example for the same color).
26944
26945 2006-04-06  Mike Kestner  <mkestner@novell.com>
26946
26947         * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
26948         Also remove an unused private field on the collection. Fixes #77972.
26949
26950 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
26951
26952         * ThemeNice.cs: Added ToolBar drawing code
26953
26954 2006-04-06  Mike Kestner  <mkestner@novell.com>
26955
26956         * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
26957         I'm assuming that means we need to look up the toplevel for the
26958         provided control. Fixes the crash trace in #77911 but exposes another
26959         crash in some strange reflection usage in NDocGui.
26960
26961 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
26962
26963         * ThemeNice.cs: Gave it a little silver touch and added Images
26964           method
26965         * FontDialog.cs: FontDialog is not resizable
26966         * FileDialg.cs: Added SizeGripStyle.Show
26967
26968 2006-04-05  Jackson Harper  <jackson@ximian.com>
26969
26970         * KeyboardLayouts.cs: Remove warning.
26971
26972 2006-04-05  Jackson Harper  <jackson@ximian.com>
26973
26974         * Control.cs: Enable OnPaintInternal so we can use it for drawing
26975         all of our controls instead of Paint +=.
26976         * ListBox.cs:
26977         * ListView.cs:
26978         * MenuAPI.cs:
26979         * MessageBox.cs:
26980         * NotifyIcon.cs:
26981         * ProgressBar.cs:
26982         * ScrollBar.cs:
26983         * Splitter.cs:
26984         * StatusBar.cs:
26985         * TabControl.cs:
26986         * TextBoxBase.cs:
26987         * ToolBar.cs:
26988         * TrackBar.cs:
26989         * UpDownBase.cs:
26990         * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
26991         use OnPaintInternal. Remove Width/Height and Visible checks in
26992         paint handler, this is done at a higher level now.
26993         * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
26994         * PaintEventArgs.cs: Add a handled flag so controls that don't
26995         want anymore painting after OnPaintInternal can make sure OnPaint
26996         isn't called.
26997
26998 2006-04-05  Mike Kestner  <mkestner@novell.com>
26999
27000         * Form.cs: fix the menu WndProc hacks to respect the native enabled
27001         state of the form, so that we don't process events when Modal dialogs
27002         are up. Fixes #77922.
27003
27004 2006-04-05  Alexander Olk  <alex.olk@googlemail.com>
27005
27006         * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
27007           checking is done.
27008
27009 2006-04-05  Mike Kestner  <mkestner@novell.com>
27010
27011         * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
27012
27013 2006-04-05  Mike Kestner  <mkestner@novell.com>
27014
27015         * ListView.cs (HeaderMouseMove): null guarding for the over column
27016         when setting up the drag_to_index.  Fixes #78015.
27017
27018 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com>
27019
27020         * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
27021           in the taskbar. Transient windows seem to accomplish that.
27022
27023 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com> 
27024
27025         * Form.cs:
27026           - Re-enabled CreateParams.X/Y code for FormStartPosition
27027           - Added code for manual placement when creating the Control
27028           - Incomplete patch to treat MDI forms differently when
27029             setting the ClientSizeCore. (Still need to figure out handling
27030             x/y coords there)
27031         * XplatUIX11.cs:
27032           - When we're explicitly setting the X/Y position of a non-Child
27033             window, let the WM know. Metacity really wants this.
27034
27035 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
27036
27037         * ThemeNice.cs: Added CPDrawButton
27038
27039 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
27040
27041         * ThemeNice.cs: Changed the color for focused buttons and activated
27042           the arrows for small scroll buttons.
27043
27044 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
27045
27046         * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
27047           anymore. Changed some method modifiers to protected (virtual)
27048         * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
27049           changes
27050         * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
27051           Updated drawing of menus, buttons and progressbars; added
27052           CPDrawBorder3D 
27053
27054 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
27055
27056         * ImageListStreamer.cs: implemented serialization/deserialization
27057         of the images.
27058
27059 2006-04-03  Alexander Olk  <alex.olk@googlemail.com>
27060
27061         * ThemeWin32Classic.cs:
27062           - Removed all the DrawFrameControl stuff; CPDrawButton,
27063             CPDrawCheckBox and CPDrawRadioButton are now handled directly
27064             inside the methods
27065           - Updated and corrected the drawing code of CPDrawButton,
27066             CPDrawCheckBox and CPDrawRadioButton to better match ms
27067           - Updated theme checkbox and radiobutton code to use the CP*
27068             methods
27069
27070 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
27071
27072         * XplatUIX11.cs: Enable clipping again now that the libgdiplus
27073           bug is fixed
27074
27075 2006-03-31  Jackson Harper  <jackson@ximian.com>
27076
27077         * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
27078         sometimes.
27079         * UpDownBase.cs: Don't CreateGraphics manually, use a
27080         Refresh. Ideally we would invalidate the correct areas here.
27081
27082 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
27083
27084         * XplatUIX11.cs: 
27085           - We now track the mapping state of windows. If a window (or 
27086             one of it's parents) is not mapped we no longer permit
27087             WM_PAINT messages to be generated since we'd otherwise get 
27088             lots of BadMatch X errors. Jackson did all the work figuring
27089             out the problem.
27090           - Destroying the caret if the window it's contained in is 
27091             destroyed. Can't use regular DestroyCaret method since it
27092             might fall into a drawing function (trying to remove the
27093             caret) and with that generate new BadMatch errors. Again,
27094             Jackson tracked this down.
27095           - Changed DestroyChildWindows to SendWMDestroyMessages, we now
27096             make sure we send the messages to all windows. (The old code
27097             would send the WM_DESTROY to the window, and then all child
27098             windows would be 'gone' because the WM_DESTROY handle lookup
27099             would no longer find the destroyed window)
27100         * Hwnd.cs: Added Mapping property to track mapping state of hwnd
27101         * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
27102
27103 2006-03-31  Jackson Harper  <jackson@ximian.com>
27104
27105         * ScrollableControl.cs: Dont recalc if we are not visible.
27106
27107 2006-03-31  Mike Kestner  <mkestner@novell.com>
27108
27109         * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
27110         the visibility branch.
27111
27112 2006-03-31  Jackson Harper  <jackson@ximian.com>
27113
27114         * ScrollBar.cs: Cap values when incrementing/decrementing.
27115
27116 2006-03-31  Mike Kestner  <mkestner@novell.com>
27117
27118         * MenuAPI.cs: setup menu.tracker for popup/context menus.
27119         * ToolTip.cs: guard against timer expirations with no active control.
27120         Not sure why it happened.
27121
27122 2006-03-31  Mike Kestner  <mkestner@novell.com>
27123
27124         * ThemeWin32Classic.cs: add some horizontal padding space for the tip
27125         text.
27126         * ToolTip.cs: Position the tooltip based on where the cursor is at
27127         popup time, not at MouseEnter time.  Add a Down state so that we don't
27128         redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
27129         positioning offset. Lookup DisplaySize at positioning time, since it
27130         can theoretically change during invocation.
27131         * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
27132         * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
27133
27134 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
27135
27136         * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
27137           Fixes behaviour when the Text property of the box is String.Empty
27138
27139 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com>
27140
27141         * XplatUIX11.cs: Only send mouseleave for our client windows, not
27142           for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
27143           a window)
27144
27145 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
27146
27147         * FileDialog.cs: Visual enhancement for the popup buttons in 
27148           PopupButtonPanel
27149
27150 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
27151
27152         * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
27153           code
27154
27155 2006-03-30  Alexander Olk  <alex.olk@googlemail.com>
27156
27157         * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
27158           highlighted menu items to match ms
27159
27160 2006-03-30  Peter Dennis Bartok  <pbartok@novell.com> 
27161
27162         * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
27163
27164 2006-03-30  Mike Kestner  <mkestner@novell.com>
27165
27166         * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
27167         * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
27168         go active to account for HotLight to Selected transition.
27169         * MenuItem.cs: add internal Selected prop. Fill out the Status
27170         property by calculating it from item info. Add HotLight,
27171         NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
27172
27173 2006-03-30  Mike Kestner  <mkestner@novell.com>
27174
27175         * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
27176
27177 2006-03-29  Jackson Harper  <jackson@ximian.com>
27178
27179         * Form.cs: Implement TODO.
27180
27181 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com> 
27182
27183         * PrintPreviewDialog.cs: Implemented missing methods and events; still
27184           missing proper dialog setup in the constructor
27185
27186 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com>
27187
27188         * ProgressBar.cs: Added 2.0 Style property that apps seem to use
27189         * Control.cs:
27190           - Implemented CheckForIllegalCrossThreadCalls, removed TODO
27191           - Fixed ResetBindings and removed TODO
27192           - Added check for cross-thread calls to get_Handle()
27193           - Added Marshaller attribute for set_Font to satisfy class status
27194         * FontDialog.cs: Removed TODOs that seemed implemented
27195         * UpDownBase.cs: Removed unneeded TODO and Fixme
27196         * MessageBox.cs: Implemented support for Default button and removed TODO
27197         * FileDialog.cs: Removed obsolete TODO
27198         * DomainUpDown.cs: Removed obsolete TODO
27199         * ButtonBase.cs: Removed obsolete TODO
27200         * XplatUIWin32.cs: Removed obsolete TODO
27201         * Form.cs:
27202           - Removed obsolete TODO
27203           - Calling CheckAcceptButton when the acceptbutton is changed to allow
27204             internal status updates
27205           - Making sure the active control is selected when the control is created
27206         * CurrencyManager.cs: Removed obsolete TODO
27207
27208 2006-03-29  Mike Kestner  <mkestner@novell.com>
27209
27210         * *.cs: fix remaining corcompare issues for 1.1 API with the exception
27211         of PrintPreviewDialog and RichTextBox.
27212
27213 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
27214
27215         * Theme.cs: Added a little helper to SystemResPool to get the Dark,
27216           DarkDark, Light and LightLight colors for a specific color
27217         * ThemeWin32Classic.cs:
27218           - Use Button drawing code to draw RadioButtons and CheckBoxes with
27219             Appearance = Button 
27220           - Make use of the new ResPool helper CPColor
27221           - Draw ProgressBar and StatusBar with correct 3D borders
27222
27223 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
27224
27225         * ColorDialog.cs: Return selected color. Fixes bug #77940.
27226
27227 2006-03-28  Mike Kestner  <mkestner@novell.com>
27228
27229         * ListView.cs: fix Icon layout to plan for scrollbar widths when
27230         calculating col/row counts.
27231
27232 2006-03-28  Mike Kestner  <mkestner@novell.com>
27233
27234         * ColumnHeader.cs:
27235         * ListView.cs:
27236         * ListViewItem.cs:
27237         * Menu.cs: 
27238         switch to explicit interface method implementation for some methods
27239         corcompare identifies as inconsistent with MS.
27240
27241 2006-03-28  Mike Kestner  <mkestner@novell.com>
27242
27243         * MainMenu.cs: 
27244         * Menu.cs:
27245         add a few missing methods from the class status output.
27246
27247 2006-03-28  Alexander Olk  <alex.olk@googlemail.com>
27248
27249         * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
27250           correct.
27251
27252 2006-03-28  Mike Kestner  <mkestner@novell.com>
27253
27254         * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
27255
27256 2006-03-27  Mike Kestner  <mkestner@novell.com>
27257
27258         * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
27259         the Hilight state to adapt to Alex's CPDrawBorder3D changes.
27260
27261 2006-03-27  Alexander Olk  <alex.olk@googlemail.com>
27262
27263         * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
27264
27265 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
27266
27267         * ThemeWin32Classic.cs:
27268           - GroupBox: Inserted a little gap between the text and the lines
27269             on the right side
27270           - Made the code in CPDrawBorder3D more readable
27271           - Corrected the drawing location of the up and down arrows in 
27272             CPDrawScrollButton
27273
27274 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
27275
27276         * ControlPaint.cs: Corrected line widths in DrawBorder for
27277           ButtonBorderStyle Inset and Outset
27278
27279 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
27280
27281         * ThemeWin32Classic.cs:
27282           - Rewrote the totally broken CPDrawBorder3D method. That was
27283             one of the main problems for the terrific ThemeWin32Classic
27284             look
27285           - Updated and corrected Button drawing
27286           - Correct the dimensions of the SizeGrip to match ms ones
27287           - Removed a small drawing glitch in DrawComboBoxEditDecorations
27288         * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
27289           Border3DStyle.Sunken to match ms.
27290
27291 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
27292
27293         * ThemeWin32Classic.cs: First small part of the "de-uglify
27294           ThemeWin32Classic" effort, SizeGrip
27295
27296 2006-03-24  Jackson Harper  <jackson@ximian.com>
27297
27298         * XplatUIX11.cs: Give a max idle time of one second, this matches
27299         MS and forces an Idle event every second when there are no other
27300         events in the queue.
27301
27302 2006-03-24  Mike Kestner  <mkestner@novell.com>
27303
27304         * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
27305         * ListView.Item.cs: fix layout issues with null image lists and images
27306         smaller than checkbox size.
27307         * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
27308         mode like MS does.  It's weird, but consistent.  ;-)
27309         Fixes #77890.
27310
27311 2006-03-24  Mike Kestner  <mkestner@novell.com>
27312
27313         * ListView.cs: Scroll wheel support for the item control.  Fixes
27314         #77839.
27315
27316 2006-03-23  Jackson Harper  <jackson@ximian.com>
27317
27318         * ScrollableControl.cs: Special case negative sized areas, not
27319         zero.
27320         * MonthCalendar.cs: Save the rect of the clicked date so we can
27321         use it for invalidation.
27322         - Try to cut down on the number of invalidates
27323         - Invalidate the rect the mouse is over and was over when moving
27324         the mouse, so we get the focus box following the cursor.
27325
27326 2006-03-23  Mike Kestner  <mkestner@novell.com>
27327
27328         * ThemeWin32Classic.cs: fix FullRowSelect selection background and
27329         focus rectangle drawing. Fixes #77835.
27330
27331 2006-03-23  Mike Kestner  <mkestner@novell.com>
27332
27333         * XplatUIX11.cs: rework the fix for #77828 by changing the order of
27334         the if and else if and reverting back to the original == check on the
27335         None conditional.
27336
27337 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
27338
27339         * FontDialog.cs: Update the example panel if the selected index of
27340           the fontListBox changes.
27341
27342 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
27343
27344         * FileDialog.cs: Make FileDialog remember which directory it was in
27345           last in the same execution.
27346
27347 2006-03-22  Mike Kestner  <mkestner@novell.com>
27348
27349         * FileDialog.cs: make the DropDownMenu on the toolbar display
27350         RadioChecks since they are mutually exclusive and that's what MS does.
27351
27352 2006-03-22  Mike Kestner  <mkestner@novell.com>
27353
27354         * Theme.cs: add Color param to CPDrawMenuGlyph.
27355         * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
27356         checks and radio marks and arrows are visible on highlighted items.
27357         * ControlPaint.cs: update to use new Theme signature.
27358
27359 2006-03-22  Mike Kestner  <mkestner@novell.com>
27360
27361         * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
27362         is active. Fixes #77870.
27363
27364 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
27365
27366         * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
27367           to be focused/selected after startup
27368
27369 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
27370
27371         * ColorDialog.cs: 
27372           - Corrected behaviour of Color, AllowFullOpen, FullOpen,
27373             CustomColors and ShowHelp properties
27374           - Some internal rewrites to get better results when using the
27375             ColorMatrix
27376
27377 2006-03-22  Mike Kestner  <mkestner@novell.com>
27378
27379         * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
27380         HoverSelection.  Fixes #77836.
27381
27382 2006-03-22  Mike Kestner  <mkestner@novell.com>
27383
27384         * FileDialog.cs: bugfixes for the toolbar.  Use PushButtons instead of
27385         ToggleButtons.  (De)Sensitize the Back button around a stack count of
27386         1, not 0.  Update ButtonSize based on a pixel count of the win32
27387         control.  Adjust the toolbar size/location for new button size.
27388
27389 2006-03-22  Jackson Harper  <jackson@ximian.com>
27390
27391         * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
27392         true.
27393         * ScrollBar.cs: When doing increments and decrements we need to
27394         set the Value property so that ValueChanged gets raised. A
27395         possible optimization here would be to make an internal SetValue
27396         that doesn't invalidate immediately.
27397         * ToolTip.cs: Tooltips get added to their container (when
27398         supplied) so they get disposed when the container is disposed.
27399         - Don't create tooltips for String.Empty. This prevents all these
27400         little 2-3 pixel windows from showing up when running nunit-gui
27401         and driving me mad.
27402         * Form.cs: Don't set topmost when setting the owner if the handles
27403         haven't been created yet.  The topmost set will happen when the
27404         handles are created.
27405
27406 2006-03-22  Peter Dennis Bartok  <pbartok@novell.com> 
27407
27408         * XplatUIX11.cs:
27409           - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
27410           - SetVisible: Sending WINDOWPOSCHANGED for all controls when made 
27411             visible (to allow them to recalculate their sizes)
27412
27413 2006-03-21  Mike Kestner  <mkestner@novell.com>
27414
27415         * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
27416         methods. Removed a ton of redundant code.  Still not really happy with
27417         the border rendering, but I think that's mainly because of the
27418         ControlDarkDark being black instead of a dark grey. Depending on how 
27419         close we want to be, we might want to revisit those color choices.
27420         Among the new features added during the refactor were DropDownArrow
27421         pressed rendering, Disabled image rendering.  Proper flat appearance
27422         boundary rendering.  Removed the Divider and Wrapping dividers since I
27423         can't figure out any combination of themes and conditions to make the
27424         MS control draw a horizontal line on a toolbar despite what the
27425         Divider property docs indicate.
27426         * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
27427         conditions and incorrect layout.  Updated to coding standard.
27428         * ToolBarButton.cs: refactored layout and positioning code from
27429         ToolBar to here.  Invalidate wherever possible instead of forcing
27430         redraws of the whole toolbar. 
27431         (Known remaining issues: explicit ButtonSize smaller than provided
27432         images.)
27433
27434 2006-03-21  Mike Kestner  <mkestner@novell.com>
27435
27436         * ContextMenu.cs (Show): use the position parameter instead of just
27437         showing at the MousePosition.
27438
27439 2006-03-21  Jackson Harper  <jackson@ximian.com>
27440
27441         * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
27442         control handle this.
27443         * TreeNodeCollection.cs: If we are clearing the root node we need
27444         to reset top_node so calcs can still happen.
27445         * ThemeWin32Classic.cs: This is a Flags so we need to check
27446         properly.
27447         
27448 2006-03-21  Jackson Harper  <jackson@ximian.com>
27449
27450         * DataGrid.cs: Create columns when the binding context has been
27451         changed.
27452         * X11Structs.cs: Keysyms are uints.
27453         - Add size to fix build.
27454
27455 2006-03-21  Peter Dennis Bartok  <pbartok@novell.com> 
27456
27457         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
27458           XplatUIOSX.cs: 
27459           - Added ResetMouseHover method to allow controls to retrigger
27460             hovering if they need it more than once
27461           - Implemented MouseHoverTime and MouseHoverSize properties
27462         * Timer.cs: Start() must reset the interval
27463         * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
27464           properties
27465
27466 2006-03-21  Jackson Harper  <jackson@ximian.com>
27467
27468         * X11Keyboard.cs: improved layout detection. Move the nonchar
27469         tables into this file.
27470         * KeyboardLayouts.cs: Move the tables into resource files.
27471
27472 2006-03-21  Mike Kestner  <mkestner@novell.com>
27473
27474         * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
27475
27476 2006-03-21  Alexander Olk  <alex.olk@googlemail.com>
27477
27478         * Mime.cs: Various speed optimizations. Looking up mime types
27479           is now 2 times faster than before
27480
27481 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com> 
27482
27483         * CreateParams.cs: Added internal menu field
27484         * Control.cs: 
27485           - Switched call order for UpdateBounds; now we always call
27486             the one that also takes ClientSize, and we're calculating the 
27487             client size via driver method in the others. The previous
27488             method of tracking client size by difference wasn't working
27489             for forms where even the starting client size wouldn't match
27490             the overall form size (due to borders) (Part of fix for #77729)
27491           - CreateParams(): Do not use parent.Handle unless the handle is
27492             already created. Causes havoc with Nexxia and throws off our
27493             creation of controls
27494         * XplatUIX11.cs:
27495           - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
27496           - Switched handling of ConfigureNotify over to new PerformNCCalc 
27497             method (consolidates code)
27498           - Changed RequestNCRecalc to use new PerformNCCalc method
27499           - Added calls to RequestNCRecalc when menus and borders are changed
27500             to allow app to set NC size. (Part of fix for #77729) This matches
27501             when MS send a WM_NCRECALC on Win32 windows.
27502           - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
27503             (Part of fix for #77729). This matches what MS does, they also
27504             send that message when the form is made visible.
27505           - XException.GetMessage: Improved usability of X errors by including
27506             a translation of the window into Hwnd and Control class
27507           - Improved debug info for window creation, reparenting and destruction
27508           - Created helper method WindowIsMapped() [Currently not used]
27509         * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
27510         * Form.cs:
27511           - CreateParams: Now setting our menu on the new internal menu field
27512           - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
27513             avoid calculating the same property twice
27514         * Hwnd.cs:
27515           - Improved usability of ToString() for debugging purposes
27516           - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
27517             determine the height of the menu, instead of just the font. This
27518             required to also create a graphics context and to keep a bmp 
27519             around (for performance reasons)
27520
27521 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com>
27522
27523         * MenuAPI.cs: Added OnMouseUp method
27524         * Form.cs:
27525           - Now remembering the requested client size, avoids size errors
27526           - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
27527             instead of base if the menu is active. This is required due to
27528             control now capturing and releasing on down/up and it would
27529             prematurely release our menu capture
27530
27531 2006-03-17  Jackson Harper  <jackson@ximian.com>
27532
27533         * KeyboardLayouts.cs: Add the czech layouts.
27534
27535 2006-03-16  Jackson Harper  <jackson@ximian.com>
27536
27537         * Control.cs: Use the viewport space when sizing not the controls
27538         client size, so things like ScrollableControl that effect the
27539         viewport size (when scrollbars are added) are computed correctly.
27540         * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
27541         of ManagerEntrys.
27542         - Handle creating BindingManagers for null data sources.
27543         * DataGrid.cs: Bind the cached_currencymgr_events to the real data
27544         source, otherwise when rows are added they are added to the 'fake'
27545         datasource and we will crash when trying to set the position in
27546         those rows.
27547         - Use Implicit scrollbars on the datagrid so they arent
27548         selectable.
27549         
27550 2006-03-16  Jackson Harper  <jackson@ximian.com>
27551
27552         * Binding.cs:
27553         * InternalWindowManager.cs:
27554         * MdiWindowManager.cs:
27555         * X11Keyboard.cs: I really want Mike to love me again (fix
27556         compiler warnings).
27557
27558 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com>
27559
27560         * DataGrid.cs:
27561           - OnMouseDown: Switch to editing mode when clicking on the cell
27562                          even if we're clicking on the cell that's currently 
27563                          selected
27564           - ProcessGridKey: Left/Right now wrap like MS.Net does
27565           - ProcessGridKey: Tab now knows to add a new row when tab is
27566                             pressed in the cell of the last column of the 
27567                             last row
27568           - ProcessGridKey: Enter now adds another row  if pressed in the last
27569                             row and selectes the new row, same column cell
27570           - ProcessGridKey: Home/End navigate columns, not rows, like 
27571                             originally implemented
27572           - Broke ProcessKeyPreview code out into an extra Internal method
27573             so it can be called from the edit code
27574         * DataGridTextBox.cs (ProcessKeyMessage):
27575           - Switched to accept Tab keypresses
27576           - Added F2 handling to allow jumping to the end of the edited cell
27577           - Added logic to allow moving caret left/right inside edited cell
27578             and making the edited cell jump when the caret hits cell borders
27579           - Tab and Enter are now passed to the datagrid after being handled
27580         * TextBoxBase.cs:
27581           - Removed capture code now that Control handles it
27582           - set_SelectionStart now ensures caret is visible
27583
27584 2006-03-16  Jackson Harper  <jackson@ximian.com>
27585
27586         * TrackBar.cs: Debackwards the increment/decrement for handling
27587         mouse clicks on the bar with vertical trackbars.
27588         * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
27589         bottom to match MS.
27590
27591 2006-03-16  Mike Kestner  <mkestner@novell.com>
27592
27593         * ListView.cs: make shift/ctrl keyboard and mouse selection 
27594         consistent with the MS control. Fix a bug in
27595         SelectedListViewItemCollection.Clear that was pissing me off for the
27596         better part of a day because the collection was being altered
27597         underneath us as we walked the list.
27598
27599 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com> 
27600
27601         * Control.cs: Not sure how we could miss this so long, but it seems
27602           that MS.Net has Capture set all the way from before calling 
27603           OnMouseDown through sending the mouse events until after
27604           OnMouseUp. This will fix DataGrid's selection being set to end
27605           at the location of the MouseUp.
27606
27607 2006-03-15  Jackson Harper  <jackson@ximian.com>
27608
27609         * BindingContext.cs: Check the binding after its added so that it
27610           can initialize the binding managers and hookup to events.
27611         * Binding.cs: Data members seem to sometimes include rows/cols in
27612           the format Row.Column we now take this into account.
27613           - Hookup to the position changed event so we can update the
27614           control when the position has changed in the data set.
27615         * CurrencyManager.cs: Take into account the row/col naming
27616           convention when creating dataset tables.
27617         * BindingContext.cs: Using a newer better way of storing
27618           datasource/datamember pairs.  Hopefully this better matches MS for
27619           looking up binding managers.
27620
27621
27622 2006-03-15  Jackson Harper  <jackson@ximian.com>
27623
27624         * BindingContext.cs: The currency manager needs the data member
27625         name, if the member is a data set we use the name to find the
27626         correct table.
27627         * CurrencyManager.cs: When creating the list prefer an IList over
27628         an IListSource.
27629         - Attempt to create a DataTable from a DataSet (TODO: might need
27630         some better error checking here, although MS doesn't seem to have much)
27631         - If we have a DataTable create a view and use it as our list.
27632
27633 2006-03-15  Mike Kestner  <mkestner@novell.com>
27634
27635         * ListView.cs: keep a matrix of the icon mode layout to facilitate
27636         keyboard navigation. Support Up/Down/Left/Right selection correctly
27637         for all 4 View modes.
27638         * ListViewItem.cs: add internal row/col fields for icon layouts.
27639
27640 2006-03-15  Jackson Harper  <jackson@ximian.com>
27641
27642         * TabControl.cs: Redraw the tabs when we resize so their newly
27643         calculated sizes are drawn on screen.
27644         * X11Keyboard.cs: Begginnings of XIM support.  We also now support
27645         composite characters.
27646         * XplatUIX11.cs: Keyboard driver needs to know about focus changes
27647         - filter events so that composite characters can be created
27648         patches by peter
27649         * X11Structs.cs: Add XIMProperties enum.
27650
27651 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
27652
27653         * Control.cs (BringToFront, SendToBack): Don't use window or handle
27654           unless it's created
27655
27656 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
27657
27658         * Control.cs (PerformLayout): We don't need to consider visiblity
27659           for anchoring, only for docking. This fixes 'whacky' alignment
27660           in listbox and other controls that use implicit scrollbars after
27661           the previous PerformLayout patch
27662         * ListBox.cs: Switched to use implicit scrollbars
27663           
27664 2006-03-14  Mike Kestner  <mkestner@novell.com>
27665
27666         * ToolBar.cs: 
27667         * VScrollBar.cs:
27668         - chain up the "new event" overrides to base and use
27669         OnEvent to raise them.  Part of fix for bug #76509.
27670
27671 2006-03-14  Alexander Olk  <alex.olk@googlemail.com>
27672
27673         * FileDialog.cs: Do not select an item in the parent directory
27674           on backspace
27675
27676 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
27677
27678         * Control.cs (PerformLayout): It would seem that we considered
27679           invisible windows for our layout. Not quite the right thing
27680           to do. Now we don't any longer, thereby fixing bug #76889.
27681
27682 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
27683
27684         * Control.cs (CanFocus): I goofed. A control can have focus 
27685           even though it's not selectable. Made it match MS docs.
27686
27687 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
27688
27689         * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
27690           center by default (fixes #76895)
27691         * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced 
27692           all uses of Border3DSides.All with the explicit ORd together
27693           Left|Right|Top|Bottom because I assume that nobody was aware 
27694           that All also implies a center fill. Most places I checked had
27695           a fill right above.
27696         * ProgressBarStyle.cs: Added
27697
27698 2006-03-13  Mike Kestner  <mkestner@novell.com>
27699
27700         * ListView.cs: fix breakage in drag shadow header positioning 
27701         from Peter's csc compilation fix.
27702
27703 2006-03-13  Mike Kestner  <mkestner@novell.com>
27704
27705         * ListView.cs: fix NRE produced by backspacing twice in a focused
27706         FileDialog.
27707
27708 2006-03-13  Mike Kestner  <mkestner@novell.com>
27709
27710         * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
27711
27712 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
27713
27714         * Hwnd.cs: Added fixed_size field to track windows whose size cannot
27715           be changed
27716         * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
27717           the allowed size before making programmatic size changes
27718
27719 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com> 
27720
27721         * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are 
27722           set, metacity is broken and will still use the emty sizes in 
27723           the struct. (Fix for #77089)
27724
27725 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
27726
27727         * XplatUIStructs.cs: Split WindowStyles into WindowStyles and 
27728           WindowExStyles and marked both enums as Flags
27729         * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
27730           NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
27731           to match WindowStyles split
27732         * XplatUIX11.cs:
27733           - SetWMStyles: Added cehck to not apply WM attributes to Child windows
27734           - Updated to match WindowStyles split
27735         * XplatUIWin32.cs:
27736           - Fixed FosterParent creation, was using ExStyle on the Style field
27737             (This should help with Popup focus issues)
27738           - Updated to match WindowStyles split
27739
27740 2006-03-13  Jackson Harper  <jackson@ximian.com>
27741
27742         * MdiWindowManager.cs: Use the system menu height. Fixes some
27743         strange sizing issues.
27744
27745 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
27746
27747         * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
27748         * TextBoxBase.cs:
27749           - Scroll to caret after inserting text (#77672)
27750           - Make scroll range one pixel higher, fixes off-by-one error (and
27751             makes underlines visible on the last line)
27752
27753 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com> 
27754
27755         * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
27756           the keyboard state from being stuck with keys in 'pressed' state when
27757           focus is switched away via keyboard
27758         * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
27759           reset the keyboard if no X11 KeyUp events are expected to come
27760         * X11Structs.cs: Switched type of Visible to bool to match driver
27761
27762 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
27763
27764         * TextControl.cs:
27765           - Switched caret to be just 1 pixel wide, matches MS and looks less
27766             clunky
27767           - Moved caret display 1 pixel down from the top of the control
27768             to improve view
27769           - InsertCharAtCharet: Update the selection start if moving the caret
27770             (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
27771           - No longer always creating the caret when the caret methods are
27772             called. Only the actual ShowCaret/HideCaret will do that now
27773           - Only setting caret visible if the owner control has focus
27774           - UpdateView: Added invalidation-shortcut logic for center and right 
27775             aligned text. Previously we'd update all according to the left
27776             logic which caused drawing errors. Also fixed height of invalidated
27777             areas, now properly invalidating the whole area (was off-by-one)
27778           - owner_HandleCreated: Always generate the document when the
27779             handle is created; this ensures that 
27780         * TextBoxBase.cs:
27781           - Fixed situation where caret would disappear under the right
27782             window border, also improved scrolling behaviour on left-
27783             aligned textboxes
27784           - Fixed right-aligned textboxes to have a border to the
27785             right instead of the caret being under the right border
27786         * XplatUIX11.cs:
27787           - Switched from 'nested' to simple visible/not visible tracking 
27788             for caret (part of fix for #77671)
27789           - No longer passing through translated FocusIn/FocusOut messages
27790             since we were notifying too often and the wrong windows. Instead
27791             we just notify our focussed window of receiving or loosing focus
27792         * XplatUIWin32.cs: Switched from 'nested' show/hide 
27793           counting for caret to simple visible yes/no behaviour (part of 
27794           fix for #77671)
27795
27796 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
27797
27798         * Mime.cs: Remove debug code...
27799
27800 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
27801
27802         * MimeGenerated.cs: Removed
27803         * Mime.cs: Mime now reads the mime data (magic, globs, aliases
27804           and subclasses) from /usr/(local/)share/mime and
27805           $HOME/.local/share/mime.
27806
27807 2006-03-10  Jackson Harper  <jackson@ximian.com>
27808
27809         * MdiWindowManager.cs: Recalc the NC area when a window is
27810         maximized/restored so that the menu area is drawn on forms that
27811         don't have a menu.
27812
27813 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
27814
27815         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
27816           XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
27817           us to force a WM_NCCALCRESIZE message being sent. This is needed
27818           for MDI maximizing.
27819
27820 2006-03-10  Jackson Harper  <jackson@ximian.com>
27821
27822         * Form.cs: We need to use the ActiveMenu when calculating menu
27823         height.
27824         - Fix nullref when the window manager hasn't been created yet.
27825         * Control.cs: Fix nullref when we try to bring a control to the
27826         front that has no parent.
27827         * MdiWindowManager.cs: Use the MaximizedMenu for calculating
27828         height.
27829         - Add a dummy item to the maximized menu so it always has the
27830         correct height. Otherwise when there are no menus we don't get our
27831         icon and buttons.
27832         
27833
27834 2006-03-10  Jackson Harper  <jackson@ximian.com>
27835
27836         * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
27837         stuff.
27838         * Form.cs: Make the window_state internal so the window managers
27839         can track it.
27840         - When an MDI child is maximized let its window manager create the
27841         main menu (so it can add its icon).
27842         - Notify the window managers of state changes
27843         - Let the window manager paint its buttons and handle button
27844         clicks on the menu when it is maximized.
27845         * InternalWindowManager.cs: Move the prev_bounds into the mdi
27846         window manager, since tool windows don't use it, only mdi windows.
27847         - Tell the main form that we don't want it to handle NCPAINT
27848         itself to avoid extra painting.
27849         - Handle clicks on a maximized windows menu.
27850         - Handle window state changes
27851         - Handle minimize/maximize clicks correctly by setting the window state.
27852         * MdiWindowManager.cs: Add an icon menu that (the menu you get
27853         when clicking on the forms icon).
27854         - New method to create a forms maximized menu. This is its normal
27855         menu + an icon.
27856         - Handle window state changes.
27857         - Handle sizing of maximized windows.  Maximized windows are just
27858         drawn bigger then the parent visible area. All controls are still
27859         there, they are just outside the visible area (this matches windows).
27860         * MdiClient.cs: No scrollbars when a child window is maximized.
27861         - Let the children windows figure out how big they should be when
27862         sizing maximized windows.
27863         - Implement a version of ArrangeIconicWindows somewhat similar to
27864         Windows version.  There are some little differences, but I don't
27865         think any app will rely on the layout of minimized mdi windows.
27866
27867 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
27868
27869         * Padding.cs: Several fixes to allow compiling with csc 2.0
27870
27871 2006-03-09  Jackson Harper  <jackson@ximian.com>
27872
27873         * Menu.cs:
27874         * MenuItem.cs: Cheap hack so we can add items to the list without
27875         the events being raised.  This allows adding mdi items during
27876         drawing. TODO: Should probably find a better time to add the items.
27877
27878 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
27879
27880         * ThemeWin32Classic.cs:
27881           - CheckBox_DrawText: Added logic to not wrap if not enough space
27882             is available (Fix for bug #77727)
27883           - RadioButton_DrawText: Added logic not to wrap if not enough
27884             space is available (Fix for bug #77727). Also removed some
27885             duplicate code, DrawString always drawing the regular text
27886             before hitting the if statement.
27887
27888 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com> 
27889
27890         * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
27891
27892 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
27893
27894         * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
27895         * ContainerControl.cs: Partial implementation of some 2.0 scaling
27896           methods. Moved the new 2.0 properties into alphabetical order with
27897           other properties and added MonoTODO tags
27898
27899 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
27900
27901         * AutoScaleMode.cs: Added. Fix build.
27902
27903 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
27904
27905         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
27906           XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
27907           and was requiring premature handle creation for calls from above
27908         * Form.cs, Control.cs: Removed handle arguments from calls to
27909           CalculateClientRect()
27910
27911 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
27912
27913         * ListView.cs (HeaderMouseMove): Fix csc compilation. 
27914           drag_column.column_rect is MarshalByRef and can't be used that way
27915
27916 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
27917
27918         * AxHost.cs: Added deserialization constructor for 
27919           AxHost+State (fixes 77743)
27920
27921 2006-03-09  Mike Kestner  <mkestner@novell.com>
27922
27923         * ListView.cs: 
27924         - Added column drag reordering for details view.
27925         - fixed behavior when mouse is dragged off column and
27926         AllowColumnReorder is false.
27927         * ColumnHeader.cs: clone the format too in Clone.
27928         * Theme.cs: add DrawListViewHeaderDragDetails method.
27929         * ThemeWin32Classic.cs:
27930         - impl new method for drawing drag column shadows and targets.
27931         - support column offset for details mode in DrawListViewItem.
27932
27933 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
27934
27935         * TextControl.cs: Reset the char_count when the document is cleared
27936           (Fixes bug reported on mono-winforms mailing list)
27937
27938 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
27939
27940         * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
27941           of calling base we simply process the key ourselves, since both
27942           DefWindowProc and the handled method would set m.Result. 
27943           (Fixes #77732)
27944
27945 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
27946
27947         * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
27948           method also moves the window; instead implemented a copy of
27949           Control.ScaleCore (Part of fix for #77456)
27950         * TextBoxBase.cs: 
27951           - Created new CreateGraphicsInternal method to allow providing
27952             a graphics context when no handle is created without triggering
27953             handle creation. (Part of fix for #77456)
27954           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
27955         * TextControl.cs: 
27956           - Switched Constructor to require TextBoxBase instead of Control (to
27957             allow uncast access to CreateGraphicsInternal)
27958           - Safeguarded use of owner.Handle property. No longer accessing it
27959             unless the handle is already created.
27960           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
27961           - Now triggering a recalc when owning control becomes visible
27962         * TextBox.cs, RichTextBox.cs: Switched to use new internal 
27963           TextBoxBase.CreateGraphicsInternal() method to avoid triggering
27964           premature handle creation (Part of fix for #77456)
27965         * Control.cs:
27966           - We now only destroy our double-buffering buffers when the
27967             control is resized or disposed, but not when visibility
27968             changes. (The code even re-created them twice every time)
27969           - Now requiring a redraw of the buffer on visibility changes
27970             (fixes bug 77654 part 2)
27971           - Not passing OnParentVisibleChanged up unless the control
27972             is visible
27973           - CanFocus: Fixed to match MS documentation
27974           - Focus: Fixed to return actual focus state and to check if
27975             setting focus is legal before setting it
27976
27977 2006-03-08  Peter Dennis Bartok  <pbartok@novell.com>
27978
27979         * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
27980           when to draw focus rectangle by looking at parent focus and
27981           selected state instead. This fixes TabPages on Linux sometimes
27982           having none or multiple focus rectangles.
27983         * XplatUIX11.cs (SetFocus): 
27984           - Don't set the focus if the same window already has focus
27985           - Use SendMessage instead of PostMessage (like it's Win32
27986             equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
27987             to match MS behaviour
27988         * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
27989           are not selectable.
27990
27991 2006-03-07  Jackson Harper  <jackson@ximian.com>
27992
27993         * PictureBox.cs: Revert line I accidently committed last week.
27994
27995 2006-03-07  Peter Dennis Bartok  <pbartok@novell.com>
27996
27997         * Control.cs: 
27998           - Added new IsRecreating and ParentIsRecreating properties to
27999             allow testing if RecreateHandle has been called on ourselves
28000             or one of our parents
28001           - WndProc(WM_DESTROY): If our control handle is being recreated
28002             we immediately need to create the handle when receiving the
28003             destroy, that way our child windows find a valid parent handle
28004             when they themselves are being recreated upon WM_DESTROY receipt
28005             (fix for bug #77654 part 1)
28006         * XplatUIX11.cs:
28007           - DestroyWindow: WM_DESTROY must be sent to our own window before
28008             notifying any child windows. MS documents that child windows
28009             are still valid when WM_DESTROY is received. (Control now relies on
28010             this behaviour)
28011           - Added some fine-grain debug options
28012
28013 2006-03-06  Jackson Harper  <jackson@ximian.com>
28014
28015         * MdiClient.cs: Redid scrolling logic a bit to create a virtual
28016         box and base calculations off this.
28017         * MdiChildContext.cs:
28018         * MdiWindowManager.cs: Don't need to ensure scrollbars here
28019         anymore.
28020         
28021 2006-03-06  Peter Dennis Bartok  <pbartok@novell.com>
28022
28023         * Splitter.cs: In situations where the affected control is added
28024           to the parent's control list after the splitter, we would not
28025           populate affected. Now we try populating it on mousedown, if
28026           it's not already set, and force it to be re-set whenever our
28027           parent changes.
28028
28029 2006-03-03  Matt Hargett  <matt@use.net>
28030
28031         * Control.cs: implement Control.Padding
28032         * Padding.cs: -Padding.All returns -1 when constructing with the
28033         implicit default ctor
28034         -Padding.ToString() matches MS.NET
28035         * ContainerControl.cs: implement
28036         ContainerControl.AutoScaleDimensions
28037         * ListControl.cs: implement ListControl.FormattingEnabled
28038         * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
28039         * ButtonBase.cs:
28040         * TabPage.cs: Implement UseVisualStyleBackColor.
28041         * PictureBox.cs: Implement PictureBox.InitialImage.
28042
28043 2006-03-03  Mike Kestner  <mkestner@novell.com>
28044
28045         * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
28046         event declarations to proxy to base event.
28047         * ListViewItem.cs: update to use ItemControl.
28048         * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
28049         * ThemeWin32Classic.cs: update to new ListView theme API and fix
28050         column header label rendering for 0 width columns.
28051
28052 2006-03-03  Peter Dennis Bartok  <pbartok@novell.com>
28053
28054         * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
28055           that causes the control to be created. Fixes #77476.
28056
28057 2006-03-02  Jackson Harper  <jackson@ximian.com>
28058
28059         * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
28060         expose_pending.
28061
28062 2006-03-02  Peter Dennis Bartok  <pbartok@novell.com>
28063
28064         * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
28065           passed in for the EventArgs (fixes #77690)
28066
28067 2006-03-01  Jackson Harper  <jackson@ximian.com>
28068
28069         * ScrollBar.cs: Refresh afterbeing resized.
28070
28071 2006-02-28  Mike Kestner  <mkestner@novell.com>
28072
28073         * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
28074         Clean up a tracker compile warning.
28075         * MenuItem.cs: add internal PerformPopup method.
28076         [Fixes #77457]
28077
28078 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
28079
28080         * TextBoxBase.cs (set_Text): Recalculate the document (causing an
28081           implicit expose) when the text is set to null
28082
28083 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com>
28084
28085         * RichTextBox.cs (FlushText): When newline is true, we always
28086           need to split the line, even if no text is on it and we may
28087           never eat newlines. (Fixes #77669)
28088
28089 2006-02-28  Mike Kestner  <mkestner@novell.com>
28090
28091         * ListView.cs: Add UpdateSelection internal method. Remove SelectItem 
28092         and set Selected instead.
28093         * ListViewItem.cs: Call owner.UpdateSelection to manipulate the 
28094         collections.
28095
28096 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
28097
28098         * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
28099
28100 2006-02-28  Alexander Olk  <alex.olk@googlemail.com>
28101
28102         * FontDialog.cs:
28103           - Got rid of the panel. All controls are now directly added to
28104             the dialog form
28105           - It is now possible to set a font with the Font property
28106           - MinSize and MaxSize property do now what they should
28107           - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
28108           - Searching and selecting a font with the font textbox works now,
28109             the same applies to the style and size textbox
28110           - Draw the correct 3D border in the example panel
28111           - Fixed a little mem leak (unused fonts didn't get disposed)
28112           - Many other internal updates/rewrites...
28113           - Fix typo
28114
28115 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
28116
28117         * TextControl.cs: 
28118           - InsertRTFFromStream: Added 'number of characters inserted' argument
28119           - set_SelectedRTF: Now using the number of characters to calculate
28120             the new location for the selection and cursor (x/y cannot be used
28121             due to potentially already wrapped text)
28122
28123 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com>
28124
28125         * TextControl.cs: Added property and implemented means to allow 
28126           disabling recalculation of a document (can be used to speed up
28127           multiple inserts and is needed to make RTF inserts predictable, see
28128           bug #77659)
28129         * RichTextBox.cs: Using the new NoRecalc property of Document to
28130           keep x/y insert locations predictable. Also makes it faster inserting
28131           large chunks of RTF
28132
28133 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
28134
28135         * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
28136           it's easier for a child control to handle the other messages without
28137           having to duplicate the special functionality
28138         * TextBoxBase.cs
28139           - WndProc: Removed calling base handler for WM_KEYDOWN and added 
28140             code to handle processing the key ourselves, in order to get 
28141             access to the result of KeyEventArgs.Handled. We now only call 
28142             ProcessKey if they key hasn't been handled already. Fixes #77526.
28143           - set_Text: If null or empty string is given, just clear the 
28144             document. Fixes part of #77526
28145
28146 2006-02-27  Jackson Harper  <jackson@ximian.com>
28147
28148         * SizeGrip.cs: Paint the background color before painting the grip
28149         so things look right.
28150         * MdiClient.cs: Add the sizegrip when both scrollbars are used.
28151
28152 2006-02-27  Mike Kestner  <mkestner@novell.com>
28153
28154         * ListView.cs:
28155           - Restructure layout and invalidation model to remove a ton of
28156           flicker from the control and speed up performance in general.
28157           - Add manual column resize, flickers like crazy, but I already have
28158           some ideas on how I'll fix that. (#76822)
28159           - Merge the three Icon-based views into a single layout method.
28160           - Move item selection interaction logic from the item since 
28161           interaction with the collections is more appropriate to the view.
28162           - Deselection on non-item clicks.
28163         * ListViewItem.cs:
28164           - Encapsulate most of the layout. Add some internal props to trigger
28165           layout.  Move to a model where Items invalidate themselves instead
28166           of just invalidating the whole control every time something changes.
28167           - Invalidate on Text/Caption changes.
28168           - switch to an offset based layout model to avoid having to absolute
28169           position every element on item moves.
28170           - correct checkbox layout to conform to MS layout.
28171         * ThemeWin32Classic.cs:
28172           - refactor some column header drawing code.
28173           - fix string justification for column headers (#76821)
28174           - make SmallIcon labels top justified for compat with MS impl.
28175         * ThemeClearlooks.cs:
28176           - adjust to new ListViewItem internal checkbox bounds api.
28177
28178 2006-02-27  Jackson Harper  <jackson@ximian.com>
28179
28180         * Control.cs:  Change where implicit controls fall in the zorder.
28181         They are now on top of all children.
28182         - Synced AddImplicit code with Add
28183         - Removed unused enumerator.
28184         * SizeGrip.cs: Remove the TODO as its been TODONE.
28185
28186 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com> 
28187
28188         * TextControl.cs(Insert): Combine the last lines unless the insertion
28189           string ends with \n\n, otherwise we leave one line too many (Fixes
28190           something I noticed with the testapp for #77526; the bug itself was
28191           already fixed in the previous checkin)
28192
28193 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com>
28194
28195         * RichTextBox.cs:
28196           - SelectionColor and SelectionFont methods no longer set absolute
28197             styles. Instead, the keep font or color respectively (This 
28198             resolves a long-standing FIXME in the code)
28199           - When flushing RTF text, the insert code now considers text trailing
28200             behind the insertion point (Fixes the bug where when replacing
28201             the selected text via SelectedRTF the remainder of the line behind 
28202             the selection would stay on the first insertion line)
28203         * TextBoxBase.cs:
28204           - AppendText now updates the selection points after inserting text
28205           - AppendText now ensures that the last tag (sometimes 0-length) of
28206             the document is used for the style information (Fixes part of 
28207             bug #77220)
28208         * TextControl.cs:
28209           - Created new FontDefiniton class to allow describing partial style
28210             changes
28211           - StreamLine() now takes a lines argument, to allow it to decide
28212             whether an encountered zero-length tag is the last in the document
28213             (which must be kept to not loose the font/color contained in it,
28214             for later appends)
28215           - Created Combine() and Split() methods for Marker structs, to 
28216             support marker updates due to reformatted documents (soft line
28217             wraps)
28218           - Implemented Document.CaretTag setter
28219           - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
28220             of the last line (Not the cause, but also exposed by bug #77220)
28221           - Added LineTag argument to InsertString method, to allow callers
28222             to force a certain tag to be used (required to force use of the
28223             trailing zero-length tag of a document)
28224           - Now updating markers in Combine(), to avoid stale tag markers
28225           - Added some method descriptions to aid maintenance
28226           - Implemented new FormatText concept, allowing additive/subtractive
28227             formatting by only specifying the components that are to be 
28228             changed. This was needed for resolving the RTB.SelectedColor/
28229             RTB.SelectedFont fixmes
28230           - Added Break() support method to allow breaking up linetags (used
28231             for partial formatting)
28232           - Added GenerateTextFormat() method. It is used for partial 
28233             formatting and allows to generate a full font/color from given
28234             attributes and an existing tag.
28235
28236 2006-02-26  Jackson Harper  <jackson@ximian.com>
28237
28238         * XplatUIX11.cs:  Use the correct caption height.
28239         - Translate hittest coordinates to screen coords to match MS.
28240         * XplatUIWin32.cs: When we create MDI windows we need to reset
28241         some of the style flags, so we get a nice blank window, and can
28242         draw all the decorations ourselves.
28243         - Set a clipping rectangle on the non client paint event, the
28244         window manager drawing code needs one.
28245         * Form.cs: The window manager needs to know when the window state
28246         has been updated.
28247         * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
28248         don't need to factor in border and title sizes in these
28249         methods. TODO: Remove the args and fix the call points.
28250         * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
28251         properly.
28252         - Let the driver set the cursors.
28253         - Improve active window handling
28254         - Correct sizes for title bars and buttons.
28255         - Match MS drawing better
28256         * MdiWindowManager.cs: We don't need to handle border style
28257         updates specially anymore.
28258         - Check for scrollbars when windows are done moving
28259         - Handle Active properly.
28260         * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
28261         correctly. I am spewing the exception though, so we don't hide the
28262         bugs.
28263         
28264 2006-02-26  Pedro Martinez Julia  <pedromj@gmail.com>
28265
28266         * DataGridViewRowPostPaintEventArgs.cs,
28267           DataGridViewCellPaintingEventArgs.cs,
28268           DataGridViewRowCollection.cs,
28269           DataGridViewRowPrePaintEventArgs.cs,
28270           DataGridViewCell.cs: Clear a few warnings and implement a few
28271           exceptions that should be thrown.
28272
28273 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
28274
28275         * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
28276           'inheriting' our parent's (non-default) cursor. (Part of
28277            the fix for #77479)
28278
28279 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com> 
28280
28281         * XplatUIX11.cs: Fixed cast to make csc happy
28282
28283 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
28284
28285         * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
28286           it's for the client area (part of fix for #77479 and needed
28287           for MDI window cursor handling)
28288         * XplatUIX11.cs
28289           - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
28290             the appropriate default cursors and also passing the message
28291             up the parent chain 
28292           - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
28293             for non-client areas
28294
28295 2006-02-15  Jackson Harper  <jackson@ximian.com>
28296
28297         * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
28298         is a real MDI window
28299
28300 2006-02-14  Alexander Olk  <alex.olk@googlemail.com>
28301
28302         * X11DesktopColors.cs: Instead of checking the desktop session
28303           string for "KDE" check if it starts with "KDE"
28304
28305 2006-02-10  Jackson Harper  <jackson@ximian.com>
28306
28307         * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
28308         systems).
28309
28310 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
28311
28312         * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
28313           errors
28314         * ColorDialog.cs:
28315           - Got rid of the panel. All controls are now directly added to
28316             the dialog form
28317           - Changed to mono coding style
28318
28319 2006-02-10  Jackson Harper  <jackson@ximian.com>
28320
28321         * InternalWindowManager.cs: We don't need the set visibility to
28322         false hack anymore now that peter has written beautiful shutdown
28323         code.
28324
28325 2006-02-10  Peter Dennis Bartok  <pbartok@novell.com>
28326
28327         * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
28328           where already explicitly destroyed
28329
28330 2006-02-10  Jackson Harper  <jackson@ximian.com>
28331
28332         * MdiClient.cs: Handle the case where windows are too high or to
28333         the left and we need scrollbars.
28334
28335 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
28336
28337         * MimeIcon.cs: Added some icons
28338         * FileDialog.cs:
28339           - Fixed bug #77477
28340           - Got rid of the panel. All controls are now directly added to
28341             the dialog form
28342           - Changed to mono coding style
28343           - On Linux "My Computer" and "My Network" will now show some
28344             more usefull information. A new class, MasterMount, gathers
28345             this information from /proc/mount. Updated MWFFileView to make
28346             use of this information
28347           - Fixed a bug that caused FileDialog to crash when
28348             ".recently_used" file had a zero size
28349           - FilterIndex does now what it should
28350           - Some Refactoring
28351         * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
28352             FileDialog changes
28353
28354 2006-02-09  Jackson Harper  <jackson@ximian.com>
28355
28356         * ComboBox.cs: Don't touch if null.
28357
28358 2006-02-09  Peter Dennis Bartok  <pbartok@novell.com>
28359
28360         * Cursor.cs: 64bit safeness fix
28361         * XplatUIX11.cs: Removed several unneeded and one moronic cast.
28362
28363 2006-02-09  Jackson Harper  <jackson@ximian.com>
28364
28365         * Form.cs: If a form is made into an MDI form update the styles so
28366         all the props can get set correctly.
28367         - Kill the mdi_container when we dont need it anymore.
28368         * InternalWindowManager.cs: Add missing NOT
28369
28370 2006-02-08  Jackson Harper  <jackson@ximian.com>
28371
28372         * InternalWindowManager.cs: Respek clipping when drawing MDi
28373         decorations.
28374
28375 2006-02-08  Jackson Harper  <jackson@ximian.com>
28376
28377         * Hwnd.cs: Add bits to track non client expose events.
28378         * XplatUIX11.cs: Track non client expose events on the hwnd. This
28379         gives us a proper invalid rect and will allow for some nice
28380         optimizations with NC client drawing
28381         - MDI windows are children windows, so move their style handling
28382         into the child window block.
28383         * InternalWindowManager.cs: Remove a state reset that was
28384         getting invoked at the wrong time. Fixes managed windows getting
28385         into a 'stuck' captured state.
28386
28387 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
28388
28389         * TextControl.cs (Document.ctor): Now initializing 
28390           selection_anchor. Fixes #77493
28391
28392 2006-02-07  Jackson Harper  <jackson@ximian.com>
28393
28394         * TrackBar.cs: The increment/decrements were backwards.
28395
28396 2006-02-07  Mike Kestner  <mkestner@novell.com>
28397
28398         * Theme*.cs : remove ThemeEngine.Current usage as it just points back
28399         to the instance itself.
28400
28401 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
28402
28403         * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
28404           on ulongs and pointers, the size differs between 32bit and 64bit
28405           systems. 
28406
28407 2006-02-07  Mike Kestner  <mkestner@novell.com>
28408
28409         * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
28410         for 64 bit platforms to work around a metacity bug. 
28411
28412 2006-02-07  Jackson Harper  <jackson@ximian.com>
28413
28414         * TrackBar.cs: Process the input keys we need, and hookup to
28415         KeyDown instead of using WndProc, so we get key messages.
28416
28417 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com>
28418
28419         * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
28420           machine we're on. 
28421         * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
28422           we need to translate the XdndVersion atoms array before sending it
28423
28424 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com> 
28425
28426         * XplatUIX11.cs: 
28427           - The preceeding 64bit fixes had a bug: ChangeProperty expects the
28428             number of bits for the property, not the number of bytes. The
28429             change to provide IntPtr.Size broke 32bit. (64bit was also wrong
28430             but would not crash since it specified 8 bits instead of 4 bits)
28431           - More 64bit fixes: Switched all atoms from int to IntPtr (they are
28432             defined as XID -> long in the C headers)
28433           - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms 
28434             references since those are now IntPtr to begin with
28435           - Switched all Atom.XXX 'int' casts to IntPtr casts
28436           - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
28437           - Fixed XInternAtom signature for 64bit, now returns an IntPtr
28438           - Added XChangeActivePointerGrab DllImport (for X11DnD)
28439         * X11Structs.cs:
28440           - Changed 'int' type for Atoms in XEvent structures to IntPtr
28441           - Changed atom in HoverStruct to be IntPtr
28442         * X11DnD.cs:
28443           - Removed local DllImports, switched code to use those from XplatUIX11
28444           - Removed/fixed casts related to the switch of Atom to be a IntPtr
28445
28446 2006-02-06  Mike Kestner  <mkestner@novell.com>
28447
28448         * XplatUIX11.cs : many more 64 bit pinvoke changes.  I've audited all the 
28449         method signatures in the import region.  There may still be some
28450         lingering struct marshaling issues, as I didn't drill down into those.
28451         Yet.
28452
28453 2006-02-06  Jackson Harper  <jackson@ximian.com>
28454
28455         * ComboBox.cs: Dont manually set the top_item, this is computed
28456         when the scrollbar position is set.
28457
28458 2006-02-06  Mike Kestner  <mkestner@novell.com>
28459
28460         * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
28461         startup crashes on amd64.  There's other fixes needed.  All pinvoke
28462         usage of Atom needs to be mapped to IntPtr for example.  And there are
28463         likely other int/long issues to be addressed.
28464
28465 2006-02-04  Alexander Olk  <alex.olk@googlemail.com>
28466
28467         * FileDialog.cs: One more...
28468
28469 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
28470
28471         * FileDialog.cs: Next try
28472
28473 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
28474
28475         * FileDialog.cs: First part of fix for #77464
28476
28477 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
28478
28479         * ButtonBase.cs, ContainerControl.cs, Forms.cs,
28480           ThemeWin32Classic.cs: Fix for #77458. Correct handling of
28481           AcceptButton border drawing.
28482
28483 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com> 
28484
28485         * Form.cs: Moved positioning of form after auto scaling is applied,
28486           otherwise it would possibly use wrong form size.
28487
28488 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com>
28489
28490         * Control.cs (RecreateHandle): No need to re-create any child
28491           controls, the child windows will get destroyed automatically by
28492           the windowing system or driver, and re-created when the handle
28493           is being accessed the first time. Fixes #77456
28494         * Form.cs: No longer setting the form to closing if the handle is 
28495           being recreated. This seems like the right thing to do, don't
28496           have a bug or testcase for this, though.
28497
28498 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
28499
28500         * FileDialog.cs: Suspend/Resume layouting when changing sizes of
28501           controls to avoid unwanted side effects
28502
28503 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com> 
28504
28505         * Control.cs: 
28506           - ScaleCore needs to scale the bounds, not the ClientSize of the 
28507             control. Fixes #77416.
28508           - DefaultSize is 0,0 for control
28509         * TextBoxBase.cs: 
28510           - DefaultSize is 100, 20
28511           - SetBoundsCore: Now enforcing the height, no matter if the provided
28512             height is more or less than the preferred one, as long as AutoSize
28513             is on
28514         * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
28515
28516 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
28517
28518         * Control.cs:
28519           - ResumeLayout: Fixed logic when to call PerformLayout, we may not
28520             call unless both performLayout is true *and* we have a pending
28521             layout change
28522           - ResumeLayout: MS does not completely nest Suspend and Resume,
28523             they bottom out at 0, fixed our code to match that.
28524           - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
28525             SetBoundsCore, we were updating even when we shouldn't. This fixes
28526             swf-anchors mis-anchoring when resizing the app fast and lots.
28527           - UpdateDistances: Now only setting the left and top distance if 
28528             we have a parent and are not suspended, this is based on
28529             a suggestion by Don Edvaldson in bug #77355.
28530           - OnVisibleChanged: Fixed logic when to create the control. We may
28531             not create the control if we have no parent or if it's not visible;
28532             switched to using Visible property instead of is_visible field 
28533             since the property also considers parent states. This fixes a bug
28534             when starting Paint.Net
28535
28536 2006-02-02  Jackson Harper  <jackson@ximian.com>
28537
28538         * Form.cs: If the forms handle hasn't been created yet don't call
28539         into xplatui to make it top most, just set the topmost flag on the
28540         form in CreateParams
28541         * XplatUIX11.cs: Handle WS_EX_TOPMOST.
28542
28543 2006-02-01  Jackson Harper  <jackson@ximian.com>
28544
28545         * ScrollableControl.cs: Refactored the Recalculate method a
28546         little, this wasn't handling all the variants of bottom and right
28547         bars needed to be added and added/removed based on their
28548         counterparts being added/removed (which changes the drawable
28549         size). Also we special case client widths and heights of 0 and
28550         don't add the scrollbar for those.
28551
28552 2006-02-01  Peter Dennis Bartok  <pbartok@novell.com>
28553
28554         * XplatUIX11.cs: 
28555           - Added method to get AbsoluteGeometry(); currently unused, but might
28556             be used in the future, if we try again to figure out toplevel
28557             coordinates with some more crappy window managers
28558           - Added FrameExtents() method to retrieve the WM set decoration size
28559           - Tried to fix up AddConfigureNotify and handling of ReparentNotify 
28560             to deal with at least KDE, FVWM and metacity (Fixes #77092)
28561         * Hwnd.cs: 
28562           - Added whacky_wm tracking var for metacity
28563           - Added logic to have default menu height if the actual menu height
28564             has not yet been calculated (part of fix for #77426)
28565         * Form.cs: Keep track whether client size has been set and re-set 
28566           it if a menu is added/removed afterwards (Fixes #77426)
28567
28568 2006-01-31  Jackson Harper  <jackson@ximian.com>
28569
28570         * Control.cs: When a new Site is set on the component attempt to
28571         pull the AmbientProperties from it.
28572
28573 2006-01-31  Peter Dennis Bartok  <pbartok@novell.com>
28574
28575         * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
28576           in the background of the owning form. Fixes #77332
28577
28578 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
28579
28580         * MimeIcon.cs: Fix for #77409
28581
28582 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
28583
28584         * XplatUIX11GTK.cs: Initial import
28585
28586 2006-01-31  Jordi Mas i Hernandez <jordimash@gmail.com>
28587
28588         * FixedSizeTextBox: fixes class signature
28589
28590 2006-01-30  Jackson Harper  <jackson@ximian.com>
28591
28592         * FixedSizeTextBox.cs: New internal class that represents a
28593         textBox that will not be scaled.
28594         * TreeView.cs:
28595         * ComboBox.cs:
28596         * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
28597         standard TextBox.
28598                 
28599 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com> 
28600
28601         * XplatUIX11.cs: Retrieve default screen number instead of
28602           assuming 0. Attempted fix for #77318
28603
28604 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com>
28605
28606         * XplatUIWin32.cs: 
28607           - GetWindowPos: When a window is parented by FosterParent, use 
28608             the desktop instead of FosterParent as the base to get coordinates
28609           - CreateWindow: Don't make FosterParent the parent window for Popups
28610             if we don't want a taskbar entry, Popups automatically don't get one
28611         * Hwnd.cs: Need to call remove to actually remove the key from the
28612           hash table
28613
28614 2006-01-30  Mike Kestner  <mkestner@novell.com>
28615
28616         * MenuAPI.cs: adjust MainMenu item popup location to y=0.
28617
28618 2006-01-30  Jackson Harper  <jackson@ximian.com>
28619
28620         * TreeView.cs:
28621         * TreeNode.cs: Raise events no matter how the treenode is
28622         checked. Patch by Don Edvalson.
28623
28624 2006-01-30  Jackson Harper  <jackson@ximian.com>
28625
28626         * TreeNode.cs: Signature fix.
28627
28628 2006-01-29  Alexander Olk  <alex.olk@googlemail.com>
28629
28630         * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
28631
28632 2006-01-20  Mike Kestner  <mkestner@novell.com>
28633
28634         * Form.cs: Add ActiveTracker property to do Captures and perform mouse
28635         event forwarding when menus are active.
28636         * MenuAPI.cs: kill the GrabControl hack.  Use Form.ActiveTracker.
28637         Most of the patch is pdb's with a little rework.
28638
28639 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
28640
28641         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs: 
28642           Removed GetMenuDC and ReleaseMenuDC methods; replaced
28643           by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
28644         * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
28645         * InternalWindowManager.cs: Added use of PaintEventStart/End to
28646           handling of WM_NCPAINT message, now passing the PaintEventArgs to
28647           the PaintWindowDecorations method
28648         * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
28649         * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
28650         * MenuAPI.cs: Made tracker window invisible
28651         * XplatUIWin32.cs:
28652           - Removed GetMenuDC and ReleaseMenuDC methods
28653           - Implemented the client=false path for PaintEventStart and
28654             PaintEventEnd
28655
28656 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
28657
28658         * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
28659         * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
28660           styles
28661         * Form.cs: 
28662           - MaximizeBox, MinimizeBox: Recreate the handle when setting
28663             the style
28664           - CreateParams: Reworked the styles to match MS look'n'feel,
28665             removed automatic setting of MinimizeBox, MaximizeBox, etc. via
28666             the WS_OVERLAPPEDWINDOW style. This fixes #76823.
28667
28668 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
28669
28670         * XplatUIX11.cs(GetWindowState): Now throwing an exception when the 
28671           window is not mapped, since otherwise every form that's being 
28672           created is considered minimized, which is wrong.
28673         * Form.cs: Catching the exception and returning our internal value
28674           instead
28675
28676 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
28677
28678         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
28679           SetWindowMinMax() to have means to tell the driver about the minimum,
28680           maximum and maximized state window sizes. (Part of the fix for #76485)
28681         * Form.cs:
28682           - Implemented tracking of minimum and maximum window size, now calling
28683             new SetWindowMinMax() driver method to tell the driver (Part of the
28684             fix for #76485)
28685           - Finished handling of WM_GETMINMAXINFO method, now setting all values
28686             (Completes fix for #76485)
28687           - Calling new SetWindowMinMax driver method when the handle for a 
28688             form is created, to make sure the driver knows about it even if
28689             the values have been set before the window was created
28690           - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
28691             to avoid messing up our anchoring calculations (partial fix
28692             for #77355)
28693         * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
28694         * XplatUIX11.cs:
28695           - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
28696           - Improved GetWindowState() to detect 'Minimized' state on Metacity 
28697             (and presumably other freedesktop.org compliant WMs). Left the
28698             assumption unmapped=minimized, needed for SetVisible to work.
28699           - Now setting the window state when creating windows
28700           - Fixed SetVisible to consider/set the window state when mapping
28701             a Form. We cannot set the state before it's mapped, and we cannot
28702             use Form.WindowState once it's mapped (since it would ask the
28703             driver and get 'normal'. Therefore, we grab the state before
28704             mapping, map, and then set state.
28705           - Implmemented SetWindowMinMax method; Metacity does not seem to
28706             honor the ZoomHints, though.
28707         * XplatUIWin32.cs:
28708           - Removed MINMAXINFO (moved to XplatUIStructs)
28709           - Added SetWindowMinMax stub (on Win32 the only way to set that
28710             information is in response to the WM_GETMINMAXINFO message, which
28711             is handled in Form.cs)
28712           - Added logic to SetVisible to set the proper window state when a 
28713             form is made visible (fixes #75720)
28714
28715 2006-01-26  Jackson Harper  <jackson@ximian.com>
28716
28717         * Control.cs (BeginInvoke): Automagically handle EventHandlers the
28718         same way we handle them with Invoke.
28719
28720 2006-01-25  Peter Dennis Bartok  <pbartok@novell.com> 
28721
28722         * Form.cs:
28723           - Added tracking of window state so CreateParams can return
28724             the appropriate style
28725           - Moved setting of WS_CAPTION style in CreateParams to allow
28726             styles without caption
28727         * DataGridTextBoxColumn.cs: We are now also creating the TextBox 
28728           control if the TextBox property is accessed. Fixes #77345
28729         * Control.cs:
28730           - get_Created: now uses is_disposed and is_created to determine
28731             return value (suggested by Jackson)
28732           - CreateHandle: No longer exits if the handle is being recreated
28733           - RecreateHandle: If the handle is not yet created call the 
28734             appropriate method to create either control or handle. If the
28735             control is already created CreateHandle will simply exit instead
28736             of just creating the handle
28737         * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
28738           now SendMessage WM_DESTROY directly to the control when DestroyWindow
28739           is called.
28740         * XplatUIX11.cs: 
28741           - When DestroyWindow is called, instead of waiting for the 
28742             DestroyNotification from X11, we directly post it to the WndProc
28743             and immediately dispose the hwnd object.
28744             Same applies to DestroyChildWindows, and this obsoletes the
28745             expose_pending tracking. Contrary to Win32 behaviour we destroy our
28746             child windows before our own, to avoid X11 errors.
28747           - Removed the direct sending of WM_PAINT on UpdateWindow
28748         * XplatUIWin32.cs:
28749           - Reworked DoEvents and GetMessage to allow access to internal queue
28750             even when trying non-blocking access to the queue.  Fixes #77335. 
28751             Based on a patch suggestion by Don Edvalson. The new private
28752             GetMessage can now also be used as a backend for a PeekMessage
28753             frontend version.
28754         * XplatUI.cs: Improved debug output for CreateWindow
28755
28756 2006-01-25  Jackson Harper  <jackson@ximian.com>
28757
28758         * Help.cs: Allow param to be null. Patch by Don Edvalson.
28759
28760 2006-01-24  Jackson Harper  <jackson@ximian.com>
28761
28762         * ComboBox.cs: Clamp the max value set for the vertical scrollbar
28763         when we have a MaxDropItems lower then the selected index.
28764
28765 2006-01-24  Jackson Harper  <jackson@ximian.com>
28766
28767         * Control.cs: Don't allow selection of non visible controls, allow
28768         selection of controls without parents.
28769
28770 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
28771
28772         * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
28773         * DataGridDrawingLogic.cs: Add editing row only when is necessary
28774
28775 2006-01-23  Jackson Harper  <jackson@ximian.com>
28776
28777         * UpDownBase.cs: Make the textbox handle all the selection and
28778         tabbing. This fixes tabing to updown controls.
28779
28780 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
28781
28782         * TextBoxBase.cs: fixes exception thown the object was null
28783
28784 2006-01-23  Jackson Harper  <jackson@ximian.com>
28785
28786         * ButtonBase.cs: Just use the base CreateParams. They set
28787         visibility and enabled correctly.
28788         * ComboBox.cs:
28789         * TrackBar.cs:
28790         * MonthCalendar.cs: Lets let the base set as much of the
28791         createparams as possible so we don't have duplicate code all over
28792         the place.
28793
28794 2006-01-22  Alexander Olk  <alex.olk@googlemail.com>
28795
28796         * ThemeGtk.cs: Added TrackBar and some experimental code to
28797           get double buffering back
28798
28799 2006-01-21  Jordi Mas i Hernandez <jordimash@gmail.com>
28800
28801         * DataGrid.cs: Allows row number set internally higher than the last
28802         when creating a new row. Restores the editing functionality.
28803
28804 2006-01-20  Mike Kestner  <mkestner@novell.com>
28805
28806         * MimeIcon.cs: delay Image creation until the icons are accessed
28807         instead of creating 190 scaled images on GnomeHandler startup.
28808
28809 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com> 
28810
28811         * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
28812           first call base before processing the event. Fixes #77279
28813
28814 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com>
28815
28816         * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
28817           that the stride for the GDI bitmap would match the stride of
28818           a DIB or a Cursor.
28819
28820 2006-01-19  Alexander Olk  <alex.olk@googlemail.com>
28821
28822         * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
28823
28824 2006-01-19  Jackson Harper  <jackson@ximian.com>
28825
28826         * ComboBox.cs: Hookup the text controls keydown event so we get
28827         those when the text control has the focus.
28828
28829 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
28830
28831         * Label.cs: Now using the base events instead of defining new ones;
28832           this allows us to just call the base properties without having to
28833           duplicate all base property logic 
28834
28835 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
28836
28837         * Label.cs: A label by default is not a tabstop (Fixes one of our
28838           failing nunit tests)
28839
28840 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
28841
28842         * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
28843         * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
28844
28845 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
28846
28847         * Cursor.cs: Reimplemented creating cursor bitmaps without using
28848           the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
28849           This fixes #77218
28850         * XplatUIWin32.cs: 
28851           - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream) 
28852             constructor creates images that can't be saved. Part of the fix
28853             for #76103
28854           - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
28855           - SetWindowState: Switched ShowWindow flags (part of an upcoming 
28856             bug fix for handling window state in forms properly)
28857
28858 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
28859
28860         * ThemeGtk.cs: Simplify ScrollBar drawing
28861
28862 2006-01-18  Jackson Harper  <jackson@ximian.com>
28863
28864         * Splitter.cs: Set the default dock style for the splitter control
28865         in the constructor.
28866
28867 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
28868
28869         * ThemeGtk.cs: Corrected StateType and ShadowType for
28870           gtk_paint_box
28871
28872 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
28873
28874         * Control.cs: Make use of Theme.DoubleBufferingSupported
28875         * ThemeGtk.cs:
28876           - Added drawing for flat style buttons
28877           - Added ScrollBar drawing
28878
28879 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
28880
28881         * ThemeClearlooks.cs: Removed some unneeded code.
28882         * ThemeGtk.cs: First part of ThemeGtk enhancements.
28883
28884 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
28885
28886         * LinkLabel.cs: We need to update the hover drawing when
28887           leaving the control as well.
28888
28889 2006-01-18  Jordi Mas i Hernandez <jordimash@gmail.com>
28890
28891         * DataGrid.cs: Clicking on non empty areas in the columns
28892            area was giving an exception
28893
28894 2006-01-17  Jackson Harper  <jackson@ximian.com>
28895
28896         * ThemeWin32Classic.cs:
28897         * ListView.cs: Do not draw/clip the headers when the header style
28898         is None.
28899
28900 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
28901
28902         * DataGrid.cs: Fixes 77260
28903         
28904 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
28905
28906         * DataGrid.cs: Clicking on a column on a empty grid was giving
28907           an exception
28908
28909 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
28910
28911         * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
28912           or any keypress will crash the grid.
28913
28914 2006-01-17  Mike Kestner  <mkestner@novell.com>
28915
28916         * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
28917         * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for 
28918         invisible/previously-visible items.
28919         [Fixes #76909]
28920
28921 2006-01-17  Alexander Olk  <alex.olk@googlemail.com>
28922
28923         * ThemeClearlooks.cs:
28924         - Added CL_Draw_Button method; now other theme controls that are 
28925           not derived from button or do not have a button can draw buttons
28926           too
28927         - Updated ComboBox drawing
28928         - Beautified RadioButton drawing
28929         - Corrected drawing of bottom and left tabs
28930         - Beautified DateTimePicker and MonthCalendar
28931         - Added CPDrawButton and CPDrawRadioButton
28932
28933 2006-01-16  Jackson Harper  <jackson@ximian.com>
28934
28935         * ComboBox.cs: Set the initial value of the scrollbar to the
28936         current index. Reduce the numbers of refreshs and IndexOfs called.
28937
28938 2006-01-14  Alexander Olk  <alex.olk@googlemail.com>
28939
28940         * FileDialog.cs: When the file listview is focused hitting the
28941           backspace key moves the fileview to the parent directory
28942
28943 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
28944
28945         * Form.cs: 
28946           - Added RecreateHandle call when changing taskbar visibility to 
28947             trigger reparenting in Win32 driver (Fixes #75719)
28948           - If a window has minimize or maximize buttons, it cannot have
28949             a help button
28950         * XplatUIWin32.cs:
28951           - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
28952             the toplevel form with FosterParent (A toolwindow not on the
28953             taskbar) (Fixes #75719)
28954           - Made FosterParent a toolwindow
28955
28956 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
28957
28958         * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
28959
28960 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
28961
28962         * ToolTip.cs: If SetToolTip is called from a control and the mouse
28963           is currently over that control, make sure that tooltip_window.Text
28964           gets updated
28965
28966 2006-01-13  Mike Kestner  <mkestner@novell.com>
28967
28968         * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
28969
28970 2006-01-13  Jackson Harper  <jackson@ximian.com>
28971
28972         * TreeView.cs: On MS GetNodeAt never actually factors in the X
28973         value passed.  Also redraw the selected node when we recieve
28974         focus, so tabbing between trees works correctly.
28975
28976 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
28977
28978         * MimeIcon.cs: GnomeHandler: older gnome versions don't have
28979           ~/.gconf/%gconf-tree.xml, so use
28980           .gconf/desktop/gnome/interface/%gconf.xml
28981
28982 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
28983
28984         * TextControl.cs: Draw text in gray if control is disabled
28985
28986 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
28987
28988         * TreeView.cs: Draw the focus rectangle outside the highlight, to
28989           make sure it's always visible. Fixes #76680.
28990
28991 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
28992
28993         * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
28994
28995 2006-01-13  Jonathan Chambers  <jonathan.chambers@ansys.com>
28996
28997         * PageSetupDialog.cs: Added.
28998         * PrintDialog.cs: Attributes.
28999         * PrintPreviewControl.cs: Updates.
29000         * PrintPreviewDialog.cs: Updates.
29001         
29002 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
29003
29004         * Control.cs: Undid my selection check fix, since it's not needed
29005         * TextBoxBase.cs:
29006           - Now considering the presence of hscroll/vscroll when sizing
29007             vscroll/hscroll respectively. Fixed bug #77077
29008           - Added Left/Up/Down/Right to IsInputKey list to prevent
29009             ContainerControl from stealing them. This fixes what I broke
29010             with my last checkin.
29011
29012 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com> 
29013
29014         * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
29015           I finally understand how the property can be set without a setter :-)
29016
29017 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
29018
29019         * Application.cs:
29020           - Switched RunLoop to use static Message.Create to create a 
29021             Message object
29022           - Added PreProcessMessage call in runloop for keyboard events; this
29023             is part of the fix for #77219, I overlooked this originally in the
29024             MSDN doc for PreProcessMessage
29025         * Control.cs:
29026           - Removed call to PreProcessMessage from handling of keyboard 
29027             messages; it's supposed to be done in the message pump
29028           - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
29029             per MSDN documentation.
29030           - IsInputChar: All chars are input chars by default; removed the 
29031             parent calling chain, MS does not document that
29032           - PreProcessMessage: If IsInputChar is true, we want to return false
29033             to allow dispatching of the message
29034           - When selecting the next control, now also check that we're not
29035             selecting ourselves again and therefore return a false positive.
29036         * TextBoxBase.cs:
29037           - Tried to match return values for IsInputKey and ProcessDialogKey
29038             to what MS returns; moved processing of our special keys outside
29039             ProcessDialogKey since MS does not seem to return true on those.
29040           - Moved code that previously was in ProcessDialogKey into new private
29041             ProcessKey method, which gets called upon receipt of WM_KEYDOWN
29042           - Reworked handling of WM_CHAR to not have to duplicate code from
29043             Control.cs anymore, instead we simply call down to base.
29044            
29045 2006-01-12  Jackson Harper  <jackson@ximian.com>
29046
29047         * ComboBox.cs: We always need to refresh the text area when
29048         EndUpdate is called. Fixes the combobox in the file dialog.
29049         * Control.cs: Don't create the creator_thread until the controls
29050         handle is created.  Also in InvokeRequired we check if the
29051         creator_thread is null. This gives the effect of InvokeRequired
29052         returning true if the controls handle is not created yet, and
29053         matches MS.
29054
29055 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
29056
29057         * XplatUI.cs:
29058           - Added StartLoop() driver method. This is used to allow drivers to
29059             prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
29060             loop for a particular thread
29061           - Added EndLoop() driver method. This is called once the message
29062             pump for the thread is shut down
29063           - Added SupportsTransparency method to allow the driver to indicate
29064             opacity support for windows
29065         * Form.cs:
29066           - Removed TODO attribute, completed AllowTransparency property
29067           - Added documented logic to Opacity
29068         * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
29069           ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
29070           versions of CompatibleTextRendering
29071         * X11Structs.cs: Added opacity atom to our atom enumeration
29072         * Hwnd.cs: Added opacity tracking (we need to track since the opacity
29073           of a form might be set before it's reparented by the WM, and we need
29074           the opacity value without calling up to Form)
29075         * XplatUIDriver.cs: Added StartLoop(), EndLoop() and 
29076           SupportsTransparency() driver methods
29077         * Application.cs: Now calling StartLoop and EndLoop driver methods
29078         * XplatUIX11.cs:
29079           - Added opacity atom registration
29080           - Added StartLoop()/EndLoop() methods. They're empty right now but
29081             will need to get implemented when we switch to a per-thread queue
29082           - Implemented SupportsTransparency() method
29083           - Implemented SetWindowTransparency() method
29084           - Added support for setting the opacity value when a window is
29085             reparented (since the opacity needs to be set on the WM frame)
29086         * XplatUIOSX.cs, XplatUIWin32.cs:
29087           - Added SupportsTransparency(), StartLoop() and EndLoop() methods
29088
29089 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
29090
29091         * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
29092
29093 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
29094
29095         * FileDialog.cs: Added ToolTip for MWFFileView
29096         * MimeIcon.cs: Rewrote GnomeHandler.
29097           - Get currently used gnome icon theme from
29098             ($HOME)/.gconf/%gconf-tree.xml
29099           - Make use of inherited icon themes
29100           - Support SVG icon themes like Tango via librsvg
29101
29102 2006-01-12  Miguel de Icaza  <miguel@novell.com>
29103
29104         Revert's Jackson's revert which broke 2.0 builds.   Fix both
29105         builds. 
29106         
29107         * Application.cs: Move the use_compatible_text_rendering outside
29108         the NET_2_0 define.  If we ever need to use the
29109         use_compatible_text_rendering on the individual controls they will
29110         access the variable from the common shared code paths.
29111
29112 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
29113
29114         * XplatUI.cs:
29115           - Added more granular debug options
29116           - Added method to print both window text and id
29117           - Switched debug output to use new Window() debug method
29118           - Added IsEnabled() driver method
29119           - Added EnableWindow() driver method
29120         * Form.cs:
29121           - Removed end_modal; no longer needed, new loop handles termination
29122             via 'closing' variable
29123           - If form is modal, setting DialogResult will now initiate loop
29124             termination via 'closing' variable
29125           - Added support for is_enabled/WS_DISABLED to CreateParams
29126           - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
29127             does all the work
29128           - Removed code that's now in RunLoop from ShowDialog()
29129           - Added various documented sanity checks to ShowDialog()
29130           - Added handling of WM_DESTROY message; we set 'closing' on getting
29131             the message to indicate the message pump to terminate
29132           - Added handling of new internal WM_CLOSE_INTERNAL message - it's
29133             send by the Application.ExitThread method. (We send the message
29134             to destroy the window after all other events have been
29135             processed through the queue, instead of destroying the handle 
29136             directly)
29137           - Moved code from Close() method to WM_CLOSE handler; added logic
29138             to only send close-related events if the form is not displayed
29139             modal
29140         * Splitter.cs (..ctor): Fixed typo in resource name
29141         * Control.cs:
29142           - DrawBackgroundImage: Explicitly selecting the wrap mode for the
29143             brush now
29144           - set_Cursor: Now only setting calling into XplatUI if the handle for
29145             the control is already created; this avoids implict handle creation
29146             or crashes if it's not created
29147           - set_Enabled: Now setting the enabled state via the new driver method
29148             instead of just tracking it
29149           - CreateParams: Added logic to set WS_DISABLED based on enabled state
29150           - CreateControl: Reordered event firing and method calls to more
29151             closely fire events in the order MS does. Now setting the
29152             enabled state in the driver when creating the control.
29153           - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
29154             match MS order
29155         * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
29156           MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED 
29157         * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
29158         * Hwnd.cs:
29159           - Added tracking of window enabled state (get_Enabled/set_Enabled)
29160           - Added EnabledHwnd property to easily allow a driver to find the
29161             handle of the first enabled window in the parent chain (this is
29162             used by drivers to pass up input events of disabled windows)
29163         * XplatUIDriver.cs: Added IsEnabled() method
29164         * Application.cs:
29165           - Removed crude and obsolete exiting tracking variable
29166           - Removed internal ModalRun(); replaced by RunLoop()
29167           - Implemented private CloseForms() method to allow closing all 
29168             windows owned by a particular (or all) threads
29169           - Exit() now properly closes all windows without forcing the message
29170             pump to quit
29171           - Removed obsolete InternalExit() method
29172           - Changed Run() methods to use new RunLoop() message pump
29173           - Implemented new RunLoop() method for both modal and non-modal forms
29174         * CommonDialog.cs:
29175           - get_CreateParams: Added setting of WS_DISABLED
29176           - Simplified ShowDialog(); now all the work is done in RunLoop(),
29177             invoked via Form.ShowDialog()
29178         * NativeWindow.cs: We don't remove the window from the collection when
29179           the handle is destroyed; there might still be messages for it in the
29180           queue (mainly the resulting WM_DESTROY); instead it will be removed
29181           when Control calls InvalidateHandle in the WM_DESTROY handler
29182         * XplatUIX11.cs:
29183           - CreateWindow: Added logic to handle the WS_DISABLED window style
29184           - EnableWindow: Implemented based on Hwnd.Enabled
29185           - GetMessage: Reset PostQuitState so the method can be called again
29186           - Implemented support for disabled windows (passing messages to the
29187             first enabled parent) in handling all input messages
29188           - Added optimizations for handling Expose events
29189           - Implemeted new driver method IsEnabled()
29190           - Now always resetting paint pending tracking vars when we start paint
29191           - Re-implemented UpdateWindow via just sending a WM_PAINT message
29192         * XplatUIOSX.cs: Added IsEnabled method stub
29193         * XplatUIWin32.cs: Implemented new IsEnabled() method
29194
29195 2006-01-11  Jackson Harper  <jackson@ximian.com>
29196
29197         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
29198         LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
29199         variables a little.
29200         * ColorDialog.cs: Clear out the old form before adding the new
29201         panel.  
29202
29203 2006-01-11  Jackson Harper  <jackson@ximian.com>
29204
29205         * X11Dnd.cs: Make sure to add all the text formats when adding
29206         strings to the data object.
29207         * TreeNodeCollection.cs: When adding to a sorted tree we need to
29208         do some redrawing too.  Also change the UpdateNode to an
29209         UpdateBelow so the newly added node gets painted.
29210         
29211 2006-01-11  Miguel de Icaza  <miguel@novell.com>
29212
29213         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
29214         LinkLabel.cs, PropertyGrid.cs: Implement the
29215         UseCompatibleTextRendering property for 2.x
29216
29217         * Application.cs (SetCompatibleTextRenderingDefault): Add. 
29218
29219 2006-01-11  Jackson Harper  <jackson@ximian.com>
29220
29221         * TreeView.cs: Use the property for setting the selected node so
29222         the correct events get raised.
29223         * TreeNode.cs: Update the tree when the fore/back colours of a
29224         node are set.
29225
29226 2006-01-10  Jackson Harper  <jackson@ximian.com>
29227
29228         * TreeView.cs: Allow setting SelectedNode to null.
29229
29230 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
29231
29232         * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
29233
29234 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
29235
29236         * PrintControllerWithStatusDialog.cs: Update page number in dialog.
29237
29238 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
29239
29240         * PrintDialog.cs: Added attributes and set default property values.
29241
29242 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
29243
29244         * PrintControllerWithStatusDialog.cs: 
29245         Added PrintControllerWithStatusDialog.
29246
29247 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
29248
29249         * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
29250         XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
29251
29252 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
29253
29254         * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
29255
29256 2006-01-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
29257
29258         * ComboBox.cs: Added KeyDown event handler for processing arrow keys
29259         and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
29260
29261 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
29262
29263         * MimeIcon.cs: Added internal class SVGUtil.
29264
29265 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
29266
29267         * FileDialog.cs: Don't crash if there are two files with the
29268           same name but different locations.
29269
29270 2006-01-08  John BouAntoun  <jba-mono@optusnet.com.au>
29271
29272         * MonthCalendar.cs: Fixed annoying rendering bug when selecting
29273         dates across multiple month grids. Used to not highlight entire 
29274         month, but does now.
29275         
29276 2006-01-06  Jackson Harper  <jackson@ximian.com>
29277
29278         * MonthCalendar.cs: Removed DoEvents call to prevent a running
29279         message loop. Change timer intervals to numbers that seem more
29280         natural.
29281
29282 2006-01-06  John BouAntoun  <jba-mono@optusnet.com.au>
29283
29284         * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
29285           object for location info since screen object is now implemented.
29286
29287 2006-01-05  Jackson Harper  <jackson@ximian.com>
29288
29289         * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
29290         * AsyncMethodResult.cs: We no longer use a WeakReference for the
29291         AsyncMethodResult, this is because we ALWAYS want the
29292         ManualResetEvent to get set.
29293         * Control.cs: When disposing use an async invoke to call shutdown
29294         code, so that thigns don't block on the finalizer thread.  Also
29295         check if we even have a message loop before trying to send
29296         messages, if we don't then don't bother sending messages.
29297         - No more weak references for async methods
29298         * XplatUIDriver.cs: No more weak references for async methods.
29299
29300 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
29301
29302         * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
29303           returns two FontFamily with the same name
29304
29305 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
29306
29307         * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of 
29308           drawing disabled text. Instead using the ColorGrayText color
29309
29310 2006-01-04  Jackson Harper  <jackson@ximian.com>
29311
29312         * TreeNode.cs: redraw the node when its image index is changed.
29313
29314 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
29315
29316         * RichTextBox.cs: Same fix as last, just for SelectionColor. This
29317           time I checked there are no others like it.
29318
29319 2006-01-04  Jackson Harper  <jackson@ximian.com>
29320
29321         * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
29322         this gives the behavoir I was looking for.
29323         * Control.cs: Special case Invoking EventHandlers, this matches MS
29324         and fixes part of bug #76326.
29325
29326 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
29327
29328         * ThemeClearlooks.cs, FileDialog.cs:
29329           - Reflect the latest Theme class changes
29330           - Remove Mono.Unix.Syscall.time in FileDialg and replace it 
29331             with DateTime
29332             
29333 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
29334
29335         * Theme.cs: Cache UI resource images and resize them if needed
29336
29337 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
29338
29339         * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
29340           is called. This fixes the crash in Nexxia when setting the font
29341           attributes in the chat. [However, RTF needs a look-over to make sure
29342           that all SelectionXXX methods handle the special case that selection
29343           is empty and therefore the change must be applied to all text starting
29344           at the cursor/selection start]
29345
29346 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com> 
29347
29348         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
29349           XplatUIOSX.cs: Added SendMessage and PostMessage methods
29350         * X11Keyboard.cs: Switched to new way of calling PostMessage
29351
29352 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
29353
29354         * Theme.cs: Added theme interface for images to allow the theme to
29355           control what images are used for things like FileDialog, MessageBox
29356           icons, etc.
29357         * MessageBox.cs: Now uses the new Theme icon/image interfaces
29358
29359 2006-01-03  Alexander Olk  <alex.olk@googlemail.com>
29360
29361         * FileDialog.cs:
29362           - Removed some dead code
29363           - Opening a recently used file does work now
29364           - Small UI enhancements
29365           - Refactoring
29366
29367 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
29368
29369         * FileDialog.cs: Forgot too add __MonoCS__
29370
29371 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
29372
29373         * FileDialog.cs: We are able to read recently used files now let's
29374           go on and write them.
29375
29376 2006-01-01  Alexander Olk  <alex.olk@googlemail.com>
29377
29378         * FileDialog.cs: Breathe some life into "last open"/"recently used"
29379           button
29380         * MimeIcon.cs: Do a check for the top level media type also
29381
29382 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
29383
29384         * ThemeClearlooks.cs:
29385           - Added CPDrawStringDisabled
29386           - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
29387             some chars if the text doesn't fit into text_rect
29388           - DrawListViewItem: If View = View.LargeIcon center the image;
29389             rewrote the drawing of ListViewItem.Text if View = 
29390             View.LargeIcon
29391
29392 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
29393
29394         * MimeIcon.cs: Use default KDE icon theme if there is no
29395           "48x48" directory for the current icon theme, fixes #77114
29396         * Mime.cs: Disable not working and actually not used code. 
29397         * ThemeWin32Classic.cs:
29398           - Replace "new SolidBrush" in GetControlBackBrush and
29399             GetControlForeBrush with ResPool.GetSolidBrush
29400           - Changed DrawListViewItem from private to protected virtual
29401         * FileDialog.cs:
29402           - Added form.MaximizeBox = true
29403           - Don't throw an exception if there is a broken symbolic link
29404
29405 2005-12-23  Jackson Harper  <jackson@ximian.com>
29406
29407         * TabControl.cs: Give the panels focus, keyboard navigation is
29408         fixed so this works correctly now.
29409         - We need these key events also.
29410         * ToolBar.cs: Remove some of the poor mans double buffering.
29411         
29412 2005-12-24  Alexander Olk  <alex.olk@googlemail.com>
29413
29414         * ComboBox.cs: The internal TextBox now returns the focus.
29415
29416 2005-12-23  Jackson Harper  <jackson@ximian.com>
29417
29418         * ThemeWin32Classic.cs:  Draw the text for all tab appearances.
29419
29420 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
29421
29422         * Control.cs: Removed debug code
29423         * XplatUIX11.cs: Changed DestroyChildWindows to also consider
29424           implicit children
29425
29426 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com> 
29427
29428         * Control.cs: When creating the control, update the Z-order after
29429           all it's children are created, too. (Fixes nexxia not showing
29430           picturebox bug)
29431
29432 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
29433
29434         * Control.cs: Do not update the anchoring distances if layout is
29435           suspended, instead do it once layout is resumed
29436
29437 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com> 
29438
29439         * Control.cs: 
29440           - After many hours of debugging, for both Jackson and
29441             myself, it turns out that it helps to set the parent of a control
29442             if you want to actually see it onscreen. In the spirit of that
29443             discovery, we're now setting the parent of the control and
29444             it's children when the control's handle is created. This fix
29445             will make Lutz Roeder's Reflector run happily. 
29446           - now just creating the handle instead of the whole control when
29447             getting a graphics context for the control.
29448
29449 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
29450
29451         * ScrollableControl.cs: When calculating the canvas, don't consider
29452           the scrollbar widths. Instead, predict if horizontal scrollbar
29453           will affect canvas when deciding on vertical display and vice versa.
29454
29455 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
29456
29457         * RichTextBox.cs: Set default RTF font for documents that don't
29458           have a font table (Fixes #77076)
29459
29460 2005-12-22  Jackson Harper  <jackson@ximian.com>
29461
29462         * TextBoxBase.cs: It's difficult to do, but you can have an empty
29463         clipboard. This prevents a NullRef in that case.
29464         * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
29465         clipboard. PRIMARY is for the currently selected text only. (We
29466         should implement PRIMARY at some point.
29467
29468 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
29469
29470         * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
29471           a Unicode function with a structure that was defined in Ansi way.
29472           This fixes #76942.
29473
29474 2005-12-21  Jackson Harper  <jackson@ximian.com>
29475
29476         * StatusBar.cs: Statusbar handles its fore/back colours on it's
29477         on. Because thats how it rolls. (and this avoids it using ambient
29478         colours).
29479         * ThemeWin32Classic.cs: Use the proper back color for filling.
29480         * Menu.cs: Use the system menu bar color for drawing menu
29481         bars. Using the window back color will bring ambient colours into
29482         the picture.
29483
29484 2005-12-21  Alexander Olk  <alex.olk@googlemail.com>
29485
29486         * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
29487           Bitmaps were created and not disposed.
29488
29489 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
29490
29491         * Control.cs (CreateControl): Don't do anything if the control is
29492           already created, otherwise we'd fire the OnCreated event more than
29493           once
29494
29495 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
29496
29497         * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
29498           will always match. Instead return -1. Fixes #76464.
29499
29500 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
29501
29502         * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
29503           neither the beginning nor the end of the line (Fixes bug #76479)
29504
29505 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
29506
29507         * Control.cs:
29508           - ControlNativeWindow.ControlFromHandle(): Now handling situation
29509             where handle is invalid
29510           - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
29511             instead of slower linear search
29512         * NativeWindow.cs: Don't remove the window from the hashtable until
29513           after the driver has destroyed it (since the driver might use
29514           Control.FromHandle to lookup the control object
29515         * Hwnd.cs: Added DestroyPending property to track if a window is 
29516           already destroyed as far as the driver is concerned and only hasn't
29517           yet notified the control
29518         * XplatUIX11.cs:
29519           - Activate(): Check if the window is still valid before using the 
29520             handle
29521           - Implemented DestroyChildWindow() method to mark child windows as
29522             destroyed when a window is destroyed. This prevents situations 
29523             where we might call an X method based on queued events for a
29524             window that already has been destroyed but we haven't yet pulled
29525             the destroy method from the queue.
29526           - Added a call to the new DestroyChildWindow() method to the drivers
29527             DestroyWindow code. Also now marking the destroyed window itself
29528             as pending
29529
29530 2005-12-20  Jackson Harper  <jackson@ximian.com>
29531
29532         * StatusBar.cs:
29533         * StatusBarPanel.cs: Don't calculate panel sizes on draw
29534         anymore. Just do them when needed, also track the rects of panels
29535         so that we can optimize refreshing more in the future.
29536
29537 2005-12-20  Alexander Olk  <alex.olk@googlemail.com>
29538
29539         * ColorDialog.cs: Fixed focus drawing in small color controls
29540
29541 2005-12-19  Jackson Harper  <jackson@ximian.com>
29542
29543         * InternalWindowManager.cs:
29544         * MdiWindowManager.cs: Cleanup some coordinate system changes so
29545         moving windows works properly.
29546
29547 2005-12-19  Peter Dennis Bartok  <pbartok@novell.com> 
29548
29549         * Control.cs: 
29550           - Removed call to InitLayout() from SetBoundsCore(); doc says
29551             it's only called when a control is added to a container
29552           - Split InitLayout logic, moved to separate UpdateDistances() method
29553             since we need to perform those calculations more often than just
29554             when adding the control to a container. (Needed to fix #77022)
29555           - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
29556           - Reduced the OnBindingContextChanged events count, don't send them
29557             unless the control is created, we still aren't totally matching
29558             MS, but I can't quite figure out some of their rules
29559
29560 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
29561
29562         * ThemeClearlooks.cs: Corrected distance between ProgressBar
29563           stripes
29564
29565 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
29566
29567         * ThemeClearlooks.cs:
29568           - Updated ProgressBar drawing
29569           - Corrected drawing of ScrollBars and scroll buttons
29570           - Some temporary fixes for minor pixel artefacts
29571
29572 2005-12-18  Peter Dennis Bartok  <pbartok@novell.com> 
29573
29574         * Control.cs:
29575           - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
29576             cause events to be sent in the same order as MS does.
29577           - Added ChangeParent() method to trigger various OnXXXChanged events
29578             that need to be fired when a parent changes (This is a reworking
29579             of the patch from r54254, with the X11 errors fixed)
29580           - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
29581             since on MS we get OnLayoutChanged events when calling Clear()
29582           - Changed Enabled property to consider parent state as well, if a
29583             parent is not enabled, the control will not be either
29584           - Changed Parent property to simply call Controls.Add() since that
29585             now does all the work required, this way we avoid code duplication
29586           - Threw in a few OnBindingsContextChanged calls to try and match
29587             when MS sends them. We seem to send a few too many, though.
29588           - Added call to CreateControl when adding the control to a parent.
29589             We were never calling CreateControl. Still needs some work, in
29590             some places we treat HandleCreated and ControlCreated as equal, 
29591             which is wrong
29592           - Removed obsolete commented out code from UpdateZOrder()
29593
29594 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
29595
29596         * ThemeClearlooks.cs: Updated TrackBar drawing.
29597
29598 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
29599
29600         * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
29601
29602 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
29603
29604         * FileDialog.cs: Add the Help button and the open readonly
29605           checkbox only if needed
29606
29607 2005-12-16  Jackson Harper  <jackson@ximian.com>
29608
29609         * Control.cs: Make sure we have an active menu before trying to
29610         process commands on it. Prevents menu-less forms from crashing
29611         when Alt is pressed.
29612         * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
29613         Dieter Bremes.
29614         * RichTextBox.cs: Expand statement to help out gmcs and fix the
29615         2.0 build.
29616
29617 2005-12-16  Jackson Harper  <jackson@ximian.com>
29618
29619         * InternalWindowManager.cs: Don't translate tool windows screen
29620         coordinates. This fixes windows 'bouncing' around when being moved.
29621
29622 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
29623
29624         * TextBoxBase.cs:
29625           - MaxLength now treats 2^31-1 equal to unlimited length (this is
29626             not quite MS compatible, MS uses that number only for single line
29627             and 2^32-1 for multi-line, but I figure it won't hurt keeping
29628             the limit at 2GB)
29629           - Now enforcing the MaxLength limit when entering characters
29630           - Added argument to internal Paste() method to track if it's called
29631             from programatically or via keyboard, since keyboard driven pastes
29632             need to enforce max-length
29633           - Added logic to Paste to only paste as many chars as MaxLength 
29634             allows
29635         * RichTextBox.cs: Updated to use new obey argument for internal Paste()
29636         * TextControl.cs:
29637           - Added Length property to return number of characters in document
29638           - Added private CharCount property which only tracks actual chars
29639             in the document (no linefeeds) and fires event when CharCount
29640             changes
29641           - Added tracking of character count to all methods that alter it
29642           - Added LengthChanged event to allow applications to subscribe
29643             to any changes to the document
29644
29645 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
29646
29647         * TextBox.cs: 
29648           - Removed local password_char field (moved to TextBoxBase)
29649           - Now setting the document's password var when password is
29650             set
29651         * TextBoxBase.cs:
29652           - Added password_char field (needed here so MultiLine can
29653             access it)
29654           - Added logic to MultiLine property setter to set the document's
29655             variable when password display is allowed
29656           - Removed debug code and made some debug code conditional
29657         * TextControl.cs:
29658           - Added RecalculatePasswordLine() method to handle special password
29659             char only lines
29660           - Added PasswordChar property, also added related tracking vars
29661           - Draw() method now uses local text var for grabbing text to draw,
29662             this var is set to line.text unless we're doing password display,
29663             then it is set to the pre-generated all-password-chars line
29664           - Added calling RecalculatePasswordLine() method for password lines
29665
29666 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
29667
29668         * Hwnd.cs: 
29669           - Added Reparented property to allow tracking of Window Manager
29670             reparenting actions (which affect X/Y calculations of toplevel 
29671             windows)
29672           - Made ToString() print window handles in hex
29673         * XplatUIX11.cs:
29674           - AddConfigureNotify(): Now uses reparented state off Hwnd to
29675             determine if X/Y needs offsetting
29676           - AddConfigureNotify(): Fixed offset calculations
29677           - Now adds ReparentNotify messages into the queue
29678           - Now processes ReparentNotify messages and causes a 
29679             WM_WINDOWPOSCHANGED message to be sent upstream if a window
29680             is reparented (as most likely it's X/Y coordinates are changed
29681             due to that)
29682
29683 2005-12-14  Jackson Harper  <jackson@ximian.com>
29684
29685         * XplatUIX11.cs: Tool windows still need to respek focus.
29686
29687 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
29688
29689         * Control.cs: Undid 54254 (causing XConfigure errors) so we can
29690           have a working release
29691
29692 2005-12-13  Jackson Harper  <jackson@ximian.com>
29693
29694         * Form.cs: Update styles after setting the border style regardless
29695         of whether or not the window is using a window manager.
29696
29697 2005-12-13  Jackson Harper  <jackson@ximian.com>
29698
29699         * Form.cs: We now hook into an internal window manager instead of just an
29700         MDI subsystem, this is so we can have properly behaving tool windows.
29701         * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
29702         * InternalWindowManager.cs: New internal class that acts as a
29703         window manager for tool windows and as a base for mdi windows.
29704         * MdiWindowManager.cs: New class that acts as a window manager for
29705         mdi windows.
29706
29707 2005-12-12  Jackson Harper  <jackson@ximian.com>
29708
29709         * Control.cs: Updates so we match behavoir for for implicit
29710         controls. Fixes explosions in MDI.
29711
29712 2005-12-12  Jackson Harper  <jackson@ximian.com>
29713
29714         * Control.cs: Implement Invalidate (Region).
29715
29716 2005-12-12  Peter Dennis Bartok  <pbartok@novell.com> 
29717
29718         * Control.cs: 
29719           - Changed handling of Controls.Add/Controls.Remove to fire (almost) 
29720             the same events as MS does. MS fires events for each property 
29721             except, for unknown reasons, Cursor, when the control is reparented. 
29722             I can't seem to totally match add/remove since MS also fires some 
29723             VisibleChanged events, which makes no sense. Consolidated the
29724             parenting code into a separate method so it can be called from
29725             both Add and Remove. set_Parent no longer needs any special logic
29726             as it calls the parent's add method which implicitly fires
29727             all events
29728           - Removed some obsolete code and debug output
29729           - Enabled state is inherited from parents, if this is enabled
29730
29731 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com> 
29732
29733         * Form.cs: Removed commented out code
29734
29735 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com>
29736
29737         * Control.cs:
29738           - Added internal version of Invoke, with additional argument 
29739             indicating if we're calling it from a Dispose() handler. That
29740             way we can avoid BeginInvoke throwing an exception if we're
29741             calling for an already destroyed window.
29742           - Added a dispose argument to BeginInvokeInternal, and made the
29743             check if a valid window handle chain exists conditional on
29744             it not being a dispose call
29745           - Removed code in DestroyHandle to destroy our children. Since we
29746             now handle the WM_DESTROY message we will catch all our children
29747             being destroyed.
29748           - Now calling OnHandleDestroyed from our new WM_DESTROY handler
29749         * Form.cs:
29750           - Added a field to track the application context of the form.
29751           - No need to set closing variable as response to WM_CLOSE, instead
29752             we destroy the window. We also call PostQuitMessage if the form
29753             has an application context (which makes it the main app form,
29754             which, when closed terminates the app)
29755         * XplatUI.cs:
29756           - Dropped Exit() method, it's naming was confusing
29757           - Added PostQuitMessage() which causes GetMessage to return false
29758             once the message queue is empty
29759         * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added 
29760           PostQuitMessage()
29761         * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
29762           no longer a valid XplatUI method, but left it in since it's used
29763           internally. Added empty PostQuitMessage() method.
29764         * MenuAPI.cs: Replaced call to Exit() with call to
29765           PostQuitMessage, even though this is probably no longer needed.
29766         * Hwnd.cs: Added 'pretty' ToString() to support debugging.
29767         * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
29768         * Application.cs:
29769           - Replaced call to XplatUI.Exit() with PostQuitMessage()
29770           - Removed old debug code that would call XplatUI for exception
29771             display, enabled standard exception handling (Still not enabled
29772             though, until NativeWindow's ExternalExceptionHandler define
29773             is removed
29774         * NativeWindow.cs:
29775           - Added internal method to allow control to update NativeWindow
29776             after a window has been destroyed
29777           - Added handling of already destroyed windows when calling i
29778             DestroyWindow
29779           - Added removal of handle from list on ReleaseHandle
29780         * XplatUIX11.cs:
29781           - Dropped GetMessageResult var and related code
29782           - Added PostQuitState to field to track if PostQuitMessage has been
29783             called
29784           - Dropped Exit() method
29785           - Added PostQuitMessage() method
29786           - GetMessage now will return false if PostQuitState is set and no
29787             more messages are in the queue.
29788           - Expose handler will no longer generate WM_PAINT messages if we are
29789             in PostQuitState since it's very likely any windows have already
29790             been destroyed, and since Hwnd won't get updated until we have
29791             processed the DestroyNotify we'd be causing X errors.
29792         
29793 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
29794
29795         * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
29796           Thanks to Mike for pointing out the err of my ways.
29797
29798 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
29799
29800         * Control.cs(PreProcessMessage): Moved menu handling back, but
29801           after all other key handling, to match MS (who handles Menu in
29802           DefWndProc)
29803         * Menu.cs (WndProc): Removed my brainfart
29804
29805 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
29806
29807         * Control.cs(PreProcessMessage): Removed special menu handling 
29808         * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
29809
29810 2005-12-07  Mike Kestner  <mkestner@novell.com>
29811
29812         * Control.cs : special case SYSKEYUP so that we can adjust keynav
29813         state according in tracker.
29814         * Menu.cs : promote tracker field to base class and provide a tracker
29815         lookup capability.  Add/Remove shortcuts dynamically if the top menu
29816         has a tracker. Unparent items that are removed from the collection.
29817         * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
29818         * Theme*.cs: add always_show_hotkeys field to support configurability
29819         of mnemonic display.  win32 doesn't show mnemonics until Alt is
29820         pressed.
29821
29822 2005-12-07  Jackson Harper  <jackson@ximian.com>
29823
29824         * MdiChildContext.cs: Use Control.ResetCursor.
29825         * Control.cs: ResetCursor needs to set the property so that the
29826         correct XplatUI call gets made.
29827
29828 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
29829
29830         * Control.cs: More fixes to make our key events match MS. We
29831           were not setting the modifier state on KeyData, and we were
29832           not generating any events when Alt was pressed with a key
29833           since handling of WM_SYSxxx was missing for the OnKey methods.
29834
29835 2005-12-07  Jackson Harper  <jackson@ximian.com>
29836
29837         * MdiChildContext.cs: reenable the sizing code.
29838         - When the mouse leaves a window reset its cursor.
29839
29840 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
29841
29842         * ThemeClearlooks.cs: Reflect latest Hwnd changes
29843
29844 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
29845
29846         * Hwnd.cs: Now using the theme 3d bordersize to calculate
29847           widths of Fixed3D borders
29848
29849 2005-12-07  Jackson Harper  <jackson@ximian.com>
29850
29851         * MdiClient.cs: Fix warnings. Earn Mike's love.
29852
29853 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
29854
29855         * ThemeClearlooks.cs:
29856           - Adjusted mouse over button color
29857           - Added first parts of CheckBox drawing
29858           - Added correct color for selected text background
29859           - Fixed ComboBox drawing
29860           - Added CPDrawBorder3D and CPDrawBorder
29861
29862 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
29863
29864         * XplatUIX11.cs: Added call to XBell for AudibleAlert
29865
29866 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com> 
29867
29868         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
29869           XplatUIOSX.cs: Added AudibleAlert() method to have a means to
29870           alert users via sound. We could add an enum arg with different
29871           types of alerts in the future
29872
29873 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
29874
29875         * Control.cs: Fix behaviour problems pointed out by Mike
29876
29877 2005-12-05  Mike Kestner  <mkestner@novell.com>
29878
29879         * StatusBarPanel.cs: add Invalidate method and hook it into all the
29880         prop setters.  Calls parent.Refresh for now, but could be maybe be
29881         optimized with an internal method on StatusBar at some point.
29882         [Fixes #76513]
29883
29884 2005-12-05  Peter Dennis Bartok  <pbartok@novell.com> 
29885
29886         * RichTextBox.cs: Implemented get_SelectionColor
29887
29888 2005-12-05  Alexander Olk  <alex.olk@googlemail.com>
29889
29890         * ThemeClearlooks.cs:
29891           - Removed dead code
29892           - Draw black button border only if button is Form.AcceptButton
29893           - Draw correct button color for pressed RadioButton if the mouse 
29894             has entered the button
29895           - Updated ProgressBar drawing!
29896           - Updated CPDrawSizeGrip drawing
29897           - Updated StatusBarPanel drawing
29898
29899 2005-12-05  Mike Kestner  <mkestner@novell.com>
29900
29901         * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
29902         * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
29903
29904 2005-12-04  Alexander Olk  <alex.olk@googlemail.com>
29905
29906         * ThemeClearlooks.cs: Initial check-in, activate with
29907           export MONO_THEME=clearlooks
29908         * ThemeEngine.cs: Added ThemeClearlooks
29909
29910 2005-12-03  Mike Kestner  <mkestner@novell.com>
29911
29912         * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
29913         [Fixes #76897]
29914
29915 2005-12-02  Jackson Harper  <jackson@ximian.com>
29916
29917         * Form.cs: If the child form has no menu the default main menu is
29918         used as the active menu.
29919
29920 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com> 
29921
29922         * ListBox.cs: Check if any items exist before trying to resolve 
29923           coordinates into items
29924
29925 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
29926
29927         * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
29928           as the second color for the background hatch
29929
29930 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
29931
29932         * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
29933         * RichTextBox.cs: FormatText position arguments are 1-based, now making
29934           sure that what we pass to FormatText is always 1-based. Fixes #76885
29935
29936 2005-11-29  Miguel de Icaza  <miguel@novell.com>
29937
29938         * NumericUpDown.cs (EndInit): When we are done initializing,
29939         reflect any updates on the UI.
29940
29941 2005-12-02  Jackson Harper  <jackson@ximian.com>
29942
29943         * ImplicitHScrollBar.cs:
29944         * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
29945         their container controls.
29946         * TreeView.cs: Use the new implicit scrollbars.
29947
29948 2005-12-02  Jackson Harper  <jackson@ximian.com>
29949
29950         * TreeView.cs: Make top_node internal so the TreeNodeCollections
29951         can play with it.
29952         * TreeNodeCollection.cs: If we remove the topnode we need to
29953         update topnode to the next node in line.
29954         - When clearing nodes go through the same process as removing
29955         them, so they get depareneted and checked if they are top node.
29956
29957 2005-12-01  Jackson Harper  <jackson@ximian.com>
29958
29959         * TreeView.cs: When imagelists are used the image area is
29960         selectable as well as the text.
29961         - If there are no selected nodes select the first one.
29962         * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
29963         so don't do it more then we need to.
29964
29965 2005-12-01  Jackson Harper  <jackson@ximian.com>
29966
29967         * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
29968         that arrows can be scaled.
29969
29970 2005-12-01  Jackson Harper  <jackson@ximian.com>
29971
29972         * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
29973         fail. Patch by Dieter Bremes
29974
29975 2005-11-30  Jackson Harper  <jackson@ximian.com>
29976
29977         * Form.cs: Property is 2.0 only
29978         * PrintDialog.cs: Signature fix.
29979
29980 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
29981
29982         * TextControl.cs: 
29983           - No longer artificially moves text 2 pixels down (now that we have
29984             borders this is no longer needed)
29985           - Added calcs for left, hanging and right indent
29986
29987 2005-11-23  Mike Kestner  <mkestner@novell.com>
29988
29989         * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
29990
29991 2005-11-30  Jackson Harper  <jackson@ximian.com>
29992
29993         * MdiChildContext.cs: Set the cloned menus forms, as these don't
29994         get cloned as part of CloneMenu ().
29995         * Menu.cs: Make sure the parent of the items get set correctly
29996         when they are added.  And the owners are notified of the changes.
29997         * Form.cs: Create an ActiveMenu property, so that when MDI is used
29998         we can change the menu being displayed/handled by the form without
29999         changing the menu assosciated with the form.
30000         - Don't let Mdi children draw/handle menus.
30001         
30002 2005-11-30  Jackson Harper  <jackson@ximian.com>
30003
30004         * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
30005         a MenuChanged event. Just to make the API a little more
30006         consistent.
30007         * MainMenu.cs:
30008         * MenuItem.cs: Use the new OnMenuChanged
30009         * MdiChildContext.cs: Handle menu merging.
30010         * Form.cs: Implement MergedMenu.
30011         
30012 2005-11-30  Jackson Harper  <jackson@ximian.com>
30013
30014         * Menu.cs: We were misusing Add. Add goes behind the specified
30015         index according to the docs, and does not replace the specified
30016         index. So I added an Insert method.
30017
30018 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
30019
30020         * TextBoxBase.cs:  Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
30021           Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
30022           is for Jackson
30023         * RichTextBox.cs: Added calls to base for DnD events
30024
30025 2005-11-28  Peter Dennis Bartok  <pbartok@novell.com>
30026
30027         * TextControl.cs:
30028           - Fixed drag-selection related crash; style fixes
30029           - Implemented undo class
30030             o Implemented method to capture document state for specified
30031               range in document tree
30032             o Implemented method to restore captured document state
30033             o Implemented cursor tracking
30034             o Implemented basic undo stack
30035           - Added undo cursor tracking to methods altering cursor location
30036           - Added undo tracking to selection deletion (still missing
30037             other text-altering hookups)
30038         * RichTextBox.cs:
30039           - Added SelectionLength property
30040           - Implemented CanPaste()
30041           - Implemented Paste()
30042           - Added missing protected methods
30043           - Fixed RTF->Document conversion; now uses font index 0 and color 
30044             index 0 as the default font for the parsed text
30045           - Fixed RTF<->Document font size translation
30046           - Fixed RTF generation, now properly handles cross-tag boundaries
30047             for single line selection
30048           - No longer always appends blank line to generated RTF
30049           - Removed TODOs
30050           - Added missing attributes
30051           - Hooked up undo-related methods
30052         * TextBoxBase.cs:
30053           - Implemented Copy()
30054           - Implemented Paste()
30055           - Implemented Cut()
30056           - Fixed caret mis-behaviour on backspace across line-boundaries
30057
30058 2005-11-29  Jackson Harper  <jackson@ximian.com>
30059
30060         * MdiClient.cs: Add a method for activating mdi children. Very
30061         basic right now. I imagine someday it might need more girth.
30062         * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
30063         children windows names are added to the menu item.
30064         * ThemeWin32Classic.cs: Draw the arrow if the item is an
30065         mdilist. This happens regardless of whether or not there are any
30066         mdi windows to see in the list, and according to my tests happens
30067         before the items are even added. Also happens if there isn't even
30068         an mdi client to get windows from.
30069
30070 2005-11-29  Alexander Olk  <alex.olk@googlemail.com>
30071
30072         * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
30073         * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
30074
30075 2005-11-29  Jordi Mas i Hernandez <jordimash@gmail.com>
30076
30077         * DataGridTableStyle.cs:
30078           - Create always the styles for the missing columns even if they are
30079             provided by the user (not default table style)
30080         * DataGrid.cs:
30081           - Fixes bug 76770
30082           - Fixes SetDataBinding (always re-attach source)
30083           - Fixes SetNewDataSource (only clear styles if they are not for 
30084             this source)
30085          -  Expands OnTableStylesCollectionChanged to handle style refresh 
30086             and remove properly
30087
30088 2005-11-29  Jackson Harper  <jackson@ximian.com>
30089
30090         * FileDialog.cs: Implement missing bits, remove some dead
30091         code.
30092         * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
30093         creation of the panel so that the options set on the dialog are
30094         seen when the panel is created.
30095         * TreeView.cs: raise a click when items are clicked.
30096         
30097 2005-11-29  Jackson Harper  <jackson@ximian.com>
30098
30099         * MdiClient.cs: Pass some signature methods through to base.
30100
30101 2005-11-28  Jackson Harper  <jackson@ximian.com>
30102
30103         * ListView.cs: Raise the click event when items are clicked.
30104
30105 2005-11-28  Jackson Harper  <jackson@ximian.com>
30106
30107         * MdiClient.cs: Make this algorithm even more beautiful.  And fix
30108         a nullref.
30109
30110 2005-11-27  Alexander Olk  <alex.olk@googlemail.com>
30111
30112         * ThemeNice.cs: - Removed 1 pixel bitmaps
30113           - Use SmoothingMode.AntiAlias where it makes sense
30114             (ScrollButton arrow for example)
30115           - Enhanced Button focus drawing
30116           - Fixed ComboBox drawing (no artefacts anymore, focus
30117             rectangle is back again, reduced size of ComboButton, etc.)
30118           - Fixed RadioButton focus drawing for Appearence.Button
30119           - Slight ScrollButton redesign
30120           - Some LinearGradientBrush size fixes
30121           - GroupBoxes have now rounded edges
30122           - Fixed StatusBar drawing
30123
30124 2005-11-25  Alexander Olk  <alex.olk@googlemail.com>
30125
30126         * ThemeNice.cs: - Remove dead code
30127           - use correct background colors for menus, etc.
30128           - Fake pixel drawing with 1 pixel bitmaps
30129
30130 2005-11-24  Jackson Harper  <jackson@ximian.com>
30131
30132         * MdiClient.cs: Size the scrollbars when resizing the window.
30133         - Resize the maximized windows when the client is resized
30134         * Form.cs: Make the child context available
30135         
30136 2005-11-23  Jackson Harper  <jackson@ximian.com>
30137
30138         * MdiChildContext.cs: Don't size windows if they are maximized.
30139
30140 2005-11-23  Mike Kestner  <mkestner@novell.com>
30141
30142         * ContextMenu.cs: use MenuTracker.
30143         * Control.cs: remove menu handle usage.
30144         * Form.cs: remove menu handle usage.
30145         * Hwnd.cs: remove menu handle usage.
30146         * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
30147         motion and clicks to the new Tracker handlers.
30148         * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
30149         and handle usage.
30150         * MenuAPI.cs: refactored to combine popup and menubar event handling.
30151         Killed the MENU and MENUITEM data types and associated collections
30152         since we now keep the info on Menu and MenuItem. Expanded TRACKER into
30153         MenuTracker class that exposes the leftovers from the old MenuAPI
30154         static methods. Restructured Capture handling so that only one grab is
30155         done for the entire menu hierarchy instead of handing off grabs to
30156         submenus. Tracker now has an invisible control to Capture when active.
30157         * MenuItem.cs: add sizing accessors, kill Create
30158         and handle usage.
30159         * Theme.cs: remove menu handle and MENU(ITEM) usage.
30160         * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
30161         MENU(ITEM). remove menu handle usage, use Menu directly.
30162         * XplatUIDriver.cs: remove menu handle usage.
30163         * XplatUIOSX.cs: remove menu handle usage.
30164         * XplatUIWin32.cs: remove menu handle usage.
30165         * XplatUIX11.cs: remove menu handle usage.
30166
30167 2005-11-22  Jackson Harper  <jackson@ximian.com>
30168
30169         * Hwnd.cs: Don't compute the menu size for
30170         DefaultClientRectangle.
30171         - Reenable menu sizes being computed for GetClienRectangle.
30172         * Form.cs: Remove comment of trechery
30173         
30174 2005-11-22  Jackson Harper  <jackson@ximian.com>
30175
30176         * Hwnd.cs: The adjustments for the menu bar are made when it is
30177         attached to the form.
30178
30179 2005-11-19  Jackson Harper  <jackson@ximian.com>
30180
30181         * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
30182         (just like on windows).
30183
30184 2005-11-19  Jackson Harper  <jackson@ximian.com>
30185
30186         * MdiChildContext.cs: Handle all the buttons ourselves. We can't
30187         use real buttons anymore because they are in non client area. The
30188         one TODO here is that I need to somehow invalidate a section of
30189         the non client area.
30190
30191 2005-11-18  Jackson Harper  <jackson@ximian.com>
30192
30193         * Control.cs: Put the enum check back in now that MDI doesnt have
30194         to use this to set border styles.
30195         * Form.cs: Only set mdi child windows borders if the handle has
30196         been created.
30197         * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
30198         this directly on to the driver.
30199         - Get the move start position before adjusting for the titlebar
30200         height, this fixes the windows "skipping" when they are first
30201         moved.
30202
30203 2005-11-18  Jackson Harper  <jackson@ximian.com>
30204
30205         * XplatUIX11.cs: Just compute the mdi borders separately as they
30206         don't totally match up with normal form borders.
30207
30208 2005-11-18  Jackson Harper  <jackson@ximian.com>
30209
30210         * Control.cs: Set WS_ styles for borders, so that the driver does
30211         not have to retrieve the control instance to figure out what kind
30212         of borders it should have.
30213         * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
30214         driver can know its an mdi child easily.
30215         * XplatUIX11.cs: Get the border styles and whether the window is
30216         MDI from the Styles and ExStyles params instead of having to get a
30217         control. This prevents a chicken and egg problem.       
30218
30219 2005-11-18  Jackson Harper  <jackson@ximian.com>
30220
30221         * MdiClient.cs: Fix typo so scrollbars show up correctly.
30222
30223 2005-11-18  Jackson Harper  <jackson@ximian.com>
30224
30225         * MdiClient.cs: Calculate when to add and remove scrollbars
30226         correctly.
30227         * MdiChildContext.cs: Adjust the y position to take the titlebar
30228         into account.
30229         - No height for FormBorderStyle.None
30230
30231 2005-11-18  Jackson Harper  <jackson@ximian.com>
30232
30233         * Control.cs: Allow non enum values to be used for
30234         InternalBorderStyle.  MDI does this to set a special border style.
30235         - New utility methods for converting points to/from client coords
30236         - Add the newly created control to the Controls collection before
30237         updating its style. This way UpdateStyle can walk the control
30238         heirarchy to find the control if needed.
30239         so I don't need to create a new Point object all the time.
30240         * Form.cs: Let MDI windows handle their border styles.
30241         - Set styles on MDI windows so the correct title style is derived.
30242         * MdiChildContext.cs: Move all the painting and window handling
30243         into the non client area.
30244         - Use correct sizing and put correct buttons on frames based on
30245         the FormBorderStyle.
30246         - Notify the mdi client about scrolling
30247         - Need to handle the buttons ourselves now, because they are all
30248         in non client areas and we can't add controls there.
30249         * MdiClient.cs: Halfway to scrolling, this implementation is
30250         somewhat broken though, we need to check to make sure other
30251         windows aren't causing scrolling before removing the bars. Also
30252         the bars need to be drawn on top, maybe I can switch implicit
30253         controls to be on top.
30254         * Hwnd.cs: caption_height and tool_caption_height are now
30255         properties of an hwnd, this way they can be set by the driver
30256         based on the type of window they are.  In X11 the window manager
30257         handles the decorations so caption_height is zero unless its an
30258         MDI window.
30259         - Add 3 pixel borders for MDI windows (0xFFFF).
30260         - Get rid of some code duplication, have DefaultClientRectanle
30261         just call GetClientRectangle.
30262         * XplatUIX11.cs: Pass caption_height and tool_caption_height to
30263         Hwnd now.
30264         - Set border styles differently for mdi windows.
30265         * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
30266         Hwnd now.
30267         
30268 2005-11-15  Mike Kestner  <mkestner@novell.com>
30269
30270         * Menu.cs: when adding an item to the collection, if item is already 
30271         parented, remove it from the parent.
30272
30273 2005-11-13  Alexander Olk  <alex.olk@googlemail.com>
30274
30275         * X11DesktopColors.cs: Added KDE support
30276
30277 2005-11-11  Peter Dennis Bartok  <pbartok@novell.com>
30278
30279         * XplatUIWin32.cs: 
30280           - Clipboard methods now can translate Rtf format
30281           - No longer removes clipboard contents whenever a new format is added
30282             to allow placing multiple formats on the clipboard
30283         * Clipboard.cs: Clipboard now supports getting a IDataObject and
30284           will place all formats contained in it onto the clipboard. Also
30285           now cleans the clipboard before placing a new object onto it
30286         * RichTextBox.cs:
30287           - Implemented set_Rtf
30288           - Implemented set_SelectedRtf
30289           - Created InsertRTFFromStream() method to allow single code base
30290             for all properties and methods that insert RTF into document
30291           - Removed debug output
30292         * TextControl.cs:
30293           - Fixed Delete(int) to fix up line numbers
30294           - Fixed ReplaceSelection to combine start and end line
30295           - Fixed serious DeleteChars bug that would leave the document tree
30296             broken
30297           - Improved DumpTree with several logic checks to detect broken
30298             document trees
30299           - Removed debug lines
30300           - Fixed Caret.WordForward/WordBack moving code, now always also 
30301             updates caret.tag (fixes crash when word-selecting across tag
30302             boundaries via keyboard)
30303           - Added Insert() method for inserting multiline text into documents
30304           - Fixed DeleteChars() calculation errors that would cause a broken
30305             tag chain with multiple tag lines
30306           - DeleteChars() no longer crashes on multi-tag lines if not all tags
30307           - Split() no longer moves caret if split is at caret location
30308           - ReplaceSelection() now updates the cursor and re-displays it
30309           - ReplaceSelection() now uses new Insert() method to avoid code
30310             duplication
30311           - FormatText() can now handle formatting partial lines
30312         * TextBoxBase.cs:
30313           - Append now uses new TextControl.Insert() method (this avoids 
30314             duplicate code)
30315           - Implemented Ctrl-X (Cut) (
30316           - Implemented Ctrl-C (Copy)
30317           - Implemented Ctrl-V (Paste) (Still some bugs related to screen 
30318             regeneration when pasting text; roundtripping Copy&Paste within
30319             edit control still fails due to some calculation bugs in GenerateRTF)
30320           - The Delete key will now remove the current selection if it is visible
30321         * TextBox.cs: Removed debug lines
30322         * XplatUI.cs: Trigger initialization of DataFormats (which requires the
30323           driver to be initialized and can't therefore be done via a static ctor)
30324
30325 2005-11-10  Peter Dennis Bartok  <pbartok@novell.com>
30326
30327         * TextControl.cs: Added backend code for finding char arrays and strings
30328         * TextBoxBase.cs:
30329           - Added mouse wheel scroll support
30330           - Added support for VScroll and HScroll events
30331         * RichTextBox.cs:
30332           - Implemented all seven Find() variants
30333           - Implemented GetCharFromPosition()
30334           - Implemented GetCharIndexFromPosition()
30335           - Implemented GetLineFromIndex()
30336           - Implemented GetPositionFromCharIndex();
30337           - Implemented SaveFile for PlainText and UnicodeText
30338           - Fixed set_Font, now setting a new font applies that font to
30339             the whole document
30340           - Implemented generic Document to RTF converter
30341           - Implemented SaveFile for RichText format (still missing unicode
30342             conversion for non-ansi chars)
30343           - Implemented get_Rtf
30344           - Implemented get_SelectedRtf
30345
30346 2005-11-09  Peter Dennis Bartok  <pbartok@novell.com>
30347
30348         * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
30349           to allow any captures to be released before triggering OnClick. This
30350           way a click handler may capture the mouse without interference.
30351         * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
30352           This way we send them even though X may not allow a grab (if the window
30353           isn't visible, for example)
30354
30355 2005-11-08  Pedro Martinez Julia <pedromj@gmail.com>
30356
30357         * DataGridViewRowEventArgs.cs: DataGridView implementation
30358         * DataGridViewElement.cs: DataGridView implementation
30359         * DataGridViewComboBoxCell.cs: DataGridView implementation
30360         * DataGridViewDataErrorContexts.cs: DataGridView implementation
30361         * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
30362         * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
30363         * ImageLayout.cs: DataGridView implementation
30364         * DataGridViewComboBoxColumn.cs: DataGridView implementation
30365         * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
30366         * DataGridViewSelectionMode.cs: DataGridView implementation
30367         * IDataGridViewEditingControl.cs: DataGridView implementation
30368         * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
30369         * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
30370         * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
30371         * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
30372         * DataGridViewColumnSortMode.cs: DataGridView implementation
30373         * DataGridView.cs: DataGridView implementation
30374         * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
30375         * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
30376         * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
30377         * Padding.cs: DataGridView implementation
30378         * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
30379         * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
30380         * DataGridViewRowEventHandler.cs: DataGridView implementation
30381         * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
30382         * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
30383         * DataGridViewButtonCell.cs: DataGridView implementation
30384         * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
30385         * DataGridViewEditMode.cs: DataGridView implementation
30386         * DataGridViewCellValueEventArgs.cs: DataGridView implementation
30387         * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
30388         * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
30389         * DataGridViewCheckBoxColumn.cs: DataGridView implementation
30390         * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
30391         * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
30392         * DataGridViewCellEventHandler.cs: DataGridView implementation
30393         * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
30394         * DataGridViewCellStyleConverter.cs: DataGridView implementation
30395         * DataGridViewSelectedRowCollection.cs: DataGridView implementation
30396         * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
30397         * DataGridViewColumnEventArgs.cs: DataGridView implementation
30398         * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
30399         * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
30400         * QuestionEventArgs.cs: DataGridView implementation
30401         * IDataGridViewEditingCell.cs: DataGridView implementation
30402         * DataGridViewTriState.cs: DataGridView implementation
30403         * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
30404         * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
30405         * DataGridViewColumnCollection.cs: DataGridView implementation
30406         * DataGridViewCellValueEventHandler.cs: DataGridView implementation
30407         * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
30408         * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
30409         * DataGridViewColumn.cs: DataGridView implementation
30410         * DataGridViewCellBorderStyle.cs: DataGridView implementation
30411         * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
30412         * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
30413         * DataGridViewRow.cs: DataGridView implementation
30414         * DataGridViewImageCellLayout.cs: DataGridView implementation
30415         * DataGridViewImageCell.cs: DataGridView implementation
30416         * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
30417         * DataGridViewCheckBoxCell.cs: DataGridView implementation
30418         * DataGridViewHeaderCell.cs: DataGridView implementation
30419         * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
30420         * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
30421         * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
30422         * DataGridViewTextBoxColumn.cs: DataGridView implementation
30423         * QuestionEventHandler.cs: DataGridView implementation
30424         * DataGridViewCellStyleScopes.cs: DataGridView implementation
30425         * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
30426         * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
30427         * DataGridViewCell.cs: DataGridView implementation
30428         * DataGridViewCellEventArgs.cs: DataGridView implementation
30429         * DataGridViewClipboardCopyMode.cs: DataGridView implementation
30430         * DataGridViewCellStyle.cs: DataGridView implementation
30431         * DataGridViewColumnHeaderCell.cs: DataGridView implementation
30432         * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
30433         * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
30434         * TextFormatFlags.cs: DataGridView implementation
30435         * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
30436         * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
30437         * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
30438         * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
30439         * DataGridViewButtonColumn.cs: DataGridView implementation
30440         * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
30441         * HandledMouseEventArgs.cs: DataGridView implementation
30442         * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
30443         * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
30444         * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
30445         * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
30446         * DataGridViewRowCollection.cs: DataGridView implementation
30447         * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
30448         * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
30449         * DataGridViewHitTestType.cs: DataGridView implementation
30450         * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
30451         * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
30452         * DataGridViewColumnEventHandler.cs: DataGridView implementation
30453         * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
30454         * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
30455         * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
30456         * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
30457         * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
30458         * DataGridViewContentAlignment.cs: DataGridView implementation
30459         * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
30460         * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
30461         * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
30462         * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
30463         * DataGridViewPaintParts.cs: DataGridView implementation
30464         * DataGridViewCellCollection.cs: DataGridView implementation
30465         * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
30466         * DataGridViewImageColumn.cs: DataGridView implementation
30467         * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
30468         * DataGridViewElementStates.cs: DataGridView implementation
30469         * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
30470         * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
30471         * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
30472         * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
30473         * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
30474         * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
30475         * DataGridViewRowHeaderCell.cs: DataGridView implementation
30476         * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
30477         * DataGridViewTextBoxCell.cs: DataGridView implementation
30478         * DataGridViewBand.cs: DataGridView implementation
30479         * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
30480         * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
30481         * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
30482         * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
30483         * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
30484         * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
30485         * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
30486         * DataGridViewSelectedCellCollection.cs: DataGridView implementation
30487         * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
30488         * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
30489         * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
30490
30491 2005-11-08  Peter Dennis Bartok  <pbartok@novell.com>
30492
30493         * ThemeWin32Classic.cs: 
30494           - Draw the outside focus rectangle around buttons
30495           - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
30496             doesn't use end caps for every dash of a line anymore. This
30497             workaround ignores the forecolor.
30498
30499 2005-11-08  Kornél Pál  <kornelpal@hotmail.com>
30500
30501         * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
30502           endian safe.
30503
30504 2005-11-07  Jackson Harper  <jackson@ximian.com>
30505
30506         * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
30507
30508 2005-11-07  Jackson Harper  <jackson@ximian.com>
30509
30510         * ScrollableControl.cs: Calculate the maximum and change vars
30511         (more) correctly so that scrollbars appear as a sensible size.
30512
30513 2005-11-04  Jackson Harper  <jackson@ximian.com>
30514
30515         * TreeNodeCollection.cs: Refresh when nodes are cleared from the
30516         collection.
30517         * TreeView.cs: When the tree is sorted null out the top_node so
30518         that it is recalculated.
30519         - Use dotted lines instead of dashed lines to match MS better.
30520
30521 2005-11-04  Jordi Mas i Hernandez <jordimash@gmail.com>
30522
30523         * ListView.cs: 
30524           - Implements key search for items. Useful when browsing files with FileDialog
30525           - When changing view mode or when clear the items reset scrollbar positions
30526
30527 2005-11-04  Jackson Harper  <jackson@ximian.com>
30528
30529         * CurrencyManager.cs: Implement the MetaDataChanged event, the
30530         Reset method, and the CheckEmpty. CheckEmpty is just a total guess
30531         as to what the method may do as there is no real way of creating a
30532         derived CurrencyManager and calling the method. 
30533
30534 2005-11-03  Jackson Harper  <jackson@ximian.com>
30535
30536         * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
30537         * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
30538         method which seems to just be used internally to refresh the tabs.
30539
30540 2005-11-03  Jackson Harper  <jackson@ximian.com>
30541
30542         * TabControl.cs: Implement the remove method. Fix some broken
30543         comments.
30544
30545 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
30546
30547         * DateTimePicker.cs:
30548           - Added missing DateTimePickerAccessibleObject class
30549           - Added missing events
30550           - Added OnFontChanged method
30551         * Form.cs: Added missing attributes
30552         * TreeView.cs: Added missing attributes
30553
30554 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com> 
30555
30556         * GridItemCollection.cs: Fix signatures
30557
30558 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
30559
30560         * XplatUI.cs: Updated build rev/date
30561         * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs, 
30562           DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
30563         * Application.cs: Trigger context-specific ExitThread events
30564
30565 2005-11-03  Jackson Harper  <jackson@ximian.com>
30566
30567         * Menu.cs:
30568         * MainMenu.cs:
30569         * GridTableStylesCollection.cs:
30570         * Timer.cs:
30571         * TabPage.cs:
30572         * HelpProvider.cs:
30573         * StatusBar.cs:
30574         * MonthCalendar.cs: Signature fixes
30575
30576 2005-11-03  Jackson Harper  <jackson@ximian.com>
30577
30578         * TreeNodeCollection.cs: Remove should not be virtual.
30579         * TreeView.cs: Implement the last of the missing methods.
30580
30581 2005-11-03  Jackson Harper  <jackson@ximian.com>
30582
30583         * TreeNodeConverter.cs: Implement to get off my class-status back.
30584
30585 2005-11-03  Jackson Harper  <jackson@ximian.com>
30586
30587         * TreeView.cs: Hookup the bits for drag and drop.
30588         * TreeNode.cs: Don't cache the tree_view or index anymore, now
30589         that nodes can be moved from tree to tree easily this just causes
30590         all sorts of problems.
30591         * TreeNodeCollection: Don't need to give treenodes an index and
30592         treeview anymore when they are added, these are computed on the
30593         fly. Also make sure to remove a node before its added.
30594
30595 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
30596
30597         * TextControl.cs:
30598           - Added CaretSelection enum
30599           - Added comparison methods to Marker struct, makes selection code
30600             more readable
30601           - Added SelectionStart and SelectionEnd as 'moveable' location for
30602             the CaretDirection enum and handler
30603           - Added selection_prev variable to track optimized invalidation for
30604             word and line selection
30605           - Added SelectionVisible property (returns true if there is a valid 
30606             selection)
30607           - Switched CaretHasFocus to only display the caret if there is no
30608             visible selection
30609           - Avoiding StringBuilder.ToString to retrieve a single char, instead
30610             using the direct character index; should be much faster
30611           - Added various conditional debug statements
30612           - Fixed invalidation calculation for selection ranges
30613           - Added ExpandSelection() method to support word and line selection
30614           - Switched SetSelectionToCaret to use new Marker compare overloads
30615           - Added central IsWordSeparator() method to determine word 
30616             separators/whitespace and FindWordSeparator() to streamline common
30617             usage of IsWordSeparator()
30618         * TextBoxBase.cs:
30619           - Removed unneeded grabbed variable, it was just mirroring
30620             Control.Capture
30621           - No longer firing OnTextChanged event when Text setter is called,
30622             since the base will fire the event for us
30623           - Added handling of Ctrl-Up/Down selection
30624           - Added handling of Shift-Cursorkey selection
30625           - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
30626             words
30627           - Added handling of Shift and Ctrl-Shift-Home/End selection
30628           - Removed some debug output
30629           - Added handling for single/double/tripple-click to place caret/
30630             select word/select line respectively (Fixes bug #76031)
30631           - Added support for drag expansion of word/line selection
30632         * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
30633           current selection
30634
30635 2005-11-02  Jackson Harper  <jackson@ximian.com>
30636
30637         * X11Dnd.cs: If the drag is going to and from a MWF window just
30638         copy the data instead of sending it out through the X Selection
30639         mechanism.
30640
30641 2005-11-02  Jackson Harper  <jackson@ximian.com>
30642
30643         * X11Dnd.cs:
30644         * XplatUIX11.cs: When in a drag we don't want motion notify
30645         messages to get passed on to the other controls. This prevents
30646         mouse move messages from showing up in the drag source.
30647
30648 2005-11-02  Jackson Harper  <jackson@ximian.com>
30649
30650         * X11Dnd.cs: Remove unneeded call to XAllowEvents.  Make sure that
30651         the correct button is release to end a drag.
30652         * XplatUIX11.cs: Make the button state internal so the drag system
30653         can access it.  Dragging needs to know about all button releases,
30654         not just left button.
30655
30656 2005-11-02  Miguel de Icaza  <miguel@novell.com>
30657
30658         * Form.cs (Icon): If the icon is null, reset the icon to the
30659         default value. 
30660
30661         * Cursor.cs: When writing the AND-mask bitmap do not include the
30662         number of colors, but hardcode those to two (black and white),
30663         fixes the loading of color cursors (Paint Dot Net).
30664
30665         * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
30666         turn off autoscaling.
30667
30668         * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
30669
30670 2005-11-02  Jackson Harper  <jackson@ximian.com>
30671
30672         * X11Dnd.cs: Make sure to send a status message if the pointer
30673         enters a control that can not accept a drop, otherwise the cursor
30674         isn't updated correctly. Also tried to compress the lines of code
30675         a bit.
30676
30677 2005-11-02  Jackson Harper  <jackson@ximian.com>
30678
30679         * X11Dnd.cs: Change cursors based on drag action. Also attempt to
30680         set actions correctly.  This isn't perfect as XDND and win32 have
30681         some differences on how you allow actions. I'll clear this up by
30682         adding a path for drag from MWF to MWF windows.
30683         * XplatUIX11.cs: Hook into the dnd system.
30684
30685 2005-11-02  Jordi Mas i Hernandez <jmas@softcatala.org>
30686
30687         * ListView.cs: Fixes scroll bar visibility. Hide them if they were
30688         previously shown but they are no longer need it. Very obvious when 
30689         browsing files with FileDialog.
30690
30691 2005-11-01  Peter Dennis Bartok  <pbartok@novell.com>
30692
30693         * Control.cs: We always need to call OnPaintBackground. We pretty much
30694           ignore AllPaintingInWmPaint and always do the painting there, whether 
30695           it's set or not, since we always ignore the WM_ERASEBKGND message 
30696           (which we don't generate on X11). This fixes #76616.
30697         * Panel.cs: Removed unneeded background painting. This happens properly
30698           in Control.cs already
30699
30700 2005-10-31  Mike Kestner  <mkestner@novell.com>
30701
30702         * Menu.cs: Add items to collection before setting their index.
30703         * MenuItem.cs : add range checking with ArgumentException like MS.
30704         [Fixes #76510]
30705
30706 2005-10-31  Jackson Harper  <jackson@ximian.com>
30707
30708         * ListBox.cs: Invalidate if the area is visible at all not just
30709         contained in the visible rect. Fixes unselection of semi visible
30710         items.
30711
30712 2005-10-31  Jackson Harper  <jackson@ximian.com>
30713
30714         * Control.cs: Consistently name the dnd methods. Make them
30715         internal so we can override them to match some MS behavoir
30716         internally.
30717         * Win32DnD.cs: Use the new consistent names.
30718
30719 2005-10-31  Jackson Harper  <jackson@ximian.com>
30720
30721         * TreeView.cs: Don't draw the selected node when we lose focus.
30722
30723 2005-10-31  Jackson Harper  <jackson@ximian.com>
30724
30725         * X11Dnd.cs: We still need to reset the state even though a full
30726         reset isn't being done, otherwise status's still get sent all over
30727         the place.
30728
30729 2005-10-31  Jackson Harper  <jackson@ximian.com>
30730
30731         * Control.cs: Make the dnd_aware flag internal so the dnd
30732         subsystem can check it. Catch exceptions thrown in dnd handlers to
30733         match MS behavoir.
30734         * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
30735         * X11Dnd.cs: Handle null data in the converters. Set the XDND
30736         version when sending a XdndEnter. Use the control/hwnd dnd_aware
30737         flags to reduce the number of dnd enters/status's sent.
30738
30739 2005-10-31  Jackson Harper  <jackson@ximian.com>
30740
30741         * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
30742
30743 2005-10-31  Jordi Mas i Hernandez <jordi@ximian.com>
30744
30745         * PictureBox.cs: Fixes 76512
30746
30747 2005-10-28  Jackson Harper  <jackson@ximian.com>
30748
30749         * X11Dnd.cs: Early implementation to support winforms being a drag
30750         source for data on X11. Also restructured the converters so they
30751         can go both ways now.
30752         * XplatUIX11.cs: Tie ins to the the Dnd stuff.
30753         
30754 2005-10-27  Peter Dennis Bartok  <pbartok@novell.com>
30755
30756         * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
30757           clipboard requests
30758
30759 2005-10-27  Jackson Harper  <jackson@ximian.com>
30760
30761         * TreeNode.cs: Implement serialization so my DnD examples will work.
30762
30763 2005-10-24  Kornél Pál  <kornelpal@hotmail.com>
30764
30765         * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
30766           TreeView.cs: Don't dispose objects that are not owned.
30767           
30768 2005-10-24  Peter Dennis Bartok  <pbartok@novell.com>
30769
30770         * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
30771           should retrieve the current cursor and report that, but XplatUI
30772           doesn't (yet) have an interface for that (and I'm not sure I even
30773           can, on X11)
30774         * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
30775           until any message loop processing is done (and the WM_SETCURSOR
30776           replaces the cursor to the proper one)
30777         * XplatUIX11.cs: 
30778           - Fixed override behaviour, we can't set the cursor globally on X11, 
30779             just for our windows.
30780           - Invalidating the System.Drawing X11 display handle when we are
30781             shutting down
30782         * Control.cs: Fix to make csc happy
30783
30784 2005-10-23  Peter Dennis Bartok  <pbartok@novell.com>
30785
30786         * TextBoxBase.cs: 
30787           - get_Text: Add last line (without trailing newline) to returned
30788             value (Fixes 76212)
30789           - get_TextLength: Count last line in returned length
30790           - ToString: Call Text property instead of duplicating code
30791
30792 2005-10-23  Kornél Pál  <kornelpal@hotmail.com>
30793
30794         * ImageList.cs: Dispose ImageAttributes objects.
30795
30796 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
30797
30798         * ImageList.cs: Use attribute constructors with less arguments where
30799           possible.
30800
30801 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
30802
30803         * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
30804           Use typeof instead of strings when assembly is referenced. Added
30805           some more comments.
30806
30807 2005-10-21  Jackson Harper  <jackson@ximian.com>
30808
30809         * ListView.cs: Raise a double click event. Also tried to somewhat
30810         fix when the selectedindexchanged event is raised. Its still
30811         broken though.
30812
30813 2005-10-21  Jackson Harper  <jackson@ximian.com>
30814
30815         * TreeView.cs: New method to invalidate the plus minus area of a
30816         node without invalidating the whole node (maybe this can be used
30817         in some more places).
30818         * TreeNodeCollection.cs: When adding to an empty node we need to
30819         invalidate its plus minus area so the little block shows up.
30820         
30821 2005-10-21  Jackson Harper  <jackson@ximian.com>
30822
30823         * TreeView.cs: Make sure that when we invalidate a node the bounds
30824         are big enough to cover the selected box and the focus
30825         rectangle. Use a different colour for the lines connecting nodes
30826         so they show up with all themes.
30827
30828 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
30829
30830         * NativeWindow.cs: Don't call anything that could call into the driver,
30831           we might be on a different thread.
30832
30833 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com> 
30834
30835         * Control.cs(Dispose): Since Dispose might run on a different thread,
30836           make sure that we call methods that could call into the driver via
30837           invoke, to avoid thread issues
30838
30839 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
30840
30841         * XplatUI.cs: Removed finalizer
30842         * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
30843           not allowing to be called on the finalizer thread.
30844
30845 2005-10-21  Kornél Pál  <kornelpal@hotmail.com>
30846
30847         * ImageList.cs:
30848           - Reverted r51889 and r51891.
30849           - Added ImageListItem class that stores unmodified image items and image
30850             properties required to create list images until handle is created.
30851           - Added AddItem and moved image creation logic to AddItemInternal.
30852           - Added CreateHandle method that creates images based on unmodified items.
30853           - Added DestroyHandle that changes state to store unmodified items.
30854           - Add and AddStrip methods no more create handle.
30855           - ReduceColorDepth has no return value.
30856           - Dispose destroys handle.
30857           - Modified other methods to reflect the above changes.
30858           - Implemented key support.
30859           - Added profile 2.0 members and attributes.
30860           - Added private Reset and ShouldSerialize methods that provide the same
30861             behavior as MS.NET but the Visual Studio .NET designer seems to ignore
30862             them as they are private.
30863           - Added some more comments about implementation details.
30864
30865 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
30866
30867         * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
30868
30869 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
30870
30871         * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
30872
30873 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
30874
30875         * DataGridDrawingLogic.cs: Fixes column hit calcultation
30876         * DataGridColumnStyle.cs: Remove debug message
30877
30878 2005-10-20  Jackson Harper  <jackson@ximian.com>
30879
30880         * TreeView.cs: We can always get input keys regardless of whether
30881         or not editing is enabled. They are used for navigation.
30882
30883 2005-10-20  Jackson Harper  <jackson@ximian.com>
30884
30885         * TreeNode.cs: Use the viewport rect for determining if a node
30886         needs to be moved for visibility. Don't use Begin/End edit. This
30887         calls a full refresh when its done.
30888         * TreeView.cs: New SetBottom works correctly.  Make the viewport
30889         rect property internal so the treenodes can see it. When clicking
30890         on a node we need to ensure that its visible because it might just
30891         be partly visible when clicked.
30892
30893 2005-10-20  Jackson Harper  <jackson@ximian.com>
30894
30895         * TreeNodeCollection.cs: Remove debug code.
30896
30897 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
30898
30899         * Datagrid.cs: Implements column sorting in Datagrid
30900         * DataGridColumnStyle.cs: Implements column sorting in Datagrid
30901
30902 2005-10-20  Jackson Harper  <jackson@ximian.com>
30903
30904         * TreeNodeCollection.cs: Remove items properly. Update the correct
30905         area after removing them.
30906
30907 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
30908
30909         * Datagrid.cs: Should not call base.OnPaintBackground
30910
30911 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
30912
30913         * XplatUIX11.cs (GetMessage):
30914           - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
30915             window instead of client window
30916           - Now properly calculates NC_xBUTTONUP message coordinates
30917           - ScreenToMenu now properly calculates it's coordinates of whole 
30918             window, since menus are in the whole window, not in the client
30919             window
30920           - Added WholeToScreen coordinate translation method
30921
30922 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com> 
30923
30924         * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
30925           want to return a message, loop back to the beginning of the function
30926           and grab the next real message to process instead.
30927
30928 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
30929
30930         * Splitter.cs: Properly set limits if no filler control is used
30931
30932 2005-10-19  Jackson Harper  <jackson@ximian.com>
30933
30934         * ColorDialog.cs: Don't show the help button if it is not enabled
30935         instead of disabling it (this is what MS does). Don't create the
30936         panel until the dialog is run, otherwise the vars (such as
30937         ShowHelp) are not set yet.
30938
30939 2005-10-19  Jackson Harper  <jackson@ximian.com>
30940
30941         * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
30942         are reduced when adding nodes.
30943         * TreeNode.cs:
30944         * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
30945         tree.
30946         
30947 2005-10-19  Jackson Harper  <jackson@ximian.com>
30948
30949         * FolderBrowserDialog.cs: End editing our treeview so the window
30950         actually gets refreshed.
30951
30952 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
30953
30954         * Control.cs: Fixed logic flip on when to call OnPaintBackground. 
30955           Obsoleted handling of WM_ERASEBKGND, now always draws our background
30956           inside of WM_PAINT
30957
30958 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
30959
30960         * MenuAPI.cs: Returns after Hidding window
30961         * XplatUIX11.cs: Added TODO found while debugging menu issues
30962
30963 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
30964
30965         * XplatUIX11.cs: Do not re-map the whole window when it's size
30966           becomes non-zero unless it's supposed to be actually visible
30967
30968 2005-10-18  Jackson Harper  <jackson@ximian.com>
30969
30970         * TreeView.cs: We don't need to keep a count anymore.
30971         * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
30972         use the Grow method.
30973
30974 2005-10-18  Jackson Harper  <jackson@ximian.com>
30975
30976         * TreeNodeCollection.cs: Insert is not supported on arrays, so
30977         implement it manually here.
30978
30979 2005-10-18  Jackson Harper  <jackson@ximian.com>
30980
30981         * ImageList.cs: Dont kill the list when the colour depth is
30982         changed, just change the colour depth of all the images.
30983         - Same goes for setting the image size. Just resize them all
30984         instead of killing the list softly.
30985
30986 2005-10-18  Jackson Harper  <jackson@ximian.com>
30987
30988         * Control.cs: Don't invalidate empty rectangles.
30989
30990 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
30991
30992         * ListViewItem.cs:
30993           - Adds checked item to the Checked/Item lists (where empty before)
30994           - Do not add items to the Selected lists if they are already present
30995         * ListView.cs:
30996           - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
30997           - When deleting items make sure that we delete them for the Selected
30998           and Checked list also.
30999
31000 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
31001
31002         * Label.cs: Dispose objects no longer used
31003         * ThemeWin32Classic.cs: Dispose objects no longer used
31004
31005 2005-10-18  Jackson Harper  <jackson@ximian.com>
31006
31007         * TabControl.cs: Don't refresh the whole control when the tabs are
31008         scrolled, we just need to refresh the tab area.
31009
31010 2005-10-17  Jackson Harper  <jackson@ximian.com>
31011
31012         * XplatUIX11.cs: Compress code a little bit. Only calculate the
31013         after handle when we need it.
31014
31015 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
31016
31017         * Control.cs: When the parent size changes, recalculate anchor 
31018           positions. Partial fix for #76462
31019
31020 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
31021
31022         * ThemeWin32Classic.cs: Make sure the picturebox has it's background 
31023           drawn. Fixes #76462
31024
31025 2005-10-17  Jackson Harper  <jackson@ximian.com>
31026
31027         * MonthCalendar.cs: Don't create the numeric up down until our
31028         handle is created. Otherwise our handle is created in the
31029         constructor and we don't know if we are a WS_CHILD or WS_POPUP
31030         yet.
31031
31032 2005-10-17  Jackson Harper  <jackson@ximian.com>
31033
31034         * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
31035         correctly.
31036
31037 2005-10-17  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
31038         * TreeNode.cs : small logical fix (was using local var instead of field)
31039         
31040 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
31041
31042         * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
31043
31044 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
31045
31046         * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
31047
31048 2005-10-16  Peter Dennis Bartok  <pbartok@novell.com> 
31049
31050         * Control.cs: 
31051           - Re-implemented anchoring code. My first version was really broken.
31052             This fixes bug #76033. Unlike the previous implementation we will
31053             no longer have round errors since all numbers are calculated from
31054             scratch every time. Removed various anchor-related obsolete vars.
31055           - InitLayout no longer causes layout event firing and layout to be 
31056             performed
31057
31058 2005-10-16  Jackson Harper  <jackson@ximian.com>
31059
31060         * Hwnd.cs: Compute invalid area correctly (fixes my last commit
31061         which was broken).
31062
31063 2005-10-16  Jackson Harper  <jackson@ximian.com>
31064
31065         * TabControl.cs: Remove debug code.
31066
31067 2005-10-16  Jackson Harper  <jackson@ximian.com>
31068
31069         * XEventQueue.cs: Increase the default queue size (very simple
31070         apps needed to grow the queue).
31071         * Hwnd.cs: No finalizer so we don't need to suppress
31072         finalization. Compute the invalid area manually so a new rectangle
31073         does not newto be created.
31074         * ScrollableControl.cs: Don't set any params (otherwise visibility
31075         isn't set correctly).
31076         * MdiChildContext.cs: New constructor takes the mdi parent so it
31077         doesn't have to be computed and avoids a crash on windows. Draw
31078         the window icon properly, and allow the text to be seen.
31079         * Form.cs: Use new MdiChildContext constructor. Make sure the
31080         child context isn't null in wndproc.
31081         * TabControl.cs: Don't set focus, this is muddling keyboard
31082         behavoir. Expand the tab rows when a window size increase will
31083         allow extra tabs to be seen. Don't allow tabs smaller than the
31084         width of a window to be scrolled out of view.
31085         * TreeNode.cs:
31086         * TreeView.cs: Use measure string to calculate a nodes width, the
31087         width is cached and only updated when the text or the font is
31088         changed. Don't check for expand/collapse clicks on the first level
31089         nodes if root lines are disabled.
31090         
31091 2005-10-16  Ritvik Mayank  <mritvik@novell.com>
31092
31093         * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
31094
31095 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
31096
31097         * DataGridBoolColumn.cs: fixes warning
31098
31099 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
31100
31101         * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
31102         to match more to match more precisely the MS Net behavior
31103
31104 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
31105
31106         * Hwnd.cs: Added field to track if window is mapped
31107         * XplatUIX11.cs: 
31108           - Unmap windows if they become 0-size, re-map when 
31109             they are >0 again; fixes #76035
31110           - Re-set our error handler after initializing X11Desktop
31111             to override any error handlers Gtk or whatever was called
31112             may have set.
31113
31114 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
31115
31116         * CheckedListBox.cs: Removed unused vars
31117         * ListView.cs: Fixed signatures
31118         * RichTextBox.cs: Removed unused vars
31119         * TextBoxBase.cs: Removed unused vars
31120         * XplatUIWin32.cs: Removed unused vars
31121         * XplatUIX11.cs: Removed unused vars
31122         * XplatUI.cs: Updated version and date to latest published
31123
31124 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
31125
31126         * Cursor.cs: Added private .ctor to work around a bug in
31127           resourceset (Thanks to Geoff Norton for the help on this)
31128         * SplitterEventArgs.cs: Made fields accessible so we don't
31129           waste boatloads of objects and can reuse the same one
31130           in Splitter
31131         * XplatUIWin32.cs(DrawReversibleLine): Now also considers
31132           any captions and borders when generating screen coordinates
31133         * Splitter.cs: Reimplemented control, now fully complete, uses
31134           rubberband drawing, supports and obeys all properties, has
31135           proper cursors
31136
31137 2005-10-13  Miguel de Icaza  <miguel@novell.com>
31138
31139         * Form.cs (Form): Setup default values for autoscale and
31140         autoscale_base_size;  Make these instance variables, not static
31141         variables. 
31142
31143         (OnLoad): on the first load, adjust the size of the form.
31144
31145 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
31146
31147         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added 
31148           width argument to DrawReversibleRectangle()
31149         * XplatUIWin32.cs, XplatUIX11.cs: 
31150           - Implemented width for DrawReversibleRectangle()
31151           - Added logic to DrawReversibleRectangle that recognizes a zero
31152             width or height and only draws a line in that situation
31153         
31154 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com> 
31155
31156         * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
31157         * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
31158         * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
31159           method (it uses our FosterParent window to get a graphics context)
31160
31161 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com>
31162
31163         * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground 
31164           and SetWindowBackground methods
31165         * Control.cs:
31166           - Setting proper ControlStyles
31167           - We no longer call XplatUI.SetWindowBackground and XplatUI.
31168             EraseWindowBackground, instead we draw the window background
31169             ourselves in PaintControlBackground. This behaviour is
31170             required to match MS, where, when OnPaintBackground is not
31171             called, the background is not drawn.
31172           - Removed unneeded Refresh() in set_Text
31173         * Hwnd.cs: Dropped the ErasePending support. No longer needed
31174         * XplatUIX11.cs:
31175           - Created DeriveStyles method to translate from CreateParams to
31176             FormBorderStyle and TitleStyle, also handles BorderStyle (which
31177             matches FormBorderStyle enum values)
31178           - Consolidated SetHwndStyles and CalculateWindowRect border/title
31179             style calculations into single DeriveStyles method
31180           - Fixed CreateWindow to (finally) use Gravity. This prevents X11
31181             from redrawing the whole window on any resize or expose.
31182           - Fixed CreateWindow usage of SetWindowValuemask. Before not
31183             all styles were applied to our whole/client window appropriately
31184           - Removed EraseWindowBackground() and SetWindowBackground() methods
31185           - Removed handling of WM_ERASEBKGND message from DefWndProc, we
31186             no longer clear/redraw the background through X
31187           - Removed handling of erase_pending bit, we have no use for it (or
31188             so it seems)
31189         * XplatUIOSX.cs:
31190           - Removed generation and handling of WM_ERASEBKGND message
31191           - Removed EraseWindowBackground() and SetWindowBackground() methods
31192           - Removed handling of hwnd.ErasePending flag
31193         * XplatUIWin32.cs:
31194           - Removed EraseWindowBackground() and SetWindowBackground() methods
31195           - We no longer call EraseWindowBackground on PaintEventStart, we 
31196             ignore the fErase flag, erasing is handled in Control in the
31197             background handler
31198         * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
31199           LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
31200           TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs, 
31201           CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs, 
31202           DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, 
31203           TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
31204           DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
31205
31206 2005-10-12  Jonathan Chambers <jonathan.chambers@ansys.com>
31207
31208         * PropertyGrids.cs: Get sub properties
31209         * PropertyGridView.cs: Fix drawing code
31210
31211 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
31212
31213         * ListBox.cs: Fixes 76383
31214
31215 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
31216
31217         * DataGridTextBoxColumn.cs: Sets location and size before attachment
31218         * ThemeWin32Classic.cs: Fixes border drawing and calculations
31219         * DataGridDrawingLogic.cs: Fixes border drawing and calculations
31220
31221
31222 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
31223
31224         * ComboBox.cs: Fixes border drawing
31225
31226 2005-10-10  Miguel de Icaza  <miguel@novell.com>
31227
31228         * MimeIcon.cs: Ignore errors if the file can not be read.
31229
31230 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
31231
31232         * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
31233          - Fixed border calculations
31234          - Fixed horizontal scrolling in single column listboxes
31235          - Fixed drawing issues
31236
31237 2005-10-10  Peter Dennis Bartok  <pbartok@novell.com>
31238
31239         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to 
31240           FormBorderStyle enum
31241         * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added 
31242           code to determine FormBorderStyles from CreateParams
31243         * Form.cs:
31244           - Fixed bug where we'd set the wrong window styles if we were
31245             not creating an MDI window
31246           - Added call to XplatUI.SetBorderStyle when form borders are set
31247         * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
31248         * Hwnd.cs:
31249           - Removed obsolete edge style
31250           - Switched from BorderStyle to FormBorderStyle
31251         
31252 2005-10-10  Jackson Harper  <jackson@ximian.com>
31253
31254         * Form.cs: Use the property to get the window handle instead of
31255         accessing it directly. Prevents a null reference exception.
31256
31257 2005-10-10  Jackson Harper  <jackson@ximian.com>
31258
31259         * TreeView.cs: Don't adjust the rect given to DrawString now that
31260         our libgdiplus draws correctly.
31261
31262 2005-10-08  Jackson Harper  <jackson@ximian.com>
31263
31264         * TreeView.cs: Don't try to find the clicked on node if there are
31265         no nodes in the tree.
31266
31267 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
31268
31269         * RichTextBox.cs:
31270
31271           restore
31272
31273 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
31274
31275         * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
31276           ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
31277           ErrorProvider.cs:
31278           Use ResPool for brushes and dispose System.Drawing objects that
31279           are not used anymore.
31280
31281 2005-10-07  Jackson Harper  <jackson@ximian.com>
31282
31283         * MdiChildContext.cs: Use the new borders instead of drawing them
31284         ourselves.
31285
31286 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
31287
31288         * Calling UpdateBounds after changing the window's BorderStyle 
31289         since the style can change the ClientSize
31290
31291 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
31292
31293         * Control.cs: Made PaintControlBackground virtual
31294         * Panel.cs: Overriding PaintControlBackground instead of using paint
31295           event; paint event method was interfering with 'real' users of the
31296           event.
31297
31298 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
31299
31300         * ThemeWin32Classic.cs: remove border drawing since it is handled
31301         by the base control class now and was causing double border drawing.
31302
31303 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
31304
31305         * Panel.cs: Redraw our background on paint. Not a pretty solution,
31306           but it does seem to match MS behaviour. This fixes bug #75324
31307
31308 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
31309
31310         * XplatUIX11.cs: A better DrawReversibleRectangle version, however
31311           somewhat hackish looking
31312
31313 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
31314
31315         * TextBoxBase.cs:
31316           - We now accept Enter even if AcceptEnter is false, if the containing
31317             form does not have an AcceptButton configured (fixes bug #76355)
31318           - Calculations are now fixed to no longer use Width/Height, but
31319             ClientSize.Width/Height, since we now support borders (this was
31320             a result of fixing borders and therefore bug #76166)
31321           - We no longer show the horizontal scrollbar if TextBox.WordWrap is 
31322             true (fixes bug #76354)
31323         
31324 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
31325
31326         * Control.cs: 
31327           - Defaulting BorderStyle and setting it in XplatUI when our window 
31328             is created
31329           - Added enum check to InternalBorderStyle setter
31330         * XplatUIX11.cs: 
31331           - Added drawing of window borders
31332           - Now properly calculates WM decorations offset for toplevel 
31333             windows (fixes bug #74763)
31334         * XplatUIWin32.cs: 
31335           - Implemented BorderStyles for windows (we're letting win32 draw 
31336             the border for us)
31337           - Fixed the signature for SetWindowLong
31338         * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
31339           ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for 
31340           setting borders
31341         * UpDownBase.cs: Remove drawing of borders, this is handled by
31342           the driver, outside the client area
31343         * ListView.cs: Removed bogus border calculations. The control should
31344           be oblivious to borders, since those are not part of the client
31345           area. 
31346         * X11DesktopColors.cs: Commented out (currently) unneeded variables
31347         * ThemeWin32Classic.cs: Removed border calculations from ListView 
31348           drawing code
31349
31350 2005-10-06  Jackson Harper  <jackson@ximian.com>
31351
31352         * MdiChildContext.cs: Clear out the old virtual position remove
31353         all the unneeded calls to CreateGraphics.
31354
31355 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
31356
31357         * TextControl.cs: Use proper color for highlighted text; fixes #76350
31358
31359 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
31360
31361         * Form.cs: 
31362           - Added loading and setting of our new default icon
31363           - Only set icon if window is already created
31364
31365 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
31366
31367         * Label.cs:
31368           - Do not explicitly set the foreground and background colors, to
31369             allow inheriting from parents (fixes #76302)
31370           - Use Control's InternalBorderStyle property to deal with borders
31371
31372 2005-10-06  Jackson Harper  <jackson@ximian.com>
31373
31374         * MdiChildContext.cs: Use the new xplatui function to draw a
31375         reversible rect.
31376
31377 2005-10-06  Jackson Harper  <jackson@ximian.com>
31378
31379         * Form.cs: Add the parent before creating the child context cause
31380         we need the parent when setting up the child.
31381
31382 2005-10-06  Jackson Harper  <jackson@ximian.com>
31383
31384         * FolderBrowserDialog.cs: redo the tree population code so a
31385         second thread isn't used. Should be a lot faster and more stable
31386         now.
31387
31388 2005-10-05  Jackson Harper  <jackson@ximian.com>
31389
31390         * TreeView.cs: There are no expand/collapse boxes if the node has
31391         no children.
31392
31393 2005-10-05  Jackson Harper  <jackson@ximian.com>
31394
31395         * X11DesktopColors.cs: Get menu colours for the gtk theme.
31396
31397 2005-10-05  Alexander Olk  <alex.olk@googlemail.com>
31398
31399         * FileDialog.cs: Fix InitialDirectory
31400
31401 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
31402
31403         * ComboBox.cs:
31404                 - Fixes changing between styles
31405                 - Fixes simple mode
31406                 - Fixes last item crashing when navigating with keyboard
31407
31408 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
31409
31410         * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
31411
31412 2005-10-05  Jackson Harper  <jackson@ximian.com>
31413
31414         * TreeView.cs: If updating the root node do a full refresh.
31415         * TreeNode.cs: The root node should be expanded by default. Also
31416         added a utility prop to tell if we are the root node.
31417         * TreeNodeCollection.cs: Only refresh if the node we are being
31418         added to is expanded. Also added a comment on a potential
31419         optimization.
31420         
31421 2005-10-04  Peter Dennis Bartok  <pbartok@novell.com>
31422
31423         * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize() 
31424           in dispose method. Fixes #76330
31425
31426 2005-10-04  Jordi Mas i Hernandez <jordi@ximian.com>
31427
31428         * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
31429
31430                 - Implements vertical and horizontal scrolling using XplatUI
31431                 - Fixes keyboard navagation
31432                 - Fixes EnsureVisible
31433                 - Drawing fixes
31434                 - Handles and draws focus properly
31435
31436
31437 2005-10-04  Kornél Pál  <kornelpal@hotmail.com>
31438
31439         * ImageList.cs: Use upper case initials for internal fields. ImageStream:
31440           Create handle. NET_2_0: Destroy handle when value is null.
31441
31442 2005-10-03  Jackson Harper  <jackson@ximian.com>
31443
31444         * ScrollBar.cs: My last scrollbar patch was broken. This is a
31445         revert and a new patch to prevent the thumb from refreshing so
31446         much.
31447
31448 2005-10-02  Jackson Harper  <jackson@ximian.com>
31449
31450         * ScrollBar.cs: Don't update position if it hasn't actually
31451         changed. This occurs when you hold down the increment/decrement
31452         buttons and the thumb gets to the max/min.
31453
31454 2005-10-01  Jackson Harper  <jackson@ximian.com>
31455
31456         * Form.cs:
31457         * MdiChildContext.cs:
31458         * MdiClient.cs: Implement ActiveMdiChild in Form.
31459
31460 2005-10-01  Jordi Mas i Hernandez <jordi@ximian.com>
31461
31462         * ComboBox.cs: Include ComboBoxEdit flag for the edit item
31463
31464 2005-10-01  Peter Dennis Bartok  <pbartok@novell.com>
31465
31466         * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
31467           be found
31468
31469 2005-09-30  Jackson Harper  <jackson@ximian.com>
31470
31471         * ListBox.cs: Don't do a full refresh unless some data has
31472         actually changed.
31473
31474 2005-09-30  Jackson Harper  <jackson@ximian.com>
31475
31476         * TreeView.cs: Make sure that the checkboxes size is factored in
31477         even when not visible.
31478
31479 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
31480
31481         * FileDialog.cs: Fix Jordi's build break
31482
31483 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
31484
31485         * FileDialog.cs: 
31486                 - Use standard the Windows colours for the combobox as espected
31487                 - Dispose objects that use resouces when no longer need them
31488
31489 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
31490
31491         * X11DesktopColors.cs: Initial incomplete implementation
31492         * XplatUIX11.cs: Added call to initialize X11DesktopColors
31493
31494 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com>
31495
31496         * Theme.cs: 
31497           - Switched Theme color names to match the names defined in 
31498             System.Drawing.KnownColors. Life's hard enough, no need to make 
31499             it harder.
31500           - Added setters to all theme color properties so themes can set
31501             their color schemes. The setters also propagate the color changes
31502             to System.Drawing.KnownColors via reflection
31503         * ControlPaint.cs,  Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
31504           ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
31505           DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
31506           use the new, more logical theme color names
31507         * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
31508           post-NT colors
31509         * ThemeWin32Classic.cs:
31510           - Removed code to set the old classic Windows colors. Instead it
31511             now relies on the colors returned by System.Drawing.KnownColors
31512             which will be either modern static colors (Unix) or colors
31513             read from the user's configuration (Win32)
31514           - Updated to use the new, more logical theme color names
31515           - Switched DataGrid drawing code to use only Theme colors instead of
31516             a mix of System.Drawing.KnownColors and Theme colors
31517           - DrawFrameControl(): Removed code that fills the button area, the
31518             fill would overwrite any previous fill done by a control. This
31519             fixes bug #75338 
31520           - Added DrawReversibleRectangle() stub
31521         * ScrollableControl.cs: Set visible state to false when scrollbars
31522           are removed (pdn fix)
31523         * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added 
31524           DrawReversibleRectangle() method to allow drawing primitive 
31525           'rubber bands'
31526         * XplatUIX11.cs: Implemented DrawReversibleRectangle()
31527
31528 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
31529
31530         * ImageList.cs: Add(Icon): Create handle.
31531
31532 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
31533
31534         * ListView.cs:
31535         * ThemeWin32Classic.cs:
31536                 - Fixes detail mode
31537                 - Sets clippings
31538                 - Issues with drawing
31539
31540 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
31541
31542         * ImageList.cs: Moved RecreateHandle back to ImageList as event
31543           source has to be the ImageList.
31544
31545 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
31546
31547         * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
31548
31549 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
31550
31551         * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
31552
31553 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
31554
31555         * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
31556
31557 2005-09-29  Jonathan Chambers <jonathan.chambers@ansys.com>
31558         * GridItem.cs: Fixed TODOs
31559         * GridItemCollection.cs: Added ICollection interface
31560
31561 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
31562
31563         * ImageList.cs: Resize icons when needed.
31564
31565 2005-09-29  Jordi Mas i Hernandez <jordi@ximian.com>
31566
31567         * ListViewItem.cs
31568                 - Fixes GetBounds and returns on screen rects
31569         * ListView.cs:
31570                 - Fixes vertical and horzintal scrolling of items
31571         * ThemeWin32Classic.cs:
31572                 - Fixes drawing
31573                 
31574 2005-09-29  Raja R Harinath  <harinath@gmail.com>
31575
31576         * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
31577
31578 2005-09-29  Kornél Pál  <kornelpal@hotmail.com>
31579
31580         * ImageList.cs: Added comments about handle creation. Moved Handle,
31581           HandleCreated and OnRecreateHandle implementations to ImageCollection.
31582           Handle is created in Add methods.
31583
31584 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
31585          
31586         * DataGridDrawingLogic.cs: 
31587                 - Takes rows into account on Colum calculations
31588                 - Returns the column when clickig
31589         * DataGrid.cs:
31590                 - Fixes default HitTestInfo values
31591                 - Fixes HitTestInfo.ToString
31592                 - Fixes ResetBackColor          
31593         
31594 2005-09-28  Jackson Harper  <jackson@ximian.com>
31595
31596         * MdiChildContext.cs: Obey rules for fixed sized windows (no
31597         sizing or cursor changes). Also added some temp code to draw the
31598         titlebars text (Makes dev a little easier).
31599
31600 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
31601
31602         * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
31603
31604 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
31605          
31606         * ListBox.cs: Fixes bug 76253
31607
31608 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
31609
31610         * ImageList.cs: Added comments about the current implementation. Added
31611           ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
31612           Format32bppArgb to preserve transparency and can use Graphics.FromImage
31613           while using the specified ColorDepth. ReduceColorDepth uses unsafe code
31614           with Bitmap.LockBits for better performance. Revised the whole file to
31615           match MS.NET behaviour and provide better performance. Non-public
31616           interface members are calling public members even when they throw
31617           NotSupportedException for better maintainability. Moved ColorDepth,
31618           ImageSize, ImageStream and TransparentColor implementations to
31619           ImageCollection for better performance as these properties are not used
31620           by ImageList.
31621         * ImageListStreamer.cs: Added a new internal constructor that takes an
31622           ImageList.ImageCollection and serializes Images based on
31623           ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
31624           match ImageList property name.
31625
31626 2005-09-28  Kazuki Oikawa <kazuki@panicode.com>
31627
31628         * ListBox.cs: Fixes IndexFromPoint for last item
31629
31630 2005-09-27  Jackson Harper  <jackson@ximian.com>
31631
31632         * Form.cs: Set the position of new mdi children correctly.
31633
31634 2005-09-27  Jackson Harper  <jackson@ximian.com>
31635
31636         * MdiClient.cs: New mdi children need to be added to the back of
31637         the controls collection so the zorder is set correctly. Also add a
31638         count of all the child windows that have been created.
31639
31640 2005-09-27  Jackson Harper  <jackson@ximian.com>
31641
31642         * Form.cs (CreateParams): Setup MDI forms correctly.
31643
31644 2005-09-27  Jackson Harper  <jackson@ximian.com>
31645
31646         * MdiChildContext.cs:
31647         * MonthCalendar.cs:
31648         * UpDownBase.cs:
31649         * ListBox.cs:
31650         * ListView.cs:
31651         * TextBoxBase.cs:
31652         * TreeView.cs:
31653         * ScrollableControl.cs:
31654         * ComboBox.cs: Add implicit controls using the new implict control
31655         functionality in ControlCollection. Also try to block multiple
31656         control add in a suspend/resume layout to save some cycles.
31657         
31658 2005-09-27  Jackson Harper  <jackson@ximian.com>
31659
31660         * Control.cs: Add functionality to the controls collection to add
31661         'implicit controls' these are controls that are created by the
31662         containing control but should not be exposed to the user. Such as
31663         scrollbars in the treeview.
31664         * Form.cs: The list var of the ControlsCollection is no longer
31665         available because of the potential of implicit controls getting
31666         ignored by someone accessing the list directly.
31667
31668 2005-09-26  Peter Dennis Bartok  <pbartok@novell.com>
31669
31670         * Control.cs: Fixed SetChildIndex; it no longer causes a child to
31671           loose it's parent. (Fixed bug introduced in r49103 when we added
31672           setting the child parent to null on Remove)
31673
31674 2005-09-26  Gert Driesen  <drieseng@users.sourceforge.net>
31675
31676         * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
31677         * Splitter.cs: Added missing attributes for BorderStyle property.
31678         * TextBoxBase.cs: Marked Calculate* methods internal.
31679         * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
31680         MS.NET.
31681
31682 2005-09-26  Jordi Mas i Hernandez <jordi@ximian.com>
31683          
31684         * ListBox.cs: Fixes navigation to the last item in multicolumn lists
31685
31686 2005-09-25  Jackson Harper  <jackson@ximian.com>
31687
31688         * TreeView.cs: Update the node bounds correctly regardless of
31689         whether the node is visible.
31690
31691 2005-09-25  Jackson Harper  <jackson@ximian.com>
31692
31693         * ImageList.cs: Don't dispose the image after it is added to the
31694         image list. Only reformat images that need to be resized.
31695
31696 2005-09-25  Jackson Harper  <jackson@ximian.com>
31697
31698         * ImageList.cs: Don't set the format when changing the image.
31699
31700 2005-09-25  Jackson Harper  <jackson@ximian.com>
31701
31702         * TreeView.cs: We can't just assume the node has a font. Use the
31703         treeviews font if no node font is available.
31704
31705 2005-09-25  Jackson Harper  <jackson@ximian.com>
31706
31707         * TreeView.cs: Allow the scrollbars to be reset with negative
31708         values.
31709         - Don't add scrollbars to negative sized windows.
31710
31711 2005-09-23  Jackson Harper  <jackson@ximian.com>
31712
31713         * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
31714         old Mono.Posix. Also remove some stray code that shouldn't have
31715         been committed.
31716
31717 2005-09-23  Jackson Harper  <jackson@ximian.com>
31718
31719         * TreeView.cs: Attempt at proper sizing of the horizontal
31720         scrollbar. Also don't resize the scrollbars unless they are
31721         visible.
31722
31723 2005-09-23  Jackson Harper  <jackson@ximian.com>
31724
31725         * TreeView.cs: We don't need to expand the invalid area when the
31726         selection changes, as this is all drawn in the node's bounding
31727         box. The area needs to be expanded (previous typo was contracting
31728         it) when the focus rect moves.
31729
31730 2005-09-23  Jackson Harper  <jackson@ximian.com>
31731
31732         * TreeView.cs: Display the selection box under the correct
31733         circumstances. We were rendering white text with no selection box
31734         before.
31735
31736 2005-09-23  Peter Dennis Bartok  <pbartok@novell.com>
31737
31738         * TextControl.cs(Split): Now updates selection start/end if it points 
31739           into a line that's being split. Fixes a FIXME and bug #75258
31740
31741 2005-09-23  Jackson Harper  <jackson@ximian.com>
31742
31743         * Binding.cs:
31744         * ListControl.cs: Don't use the path when retrieving binding
31745         managers from the binding context. My bat sense tells me that the
31746         path is only used on insertion.
31747
31748 2005-09-22  Jackson Harper  <jackson@ximian.com>
31749
31750         * Splitter.cs: Set the cursor an easier way. (Thanks peter).
31751
31752 2005-09-22  Jackson Harper  <jackson@ximian.com>
31753
31754         * Splitter.cs: There are special cursors used for splitting.
31755         * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
31756
31757 2005-09-22  Jackson Harper  <jackson@ximian.com>
31758
31759         * Splitter.cs: Change the cursor appropriately when the splitter
31760         is moused over, so the user actually knows there is a splitter
31761         there.
31762
31763 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
31764
31765        * Label.cs : Fix ToString method to give same output as MS.NET
31766
31767 2005-09-22  Jackson Harper  <jackson@ximian.com>
31768
31769         * TreeView.cs: Create the scrollbars when the handle is created
31770         and add them right away, just make them invisble. Also account for
31771         the window being shrunk vertically to the point that the vert
31772         scrollbar needs to be added.
31773         - Remove some 0.5 adjustments to get around anti aliasing issues.
31774         
31775 2005-09-22  Jordi Mas i Hernandez <jordi@ximian.com>
31776          
31777         * MainMenu.cs: Fixes default value
31778         * MenuItem.cs: Fixes default value
31779
31780 2005-09-22  Kazuki Oikawa  <kazuki@panicode.com>
31781
31782         * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
31783
31784 2005-09-21  Jackson Harper  <jackson@ximian.com>
31785
31786         * Control.cs: Don't try to set the border style on the window if
31787         it hasn't been created. When the window is created the border
31788         style will be used.
31789
31790 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
31791
31792         * Control.cs (Update): Don't call XplatUI if we don't have a
31793           window handle yet
31794
31795 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
31796
31797         * ContainerControl.cs: Instead of throwing an exception, print
31798           a one-time warning about Validate not being implemented
31799         * XplatUIWin32.cs: Removed debug output
31800
31801 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
31802
31803         * Control.cs: Only set XplatUI background if we expect the windowing
31804           system to handle the background. This stops controls that draw their
31805           own background from flickering
31806
31807         * XplatUIX11.cs: Support custom visuals and colormaps for window 
31808           creation. This allows, amongst other things, using MWF X11 windows 
31809           with OpenGL.
31810
31811 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
31812
31813         * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
31814           CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
31815           GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
31816           SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
31817           TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
31818           IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
31819           KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
31820           RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
31821           ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
31822           ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
31823           GridColumnStylesCollection.cs, 
31824           IDataGridColumnStyleEditingNotificationService.cs,
31825           PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
31826           MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
31827           GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs, 
31828           TreeNodeCollection.cs, AmbientProperties.cs, 
31829           RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
31830           DataObject.cs, ErrorProvider.cs, Splitter.cs,
31831           DataGridLineStyle.cs, Shortcut.cs, Control.cs,
31832           FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
31833           BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
31834           IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
31835           FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
31836           IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
31837           NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
31838           PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
31839           SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
31840           FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
31841           DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
31842           ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
31843           RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
31844           MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
31845           ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
31846           CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
31847           MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
31848           NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
31849           ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
31850           SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
31851           Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
31852           RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
31853           DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
31854           ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
31855           PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
31856           DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
31857           ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
31858           AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
31859           RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
31860           CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
31861           SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
31862           Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
31863           SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
31864           ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
31865           TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
31866
31867 2005-09-21  Jackson Harper  <jackson@ximian.com>
31868
31869         * TreeNode.cs: Call Before/After Expand not Collapse when
31870         expanding.
31871
31872 2005-09-20  Jackson Harper  <jackson@ximian.com>
31873         
31874         * XplatUIX11.cs: Use the more hand looking hand (in most themes).
31875
31876 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
31877          
31878         * ListViewItem.cs:
31879                 - Fixes bug 76120
31880                 - Fixes proper storing of subitems
31881                 - Fixes not updated items
31882
31883 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com>
31884
31885         * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
31886           things if our window handle isn't created yet. Also disabled 
31887           debug for TextBoxBase
31888
31889 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com> 
31890
31891         * MenuAPI.cs: Remove filtering of events to allow menu usage
31892
31893 2005-09-20  Miguel de Icaza  <miguel@novell.com>
31894
31895         * Cursor.cs: Allow null to be passed to Cursor.Current.
31896
31897 2005-09-20  Alexander Olk  <alex.olk@googlemail.com>
31898
31899         * ThemeWin32Classic.cs:
31900           - Change some private methods/fields to protected virtual so that 
31901             they can be accessed and overriden in derived classes
31902           - First refactoring of some methods. Derived themes now don't 
31903             need to duplicate the complete code from ThemeWin32Classic
31904         * ThemeNice.cs:
31905           - Added nice StatusBar
31906           - Derive from ThemeWin32Classic and not Theme
31907           - Removed duplicate ThemeWin32Classic code
31908
31909 2005-09-20  Miguel de Icaza  <miguel@novell.com>
31910
31911         * Control.cs (ControlCollection.Add): If the value null is passed
31912         the control is ignored. 
31913
31914         Optimize this loop.
31915
31916 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com> 
31917
31918         * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
31919           PostQuitMessage state.
31920         * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
31921
31922 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com>
31923
31924         * Application.cs: Our constructor will never get called, move 
31925           initialization to fields; fixes bug #75933
31926
31927 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
31928
31929         * FileDialog.cs :
31930                 - Allow files to be selected properly using file name
31931                 combo box.
31932                 - Add ability to change diretory (absolute / relative)
31933                 using file name combo box.
31934
31935 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
31936          
31937         * ListBox.cs: 
31938                 - Fixes Multicolumn listboxes item wrong calculations
31939                 - Allows to click when only one item is in the listbox
31940                 - Fixes crash when no items using keyboard navigation
31941
31942 2005-09-16  Alexander Olk  <alex.olk@googlemail.com>
31943
31944         * ComboBox.cs: Reverted almost everything from the latest patch which
31945           broke ComboBox
31946
31947 2005-09-16  Kazuki Oikawa <kazuki@panicode.com>
31948         
31949         * ToolTip.cs:
31950                 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
31951         * ComboBox.cs:
31952                 - When DropDownStyle is Simple, it does not show scrollbar 
31953                 to the last item of the list.
31954                 - When DropDownStyle is Simple, it crashed when the list was 
31955                 scrolled down with the down cursor key.
31956                 - Fixed a bug that when DropDownStyle is DropDownList, the 
31957                 selected item was not shown.
31958                 - The position of the selected item was not preserved when 
31959                 the next dropdown happened.
31960         * ThemeWin32Classic.cs:
31961                 - Items were wrapped at the right end.
31962         * CheckedListBox.cs:
31963                 - Fixed Add method
31964         * ListBox.cs:
31965                 - Items should be fully shown.
31966                 - When resizing and vertical scrollbar disappeared, the item 
31967                 of index 0 should be on the top of the list.
31968                 - GetItemRectangle should consider the size of ver. scrollbar
31969         * StatusBar.cs:
31970                 - SizingGrip area should not be allocated when it is not 
31971                 displayed.
31972                 - Now it reflects MinWidth of the containing panel and 
31973                 fixed a crash that happens when its width becomes so small.
31974
31975 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
31976
31977         * CheckedListBox.cs: Fixes bug 76028
31978         * ListBox.cs: Fixes bug 76028
31979
31980 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
31981
31982         * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
31983         * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
31984
31985 2005-09-12  Jordi Mas i Hernandez <jordi@ximian.com>
31986
31987         * XplatUIX11.cs: fixes System.NullReferenceException in some situations
31988
31989 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
31990
31991         * IRootGridEntry.cs: Changed namespace to PropertyGridInternal 
31992
31993 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
31994
31995         * IRootGridEntry.cs: Added
31996         * PropertyGridCommands.cs: Added
31997         * PropertiesTab.cs: Added missing methods and property
31998         * PropertyGridView.cs: Made class internal
31999         * PropertyGridTextBox.cs: Made class internal
32000
32001 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
32002
32003         * MimeIcon.cs: Try to check some other environment variables
32004           if "DESKTOP_SESSION" returns "default"
32005
32006 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
32007
32008         * ThemeNice.cs: Corrected background colors (e.g. menus)
32009         * ColorDialog.cs: Use correct background colors for controls
32010
32011 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
32012
32013         * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
32014
32015 2005-09-08  Peter Dennis Bartok  <pbartok@novell.com>
32016
32017         * RichTextBox.cs: Added initial implementation
32018         * lang.cs: Removed. Was accidentally checked in long time ago
32019         * TODO: Removed. Contents were obsolete
32020
32021 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
32022                                                                                 
32023         * PropertiesTab.cs : Added
32024
32025 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
32026                                                                                 
32027         * PropertyGrid.cs : Update
32028         * PropertyGridView.cs : Update
32029         * System.Windows.Forms.resx : Added images and strings
32030
32031 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com> 
32032
32033         * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
32034  
32035 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com>
32036
32037         * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
32038           a busy loop right after the Ungrab the X11 display is otherwise 
32039           blocked
32040
32041 2005-09-06  Jordi Mas i Hernandez <jordi@ximian.com>
32042
32043         * ThemeWin32Classic.cs: Optimise the use of clipping
32044
32045 2005-09-05  Jordi Mas i Hernandez <jordi@ximian.com>
32046
32047         * DataGrid.cs: fixes recursion bug
32048
32049 2005-09-03  Alexander Olk  <alex.olk@googlemail.com>
32050
32051         * ThemeNice.cs: 
32052           - Draw RadioButton and CheckBox Buttons with DrawButtonBase
32053           - Cleanup
32054
32055 2005-09-02  Alexander Olk  <alex.olk@googlemail.com>
32056
32057         * ThemeNice.cs: Draw nice ProgressBars
32058
32059 2005-09-01  Miguel de Icaza  <miguel@novell.com>
32060
32061         * VScrollBar.cs: Another buglet found by Aaron's tool. 
32062
32063         * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
32064         bug finder.
32065
32066 2005-08-30  Alexander Olk  <alex.olk@googlemail.com>
32067
32068         * ThemeNice.cs:
32069           - Added nicer menu drawing
32070           - Updated DrawTab
32071           - some refactoring
32072
32073 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
32074
32075         * CreateParams.cs (ToString): Made output match MS
32076         * Control.cs (Text): Don't set Text or Focus via XplatUI unless 
32077             handle is already created (to avoid forcing window creation)
32078         * XplatUIX11.cs: Set window text to caption after creating window,
32079           in case Text was set before window was created
32080         * Form.cs: Use this.Text instead of a static string as caption
32081
32082 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
32083
32084         * NotifyIcon.cs: Don't set the window to visible; this screws
32085           up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
32086           OnPaint without a bitmap)
32087         * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't 
32088           happen very often anyway; we could add the check to the WM_PAINT 
32089           event generation code
32090
32091 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
32092
32093         * NotifyIcon.cs: Fill the icon area with a background color, to 
32094           avoid 'residue' when transparent icons are drawn
32095         * XplatUIX11.cs:
32096           - Handle whole_window == client_window when destroying windows
32097           - SystrayAdd(): Set client_window to whole_window value to
32098             get mouse and other events passed to NotifyIcon
32099
32100 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
32101
32102         * Form.cs: Set proper default for Opacity property
32103         * NotifyIcon.cs:
32104           - ShowSystray(): Don't bother creating telling the OS
32105             about the systray item if no icon is provided
32106           - Now handles WM_NCPAINT message to deal with whole/client window
32107             split
32108           - Create window as visible to not get caught by Expose optimization
32109         * Hwnd.cs: Removed debug message
32110         * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
32111           StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched 
32112             PaintEventStart/End to use new client argument
32113         * TextBoxBase.cs:
32114           - Commented out debug messages
32115           - Switched PaintEventStart/End to use new client argument
32116         * XplatUI.cs: Added client window bool to PaintEventStart()/
32117           PaintEventEnd() calls, to support drawing in non-client areas
32118         * XplatUIDriver.cs: 
32119           - Added client window bool to PaintEventStart()/PaintEventEnd() 
32120             calls, to support drawing in non-client areas
32121           - Added conditional compile to allow using MWF BeginInvoke 
32122             on MS runtime
32123         * XplatUIX11.cs:
32124           - Added some conditional debug output
32125           - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
32126             whole/client window split
32127           - Implemented handling of client argument to PaintEventStart()/End()
32128         * Control.cs:
32129           - Throw exception if BeginInvoke() is called and the window handle
32130             or one of the window's parent handles is not created
32131           - Added conditional compile to allow using MWF BeginInvoke on
32132             MS runtime
32133           - get_Parent(): Only sets parent if handle is created. This avoids
32134             forcing window handle creation when parent is set.
32135           - Now fires Layout and Parent changed events in proper order
32136           - Switched to use Handle instead of window.Handle for Z-Order setting,
32137             the get_Parent() patch above causes us to possibly get null for 'window'
32138           - Implemented handling of client argument to PaintEventStart()/End()
32139           - Now reports back to windows that WM_SETCURSOR was handled (to avoid
32140             default handling)
32141           - Now sends a Refresh() to all child windows when Refresh() is called
32142
32143 2005-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
32144
32145         * Form.cs: Added (non-functional) Opacity property
32146         * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
32147
32148 2005-08-29  Alexander Olk  <xenomorph2@onlinehome.de>
32149         * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
32150           use export MONO_THEME=nice to activate it.
32151           Currently supported controls:
32152           - Button
32153           - ComboBox
32154           - ScrollBar
32155           - TabControl (TabAlignment.Top only, other will follow)
32156         * ThemeEngine.cs: Add theme nice
32157         * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
32158           if enabled
32159
32160 2005-08-25  Jonathan Chambers  <jonathan.chambers@ansys.com> 
32161
32162         * Splitter.cs: Resize docked control and its neighbor.
32163
32164 2005-08-24  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
32165         -- Making Windows with Menus layout correctly --
32166         * Form.cs : The first leg of the fix
32167                 Menu setter - adjust Client Size as needed to make space for the menu
32168                 SetClientSizeCore - doesn't call base version to be able to pass the 
32169                         menu handle to XplatUI.CalculateWindowRect
32170         * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
32171         * XplatUIX11.cs: The critical second leg of the fix
32172                 GetWindowPos needs to use a recalculated client_rect
32173                 so that resizing the window doesn't break layout of child controls. 
32174                 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
32175                 Lots of \t\n killed
32176
32177 2005-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
32178
32179         * Label.cs: Now properly recalculates width and height on Font and Text
32180           changes if AutoSize is set
32181
32182 2005-08-19  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
32183         * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
32184
32185 2005-08-19  Jordi Mas i Hernandez <jordi@ximian.com>
32186
32187         * ImageList.cs: Makes ToString method compatible with MS
32188
32189 2005-08-18  Jordi Mas i Hernandez <jordi@ximian.com>
32190
32191         * MenuAPI.cs: fixes bug 75716
32192
32193 2005-08-11 Umadevi S <sumadevi@novell.com>
32194         * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
32195
32196 2005-08-11 Umadevi S <sumadevi@novell.com>
32197         * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
32198
32199 2005-08-10  Umadevi S <sumadevi@novell.com>
32200         * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
32201
32202 2005-08-07  Jordi Mas i Hernandez <jordi@ximian.com>
32203
32204         * Menu.cs: fixes bug 75700
32205         * MenuAPI.cs: fixes navigation issues
32206
32207 2005-08-09  Umadevi S <sumadevi@novell.com>
32208         * CheckedListBox.cs - simple fix for GetItemChecked.
32209
32210 2005-08-08  Jordi Mas i Hernandez <jordi@ximian.com>
32211
32212         * ComboBox.cs: Serveral fixes
32213         * ListBox.cs: Serveral fixes
32214
32215 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
32216
32217         * ComboBox.cs: Fixes FindString methods and GetItemHeight
32218         * ListBox.cs: Fixes FindString methods
32219
32220 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
32221
32222         * DataGrid.cs: fixes bugs exposed by new tests
32223
32224 2005-08-04  Peter Dennis Bartok  <pbartok@novell.com> 
32225
32226         * Mime.cs: Compile Mono assembly references only if compiling
32227           with Mono (Allows to build with VS.Net again)
32228
32229 2005-07-28  Marek Safar  <marek.safar@seznam.cz>
32230
32231         * Control.cs (PaintControlBackground): Draw background image
32232         corrrectly.
32233         (CheckForIllegalCrossThreadCalls): Stubbed.
32234         
32235         * Form.cs (OnCreateControl): Center when should be centered.
32236         
32237         * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
32238
32239 2005-07-19  Jordi Mas i Hernandez <jordi@ximian.com>
32240
32241         * Binding.cs: Binding to properties should be case unsensitive
32242
32243 2005-07-18 vlindos@nucleusys.com
32244
32245         * DataGrid.cs: fixes setmember order
32246
32247 2005-07-07  Alexander Olk  <xenomorph2@onlinehome.de>
32248
32249         * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
32250         * FileDialog.cs: FileDialog is now resizable and uses the new
32251           MimeIconEngine
32252
32253 2005-07-06  Jordi Mas i Hernandez <jordi@ximian.com>
32254
32255         * DataGridTextBoxColumn.cs: default value
32256         * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
32257         * GridTableStylesCollection.cs: fixes checking MappingName
32258         * DataGridDrawingLogic.cs: fixes drawing logic issues
32259         * DataSourceHelper.cs: rewritten to make compatible with more data sources
32260         * DataGrid.cs: fixes    
32261
32262 2005-07-06  Alexander Olk  <xenomorph2@onlinehome.de>
32263
32264         * MimeGenerated.cs: Use case sensitive comparer for
32265           NameValueCollections
32266
32267 2005-07-01  Jordi Mas i Hernandez <jordi@ximian.com>
32268
32269         * DataGridTextBoxColumn.cs: bug fixes, code refactoring 
32270         * ThemeWin32Classic.cs: bug fixes, code refactoring
32271         * DataGridDrawingLogic.cs:  bug fixes, code refactoring
32272         * DataGrid.cs: bug fixes, code refactoring
32273         * DataGridTextBox.cs: bug fixes, code refactoring
32274         * DataGridColumnStyle.cs:  bug fixes, code refactoring
32275         * Theme.cs:  bug fixes, code refactoring
32276
32277 2005-07-01  Peter Bartok  <pbartok@novell.com> 
32278
32279         * TextControl.cs: Quick fix for the reported crash on ColorDialog
32280           and other text box usage
32281
32282 2005-07-01  Jackson Harper  <jackson@ximian.com>
32283
32284         * TabControl.cs: Make sure the bottom of the tab covers the pages
32285         border.
32286
32287 2005-06-30  Peter Bartok  <pbartok@novell.com> 
32288
32289         * Form.cs (ShowDialog): Assign owner of the dialog
32290         * TextBoxBase.cs: Always refresh caret size when deleting, caret
32291           might have been moved to a tag with different height
32292
32293 2005-06-30  Jackson Harper  <jackson@ximian.com>
32294
32295         * Form.cs: Don't create an infinite loop when setting focus
32296         * MenuItem.cs: Don't dirty the parents if we don't have any
32297
32298 2005-06-29  Ben Maurer  <bmaurer@ximian.com>
32299
32300         * LibSupport.cs: Rename
32301
32302 2005-06-29  Peter Bartok  <pbartok@novell.com>
32303
32304         * TextBoxBase.cs: Re-align caret after deleting a character
32305         * TextControl.cs:
32306           - DeleteChars(): Ensure that tag covers the provided position
32307           - StreamLine(): Drop reference for dropped tag
32308
32309 2005-06-29  Peter Bartok  <pbartok@novell.com> 
32310
32311         * TextControl.cs: 
32312           - Selections now work properly, anchoring at the initial location
32313             and properly extending in either direction (SetSelectionToCaret(),
32314             SetSelectionStart() and SetSelectionEnd())
32315           - No longer redraws the whole control on selection change, now
32316             calculates delta between previous and new selection and only
32317             invalidates/redraws that area
32318           - Fixed FindPos() math off-by-one errors
32319           - Changed DeleteChars() to verify the provided tag covers the
32320             provided position, selections may have a tag that doesn't cover
32321             the position if the selection is at a tag border
32322           - Fixed off-by-one errors in DeleteChars()
32323           - Added missing streamlining check in DeleteChars() to remove
32324             zero-length tags
32325           - Implemented Invalidate() method, now properly calculates exposures
32326             between two given lines/positions
32327           - Implemented SetSelection()
32328           - Obsoleted and removed FixupSelection()
32329           - Improved RecalculateDocument() logic, removing code duplication
32330
32331 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
32332
32333         * LibSupport.cs: changes to match different input/output arguments.
32334
32335 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
32336
32337         * LibSupport.cs: added libsupport.so init routine.
32338
32339 2005-06-29  Jordi Mas i Hernandez <jordi@ximian.com>
32340         
32341         * ControlBindingsCollection.cs
32342                 - Throws an exception on null datasource when adding
32343                 - Checks for duplicated bindings when adding
32344
32345 2005-06-28  Jackson Harper  <jackson@ximian.com>
32346
32347         * TreeView.cs (OnKeyDown): Support left and right properly
32348         (navigates as well as expanding and collapsing.
32349         - Add support for Multiply, this expands all the selected nodes
32350         children.
32351         - Fix some tabbing.
32352
32353 2005-06-28  Jackson Harper  <jackson@ximian.com>
32354
32355         * TreeView.cs: Implement keyboard navigation, currently supports,
32356         LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
32357         support for toggling checkboxes with the space bar.
32358
32359 2005-06-28  Jackson Harper  <jackson@ximian.com>
32360
32361         * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
32362         tree.
32363
32364 2005-06-28  Jackson Harper  <jackson@ximian.com>
32365
32366         * TreeView.cs: Add missing event.
32367
32368 2005-06-27  Peter Bartok  <pbartok@novell.com> 
32369
32370         * TextControl.cs:
32371           - Made line ending size configurable (now allows for counting 
32372             lineendings as \n or \r\n)
32373           - Added margin to viewport to keep caret visible on right side
32374           - Fixed translation routines for line/pos to documentpos to consider
32375             cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
32376           - Fixed some line-endings to be unix style
32377           - Fixed Document.FormatText to perform it's calculations 1-based
32378           - Added descriptions for a few methods that might otherwise get 
32379             used wrong
32380           - Added NOTE section with some basic conventions to remember at 
32381             the top of the file
32382           - Major fixup for RichTextBox selection drawing:
32383             * Fixed crashes when multiple tags on a single line were selected
32384             * fixed selection box drawing not overlaying text
32385             * fixed bogus offset calculation for tags not starting at index 1
32386             * Switched behaviour from using multiple Substrings of a 
32387               StringBuilder.ToString() to using multiple 
32388               StringBuilder.ToString(start, length) statements, hoping this is
32389               faster (kept original version commented out in the code, in case
32390               original version was faster)
32391         * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if 
32392           alignment != Left
32393         * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
32394           call it as well
32395
32396 2005-06-27  Jackson Harper  <jackson@ximian.com>
32397
32398         * TabControl.cs: Move to the left and right with the arrow
32399         keys. These keys don't cycle beyond first and last like
32400         tab. Refresh all the tabs when scrolling them to the left or
32401         right.
32402
32403 2005-06-27  Jackson Harper  <jackson@ximian.com>
32404
32405         * TabControl.cs:
32406           - ToString: Added method
32407           - CreateParams: Remove TODO and comment
32408           - OnKeyDown: Cycle through bounds properly.
32409           - SelectedIndex: Scroll to the right or left if we need to
32410           display the newly selected tab.
32411
32412 2005-06-23  Jackson Harper  <jackson@ximian.com>
32413
32414         * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
32415         set.
32416
32417 2005-06-23  Jackson Harper  <jackson@ximian.com>
32418
32419         * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
32420         CTRL-SHIFT-TAB, and HOME, END are there any others?
32421
32422 2005-06-23  Jackson Harper  <jackson@ximian.com>
32423
32424         * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
32425
32426 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
32427         
32428         * DataGridTextBoxColumn.cs: fixes and enhancements
32429         * ThemeWin32Classic.cs: fixes and enhancements
32430         * DataGridBoolColumn.cs:  fixes and enhancements
32431         * DataGridDrawingLogic.cs:  fixes and enhancements
32432         * CurrencyManager.cs: fixes and enhancements
32433         * DataGrid.cs: fixes and enhancements
32434         * DataGridColumnStyle.cs:  fixes and enhancements
32435
32436 2005-06-22  Jackson Harper  <jackson@ximian.com>
32437
32438         * TabControl.cs: Add some missing methods that just call into the
32439         base. Make the TabPageCollection's IList interface behave in the
32440         same manner as the MS implementation.
32441
32442 2005-06-22  Peter Bartok  <pbartok@novell.com> 
32443
32444         * TextControl.cs: Added sanity check
32445         * TextBoxBase.cs: 
32446           - Fixed wrapping behaviour, don't set wrap on single line controls
32447             (this fixes the breakage of colordialog introduced in an earlier
32448              checkin)
32449           - Added rudimentary support for autoscrolling right-aligned controls
32450             (still needs fixing, also, center alignment scroll is missing)
32451
32452 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
32453         
32454         * ScrollBar.cs: Fixes thumbpos on Maximum values
32455
32456 2005-06-21  Jonathan Chambers <jonathan.chambers@ansys.com>
32457         
32458         * PropertyGridView.cs: Pass context information to UITypeEditors 
32459
32460 2005-06-21  Peter Bartok  <pbartok@novell.com> 
32461
32462         * TextBoxBase.cs:
32463           - Now calling PositionCaret with absolute space coordinates
32464           - Enabled vertical scrolling
32465           - Better tracking of scrollbar changes, tied into WidthChange
32466             event
32467           - Improved cursor tracking
32468           - Removed debug output
32469         * TextControl.cs:
32470           - PositionCaret coordinates are now works in absolute space, not 
32471             the canvas
32472           - Improved tracking of document size
32473           - Added events for width and height changes
32474
32475 2005-06-21  Peter Bartok  <pbartok@novell.com>
32476
32477         * Form.cs: Set focus to active control when form is activated
32478         * TextControl.cs: 
32479           - Added word-wrap functionality to RecalculateLine() 
32480           - Added some short function descriptions for VS.Net to aid in
32481             writing dependent controls
32482           - Added Caret property, returning the current coords of the caret
32483           - Added ViewPortWidth and ViewPortHeight properties
32484           - Added Wrap property
32485           - Added CaretMoved event
32486           - Removed some old debug code
32487           - Split() can now create soft splits
32488           - Added PreviousTag()/NextTag() to allow walking "tag-lists"
32489           - Added method to format existing text
32490           - Fixed size/alignment calculations to use viewport
32491           - RecalculateDocument now can handle changing line-numbers while
32492             calculating lines
32493
32494         * TextBox.cs:
32495           - Added some wrap logic, we don't wrap if alignment is not left
32496           - Added casts for scrollbar var, base class switched types to
32497             also support RichTextBoxA
32498           - Implemented handling of scrollbar visibility flags
32499
32500         * TextBoxBase.cs:
32501           - Switched scrollbars type to RichTextBoxScrollBars to support
32502             RichTextBox
32503           - Added tracking of canvas width/height
32504           - Switched scrollbars to be not selectable (to keep focus on text)
32505           - Added central CalculateDocument() method to handle all redraw
32506             requirements
32507           - Added ReadOnly support
32508           - Added WordWrap support
32509           - Fixed handling of Enter key (we now treat it as a DialogKey)
32510           - Fixed caret positioning when h or v scroll is not zero
32511           - Fixed placing/generation of vertical scrollbar
32512           - Added CalculateScrollBars() method to allow updating scrollbar
32513             limits and visibility
32514           - Fixed handling of horizontal scroll
32515           - Added handling of vertical scroll
32516           - Implemented auto-'jump' when caret moves to close to a left or
32517             right border and there is text to be scrolled into view (currently
32518             there's the potential for a stack overflow, until a bug in
32519             scrollbar is fixed)
32520
32521 2005-06-21  Geoff Norton  <gnorton@customerdna.com>
32522         
32523         * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
32524
32525 2005-06-19  Alexander Olk  <xenomorph2@onlinehome.de>
32526
32527         * Mime.cs:
32528         - added inodes.
32529         - return application/x-zerosize for files with size zero
32530           (if no extension pattern matches).
32531         - check matches collection for strings too.
32532         - return only the first mime type if the name value
32533           collection has more than one mime type.
32534
32535 2005-06-18  Jonathan Chambers <jonathan.chambers@ansys.com>
32536         
32537         * PropertyGrid.cs: Cleaned up some TODOs
32538         * PropertyGridView.cs: Added support for UITypeEditors
32539
32540 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
32541         
32542         * DataGrid.cs: clears cached value
32543
32544 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
32545
32546         * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
32547         * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
32548         * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
32549         * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
32550         
32551 2005-06-16  Jordi Mas i Hernandez <jordi@ximian.com>
32552
32553         * ThemeWin32Classic.cs: fixes colour
32554
32555 2005-06-15  Peter Bartok  <pbartok@novell.com>
32556
32557         * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
32558         * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
32559         * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
32560         * Control.cs: Added some MWFCategory and MWFDescription attributes
32561         * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
32562
32563 2005-06-15  Alexander Olk  <xenomorph2@onlinehome.de>
32564
32565         * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
32566         usage
32567
32568 2005-06-14  Jordi Mas i Hernandez <jordi@ximian.com>
32569
32570         * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
32571         * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
32572         * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
32573         * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
32574         * DataGrid.cs: default datagrid settings for Default Styles, fixes
32575         * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
32576
32577 2005-06-13  Jackson Harper  <jackson@ximian.com>
32578
32579         * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
32580         isn't printed when the user enables dropping. (X11 does accept
32581         drops).
32582         
32583 2005-06-13  Jackson Harper  <jackson@ximian.com>
32584
32585         * TreeView.cs: Remove some TODOS.
32586
32587 2005-06-13  Jackson Harper  <jackson@ximian.com>
32588
32589         * Form.cs: Hook into the mdi framework.
32590         * MdiClient.cs: Use the base control collections add method so
32591         parents get setup correctly. Set the default back colour and dock
32592         style.
32593         * MdiChildContext.cs: New class, this bad actor handles an
32594         instance of an MDI window. Right now there is only basic
32595         support. You can drag, close, and resize windows. Minimize and
32596         Maximize are partially implemented.
32597
32598 2005-06-13  Jackson Harper  <jackson@ximian.com>
32599
32600         * XplatUIX11.cs: Mash numbers together properly, otherwise we get
32601         freaky when both vals are negative. NOTE: There are probably other
32602         places in XplatUIX11 that this needs to be done.
32603
32604 2005-06-13  Jordi Mas i Hernandez <jordi@ximian.com>
32605
32606         * DataGrid.cs: implement missing methods, move KeyboardNavigation
32607         * DataGridColumnStyle.cs: fixes signature
32608
32609 2005-06-12  Jackson Harper  <jackson@ximian.com>
32610
32611         * XplatUIX11.cs: Use sizing cursors similar to the ones on
32612         windows.
32613
32614 2005-06-11  Jackson Harper  <jackson@ximian.com>
32615
32616         * StatusBarPanel.cs: Signature cleanups. Implement
32617         BeginInit/EndInit.
32618
32619 2005-06-10  Jordi Mas i Hernandez <jordi@ximian.com>
32620
32621         * DataGridTextBoxColumn.cs: Honors aligment
32622         * GridColumnStylesCollection.cs: Contains is case unsensitive
32623         * GridTableStylesCollection.cs: several fixes
32624         * DataGridTableStyle.cs: default column creation
32625         * DataGridDrawingLogic.cs: fixes
32626         * CurrencyManager.cs: ListName property
32627         * DataGrid.cs: multiple styles support
32628         * DataGridColumnStyle.cs: fixes
32629         
32630
32631 2005-06-10  Peter Bartok  <pbartok@novell.com>
32632
32633         * Control.cs(Select): Moved SetFocus call to avoid potential
32634           loops if controls change the active control when getting focus
32635         * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
32636           the up/down buttons
32637
32638 2005-06-10  Matthias Felgner  <matthiasf@voelcker.ocm>
32639
32640         * ImageListConverter.cs: Implemented
32641
32642 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
32643
32644         * MonthCalendar.cs: Wired in NumericUpDown control for year
32645
32646 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
32647
32648         * MonthCalendar.cs: Removed MonoTodo attributes on Click and
32649           DoubleClick events, since they are not meant to be fired.
32650
32651 2005-06-09  Peter Bartok  <pbartok@novell.com>
32652
32653         * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
32654           Jonathan's standalone controls into MWF, implemented missing
32655           events, attributes and methods; added xxxAccessible classes
32656         * AccessibleObject.cs: Made fields internal so other classes
32657           can change them if needed
32658
32659 2005-06-09  Jonathan Gilbert  <2a5gjx302@sneakemail.com>
32660
32661         * UpDownBase.cs: Complete implementation
32662         * NumericUpDown.cs: Complete implementation
32663         * DomainUpDown.cs: Complete implementation
32664
32665 2005-06-09  Jordi Mas i Hernandez <jordi@ximian.com>
32666
32667         * DataGridTextBoxColumn.cs: drawing fixes
32668         * DataGridCell.cs: fixes ToString method to match MSNet
32669         * DataGridTableStyle.cs: fixes
32670         * DataGridBoolColumn.cs: fixes, drawing
32671         * DataGridDrawingLogic.cs: fixes, new methods
32672         * DataGridTextBox.cs: Keyboard and fixes
32673         * DataGrid.cs:
32674                 - Keyboard navigation
32675                 - Scrolling fixes
32676                 - Row selection (single, multiple, deletion, etc)
32677                 - Lots of fixes
32678         
32679 2005-06-07  Jackson Harper  <jackson@ximian.com>
32680
32681         * ThemeWin32Classic.cs: Clear the background area when drawing
32682         buttons.
32683
32684 2005-06-06  Peter Bartok  <pbartok@novell.com>
32685
32686         * ImageListStreamer.cs: Fixed signature for GetData
32687         * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
32688         * ComboBox.cs:
32689           - Added missing ChildAccessibleObject class
32690           - Added missing OnXXXFocus overrides, switched to using those
32691             instead of the event handler
32692         * Control.cs:
32693           - Added Parent property for ControlAccessibleObject
32694           - Fixed signatures
32695           - Fixed attributes
32696           - Added ResetBindings()
32697         * ListBindingConverter.cs: Implemented some methods
32698         * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
32699         * ImageList.cs: Implemented basic handle scheme, removed TODOs
32700         * ContainerControl.cs: Fixed signature, now subscribing to the
32701           ControlRemoved event instead of overriding the handler, LAMESPEC
32702         * CurrencyManager.cs: Added missing attribute
32703         * MonthCalendar.cs: Added missing properties
32704
32705 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
32706
32707         * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
32708         
32709 2005-06-06  Gaurav Vaish and Ankit Jain
32710
32711         * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
32712         * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
32713         
32714 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
32715
32716         * Control.cs: fixes CreateParams Width / Height.
32717
32718 2005-06-05  Peter Bartok  <pbartok@novell.com>
32719
32720         * Win32DnD.cs: Removed compilation warnings
32721
32722 2005-06-05  Peter Bartok  <pbartok@novell.com>
32723
32724         * Control.cs (CreateParams): Since we don't know if one of the
32725           properties we use is overridden, lets make sure if we fail accessing
32726           we continue with a backup plan
32727
32728 2005-06-05  Peter Bartok  <pbartok@novell.com>
32729
32730         * Win32DnD.cs:
32731           - Removed debug output
32732           - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
32733             struct
32734           - Plugged resource leak
32735         * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
32736           MS size
32737
32738 2005-06-05  Peter Bartok  <pbartok@novell.com>
32739
32740         * XplatUIWin32.cs: Removed DnD code
32741         * Win32DnD.cs: Implemented drop source and drop target functionality
32742
32743 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
32744
32745         * UpDownBase.cs: remove duplicate addition of event, enable some code
32746         that was commented out.
32747         * NumericUpDown.cs: added missing attributes and Hexadecimal property.
32748         Validate input when a key is pressed. It works fine now for every
32749         combination of Hexadecimal. Only missing some drawing love when sharing
32750         space with other controls.
32751
32752 2005-06-04  Peter Bartok  <pbartok@novell.com>
32753
32754         * Control.cs:
32755           - We need to pass a window for DragDrop, so enable callback events
32756           - Added DnD callback events when being a DragSource
32757         * XplatUI.cs (StartDrag): Added window handle argument
32758         * XplatUIDriver.cs (StartDrag): Added window handle argument
32759         * QueryContinueDragEventArgs: Made fields internally accessible so
32760           drivers can set them
32761         * GiveFeedbackEventArgs: Made fields internally accessible so drivers
32762           can set them
32763
32764 2005-06-03  Jordi Mas i Hernandez <jordi@ximian.com>
32765
32766         * DataGridTextBoxColumn.cs: column text editing
32767         * DataGridTableStyle.cs: Respect columns styles created by the user
32768         * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
32769         * DataGridBoolColumn.cs: bool column editing
32770         * DataGrid.cs: fixes to scrolling, properties, etc
32771         * DataGridTextBox.cs: handle keyboard
32772         * DataGridColumnStyle.cs: fixes
32773
32774 2005-06-02  Jackson Harper  <jackson@ximian.com>
32775
32776         * ImageListStreamer.cs: Somewhat broken implementation of
32777         GetObjectData. The RLE needs some work to match MS properly.
32778
32779 2005-06-02  Jackson Harper  <jackson@ximian.com>
32780
32781         * X11Dnd.cs: Attempting to keep at least one file in MWF
32782         monostyled.
32783
32784 2005-06-02  Peter Bartok  <pbartok@novell.com>
32785
32786         * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
32787           that way
32788
32789 2005-06-02  Peter Bartok  <pbartok@novell.com>
32790
32791         * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
32792         * XplatUI.cs: Added DoDragDrop() method
32793         * XplatUIDriver.cs: Added DoDragDrop() method
32794
32795 2005-06-02  Jackson Harper  <jackson@ximian.com>
32796
32797         * Splitter.cs: Implement BorderStyle.
32798
32799 2005-06-02  Jackson Harper  <jackson@ximian.com>
32800
32801         * XplatUIX11.cs: Tie into the X11Dnd subsystem.
32802         * X11Dnd.cs: New file. A subsystem that handles drag and drop on
32803         X11 using XDND.
32804
32805 2005-06-02  Peter Bartok  <pbartok@novell.com>
32806
32807         * DataObject.cs:
32808           - Added Data setter
32809           - Fixed broken insertion code for SetData, now also
32810             overwrites any existing entry of the same format name
32811         * Hwnd.cs: Added list of pointers that automatically gets
32812           freed when the window is disposed
32813         * XplatUI.cs: Call driver initialization method when loading
32814           a driver
32815         * Control.cs:
32816           - OnDragLeave takes EventArgs, not DragEventArgs
32817           - Added setting of WS_EX_ACCEPTFILES style when dropping is
32818             supported
32819           - Forces style update when drop state changes
32820         * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
32821           not perfect since we cannot (yet) call the IDataObject.GetData()
32822           method, we keep getting 0x80004005 error, dunno why)
32823
32824 2005-06-02  Peter Bartok  <pbartok@novell.com>
32825
32826         * DragEventArgs.cs: Make fields internal so we can cache the
32827           object and re-set the fields from XplatUI
32828
32829 2005-06-02  Jackson Harper  <jackson@ximian.com>
32830
32831         * Control.cs: Add some internal methods so the DnD subsystem can
32832         raise DnD events. Also call into the driver when AllowDrop is set.
32833         * XplatUI.cs:
32834         * XplatUIDriver.cs: New method for setting whether or not a window
32835         is allowed to accept drag and drop messages.
32836                 
32837 2005-06-01  Jordi Mas i Hernandez <jordi@ximian.com>
32838         
32839         * ScrollBar.cs: Make sure that values sent in Scroll events
32840         are always between Maximum and Minimum.
32841
32842 2005-06-01  Marek Safar  <marek.safar@seznam.cz>
32843
32844         * Menu.cs: Call MenuChanged when menuitem visibility has been
32845         changed.
32846         * MenuItem.cs: Rebuild menu when item is (not) visible.
32847         * MainMenu.cs: MainMenu has special MenuChanged.
32848         * Theme.cs: Caption and FrameBorderSize are not fixed.
32849         * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
32850         * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
32851         * XplatUIX11.cs,
32852         * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
32853         * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
32854
32855 2005-05-30  Jackson Harper  <jackson@ximian.com>
32856
32857         * DataFormat.cs: We can't statically initialize this stuff because
32858         it calls into the xplatui and could create a loop. So we lazy init
32859         it.
32860
32861 2005-05-28  Jackson Harper  <jackson@ximian.com>
32862
32863         * Control.cs: Proper implementation of Product(Name/Version).
32864
32865 2005-05-27  Jackson Harper  <jackson@ximian.com>
32866
32867         * DataObject.cs: Dont crash if no data is found.
32868
32869 2005-05-26  Rafael Teixeira  <rafaelteixeirabr@hotmail.com>
32870         * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
32871                 as per status page, guessing it should be set to true
32872
32873 2005-05-26  Jordi Mas i Hernandez <jordi@ximian.com>
32874
32875         * DataGridTextBoxColumn.cs: Draws text and basic text formatting
32876         * DataGridTableStyle.cs: set proper formatting text, def header text
32877         * ThemeWin32Classic.cs: new themable paramaters
32878         * DataGridBoolColumn.cs: paint check box, get data, fixes
32879         * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
32880         * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
32881         * DataGridColumnStyle.cs: fixes
32882         * Theme.cs: new themable paramaters
32883                 
32884 2005-05-26  Peter Bartok  <pbartok@novell.com>
32885
32886         * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
32887
32888 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
32889         * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
32890
32891 2005-05-24  Peter Bartok  <pbartok@novell.com>
32892
32893         * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
32894           Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
32895           Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
32896           FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
32897           NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
32898           ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
32899           DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
32900           AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
32901           DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
32902           StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
32903           missing attributes, etc
32904         * DataGridPreferredColumnWidthTypeConverter.cs: Added
32905
32906 2005-05-24  Peter Bartok  <pbartok@novell.com>
32907
32908         * Help.cs: Added, implemented trivial functions, throws up MessageBox
32909           when user tries to get help
32910         * DataObject.cs, DataFormats.cs, LinkArea.cs,
32911           SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
32912           to suppress warnings
32913         * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
32914           avoid unreachable code warning
32915
32916 2005-05-20  Peter Bartok  <pbartok@novell.com>
32917
32918         * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
32919
32920 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
32921
32922         * DataGridTextBoxColumn.cs: Basic painting methods
32923         * DataGridTableStyle.cs: Set table style in the column
32924         * ThemeWin32Classic.cs: Use Theme for colors
32925         * DataGridDrawingLogic.cs: Implement more drawing
32926         * DataGrid.cs: drawing, theming, enhacements, fixes
32927         * DataGridColumnStyle.cs: fixes, drawing
32928         * Theme.cs: theming for Datagrid
32929
32930 2005-05-20  Peter Bartok  <pbartok@novell.com>
32931
32932         * Cursor.cs: Implemented GetObjectData() method
32933
32934 2005-05-20  Peter Bartok  <pbartok@novell.com>
32935
32936         * Cursors.cs: Added setting of cursor name
32937         * Cursor.cs:
32938           - Implemented constructors
32939           - Implemented Draw and DrawStretched
32940           - Implemented Current property
32941           - Implemented == and != operators
32942           - Implemented Dispose()
32943           - Implemented ToString
32944           - Added missing attributes
32945         * XplatUIX11.cs:
32946           - Added missing reset for OverrideCursor when DoEvents is called
32947           - Fixed creation of cursor, logic was wrong
32948         * XplatUIWin32.cs:
32949           - Added missing reset for OverrideCursor when DoEvents is called
32950           - Fixed creation of cursor, bit arrays were swapped
32951         * Clipboard.cs: Removed obsolete MonoTODO attribute
32952
32953 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
32954
32955         * ComboBox.cs: fixes OnSelectedItemChanged
32956         * ControlBindingsCollection.cs: fixes item range check
32957
32958 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
32959
32960         * UpDownBase.cs:
32961                 - Calc preferred height properly
32962                 - Implement missing properties
32963                 
32964         * NumericUpDown.cs: Implement missing events
32965
32966 2005-05-19  Jackson Harper  <jackson@ximian.com>
32967
32968         * TabControl.cs: New method that resizes the tab pages before
32969         redrawing them. This as needed as the control is double buffered
32970         and sizing will not be recalculated unless ResizeTabPages is
32971         called.
32972         * TabPage.cs: Set base.Text instead of Text in the constructor so
32973         that UpdateOwner does not get called. Use the new Redraw method of
32974         TabControl instead of Refresh so the sizing is recalculated.
32975         * ThemeWin32Classic.cs: Draw the text for button tabs.
32976
32977 2005-05-19  Jackson Harper  <jackson@ximian.com>
32978
32979         * Control.cs: Paint control background images. Fix typo where
32980         PaintControlBackground was not getting called correctly.
32981
32982 2005-05-19  Peter Bartok  <pbartok@novell.com>
32983
32984         * ScrollableControl.cs (DisplayRectangle): Undid my last change until
32985           I can investigate, apparently I broke FileDialog
32986
32987 2005-05-19  Marek Safar  <marek.safar@seznam.cz>
32988
32989         * AxHost.cs: Some simple properties.
32990         * Control.cs: window must be accessible after ctor.
32991         * Form.cs: Added TransparencyKey property.
32992         * TextBoxBase.cs: Implemented Clear. Text property can be null.
32993         * XplatUIWin32.cs: SetBorderStyle implemented.
32994
32995 2005-05-18  Peter Bartok  <pbartok@novell.com>
32996
32997         * DataObject.cs: Entries are not global but particular to the
32998           DataObject, now it behaves that way
32999         * XplatUIWin32.cs: Implemented Clipboard methods
33000         * Clipboard.cs: Implemented
33001         * ScrollableControl.cs (DisplayRectangle): Fixed calculation
33002         * XplatUIOSX.cs: Updated to final clipboard prototypes
33003         * XplatUIX11.cs: Implemented Clipboard methods
33004         * XplatUIDriver.cs: Updated to final clipboard prototypes
33005         * XplatUIStructs.cs:
33006           - Added BITMAPINFOHEADER struct
33007           - Added ClipboardFormats enum
33008         * X11Structs.cs:
33009           - Added ClipboardStruct
33010           - Added Atom enum items for clipboard types
33011           - Fixed atom types for Selection event structures
33012         * DataFormats.cs:
33013           - Added internal properties and methods for drivers to enumerate
33014             all known formats
33015           - Switched initialization method to allow drivers to assign their
33016             own IDs even for the MS predefined clipboard IDs
33017         * XplatUI.cs: Updated to final clipboard interface
33018
33019 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
33020         * PropertyGridView.cs: Fixed compiler warnings.
33021
33022 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
33023         * PropertyGrid.cs: Added some event calls
33024         * PropertyGridView.cs: Change drawing code to use double buffering
33025         * PropertyGridTextBox.cs: Changed Text property name
33026         * GridItem.cs: Added Bounds property.
33027         * GridEntry.cs: Added Bounds property.
33028
33029 2005-05-17  Lluis Sanchez Gual  <lluis@novell.com>
33030
33031         * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
33032         since GetType() may not return the correct type if the object is
33033         a remoting proxy.
33034
33035 2005-05-17  Jordi Mas i Hernandez <jordi@ximian.com>
33036
33037         * TreeNodeCollection.cs: fixes get/set item ranges
33038         
33039 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
33040
33041         * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
33042                 
33043 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
33044
33045         * ComboBox.cs: Fix item range comparation
33046         * ListView.cs: Fix item range comparation
33047
33048 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
33049
33050         * FontDialog.cs:
33051           - Clear example panel when OnPaint is called
33052           - Better solution for displaying the example panel text
33053           - Select default indexes in the ListBoxes
33054
33055 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
33056
33057         * XplatUIOSX.cs: Avoid painting into invisible views.  Fixes #74926
33058
33059 2005-05-11  Peter Bartok  <pbartok@novell.com>
33060
33061         * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
33062         * SelectionRangeConverter.cs: Implemented
33063         * PropertyGrid.cs: Fixed attribute value
33064         * Control.cs:
33065           - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
33066           - Added Sebastien Pouliot's CAS Stack Propagation fixes
33067         * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
33068           that's common to all drivers. First methods to go there are
33069           Sebastien Pouliot's CAS Stack Propagation helper methods
33070         * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
33071           Sebastien Pouliot for CAS Stack Propagation
33072
33073 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
33074
33075         * OSXStructs.cs:
33076           XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
33077
33078 2005-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
33079
33080         * DataGridTextBoxColumn.cs: fixed some members
33081         * GridColumnStylesCollection.cs: indexed column is case insensitive
33082         * DataGridTableStyle.cs: fixes
33083         * ThemeWin32Classic.cs: add new theme parameter
33084         * Theme.cs: add new theme parameter
33085         * DataGridDrawingLogic.cs: Datagrid's drawing logic
33086         * DataGrid.cs: fixes, new internal properties, etc.
33087         * DataGridColumnStyle.cs: allows to set grid value
33088         *
33089
33090 2005-05-10  Peter Bartok  <pbartok@novell.com>
33091
33092         * AccessibleObject.cs:
33093           - Removed MonoTODO attribute on help, method is correct
33094           - Fixed Bounds property
33095         * AxHost.cs: Moved MonoTODO
33096         * ButtonBase.cs: Now setting AccessibleObject properties
33097         * RadioButton.cs: Setting proper AccessibleObject role
33098         * CheckBox.cs: Setting proper AccessibleObject role
33099         * ControlBindingsCollection.cs: Added properties, methods and attributes
33100         * DataFormats.cs: Fixed awkward internal API, and changed to enable
33101           userdefined DataFormats.Format items as well
33102         * ListControl.cs: Removed data_member from the public eye
33103         * OpenFileDialog.cs:
33104           - Made class sealed
33105           - Added missing attributes
33106         * SaveFileDialog.cs: Added missing attributes
33107         * ImageListStreamer.cs: Fixed code that caused warnings
33108         * LinkLabel.cs: Removed unreachable code
33109         * TreeView.cs: Fixed code that caused warnings
33110         * PropertyGridView.cs: Fixed code that caused warnings
33111         * GridColumnStylesCollection.cs: Added missing attributes
33112         * GridTableStylesCollection: Added missing attribute
33113         * PropertyManager: Added .ctor
33114         * SecurityIDType: Added
33115         * DataObject.cs: Implemented class
33116         * LinkArea.cs: Added missing attribute
33117
33118 2005-05-11  Jordi Mas i Hernandez <jordi@ximian.com>
33119
33120         * RadioButton.cs: call base method to allow to fire OnClick event
33121         * UpDownBase.cs: OnMouseUp call base method
33122         * CheckedListBox.cs: call base method before returning
33123         * TrackBar.cs: call base method before returning
33124         
33125
33126 2005-05-10  Peter Bartok  <pbartok@novell.com>
33127
33128         * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
33129           for messages
33130
33131 2005-05-10  Peter Bartok  <pbartok@novell.com>
33132
33133         * DataFormats.cs: Implemented
33134         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
33135           XplatUIX11.cs: Added Clipboard APIs
33136         * XplatUIWin32.cs: Implemented Clipboard APIs
33137         * FolderBrowserDialog.cs: Added missing event, attributes
33138
33139 2005-05-10  Jordi Mas i Hernandez <jordi@ximian.com>
33140
33141         * CheckBox.cs: call base method to allow to fire OnClick event
33142
33143 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
33144
33145         * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
33146
33147 2005-05-06  Peter Bartok  <pbartok@novell.com>
33148
33149         * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
33150         * Screen.cs: Implemented
33151         * HelpNavigator.cs: Added
33152         * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
33153           property
33154         * HelpProvider.cs: Implemented all we can do until we have a CHM
33155           help library (which means that "What's This" does work now)
33156
33157 2005-05-06  Jackson Harper  <jackson@ximian.com>
33158
33159         * XplatUIX11.cs: Fix waking up the main loop.
33160                 
33161 2005-05-05  Peter Bartok  <pbartok@novell.com>
33162
33163         * XplatUI.cs: Updated revision
33164         * Form.cs: Removed enless loop
33165         * GroupBox.cs (OnPaint): Added call to base.OnPaint()
33166         * Label.cs (OnPaint): Added call to base.OnPaint()
33167         * ToolTip.cs: Made ToolTipWindow reusable for other controls
33168         * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
33169         * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
33170         * AxHost.cs: Added
33171         * ButtonBase.cs: Moved base.OnPaint() call to end of method
33172         * ThemeWin32Classic.cs: Replaced references to ToolTip with references
33173           to ToolTip.ToolTipWindow for drawing and size methods; this allows
33174           reuse of ToolTipWindow by other controls
33175         * SizeGrip.cs: Moved base.OnPaint() call to end of method
33176         * XplatUIX11.cs: Now clipping drawing area (experimental)
33177         * PictureBox.cs: Moved base.OnPaint() call to end of method
33178         * Theme.cs: Fixed ToolTip abstracts to match new format
33179         * ErrorProvider.cs: Implemented
33180
33181 2005-05-05  Jordi Mas i Hernandez <jordi@ximian.com>
33182
33183         * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
33184         * LinkLabel.cs:
33185                 - Adds cursors
33186                 - Handles focus
33187                 - Implements LinkBehavior
33188                 - Fixes many issues
33189
33190 2005-05-03  Jackson Harper  <jackson@ximian.com>
33191
33192         * ListView.cs: Calculate the scrollbar positioning on resize and
33193         paint, so they get put in the correct place.
33194
33195 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
33196
33197         * ColorDialogs.cs: The small color panels are now handled by
33198           SmallColorControl. This fixes drawing of the focus rectangle
33199           and adds a 3D border.
33200
33201 2005-05-03  Peter Bartok  <pbartok@novell.com>
33202
33203         * Control.cs: Modified version of Jonathan Chamber's fix for
33204           double-buffering
33205
33206 2005-05-03  Jackson Harper  <jackson@ximian.com>
33207
33208         * ListView.cs: Remove redraw variable. Control now handles whether
33209         or not a redraw needs to be done, and will only raise the paint
33210         event if redrawing is needed.
33211
33212 2005-05-03  Jackson Harper  <jackson@ximian.com>
33213
33214         * Splitter.cs: No decorations for the splitter form. Cache the
33215         hatch brush.
33216
33217 2005-05-03  Jackson Harper  <jackson@ximian.com>
33218
33219         * TreeView.cs: Use dashed lines to connect nodes. Use the
33220         ControlPaint method for drawing the focus rect instead of doing
33221         that in treeview.
33222
33223 2005-05-02  Peter Bartok  <pbartok@novell.com>
33224
33225         * LinkLabel.cs: Fixed the fixes from r43566 and 43521
33226
33227 2005-04-29  Jackson Harper  <jackson@ximian.com>
33228
33229         * ThemeWin32Classic.cs: Don't clear the GC that will clear the
33230         entire image buffer. Just clear the clipping rectangle.
33231
33232 2005-04-29  Jackson Harper  <jackson@ximian.com>
33233
33234         * ThemeWin32Classic.cs: Don't draw list view items that are
33235         outside the clipping rectangle.
33236
33237 2005-04-29  Jordi Mas i Hernandez <jordi@ximian.com>
33238
33239         * ListBox.cs: added horizontal item scroll
33240
33241 2005-04-29  Jackson Harper  <jackson@ximian.com>
33242
33243         * ThemeWin32Classic.cs: Remove some old debug code that was
33244         causing flicker with the new double buffering code.
33245
33246 2005-04-29  John BouAntoun  <jba-mono@optusnet.com.au>
33247
33248         * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
33249         behave like combobox and comboboxlist (still not sure if this is
33250         correct though).
33251
33252 2005-04-28  Jackson Harper  <jackson@ximian.com>
33253
33254         * ThemeWin32Classic.cs: Don't fill the middle of progress
33255         bars. This fills areas outside of the clip bounds that don't need
33256         to be filled.
33257
33258 2005-04-28  Jackson Harper  <jackson@ximian.com>
33259
33260         * Control.cs: Don't expose functionality to touch the image buffers.
33261         * ProgressBar.cs:
33262         * ListView.cs: We do not need to (and no longer can) manipulate
33263         the image buffers directly. All of this is handled by Control.
33264
33265 2005-04-28  Peter Bartok  <pbartok@novell.com>
33266
33267         * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
33268           RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
33269           RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
33270
33271 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
33272
33273         * Combobox:
33274                 - Adjust control's height for non-simple comboboxes (bug fix)
33275                 - Remove dead code
33276         * MenuAPI.cs: remove unused var
33277         * ScrollBar.cs: remove unsed var
33278                  
33279         * ListBox.cs: unselect items when clearing
33280
33281 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
33282
33283         * ListControl.cs: honors OnPositionChanged and default Selected Item
33284         * ListBox.cs: unselect items when clearing
33285
33286 2005-04-27  Jackson Harper  <jackson@ximian.com>
33287
33288         * X11Keyboard.cs: Initialize a default keyboard and give a warning
33289         if a "correct" keyboard is not found. This will make us not crash,
33290         but might give some users bad keyboard layouts...seems to be the
33291         same thing rewind does.
33292
33293 2005-04-27  Jackson Harper  <jackson@ximian.com>
33294
33295         * BindingManagerBase.cs: Attach the current/position changed
33296         handlers to their respective events.
33297
33298 2005-04-27  Jackson Harper  <jackson@ximian.com>
33299
33300         * Control.cs: Make sure that the first WM_PAINT does a full draw,
33301         not just a blit.
33302         * ThemeWin32Classic.cs: Don't fill the background for picture
33303         boxes. This could overright user drawing.
33304         * ComboBox.cs: Just fill the clipping rect not the entire client
33305         rect when drawing the background. This prevents pieces of the
33306         image buffer from getting overwritten and is theoretically faster.
33307
33308 2005-04-26  Jordi Mas i Hernandez <jordi@ximian.com>
33309
33310         * ComboBox.cs: Databinding support fixes, fire missing events
33311         * ListControl.cs: implement missing methods and properties, fixes
33312         * ThemeWin32Classic.cs: Databiding support on Drawing
33313         * CheckedListBox.cs: Databinding support fixes, fire missing events
33314         * ListBox.cs: Databinding support fixes, fire missing events
33315         
33316 2005-04-25  Peter Bartok  <pbartok@novell.com>
33317
33318         * LinkLabel.cs: Length of LinkArea is not allowed to be negative
33319
33320 2005-04-25  Jackson Harper  <jackson@ximian.com>
33321
33322         * TreeView.cs: Use the horizontal scrollbars height not width when
33323         determining how much of the client area is available.
33324
33325 2005-04-25  Jackson Harper  <jackson@ximian.com>
33326
33327         * Control.cs: Double buffering is handled differently now. As per
33328         the spec, the extra buffer is created in the WM_PAINT message and
33329         passed down to the control's drawing code.
33330         * GroupBox.cs:
33331         * Label.cs:
33332         * CheckBox.cs:
33333         * ProgressBar.cs:
33334         * RadioButton.cs:
33335         * ColorDialog.cs:
33336         * ComboBox.cs:
33337         * PropertyGridView.cs:
33338         * UpDownBase.cs:
33339         * MessageBox.cs:
33340         * MenuAPI.cs:
33341         * ListView.cs:
33342         * ButtonBase.cs:
33343         * SizeGrip.cs:
33344         * ScrollBar.cs:
33345         * ListBox.cs:
33346         * TrackBar.cs:
33347         * ToolBar.cs:
33348         * PictureBox.cs:
33349         * DateTimePicker.cs:
33350         * StatusBar.cs:
33351         * TreeView.cs: Update to new double buffering system.
33352         * MonthCalendar.cs: Uncomment block, as Capture is now
33353         working. Update to new double buffering
33354         * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
33355         * PaintEventArgs.cs: New internal method allows us to set the
33356         graphics object. This is used for double buffering.
33357         * ThemeWin32Classic.cs: Give the picture box drawing code a clip
33358         rectangle. The internal paint_area var has been removed from
33359         StatusBar. The clipping rect should be used instead.
33360         * Theme.cs: Give the PictureBox drawing method a clipping rect.
33361         * TabPage.cs: The RefreshTabs method was removed, so just call the
33362         tab controls Refresh method now.
33363         * TabControl.cs: Update to new double buffering. Make sure the
33364         handle is created before sizing the tab pages, otherwise we will
33365         get stuck in a loop.
33366
33367 2005-04-24  Borja Sanchez Zamorano <borsanza@gmail.com>
33368
33369         * LinkLabel.cs: Fix typo, bug #74719; patch
33370           from Borja Sanchez Zamorano
33371
33372 2005-04-22  Jackson Harper  <jackson@ximian.com>
33373
33374         * TreeNode.cs: Implement Handle stuff.
33375         * TreeView.cs: Utility methods so nodes can get/lookup by handle.
33376
33377 2005-04-22  Jordi Mas i Hernandez <jordi@ximian.com>
33378
33379         * DataGridTextBoxColumn.cs: call base constructors, fixes
33380         * GridColumnStylesCollection.cs: missing events, methods, and functionality
33381         * GridTableStylesCollection.cs: fixes, check duplicate mapping names
33382         * DataGridTableStyle.cs: implements create default column styles
33383         * DataGridBoolColumn.cs: which types can handle
33384         * DataGrid.cs: missing methods, fixes, new functionality
33385         * DataGridColumnStyle.cs: fixes
33386
33387 2005-04-20  Alexander Olk  <xenomorph2@onlinehome.de>
33388         * FolderBrowserDialog.cs:
33389         - Use a thread to fill the TreeView
33390         - Adjusted some sizes
33391
33392 2005-04-19  Peter Bartok  <pbartok@novell.com>
33393
33394         * LinkLabel.cs: (Re-)create the pieces when setting the Text
33395           property. Fixes #74360.
33396
33397 2005-04-19  Jackson Harper  <jackson@ximian.com>
33398
33399         * XEventQueue.cs: Lock when getting the lockqueue size.
33400         * PictureBox.cs: Call base OnPaint
33401         
33402 2005-04-19  Peter Bartok  <pbartok@novell.com>
33403
33404         * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
33405           messages were no longer being processed (this broke BeginInvoke)
33406
33407           
33408 2005-04-18  Jackson Harper  <jackson@ximian.com>
33409
33410         * TreeView.cs: buglet that caused node images to get drawn
33411         regardless of whether or not they were in the clipping rectangle.
33412
33413 2005-04-18  Jackson Harper  <jackson@ximian.com>
33414
33415         * CurrencyManager.cs: There are four rules for GetItemProperties:
33416         - If the type is an array use the element type of the array
33417         - If the type is a typed list, use the type
33418         - If the list contains an Item property that is not an object, use
33419         that property
33420         - use the first element of the list if there are any elements in
33421         the list.
33422         
33423 2005-04-17  Jackson Harper  <jackson@ximian.oom>
33424
33425         * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
33426         click. This handles offsets for scrolling properly and reduces
33427         memory. Also fixed GetNode to not offset now that TopNode works
33428         properly.
33429         * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
33430         
33431 2005-04-17  Jackson Harper  <jackson@ximian.com>
33432
33433         * CursorConverter.cs: Initial implementation.
33434
33435 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
33436
33437         * ListControl.cs: work towards complex data binding support on ListControl
33438         * CurrencyManager.cs: work towards complex data binding support on ListControl
33439         * ListBox.cs: work towards complex data binding support on ListControl
33440
33441
33442 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
33443
33444         * GridTableStylesCollection.cs: fixes name and constructor
33445         * DataGridTableStyle.cs: fixes
33446         * DataGridBoolColumn.cs: fixes names and constructors
33447         * DataGrid.cs: define methods and properties. Some init implementations
33448         * DataGridCell.cs: define methods and properties. Some init implementations
33449         * GridTablesFactory.cs: Define methods and properties
33450
33451 2005-04-15  Geoff Norton  <gnorton@customerdna.com>
33452
33453         * XplatUIOSX.cs:  Handle proper mouse tracking even if the current
33454         graphics port changes.  We still want the coordinates in global screen
33455         coordinates.
33456
33457 2005-04-14  Jackson Harper  <jackson@ximian.com>
33458
33459         * TreeView.cs: Handle clicks when plus minus is disabled. Don't
33460         check plus minus or checkbox clicks unless those features are enabled.
33461
33462 2005-04-14  Jackson Harper  <jackson@ximian.com>
33463
33464         * TreeView.cs: Add methods for setting the top and bottom visible
33465         nodes. TreeNode::EnsureVisible uses these methods.
33466         * TreeNode.cs: Implement EnsureVisible
33467
33468 2005-04-13  Jordi Mas i Hernandez <jordi@ximian.com>
33469
33470         * Form.cs: Pospone menu assignation if the window has not been created yet
33471         * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
33472         size and position
33473
33474 2005-04-12  Jackson Harper  <jackson@ximian.com>
33475
33476         * TreeView.cs: Set the TopNode properly when scrolling
33477         occurs. This has the added benifit of reducing the amount of
33478         walking that needs to be done when drawing. Also removed an old
33479         misleading TODO.
33480         * OpenTreeNodeEnumerator.cs: Fix moving backwards.
33481         
33482 2005-04-11  Jordi Mas i Hernandez <jordi@ximian.com>
33483
33484         * Timer.cs: fixes interval setting when the timer is already enabled
33485         
33486 2005-04-10  Alexander Olk  <xenomorph2@onlinehome.de>
33487
33488         * FolderBrowserDialog.cs: First approach
33489
33490 2005-04-09  Peter Bartok  <pbartok@novell.com>
33491
33492         * FolderBrowserDialog: Added
33493
33494 2005-04-07  Jordi Mas i Hernandez <jordi@ximian.com>
33495
33496         * LinkLabel.cs: move drawing code into the theme
33497         * ThemeWin32Classic.cs: drawing code and painting background bugfix
33498         * Theme.cs: define DrawLinkLabel method
33499
33500 2005-04-05  Jackson Harper  <jackson@ximian.com>
33501
33502         * BindingContext.cs: Use weak references so these bad actors don't
33503         stay alive longer then they need to.
33504
33505 2005-04-05  Jackson Harper  <jackson@ximian.com>
33506
33507         * ListControl.cs: Basic implementation of complex databinding.
33508         * ComboBox.cs:
33509         * ListBox.cs: Add calls to ListControl databinding methods.
33510
33511 2005-04-05  Alexander Olk  <xenomorph2@onlinehome.de>
33512
33513         * FileDialog.cs:
33514           - Don't change PopupButtonState to Normal when the
33515             PopupButton gets pressed several times.
33516           - Renamed ButtonPanel to PopupButtonPanel
33517
33518 2005-04-05  Jordi Mas i Hernandez <jordi@ximian.com>
33519
33520         * ColorDialog.cs: Use cached objects instead of creating them
33521         * LinkLabel.cs: Use cached objects instead of creating them
33522         * Splitter.cs: Use cached objects instead of creating them
33523         * FontDialog.cs: Use cached objects instead of creating them
33524         * PropertyGridView.cs: Use cached objects instead of creating them
33525         * MessageBox.cs: Use cached objects instead of creating them
33526         * FileDialog.cs: Use cached objects instead of creating them
33527         * ThemeWin32Classic.cs: Use cached objects instead of creating them
33528         * TreeView.cs: Use cached objects instead of creating them
33529         
33530 2005-04-04  Jordi Mas i Hernandez <jordi@ximian.com>
33531
33532         * Control.cs: use Equals to compare the font since no == op
33533         * ScrollBar.cs: use Equals to compare the font since no == op
33534
33535 2005-04-04  Alexander Olk  <xenomorph2@onlinehome.de>
33536
33537         * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
33538
33539 2005-04-01  Jackson Harper  <jackson@ximian.com>
33540
33541         * Binding.cs: Implement IsBinding.
33542         * BindingManagerBase.cs:
33543         * PropertyManager.cs:
33544         * CurrencyManager.cs: Add IsSuspended property.
33545
33546 2005-04-01  Jackson Harper  <jackson@ximian.com>
33547
33548         * Binding.cs: Had some IsAssignableFrom calls backwards.
33549
33550 2005-04-01  Jackson Harper  <jackson@ximian.com>
33551
33552         * Binding.cs: Handle null data members when pulling data.
33553         * PropertyManager.cs: Handle the data member being a property that
33554         does not exist.
33555
33556 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
33557
33558         * DataGridTextBoxColumn.cs: fixes signature
33559         * DataGrid.cs: calls right constructor
33560
33561 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
33562
33563         * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
33564         * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
33565         * GridTableStylesCollection.cs: implements GridTableStylesCollection
33566         * DataGridTableStyle.cs: implements DataGridTableStyle
33567         * DataGridBoolColumn.cs: implements DataGridBoolColumn
33568         * DataGridTextBox.cs: implements DataGridTextBox
33569         * DataGridColumnStyle.cs: implements DataGridColumnStyle
33570
33571 2005-03-31  Alexander Olk  <xenomorph2@onlinehome.de>
33572
33573         * FileDialog.cs: Added simple PopupButton class for ButtonPanel
33574
33575 2005-03-29  Peter Bartok  <pbartok@novell.com>
33576
33577         * Application.cs:
33578           - Properly implemented CompanyName property
33579           - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
33580             returns a path that includes CompanyName, ProductName and
33581             Version (fixes bug #70330)
33582
33583 2005-03-29  Stefan Buehler  <sbuehler@gmx.ch>
33584
33585         * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
33586           fixes bug #72588.
33587
33588 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
33589
33590         * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
33591         
33592           - Added ReadOnly CheckBox
33593           - Further refactoring: moved some code from Open-/SaveFileDialog
33594             to FileDialog
33595
33596 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
33597
33598         * OpenFileDialog.cs: Fixed CheckFileExists
33599         * FileDialog.cs:
33600           Moved FileView and DirComboBox outside FileDialog class.
33601           They can now be used outside FileDialog
33602
33603 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
33604
33605         * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
33606         * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
33607
33608 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
33609
33610         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
33611           - Added missing CreatePrompt property in SaveDialog
33612           - Overall SaveDialog handling should be better now
33613           - Added non standard ShowHiddenFiles property
33614           - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
33615           - Added InitialDirectory and RestoreDirectory support
33616
33617 2005-03-26  Alexander Olk  <xenomorph2@onlinehome.de>
33618
33619         * FileDialog.cs: Made dirComboBox usable
33620
33621 2005-03-24  Alexander Olk  <xenomorph2@onlinehome.de>
33622
33623         * FileDialog.cs: Added Filter support (case sensitiv)
33624
33625 2005-03-24  Jackson Harper  <jackson@ximian.com>
33626
33627         * TabControl.cs: Need a couple more pixels for the lines.
33628
33629 2005-03-23  Jackson Harper  <jackson@ximian.com>
33630
33631         * TabControl.cs: Give the tab page focus when it is selected.
33632
33633 2005-03-23  Jackson Harper  <jackson@ximian.com>
33634
33635         * TabControl.cs: Account for the drawing of tabs borders when
33636         invalidating. If the slider was clicked dont do click detection on
33637         the tabs.
33638
33639 2005-03-23  Jackson Harper  <jackson@ximian.com>
33640
33641         * TabControl.cs: Fix typo, emilinates an unneeded expose event.
33642
33643 2005-03-22  Jonathan Chambers  <jonathan.chambers@ansys.com>
33644
33645         * CategoryGridEntry.cs: Added
33646         * GridItem.cs: Added helper properties
33647         * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
33648         * GridEntry.cs: Updated code for collection
33649         * PropertyGrid.cs: Cleaned up some formatting
33650         * PropertyGridView.cs: Added drop down functionality for enums.
33651         * GridItemCollection.cs: Added enumerator logic
33652         * PropertyGridEntry.cs: Added
33653
33654 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
33655
33656         * FileDialog.cs:
33657           - Removed unnecessary commented code
33658           - Fixed handling for entering the filename manually in the combobox
33659
33660 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
33661
33662         * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
33663
33664 2005-03-18  Peter Bartok  <pbartok@novell.com>
33665
33666         * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
33667           them being touching the border
33668
33669 2005-03-18  Peter Bartok  <pbartok@novell.com>
33670
33671         * TextControl.cs: Quick hack to center text better
33672
33673 2005-03-18  Peter Bartok  <pbartok@novell.com>
33674
33675         * ControlPaint.cs:
33676           - Don't throw NotImplemented exceptions, just print a notice once
33677             instead (requested by Miguel). This makes running existing SWF
33678             apps a bit easier
33679         * Control.cs:
33680           - Commented out Drag'N'Drop XplatUI call (no driver support yet)
33681           - Added context menu trigger on right click
33682         * Panel.cs: Trigger invalidate on resize
33683         * StatusBar.cs:
33684           - Removed old double-buffer drawing
33685           - Added ResizeRedraw style to force proper update of statusbar
33686         * ListView.cs:
33687           - Removed debug output
33688         * ThemeWin32Classic.cs:
33689           - Fixed drawing of status bar, now draws Text property if there
33690             are no defined panels
33691
33692 2005-03-18  Jackson Harper  <jackson@ximian.com>
33693
33694         * ImageList.cs: When the image stream is set pull all the images
33695         from it.
33696         * ImageListStreamer.cs: Implement reading image list streams.
33697
33698 2005-03-18  Peter Bartok  <pbartok@novell.com>
33699
33700         * ThemeWin32Classic.cs (DrawPictureBox):
33701           - Fixed calculations for centered drawing
33702           - Fixed drawing for normal mode, not scaling the image on normal
33703
33704 2005-03-18  Peter Bartok  <pbartok@novell.com>
33705
33706         * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
33707           textbox
33708         * FileDialog.cs:
33709           - Made Open/Save button the accept button for FileDialog
33710           - Tied the cancel button to the IButtonControl cancel button
33711           - Save/Open now properly builds the pathname
33712           - Now handles user-entered text
33713           - Preventing crash on right-click if no item is selected
33714           - Fixed Text property, now uses contents of textbox
33715           - Fixed SelectedText property, now just returns the text part that
33716             is selected in the text box
33717
33718 2005-03-18  Jackson Harper  <jackson@ximian.com>
33719
33720         * ThemeWin32Classic.cs: Use the proper func for drawing the focus
33721         rect, make sure to de-adjust the interior rect after drawing the
33722         tab text.
33723
33724 2005-03-18  Peter Bartok  <pbartok@novell.com>
33725
33726         * MenuAPI.cs: Remove menu *before* executing selected action to
33727           prevent the menu from 'hanging around'
33728           
33729 2005-03-17  Geoff Norton  <gnorton@customerdna.com>
33730
33731         * XplatUIOSX.cs: Implemented WorkingArea property
33732
33733 2005-03-17  Peter Bartok  <pbartok@novell.com>
33734
33735         * XplatUIX11.cs: Fixed menu coord calculations
33736         * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
33737           for calculating offsets
33738
33739 2005-03-17  Peter Bartok  <pbartok@novell.com>
33740
33741         * Hwnd.cs: Do not consider menu presence for default client
33742           rectangle location/size
33743         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
33744           XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
33745           translation functions
33746         * FileDialog.cs: Fixed (what I presume is a) typo
33747
33748 2005-03-17  Jonathan Gilbert  <logic@deltaq.org>
33749
33750         * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
33751           X access (avoids X-Async errors)
33752
33753 2005-03-16  Jackson Harper  <jackson@ximian.com>
33754
33755         * TabControl.cs: Raise the SelectedIndexChanged event.
33756
33757 2005-03-16  Alexander Olk  <xenomorph2@onlinehome.de>
33758
33759         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
33760           - Removed vertical ToolBar and replaced it with a custom panel
33761             (desktop and home button already work)
33762           - Added Help button (some controls get resized or relocated then)
33763           - Draw correct text depending on Open or Save.
33764           - Fixed some typos...
33765
33766 2005-03-16  Jordi Mas i Hernandez <jordi@ximian.com>
33767
33768         * ScrollBar.cs:
33769           - Only change Maximum and Minimum when need it (bug fix)
33770
33771 2005-03-15  Peter Bartok  <pbartok@novell.com>
33772
33773         * Form.cs: Use Handle for icon, to trigger creation if
33774           the window does not yet exist
33775         * Control.cs:
33776           - CanSelect: Slight performance improvement
33777           - Focus(): Preventing possible recursion
33778           - Invalidate(): Removed ControlStyle based clear flag setting
33779           - WM_PAINT: fixed logic for calling OnPaintBackground
33780           - WM_ERASEBKGND: Fixed logic, added call to new driver method
33781             EraseWindowBackground if the control doesn't paint background
33782         * XplatUIWin32.cs:
33783           - Moved EraseWindowBackground() method to internal methods
33784           - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
33785             is sent via SendMessage on BeginPaint call on Win32
33786         * XplatUIX11.cs:
33787           - Added EraseWindowBackground() method
33788           - No longer sends WM_ERASEBKGND on .Expose, but on call to
33789             PaintEventStart, which more closely matches Win32 behaviour
33790           - Fixed Invalidate() call, now updates new ErasePending Hwnd property
33791           - Fixed SetFocus() to properly deal with client and whole windows
33792         * Hwnd.cs: Added ErasePending property
33793         * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
33794         * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
33795
33796 2005-03-12  Geoff Norton  <gnorton@customerdna.com>
33797
33798         * XplatUIOSX.cs:
33799           - Fix hard loop when timers exist.
33800           - Fix bugs with middle and right click for 3 button mice.
33801
33802 2005-03-11  Peter Bartok  <pbartok@novell.com>
33803
33804         * XplatUIX11.cs:
33805           - get_WorkingArea: Need to call X directly, GetWindowPos only
33806             returns cached data now
33807           - Added sanity check to GetWindowPos hwnd usage
33808
33809 2005-03-11  Jackson Harper  <jackson@ximian.com>
33810
33811         * BindingManagerBase.cs: This method isn't used anymore as
33812         PullData now updates the data in the control.
33813
33814 2005-03-11  Jordi Mas i Hernandez <jordi@ximian.com>
33815
33816         * Form.cs: fixes menu drawing on X11
33817         * MenuAPI.cs:  fixes menu drawing on X11
33818
33819 2005-03-11  Peter Bartok  <pbartok@novell.com>
33820
33821         * Control.cs: Changed OnCreateControl behaviour based on a suggestion
33822           from Jonathan Gilbert; should fix bug #73606
33823         * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
33824           in Screen coordinates. Thanks, Jordi.
33825         * Form.cs: Added missing attribute
33826
33827 2005-03-11  Peter Bartok  <pbartok@novell.com>
33828
33829         * Form.cs:
33830           - Rudimentary Mdi support
33831           - Removed outdated FormParent code
33832           - Implemented lots of missing properties and methods, still missing
33833             transparency support
33834           - Added missing attributes
33835           - Implemented support for MaximumBounds
33836           - Added firing of various events
33837         * XplatUI.cs: Added SetIcon() method
33838         * XplatUIDriver.cs: Added SetIcon() abstract
33839         * XplatUIOSX.cs: Stubbed out SetIcon() method
33840         * XplatUIX11.cs:
33841           - Implemented SetIcon() support
33842           - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
33843           - Switched to unix line endings
33844         * XplatUIWin32.cs:
33845           - Made POINT internal so for can access it as part of MINMAX
33846           - Implemented SetIcon() support
33847           - Implemented support for CLIENTCREATESTRUCT (but might have to drop
33848             native Mdi support again, might have to go managed)
33849         * Control.cs: Now fires the StyleChanged event
33850         * MdiClient.cs: Added; still mostly empty
33851
33852 2005-03-10  Peter Bartok  <pbartok@novell.com>
33853
33854         * SaveFileDialog.cs: Added emtpy file
33855
33856 2005-03-08  Peter Bartok  <pbartok@novell.com>
33857
33858         * Control.cs: Fixed bug #73190; now invokes CreateControl (which
33859           in turn triggers OnCreateContro) when creating a handle for the
33860           first time.
33861         * TextControl.cs: Fixed endless loop in certain cases when
33862           replacing the current selection
33863
33864 2005-03-08  Jordi Mas i Hernandez <jordi@ximian.com>
33865
33866         * ScrollBar.cs:
33867           - Honors NewValue changes in Scroll events allowing apps to change it
33868           - Adds First and Last Scroll events
33869           - Fixes Thumb events
33870
33871 2005-03-07  Peter Bartok  <pbartok@novell.com>
33872
33873         * Hwnd.cs: Added DefaultClientRectangle property
33874         * XplatUI.cs: Now using the X11 driver Where() method, which provides
33875           more detailed debug information
33876         * XplatUIX11.cs:
33877           - Fixed size-change feedback loop, where we would pull an old size
33878             off the queue and mistakenly change our window's size to an
33879             earlier value
33880           - Now compressing ConfigureNotify events, to reduce looping and
33881             redraw issues
33882         * TextBoxBase.cs: Preventing crash when no text is set and ToString()
33883           is called
33884
33885 2005-03-07  Jackson Harper  <jackson@ximian.com>
33886
33887         * Binding.cs: Push data pushes from data -> property. Check if the
33888         property is readonly when attempting to set it.
33889
33890 2005-03-07  Jackson Harper  <jackson@ximian.com>
33891
33892         * Binding.cs: Format and parse data correctly. Use ASsignableFrom
33893         instead of IsSubclassOf. Pulling data now sets the value on the
33894         control.
33895         * PropertyManager.cs:
33896         * CurrencyManager.cs: Just need to pull data when updating now,
33897         because PullData will set the value on the control.
33898
33899 2005-03-04  Jackson Harper  <jackson@ximian.com>
33900
33901         * Binding.cs: Implement data type parsing and converting on pulled
33902         data. TODO: Are there more ways the data can be converted?
33903
33904 2005-03-04  Jackson Harper  <jackson@ximian.com>
33905
33906         * Binding.cs: Support <Property>IsNull checks. Also bind to the
33907         controls Validating method so we can repull the data when the
33908         control loses focus.
33909
33910 2005-03-03  Jordi Mas i Hernandez <jordi@ximian.com>
33911
33912         * ColumnHeader.cs:
33913           - Fixes null string format
33914           
33915         * ListView.cs:
33916           - Adds enum type checks
33917           - Fixes redrawing and recalc need after changing some properties
33918           - Fixes on focus_item set after the event
33919           - Fixes adding columns after the control has been created
33920           
33921         * ThemeWin32Classic.cs:
33922           - Fixes CheckBox focus rectangle
33923           - Fixes ColumnHeader drawing
33924
33925
33926 2005-03-03  Jackson Harper  <jackson@ximian.com>
33927
33928         * Binding.cs: Bind to <Property>Changed events so we can detect
33929         when properties are changed and update the data.
33930
33931 2005-03-02  Jordi Mas i Hernandez <jordi@ximian.com>
33932
33933         * ImageList.cs:
33934           - Changes 32-bit pixel format to Format32bppArgb to allow transparency
33935           - Fixes ImageList constructor with ImageList container
33936           - Fixes image scaling (wrong parameters at DrawImage)
33937
33938 2005-02-02  Jackson Harper  <jackson@ximian.com>
33939
33940         * Binding.cs: Make property searches case-insensitive. Eliminate
33941         some duplicated code.
33942
33943 2005-03-01  Jordi Mas i Hernandez <jordi@ximian.com>
33944
33945         * ComboBox.cs:
33946                 - Handle focus event
33947                 - Fix scrollbar events
33948                 - Discard highlighted item if remove it
33949                 - Fixes SelectedItem with strings
33950
33951 2005-03-01  Peter Bartok  <pbartok@novell.com>
33952
33953         * Control.cs:
33954           - Fixed Visible property, now follows (once again) parent chain
33955             to return false if any control in the chain is visible=false
33956           - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
33957           - Fixed several places where is_visible instead of Visible was used
33958           - Implemented FIXME related to focus selection when setting focused
33959             control to be invisible
33960
33961         * XplatUIWin32.cs: Now using proper method to find out if window is
33962           visible. Thanks to Jordi for pointing it out
33963
33964 2005-02-28  Jordi Mas i Hernandez <jordi@ximian.com>
33965
33966         * ComboBox.cs: show/hide scrollbar instead of creating it
33967
33968 2005-02-27  Jackson Harper  <jackson@ximian.com>
33969
33970         * CurrencyManager.cs: Add PositionChanged stuff.
33971
33972 2005-02-27  Peter Bartok  <pbartok@novell.com>
33973
33974         * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
33975         * XplatUIOSX.cs: Added GetMenuOrigin() stub
33976         * XplatUIWin32.cs: Implemented GetMenuOrigin()
33977         * XplatUIX11.cs:
33978           - Implemented GetMenuDC()
33979           - Implemented GetMenuOrigin()
33980           - Implemented ReleaseMenuDC()
33981           - Implemented generation of WM_NCPAINT message
33982           - Implemented generation and handling of WM_NCCALCSIZE message
33983         * Form.cs: Added debug helper message for Jordi's menu work
33984         * Hwnd.cs:
33985           - Modified ClientRect property; added setter, fixed getter to handle
33986             setting of ClientRect
33987           - Added MenuOrigin property
33988
33989 2005-02-26  Peter Bartok  <pbartok@novell.com>
33990
33991         * XplatUIX11.cs:
33992           - Destroys the caret if a window that's being destroyed contains it
33993           - Ignores expose events coming from the X11 queue for windows that
33994             already are destroyed
33995           - Now uses the proper variable for handling DestroyNotify, before we
33996             marked the wrong window as destroyed
33997           - Improved/added some debug output
33998
33999 2005-02-26  Peter Bartok  <pbartok@novell.com>
34000
34001         * X11Keyboard.cs: Fixes to work on 64bit systems
34002
34003 2005-02-26  Peter Bartok  <pbartok@novell.com>
34004
34005         * Control.cs:
34006           - Now calling OnHandleDestroyed from DestroyHandle()
34007             instead of Dispose()
34008           - Removed bogus call to controls.Remove() from DestroyHandle()
34009
34010 2005-02-26  Peter Bartok  <pbartok@novell.com>
34011
34012         * Control.cs: Properly destroy child windows when our handle is
34013           destroyed
34014
34015 2005-02-25  Peter Bartok  <pbartok@novell.com>
34016
34017         * XplatUI.cs:
34018           - Added 'DriverDebug' define to allow tracing XplatUI API calls
34019           - Alphabetized Static Methods and Subclasses
34020
34021         * XplatUIX11.cs:
34022           - Added XException class to allow custom handling of X11 exceptions
34023           - Created custom X11 error handler, tied into XException class
34024           - Added support for MONO_XEXCEPTIONS env var to allow the user
34025             to either throw an exception on X errors or continue running
34026             after displaying the error
34027           - Added handling of DestroyNotify message
34028           - Added handler for CreateNotify message (still disabled)
34029           - Improved (tried to at least) Where method to provide file and lineno
34030         * X11Structs.cs:
34031           - Added XErrorHandler delegate
34032           - Added XRequest enumeration (to suppor translation of errors)
34033
34034 2005-02-25  Jackson Harper  <jackson@ximian.com>
34035
34036         * PropertyManager.cs: Implement editing features
34037         * CurrencyManager.cs:
34038         * Binding.cs: First attempt at UpdateIsBinding
34039         * BindingManagerBase.cs: Call UpdateIsBinding before
34040         pushing/pulling data.
34041
34042 2005-02-25  Jordi Mas i Hernandez <jordi@ximian.com>
34043
34044         * MenuAPI.cs: Respect disabled items
34045         * ThemeWin32Classic.cs
34046                 - Caches ImageAttributes creation for DrawImageDisabled
34047                 - Fixes vertical menu line drawing
34048                 - Draws disabled arrows in disable menu items
34049
34050 2005-02-24  Peter Bartok  <pbartok@novell.com>
34051
34052         * Hwnd.cs:
34053           - Added UserData property to allow associating arbitrary objects
34054             with the handle
34055           - Fixed leak; now removing Hwnd references from static windows array
34056         * XplatUIWin32.cs:
34057           - Fixed Graphics leak in PaintEventEnd
34058           - Removed usage of HandleData, switched over to Hwnd class
34059         * HandleData.cs: Removed, obsoleted by Hwnd.cs
34060
34061 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
34062
34063         * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
34064         * ScrollBar.cs: Fixes bug
34065         * TrackBar.cs: removes death code, clipping, mimize refreshes,
34066          keyboard navigation enhancements
34067
34068 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
34069
34070         * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
34071         * GroupBox.cs: Add control styles
34072         * Label.cs: Add control styles
34073         * UpDownBase.cs: Add control styles
34074         * ListBox.cs: Add control styles
34075         * XplatUIWin32.cs: Fixes wrong parameter order
34076
34077
34078 2005-02-23  Chris Bacon  <chris.bacon@docobo.co.uk>
34079
34080         * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
34081
34082 2005-02-23  Jackson Harper  <jackson@ximian.com>
34083
34084         * PropertyManager.cs: Implement property binding. This doesn't
34085         seem to work yet though as (I think) there are some bugs in
34086         System.ComponentModel.PropertyDescriptor.
34087         * BindingContext.cs: Use new PropertyManager constructor.
34088
34089 2005-02-23  Jordi Mas i Hernandez <jordi@ximian.com>
34090
34091         * ProgressBar.cs: use clip region in ProgressBar
34092         * ThemeWin32Classic.cs: use clip region in ProgressBar
34093
34094 2004-02-22  Jackson Harper  <jackson@ximian.com>
34095
34096         * BindingsCollection.cs: Remove some debug code.
34097
34098 2005-02-22  Jackson Harper  <jackson@ximian.com>
34099
34100         * BindingContext.cs:
34101         * ControlBindingsCollection.cs:
34102         * CurrencyManager.cs:
34103         * Binding.cs:
34104         * BindingManagerBase.cs: Initial implementation
34105         * BindingsCollection.cs: Add an internal contains method that the
34106         BindingManagerBase uses to ensure bindings aren't added twice to
34107         the collection.
34108         * PropertyManager.cs: Stubbed out.
34109         * Control.cs:
34110         * ContainerControl.cs: Hook up databinding
34111         
34112 2005-02-22  Geoff Norton  <gnorton@customerdna.com>
34113
34114         * XplatUIOSX.cs:
34115           OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
34116           Fixed Invalidate/Update chain.
34117           Fixed tons of other minor bugs (this is almost a complete rewrite).
34118
34119 2005-02-22  Jordi Mas i Hernandez <jordi@ximian.com>
34120
34121         * ComboBox.cs: do subcontrol creation when the control is created
34122
34123 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
34124
34125         * Label.cs: fixes image drawing (image and imagelist)
34126         * ThemeWin32Classic.cs: cache brushes
34127         
34128 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
34129
34130         * Form.cs: Move menu drawing code to Theme class
34131         * ComboBox.cs: Move ComboBox drawing code to Theme class
34132         * MenuItem.cs: Move menu drawing code to Theme class
34133         * MenuAPI.cs: Move menu drawing code to Theme class
34134         * ThemeWin32Classic.cs: New methods
34135         * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
34136         * ListBox.cs: Move Listbox drawing code to Theme class
34137         * Theme.cs: New methods
34138
34139 2005-02-20  Peter Bartok  <pbartok@novell.com>
34140
34141         * Control.cs:
34142           - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
34143             only process mnemonics on those)
34144           - Fixed event sequence for key handling; first calling
34145             ProcessKeyEventArgs now
34146         * TextBoxBase.cs:
34147           - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
34148             for processing non-character keys
34149           - Fixed WM_CHAR to generate proper event sequence before processing
34150         * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
34151           generation
34152
34153 2005-02-19  Peter Bartok  <pbartok@novell.com>
34154
34155         * UserControl.cs: Added TextChanged event; added attributes
34156         * SizeGrip.cs: Implemented resizing and optional display of grip
34157         * Form.cs: Fixed attribute
34158         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
34159           Changed meaning of ScrollWindow bool argument; instead of the
34160           clear attribute (which will be true usually anyway), it gives the
34161           option of moving child controls as well.
34162         * XplatUIX11.cs:
34163           - Changed to match new ScrollWindow argument
34164           - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
34165             now handles the implicit parent window a WM puts around us
34166         * ScrollableControl.cs: Implemented (not the prettiest, but it seems
34167           to work)
34168         * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
34169         * TreeView.cs: Adjusted to new ScrollWindow arguments
34170
34171 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
34172
34173         * Form.cs: Menu integration with non-client area
34174         * MenuItem.cs: Menu integration with non-client area
34175         * MenuAPI.cs: Menu integration with non-client area
34176
34177 2005-02-18  Peter Bartok  <pbartok@novell.com>
34178
34179         * MethodInvoker.cs: Added
34180         * MdiLayout.cs: Added
34181         * SendKeys.cs: Started implementation
34182         * ErrorIconAlignment.cs: Added
34183
34184 2005-02-18  Peter Bartok  <pbartok@novell.com>
34185
34186         * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
34187         * Form.cs: Added handling for Menu-related Non-client messages
34188
34189 2005-02-17  Peter Bartok  <pbartok@novell.com>
34190
34191         * UpDownBase.cs: Fixed typo, compilation errors
34192         * DomainUpDown.cs: Fixed attribute value
34193
34194 2005-02-16  Miguel de Icaza  <miguel@novell.com>
34195
34196         * UpDownBase.cs: Attach entry events.
34197         Propagate events.
34198         Add ForeColor property, Focused, InterceptArrowKeys (interception
34199         does not work yet).
34200
34201 2005-02-17  Jordi Mas i Hernandez <jordi@ximian.com>
34202
34203         * Form.cs:
34204                 - Redraw non client are on Setmenu
34205                 - Calc proper menu starting point
34206
34207 2005-02-17  Peter Bartok  <pbartok@novell.com>
34208
34209         * Application.cs: Fixed message_filter check
34210
34211 2005-02-17  Peter Bartok  <pbartok@novell.com>
34212
34213         * Application.cs: Now calls registered message filters
34214         * DockStyle.cs: Fixed attribute
34215         * Form.cs: Fixed attribute
34216         * Menu.cs: Fixed attribute
34217         * ToolTip.cs: Fixed attribute
34218         * TreeNode.cs: Added missing attributes and arranged in regions
34219         * PropertyGrid.cs: Fixed signatures
34220         * TreeNodeCollection.cs: Added attributes
34221         * Splitter.cs: Added missing attributes; arranged into regions
34222         * TabPage.cs: Added missing attributes; arranged into regions
34223         * TextBoxBase.cs: Added missing attributes
34224         * TextBox.cs: Added missing attributes
34225         * ArrangeDirection.cs: Added missing attributes
34226         * TreeNodeConverter.cs: Added stub (needed for TreeNode)
34227         * ToolBarButton.cs: Fixed attributes
34228         * AnchorStyles.cs: Fixed attribute
34229         * TrackBar.cs: Fixed attributes
34230         * TabControl.cs: Added missing attributes and arranged into regions
34231         * ToolBar.cs: Fixed attribute
34232         * StatusBar.cs: Fixed signature, organized into regions and added
34233           attributes
34234         * StatusBarPanel.cs: Fixed attributes
34235         * ContentsResizedEventArgs.cs: Implemented
34236         * ContentsResizedEventHandler.cs: Implemented
34237         * DateBoldEventArgs.cs: Implemented
34238         * DateBoldEventHandler.cs: Implemented
34239         * UpDownEventArgs.cs: Implemented
34240         * UpDownEventHandler.cs: Implemented
34241         
34242 2005-02-16  Jordi Mas i Hernandez <jordi@ximian.com>
34243
34244         * Form.cs: first Menu NC refactoring
34245         * MenuAPI.cs: first Menu NC refactoring
34246         
34247 2005-02-16  Peter Bartok  <pbartok@novell.com>
34248
34249         * ImeMode.cs: Added missing attributes
34250         * Menu.cs: Fixed attribute
34251         * GroupBox.cs: Fixed attribute
34252         * Label.cs: Fixed attribute
34253         * ColorDialog.cs (RunDialog): Removed TODO attribute
34254         * ComboBox.cs: Fixed attributes
34255         * ListControl.cs: Added missing attributes
34256         * PropertyGrid.cs: Fixed attributes
34257         * Control.cs: Fixed attributes
34258         * ListViewItem.cs: Added TypeConverter attribute
34259         * NotifyIcon.cs: Fixed attributes
34260         * ListView.cs: Fixed attributes
34261         * ButtonBase.cs: Fixed attribute
34262         * ImageList.cs: Added missing attributes
34263         * ContainerControl.cs: Fixed signature
34264         * CheckedListBox.cs: Fixed attribute; added missing attributes
34265         * Panel.cs: Fixed attributes
34266         * PropertyTabChangedEventArgs.cs: Added missing attribute
34267         * PropertyValueChangedEventArgs.cs: Added missing attribute
34268         * Binding.cs: Fixed attribute
34269         * ListViewItemConverter: Implemented ListViewSubItemConverter class
34270         * ListBox.cs: Fixed attribute; added missing attributes;
34271         * ScrollableControl.cs: Added missing attributes
34272         * PictureBox.cs: Added missing attributes; implemented missing property
34273         * DateTimePicker.cs: Added missing attributes
34274         * Theme.cs (ToolWindowCaptionHeight): Fixed type
34275         * MonthCalendar.cs: Fixed attributes
34276         * StatusBarPanel.cs: Added missing attributes
34277         * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
34278
34279 2005-02-16  Peter Bartok  <pbartok@novell.com>
34280
34281         * TextBoxBase.cs: The previous method to enforce height yet remember
34282           the requested high was less than ideal, this is an attempt to do
34283           it better.
34284         * Control.cs: Added comment about possible problem
34285         * Copyright: Updated format
34286         * GridItemType.cs: Fixed swapped values
34287
34288 2005-02-15  Jackson Harper  <jackson@ximian.com>
34289
34290         * BaseCollection.cs: Use property so we never access an
34291         uninitialized list. Also initialize the list in the property.
34292
34293 2005-02-15  Peter Bartok  <pbartok@novell.com>
34294
34295         * GroupBox.cs (ProcessMnemonic): Implemented
34296         * Label.cs (ProcessMnemonic): Implemented
34297         * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
34298           hotkeys
34299
34300 2005-02-15  Peter Bartok  <pbartok@novell.com>
34301
34302         * RadioButton.cs (ProcessMnemonic): Implemented
34303         * CheckBox.cs (ProcessMnemonic): Implemented
34304         * Control.cs:
34305           - Added handling of WM_SYSxxx keyboard messages to support mnemonic
34306             handling
34307           - Added internal method to allow calling ProcessMnemonic from other
34308             controls
34309         * ContainerControl.cs:
34310           - Started support for handling validation chain handling
34311           - Implemented ProcessMnemonic support
34312           - Added Select() call to Active, to make sure the active control
34313             receives focus
34314         * Form.cs: Setting toplevel flag for Forms (this was lost in the
34315           FormParent rewrite)
34316         * ThemeWin32Classic.cs:
34317           - DrawCheckBox(): Fixed stringformat to show hotkeys
34318           - DrawRadioButton(): Fixed stringformat to show hotkeys
34319         * CommonDialog.cs: Removed WndProc override, not needed
34320
34321 2005-02-14  Peter Bartok  <pbartok@novell.com>
34322
34323         * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
34324           missed those in the rewrite
34325
34326 2005-02-14  Miguel de Icaza  <miguel@novell.com>
34327
34328         * NumericUpDown.cs (Increment, ToString): Add.
34329         (DecimalPlaces): implement.
34330         
34331         Add attributes.
34332         
34333         * UpDownBase.cs: Add the designer attributes.
34334
34335 2005-02-13  Peter Bartok  <pbartok@novell.com>
34336
34337         * Panel.cs: Removed border_style, now in Control
34338         * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
34339           ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
34340
34341 2005-02-13  Peter Bartok  <pbartok@novell.com>
34342
34343         * MouseButtons.cs: Added missing attributes
34344         * XplatUIStructs.cs: Added enumeration for title styles
34345         * LeftRightAlignment.cs: Added missing attributes
34346         * Hwnd.cs: Switched to use client_window as handle (slower, but makes
34347           it compatible with Graphics.FromHwnd()
34348         * SelectedGridItemChangedEventArgs.cs: Fixed property type
34349         * Keys.cs: Added missing attributes
34350         * SelectionRange.cs: Added missing attributes
34351         * SelectionRangeConverter.cs: Added
34352         * XplatUI.cs:
34353           - Introduced SetBorderStyle, SetMenu, GetMenuDC and
34354             ReleaseMenuDC methods
34355           - Renamed ReleaseWindow to UngrabWindow
34356           - Added proper startup notice to allow version identification
34357         * Form.cs:
34358           - Added missing attributes
34359           - Removed FormParent concept
34360         * Label.cs: Removed border_style field, now in Control
34361         * RadioButton.cs: Now properly selects RadioButton when focus is
34362           received
34363         * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
34364         * Control.cs:
34365           - Added missing attributes
34366           - Added borderstyle handling
34367           - Removed FormParent concept support
34368           - Fixed calls to XplatUI to match changed APIs
34369           - Fixed bug that would case us to use disposed Graphics objects
34370           - Removed unneeded internal methods
34371           - PerformLayout(): Fixed to handle DockStyle.Fill properly
34372           - SelectNextControl(): Fixed to properly check common parents
34373         * TextBoxBase.cs: Removed border_style field (now in Control)
34374         * MessageBox.cs:
34375           - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
34376             fixed calculations for form size
34377           - Added support for localized strings and icons
34378           - Improved form size calculations, added border
34379         * ListView.cs: Removed border_style field (now in Control)
34380         * X11Structs.cs: Moved several structs from X11 driver here
34381         * X11Keyboard.cs: Changed debug message
34382         * Application.cs: Removed FormParent concept support
34383         * CommonDialog.cs:
34384           - Resetting end_modal flag
34385           - Removed FormParent concept support
34386         * NativeWindow.cs: Removed FormParent concept support
34387         * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
34388           Client area and Non-Client whole window to allow support for WM_NC
34389           messages
34390         * XplatUIOSX.cs: Updated to match latest driver spec; added exception
34391           prevent using it until it supports Hwnd as per Geoff Norton's request
34392         * ToolBar.cs: Fixed drawing, was not doing proper drawing
34393         * PictureBox.cs: Removed border_style field, now in Control
34394         * XplatUIWin32.cs: Added new driver methods
34395
34396 2005-02-12  Peter Bartok  <pbartok@novell.com>
34397
34398         * OpacityConverter.cs: Implemented
34399         * Hwnd.cs: Internal class to support drivers that need to emulate
34400           client area/non-client area window behaviour
34401
34402 2005-02-11  Peter Bartok  <pbartok@novell.com>
34403
34404         * KeysConverter.cs: Implemented
34405
34406 2005-02-11  Jordi Mas i Hernandez <jordi@ximian.com>
34407
34408         * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
34409         * LinkLabel: Added missing attributes
34410         * MainMenu.cs: fixes ToString
34411         * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
34412         * ListBox.cs: fixes event position
34413         * TrackBar.cs: adds missing attributes and events
34414         
34415 2005-02-10  Jordi Mas i Hernandez <jordi@ximian.com>
34416
34417         * MenuItem.cs: Use SystemInformation and bug fixes
34418         * MenuAPI.cs: Use SystemInformation and bug fixes
34419
34420 2005-02-09  Jackson Harper  <jackson@ximian.com>
34421
34422         * X11Keyboard.cs: We ignore some keys, but still need to set/reset
34423         their keystate otherwise things like VK_MENU get stuck "on".
34424
34425 2005-02-09  Kazuki Oikawa <kazuki@panicode.com>
34426
34427         * ListBox.cs: Fixes AddRange bug
34428         
34429 2005-02-09  Jordi Mas i Hernandez <jordi@ximian.com>
34430
34431         * ProgressBar.cs
34432                 - Add missing attributes
34433                 - Add missing method
34434                 
34435         * CheckedListBox.cs: Added missing attributes
34436                 - Add missing attributes
34437                 - Remove extra method
34438         
34439         * ComboBox.cs: Added missing attributes
34440         * VScrollBar.cs: Added missing attributes
34441         * ScrollBar.cs:  Added missing attributes
34442         * ListBox.cs: Fixes signature, add missing consts
34443         * LinkArea.cs:   Added missing attributes
34444         
34445
34446 2005-02-08  Peter Bartok  <pbartok@novell.com>
34447
34448         * Menu.cs: Added missing attributes
34449         * MainMenu.cs: Added missing attributes
34450         * GroupBox.cs: Added missing attributes
34451         * Label.cs: Added missing attributes
34452         * CheckBox.cs: Implemented CheckBoxAccessibleObject class
34453         * ColorDialog.cs:
34454           - Added Instance and Options properties
34455           - Added missing attributes
34456         * Cursor.cs: Made Serializable
34457         * NotifyIcon: Added missing attributes
34458         * MenuItem.cs: Added missing attributes
34459         * TextBoxBase.cs: Implemented AppendText() and Select() methods
34460         * Panel.cs: Added Missing attributes
34461         * MonthCalendar.cs: Fixed CreateParams
34462
34463 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
34464         
34465         * LinkLabel.cs:
34466                 - Fixes signature
34467                 - Fixes issues with links
34468                 - Adds the class attributes
34469
34470 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
34471         
34472         * ComboBox.cs:
34473                 - Fixes button when no items available in dropdown
34474                 - Fixes repainting problems
34475                 - Adds the class attributes
34476                 
34477 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
34478
34479         * XplatUIOSX.cs: Detect the menu bar and title bar height from
34480         the current theme.  Cache these on startup.
34481
34482 2005-02-07  Jackson Harper  <jackson@ximian.com>
34483
34484         * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
34485         the scrollbar buttons when they are depressed.
34486
34487 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
34488
34489         * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
34490         Get the display size from the main displayid.  We currently dont
34491         support multiple display configurations.
34492
34493 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
34494
34495         * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
34496
34497 2005-02-07  Miguel de Icaza  <miguel@novell.com>
34498
34499         * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
34500
34501 2005-02-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
34502
34503         * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
34504
34505 2005-02-04  Jackson Harper  <jackson@ximian.com>
34506
34507         * ThemeWin32Classic.cs: Respect the clipping rect when
34508         drawing. Only fill the intersection of clips and rects so there
34509         isn't a lot of large fills.
34510         * ScrollBar.cs: Pass the correct clipping rect to the theme
34511         engine. Remove some debug code.
34512
34513 2005-02-05  John BouAntoun  <jba-mono@optusnet.com.au>
34514         
34515         * DateTimePicker.cs:
34516                 - Fixed crash on DateTime.Parse, use Constructor instead
34517
34518 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
34519         
34520         * MenuItem.cs:
34521         * MenuAPI.cs:
34522                 - Owner draw support (MeasureItem and DrawItem)
34523
34524 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
34525         
34526         *  Menu.cs:
34527                 - Implements FindMergePosition and MergeMenu functions (very poor documented)
34528                 - Fixes MenuItems.Add range
34529         * MenuItem.cs:
34530                 - MergeMenu and Clone and CloneMenu functions
34531
34532 2005-02-03  Jackson Harper  <jackson@ximian.com>
34533
34534         * ScrollBar.cs: Make abstract
34535         * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
34536         is abstract.
34537
34538 2005-02-03  Jackson Harper  <jackson@ximian.com>
34539
34540         * ScrollBar.cs: First part of my scrollbar fixups. This removes
34541         all the unneeded refreshes and uses invalidates with properly
34542         computed rects.
34543
34544 2005-02-03  Peter Bartok  <pbartok@novell.com>
34545
34546         * ComponentModel.cs: Added
34547         * IDataGridEditingService.cs: Added
34548         * Timer.cs: Added missing attributes
34549         * ToolTip.cs: Added missing attributes
34550
34551 2005-02-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
34552
34553         * PropertyGridView.cs: Added. Patch by Jonathan Chambers
34554
34555 2005-02-03  Peter Bartok  <pbartok@novell.com>
34556
34557         * ListBox.cs: Added missing attributes
34558
34559 2005-02-03  Jordi Mas i Hernandez <jordi@ximian.com>
34560         
34561         * ListBox.cs:
34562                 - Fixes font height after font change
34563                 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
34564                 
34565 2005-02-02  Peter Bartok  <pbartok@novell.com>
34566
34567         * HandleData.cs: Introduced static methods to allow class
34568           to be more self-contained and track it's own HandleData objects
34569         * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
34570           HandleData to use new static methods
34571
34572 2005-02-02  Jordi Mas i Hernandez <jordi@ximian.com>
34573
34574         * Combobox.cs:
34575                 - Fixes default size and PreferredHeight
34576                 - Missing events
34577                 - ObjectCollection.Insert implementation
34578                 
34579         * ListControl.cs
34580                 - Fixes signature
34581         * ListBox.cs:
34582                 - Several fixes
34583                 - ObjectCollection.Insert implementation
34584                 - No selection after clean
34585                 - Small fixes
34586
34587 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
34588
34589         * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
34590
34591 2005-02-01  Jordi Mas i Hernandez <jordi@ximian.com>
34592
34593         * Combobox.cs:
34594                 - Caches ItemHeight calculation for OwnerDrawVariable
34595                 - Handles dropdown properly
34596                 - Fixes several minor bugs
34597
34598 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
34599
34600         * ListBox.cs:
34601                 - Fixes 71946 and 71950
34602                 - Fixes changing Multicolumn on the fly
34603                 - Fixes keyboard navigation on Multicolumn listboxes
34604
34605 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
34606         
34607         * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
34608         crash reporter log.
34609
34610 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
34611
34612         * XplatUIOSX.cs: Allow applications to actually exit.
34613
34614 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
34615
34616         * XplatUIOSX.cs: SetWindowStyle implemented.  Reposition views in
34617         their parent at creation time rather than lazily later.  Fixes a major
34618         regression we were experiencing.
34619
34620 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
34621
34622         * ThemeWin32Classic.cs: more date time picker painting fixes
34623         * DateTimePicker.cs: more monthcalendar drop down fixes
34624         * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
34625
34626 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
34627
34628         * ScrollBar.cs:
34629                 - When moving the thumb going outside the control should stop the moving
34630                 - Adds the firing of missing events
34631                 - Fixes no button show if Size is not specified
34632                 - End / Home keys for keyboard navigation
34633
34634 2005-01-30  Peter Bartok  <pbartok@novell.com>
34635
34636         * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
34637           sanity check to prevent theoretical loop
34638         * XplatUIWin32.cs (SetVisible): Removed debug output
34639         * XplatUIX11.cs (SystrayChange): Added sanity check
34640         * ScrollableControl.cs (OnVisibleChanged): Now calls base method
34641         * Control.cs (OnVisibleChanged): Added workaround for ParentForm
34642           behaviour, valid until the X11 client window rewrite is done
34643         * TextBox.cs (ctor): Setting proper default foreground and background
34644           colors
34645
34646 2005-01-30      John BouAntoun  <jba-mono@optusnet.com.au>
34647
34648         * Theme: Added DrawDateTimePicker to interface
34649         * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
34650         * DateTimePicker.cs: Created (still needs keys and painting code)
34651         * DateTimePickerFormat.cs: added
34652         * MonthCalendar.cs: fixed CreateParams for popup window mode
34653           
34654 2005-01-29  Peter Bartok  <pbartok@novell.com>
34655
34656         * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
34657           this should also the calculations for ligher/darker
34658         * Theme.cs: Fixed defaults for ScrollBar widths/heights
34659
34660 2005-01-29  Peter Bartok  <pbartok@novell.com>
34661
34662         * ArrangeDirection.cs: Added
34663         * ArrangeStartingPositon.cs: Added
34664         * SystemInformation.cs: Implemented
34665         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
34666           XplatUIX11.cs, Theme.cs: Added/implemented new static properties
34667           used by SystemInformation class
34668         * X11Strucs.cs: Added XSizeHints structure
34669         * MenuAPI.cs:
34670           - Fixed CreateParams to make sure the menu window is always visible
34671           - TrackPopupMenu: Added check to make sure we don't draw the
34672             menu offscreen
34673
34674 2005-01-29  Peter Bartok  <pbartok@novell.com>
34675
34676         * HandleData.cs: Added method for altering invalid area
34677         * TextBoxBase.cs: Implemented TextLength
34678
34679 2005-01-28  Peter Bartok  <pbartok@novell.com>
34680
34681         * XplatUIX11.cs: Improvement over last patch, not sending
34682           the WM_PAINT directly anymore, instead we scroll any pending
34683           exposed areas and let the system pick out the WM_PAINT later
34684
34685 2005-01-28  Peter Bartok  <pbartok@novell.com>
34686
34687         * SWF.csproj: Deleted, no longer used. Instead,
34688           Managed.Windows.Forms/SWF.csproj should be used
34689         * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
34690           directly, to avoid a potential race condition with the next
34691           scroll
34692
34693 2005-01-28  Peter Bartok  <pbartok@novell.com>
34694
34695         * XplatUI.cs: Made class internal
34696
34697 2005-01-28  Jordi Mas i Hernandez <jordi@ximian.com>
34698
34699         * CheckedListBox.cs:
34700                 - Draw focus
34701                 - Fixed Drawing
34702                 - Missing methods and events
34703
34704 2005-01-27  Peter Bartok  <pbartok@novell.com>
34705
34706         * Application.cs (Run): Don't use form if we don't have one
34707
34708 2005-01-27  Peter Bartok  <pbartok@novell.com>
34709
34710         * TextBoxBase.cs (get_Lines): Fixed index off by one error
34711
34712 2005-01-27  Peter Bartok  <pbartok@novell.com>
34713
34714         * GridEntry.cs: Added; Patch by Jonathan S. Chambers
34715         * GridItem.cs: Added; Patch by Jonathan S. Chambers
34716         * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
34717         * GridItemType.cs: Added; Patch by Jonathan S. Chambers
34718         * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
34719         * PropertySort.cs: Added; Patch by Jonathan S. Chambers
34720         * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
34721         * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
34722         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
34723         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
34724         * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
34725         * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
34726
34727 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
34728
34729         * Combobox.cs:
34730                 - Draw focus on Simple Combobox
34731                 - Fixes drawing issues
34732                 - fixes 71834
34733
34734 2005-01-27  Peter Bartok  <pbartok@novell.com>
34735
34736         * Form.cs:
34737           - Place window in default location, instead of hardcoded 0/0
34738           - Send initial LocationChanged event
34739         * Control.cs:
34740           - UpdateBounds after creation to find out where the WM placed us
34741           - Make sure that if the ParentForm changes location the Form
34742             is notified
34743         * XplatUIX11.cs: XGetGeometry will not return the coords relative
34744             to the root, but to whatever the WM placed around us.
34745             Translate to root coordinates before returning toplevel
34746             coordinates
34747         * XplatUIWin32.cs: Removed debug output
34748         * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
34749           flag to GetWindowPos, to allow translation of coordinates on X11
34750
34751 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
34752
34753         * ListBox.cs: connect LostFocus Event
34754
34755 2005-01-27  Peter Bartok  <pbartok@novell.com>
34756
34757         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
34758           XplatUIX11.cs: Extended the Systray API
34759         * Form.cs: Removed debug output
34760         * Application.cs: Fixed focus assignment, always need to call
34761           XplatUI.Activate() since Form.Activate() has rules that may
34762           prevent activation
34763         * NotifyIcon.cs: Should be complete now
34764         * ToolTip.cs: Worked around possible timer bug
34765
34766 2005-01-27  Jackson Harper  <jackson@ximian.com>
34767
34768         * TabControl.cs:
34769         - Only invalidate the effected tabs when the
34770         selected index changes. This reduces drawing and gets rid of some
34771         flicker.
34772         - Only refresh if the tabs need to be shifted, otherwise only
34773         invalidate the slider button.
34774         - On windows the tabs are not filled to right if the slider is
34775         visible.
34776         
34777 2005-01-27  Jackson Harper  <jackson@ximian.com>
34778
34779         * TabControl.cs: Only refresh on mouseup if we are showing the
34780         slider. Also only invalidate the button whose state has changed.
34781
34782 2005-01-26  Peter Bartok  <pbartok@novell.com>
34783
34784         * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
34785         * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
34786           and SystrayRemove() methods
34787         * XplatUIOSX.cs: Stubbed Systray methods
34788         * XplatUIX11.cs:
34789           - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
34790             methods
34791           - Fixed broken XChangeProperty calls (marshalling messed up things)
34792         * X11Structs.cs: Added enums and structs required for Size hinting
34793         * NotifyIcon.cs: Added & implemented
34794
34795 2005-01-26  Jackson Harper  <jackson@ximian.com>
34796
34797         * TabControl.cs: Space vertically layed out tabs properly.
34798
34799 2005-01-26  Peter Bartok  <pbartok@novell.com>
34800
34801         * Form.cs (CreateClientParams): Always set the location to 0,0
34802           since we're a child window.
34803
34804         * Control.cs (SetVisibleCore): Always explicitly setting the location
34805           of a toplevel window, apparently X11 doesn't like to move windows
34806           while they're not mapped.
34807
34808 2005-01-26  Jackson Harper  <jackson@ximian.com>
34809
34810         * TabControl.cs: Implement FillToRight size mode with vertically
34811         rendered tabs.
34812
34813 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
34814
34815         * ControlPaint.cs, ThemeWin32Classic.cs
34816                 - Fixes DrawFocusRectangle
34817
34818 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
34819
34820         * MenuAPI.cs:
34821                 - MenuBar tracking only starts when item is first clicked
34822                 - Fixes menu hidding for multiple subitems
34823                 - Unselect item in MenuBar when item Executed
34824                 - Fixes bug 71495
34825
34826 2005-01-25  Jordi Mas i Hernandez <jordi@ximian.com>
34827
34828         * ListControl.cs:
34829                 - IsInputKey for ListBox
34830         * ListBox.cs:
34831                 - Focus item
34832                 - Shift and Control item selection
34833                 - Implement SelectionMode.MultiExtended
34834                 - Fixes RightToLeft
34835         * ComboBox.cs:
34836                 - IsInputKey implemented
34837                 - Do not generate OnTextChangedEdit on internal txt changes
34838                 
34839 2005-01-23  Peter Bartok  <pbartok@novell.com>
34840
34841         * AccessibleObject.cs: Partially implemented Select()
34842         * MonthCalendar.cs: Added missing attributes and events
34843         * Form.cs: Fixed CreateParams behaviour, now controls derived from
34844           form can properly override CreateParams.
34845         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
34846           XplatUIX11.cs: Dropped RefreshWindow method, not needed if
34847           Control performs Invalidate & Update
34848         * NativeWindow (CreateHandle): Added special handling for Form
34849           and Form.FormParent classes to allow overriding of From.CreateParams
34850         * Control.cs:
34851           - ControlNativeWindow: Renamed 'control' variable to more intuitive
34852             name 'owner'
34853           - ControlNativeWindow: Added Owner property
34854           - Removed usage of Refresh() on property changes, changed into
34855             Invalidate(), we need to wait until the queue is processed for
34856             updates, direct calls might cause problems if not all vars for
34857             Paint are initialized
34858           - Added call to UpdateStyles() when creating the window, to set any
34859             styles that CreateWindow might have ignored.
34860           - Added support for Form CreateParent overrides to UpdateStyles()
34861         * MessageBox.cs: Removed no longer needed FormParent override stuff,
34862           CreateParams are now properly overridable
34863         * CommonDialog.cs: Removed no longer needed FormParent override stuff,
34864           CreateParams are now properly overridable
34865
34866 2005-01-23  Miguel de Icaza  <miguel@ximian.com>
34867
34868         * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
34869         OnTextBoxChanged.
34870
34871         Capture LostFocus and OnTextBoxChanged.  The later introduces a
34872         recursive invocation that I have not figured out yet.
34873
34874         Reset the timer when not using (it was accumulating).
34875
34876
34877         (OnTextBoxChanged): Set UserEdit to true here to track whether the
34878         user has made changes that require validation.
34879
34880         Reset changing to avoid loops.
34881
34882 2005-01-22  Miguel de Icaza  <miguel@ximian.com>
34883
34884         * NumericUpDown.cs: Display value at startup.
34885
34886         * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
34887         ValidateEditText.
34888
34889         * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
34890         filled in.  Added some basic parsing of text.
34891
34892         Still missing the OnXXX method overrides, and figuring out the
34893         events that must be emitted.
34894
34895         * UpDownBase.cs: Handle UserEdit on the Text property.
34896         
34897 2005-01-22  Jordi Mas i Hernandez <jordi@ximian.com>
34898
34899         * ComboBox.cs:
34900           - Fixes IntegralHeight
34901           - ToString method
34902
34903 2005-01-21  Jackson Harper  <jackson@ximian.com>
34904
34905         * TabControl.cs: Set the SelectedIndex property when SelectedTab
34906         is set so that the page visibility is updated and the tabs are
34907         sized correctly.
34908
34909 2005-01-21  Jackson Harper  <jackson@ximian.com>
34910
34911         * TabControl.cs: Use cliping rectangle for blitting. Give the
34912         theme the clipping rect so we can do clipping while
34913         drawing. Remove some debug code.
34914
34915 2005-01-21  Jackson Harper  <jackson@ximian.com>
34916
34917         * TabPage.cs: Add a new method so tab pages can force the tab
34918         control to recalculate the tab page sizes.
34919         * TabControl.cs: UpdateOwner needs to make the tab control recalc
34920         sizes.
34921
34922 2005-01-20  Jackson Harper  <jackson@ximian.com>
34923
34924         * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
34925
34926 2005-01-20  Jackson Harper  <jackson@ximian.com>
34927
34928         * TreeView.cs: Set the bounds for nodes properly. They were
34929         getting screwed up when checkboxes were not enabled, but images
34930         were.
34931
34932 2005-01-20  Jordi Mas i Hernandez <jordi@ximian.com>
34933
34934         * ListBox.cs:
34935                 - Owner draw support
34936                 - Fixes
34937                 
34938 2005-01-20  Jackson Harper  <jackson@ximian.com>
34939
34940         * XplatUIStructs.cs: More misc keys
34941         * X11Keyboard.cs: Ignore some control keys.
34942
34943 2005-01-20  Jackson Harper  <jackson@ximian.com>
34944
34945         * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
34946         * X11Keyboard.cs: Set the AltGr mask when we get a key event.
34947
34948 2005-01-19  Peter Bartok  <pbartok@novell.com>
34949
34950         * Control.cs: Un-selecting the control when it is loosing focus
34951
34952 2005-01-19  Jackson Harper  <jackson@ximian.com>
34953
34954         * TreeView.cs: Hook up to the text controls leave event so we can
34955         end editing when the users clicks outside the text box.
34956         
34957 2005-01-19  Jackson Harper  <jackson@ximian.com>
34958
34959         * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
34960         get set in the conversion array.
34961
34962 2005-01-19  Peter Bartok  <pbartok@novell.com>
34963
34964         * Application.cs (ModalRun): Added a call to CreateControl to ensure
34965           focus is properly set
34966         * Button.cs:
34967           - Added missing attributes
34968           - removed styles, those are already set in the base class
34969         * ButtonBase.cs:
34970           - Added missing attributes
34971           - Added clip window styles
34972         * CheckBox.cs: Added missing attributes
34973         * CommonDialog.cs:
34974           - FormParentWindow.CreateParams: Added required clip styles
34975         * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
34976           also filters modifier keys
34977         * MessageBox.cs:
34978           - Added assignment of Accept and Cancel button to enable Enter
34979             and Esc keys in MessageBox dialogs
34980           - FormParentWindow.CreateParams: Added required clip styles
34981         * RadioButton.cs: Added missing attributes
34982         * TextControl.cs: No longer draws selection if control does not
34983           have focus
34984         * TextBoxBase.cs:
34985           - Now draws simple rectangle around test area to make it obvious
34986             there's a control. This is a hack until we properly support borders
34987           - A few simple fixes to support selections better, now erases selected
34988             text when typing, and resets selection when using movement keys
34989
34990 2005-01-19  Miguel de Icaza  <miguel@ximian.com>
34991
34992         * UpDownBase.cs: Added some new properties.
34993
34994         * DomainUpDown.cs: Implement a lot to get my test working.
34995
34996 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
34997
34998         * XplatUIOSX.cs: Fix a minor bug to bring the close box back
34999
35000 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
35001
35002         * OSXStructs (WindowAttributes): Fixed csc complaints
35003
35004 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
35005
35006         * XplayUIOSX.cs:
35007           OSXStructs.cs: Initial refactor to move enums and consts into
35008           OSXStructs and use them in the driver for greater readability.
35009
35010 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
35011
35012         * XplatUIOSX.cs: Initial support for Standard Cursors.
35013         * OSXStructs.cs: Move our structs here; added ThemeCursor enum
35014
35015 2005-01-19  Jordi Mas i Hernandez <jordi@ximian.com>
35016
35017         * ComboBox.cs: ability to change style when the ctrl is already
35018         created, missing methods and events, bug fixes, signature fixes
35019
35020 2005-01-19  Peter Bartok  <pbartok@novell.com>
35021
35022         * Cursors.cs (ctor): Added ctor to fix signature
35023
35024 2005-01-18  Peter Bartok  <pbartok@novell.com>
35025
35026         * Button.cs: Implemented DoubleClick event
35027         * ButtonBase.cs:
35028           - Fixed keyboard handling to behave like MS, where the press of
35029             Spacebar is equivalent to a mousedown, and the key release is
35030             equivalent to mouseup. Now a spacebar push will give the same
35031             visual feedback like a mouse click.
35032           - Added missing attributes
35033           - Added ImeModeChanged event
35034           - Added support for generating DoubleClick event for derived classes
35035         * CheckBox.cs:
35036           - Implemented DoubleClick event
35037           - Added missing attributes
35038         * CommonDialog.cs: Added missing attribute
35039         * ContextMenu.cs: Added missing attributes
35040         * RadioButton.cs:
35041           - AutoChecked buttons do not allow to be unselected when clicked
35042             (otherwise we might end up with no selected buttons in a group)
35043           - Added missing attributes
35044           - Implemented DoubleClickEvent
35045         * ThreadExceptionDialog.cs: Enabled TextBox code
35046
35047 2005-01-18  Peter Bartok  <pbartok@novell.com>
35048
35049         * Form.cs: Removed debug output
35050         * Button.cs: Added support for DoubleClick method
35051
35052 2005-01-18  Peter Bartok  <pbartok@novell.com>
35053
35054         * Form.cs:
35055           - Added method to parent window that allows triggering size
35056             calculations when a menu is added/removed
35057           - set_Menu: Cleaned up mess from early days of Form and Control,
35058             now properly triggers a recalc when a menu is added/removed
35059           - Added case to select form itself as focused form if no child
35060             controls exist
35061           - Added PerformLayout call when showing dialog, to ensure properly
35062             placed controls
35063         * Control.cs:
35064           - Select(): Made internal so Form can access it
35065           - Focus(): Only call Xplat layer if required (avoids loop), and sets
35066             status
35067         * Application.cs (Run): Removed hack and calls PerformLayout instead
35068           to trigger calculation when Form becomes visible
35069
35070 2005-01-18  Jordi Mas i Hernandez <jordi@ximian.com>
35071
35072         * ComboBox.cs: fixes for ownerdraw
35073
35074 2005-01-18  Peter Bartok  <pbartok@novell.com>
35075
35076         * TextControl.cs:
35077           - Sentinel is no longer static, each Document gets it's own, this
35078             avoids locking or alternatively overwrite problems when more
35079             than one text control is used simultaneously.
35080           - Switched to use Hilight and HilightText brushes for text selection
35081
35082         * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
35083
35084 2005-01-18  Peter Bartok  <pbartok@novell.com>
35085
35086         * Control.cs:
35087           - Hooked up the following events:
35088                 o ControlAdded
35089                 o ControlRemoved
35090                 o HandleDestroyed
35091                 o ImeModeChanged
35092                 o ParentChanged
35093                 o TabStopChanged
35094                 o Invalidated
35095                 o SystemColorsChanged
35096                 o ParentFontChanged
35097                 o Move
35098           - Removed debug output
35099           - Added a call to the current theme's ResetDefaults when a color change
35100             is detected
35101         * Form.cs: Now setting the proper ImeMode
35102         * Theme.cs: Defined a method to force recreation of cached resources
35103           and rereading of system defaults (ResetDefaults())
35104         * ThemeWin32Classic.cs: Added ResetDefaults() stub
35105
35106 2005-01-17  Peter Bartok  <pbartok@novell.com>
35107
35108         * Control.cs: Added missing attributes
35109
35110 2005-01-17  Jackson Harper  <jackson@ximian.com>
35111
35112         * TreeNode.cs: Implement editing. Add missing properties selected
35113         and visible.
35114         * TreeView.cs: Implement node editing. Also some fixes to use
35115         Invalidate (invalid area) instead of Refresh when selecting.
35116
35117 2005-01-17  Peter Bartok  <pbartok@novell.com>
35118
35119         * Control.cs:
35120           - Implemented InvokeGotFocus() method
35121           - Implemented InvokeLostFocus() method
35122           - Implemented InvokePaint() method
35123           - Implemented InvokePaintBackground() method
35124           - Implemented InvokeClick() method
35125           - Implemented FindForm() method
35126           - Implemented RectangleToClient() method
35127           - Implemented ClientToRectangle() method
35128           - Implemented ResetBackColor() method
35129           - Implemented ResetCursor() method
35130           - Implemented ResetFont() method
35131           - Implemented ResteForeColor() method
35132           - Implemented ResetImeMode() method
35133           - Implemented ResetLeftToRight() method
35134           - Implemented ResetText() method
35135           - Implemented Scale() methods
35136           - Implemented ScaleCore() method
35137           - Implemented Update() method
35138           - Removed unused variables
35139           - Stubbed AccessibilityNotifyClients and
35140             ControlAccessibleObject.NotifyClients() methods (dunno what to do
35141             with those yet)
35142           - Now setting proper default for RightToLeft property
35143           - Fixed bug in SetClientSizeCore that would cause windows to get
35144             really big
35145           - Now sending Click/DoubleClick events
35146           - Now selecting controls when left mouse button is clicked on
35147             selectable control
35148         * AccessibleEvents.cs: Added
35149         * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
35150         * XplatUIOSX.cs: Stubbed UpdateWindow() method
35151         * XplatUIWin32.cs: Implemented UpdateWindow() method
35152         * XplatUIX11.cs: Implemented UpdateWindow() method
35153         * Form.cs: Removed stray semicolon causing CS0162 warning
35154         * ThemeWin32Classic.cs: Fixed unused variable warnings
35155         * ScrollableControl.cs: Now calls base method for ScaleCore
35156         * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
35157           style to avoid interference with internal click handler (which is
35158           different than standard Control click handling)
35159         * RadioButton.cs:
35160           - Now unchecks all sibling radio buttons when control is
35161             selected (Fixes #68756)
35162           - Removed internal tabstop variable, using the one inherited from
35163             Control
35164
35165 2005-01-17  Jackson Harper  <jackson@ximian.com>
35166
35167         * NavigateEventArgs.cs: Fix base type.
35168         * LinkLabel.cs: Sig fix
35169         
35170 2005-01-17  Jackson Harper  <jackson@ximian.com>
35171
35172         * TreeView.cs: Only invalidate the effected nodes bounds when
35173         selecting nodes.
35174
35175 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
35176
35177         * XplatUIWin32.cs: fixes Win32 marshaling
35178         * XplatUIX11.cs: fixes method signature
35179
35180 2005-01-17  Peter Bartok  <pbartok@novell.com>
35181
35182         * XplatUIX11.cs: Clean up resources when we no longer need them
35183
35184 2005-01-17  Peter Bartok  <pbartok@novell.com>
35185
35186         * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
35187           OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
35188           and DestroyCursor() methods.
35189         * Cursor.cs: Partially implemented, now supports standard cursors;
35190           still contains some debug code
35191         * Cursors.cs: Implemented class
35192         * Control.cs:
35193           - WndProc(): Added handling of WM_SETCURSOR message, setting the
35194             appropriate cursor
35195           - Implemented Cursor property
35196           - Replaced break; with return; more straightforwar and possibly
35197             faster
35198           - Now properly setting the result for WM_HELP
35199         * X11Structs.cs: Added CursorFontShape enum
35200         * XplatUIStructs.cs:
35201           - Added StdCursor enum (to support DefineStdCursor() method)
35202           - Added HitTest enum (to support sending WM_SETCURSOR message)
35203         * XplatUIX11.cs:
35204           - Now sends the WM_SETCURSOR message
35205           - Implemented new cursor methods
35206         * XplatUIOSX.cs: Stubbed new cursor methods
35207         * XplatUIWin32.cs:
35208           - Implemented new cursor methods
35209           - Added GetSystemMetrics function and associated enumeration
35210
35211 2005-01-15  Peter Bartok  <pbartok@novell.com>
35212
35213         * Control.cs:
35214           - WndProc(): Now handles EnableNotifyMessage
35215           - SelectNextControl(): Fixed bug where if no child or sibling
35216             controls exist we looped endlessly
35217
35218 2005-01-14  Jackson Harper  <jackson@ximian.com>
35219
35220         * TreeView.cs: Recalculate the tab pages when a new one is added
35221         so that the proper bounding rects are created.
35222
35223 2005-01-14  Jackson Harper  <jackson@ximian.com>
35224
35225         * TreeView.cs: Draw a gray box instead of a grip in the lower
35226         right hand corner when there are both horizontal and vertical
35227         scroll bars.
35228
35229 2005-01-14  Jackson Harper  <jackson@ximian.com>
35230
35231         * Control.cs: When erasing backgrounds use FromHwnd instead of
35232         FromHdc when there is a NULL wparam. This occurs on the X driver.
35233         * XplatUIX11.cs: Set the wparam to NULL.
35234
35235 2005-01-13  Jackson Harper  <jackson@ximian.com>
35236
35237         * PictureBox.cs: Implement missing methods (except ToString, need
35238         to test that on windows) and events. When visibility is changed we
35239         need to redraw the image because the buffers are killed. When size
35240         is changed refresh if the sizemode needs it.
35241
35242 2005-01-13  Peter Bartok  <pbartok@novell.com>
35243
35244         * Control.cs (SelectNextControl): Was using wrong method to select
35245           a control
35246
35247 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
35248
35249         * ComboBox.cs: fixes dropstyle
35250
35251 2005-01-13  Peter Bartok  <pbartok@novell.com>
35252
35253         * Form.cs:
35254           - Implemented Select() override
35255           - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
35256           - Now sets keyboard focus on startup
35257         * Control.cs (SelectNextControl): Now properly handles directed=true
35258         * TextBoxBase.cs:
35259           - WndProc: Now passes tab key on to base if AcceptTabChar=false
35260           - Added (really bad) focus rectangle (mostly for testing)
35261         * TextBox.cs: Added code to handle getting/loosing focus and invalidating
35262           to enforce redraw on focus changes
35263         * ContainerControl.cs:
35264           - Fixed detection of Shift-Tab key presses
35265           - Fixed traversal with arrow keys
35266         * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
35267           gonna keep this or if it's complete yet
35268         
35269 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
35270
35271         * ComboBox.cs: missing properties, fixes
35272
35273 2005-01-13  Peter Bartok  <pbartok@novell.com>
35274
35275         * Panel.cs (ctor): Setting Selectable window style to off
35276         * Splitter.cs (ctor): Setting Selectable window style to off
35277         * GroupBox.cs (ctor): Setting Selectable window style to off
35278         * Label.cs (ctor): Setting Selectable window style to off
35279
35280 2005-01-12  Miguel de Icaza  <miguel@ximian.com>
35281
35282         * UpDownBase.cs (InitTimer): If the timer has been already
35283         created, enable it.
35284
35285         Use a TextBox instead of a Label.
35286
35287 2005-01-12  Jackson Harper  <jackson@ximian.com>
35288
35289         * TreeView.cs: Refresh the tree after sorting the nodes. Always
35290         draw the connecting node lines (when ShowLines is true).
35291         * TreeNode.cs: The nodes index can now be updated. This is used
35292         when a node collection is sorted.
35293         * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
35294         insert or an existing unsorted node collection can be sorted.
35295         
35296 2005-01-12  Peter Bartok  <pbartok@novell.com>
35297
35298         * ContainerControl.cs: Implemented ProcessDialogKeys()
35299
35300 2005-01-12  Peter Bartok  <pbartok@novell.com>
35301
35302         * Control.cs:
35303           - Implemented SelectNextControl() method
35304           - Several focus related bug fixes
35305           - Fixed Docking calculations to match MS documentation and
35306             behaviour
35307
35308 2005-01-12  Jordi Mas i Hernandez <jordi@ximian.com>
35309
35310         * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
35311         bug fixes
35312
35313 2005-01-12  Peter Bartok  <pbartok@novell.com>
35314
35315         * Control.cs:
35316           - Fixed broken Contains() method
35317           - Implemented GetNextControl() method. Finally. This is the pre-
35318             requisite for focus handling.
35319
35320 2005-01-12  Peter Bartok  <pbartok@novell.com>
35321
35322         * OSXStrucs.cs: Added
35323
35324 2005-01-12  Peter Bartok  <pbartok@novell.com>
35325
35326         * XplatUIWin32.cs:
35327           - Removed PeekMessageFlags
35328           - Implemented SetWindowStyle() method
35329         * XplatUIStructs.cs: Added PeekMessageFlags
35330         * X11Structs: Added missing border_width field to XWindowChanges struct
35331         * XplatUIX11.cs:
35332           - PeekMessage: Now throws exception if flags which are not yet
35333             supported are passed
35334           - Implemented SetWindowStyle() method
35335           - Fixed SetZOrder to handle AfterHwnd properly
35336         * XplatUI.cs: Added SetWindowStyle() method
35337         * XplatUIDriver.cs: Added SetWindowStyle() abstract
35338         * Control.cs:
35339           - Implemented UpdateStyles() method
35340           - Implemented UpdateZOrder() method
35341         * XplatUIOSX.cs: Added SetWindowStyle() stub
35342
35343 2005-01-12  Geoff Norton  <gnorton@customerdna.com>
35344
35345         * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
35346         button mouse).
35347
35348
35349 2005-01-11  Jackson Harper  <jackson@ximian.com>
35350
35351         * TreeView.cs: Still need to draw lines to siblings even if out of
35352         the current node is out of the clip.
35353
35354 2005-01-11  Jackson Harper  <jackson@ximian.com>
35355
35356         * TreeView.cs: When setting the hbar/vbar/grip position use
35357         SetBounds so that perform layout is only called once. Also suspend
35358         and resume layout so layout is only done once for all controls.
35359         - Removed some debug fluff
35360         * SizeGrip.cs: Call base implmentation in overriding methods.
35361         - When visibility is changed the drawing buffers are killed so we
35362         need to redraw.
35363
35364 2005-01-11  Jackson Harper  <jackson@ximian.com>
35365
35366         * TreeView.cs: Calculate the open node count while drawing. This
35367         saves us an entire tree traversal for every paint operation. Use
35368         a member var for the open node count so less vars are passed around.
35369
35370 2005-01-11  John BouAntoun  <jba-mono@optusnet.com.au>
35371
35372         * MonthCalendar.cs:
35373         - fixed selection to use mousemove, not mouse polling on timer
35374         * ThemeWin32Classic.cs
35375         - removed redundant unused variable "no_more_content"
35376         
35377 2005-01-11  Peter Bartok  <pbartok@novell.com>
35378
35379         * XplatUIX11.cs (DoEvents): Needs to return when no more events
35380           are pending, so it now calls PeekMessage instead of GetMessage;
35381           implemented a incomplete version of PeekMessage
35382         
35383 2005-01-11  Peter Bartok  <pbartok@novell.com>
35384
35385         * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
35386           I18n issues
35387         * TextBoxBase.cs: Added sending of TextChanged event
35388
35389 2005-01-10  Jackson Harper  <jackson@ximian.com>
35390
35391         * TreeView.cs: Try not to draw outside the clipping rectangle on
35392         each node element.
35393
35394 2005-01-10  Jordi Mas i Hernandez <jordi@ximian.com>
35395
35396         * ComboBox.cs: keyboard navigation, item navigation, bug fixes
35397
35398 2005-01-10  Jackson Harper  <jackson@ximian.com>
35399
35400         * TreeView.cs:
35401         - Implement fast scrolling. Now only the newly
35402         exposed nodes are drawn and the old image is moved using the
35403         XplatUI::ScrollWindow method.
35404         - Factor in height of nodes when calculating whether or not the
35405         node is in the clipping rect.
35406
35407 2005-01-10  Jackson Harper  <jackson@ximian.com>
35408
35409         * TreeNodeCollection.cs: Refresh the tree when a new node is added.
35410
35411 2005-01-10  Peter Bartok  <pbartok@novell.com>
35412
35413         * Application.cs: Added temporary hack to resolve all our resize
35414           required issues on startup. This will get fixed properly at
35415           some point in the future
35416
35417 2005-01-10  Jackson Harper  <jackson@ximian.com>
35418
35419         * SizeGrip.cs: New internal class that is used as a sizing
35420         grip control...hence the name.
35421
35422 2005-01-10  Peter Bartok  <pbartok@novell.com>
35423
35424         * Control.cs: Implemented proper TabIndex handling, now assigning
35425           a tabindex when a control is added to a container
35426         * GroupBox.cs (ctor): Now sets the Container style bit, required
35427           for Control.GetNextControl()
35428
35429 2005-01-09  Jackson Harper  <jackson@ximian.com>
35430
35431         * TextBoxBase.cs: Clear window when scrolling (fixes build).
35432
35433 2005-01-09  Peter Bartok <pbartok@novell.com>
35434
35435         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
35436           XplatUIX11.cs: Added ability to control ScrollWindow expose and
35437           an overload for ScrollWindow to allow only scrolling a rectangle
35438
35439 2005-01-09  Peter Bartok <pbartok@novell.com>
35440
35441         * Form.cs:
35442           - Implemented SetDesktopBounds method
35443           - Implemented SetDesktopLocation method
35444
35445 2005-01-08  Jackson Harper  <jackson@ximian.com>
35446
35447         * TreeView.cs: Only set the vbar's Maximum and LargeChange when
35448         the node count has changed, this removes to VScroll::Refresh calls
35449         when drawing.
35450
35451 2005-01-08  Geoff Norton  <gnorton@customerdna.com>
35452
35453         * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
35454
35455 2005-01-07  Jackson Harper  <jackson@ximian.com>
35456
35457         * TreeNode.cs: Just update the single node when it is
35458         checked. Don't refresh after toggling, the Expand/Collapse already
35459         handles this.
35460         * TreeView.cs: Respect clipping a little more when drawing. Try
35461         not to redraw things that don't need to be redrawn. Just hide the
35462         scrollbars when they are no longer needed instead of removing
35463         them, so they don't have to be created again and again.
35464         
35465 2005-01-07  Geoff Norton  <gnorton@customerdna.com>
35466
35467         * XplatUIOSX.cs (SetCaretPos):  We need to translate the view
35468         coordinates to window space to place the caret properly, FIXED.
35469         Implement GetWindowState & SetWindowState
35470
35471 2005-01-06  Peter Bartok <pbartok@novell.com>
35472
35473         * Form.cs:
35474           - Implemented ClientSize property
35475           - Implemented DesktopBounds property
35476           - Implemented DesktopLocation property
35477           - Implemented IsRestrictedWindow property
35478           - Implemented Size property
35479           - Implemented TopLevel property
35480           - Implemented FormWindowState property
35481         * Control.cs:
35482           - Implemented GetTopLevel() method
35483           - Implemented SetTopLevel() method
35484         * X11Structs.cs (Atom):
35485           - Added AnyPropertyType definition
35486           - Added MapState definiton and updated XWindowAttribute struct
35487         * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
35488         * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
35489         * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
35490         * XplatUIWin32.cs:
35491           - Implemented GetWindowState() and SetWindowState() methods
35492           - Fixed Win32GetWindowLong return type
35493         * XplatUIX11.cs:
35494           - Introduced central function for sending NET_WM messages
35495           - Implemented GetWindowState() and SetWindowState() methods
35496         * TextBoxBase.cs (set_Lines):
35497           - Now uses Foreground color for text added via Text property (Duh!)
35498           - Added code to remember programmatically requested size (fixes
35499             behaviour when Multiline is set after Size)
35500           - Added AutoSize logic
35501
35502 2005-01-06  Jackson Harper  <jackson@ximian.com>
35503
35504         * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
35505
35506 2005-01-06  Jackson Harper  <jackson@ximian.com>
35507
35508         * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
35509         set to less then 0.
35510
35511 2005-01-06  Jackson Harper  <jackson@ximian.com>
35512
35513         * ScrollableControl.cs: Lazy init the scrollbars.
35514         
35515 2005-01-06  Jackson Harper  <jackson@ximian.com>
35516
35517         * Theme.cs: Speed up getting pens and solid brushes, by using
35518         their ARGB as a hash instead of tostring and not calling Contains.
35519
35520 2005-01-06  Peter Bartok <pbartok@novell.com>
35521
35522         * Form.cs:
35523           - Implemented OnActivated and OnDeactivate event trigger
35524           - Implemented Activate() method
35525           - Fixed ShowDialog() to activate the form that was active before
35526             the dialog was shown
35527         * XplatUIX11.cs:
35528           - Added global active_window var that tracks the currently active
35529             X11 window
35530           - Now always grabs Property changes from the root window to always
35531             catch changes on the active window property
35532           - Added code to PropertyNotify handler to send Active/Inactive
35533             messages when state changes. This puts X11 and Win32 en par on
35534             WM_ACTIVATE notifications (except for double notifications when
35535             the user clicks away from our modal window to another one of our
35536             windows)
35537
35538 2005-01-05  Jackson Harper  <jackson@ximian.com>
35539
35540         * ImageList.cs: Implment ctor
35541
35542 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
35543
35544         * XplatUIOSX.cs: Implement Activate/SetTopmost
35545
35546 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
35547
35548         * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
35549
35550 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
35551
35552         * XplatUIOSX.cs: Implement GetActive/SetFocus.
35553
35554 2005-01-05  Peter Bartok <pbartok@novell.com>
35555
35556         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
35557           XplatUIOSX.cs: Added GetActive method to return the currently
35558           active window for the application (or null, if none is active)
35559         * Form.cs:
35560           - Implemented ActiveForm
35561           - Commented out owner assignment for modal dialogs (causes problems
35562             on Win32, since the owner will be disabled)
35563           - Reworked some Active/Focus handling (still incomplete)
35564         * CommonDialog.cs: Commented out owner assignment for modal dialogs
35565           (causes problems on Win32, since the owner will be disabled)
35566         * IWin32Window: Added ComVisible attribute
35567
35568 2005-01-05  Peter Bartok <pbartok@novell.com>
35569
35570         * ToolTip.cs (WndProc): Enable setting focus now that we have the
35571           required XplatUI functions.
35572
35573 2005-01-05  Peter Bartok <pbartok@novell.com>
35574
35575         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
35576           XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
35577           to implement focus and activation handling; still incomplete and
35578           with debug output
35579
35580 2005-01-04  Peter Bartok <pbartok@novell.com>
35581
35582         * TextBoxBase.cs: Changed access level for Document property to
35583           match switch to internal for TextControl
35584
35585 2005-01-04  Peter Bartok <pbartok@novell.com>
35586
35587         * AccessibleObject: Added ComVisible attribute
35588
35589 2005-01-04  Jackson Harper  <jackson@ximian.com>
35590
35591         * X11Keyboard.cs: Remove unneeded var.
35592
35593 2005-01-04  Jackson Harper  <jackson@ximian.com>
35594
35595         * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
35596         but PAINT.
35597         * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
35598         ClientMessage. This makes apps exit cleanly (more often).
35599         
35600 2005-01-04  Jackson Harper  <jackson@ximian.com>
35601
35602         * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
35603         handling focus, return correct colors and fonts,
35604         * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
35605         handle selection, horizontal scrolling, and mouse interaction.
35606
35607 2005-01-04  Peter Bartok <pbartok@novell.com>
35608
35609         * ICommandExecutor.cs: Added
35610         * IDataGridColumnStyleEditingNotificationService.cs: Added
35611         * IFeatureSupport.cs: Added
35612         * IFileReaderService.cs: Added
35613         * IDataObject.cs: Added ComVisible attribute
35614         * AmbientProperties.cs: Added
35615         * BaseCollection.cs: Added missing attributes
35616         * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
35617         * BaseCollection.cs: Added missing attributes
35618         * Binding.cs: Added TypeConverter attribute
35619         * BindingContext.cs: Added DefaultEvent attribute
35620         * BindingsCollection.cs: Added DefaultEvent attribute
35621         * Button.cs: Added DefaultValue attribute
35622         * DragEventArgs.cs: Added ComVisible attribute
35623         * GiveFeedbackEventArgs.cs: Added ComVisible attribute
35624         * KeyEventArgs.cs: Added ComVisible attribute
35625         * KeyPressEventArgs.cs: Added ComVisible attribute
35626         * MouseEventArgs.cs: Added ComVisible attribute
35627         * NavigateEventArgs.cs: Added
35628         * NavigateEventHandler.cs: Added
35629         * FeatureSupport.cs: Added
35630         * OSFeature.cs: Added
35631         * Theme.cs: Added abstract Version property to support OSFeature
35632         * ThemeWin32Classic.cs: Added Version property to
35633           support OSFeature.Themes
35634         * ProgressBar.cs: Removed OnPaintBackground override, not required since
35635           the proper styles to avoid background drawing are set, also doesn't
35636           match MS signature
35637         * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
35638         * QueryContinueDragEventArgs.cs: Added ComVisible attribute
35639         * ScrollEventArgs.cs: Added ComVisible attribute
35640         * SplitterEventArgs.cs: Added ComVisible attribute
35641         * AccessibleSelection.cs: Added Flags attribute
35642         * Appearance.cs: Added ComVisible attribute
35643         * Border3DSide.cs: Added ComVisible attribute
35644         * Border3DStyle.cs: Added ComVisible attribute
35645         * BorderStyle.cs: Added ComVisible attribute
35646         * DragAction.cs: Added ComVisible attribute
35647         * ErrorBlinkStyle.cs: Added
35648         * ScrollEventType.cs: Added ComVisible attribute
35649         * AnchorStyles.cs: Added Editor attribute
35650         * DockStyle.cs: Added Editor attribute
35651         * HorizontalAlignment.cs: Added ComVisible attribute
35652         * HelpEventArgs.cs: Added ComVisible attribute
35653         * PaintEventArgs.cs: Added IDisposable
35654
35655 2005-01-04  Peter Bartok <pbartok@novell.com>
35656
35657         * TextControl.cs: Switched Line, LineTag and Document classes to
35658           internal
35659
35660 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
35661
35662         * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
35663         Simple mode, fixes, IntegralHeight, etc.
35664
35665 2005-01-04  Peter Bartok <pbartok@novell.com>
35666
35667         * TextBoxBase.cs: Using proper font variable now
35668
35669 2005-01-04  Peter Bartok <pbartok@novell.com>
35670
35671         * Form.cs (ShowDialog): Set parent to owner, if provided
35672         * GroupBox.cs: Removed unused vars
35673         * TextControl.cs:
35674           - Added GetHashCode() for Document and LineTag classes
35675           - Removed unused variables
35676           - Added CharIndexToLineTag() and LineTagToCharIndex() methods
35677             to allow translation between continuous char position and line/pos
35678         * CheckBox.cs: Removed vars that are provided by base class
35679         * RadioButton.cs: Removed vars that are provided by base class, added
35680           new keyword where required
35681         * LinkLabel.cs: Added new keyword where required
35682         * Control.cs (WndProc): Removed unused variable
35683         * TextBoxBase.cs:
35684           - Finished SelectionLength property
35685           - Implemented SelectionStart property
35686           - Implemented Text property
35687           - Removed unused vars
35688         * MessageBox.cs: Added new keyword where required
35689         * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
35690           WndProc signature
35691         * MenuAPI.cs: Added new keyword where required
35692         * ButtonBase.cs: Removed vars that are provided by base class, added
35693           new keyword where required
35694         * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
35695           argument to double, to allow compiling with csc 2.0 (Atsushi ran
35696           into this)
35697         * Application.cs (Run): Now triggers the ThreadExit event
35698         * CommonDialog.cs: Added new keyword where required; now properly sets
35699           parent (owner) for dialog
35700         * XplatUIX11.cs: Commented out unused vars
35701         * StatusBar.cs: Fixed signature for Text property
35702         * TabPage.cs: Undid Jordi's removal of unused var, now using the var
35703
35704 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
35705
35706         * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
35707         TrackBar.cs, MonthCalendar.cs: remove unused vars
35708
35709 2005-01-03  Jackson Harper  <jackson@ximian.com>
35710
35711         * ThemeWin32Classic.cs:
35712         * X11Keyboard.cs: Remove unused vars.
35713
35714 2005-01-03  Peter Bartok  <pbartok@novell.com>
35715
35716         * TextBox.cs:
35717           - set_Text: Tied into TextControl
35718           - set_TextAlignment: Tied into TextControl
35719         * TextControl.cs:
35720           - Added alignment properties and implemented alignment handling
35721             and drawing (still has a bug, not generating proper expose events)
35722           - Added new Line() constructor to allow passing the line alignment
35723           - Fixed selection setting, properly handling end<start now
35724           - Added aligment considerations to RecalculateDocument()
35725         * TextBoxBase.cs:
35726           - Now properly enforces control height for single line controls
35727           - Added support for CharacterCasing
35728           - Added IsInputKey override
35729           - Fixed Keys.Enter logic
35730           - Added SetBoundsCore override
35731           - Fixed mouse selection handling
35732
35733 2005-01-03  Jackson Harper  <jackson@ximian.com>
35734
35735         * TreeView.cs:
35736           - Collapse and uncheck all nodes when CheckBoxes is disabled.
35737           - Checkboxes are always aligned to the bottom of the node,
35738           regardless of item height.
35739           - Use the node bounds to draw the text so we can center it when
35740           the item height is greater then the font height.
35741           - Node::Bounds are only the text part of the node.
35742         * TreeNode.cs: New method to combine collapsing and unchecking all
35743           nodes recursively.
35744
35745 2005-01-02  Jackson Harper  <jackson@ximian.com>
35746
35747         * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
35748         * TreeNode.cs: Add a bounding box for the checkbox, refresh the
35749         tree when a check is changed. TODO: Only refresh the checked node.
35750
35751 2004-12-30  Jackson Harper  <jackson@ximian.com>
35752
35753         * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
35754         * TreeNode.cs: When collapsing make sure to never collapse the
35755         root node.
35756
35757 2004-12-29  Jackson Harper  <jackson@ximian.com>
35758
35759         * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
35760         
35761 2004-12-28  Zoltan Varga  <vargaz@freemail.hu>
35762
35763         * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
35764
35765 2004-12-28  Peter Bartok  <pbartok@novell.com>
35766
35767         * MessageBox.cs (get_CreateParams): Don't use owner var if it's
35768           not yet assigned
35769
35770 2004-12-28  Peter Bartok  <pbartok@novell.com>
35771
35772         * Control.cs (WndProc): Added WM_HELP handler, now generates
35773           HelpRequested event
35774         * Form.cs: Added HelpButton property and required support code
35775         * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
35776
35777 2004-12-28  Peter Bartok  <pbartok@novell.com>
35778
35779         * CommonDialog.cs:
35780           - Made DialogForm.owner variable internal
35781           - Added check to ensure owner form is set before setting
35782             owner properties in CreateParams
35783
35784 2004-12-28  Geoff Norton  <gnorton@customerdna.com>
35785
35786         * XplatUIOSX.cs: Implement mouse hovering.  Fix QDPoint struct to avoid
35787           swizzling.  Implement ClientToScreen and ScreenToClient.  Implement
35788           GetCursorPos.  Fix major visibility issues.  Rework the windowing
35789           system to support borderless/titleless windows (implements menus).
35790           Fix GetWindowPos.  Implement initial background color support for
35791           views.
35792
35793 2004-12-28  Peter Bartok  <pbartok@novell.com>
35794
35795         * Form.cs (get_CreateParams): Make sure we have an owner before using
35796           the owner variable. Implement proper default if no owner exists
35797
35798 2004-12-28  Peter Bartok  <pbartok@novell.com>
35799
35800         * In preparation for making Managed.Windows.Forms the default build target
35801           for System.Windows.Forms, the following stubbed files were added.
35802           Dialogs are currently being implemented by contributors and are only
35803           short-term place holders.
35804         * ColorDialog.cs: Initial check-in (minmal stub)
35805         * DataGrid.cs: Initial check-in (minimal stub)
35806         * DataGridLineStyle.cs: Initial check-in (minimal stub)
35807         * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
35808         * DataGridTableStyle.cs: Initial check-in (minimal stub)
35809         * FontDialog.cs: Initial check-in (minimal stub)
35810         * FileDialog.cs: Initial check-in (minimal stub)
35811         * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
35812         * GridTableStylesCollection.cs: Initial check-in (minimal stub)
35813         * OpenFileDialog: Initial check-in (minimal stub)
35814         * IComponentEditorPageSite.cs: Initial check-in
35815         * Splitter.cs: Initial check-in (for Jackson)
35816         * SplitterEventArgs.cs: Initial check-in (for Jackson)
35817         * SplitterEventHandler.cs: Initial check-in (for Jackson)
35818         * TextBox.cs: Initial check-in; still needs some wiring to
35819           TextControl backend
35820         * Form.cs: Implemented ControlBox property
35821         * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
35822         * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
35823         * TextControl.cs: Added selection functionality; added todo header
35824         * TextBoxBase.cs:
35825           - Implemented Lines property
35826           - Implemented TextHeight property
35827           - Implemented SelectedText property
35828           - Implemented SelectionLength property
35829           - Implemented SelectAll method
35830           - Implemented ToString method
35831           - Removed and cleaned up some debug code
35832           - Implemented (still buggy) mouse text selection
35833
35834 2004-12-27  Jordi Mas i Hernandez <jordi@ximian.com>
35835
35836         * ComboBox.cs: Complete DropDownList implementation, fixes.
35837
35838 2004-12-26  Jordi Mas i Hernandez <jordi@ximian.com>
35839
35840         * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
35841         * ComboBoxStyle.cs: ComboBoxStyle enum
35842         * ComboBox.cs: Initial work on ComboBox control
35843
35844 2004-12-21  Peter Bartok  <pbartok@novell.com>
35845
35846         * Control.cs (ctor, CreateParams): Moved setting of is_visible
35847           forward so that anything that creates a window gets the default,
35848           also no longer uses Visible property in CreateParams to avoid
35849           walking up the parent chain and possibly get the wrong visible
35850           status. Fixed IsVisible to no longer walk up to the parent.
35851
35852 2004-12-21  Peter Bartok  <pbartok@novell.com>
35853
35854         * Form.cs (ShowDialog): Unset modality for the proper window
35855  
35856 2004-12-20  Peter Bartok  <pbartok@novell.com>
35857
35858         * CommonDialog.cs: Initial check-in
35859
35860 2004-12-20  Peter Bartok  <pbartok@novell.com>
35861
35862         * Control.cs (Visible): Now uses the parent window instead of the
35863           client area window for the property
35864
35865         * Form.cs
35866           - ShowDialog(): Now uses the proper window for modality
35867           - The default visibility state for the form parent is now false. This
35868             will prevent the user from seeing all the changes to the form and
35869             its controls before the application hits Application.Run()
35870           - Removed some stale commented out code
35871
35872         * NativeWindow.cs:
35873           - Added FindWindow() method to have a method to check for existence
35874             of a window handle
35875           - Added ability to override default exception handling (for example
35876             when debugging with VS.Net; to do this the ExternalExceptionHandler
35877             define must be set
35878           - Removed some useless debug output
35879
35880         * XplatUIX11.cs:
35881           - Removed r37929 (SetModal patch from Ashwin Bharambe), was
35882             not working as expected
35883           - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
35884             property to allow switching back to the modal window if focus is
35885             given to another one of our windows (Application Modal)
35886           - Now only sets override_redirect if we create a window
35887             without WS_CAPTION
35888           - Moved EventMask selection before mapping of newly created window
35889             so we can catch the map event as well
35890           - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
35891           - Added various Atom related DllImports
35892           - Implemented Exit() method
35893           - .ctor() : No longer shows window if WS_VISIBLE is not defined
35894             in the CreateParams
35895
35896         * MessageBox.cs: Now properly deals with the FormParent window by
35897           providing an override the FormParent CreateParams property to
35898           set as POPUP instead of OVERLAPPED window.
35899
35900 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
35901
35902         * XplatUIOSX.cs: Implement DestroyWindow.  Implement ScrollWindow
35903         Minor code cleanup.
35904
35905 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
35906         
35907         * XplatUIOSX.cs (SetModal): Implement this method on OSX.
35908
35909 2004-12-18  Peter Bartok  <pbartok@novell.com>
35910
35911         * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
35912           implementing SetModal() method
35913
35914 2004-12-18  Peter Bartok  <pbartok@novell.com>
35915
35916         * X11Structs.cs (XGCValues): Fixed type of function element
35917         * XplatUI.cs: Added ScrollWindow() method
35918         * XplatUIDriver.cs: Added ScrollWindow() abstract
35919         * XplatUIWin32.cs: Implemented ScrollWindow() method
35920         * XplatUIX11.cs: Implemented ScrollWindow() method
35921         * XplatUIOSX.cs: Stubbed out ScrollWindow() method
35922
35923 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
35924
35925         * XplatUIOSX.cs:  Fix cursor to use an Invert instead of drawing it
35926         Some more keyboard support (INCOMPLETE)
35927
35928 2004-12-17  Peter Bartok  <pbartok@novell.com>
35929
35930         * TextControl.cs:
35931         - Added color attribute to line tags.
35932         - Added color argument to all functions dealing with tags
35933         - Added color argument support to various functions
35934         - Fixed miss-calculation of baseline/shift in certain circumstances
35935
35936         * TextBoxBase.cs: Added new color option to test code
35937
35938 2004-12-17  Jackson Harper  <jackson@ximian.com>
35939
35940         * TreeNode.cs:
35941         * MonthCalendar.cs: Signature fixes
35942
35943 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
35944
35945         * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
35946         keyboard event moved it.  Create a new graphics context for each paint resolves this
35947
35948 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
35949
35950         * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
35951         Make caret exist and go blink blink.  Initial keyboard support.
35952         Fix exception handler, Add Invalidate support.  Change way RefreshWindow
35953         works.
35954
35955 2004-12-17  Jackson Harper  <jackson@ximian.com>
35956
35957         * XplatUIStructs.cs: Updated set of virtual keycodes.
35958         * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
35959
35960 2004-12-17  Jackson Harper  <jackson@ximian.com>
35961
35962         * XplatUIX11.cs: Prune old keyboard code.
35963
35964 2004-12-17  Jackson Harper  <jackson@ximian.com>
35965
35966         * XplatUIX11.cs: When generating mouse wparams get the modifier
35967         keys from the ModifierKeys property.
35968
35969 2004-12-17  Jackson Harper  <jackson@ximian.com>
35970
35971         * X11Keyboard.cs: Send up/down input when generating
35972         messages. Remove some unused vars.
35973
35974 2004-12-17  Jackson Harper  <jackson@ximian.com>
35975
35976         * TabControl.cs:
35977         * TreeView.cs: get rid of warnings.
35978
35979 2004-12-17  Jackson Harper  <jackson@ximian.com>
35980
35981         * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
35982
35983 2004-12-17  Jordi Mas i Hernandez <jordi@ximian.com>
35984
35985         * ListBox.cs: bug fixes, changes for CheckedListBox.cs
35986           CheckedListBox.cs: Implementation
35987
35988 2004-12-17  Peter Bartok  <pbartok@novell.com>
35989
35990         * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
35991
35992 2004-12-16  Peter Bartok  <pbartok@novell.com>
35993
35994         * TextControl.cs:
35995           - InsertCharAtCaret(): Fixed start pos fixup
35996           - CaretLine_get: No longer derives the line from the tag, the tag
35997             could be stale if lines in the document have been added or deleted
35998           - RebalanceAfterDelete(): Fixed bug in balancing code
35999           - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
36000           - Line.Streamline(): Now can also elminate leading empty tags
36001           - DumpTree(): Added a few more tests and prevented exception on
36002             uninitialized data
36003           - Added Debug section for Combining lines
36004           - Delete(): Now copies all remaining properties of a line
36005           
36006         * TextBoxBase.cs:
36007           - Left mousebutton now sets the caret (and middle button still acts
36008             as formatting tester, which must go away soon)
36009           - Added Debug section for Deleting/Combining lines
36010           - Fixed calculations for UpdateView after Combining lines
36011
36012 2004-12-16  Peter Bartok  <pbartok@novell.com>
36013
36014         * TextControl.cs: Now properly aligns text on a baseline, using the
36015           new XplatUI.GetFontMetrics() method. Simplified several calculations
36016         * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
36017           defined
36018
36019 2004-12-16  Peter Bartok  <pbartok@novell.com>
36020
36021         * XplatUI.cs: Added GetFontMetrics() method
36022         * XplatUIDriver.cs: Added GetFontMetrics() abstract
36023         * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
36024           into libgdiplus, our private GetFontMetrics function
36025         * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
36026         * XplatUIWin32.cs: Implemented GetFontMetrics() method
36027
36028 2004-12-16  Jackson Harper  <jackson@ximain.com>
36029
36030         * XplatUIStruct.cs: Add enum for dead keys
36031         * X11Keyboard.cs: Map and unmap dead keys.
36032
36033 2004-12-16  Jackson Harper  <jackson@ximian.com>
36034
36035         * X11Keyboard.cs: Detect and use the num lock mask.
36036
36037 2004-12-16  Peter Bartok  <pbartok@novell.com>
36038
36039         * Control.cs (CreateGraphics): Added check to make sure the
36040           handle of the window exists before calling Graphics.FromHwnd()
36041
36042 2004-12-16  Peter Bartok  <pbartok@novell.com>
36043
36044         * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
36045           contains a lot of code that's not supposed to be there for the
36046           real thing, but required for developing/testing the textbox
36047           backend.
36048
36049 2004-12-16  Peter Bartok  <pbartok@novell.com>
36050
36051         * TextControl.cs:
36052         - Fixed Streamline method
36053         - Added FindTag method to Line
36054         - Added DumpTree method for debugging
36055         - Added DecrementLines() method for deleting lines
36056         - Fixed UpdateView to update the cursor to end-of-line on single-line
36057           updates
36058         - Added PositionCaret() method
36059         - Fixed MoveCaret(LineDown) to move into the last line, too
36060         - Added InsertChar overload
36061         - Fixed InsertChar tag offset calculations
36062         - Added DeleteChar() method
36063         - Added Combine() method for folding lines
36064         - Fixed Delete() method, no longer allocates wasted Line object and
36065           now copies all properties when swapping nodes
36066         - Delete() method now updates document line counter
36067
36068 2004-12-15  Jackson Harper  <jackson@ximian.com>
36069
36070         * XplatUIX11.cs: Get the modifier keys from the keyboard driver
36071         * X11Keyboard.cs: Expose the currently selected modifier keys
36072         through a property.
36073
36074 2004-12-15  Peter Bartok  <pbartok@novell.com>
36075
36076         * TextControl.cs: Initial check-in. Still incomplete
36077
36078 2004-12-15  Jackson Harper  <jackson@ximian.com>
36079
36080         * TreeNode.cs:
36081         * TreeView.cs: Fix build on csc (second time today ;-))
36082
36083 2004-12-15  Jackson Harper  <jackson@ximian.com>
36084
36085         * TreeView.cs: Store the treenodes plus/minus box bounds when it
36086         is calculated and use this for click testing.
36087         * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
36088
36089 2004-12-15  Jackson Harper  <jackson@ximian.com>
36090
36091         * TreeView.cs: Pass the nodes image index to the image list when
36092         drawing that image.
36093
36094 2004-12-15  Jackson Harper  <jackson@ximian.com>
36095
36096         * X11Keyboard.cs: Set messages hwnd.
36097         * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
36098         post_message calls.
36099
36100 2004-12-15  Jackson Harper  <jackson@ximian.com>
36101
36102         * X11Keyboard.cs: Fix to compile with csc.
36103         
36104 2004-12-15  Jackson Harper  <jackson@ximian.com>
36105
36106         * X11Structs.cs: Add key mask values
36107         * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
36108         * X11Keyboard.cs: New file - Extrapolates and interpolates key
36109         down/up foo into WM_CHAR foo
36110         * KeyboardLayouts.cs: Common keyboard layouts
36111         * XplatUIX11.cs: Add the keyboard driver. Add functionality to
36112         post messages into the main queue.
36113
36114 2004-12-13  Jordi Mas i Hernandez <jordi@ximian.com>
36115
36116         * Button.cs: implement ProcessMnemonic
36117         * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
36118           brushes everytime
36119         * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
36120         * ButtonBase.cs: Show HotkeyPrefix (not the &)
36121
36122 2004-12-12  John BouAntoun  <jba-mon@optusnet.com.au>
36123         
36124         * MonthCalendar.cs: Implemented click-hold for next/previous month
36125           and date selection
36126           
36127 2004-12-11  Peter Bartok  <pbartok@novell.com>
36128
36129         * X11Structs.cs:
36130           - Added XKeyboardState (moved from XplatUIX11.cs)
36131           - Added XCreateGC related enums and structures
36132           - Added GXFunction for XSetFunction
36133
36134         * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
36135
36136         * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
36137           CaretVisible() calls
36138
36139         * ToolTip.cs: Added code to prevent stealing focus from app windows
36140
36141         * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
36142           DestroyCaret, SetCaretPos and CaretVisible)
36143
36144         * XplatUIX11.cs:
36145           - Added implementation for caret functions
36146           - Moved hover variables into a struct, to make it a bit easier
36147             on the eyes and to debug
36148           - Removed XKeyboardState (moved to XplatUIX11.cs)
36149           - Moved Keyboard properties into the properties region
36150
36151         * Control.cs (get_Region): Control.CreateGraphics is the appropriate
36152           call to get a graphics context for our control
36153
36154         * XplatUIOSX.cs: Added empty overrides for the new caret functions
36155
36156         * TreeView.cs: Fixed bug. No matter what color was set it would always
36157           return SystemColors.Window
36158
36159         * XplatUIWin32.cs: Implemented caret overrides
36160
36161 2004-12-10  Jordi Mas i Hernandez <jordi@ximian.com>
36162
36163         * ListBox.cs: fire events, implement missing methods and properties,
36164         sorting.
36165
36166 2004-12-10  John BouAntoun <jba-mono@optusnet.com.au>
36167
36168         * MonthCalendar.cs: invalidation bug fixing
36169         * ThemeWin32Classic.cs: paint fixing
36170
36171 2004-12-09  Geoff Norton  <gnorton@customerdna.com>
36172
36173         * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
36174         prepare the CGContextRef there now.
36175
36176 2004-12-09  John BouAntoun <jba-mono@optusnet.com.au>
36177
36178         * MonthCalendar.cs:
36179           - optimisationL only invalidate areas that have changed
36180         * ThemeWin32Classic.cs:
36181           - only paint parts that intersect with clip_area
36182
36183 2004-12-09  Peter Bartok  <pbartok@novell.com>
36184
36185         * Application.cs: Undid changes from r37004 which cause problems
36186         on X11
36187
36188 2004-12-09  Ravindra  <rkumar@novell.com>
36189
36190         * ToolBar.cs: Added support for displaying ContextMenu
36191         attached to a button on ToolBar.
36192         * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
36193         property.
36194
36195 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
36196
36197         * Label.cs: autosize works in text change and removes unnecessary
36198         invalidate
36199
36200 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
36201
36202         * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
36203         remove warnings
36204
36205 2004-12-08  Geoff Norton  <gnorton@customerdna.com>
36206
36207         * XplatUIOSX.cs: Added mouse move/click/grab support
36208         Remove some debugging WriteLines not needed anymore.
36209         Add window resizing/positioning.
36210         Fix visibility on reparenting.
36211
36212 2004-12-08  Peter Bartok  <pbartok@novell.com>
36213
36214         * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
36215
36216 2004-12-07  Geoff Norton  <gnorton@customerdna.com>
36217
36218         * XplatUIOSX.cs: Initial checkin
36219         * XplatUI.cs: Use the Quartz driver if the environment is set to use it
36220
36221 2004-12-03  Ravindra <rkumar@novell.com>
36222
36223         * ListView.cs: Added some keybindings and fixed scrolling.
36224         ScrollBars listen to ValueChanged event instead of Scroll
36225         Event. This would let us take care of all changes being
36226         done in the scrollbars' values programmatically or manually.
36227         * ListView.cs (CanMultiselect): Added a check for shift key.
36228         * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
36229         * ListViewItem.cs (Clone): Fixed. We need to make a copy
36230         of ListViewSubItemCollection as well.
36231
36232 2004-12-06  Peter Bartok <pbartok@novell.com>
36233
36234         * Control.cs (Parent): Added check and exception to prevent
36235         circular parenting
36236
36237 2004-12-03  Jordi Mas i Hernandez <jordi@ximian.com>
36238
36239         * ListBox.cs: implemented clipping, selection single and multiple,
36240         bug fixing
36241
36242 2004-12-03  Ravindra <rkumar@novell.com>
36243
36244         * ListView.cs (ListView_KeyDown):
36245         * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
36246         when CTRL key is pressed.
36247         * ListViewItem.cs (Selected): Fixed setting the property.
36248
36249 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
36250
36251         * Application.cs (OnThreadException): Use ThreadExceptionDialog.
36252
36253         * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
36254         MinimizeBox, ShowInTaskbar, TopMost properties.
36255
36256         * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
36257         will be implemented).
36258
36259 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
36260
36261         * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
36262
36263         * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
36264         tests.
36265         
36266         * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
36267         
36268         * TreeView.cs: BackColor is Colors.Window.
36269
36270 2004-12-01  Jackson Harper  <jackson@ximian.com>
36271
36272         * TreeView.cs: When resizing the tree if the user is making it
36273         smaller we don't get expose events, so we need to handle adding
36274         the horizontal scrollbar in the size changed handler as well as
36275         the expose handler.
36276
36277 2004-12-02  Jordi Mas i Hernandez <jordi@ximian.com>
36278
36279         * DrawItemState.cs: fixes wrong enum values
36280
36281 2004-12-01  Jackson Harper  <jackson@ximian.com>
36282
36283         * TreeView.cs: Resize the hbar as well as the vbar on resize.
36284
36285 2004-12-01  Jackson Harper  <jackson@ximian.com>
36286
36287         * NodeLabelEditEventArgs.cs:
36288         * NodeLabelEditEventHandler.cs:
36289         * OpenTreeNodeEnumerator.cs:
36290         * TreeNode.cs:
36291         * TreeNodeCollection.cs:
36292         * TreeView.cs:
36293         * TreeViewAction.cs:
36294         * TreeViewCancelEventArgs.cs:
36295         * TreeViewCancelEventHandler.cs:
36296         * TreeViewEventArgs.cs:
36297         * TreeViewEventHandler.cs: Initial implementation.
36298
36299 2004-12-01  Ravindra <rkumar@novell.com>
36300
36301         * ListView.cs (CalculateListView): Fixed scrolling related
36302         calculations. Also, removed some debug statements from other
36303         places.
36304         * ListViewItem.cs: Changed access to 'selected' instance variable
36305         from private to internal.
36306         * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
36307
36308 2004-12-01  Jordi Mas i Hernandez <jordi@ximian.com>
36309
36310         * ThemeWin32Classic.cs: remove cache of brush and pens for
36311         specific controls and use the global system, fixes scrollbutton
36312         bugs (for small sizes, disabled, etc)
36313         
36314         * ScrollBar.cs: does not show the thumb for very small controls
36315         (as MS) and allow smaller buttons that the regular size
36316
36317 2004-12-01  Miguel de Icaza  <miguel@ximian.com>
36318
36319         * UpDownBase.cs: Add abstract methods for the interface.
36320         Add new virtual methods (need to be hooked up to TextEntry when it
36321         exists).
36322         Add override methods for most features.
36323         Computes the size, forces the height of the text entry.
36324
36325         * NumericUpDown.cs: Put here the current testing code.
36326
36327         * Set eol-style property on all files that do not have mixed line
36328         endings, to minimize the future problems.  There are still a few
36329         files with mixed endings, and someone should choose whether they
36330         want to move it or not.
36331
36332 2004-11-30  Jordi Mas i Hernandez <jordi@ximian.com>
36333
36334         * MonthCalendar.cs, ListView.cs: use Theme colours instead of
36335         System.Colors
36336         
36337 2004-11-30  Ravindra <rkumar@novell.com>
36338
36339         * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
36340         drawing and replaced use of SystemColors by theme colors.
36341         * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
36342         * ListView.cs (ListViewItemCollection.Add): Throw exception when
36343         same ListViewItem is being added more than once.
36344
36345 2004-11-30  John BouAntoun <jba-mono@optusnet.com.au>
36346
36347         * MonthCalendar.cs:
36348           - ControlStyles love to make the control not flicker
36349           
36350 2004-11-30  Peter Bartok  <pbartok@novell.com>
36351
36352         * CharacterCasing.cs: Added
36353
36354 2004-11-29  Peter Bartok  <pbartok@novell.com>
36355
36356         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
36357           TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
36358           I am removing these files as they conflict with already completed
36359           work. While it is fantastic to get contributions to MWF, I
36360           respectfully ask that everyone please coordinate their contributions
36361           through mono-winforms-list or #mono-winforms at this time. We're
36362           explicitly avoiding stubbing and don't want controls that don't have
36363           their basic functionality implemented in svn. Please also see
36364           http://www.mono-project.com/contributing/winforms.html
36365
36366
36367 2004-11-29  Marek Safar  <marek.safar@seznam.cz>
36368
36369         * Application.cs (ModalRun): Don't hang after exit.
36370
36371         * Theme.cs: New TreeViewDefaultSize property.
36372
36373         * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
36374         with less hardcoded SystemColors constant.
36375         Implemented TreeViewDefaultSize.
36376
36377         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
36378         TreeViewAction.cs, TreeViewEventArgs.cs: New files.
36379
36380
36381 2004-11-29  John BouAntoun <jba-mono@optusnet.com.au>
36382
36383         * MonthCalendar.cs:
36384           - Fix NextMonthDate and PrevMonthDate click moving calendar
36385
36386 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
36387
36388         * MonthCalendar.cs:
36389           - Fix usage of ScrollChange Property when scrolling months
36390
36391 2004-11-26  Jordi Mas i Hernandez <jordi@ximian.com>
36392
36393         * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
36394          - Fixes menu destroying
36395          - Support adding and removing items on already created menus
36396
36397 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
36398
36399         * MonthCalendar.cs:
36400           - Re-worked all bolded dates handling to match win32
36401         * ThemeWin32Classic.cs:
36402           - Fixed rendering with bolded dates
36403
36404 2004-11-25  Jordi Mas i Hernandez <jordi@ximian.com>
36405
36406         * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
36407         - Horizontal scroolbar
36408         - Multicolumn
36409         - Fixes
36410
36411
36412 2004-11-25  John BouAntoun <jba-mono@optusnet.com.au>
36413
36414         * MonthCalendar.cs:
36415           - Fix Usage of MaxSelectionCount from SelectionRange
36416           - Fixed Shift + Cursor Selection
36417           - Fixed Shift + (Pg up/Pg dn, Home/End) selection
36418           - Fixed normal cursor selection to be compat with win32
36419           - Fixed Shift + Mouse Click selection
36420
36421 2004-11-24  Peter Bartok <pbartok@novell.com>
36422
36423         * XplatUI.cs (DispatchMessage): Switched to return IntPtr
36424         * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
36425         * XplatUIX11.cs:
36426           - CreatedKeyBoardMsg now updates keystate with Alt key
36427           - Added workaround for timer crash to CheckTimers, Jackson will
36428             develop a proper fix and check in later
36429           - Implemented DispatchMessage
36430           - Removed calling the native window proc from GetMessage (call
36431             now moved to DispatchMessage)
36432
36433         * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
36434           the keydata (Fixes bug #69831)
36435
36436         * XplatUIWin32.cs:
36437           - (DispatchMessage): Switched to return IntPtr
36438           - Added DllImport for SetFocus
36439
36440 2004-11-24  Ravindra <rkumar@novell.com>
36441
36442         * ThemeWin32Classic.cs: Fixed ListView border and checkbox
36443         background drawing.
36444         * ListViewItem.cs: Fixed various properties, calculations
36445         and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
36446         * ListView.cs: Fixed calculations, BackColor, ForeColor properties
36447         and some internal properties. Fixed MouseDown handler and Paint
36448         method.
36449
36450 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
36451
36452         * MonthCalendar.cs: Add TitleMonth ContextMenu handling
36453
36454 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
36455
36456         * ContainerControl.cs: correct accidental check in of local changes
36457
36458 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
36459
36460         * ThemeWin32Classic.cs:
36461                 - Fixed Drawing Last month in grid (sometimes not showing)
36462         * MonthCalendar.cs:
36463                 - Fixed title width calculation bug (makeing title small)
36464
36465 2004-11-23  Peter Bartok <pbartok@novell.com>
36466
36467         * XplatUIX11.cs:
36468           - Added generation of WM_MOUSEHOVER event
36469           - Added missing assignment of async_method atom
36470           - Fixed WM_ERASEBKGND; now only redraws the exposed area
36471
36472 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
36473
36474         * ThemeWin32Classic.cs:
36475                 - Fixed Drawing of today circle when showtodaycircle not set
36476                 - fixed drawing of first and last month in the grid (gay dates)
36477         * MonthCalendar.cs:
36478                 - Fixed Drawing of today circle
36479                 - Fixed drawing of grady dates
36480                 - Fixed HitTest for today link when ShowToday set to false
36481                 - Fixed DefaultSize to obey ShowToday
36482
36483 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
36484
36485         * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
36486         * System.Windows.Forms/Theme.cs
36487         * MonthCalendar.cs: added for MonthCalendar
36488         * SelectionRange.cs: added for MonthCalendar
36489         * Day.cs: added for MonthCalendar: added for MonthCalendar
36490         * DateRangeEventArgs.cs: added for MonthCalendar
36491         * DateRangeEventHandler.cs: added for MonthCalendar
36492
36493 2004-11-22  Ravindra <rkumar@novell.com>
36494
36495         * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
36496         property.
36497
36498 2004-11-22  Miguel de Icaza  <miguel@ximian.com>
36499
36500         * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
36501         event handler.
36502         
36503         * NumericUpDown.cs: Added new implementation.
36504         * UpDownBase.cs: Added new implementation.
36505
36506         * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
36507         implementations.
36508         
36509         * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
36510         implementations.
36511
36512         * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
36513         methods.
36514
36515 2004-11-21  Miguel de Icaza  <miguel@ximian.com>
36516
36517         * Timer.cs  (Dispose): Should call the base dispose when
36518         overriding.
36519
36520 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
36521
36522         * ScrollBar.cs: updates thumb position when max, min or increment
36523         is changed
36524
36525 2004-11-21  Ravindra <rkumar@novell.com>
36526
36527         * ListView.cs: Implemented item selection, activation and
36528         column header style. Fixed properties to do a redraw, if
36529         required. Added support for MouseHover, DoubleClick, KeyDown
36530         and KeyUp event handling and some minor fixes.
36531         * ListViewItem.cs: Fixed constructor.
36532         * ThemeWin32Classic.cs: Improved drawing for ListView.
36533
36534 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
36535
36536         * ThemeWin32Classic.cs: initial listbox drawing code
36537         * DrawMode.cs: new enumerator
36538         * ListControl.cs: stubbed class
36539         * ListBox.cs: initial implementation
36540         * Theme.cs: new methods definitions
36541         * SelectionMode.cs: new enumerator
36542
36543 2004-11-17  Peter Bartok  <pbartok@novell.com>
36544
36545         * XplatUIWin32.cs: Added double-click events to the class style
36546         * Control.cs (WndProc):
36547           - Added handling of click-count to MouseDown/ MouseUp events.
36548           - Added handling of middle and right mouse buttons
36549           - Removed old debug code
36550
36551 2004-11-17  Jackson Harper  <jackson@ximian.com>
36552
36553         * XplatUIX11.cs: Use the new Mono.Unix namespace.
36554
36555 2004-11-17  Ravindra <rkumar@novell.com>
36556
36557         * ListView.cs: Added event handling for MouseMove/Up/Down.
36558         * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
36559         * ThemeWin32Classic.cs: We need to clear the graphics context and
36560         draw column header in a proper state.
36561
36562
36563 2004-11-17  Jordi Mas i Hernandez <jordi@ximian.com>
36564
36565         *  Menu.cs: fixes signature
36566
36567 2004-11-16  Peter Bartok  <pbartok@novell.com>
36568
36569         * XplatUIX11.cs (GetMessage): Implemented generation of
36570           double click mouse messages
36571
36572 2004-11-12  Jordi Mas i Hernandez <jordi@ximian.com>
36573
36574         *  Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
36575         not by menu
36576
36577 2004-11-11  Peter Bartok  <pbartok@novell.com>
36578
36579         * HandleData.cs: Added Visible property
36580         * XplatUIX11.cs (IsVisible): Now uses Visible property from
36581           HandleData
36582         * XplatUIX11.cs: Removed old debug leftovers
36583         * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
36584         * Control.cs (WndProc): Removed old debug leftovers,
36585           streamlined handling of WM_WINDOWPOSCHANGED, removed un-
36586           needed WM_SIZE handling
36587
36588 2004-11-11  Jackson Harper  <jackson@ximian.com>
36589
36590         * OwnerDrawPropertyBag.cs:
36591         * TreeViewImageIndexConverter.cs: Initial implementation
36592
36593 2004-11-10  Jackson Harper  <jackson@ximian.com>
36594
36595         * ThemeWin32Classic.cs:
36596         * TabControl.cs: instead of moving tabs by the slider pos just
36597         start drawing at the tab that is offset by the slider. This way
36598         scrolling always moves by exactly one tab.
36599
36600 2004-11-10  Jackson Harper  <jackson@ximian.com>
36601
36602         * TabControl.cs: You can only scroll left when the slider has
36603         already ben moved right.
36604         
36605 2004-11-10  Jackson Harper  <jackson@ximian.com>
36606
36607         * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
36608         the clip area.
36609         
36610 2004-11-10  Jackson Harper  <jackson@ximian.com>
36611
36612         * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
36613         clip area.
36614         
36615 2004-11-09  Jackson Harper  <jackson@ximian.com>
36616
36617         * TabControl.cs (CalcXPos): New helper method so we can determine
36618         the proper place to start drawing vertical tabs.
36619         * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
36620         
36621 2004-11-09  Jackson Harper  <jackson@ximian.com>
36622
36623         * TabControl.cs: Calculate sizing and rects for left aligned tabs.
36624         * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
36625         and Bottom, left and right are illegal values for this and
36626         multiline is enabled when the alignment is set to left or right.
36627         (DrawTab): Each alignment block should draw the text itself now
36628         because Left requires special love. Also add rendering for Left
36629         aligned tabs.
36630         
36631 2004-11-09  Jordi Mas i Hernandez <jordi@ximian.com>
36632
36633         *  Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
36634         does not destroy the windows, removes debugging messages
36635
36636 2004-11-09  jba  <jba-mono@optusnet.com.au>
36637
36638         * ThemeWin32Classic.cs
36639         (DrawButtonBase): Fix verticle text rect clipping in windows
36640         (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
36641         rendering and incorrect text rect clipping
36642         (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
36643         rendering and incorrect text rect clipping
36644         
36645 2004-11-08  Jackson Harper  <jackson@ximian.com>
36646
36647         * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
36648         bottom when they are bottom aligned so the bottoms of the tabs get
36649         displayed.
36650         * TabControl.cs (DropRow): Move rows up instead of down when the
36651         tab control is bottom aligned.
36652
36653 2004-11-08 13:59  pbartok
36654
36655         * XplatUIX11.cs:
36656           - Added handling for various window styles
36657           - Added handling for popup windows
36658           - Added SetTopmost handling
36659
36660 2004-11-08 13:55  pbartok
36661
36662         * XplatUIWin32.cs:
36663           - Added argument to SetTopmost method
36664           - Fixed broken ClientToScreen function
36665
36666 2004-11-08 13:53  pbartok
36667
36668         * XplatUIStructs.cs:
36669           - Added missing WS_EX styles
36670
36671 2004-11-08 13:53  pbartok
36672
36673         * XplatUI.cs, XplatUIDriver.cs:
36674           - Added argument to SetTopmost
36675
36676 2004-11-08 13:52  pbartok
36677
36678         * X11Structs.cs:
36679           - Added XSetWindowAttributes structure
36680           - Improved XWindowAttributes structure
36681           - Added SetWindowValuemask enum
36682           - Added window creation arguments enum
36683           - Added gravity enum
36684           - Added Motif hints structure
36685           - Added various Motif flags and enums
36686           - Added PropertyMode enum for property functions
36687
36688 2004-11-08 13:50  pbartok
36689
36690         * Form.cs:
36691           - Fixed arguments for updated SetTopmost method
36692
36693 2004-11-08 13:49  pbartok
36694
36695         * ToolTip.cs:
36696           - Fixed arguments for updated SetTopmost function
36697           - Fixed usage of PointToClient
36698
36699 2004-11-08 13:44  pbartok
36700
36701         * MenuAPI.cs:
36702           - Added Clipping of children and siblings
36703
36704 2004-11-08 13:41  pbartok
36705
36706         * MainMenu.cs:
36707           - Removed SetMenuBarWindow call. We do this in Form.cs
36708
36709 2004-11-08 13:40  jackson
36710
36711         * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
36712           scrolling jimmi in the correct location with bottom aligned tabs
36713
36714 2004-11-08 13:36  pbartok
36715
36716         * ContainerControl.cs:
36717           - Implemented BindingContext
36718           - Implemented ParentForm
36719
36720 2004-11-08 12:46  jackson
36721
36722         * TabControl.cs: Put bottom rendered tabs in the right location
36723
36724 2004-11-08 07:15  jordi
36725
36726         * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
36727           removes dead code
36728
36729 2004-11-05 17:30  jackson
36730
36731         * TabControl.cs: When selected tabs are expanded make sure they
36732           don't go beyond the edges of the tab control
36733
36734 2004-11-05 14:57  jackson
36735
36736         * TabControl.cs: Reset show_slider so if the control is resized to
36737           a size where it is no longer needed it's not displayed anymore
36738
36739 2004-11-05 13:16  jackson
36740
36741         * TabControl.cs: Make tab pages non visible when added to the
36742           control
36743
36744 2004-11-05 12:42  jackson
36745
36746         * TabControl.cs: Implement SizeMode.FillToRight
36747
36748 2004-11-05 12:16  jackson
36749
36750         * Control.cs: Do not call CreateHandle if the handle is already
36751           created
36752
36753 2004-11-05 11:46  jackson
36754
36755         * TabControl.cs: Remove superflous call to CalcTabRows
36756
36757 2004-11-05 09:07  jackson
36758
36759         * XplatUIX11.cs: Update for Mono.Posix changes
36760
36761 2004-11-05 07:00  ravindra
36762
36763         * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
36764           scrolling.
36765
36766 2004-11-04 22:47  jba
36767
36768         * ThemeWin32Classic.cs:
36769           - Fix Button rendering for FlatStyle = Flat or Popup
36770           - Fix RadioButton and CheckBox rendering when Appearance = Button
36771             (normal and flatstyle).
36772           - Correct outer rectangle color when drawing focus rectangle
36773           - Adjust button bounds to be 1 px smaller when focused
36774           - Make button not draw sunken 3d border when pushed (windows compat)
36775           - Fix CPDrawBorder3D to not make bottom right hand corner rounded
36776           - Offset the text in RadioButton and Checkbox when being rendered as
36777           a button.
36778           - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
36779           radiobuttons
36780           - Fixed disabled rendering for colored flatstyle radiobuttons (both)
36781           - Fixed disabled text rendering for normally rendered radiobuttons
36782
36783 2004-11-04 10:26  jackson
36784
36785         * TabControl.cs: Recalculate tab rows when resizing
36786
36787 2004-11-04 07:47  jordi
36788
36789         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
36790           collection completion, drawing issues, missing features
36791
36792 2004-11-04 05:03  ravindra
36793
36794         * ScrollBar.cs:
36795                 - We need to recalculate the Thumb area when
36796                 LargeChange/maximum/minimum values are changed.
36797           - We set the 'pos' in UpdatePos() method to minimum, if it's less
36798                 than minimum. This is required to handle the case if large_change is
36799                 more than max, and use LargeChange property instead of large_change
36800                 variable.
36801           - We return max+1 when large_change is more than max, like MS does.
36802
36803 2004-11-04 04:29  ravindra
36804
36805         * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
36806                 - Changed default value signatures (prefixed all with ListView).
36807                 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
36808                 ListView.
36809           - Fixed calculations for ListViewItem and implemented Clone()
36810           method.
36811
36812 2004-11-04 04:26  ravindra
36813
36814         * Theme.cs, ThemeWin32Classic.cs:
36815                 - Changed default ListView values signatures (prefixed all with
36816                 ListView).
36817           - Fixed default size values for VScrollBar and HScrollBar.
36818                 - Fixed DrawListViewItem method.
36819
36820 2004-11-04 04:05  ravindra
36821
36822         * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
36823
36824 2004-11-04 04:04  ravindra
36825
36826         * ImageList.cs: Implemented the missing overload for Draw method.
36827
36828 2004-11-03 19:29  jackson
36829
36830         * TabControl.cs: Handle dropping rows on selection properly
36831
36832 2004-11-03 11:59  jackson
36833
36834         * TabControl.cs: remove debug code
36835
36836 2004-11-03 11:52  jackson
36837
36838         * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
36839           the scrolly widgerywoo
36840
36841 2004-11-02 13:52  jackson
36842
36843         * TabControl.cs: Resize the tab pages and tabs when the tab control
36844           is resized
36845
36846 2004-11-02 13:40  jackson
36847
36848         * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
36849           selected tab to the bottom
36850
36851 2004-11-02 13:39  jackson
36852
36853         * TabPage.cs: Store the tab pages row
36854
36855 2004-11-02 12:33  jordi
36856
36857         * MenuItem.cs: fixes handle creation
36858
36859 2004-11-02 11:42  jackson
36860
36861         * TabControl.cs: signature fix
36862
36863 2004-11-02 08:56  jackson
36864
36865         * TabControl.cs: Calculate whether the tab is on an edge properly.
36866           Remove top secret debugging code
36867
36868 2004-11-01 19:57  jackson
36869
36870         * TabControl.cs: Add click handling, and proper sizing
36871
36872 2004-11-01 19:47  jackson
36873
36874         * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
36875           tab controls
36876
36877 2004-11-01 19:39  jackson
36878
36879         * TabPage.cs: add internal property to store the bounds of a tab
36880           page
36881
36882 2004-10-30 04:23  ravindra
36883
36884         * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
36885           values.
36886
36887 2004-10-30 04:21  ravindra
36888
36889         * ListView.cs, ListViewItem.cs: Added support for scrolling and
36890           fixed calculations.
36891
36892 2004-10-30 03:06  pbartok
36893
36894         * XplatUIX11.cs:
36895           - Removed extension of DllImported libs
36896
36897 2004-10-29 09:55  jordi
36898
36899         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
36900           navigation, itemcollection completion, menu fixes
36901
36902 2004-10-27 22:58  pbartok
36903
36904         * XplatUIX11.cs:
36905           - Now throws a nice error message when no X display could be opened
36906
36907 2004-10-26 13:51  jordi
36908
36909         * ListView.cs: removes warning
36910
36911 2004-10-26 03:55  ravindra
36912
36913         * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
36914           ThemeWin32Classic.cs: Some formatting for my last checkins.
36915
36916 2004-10-26 03:36  ravindra
36917
36918         * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
36919           control and default values.
36920
36921 2004-10-26 03:35  ravindra
36922
36923         * Theme.cs: Added some default values for ListView control.
36924
36925 2004-10-26 03:33  ravindra
36926
36927         * ToolBar.cs: ToolBar should use the user specified button size, if
36928           there is any. Added a size_specified flag for the same.
36929
36930 2004-10-26 03:33  ravindra
36931
36932         * ColumnHeader.cs: Added some internal members and calculations for
36933           ColumnHeader.
36934
36935 2004-10-26 03:32  ravindra
36936
36937         * ListViewItem.cs: Calculations for ListViewItem.
36938
36939 2004-10-26 03:31  ravindra
36940
36941         * ListView.cs: Added some internal members and calculations for
36942           ListView.
36943
36944 2004-10-22 13:31  jordi
36945
36946         * MenuAPI.cs: speedup menus drawing
36947
36948 2004-10-22 13:16  jackson
36949
36950         * XplatUIX11.cs: Make sure to update exposed regions when adding an
36951           expose event
36952
36953 2004-10-22 11:49  jackson
36954
36955         * Control.cs: oops
36956
36957 2004-10-22 11:41  jackson
36958
36959         * Control.cs: Check to see if the window should have its background
36960           repainted by X when drawing.
36961
36962 2004-10-22 11:31  jackson
36963
36964         * XplatUIX11.cs: When invalidating areas only use XClearArea if
36965           clear is true, this way we do not get flicker from X repainting the
36966           background
36967
36968 2004-10-22 11:28  jackson
36969
36970         * XEventQueue.cs: Queue properly
36971
36972 2004-10-21 09:38  jackson
36973
36974         * XEventQueue.cs: Fix access modifier
36975
36976 2004-10-21 09:36  jackson
36977
36978         * XEventQueue.cs: Don't loose messages
36979
36980 2004-10-21 09:22  jackson
36981
36982         * XEventQueue.cs: Don't loose messages
36983
36984 2004-10-20 04:15  jordi
36985
36986         * BootMode.cs: enum need it by SystemInfo
36987
36988 2004-10-19 21:58  pbartok
36989
36990         * XplatUIWin32.cs:
36991           - Small sanity check
36992
36993 2004-10-19 21:56  pbartok
36994
36995         * Form.cs:
36996           - Added private FormParentWindow class which acts as the container
36997             for our form and as the non-client area where menus are drawn
36998           - Added/Moved required tie-ins to Jordi's menus
36999           - Fixed/Implemented the FormStartPosition functionality
37000
37001 2004-10-19 21:52  pbartok
37002
37003         * Control.cs:
37004           - Removed unneeded locals
37005           - Added code to all size and location properties to understand and
37006             deal with the parent container of Form
37007
37008 2004-10-19 21:33  pbartok
37009
37010         * Application.cs:
37011           - Fixed to deal with new Form subclasses for menus
37012
37013 2004-10-19 17:48  jackson
37014
37015         * XEventQueue.cs: commit correct version of file
37016
37017 2004-10-19 16:50  jackson
37018
37019         * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
37020
37021 2004-10-19 16:15  jordi
37022
37023         * MenuAPI.cs: MenuBarCalcSize returns the height
37024
37025 2004-10-19 08:31  pbartok
37026
37027         * Control.cs:
37028           - Added missing call to PreProcessMessage before calling OnXXXKey
37029           methods
37030
37031 2004-10-19 00:04  ravindra
37032
37033         * ToolTip.cs: Fixed constructor.
37034
37035 2004-10-18 09:31  jordi
37036
37037         * MenuAPI.cs: menuitems in menubars do not have shortcuts
37038
37039 2004-10-18 09:26  jordi
37040
37041         * MenuItem.cs: fixes MenuItem class signature
37042
37043 2004-10-18 08:56  jordi
37044
37045         * MenuAPI.cs: prevents windows from showing in the taskbar
37046
37047 2004-10-18 00:28  ravindra
37048
37049         * ToolTip.cs: Suppressed a warning message.
37050
37051 2004-10-18 00:27  ravindra
37052
37053         * Control.cs: Default value of visible property must be true.
37054
37055 2004-10-17 23:19  pbartok
37056
37057         * ToolTip.cs:
37058           - Complete implementation
37059
37060 2004-10-17 23:19  pbartok
37061
37062         * XplatUIX11.cs:
37063           - Added EnableWindow method
37064           - Added SetModal stub
37065           - Added generation of WM_ACTIVATE message (still needs testing)
37066           - Added SetTopMost stub
37067           - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
37068
37069 2004-10-17 23:17  pbartok
37070
37071         * XplatUIWin32.cs:
37072           - Removed VirtualKeys to XplatUIStructs
37073           - Implemented SetTopMost method
37074           - Implemented EnableWindow method
37075           - Bugfix in ScreenToClient()
37076           - Bugfixes in ClientToScreen()
37077
37078 2004-10-17 22:51  pbartok
37079
37080         * XplatUIStructs.cs:
37081           - Added WS_EX styles to WindowStyles enumeration
37082
37083 2004-10-17 22:50  pbartok
37084
37085         * XplatUI.cs, XplatUIDriver.cs:
37086           - Added method for enabling/disabling windows
37087           - Added method for setting window modality
37088           - Added method for setting topmost window
37089
37090 2004-10-17 22:49  pbartok
37091
37092         * ThemeWin32Classic.cs:
37093           - Added ToolTip drawing code
37094
37095 2004-10-17 22:49  pbartok
37096
37097         * Theme.cs:
37098           - Added ToolTip abstracts
37099
37100 2004-10-17 22:47  pbartok
37101
37102         * Form.cs:
37103           - Fixed Form.ControlCollection to handle owner relations
37104           - Added Owner/OwnedForms handling
37105           - Implemented Z-Ordering for owned forms
37106           - Removed unneeded private overload of ShowDialog
37107           - Fixed ShowDialog, added the X11 incarnation of modal handling (or
37108             so I hope)
37109           - Fixed Close(), had wrong default
37110           - Added firing of OnLoad event
37111           - Added some commented out debug code for Ownership handling
37112
37113 2004-10-17 22:16  pbartok
37114
37115         * Control.cs:
37116           - Fixed/implemented flat list of controls
37117
37118 2004-10-17 22:14  pbartok
37119
37120         * Application.cs:
37121           - Added code to simulate modal dialogs on Win32
37122
37123 2004-10-17 16:11  jordi
37124
37125         * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
37126           mouse event
37127
37128 2004-10-17 13:39  jordi
37129
37130         * MenuAPI.cs: menu drawing fixes
37131
37132 2004-10-15 09:10  ravindra
37133
37134         * StructFormat.cs: General Enum.
37135
37136 2004-10-15 09:09  ravindra
37137
37138         * SizeGripStyle.cs: Enum for Form.
37139
37140 2004-10-15 09:08  ravindra
37141
37142         * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
37143           in Theme for ListView.
37144
37145 2004-10-15 09:06  ravindra
37146
37147         * ColumnHeader.cs: Flushing some formatting changes.
37148
37149 2004-10-15 09:05  ravindra
37150
37151         * ListViewItem.cs: Implemented GetBounds method and fixed coding
37152           style.
37153
37154 2004-10-15 09:03  ravindra
37155
37156         * ListView.cs: Implemented Paint method and fixed coding style.
37157
37158 2004-10-15 07:34  jordi
37159
37160         * MenuAPI.cs: fix for X11
37161
37162 2004-10-15 07:32  ravindra
37163
37164         * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
37165                 - Renamed Paint() method to Draw() for clarity. Also, moved
37166                 DrawImage() to OnPaint().
37167
37168 2004-10-15 07:25  ravindra
37169
37170         * CheckBox.cs, RadioButton.cs:
37171                 - Removed Redraw (), we get it from ButtonBase.
37172                 - Implemented Paint (), to do class specific painting.
37173
37174 2004-10-15 07:16  ravindra
37175
37176         * ButtonBase.cs:
37177                 - Redraw () is not virtual now.
37178                 - Added an internal virtual method Paint (), so that
37179                 derived classes can do their painting on their own.
37180                 - Modified OnPaint () to call Paint ().
37181
37182 2004-10-15 06:43  jordi
37183
37184         * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
37185           MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
37186
37187 2004-10-15 00:30  ravindra
37188
37189         * MessageBox.cs:
37190                 - MessageBox on windows does not have min/max buttons.
37191                 This change in CreateParams fixes this on Windows. We
37192                 still need to implement this windowstyle behavior in
37193                 our X11 driver.
37194
37195 2004-10-14 05:14  ravindra
37196
37197         * ToolBar.cs:
37198                 - Changed Redraw () to do a Refresh () always.
37199                 - Fixed the MouseMove event handling when mouse is pressed,
37200                 ie drag event handling.
37201                 - Replaced the usage of ToolBarButton.Pressed property to
37202                 ToolBarButton.pressed internal variable.
37203
37204 2004-10-14 05:10  ravindra
37205
37206         * ToolBarButton.cs:
37207                 - Added an internal member 'inside' to handle mouse move
37208                 with mouse pressed ie mouse drag event.
37209                 - Changed 'Pressed' property to return true only when
37210                 'inside' and 'pressed' are both true.
37211                 - Some coding style love.
37212
37213 2004-10-14 00:17  ravindra
37214
37215         * Form.cs: Fixed class signature. ShowDialog (Control) is not a
37216           public method.
37217
37218 2004-10-14 00:15  ravindra
37219
37220         * ButtonBase.cs: Redraw () related improvements.
37221
37222 2004-10-14 00:14  ravindra
37223
37224         * MessageBox.cs: Moved InitFormSize () out of Paint method and
37225           removed unnecessary calls to Button.Show () method.
37226
37227 2004-10-13 17:50  pbartok
37228
37229         * XplatUIX11.cs:
37230           - Formatting fix
37231           - Removed destroying of window until we solve the problem of X
37232             destroying the window before us on shutdown
37233
37234 2004-10-13 16:32  pbartok
37235
37236         * ButtonBase.cs:
37237           - Now Redraws on MouseUp for FlatStyle Flat and Popup
37238
37239 2004-10-13 14:18  pbartok
37240
37241         * XplatUIX11.cs:
37242           - Added code to destroy the X window
37243
37244 2004-10-13 14:18  pbartok
37245
37246         * XplatUIWin32.cs:
37247           - Added code to destroy a window
37248
37249 2004-10-13 14:12  pbartok
37250
37251         * ButtonBase.cs:
37252           - Added the Redraw on Resize that got dropped in the last rev
37253
37254 2004-10-13 09:06  pbartok
37255
37256         * ThemeWin32Classic.cs:
37257           - Path from John BouAntoun:
37258             * Fix check rendering (centre correctly for normal style, offset
37259               correctly for FlatStyle).
37260             * Fix border color usage (use backcolor) for FlatStyle.Popup
37261             * Use checkbox.Capture instead of checkbox.is_pressed when
37262               rendering flatstyle states.
37263
37264 2004-10-12 21:48  pbartok
37265
37266         * ThemeWin32Classic.cs:
37267           - Removed all occurences of SystemColors and replaced them with the
37268             matching theme color
37269
37270 2004-10-12 21:41  pbartok
37271
37272         * ThemeWin32Classic.cs:
37273           - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
37274             him using the function for flatstyle drawing
37275           - Changed functions to use the new version of CPDrawBorder3D
37276
37277 2004-10-12 21:15  pbartok
37278
37279         * ControlPaint.cs:
37280           - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
37281             match MS documentation. They need to return defined colors if the
37282             passed color matches the configured control color. Thanks to John
37283             BouAntoun for pointing this out.
37284
37285 2004-10-12 20:57  pbartok
37286
37287         * Control.cs:
37288           - Fix from John BouAntoun: Raise ForeColorChanged event when text
37289             color is changed
37290
37291 2004-10-12 20:46  pbartok
37292
37293         * CheckBox.cs:
37294           - Fix from John BouAntoun: Now properly sets the Appearance property
37295
37296 2004-10-12 20:45  pbartok
37297
37298         * ThemeWin32Classic.cs:
37299           - Fixes from John BouAntoun: now handles forecolors and backcolors
37300             for flatstyle rendered controls much better; It also fixes normal
37301             checkbox rendering when pushed or disabled.
37302
37303 2004-10-08 02:50  jordi
37304
37305         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
37306           work
37307
37308 2004-10-07 08:56  jordi
37309
37310         * ThemeWin32Classic.cs: Removes deletion of cached brushes
37311
37312 2004-10-06 03:59  jordi
37313
37314         * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
37315           XplatUIWin32.cs: removes warnings from compilation
37316
37317 2004-10-05 12:23  jackson
37318
37319         * RadioButton.cs: Fix ctor
37320
37321 2004-10-05 11:10  pbartok
37322
37323         * MessageBox.cs:
37324           - Partial implementation by Benjamin Dasnois
37325
37326 2004-10-05 10:15  jackson
37327
37328         * ThemeWin32Classic.cs: Improve rendering of the radio button patch
37329           by John BouAntoun
37330
37331 2004-10-05 03:07  ravindra
37332
37333         * ToolBar.cs:
37334                 - Removed a private method, Draw ().
37335                 - Fixed the ButtonDropDown event handling.
37336                 - Fixed MouseMove event handling.
37337
37338 2004-10-05 03:04  ravindra
37339
37340         * ThemeWin32Classic.cs:
37341                 - Added DrawListView method and ListViewDefaultSize property.
37342                 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
37343                 - Changed DOS style CRLF to Unix format (dos2unix).
37344
37345 2004-10-05 03:03  ravindra
37346
37347         * Theme.cs:
37348                 - Added DrawListView method and ListViewDefaultSize property.
37349
37350 2004-10-05 02:42  ravindra
37351
37352         * ToolBarButton.cs: Added an internal member dd_pressed to handle
37353           clicks on DropDown arrow.
37354
37355 2004-10-04 22:56  jackson
37356
37357         * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
37358           ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
37359           Control handle the buffers, derived classes should not have to
37360           CreateBuffers themselves.
37361
37362 2004-10-04 21:20  jackson
37363
37364         * StatusBar.cs: The control handles resizing the buffers now.
37365
37366 2004-10-04 21:18  jackson
37367
37368         * Control.cs: When resizing the buffers should be invalidated. This
37369           should be handled in Control not in derived classes.
37370
37371 2004-10-04 14:45  jackson
37372
37373         * TabPage.cs: oops
37374
37375 2004-10-04 02:14  pbartok
37376
37377         * LeftRightAlignment.cs:
37378           - Initial check-in
37379
37380 2004-10-04 01:09  jordi
37381
37382         * ThemeWin32Classic.cs: fixes right button position causing right
37383           button not showing on horizontal scrollbars
37384
37385 2004-10-02 13:12  pbartok
37386
37387         * XplatUIX11.cs:
37388           - Simplified the Invalidate method by using an X call instead of
37389             generating the expose ourselves
37390           - Added an expose when the window background is changed
37391           - Implemented ClientToScreen method
37392
37393 2004-10-02 13:08  pbartok
37394
37395         * XplatUIWin32.cs:
37396           - Added Win32EnableWindow method (test for implementing modal
37397           dialogs)
37398           - Added ClientToScreen method and imports
37399
37400 2004-10-02 13:07  pbartok
37401
37402         * XplatUI.cs, XplatUIDriver.cs:
37403           - Added ClientToScreen coordinate translation method
37404
37405 2004-10-02 13:06  pbartok
37406
37407         * KeyPressEventArgs.cs:
37408           - Fixed access level for constructor
37409
37410 2004-10-02 13:06  pbartok
37411
37412         * NativeWindow.cs:
37413           - Changed access level for the window_collection hash table
37414
37415 2004-10-02 13:05  pbartok
37416
37417         * Form.cs:
37418           - Added KeyPreview property
37419           - Added Menu property (still incomplete, pending Jordi's menu work)
37420           - Implemented ProcessCmdKey
37421           - Implemented ProcessDialogKey
37422           - Implemented ProcessKeyPreview
37423
37424 2004-10-02 13:02  pbartok
37425
37426         * Control.cs:
37427           - Added private method to get the Control object from the window
37428           handle
37429           - Implemented ContextMenu property
37430           - Implemented PointToScreen
37431           - Implemented PreProcessMessage
37432           - Implemented IsInputChar
37433           - Implemented IsInputKey
37434           - Implemented ProcessCmdKey
37435           - Completed ProcessKeyEventArgs
37436           - Fixed message loop to call the proper chain of functions on key
37437           events
37438           - Implemented ProcessDialogChar
37439           - Implemented ProcessDialogKey
37440           - Implemented ProcessKeyMessage
37441           - Implemented ProcessKeyPreview
37442           - Added RaiseDragEvent stub (MS internal method)
37443           - Added RaiseKeyEvent stub (MS internal method)
37444           - Added RaiseMouseEvent stub (MS Internal method)
37445           - Added RaisePaintEvent stub (MS Internal method)
37446           - Added ResetMouseEventArgs stub (MS Internal method)
37447           - Implemented RtlTranslateAlignment
37448           - Implemented RtlTranslateContent
37449           - Implemented RtlTranslateHorizontal
37450           - Implemented RtlTranslateLeftRight
37451           - Added generation of KeyPress event
37452
37453 2004-10-02 05:57  ravindra
37454
37455         * ListViewItem.cs: Added attributes.
37456
37457 2004-10-02 05:32  ravindra
37458
37459         * ListView.cs: Added attributes.
37460
37461 2004-10-01 11:53  jackson
37462
37463         * Form.cs: Implement the Close method so work on MessageBox can
37464           continue.
37465
37466 2004-09-30 14:06  pbartok
37467
37468         * XplatUIX11.cs:
37469           - Bug fixes
37470
37471 2004-09-30 11:34  jackson
37472
37473         * RadioButton.cs: Fix typo. Patch by John BouAntoun.
37474
37475 2004-09-30 07:26  ravindra
37476
37477         * ListViewItemConverter.cs: Converter for ListViewItem.
37478
37479 2004-09-30 07:26  ravindra
37480
37481         * SortOrder.cs: Enum for ListView control.
37482
37483 2004-09-30 07:25  ravindra
37484
37485         * ColumnHeader.cs: Supporting class for ListView control.
37486
37487 2004-09-30 07:24  ravindra
37488
37489         * ListView.cs, ListViewItem.cs: Initial implementation.
37490
37491 2004-09-30 07:20  ravindra
37492
37493         * ItemActivation.cs: Enum for ListView Control.
37494
37495 2004-09-29 20:29  pbartok
37496
37497         * XplatUIX11.cs:
37498           - Added lookup of pixel value for background color; tries to get a
37499             color 'close' to the requested color, it avoids having to create a
37500             colormap.  Depending on the display this could mean the used color
37501             is slightly off the desired color. Might have to change it to a more
37502             resource intensive colormap approach, but it will work as a
37503           workaround to avoid red screens.
37504
37505 2004-09-29 14:27  jackson
37506
37507         * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
37508
37509 2004-09-28 12:44  pbartok
37510
37511         * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
37512           HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
37513           ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
37514           Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
37515           TrackBar.cs, VScrollBar.cs:
37516           - Streamlined Theme interfaces:
37517             * Each DrawXXX method for a control now is passed the object for
37518               the control to be drawn in order to allow accessing any state the
37519               theme might require
37520
37521             * ControlPaint methods for the theme now have a CP prefix to avoid
37522               name clashes with the Draw methods for controls
37523
37524             * Every control now retrieves it's DefaultSize from the current
37525             theme
37526
37527 2004-09-28 12:17  jackson
37528
37529         * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
37530           drawing
37531
37532 2004-09-24 14:57  jackson
37533
37534         * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
37535           Gives us a nice little performance boost.
37536
37537 2004-09-24 12:02  jackson
37538
37539         * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
37540           TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
37541           Control and supporting classes. Initial checkin
37542
37543 2004-09-23 13:08  jackson
37544
37545         * Form.cs: Temp build fixage
37546
37547 2004-09-23 01:39  ravindra
37548
37549         * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
37550           ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
37551           ItemDragEventArgs.cs, ItemDragEventHandler.cs,
37552           LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
37553           EventHandlers needed by ListView Control.
37554
37555 2004-09-22 14:12  pbartok
37556
37557         * ScrollableControl.cs:
37558           - Implemented DockPadding property
37559           - Implemented AutoScroll property
37560           - Implemented AutoScrollMargin property
37561           - Implemented AutoScrollMinSize property
37562           - Implemented AutoScrollPosition property
37563           - Implemented DisplayRectangle property (still incomplete)
37564           - Implemented CreateParams property
37565           - Implemented HScroll property
37566           - Implemented VScroll property
37567           - Implemented OnVisibleChanged property
37568
37569 2004-09-22 14:09  pbartok
37570
37571         * Form.cs:
37572           - Added Form.ControllCollection class
37573           - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
37574             RemoveOwnedForm (still incomplete, missing on-top and common
37575             minimize/maximize behaviour)
37576           - Added StartPosition property (still incomplete, does not use when
37577             creating the form)
37578           - Added ShowDialog() methods (still incomplete, missing forcing the
37579             dialog modal)
37580
37581 2004-09-22 14:05  pbartok
37582
37583         * Application.cs:
37584           - Added message loop for modal dialogs
37585
37586 2004-09-22 14:02  pbartok
37587
37588         * GroupBox.cs:
37589           - Fixed wrong types for events
37590
37591 2004-09-22 14:00  pbartok
37592
37593         * Shortcut.cs, FormWindowState.cs:
37594           - Fixed wrong values
37595
37596 2004-09-22 12:01  jackson
37597
37598         * Control.cs: Text is never null
37599
37600 2004-09-20 22:14  pbartok
37601
37602         * XplatUIWin32.cs:
37603           - Fixed accessibility level for Idle handler
37604
37605 2004-09-20 18:54  jackson
37606
37607         * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
37608           XplatUIX11.cs: New message loop that uses poll so we don't get a
37609           busy loop
37610
37611 2004-09-17 10:43  pbartok
37612
37613         * ScrollBar.cs:
37614           - Fixed behaviour of arrow buttons. Now properly behaves like
37615             Buttons (and like Microsoft's scrollbar arrow buttons)
37616
37617 2004-09-17 10:14  pbartok
37618
37619         * ScrollBar.cs:
37620           - Added missing release of keyboard/mouse capture
37621
37622 2004-09-17 06:18  jordi
37623
37624         * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
37625           Theme.cs: Very early menu support
37626
37627 2004-09-16 17:45  pbartok
37628
37629         * XplatUIWin32.cs:
37630           - Fixed sending a window to the front
37631           - Added overload for SetWindowPos to avoid casting
37632
37633 2004-09-16 17:44  pbartok
37634
37635         * Control.cs:
37636           - Added SendToBack and BringToFront methods
37637
37638 2004-09-16 07:00  ravindra
37639
37640         * Copyright: Added Novell URL.
37641
37642 2004-09-16 07:00  ravindra
37643
37644         * ToolBar.cs: Invalidate should be done before redrawing.
37645
37646 2004-09-15 21:19  ravindra
37647
37648         * ColumnHeaderStyle.cs: Enum for ListView Control.
37649
37650 2004-09-15 21:18  ravindra
37651
37652         * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
37653           ListView Control.
37654
37655 2004-09-13 18:26  jackson
37656
37657         * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
37658           properly
37659
37660 2004-09-13 18:13  jackson
37661
37662         * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
37663           a second thread and post messages into the main threads message
37664           queue. This makes timing much more consistent. Both win2K and XP
37665           have a minimum timer value of 15 milliseconds, so we now do this
37666           too.
37667
37668 2004-09-13 15:18  pbartok
37669
37670         * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
37671           XplatUIX11.cs:
37672           - Added Z-Ordering methods
37673
37674 2004-09-13 10:56  pbartok
37675
37676         * Form.cs:
37677           - Fixed #region names
37678           - Moved properties and methods into their proper #regions
37679
37680 2004-09-13 10:51  pbartok
37681
37682         * Form.cs:
37683           - Added Accept and CancelButton properties
37684           - Added ProcessDialogKey() method
37685
37686 2004-09-13 08:18  pbartok
37687
37688         * IWindowTarget.cs:
37689           - Initial check-in
37690
37691 2004-09-10 21:50  pbartok
37692
37693         * Control.cs:
37694           - Added DoDragDrop() [incomplete]
37695           - Properly implemented 'Visible' handling
37696           - Added SetVisibleCore()
37697           - Implemented FindChildAtPoint()
37698           - Implemented GetContainerControl()
37699           - Implemented Hide()
37700
37701 2004-09-10 19:28  pbartok
37702
37703         * Control.cs:
37704           - Moved methods into their appropriate #regions
37705           - Reordered methods within regions alphabetically
37706
37707 2004-09-10 18:57  pbartok
37708
37709         * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
37710           - Added method to retrieve text from window
37711
37712 2004-09-10 18:56  pbartok
37713
37714         * Control.cs:
37715           - Moved some internal functions into the internal region
37716           - Implemented FontHeight
37717           - Implemented RenderRightToLeft
37718           - Implemented ResizeRedraw
37719           - Implemented ShowFocusCues
37720           - Implemented ShowKeyboardCues
37721           - Implemented FromChildHandle
37722           - Implemented FromHandle
37723           - Implemented IsMnemonic
37724           - Implemented ReflectMessage
37725           - All public and protected Static Methods are now complete
37726
37727 2004-09-10 16:54  pbartok
37728
37729         * Control.cs:
37730           - Implemented remaining missing public instance properties
37731           - Alphabetized some out of order properties
37732
37733 2004-09-10 05:51  ravindra
37734
37735         * PictureBox.cs: Added a check for null image.
37736
37737 2004-09-10 00:59  jordi
37738
37739         * GroupBox.cs: remove cvs tag
37740
37741 2004-09-09 05:25  ravindra
37742
37743         * ToolBar.cs: Make redraw accessible from ToolBarButton.
37744
37745 2004-09-09 05:23  ravindra
37746
37747         * ToolBarButton.cs: Changes in ToolBarButton need to make it's
37748           parent redraw.
37749
37750 2004-09-09 02:28  pbartok
37751
37752         * ThemeWin32Classic.cs:
37753           - Improve disabled string look
37754
37755 2004-09-09 01:15  jordi
37756
37757         * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
37758           args and handler
37759
37760 2004-09-08 23:56  ravindra
37761
37762         * ItemBoundsPortion.cs: It's enum, not a class!
37763
37764 2004-09-08 23:47  ravindra
37765
37766         * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
37767           Enums for Form.
37768
37769 2004-09-08 21:13  ravindra
37770
37771         * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
37772           ListView control.
37773
37774 2004-09-08 21:03  ravindra
37775
37776         * ThemeWin32Classic.cs: PictureBox would not draw a null image to
37777           avoid crash.
37778
37779 2004-09-08 21:01  ravindra
37780
37781         * ScrollableControl.cs: Removed unreachable code.
37782
37783 2004-09-08 06:45  jordi
37784
37785         * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
37786
37787 2004-09-08 01:00  jackson
37788
37789         * XplatUIX11.cs: Only run the timers when updating the message
37790           queue. This effectively gives X messages a higher priority then
37791           timer messages. Timers still need love though
37792
37793 2004-09-07 14:01  jackson
37794
37795         * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
37796           this for us and the handle is no longer valid.
37797
37798 2004-09-07 13:59  jackson
37799
37800         * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
37801           loop that manages to not crash. TODO: Add poll and cleanup timers
37802
37803 2004-09-07 11:12  jordi
37804
37805         * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
37806
37807 2004-09-07 03:40  jordi
37808
37809         * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
37810           fixes, methods, multiple links
37811
37812 2004-09-06 06:55  jordi
37813
37814         * Control.cs: Caches ClientRectangle rectangle value
37815
37816 2004-09-05 02:03  jordi
37817
37818         * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
37819           certain situations
37820
37821 2004-09-04 11:10  jordi
37822
37823         * Label.cs: Refresh when font changed
37824
37825 2004-09-02 16:24  pbartok
37826
37827         * Control.cs:
37828           - Added sanity check to creation of double buffer bitmap
37829
37830 2004-09-02 16:24  pbartok
37831
37832         * ButtonBase.cs:
37833           - Fixed selection of text color
37834           - Fixed handling of resize event; now properly recreates double
37835             buffering bitmap
37836           - Added missing assignment of TextAlignment
37837           - Added proper default for TextAlignment
37838
37839 2004-09-02 14:26  pbartok
37840
37841         * RadioButton.cs:
37842           - Added missing RadioButton.RadioButtonAccessibleObject class
37843
37844 2004-09-02 14:26  pbartok
37845
37846         * Control.cs:
37847           - Added missing Control.ControlAccessibleObject class
37848           - Started to implement Select()ion mechanisms, still very incomplete
37849
37850 2004-09-02 14:25  pbartok
37851
37852         * AccessibleObject.cs:
37853           - Added missing methods
37854
37855 2004-09-02 14:23  pbartok
37856
37857         * AccessibleNavigation.cs, AccessibleSelection.cs:
37858           - Initial check-in
37859
37860 2004-09-02 10:32  jordi
37861
37862         * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
37863           pool for pens, brushes, and hatchbruses
37864
37865 2004-09-01 15:30  jackson
37866
37867         * StatusBar.cs: Fix typo
37868
37869 2004-09-01 14:44  pbartok
37870
37871         * RadioButton.cs:
37872           - Fixed state
37873
37874 2004-09-01 14:39  pbartok
37875
37876         * Button.cs, RadioButton.cs:
37877           - Functional initial check-in
37878
37879 2004-09-01 14:01  pbartok
37880
37881         * CheckBox.cs:
37882           - Added missing default
37883           - Added missing region mark
37884
37885 2004-09-01 09:10  jordi
37886
37887         * Label.cs: fixes method signatures, new methods, events, fixes
37888           autosize
37889
37890 2004-09-01 07:19  jordi
37891
37892         * Control.cs: Init string variables with an empty object
37893
37894 2004-09-01 04:20  jordi
37895
37896         * Control.cs: fires OnFontChanged event
37897
37898 2004-08-31 20:07  pbartok
37899
37900         * ButtonBase.cs:
37901           - Enabled display of strings
37902
37903 2004-08-31 20:05  pbartok
37904
37905         * Form.cs:
37906           - Added (partial) implementation of DialogResult; rest needs to be
37907             implemented when the modal loop code is done
37908
37909 2004-08-31 19:55  pbartok
37910
37911         * CheckBox.cs:
37912           - Fixed to match the removal of the needs_redraw concept
37913
37914 2004-08-31 19:55  pbartok
37915
37916         * ButtonBase.cs:
37917           - Removed the rather odd split between 'needs redraw' and redrawing
37918           - Now handles the events that require regeneration (ambient
37919             properties and size)
37920
37921 2004-08-31 19:41  pbartok
37922
37923         * Control.cs:
37924           - Added firing of BackColorChanged event
37925           - Added TopLevelControl property
37926           - Fixed handling of WM_ERASEBKGRND message
37927
37928 2004-08-31 12:49  pbartok
37929
37930         * ButtonBase.cs:
37931           - Removed debug
37932           - Minor fixes
37933
37934 2004-08-31 12:48  pbartok
37935
37936         * CheckBox.cs:
37937           - Finished (famous last words)
37938
37939 2004-08-31 04:35  jordi
37940
37941         * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
37942           scrolling bugs, adds new methods
37943
37944 2004-08-30 14:42  pbartok
37945
37946         * CheckBox.cs:
37947           - Implemented CheckBox drawing code
37948
37949 2004-08-30 14:42  pbartok
37950
37951         * ButtonBase.cs:
37952           - Made Redraw() and CheckRedraw() virtual
37953           - Improved mouse up/down/move logic to properly track buttons
37954
37955 2004-08-30 09:44  pbartok
37956
37957         * CheckBox.cs:
37958           - Updated to fix broken build. Not complete yet.
37959
37960 2004-08-30 09:28  pbartok
37961
37962         * CheckState.cs:
37963           - Initial checkin
37964
37965 2004-08-30 09:17  pbartok
37966
37967         * Appearance.cs:
37968           - Initial check-in
37969
37970 2004-08-27 16:12  ravindra
37971
37972         * ToolBarButton.cs: Added TypeConverter attribute.
37973
37974 2004-08-27 16:07  ravindra
37975
37976         * ImageIndexConverter.cs: Implemented.
37977
37978 2004-08-27 14:17  pbartok
37979
37980         * Control.cs:
37981           - Removed unneeded stack vars
37982           - First attempt to fix sizing issues when layout is suspended
37983
37984 2004-08-25 15:35  jordi
37985
37986         * ScrollBar.cs: more fixes to scrollbar
37987
37988 2004-08-25 14:04  ravindra
37989
37990         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
37991           Added the missing divider code and grip for ToolBar Control.
37992
37993 2004-08-25 13:20  pbartok
37994
37995         * Control.cs:
37996           - Control now properly passes the ambient background color to child
37997             controls
37998
37999 2004-08-25 13:20  jordi
38000
38001         * ScrollBar.cs: small bug fix regarding bar position
38002
38003 2004-08-25 12:33  pbartok
38004
38005         * Timer.cs:
38006           - Now only calls SetTimer or KillTimer if the enabled state has
38007           changed
38008
38009 2004-08-25 12:33  pbartok
38010
38011         * XplatUIWin32.cs:
38012           - Fixed timer handling, now seems to work
38013           - Improved error message for window creation
38014
38015 2004-08-25 12:32  pbartok
38016
38017         * Control.cs:
38018           - Fixed generation of MouseUp message
38019
38020 2004-08-25 12:29  jordi
38021
38022         * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
38023           and fixes for progressbar
38024
38025 2004-08-24 18:43  ravindra
38026
38027         * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
38028           in ToolBar control.
38029
38030 2004-08-24 17:15  pbartok
38031
38032         * Panel.cs:
38033           - Added #region
38034           - Added missing events
38035           - Alphabetized
38036
38037 2004-08-24 17:14  pbartok
38038
38039         * StatusBar.cs, PictureBox.cs:
38040           - Now uses Control's CreateParams
38041
38042 2004-08-24 16:36  pbartok
38043
38044         * XplatUIX11.cs:
38045           - Fixed background color handling
38046           - Fixed sending of enter/leave events on a grab
38047
38048 2004-08-24 16:35  pbartok
38049
38050         * X11Structs.cs:
38051           - Refined definitions for CrossingEvent
38052
38053 2004-08-24 12:37  jordi
38054
38055         * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
38056           formmating, methods signature, and adds missing events
38057
38058 2004-08-24 12:24  jordi
38059
38060         * Control.cs: fire OnEnabledChanged event
38061
38062 2004-08-24 11:17  pbartok
38063
38064         * XplatUIWin32.cs:
38065           - Implemented SetTimer() and KillTimer()
38066
38067 2004-08-24 11:16  pbartok
38068
38069         * XplatUIX11.cs:
38070           - Now uses Remove instead of Add to kill the timer
38071
38072 2004-08-24 10:16  jackson
38073
38074         * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
38075           picture boxes in the theme now. Draw picture box borders and obey
38076           sizing modes
38077
38078 2004-08-24 05:49  jackson
38079
38080         * Timer.cs: Remove top secret debugging code
38081
38082 2004-08-24 05:34  jackson
38083
38084         * PictureBox.cs: Temp hack to make picture boxes draw their full
38085           image
38086
38087 2004-08-24 05:29  jackson
38088
38089         * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
38090           XplatUIX11.cs: Move timers to the driver level. On X they are
38091           queued by the driver and checked on idle.
38092
38093 2004-08-24 01:07  jackson
38094
38095         * XplatUIX11.cs: Use a queue for async messages instead of passing
38096           them as ClientMessages since that was totally broken. Also simply
38097           check for events and return an idle message if none are found. This
38098           gives us an idle handler, and prevents deadlocking when no messages
38099           are in the queue.
38100
38101 2004-08-23 18:19  ravindra
38102
38103         * XplatUIWin32.cs: Removed the unwanted destructor.
38104
38105 2004-08-23 17:27  pbartok
38106
38107         * ButtonBase.cs:
38108           - Finishing touches. Works now, just needs some optimizations.
38109
38110 2004-08-23 16:53  jordi
38111
38112         * ScrollBar.cs: small fix
38113
38114 2004-08-23 16:45  pbartok
38115
38116         * Application.cs:
38117           - Removed debug output
38118           - Simplifications
38119
38120 2004-08-23 16:43  jordi
38121
38122         * ScrollBar.cs: [no log message]
38123
38124 2004-08-23 16:10  pbartok
38125
38126         * Form.cs:
38127           - Fixed handling of WM_CLOSE message
38128           - Removed debug output
38129
38130 2004-08-23 16:09  pbartok
38131
38132         * Application.cs:
38133           - Added handling of Idle event
38134           - Added handling of form closing
38135           - Fixed reporting of MessageLoop property
38136           - Removed some unneeded code, should provide a bit of a speedup
38137
38138 2004-08-23 15:22  pbartok
38139
38140         * Control.cs:
38141           - Added InitLayout() method
38142           - Added code to properly perform layout when Anchor or Dock property
38143             is changed
38144           - Changed 'interpretation' of ResumeLayout. MS seems to have a
38145             LAMESPEC, tried to do it in a way that makes sense
38146
38147 2004-08-23 14:10  jordi
38148
38149         * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
38150           properties and methods
38151
38152 2004-08-23 13:55  pbartok
38153
38154         * Control.cs:
38155           - Properly fixed Jordi's last fix
38156           - Now uses Cursor's Position property instead of calling XplatUI
38157           directly
38158
38159 2004-08-23 13:44  jordi
38160
38161         * PaintEventHandler.cs: Adding missing attribute
38162
38163 2004-08-23 13:39  pbartok
38164
38165         * Cursor.cs:
38166           - Implemented Position property
38167
38168 2004-08-23 13:39  pbartok
38169
38170         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
38171           - Added method to move mouse cursor
38172
38173 2004-08-23 13:39  pbartok
38174
38175         * XplatUIX11.cs:
38176           - Fixed setting of background color
38177           - Added method to move mouse cursor
38178
38179 2004-08-23 13:16  jordi
38180
38181         * Control.cs: avoids null exception
38182
38183 2004-08-22 17:46  jackson
38184
38185         * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
38186           PictureBox
38187
38188 2004-08-22 17:40  jackson
38189
38190         * XplatUIX11.cs: Add some missing locks
38191
38192 2004-08-22 15:10  pbartok
38193
38194         * Control.cs, Form.cs:
38195           - Removed OverlappedWindow style from Control, instead it's default
38196             now is child
38197           - Made form windows OverlappedWindow by default
38198
38199 2004-08-22 13:34  jackson
38200
38201         * ScrollBar.cs: Update the position through the Value property so
38202           the OnValueChanged event is raised.
38203
38204 2004-08-22 12:04  pbartok
38205
38206         * SWF.csproj:
38207           - Added Cursor.cs and UserControl.cs
38208
38209 2004-08-22 12:03  pbartok
38210
38211         * Cursor.cs:
38212           - Started implementation, not usable yet
38213
38214 2004-08-22 12:00  pbartok
38215
38216         * UserControl.cs:
38217           - Implemented UserControl (complete)
38218
38219 2004-08-21 19:20  ravindra
38220
38221         * ToolBar.cs: Correcting the formatting mess of VS.NET.
38222
38223 2004-08-21 18:49  ravindra
38224
38225         * ToolBar.cs: Probably this completes the missing attributes in
38226           toolbar control.
38227
38228 2004-08-21 18:03  ravindra
38229
38230         * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
38231           Fixed toolbar control signatures.
38232
38233 2004-08-21 16:32  pbartok
38234
38235         * LinkLabel.cs:
38236           - Signature Fixes
38237
38238 2004-08-21 16:30  pbartok
38239
38240         * Label.cs:
38241           - Signature fixes
38242
38243 2004-08-21 16:19  pbartok
38244
38245         * Control.cs, Label.cs:
38246           - Signature fixes
38247
38248 2004-08-21 15:57  pbartok
38249
38250         * ButtonBase.cs:
38251           - Added loads of debug output for development
38252           - Fixed typo in method name
38253
38254 2004-08-21 15:52  pbartok
38255
38256         * ToolBarButtonClickEventArgs.cs:
38257           - Added missing base class
38258
38259 2004-08-21 14:53  pbartok
38260
38261         * Control.cs:
38262           - Updated to match new GrabWindow signature
38263
38264 2004-08-21 14:51  pbartok
38265
38266         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38267           - Added method to get default display size
38268
38269 2004-08-21 14:23  pbartok
38270
38271         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38272           - Added method to query current grab state
38273           - Added argument to allow confining a grab to a window
38274
38275 2004-08-21 14:22  pbartok
38276
38277         * Keys.cs:
38278           - Added [Flags] attribute so that modifiers can be used in bitwise
38279           ops
38280
38281 2004-08-21 14:21  pbartok
38282
38283         * TrackBar.cs, ScrollBar.cs:
38284           - Replaced direct XplatUI calls with their Control counterpart
38285
38286 2004-08-21 13:32  pbartok
38287
38288         * Control.cs:
38289           - Implemented Created property
38290
38291 2004-08-21 13:28  pbartok
38292
38293         * Control.cs:
38294           - Implemented ContainsFocus
38295
38296 2004-08-21 13:26  pbartok
38297
38298         * Control.cs:
38299           - Implemented CausesValidation
38300
38301 2004-08-21 13:21  pbartok
38302
38303         * Control.cs:
38304           - Implemented CanFocus
38305           - Implemented CanSelect
38306           - Implemented Capture
38307
38308 2004-08-21 12:35  pbartok
38309
38310         * XplatUIWin32.cs:
38311           - Fixed bug with Async message handling
38312           - Implemented getting the ModifierKeys
38313
38314 2004-08-21 12:32  jackson
38315
38316         * AsyncMethodResult.cs: Make sure we have the mutex before we
38317           release it. Fixes BeginInvoke on windows
38318
38319 2004-08-21 11:31  pbartok
38320
38321         * XplatUIWin32.cs, XplatUIX11.cs:
38322           - Drivers now return proper mouse state
38323
38324 2004-08-21 10:54  jackson
38325
38326         * Control.cs: Implement EndInvoke
38327
38328 2004-08-21 10:48  jackson
38329
38330         * Timer.cs: Remove unneeded finalizer
38331
38332 2004-08-20 19:52  ravindra
38333
38334         * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
38335           in mouse event handling in the ToolBar control.
38336
38337 2004-08-20 19:50  ravindra
38338
38339         * ImageList.cs: Changed draw method to use the arguments passed in
38340           to draw the image.
38341
38342 2004-08-20 18:58  pbartok
38343
38344         * XplatUIStructs.cs:
38345           - Added private message for async communication
38346
38347 2004-08-20 17:38  ravindra
38348
38349         * Control.cs: Made RightToLeft property virtual and removed a
38350           Console.WriteLine.
38351
38352 2004-08-20 14:39  jordi
38353
38354         * ThemeGtk.cs: use style_attach
38355
38356 2004-08-20 14:39  pbartok
38357
38358         * XplatUIWin32.cs:
38359           - Added jackson's Async code from X11 to Win32
38360
38361 2004-08-20 14:09  pbartok
38362
38363         * SWF.csproj:
38364           - Added all new files
38365
38366 2004-08-20 14:09  pbartok
38367
38368         * Control.cs:
38369           - Added call to set window background color
38370
38371 2004-08-20 14:03  pbartok
38372
38373         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
38374           - Added method for setting the window background
38375
38376 2004-08-20 14:02  pbartok
38377
38378         * XplatUIWin32.cs:
38379           - Added method for setting the background color
38380           - Added handling for erasing the window background
38381
38382 2004-08-20 13:45  jordi
38383
38384         * TrackBar.cs: fixes timer, new properties and methods
38385
38386 2004-08-20 13:34  jackson
38387
38388         * ScrollBar.cs: Use the SWF timer so callbacks are run in the
38389           correct thread
38390
38391 2004-08-20 13:22  jackson
38392
38393         * Timer.cs: Timer Tick events are now handed through Controls Async
38394           mechanism so the callbacks are executed in the same thread as X
38395
38396 2004-08-20 13:19  jackson
38397
38398         * XplatUIDriver.cs: Expose functionality to send async messages
38399           through the driver
38400
38401 2004-08-20 13:18  jackson
38402
38403         * Control.cs: Implement Begininvoke
38404
38405 2004-08-20 13:14  jackson
38406
38407         * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
38408           messages through the driver
38409
38410 2004-08-20 13:12  jackson
38411
38412         * XplatUIX11.cs: Lock before all X operations. Also added Async
38413           method functionality through XSendEvent
38414
38415 2004-08-20 13:11  jackson
38416
38417         * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
38418           This will screw up on 64 bit systems)
38419
38420 2004-08-20 13:10  jackson
38421
38422         * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
38423           Async messages through X/Win32
38424
38425 2004-08-19 19:39  pbartok
38426
38427         * XplatUIX11.cs:
38428           - Updated code to match new HandleData.DeviceContext type
38429
38430 2004-08-19 19:38  pbartok
38431
38432         * HandleData.cs:
38433           - Made DeviceContext a generic object to allow usage from various
38434           drivers
38435           - Added support for queueing Windows messages
38436
38437 2004-08-19 19:37  pbartok
38438
38439         * XplatUIWin32.cs:
38440           - Added generation of MouseEnter, MouseLeave and MouseHover events
38441           - Added cleanup on EndPaint
38442
38443 2004-08-19 19:17  pbartok
38444
38445         * Control.cs:
38446           - Added handling of WM_MOUSEHOVER
38447           - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
38448           code
38449
38450 2004-08-19 18:55  jordi
38451
38452         * ThemeGtk.cs: fixes button order
38453
38454 2004-08-19 18:12  jordi
38455
38456         * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
38457
38458 2004-08-19 17:09  pbartok
38459
38460         * Control.cs:
38461           - Added Right property
38462           - Added RightToLeft property
38463
38464 2004-08-19 16:27  jordi
38465
38466         * ThemeGtk.cs: experimental GTK theme support
38467
38468 2004-08-19 16:26  jordi
38469
38470         * ITheme.cs, Theme.cs: move themes from an interface to a class
38471
38472 2004-08-19 16:25  jordi
38473
38474         * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
38475           theme enhancaments
38476
38477 2004-08-19 16:04  pbartok
38478
38479         * XplatUIX11.cs:
38480           - Added colormap basics
38481           - Added a way to re-initialize with a different display handle
38482           - Fixed setting of the window background color
38483           - Added various X11 imports related to colors and colormaps
38484
38485 2004-08-19 15:51  pbartok
38486
38487         * X11Structs.cs:
38488           - Removed packing hints (Paolo suggested this a while back)
38489           - fixed colormap type
38490           - Added default Atom types
38491           - Added Screen and color structs and enums
38492
38493 2004-08-19 15:39  pbartok
38494
38495         * ImageList.cs:
38496           - Added missing Draw() method
38497           - Added missing RecreateHandle event
38498
38499 2004-08-19 15:30  pbartok
38500
38501         * Form.cs:
38502           - Added handling of WM_CLOSE
38503
38504 2004-08-18 13:16  jordi
38505
38506         * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
38507           a table
38508
38509 2004-08-18 09:56  jordi
38510
38511         * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
38512
38513 2004-08-17 15:31  ravindra
38514
38515         * SWF.csproj: Updated project.
38516
38517 2004-08-17 15:25  pbartok
38518
38519         * Control.cs:
38520           - Drawing improvement; don't call UpdateBounds if we are not visible
38521             (or have been minimized)
38522
38523 2004-08-17 15:24  pbartok
38524
38525         * XplatUIWin32.cs:
38526           - Finished IsVisible
38527           - Added Win32GetWindowPlacement
38528
38529 2004-08-17 15:08  jackson
38530
38531         * Panel.cs: Initial checkin of the Panel
38532
38533 2004-08-17 14:25  pbartok
38534
38535         * Control.cs:
38536           - Fixed broken handling of default window sizes
38537
38538 2004-08-17 13:29  jackson
38539
38540         * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
38541           has a large startup time.
38542
38543 2004-08-17 10:25  jackson
38544
38545         * HandleData.cs: union areas properly
38546
38547 2004-08-17 10:12  jackson
38548
38549         * HandleData.cs: union areas properly
38550
38551 2004-08-16 20:00  ravindra
38552
38553         * ToolBar.cs, ToolBarButton.cs: Added attributes.
38554
38555 2004-08-16 18:48  ravindra
38556
38557         * ToolBar.cs: Added attributes.
38558
38559 2004-08-16 17:17  ravindra
38560
38561         * SWF.csproj: Updated project.
38562
38563 2004-08-16 17:16  jackson
38564
38565         * XplatUIX11.cs: Check for more expose events before sending a
38566           WM_PAINT so they can all be grouped together. This makes dragging a
38567           window across another window redraw in a sane way.
38568
38569 2004-08-16 15:47  pbartok
38570
38571         * Control.cs:
38572           - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
38573             support OnMouseEnter/Leave()
38574           - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
38575             exposure handling
38576
38577 2004-08-16 15:46  pbartok
38578
38579         * XplatUIStructs.cs, XplatUIX11.cs:
38580           - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
38581           OnMouseEnter/Leave()
38582
38583 2004-08-16 15:34  jackson
38584
38585         * XplatUIX11.cs: Group multiple expose events in HandleData, make
38586           sure messages get the message field set to WM_NULL if they are not
38587           handled.
38588
38589 2004-08-16 15:24  jackson
38590
38591         * HandleData.cs: HandleData is used for storing message information
38592           for window handles
38593
38594 2004-08-15 17:23  ravindra
38595
38596         * ColorDepth.cs: Added attribute.
38597
38598 2004-08-15 17:23  ravindra
38599
38600         * SWF.csproj: Updated project for ToolBar Control.
38601
38602 2004-08-15 17:20  ravindra
38603
38604         * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
38605           control and also dos2unix format.
38606
38607 2004-08-15 17:13  ravindra
38608
38609         * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
38610           ToolBarButtonClickEventArgs.cs,
38611           ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
38612           ToolBarTextAlign.cs: First Implementation of ToolBar control.
38613
38614 2004-08-15 15:31  pbartok
38615
38616         * ButtonBase.cs:
38617           - First (mostly) working version
38618
38619 2004-08-13 16:15  pbartok
38620
38621         * Control.cs:
38622           - Fixed Anchor default
38623
38624 2004-08-13 15:43  pbartok
38625
38626         * Control.cs:
38627           - Changed GetCursorPos signature
38628
38629 2004-08-13 15:42  pbartok
38630
38631         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
38632           - Changed signature for GetCursorPos
38633
38634 2004-08-13 15:25  pbartok
38635
38636         * XplatUIX11.cs:
38637           - Cleanup
38638           - Fixed resizing/exposure handling
38639
38640 2004-08-13 15:22  jordi
38641
38642         * ThemeWin32Classic.cs: removes redundant code and fixes issues
38643           with tickposition
38644
38645 2004-08-13 14:55  jordi
38646
38647         * TrackBar.cs: change from wndproc to events
38648
38649 2004-08-13 13:00  jordi
38650
38651         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
38652           XplatUIX11.cs: implements PointToClient (ScreenToClient)
38653
38654 2004-08-13 12:53  pbartok
38655
38656         * XplatUIWin32.cs:
38657           - Changed GetWindowPos to also provide client area size
38658           - Fixed broken prototypes for several win32 functions
38659
38660 2004-08-13 12:53  pbartok
38661
38662         * XplatUI.cs, XplatUIDriver.cs:
38663           - Changed GetWindowPos to also provide client area size
38664
38665 2004-08-13 12:52  pbartok
38666
38667         * XplatUIX11.cs:
38668           - Added generation of WM_POSCHANGED
38669           - Changed GetWindowPos to also provide client area size
38670
38671 2004-08-13 12:52  pbartok
38672
38673         * Control.cs:
38674           - Added Dispose() and destructor
38675           - Fixed resizing and bounds calculation
38676           - Fixed Layout
38677           - Added memory savings for invisible windows
38678
38679 2004-08-13 12:46  jordi
38680
38681         * TrackBar.cs: adds timer and grap window
38682
38683 2004-08-13 10:25  jackson
38684
38685         * Timer.cs: SWF Timer
38686
38687 2004-08-12 16:59  pbartok
38688
38689         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38690           - Implemented method to get current mouse position
38691
38692 2004-08-12 14:29  jordi
38693
38694         * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
38695           enhancement, fix mouse problems, highli thumb, etc
38696
38697 2004-08-12 13:31  pbartok
38698
38699         * Control.cs:
38700           - Fixed Anchoring bugs
38701
38702 2004-08-12 13:01  jackson
38703
38704         * StatusBar.cs: Don't forget things
38705
38706 2004-08-12 12:54  jackson
38707
38708         * ThemeWin32Classic.cs: Handle owner draw status bars
38709
38710 2004-08-12 12:54  jackson
38711
38712         * StatusBar.cs: Implement missing properties, events, and methods.
38713           Handle mouse clicking
38714
38715 2004-08-12 10:19  jackson
38716
38717         * StatusBarPanelClickEventArgs.cs,
38718           StatusBarPanelClickEventHandler.cs: Classes for handling status
38719           bar panel click events
38720
38721 2004-08-12 10:10  jackson
38722
38723         * Control.cs: Add missing properties
38724
38725 2004-08-12 09:46  pbartok
38726
38727         * BindingsManagerBase.cs:
38728           - Name changed to BindingManagerBase.cs
38729
38730 2004-08-12 09:25  jordi
38731
38732         * ScrollableControl.cs: calls ctrlbase instead of exeception
38733
38734 2004-08-11 16:28  pbartok
38735
38736         * InputLanguageChangingEventArgs.cs:
38737           - Never check in before compiling. Fixes the last check-in
38738
38739 2004-08-11 16:26  pbartok
38740
38741         * InputLanguageChangingEventArgs.cs:
38742           - More signature fixes
38743
38744 2004-08-11 16:20  pbartok
38745
38746         * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
38747           Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
38748           ImageListStreamer.cs, InputLanguage.cs,
38749           InputLanguageChangedEventArgs.cs,
38750           InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
38751           LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
38752           ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
38753           XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38754           - Signature fixes
38755
38756 2004-08-11 16:16  pbartok
38757
38758         * Application.cs:
38759           - Fixed Signature
38760           - Added .Net 1.1 method
38761
38762 2004-08-11 15:25  pbartok
38763
38764         * SWF.csproj:
38765           - Fixed BindingManagerBase.cs filename
38766
38767 2004-08-11 15:22  pbartok
38768
38769         * BindingManagerBase.cs:
38770           - Was checked in with wrong filename
38771
38772 2004-08-11 14:50  pbartok
38773
38774         * SWF.csproj:
38775           - Updated
38776
38777 2004-08-11 13:41  jordi
38778
38779         * XplatUIWin32.cs: Fixes ClientRect
38780
38781 2004-08-11 13:19  pbartok
38782
38783         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
38784           XplatUIX11.cs:
38785           - We had SetWindowPos and MoveWindow to set window positions and
38786             size, removed MoveWindow. We have GetWindowPos, so it made sense to
38787             keep SetWindowPos as matching counterpart
38788           - Added some X11 sanity checking
38789
38790 2004-08-11 12:59  pbartok
38791
38792         * Control.cs:
38793           - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
38794             (It seems that SetBounds is just a front for SetBoundsCore and
38795              SetBoundsCore updates the underlying window system and
38796              UpdateBounds is responsible for updating the variables associated
38797              with the Control and sending the events)
38798           - Major cleanup of Size handling; we now have two sizes, client_size
38799             and bounds. Bounds defines the window with decorations, client_size
38800             without them.
38801
38802 2004-08-11 12:55  pbartok
38803
38804         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38805           - Added method to calculate difference between decorated window and
38806             raw client area
38807
38808 2004-08-11 12:54  pbartok
38809
38810         * Label.cs:
38811           - Forcing redraw on resize
38812
38813 2004-08-11 11:43  pbartok
38814
38815         * ImageList.cs:
38816           - Removed disposing of the actual images when the list is disposed
38817
38818 2004-08-11 09:13  pbartok
38819
38820         * Control.cs:
38821           - Now properly reparents windows
38822
38823 2004-08-11 08:37  pbartok
38824
38825         * Control.cs:
38826           - Duh!
38827
38828 2004-08-11 07:47  pbartok
38829
38830         * Control.cs:
38831           - Rewrote the collection stuff. Might not be as fast now, not
38832             keeping the number of children around and accessible directly, but
38833             it's more straightforward
38834
38835 2004-08-11 07:44  pbartok
38836
38837         * AccessibleObject.cs:
38838           - Fixed to match ControlCollection rewrite
38839
38840 2004-08-11 07:43  pbartok
38841
38842         * ImageList.cs:
38843           - Added missing creation of the collection list
38844
38845 2004-08-10 20:08  jackson
38846
38847         * StatusBar.cs: Get the paint message from WndProc
38848
38849 2004-08-10 19:31  jackson
38850
38851         * ThemeWin32Classic.cs: Create Brushes as little as possible
38852
38853 2004-08-10 19:20  jackson
38854
38855         * UICues.cs: Add Flags attribute
38856
38857 2004-08-10 19:19  jackson
38858
38859         * StatusBarPanel.cs: Signature cleanup
38860
38861 2004-08-10 19:10  jackson
38862
38863         * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
38864           Initial implementation of status bar item drawing
38865
38866 2004-08-10 17:27  jordi
38867
38868         * TrackBar.cs: add missing methods, properties, and restructure to
38869           hide extra ones
38870
38871 2004-08-10 16:24  jackson
38872
38873         * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
38874           ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
38875           attribute
38876
38877 2004-08-10 13:21  jordi
38878
38879         * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
38880           enhancements and standarize on win colors defaults
38881
38882 2004-08-10 12:52  jackson
38883
38884         * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
38885           ThemeWin32Classic.cs: Implement DrawItem functionality
38886
38887 2004-08-10 12:47  jordi
38888
38889         * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
38890
38891 2004-08-10 12:32  jordi
38892
38893         * Control.cs: throw ontextchange event
38894
38895 2004-08-10 11:43  pbartok
38896
38897         * Control.cs:
38898           - Added more to the still unfinished Dock/Anchor layout code
38899
38900 2004-08-10 11:39  pbartok
38901
38902         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
38903           - Added GetWindowPos method
38904
38905 2004-08-10 11:36  pbartok
38906
38907         * XplatUIWin32.cs:
38908           - Implemented several methods
38909
38910 2004-08-10 09:47  jackson
38911
38912         * TrackBar.cs: Allow control to handle buffering
38913
38914 2004-08-10 09:41  jackson
38915
38916         * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
38917
38918 2004-08-10 09:24  jackson
38919
38920         * Label.cs, LinkLabel.cs: Let Control handle buffering.
38921
38922 2004-08-10 09:09  jackson
38923
38924         * StatusBar.cs: Let Control handle all the buffering.
38925
38926 2004-08-10 09:08  jackson
38927
38928         * Control.cs: Control will now handle the buffering code, so each
38929           control does not have to implement this.
38930
38931 2004-08-10 08:34  jackson
38932
38933         * XplatUIDriver.cs: Use default colors from the theme
38934
38935 2004-08-09 17:12  pbartok
38936
38937         * ImageList.cs:
38938           - Fixed several bugs Ravindra pointed out
38939
38940 2004-08-09 16:11  pbartok
38941
38942         * Control.cs:
38943           - Added incomplete dock layout code
38944           - Added support for mouse wheel
38945
38946 2004-08-09 16:09  pbartok
38947
38948         * XplatUIX11.cs:
38949           - Added handling for middle and right mousebutton
38950           - Added handling for mouse wheel
38951           - Added handling for key state and mouse state and position
38952           - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
38953           messages
38954
38955 2004-08-09 15:40  jackson
38956
38957         * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
38958           StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
38959           checkin
38960
38961 2004-08-09 15:37  jackson
38962
38963         * StatusBar.cs: Initial implementation of StatusBar
38964
38965 2004-08-09 15:36  jackson
38966
38967         * ITheme.cs: Add support for drawing status bar and getting status
38968           bar item sizes
38969
38970 2004-08-09 15:35  pbartok
38971
38972         * MouseButtons.cs:
38973           - Fixed values
38974
38975 2004-08-09 15:34  jackson
38976
38977         * ThemeWin32Classic.cs: Add support for drawing status bar and get
38978           status bar item sizes
38979
38980 2004-08-09 15:21  jackson
38981
38982         * ThemeWin32Classic.cs: Use known colors for default control
38983           colours
38984
38985 2004-08-09 15:12  jackson
38986
38987         * ThemeWin32Classic.cs: Make the default font static, it is static
38988           in control so this doesn't change functionality and creating fonts
38989           is sloooooow.
38990
38991 2004-08-09 14:56  pbartok
38992
38993         * X11Structs.cs:
38994           - Added GrabMode enum
38995
38996 2004-08-09 14:55  pbartok
38997
38998         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38999           - Removed Run method, was only required for initial development
39000
39001 2004-08-09 14:51  pbartok
39002
39003         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
39004           - Implemented GrabWindow/ReleaseWindow methods to allow pointer
39005           capture
39006
39007 2004-08-09 13:48  pbartok
39008
39009         * XplatUIX11.cs:
39010           - Fixed default sizing for child windows
39011
39012 2004-08-09 12:56  pbartok
39013
39014         * XplatUIX11.cs:
39015           - Added generation of WM_DESTROY message
39016           - Added handling of window manager induced shutdown
39017
39018 2004-08-09 11:31  jackson
39019
39020         * ThemeWin32Classic.cs: New names for control properties
39021
39022 2004-08-09 11:25  jackson
39023
39024         * Control.cs: Use new color names
39025
39026 2004-08-09 11:02  jackson
39027
39028         * XplatUI.cs: Get default window properties from the theme
39029
39030 2004-08-09 11:01  jackson
39031
39032         * ITheme.cs: The theme engine now controls default window
39033           properties
39034
39035 2004-08-09 11:00  jackson
39036
39037         * ThemeWin32Classic.cs: Add default window color properties
39038
39039 2004-08-09 10:17  jackson
39040
39041         * ThemeWin32Classic.cs: Use correct default back color
39042
39043 2004-08-09 10:05  jackson
39044
39045         * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
39046           the theme now.
39047
39048 2004-08-09 09:56  jackson
39049
39050         * XplatUI.cs: Remove defaults, these are handled by the theme now.
39051
39052 2004-08-09 09:54  jackson
39053
39054         * Control.cs: Get default properties from the theme.
39055
39056 2004-08-09 09:53  jackson
39057
39058         * ITheme.cs: Themes now handle default control properties
39059
39060 2004-08-09 09:53  jackson
39061
39062         * ThemeWin32Classic.cs: Themes now handle default control
39063           properties so coloring will be consistent
39064
39065 2004-08-08 16:54  jordi
39066
39067         * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
39068
39069 2004-08-08 15:08  jordi
39070
39071         * XplatUIX11.cs: fixes keyboard crash
39072
39073 2004-08-08 13:47  jordi
39074
39075         * Label.cs: add cvs header info
39076
39077 2004-08-08 12:09  jackson
39078
39079         * ThemeWin32Classic.cs: Add pen_buttonface
39080
39081 2004-08-08 11:52  jordi
39082
39083         * Label.cs, LinkLabel.cs: [no log message]
39084
39085 2004-08-08 11:34  jordi
39086
39087         * ThemeWin32Classic.cs: Use Windows Standard Colours
39088
39089 2004-08-07 17:32  jordi
39090
39091         * TrackBar.cs: throw exceptions of invalid enums values
39092
39093 2004-08-07 17:31  jordi
39094
39095         * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
39096           draw method name
39097
39098 2004-08-07 16:56  jackson
39099
39100         * HorizontalAlignment.cs: Initial checkin
39101
39102 2004-08-07 13:16  jordi
39103
39104         * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
39105           methods
39106
39107 2004-08-07 13:05  jordi
39108
39109         * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
39110           GetSysColor defines
39111
39112 2004-08-06 18:01  pbartok
39113
39114         * ThemeWin32Classic.cs:
39115           - Fixed some rounding issues with float/int
39116
39117 2004-08-06 18:00  jackson
39118
39119         * DockStyle.cs, AnchorStyles.cs:
39120
39121                   Add flags and serializable attributes.
39122
39123 2004-08-06 17:46  pbartok
39124
39125         * XplatUIX11.cs:
39126           - Implemented GetParent
39127
39128 2004-08-06 17:18  pbartok
39129
39130         * TrackBar.cs:
39131           - Fixed some rounding issues with float/int
39132
39133 2004-08-06 17:17  pbartok
39134
39135         * X11Structs.cs, XplatUIX11.cs:
39136           - Fixed Refresh and Invalidate
39137
39138 2004-08-06 15:30  pbartok
39139
39140         * Control.cs, X11Structs.cs, XplatUIX11.cs:
39141           - Fixed recursive loop when resizing
39142           - Improved/fixed redrawing on expose messages
39143
39144 2004-08-06 09:53  jordi
39145
39146         * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
39147           keyboard navigation
39148
39149 2004-08-06 08:02  pbartok
39150
39151         * X11Structs.cs, XplatUIX11.cs:
39152           - Fixed reparenting
39153           - Fixed window border creation
39154
39155 2004-08-05 15:38  pbartok
39156
39157         * XplatUIX11.cs:
39158           - Attempted fix for reparenting problems
39159
39160 2004-08-04 15:14  pbartok
39161
39162         * Control.cs:
39163           - Fixed Invalidation bug (calculated wrong client area)
39164           - Added ClientSize setter
39165
39166 2004-08-04 15:13  pbartok
39167
39168         * Form.cs:
39169           - Added AutoScale properties
39170
39171 2004-08-04 15:13  pbartok
39172
39173         * SWF.csproj:
39174           - Added latest files
39175
39176 2004-08-04 14:11  pbartok
39177
39178         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
39179           XplatUIX11.cs:
39180           - Added Invalidate handling
39181
39182 2004-08-03 17:09  jordi
39183
39184         * XplatUIDriver.cs: fixes spelling mistake
39185
39186 2004-07-27 09:53  jordi
39187
39188         * TrackBar.cs: fixes trackbar events, def classname, methods
39189           signature
39190
39191 2004-07-27 09:29  jordi
39192
39193         * ScrollBar.cs: fixes scrollbar events
39194
39195 2004-07-27 04:38  jordi
39196
39197         * Control.cs: changes to be able to run winforms samples
39198
39199 2004-07-26 11:42  jordi
39200
39201         * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
39202           ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
39203
39204 2004-07-26 05:41  jordi
39205
39206         * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
39207           MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
39208           implementation
39209
39210 2004-07-22 09:22  jordi
39211
39212         * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
39213           check link overlapping, implement events, and fixes
39214
39215 2004-07-21 10:28  jordi
39216
39217         * DialogResult.cs, IButtonControl.cs: fixes comments filenames
39218
39219 2004-07-21 10:19  jordi
39220
39221         * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
39222           LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
39223           LinkLabelLinkClickedEventArgs.cs,
39224           LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
39225           XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
39226           implementation
39227
39228 2004-07-19 13:09  jordi
39229
39230         * Control.cs, Label.cs: label control re-written: added missing
39231           functionlity, events, and properties
39232
39233 2004-07-19 10:49  jordi
39234
39235         * Control.cs: fixes SetBounds logic
39236
39237 2004-07-19 01:29  jordi
39238
39239         * Control.cs: Call RefreshWindow only if the window has created
39240
39241 2004-07-15 14:05  pbartok
39242
39243         * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
39244           - Implemented ImageList and ImageList.ImageCollection classes
39245           - Added ColorDepth enumeration
39246           - Updated SWF VS.Net project
39247
39248 2004-07-15 11:06  jordi
39249
39250         * XplatUIStructs.cs: added MsgButons enum
39251
39252 2004-07-15 11:03  jordi
39253
39254         * Control.cs: added basic mouse handeling events
39255
39256 2004-07-15 03:38  jordi
39257
39258         * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
39259           Vertical TrackBar control implementation
39260
39261 2004-07-13 09:33  jordi
39262
39263         * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
39264
39265 2004-07-13 09:31  jordi
39266
39267         * Control.cs, Form.cs: commit: new properties and fixes form size
39268           problems
39269
39270 2004-07-09 14:13  miguel
39271
39272         * ProgressBar.cs: Spelling
39273
39274 2004-07-09 11:25  pbartok
39275
39276         * ProgressBar.cs:
39277           - Removed usage of Rectangle for drawing. Miguel pointed out it's
39278           faster
39279
39280 2004-07-09 11:17  miguel
39281
39282         * ProgressBar.cs: 2004-07-09  Miguel de Icaza  <miguel@ximian.com>
39283
39284                 * ProgressBar.cs: Fixed spelling for `block'
39285
39286                 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
39287                 style guidelines.
39288
39289                 Avoid using the += on rect.X, that exposed a bug in the compiler.
39290
39291 2004-07-08 23:21  pbartok
39292
39293         * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
39294           AnchorStyles.cs, Application.cs, ApplicationContext.cs,
39295           BaseCollection.cs, Binding.cs, BindingContext.cs,
39296           BindingMemberInfo.cs, BindingsCollection.cs,
39297           BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
39298           BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
39299           ButtonState.cs, CaptionButton.cs, CheckBox.cs,
39300           ContainerControl.cs, Control.cs, ControlEventArgs.cs,
39301           ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
39302           ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
39303           CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
39304           DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
39305           FrameStyle.cs, GiveFeedbackEventArgs.cs,
39306           GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
39307           HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
39308           IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
39309           InputLanguageChangedEventArgs.cs,
39310           InputLanguageChangedEventHandler.cs,
39311           InputLanguageChangingEventArgs.cs,
39312           InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
39313           InvalidateEventArgs.cs, InvalidateEventHandler.cs,
39314           KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
39315           KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
39316           LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
39317           MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
39318           PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
39319           QueryAccessibilityHelpEventArgs.cs,
39320           QueryAccessibilityHelpEventHandler.cs,
39321           QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
39322           RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
39323           ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
39324           ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
39325           TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
39326           UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
39327           XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
39328           XplatUIX11.cs, lang.cs:
39329           - Initial check-in
39330
39331