2009-02-19 Ivan N. Zlatev <contact@i-nz.net>
[mono-project.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
blob473d1f821a0c0db88054e49f35c39bfee46eb45b
1 2009-02-19  Ivan N. Zlatev  <contact@i-nz.net>
3         * DataGridView.cs: Do not reset the columns when the data list changes, 
4         but only the rows. Fixes multiple bugs related to sorting, custom 
5         column styles being reset and more.
7 2009-02-19  Jonathan Pobst  <monkey@jpobst.com>
9         * ThemeWin32Classic.cs: Respect a PictureBox's Padding when
10         drawing the image.
12 2009-02-18  Andrés G. Aragoneses  <aaragoneses@novell.com>
14         * ToolBarButton.cs: Oops, use the correct event (fix r127298).
16 2009-02-17  Andrés G. Aragoneses  <aaragoneses@novell.com>
18         * ToolBarButton.cs: Event for Enabled property (needed to fix
19           UIA #474197).
21 2009-02-16  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
23         * TextBox.cs: When handling WndProc with autocomplete activated,
24         event if the new text is not causing any change in the look up
25         algorithm, save it as we normally do when numbers and letters.
26         Fixes #469967.
28 2009-02-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
30         * TreeNode.cs: When Text/StateImageIndex/StateImageKey/NodeFont change
31         Invalidate the proper bounds in the TreeView, not only resetting the
32         width.
33         Fixes #475542.
35 2009-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
37         * TreeNode.cs: Don't return TreeView.BackColor when retrieving our own
38         BackColor property. This is what .net does in both 1.1 and 2.0.
39         * TreeView.cs: When selected_node is not the same as highlighted_node,
40         we need to handle the back color in a different way, trying to use the
41         node's BackColor if it's not Color.Empty.
42         Fixes #464200.
44 2009-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
46         * TreeView.cs: When canceling selection in our MouseUp handler,
47         invalidate also the previous selected node bounds.
48         Fixes #464191.
50 2009-02-07  Ivan N. Zlatev  <contact@i-nz.net>
52         * DataGridView.cs: End or if end fails then cancel the current edit 
53         operation before clearing the data source.
55 2009-02-07  Ivan N. Zlatev  <contact@i-nz.net>
57         * DataGridView.cs: Data-bind only after the handle is created.
58         [Fixes bug #473680]
60 2009-02-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
62         * TreeView.cs: When handling the MouseMove event, check if
63         focused_node and selected_node fields are null - usually they are non
64         null, since we have always a selected node, but canceling selection by
65         handling BeforeSelect event leaves the two of them as null.
66         Fixes #470451.
68 2009-02-06  Neville Gao  <nevillegao@gmail.com>
70         * TabControl.cs: Control enabled to support accessibility.
71         [Fixes Bug #472428]
73 2009-02-05  Ivan N. Zlatev  <contact@i-nz.net>
75         * DataGridViewRowCollection.cs, DataGridView.cs: Fix row insertation: 
76            - Use ArrayList.Insert instead of the Item property so that the item 
77            is actually inserted and not an existing item replaced.
78            - Call DataGridView.OnRowsAddedInternal and drop internal from 
79            OnRowsAdded for binary compitability. This also fixes several 
80            redrawing issues.
81         [Fixes bug #472968]
83 2009-02-05  Andrés G. Aragoneses  <aaragoneses@novell.com>
85         * ToolBarButton.cs: Doh, fire OnUIATextChanged *after* setting
86           the value.
88 2009-02-04  Andrés G. Aragoneses  <aaragoneses@novell.com>
90         * ToolBarButton.cs: Add another event (OnUIATextChanged).
92 2009-02-04  Andrés G. Aragoneses  <aaragoneses@novell.com>
94         * ToolBarButton: Fix typo in previous commit (r125704).
96 2009-02-04  Andrés G. Aragoneses  <aaragoneses@novell.com>
98         * ToolBar.cs, ToolBarButton.cs: Add new UIA events to know
99         when a button gets focus, firing the events from the ToolBar.
100         r: jpobst
102 2009-02-04  Mario Carrion  <mcarrion@novell.com>
104         * ColumnHeader.cs: Raising ListView.ColumnWidthChanged when setting 
105         Width.
106         * ListView.cs: Internal method added: RaiseColumnWidthChanged, used by
107         ColumnHeader to raise ColumnWidthChanged.
108         [Fixes Bug #467086]
110 2009-02-03  Ivan N. Zlatev  <contact@i-nz.net>
112         * DataGridViewRowCollection.cs, DataGridView.cs: Move row completion 
113         code in the row collection code, so that the completion happens before 
114         the CollectionChanged event, also better encapsulation.
115         [Fixes bug #471987]
117 2009-02-02  Ivan N. Zlatev  <contact@i-nz.net>
119         * DataGridView.cs: When editing is finished do not remove the editing 
120         row, because it has already become a real one. Instead add a new one.
121         [Fixes bug #471754]
123 2009-02-02  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
125         * TreeView.cs: When drawing the node's image, check that the index
126         specified by the node is valid for the ImageList.
127         Fixes #471094.
129 2009-02-02  Andrés G. Aragoneses  <aaragoneses@novell.com>
131         * ToolBar.cs: Add new UIAPerformClick method to be called by
132         UIAutomationWinforms when someone calls Invoke() on the
133         ToolBarButtonProvider. r: jpobst
135 2009-02-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
137         * XplatUIX11.cs: Don't send a WM_SHOWWINDOW message when receiving
138         MapNotify/UnmapNotify events - we are already firing those events in
139         the proper places, so we avoid this way to send the same message two
140         times. I'm leaving the handling code in case we could break something
141         in the future, as this change seems dangerous (but needed).
142         Fixes #467546.
144 2009-02-01  Ivan N. Zlatev  <contact@i-nz.net>
146         * DataGridView.cs: Complete incomplete rows when they are added to 
147         the grid.
148         [Fixes bug #471068]
150 2009-02-01  Ivan N. Zlatev  <contact@i-nz.net>
152         * DataGridView.cs, DataGridViewColumnCollection.cs: Ensure that the 
153         binding is cleared prior to setting it to null. Fixes a regression 
154         causing exceptions when the DataSource is set to null and then set 
155         again to a data source.
157 2009-02-01  Ivan N. Zlatev  <contact@i-nz.net>
159         * DataGridView.cs, DataGridViewImageColumn.cs, DataGridViewCell.cs: 
160            - Make Image/Bitmap cells work.
161            - Handle images with size greater than the cell.
162            - Default to MiddleCenter alignment for image cells.
163         [Fixes bug #471101]
165 2009-01-30  Ivan N. Zlatev  <contact@i-nz.net>
167         * UpDownBase.cs: Force Height to PreferredHeight.
169 2009-01-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
171         * XplatUIX11.cs: We should use utf8 handling clipboard transference
172         with other x11 applications, and use utf16 when handling clipboard
173         data in the class library. Update the related points as well.
174         Fixes #468683.
176 2009-01-28  Ivan N. Zlatev  <contact@i-nz.net>
178         * DataGridViewCell.cs: Format strings according to the supplied 
179         CellStyle.Format.
180         [Fixes bug #470384]
182 2009-01-28  Ivan N. Zlatev  <contact@i-nz.net>
184         * DataGridView.cs: Reset the hover cell if it gets moved due to row(s) 
185         addition or removal. Fixes multiple crashes in OnMouseMove.
187 2009-01-27  Ivan N. Zlatev  <contact@i-nz.net>
189         * DataGridView.cs: Fix a NRE when setting the CurrentCell to null.
191 2009-01-27  Ivan N. Zlatev  <contact@i-nz.net>
193         * XplatUIX11.cs: Fire Timer.Tick even if there is no MainForm for the 
194         current context.
195         [Fixes bug #469239]
197 2009-01-26  Andreia Gaita  <avidigal@novell.com>
199         * WebBrowser.cs: fix initial value of ScrollbarsEnabled, so they
200         won't be disabled by default.
201         Fixes #468690
203 2009-01-26  Ivan N. Zlatev  <contact@i-nz.net>
205         * DataGridView.cs: Do not clear the rows if we are not databound.
207 2009-01-26  Ivan N. Zlatev  <contact@i-nz.net>
209         * DataGridView.cs: Do not be too smart about selecting the first cell 
210         when the first row is added as this is not what MS does. Fixes the 
211         failing unit tests.
213 2009-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
215         * TreeNode.cs: NextVisibleNode and PrevVisibleNode properties don't
216         take into account the fact that OpenTreeNodeEnumerator needs to call
217         MoveNext/MovePrevious to actually put the passed node as the one
218         retrieved in Current. This way this property should work as really
219         expected in .net.
220         Fixes part of #467225.
222 2000-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
224         * TreeView.cs: When calculating the scrollbars, don't use
225         TreeNode.Bounds, since it still can have the values of the previous
226         -and now invalid- layout -which depends on TreeView.skipped_nodes, and
227         could not have been updated as well-, and use the actual number of
228         visible number of nodes to compute the height needed to contain all
229         the nodes. Also reset the value of vbar to 0 when disabled - this way
230         we make sure that, when re-enabled, it will update the visible area of
231         the treeview, even if the previous value before disabling it is the
232         same as now. Finally don't do anything for the vbar.ValueChanged
233         handler - for the case wheer we manually set the value but don't the
234         vbar is disabled already.
235         Fixes part of #467225.
237 2009-01-23  Jonathan Pobst  <monkey@jpobst.com>
239         * ToolStrip.cs: Switch from foreach to for, in case the collection
240         somehow changes while enumerating it.
242 2009-01-23  Ivan N. Zlatev  <contact@i-nz.net>
244         * DataGridView.cs, DataGridViewCell.cs: Fix crashes when there is no 
245         editing control.
247 2009-01-23  Ivan N. Zlatev  <contact@i-nz.net>
249         * DataGridView.cs: Fix new row adding/editing in the non-databound 
250         scenario.
252 2009-01-21  Mike Gorse  <mgorse@novell.com>
254         * TrackBar.cs: Make LargeIncrement/Decrement internal so that UIA can
255           use them.
256           Added UIAValueParamChangedEvent.
258 2009-01-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
260         * TreeView.cs: In CollapseAll, set vbar to the maximum value, instead
261         of trying to set as top node the highest parent of the previous top
262         node. Moving to the bottom of the TreeView after a call to CollapseAll
263         is exactly what .net does. This should avoid some nasty issue when
264         CollapseAll is called and we don't need the vertical scroll bar.
266 2009-01-21  Mario Carrion <mcarrion@novell.com>
268         * Form.cs: UIA Support: Internal events added: UIAWindowStateChanged
269         and UIATopMostChanged.
271 2009-01-21  Sandy Armstrong  <sanfordarmstrong@gmail.com>
273         * MenuItem.cs: Add UIACheckChanged, UIARadioCheckChanged,
274         UIAEnabledChanged, and UIATextChanged events.
276         * Form.cs: Add UIAMenuChanged event.
278         * Menu.cs:
279         * MenuAPI.cs: Note which internal APIs are being used by UIA.
281 2009-01-21  Neville Gao  <nevillegao@gmail.com>
283         * ToolBar.cs: Control enabled to support accessibility.
284         [Fixes Bug #455950]
286 2009-01-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
288         * TreeView.cs: When handling mouse up event, check whether
289         highlighted_node is null or not - usually it should be non-null
290         alwaays, since the mouse down handler sets it, but some externa
291         operations, such TreeNodeCollection.Clear, could set it to null.
292         Fixes #438650.
294 2009-01-19  Ivan N. Zlatev  <contact@i-nz.net>
296         * ThemeWin32Classic.cs: Draw the menu item shortcut even if the menu 
297         item is disabled.
299 2009-01-19  Ivan N. Zlatev  <contact@i-nz.net>
301         * MenuAPI.cs: Do not handle shortcuts if the menu item is disabled.
302         [Fixes bug #467285]
304 2009-01-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
306         * MonthCalendar.cs: When handling the selection changes using the
307         mouse, don't set SelectionRange if the selection range didn't actually
308         change. This matters because, even if we set the range to the same
309         previous range, an extra DateChanged event is fired. Just to be clear:
310         SelectionRage property doesn't check whether the new value is
311         different to the previous one (by ref equals doesn't work here).
312         Fixes other bits of #364914.
314 2009-01-19  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
316         * MonthCalendar.cs: Remove the extra OnDateChanged call when handling
317         selection using the keyboard, since we are already firing this event
318         when setting SelectionRange. Also don't set SelectionRange if the
319         previous and the new value are the same (the property, just as .net
320         does, doesn't check whether the previous value and the new one are the
321         same). This saves us from firing OnDateChanged event if the selection
322         range didn't change actually.
323         Fixes the remaining bits of #364914.
325 2009-01-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
327         * ListBox.cs: When removing an item and the last item is selected,
328         remove it from the selection, and if selection mode is One try to
329         select the new last item.
330         Fixes #465422.
332 2009-01-16  Mike Gorse  <mgorse@novell.com>
334         * Splitter.cs: Make MaxSize internal so that UIA code can use it.
336 2009-01-16  Mario Carrion <mcarrion@novell.com>
338         * ColumnHeader.cs: UIA Support: raising internal event UIATextChanged 
339         when changing Text. 
341 2009-01-16  Carlos Alberto Cortez <calberto.cortez@ggmail.com>
343         * X11Structs.cs:
344         * XplatUIX11.cs: Properly encode/decode the unicode strings we
345         store/retrieve in the Clipboard. Also, since we try to convert the
346         data to different formats, separate the source and the result of
347         it, so we can always fallback to the original and don't mix wrong
348         conversions.
350 2009-01-16  Mike Gorse  <mgorse@novell.com>
352         * TextControl.cs: Add UIASelectionChanged event.
354 2009-01-16  Ivan N. Zlatev  <contact@i-nz.net>
356         * DataGridView.cs: Forward the first key events to the editing control.
357         [Fixes bug #457307]
359 2009-01-14  Andrés G. Aragoneses  <aaragoneses@novell.com>
361         * Application.cs: Oops, launch the copied handler of PreRun instead of
362         the global one (gendarme would bark otherwise). (Improving r123375)
364 2009-01-14  Andrés G. Aragoneses  <aaragoneses@novell.com>
366         * XplatUI.cs:
367         * Application.cs: Move the PreRun event fire to the end of the XplatUI
368         static ctor (we don't move the PreRun event to this class because its
369         usage would cause the call to the static ctor). This way we can get
370         a11y support for dialogs that run without App.Run.
372 2009-01-14  Andrés G. Aragoneses  <aaragoneses@novell.com>
374         * ListView.cs: New internal property to know the inner array's length of
375         the location of items, in order to avoid a try-catch strategy for the
376         case when this array has not been resized yet (for reference, look at
377         r123288). r: jpobst
379 2009-01-13  Andrés G. Aragoneses  <aaragoneses@novell.com>
381         * Application.cs: Simplify UIA initialization, reducing it from 4 to 1
382         reflection calls. This requires UIAutomationWinforms r123213.
384 2009-01-12  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
386         * MonthCalendar.cs: Detect selection changes in MouseDown/MouseMove
387         handlers and fire the DateSelected event until MouseUp is reached,
388         like .net does, instead of firing it for each mouse event.
389         Fixes part of #364914.
391 2009-01-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
393         * TreeView.cs: When the selection gets canceled using the BeforeSelect
394         event, invalidate the previous highlighted_node bounds, to show the
395         user that the item was *not* selected.
396         Fixes #464191.
398 2009-01-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
400         * ComboBox.cs: Separate some scroll logic: setting SelectedIndex, as
401         well as -in DropDown and Simple modes- writing in the textbox should
402         try to set the requested item as the top one, but navigating with the
403         keyboard and handling mouse selection don't need that behaviour. Also,
404         when resetting selected_index handling key press events, reset
405         ComboListBox.HighlightIndex. 
406         Fixes the remaining bits of #464188.
408 2009-01-11  Ivan N. Zlatev  <contact@i-nz.net>
410         * DataGridView.cs: Fix crashes when shortcut keys are pressed, but 
411         there are no cells:
412            - CurrentCellAddress should be -1, -1 and not 0, 0.
413            - Be tolerant and fall back to clearing the current cell if either 
414            column or row is -1 in MoveCurrentCell.
415            - Misc. more -1 checks.
417 2009-01-11  Ivan N. Zlatev  <contact@i-nz.net>
419         * DataGridView.cs: Preserve the column index. Fixes a regression 
420         introduced by the data binding position tracking code.
422 2009-01-11  Ivan N. Zlatev  <contact@i-nz.net>
424         * DataGridView.cs: If the bottom of the row matches the client height 
425         do not regard the row as partially visible. Fixes the weird scrolling 
426         when there is no scrollbar.
428 2009-01-11  Ivan N. Zlatev  <contact@i-nz.net>
430         * DataGridViewComboBoxCell.cs: Implement/Fix the data binding.
432 2009-01-09  Mario Carrion  <mcarrion@novell.com>
434         * MessageBox.cs: Fixed internal UIAIconRectangle property.
436 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
438         * DataGridViewCheckBoxCell.cs: Respect the ReadOnly state of the Cell.
440 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
442         * DataGridView.cs: Track the Position in the CurrencyManager.
444 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
446         * DataGridView.cs: Implement data-bound new item editing/addition.
447         * DataGridViewRowCollection.cs: Make it possible for us to internally 
448         remove the edit row.
449         [Fixes bugs #457107, #457308, #325240]
451 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
453         * CurrencyManager.cs: Even if Position is set to a greater value than the 
454         list count reset it to position of the last item.
456 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
458         * BindingSource.cs: AddNew doesn't set index/add_pending for IBindingList. 
459         Fix that in order to make CancelNew to work.
461 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
463         * BindingSource.cs: When adding a new item try to delegate to the internal 
464         list first before throwing an exception.
466 2009-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
468         * ComboBox.cs: When setting the text and adjusting the top_item, do it
469         *only* if the current item is *not* visible already.
470         Fixes part of #464188.
472 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
474         * DataGridView.cs: Requesting the CurrencyManager for the first time can 
475         lead to unexpected OnBindingContextChanged calls and recursive rebinding. 
476         Fix that.
477         [Fixes bug #464493]
479 2009-01-08  Brad Taylor  <brad@getcoded.net>
481         * ComboBox.cs: Expose a few private fields as internal UIA properties.
483 2009-01-07  Mario Carrion <mcarrion@novell.com>
484         
485         * DataGrid.cs: CWL removed.
487 2009-01-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
489         * RadioButton.cs: When setting Checked, we should first update the
490         check state of the current RadioButton, as well as invalidating it,
491         and after that actually update the siblings. This is done to match
492         .net.
493         Fixes the remaining bits of #463028.
495 2009-01-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
497         * RadioButton.cs: Setting Checked to false should set TabStop to stop
498         as well. Also, when we get the focus and no other RadioButton is
499         selected in the parent control, we should mark ourselves as Checked.
500         Fixes part of #463028.
502 2009-01-05  Mario Carrion <mcarrion@novell.com>
504         * DataGrid.cs: UIA suppport. internal events: 
505         UIAGridCellChanged, UIAColumnsHeadersVisibleChanged, 
506         UIASelectionChanged, UIACollectionChanged. Internal properties: 
507         UIARowHeight, UIACellsArea, UIACaptionArea, 
508         UIAColumnHeadersArea, UIASelectedRows, UIACurrentTableStyle, 
509         UIAVScrollBar and UIAHScrollBar.
511 2009-01-05  Jonathan Pobst  <monkey@jpobst.com>
513         * ToolStripSplitStackLayout.cs: Enable the overflow button if any
514         of the buttons are set to Overflow = Always.
515         [Fixes bug #463013]
517 2009-01-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
519         * BindingNavigator.cs: Properly enable/disable the toolstrip buttons,
520         based on whether the binding source is availble or not. Fixes #463008.
522 2009-01-03  Ivan N. Zlatev  <contact@i-nz.net>
524         * DataGridViewCell.cs: We should return a value even if we are not bound 
525         to a DataGridView.
527 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
529         * CurrencyManager.cs, DataGrid.cs: 
530            - Rename CanAddRows to AllowNew. The CurrencyManager has no 
531            concept of "rows".
532            - Add two more internal properties AllowRemove and AllowEdit.
533         * DataGridView.cs: Refactor in a data-bound situation AllowUserToAddRows, 
534         AllowUserToDeleteRows and cell ReadOnly state to be also checked against the 
535         CurrencyManager data source.
537 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
539         * DataGridView.cs: Fix crashes caused by assigning negative values to 
540         ScrollBar.LargeIncrement when the ClientSize.Width/Height is less than 
541         the column/row heights/widths.
542         [Fixes bug #462684]
544 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
546         * DataGridView.cs: Non-autogenerated columns that have a data property 
547         set that exists in the current datasource should be set to be data-bound.
549 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
551         * DataGridView.cs: Fix column sorting for columns containing null 
552         values. A "null" value is not always "null" (e.g could be String.Empty) 
553         and thus parsing numeric types throwed an exception for "null" values.
555 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
557         * DataGridView.cs: Detach the editing control when the edit is 
558         finished.
560 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
562         * DataGridView.cs: Multiple fixes to handle last column/row removal 
563         and cell movement after that instead of throwing exceptions.
565 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
567         * DataGridViewCellCollection.cs: When cells are removed the column 
568         indices become invalid if the cell is not the last one and have to 
569         be refreshed.
571 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
573         * DataGridView.cs: Return false in CommitEdit if there was an error.
575 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
577         * DataGridView.cs: Remove a leftover Console.WriteLine.
579 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
581         * DataGridViewRow.cs: Access the indexer of the data manager directly 
582         instead of the internal list.
584 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
586         * DataGridViewCell.cs, DataGridView.cs, DataGridViewCheckBoxCell.cs: 
587         Rewrite the value getting, setting, parsing, formatting logic:
588            - If data-bound value get/set should actually get and set from the 
589              data source.
590            - Make proper usage of TypeConverters for value parsing/formatting.
591            - Raise DataError if setting the new value fails.
592            - Get rid off the internal valueType field and get/set the ValueType 
593            property instead.
594         [Fixes bug #462051]
596 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
598         * DataGridView.cs: Rewrite the DataBinding layer:
599            - Get rid off all BindingSource/IBindingList/DataSet/DataTable 
600            specific code.
601            - Get rid off the per DataSource type column autogeneration code.
602            - Use the CurrencyManager for everything that is DataBinding related.
604 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
606         * CurrencyManager.cs: Do not fire duplicate ListChanged events.
608 2008-12-31  Ivan N. Zlatev  <contact@i-nz.net>
610         * DataGridView.cs, DataGridViewRow.cs: Add a new internal property 
611         DataManager to fetch the CurrencyManager for the DataGridView and to 
612         spare this logic for the other components to follow.
614 2008-12-31  Mario Carrion  <mcarrion@novell.com>
616         * MessageBox.cs: UIA support: new properties: UIAMessage, 
617         UIAMessageRectangle and UIAIconRectangle.
619 2008-12-31  Sandy Armstrong  <sanfordarmstrong@gmail.com>
621         * FileDialog.cs: Add PopupButtonPanel.PopupButton.PerformClick method
622         and DirComboBox.DirComboBoxItem.ToString override for UIA support.
624 2008-12-31  Ivan N. Zlatev  <contact@i-nz.net>
626         * DataGridView.cs: Do not autogenerate duplicate column for a 
627         data member that has already problematically been assigned one.
628         [Fixes bug #457305]
630 2008-12-30  Jonathan Pobst  <monkey@jpobst.com>
632         * ProfessionalColorTable.cs: Better detection of user's theme.
633         [Fixes bug #462766]
635 2008-12-30  Ivan N. Zlatev  <contact@i-nz.net>
637         * DataGridView.cs: In the case where there are no autogenerated 
638         columns and the user adds columns problematically we must generate 
639         the rows after the very first column is added.
641 2008-12-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
643         * DateTimePicker.cs: When increasing/decreasing the value of month
644         with ShowUpDown set to true, moving from december to january, and
645         moving from january to december should adjust the year to the next and
646         the previous year, respectively.
647         Fixes the remaining bits of #459674.
649 2008-12-30  Ivan N. Zlatev  <contact@i-nz.net>
651         * DataGridView.cs: If a new cell is selected edit mode should be 
652         immediately enabled only if EditOnEnter is set. Whether the mouse 
653         or not was used to select the cell is irrelevant.
655 2008-12-29  Ivan N. Zlatev  <contact@i-nz.net>
657         * DataGridView.cs: Remove a bogus ReBind call, which was causing 
658         recursive rebinding.
660 2008-12-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
662         * DateTimePicker.cs: Handle the "MMMM" month format.
663         Fixes #459674.
665 2008-12-23  Ivan N. Zlatev  <contact@i-nz.net>
667         * DataGridView.cs: 
668            - Make ReBind private and refactor various calls to call ReBind 
669            instead of ClearBinding/DoBinding
670            - Rebind when the column collection changes
671         * DataGridViewColumnCollection.cs: 
672            - Leave the rebinding on change to be handled by the DataGridView.
674 2008-12-23  Jonathan Pobst  <monkey@jpobst.com>
676         * DataGridView.cs: Add a ReBind convenience method.
677         * DataGridViewColumnCollection.cs: Rebind when a column is added.
678         [Fixes bug #462019]
680 2008-12-23  Neville Gao  <nevillegao@gmail.com>
682         * StatusBar.cs: Modified argument variable.
683         * SplitContainer.cs: Control enabled to support accessibility.
684         [Fixes Bug #455950]
686 2008-12-22  Jonathan Pobst  <monkey@jpobst.com>
688         * ToolStripMenuItem.cs: Guard against an NRE.
689         [Fixes bug #457110]
691 2008-12-22  Mario Carrion  <mcarrion@novell.com>
693         * Control.cs: AccessibleXXXX properties don't return 
694         AccessibleObject.XXXX, instead a local referece is returned.
696 2008-12-22  Neville Gao  <nevillegao@gmail.com>
698         * PrintPreviewControl.cs: Added internal properties to support
699         accessibility.
700         [Fixes Bug #459699]
702 2008-12-19  Mario Carrion  <mcarrion@novell.com>
704         * Control.cs: Reverted r121561. 
706 2008-12-19  Andrés G. Aragoneses  <aaragoneses@novell.com>
708         * X11DesktopColors.cs: Since r121873 we don't need gtk a11y checks here,
709         it has been moved to the bridge.
711 2008-12-18  Brad Taylor  <brad@getcoded.net>
713         * DateTimePicker.cs: Add a few UIA specific events, and a couple
714         internal methods useful for UIA.
716 2008-12-18  Mario Carrion <mcarrion@novell.com>
718         * ListBox.cs: Fixed GetItemRectangle when MultiColumn is true.
719         [Fixes Bug #455752]
721 2008-12-17  Mike Gorse  <mgorse@novell.com>
723         * ListView.cs, ListViewItem.cs: Send OnUIAFocusedItemChanged if an
724           item's Focused property is set.
726 2008-12-17  Sandy Armstrong  <sanfordarmstrong@gmail.com>
728         * TreeView.cs:
729         * TreeNode.cs:
730         * TreeNodeCollection.cs: Add events for UIA support:
731         UIACheckBoxesChanged, UIALabelEditChanged, UIANodeTextChanged, and
732         UIACollectionChanged.
734 2008-12-17  Bill Holmes  <billholmes54@gmail.com>
736         * ListViewItem.cs (ListViewSubItem.ctor): Initalizing the 
737           SubItemStyle member field. 
739         Contributed under MIT/X11 license.
741 2008-12-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
743         * ListBox.cs: In MultiColumn mode don't use top_index to calculate the
744         y coord, since it's useless in this case, and we need to rely only on
745         the number of rows and ItemHeight to compute this value.
746         Fixes part of #257471.
748 2008-12-15  Mike Gorse  <mgorse@novell.com>
750         * StatusBar.cs: Send OnUIACollectionChanged in Remove().
752 2008-12-15  Mario Carrion  <mcarrion@novell.com>
754         * Control.cs: Accessibility properties instantiate AccessibilityObject when
755         needed.
756         [Fixes Bug #459223]
758 2008-12-15  Brad Taylor  <brad@getcoded.net>
760         * ToolStripItem.cs: Add a UIA specific event for listening for when a
761         ToolStripItem becomes selected or deselected.
763 2008-12-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
765         * MonthCalendar.cs: Select the date in MouseDown, not in MouseUp, as
766         .net does. Use the date in the point of the mouse move coords as the
767         new range as well, if the left button of the mouse is being pressed.
768         Fixes #364914.
770 2008-12-12  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
772         * MonthCalendar.cs: When modifying either AnnuallyBoldedDates,
773         MonthlyBoldedDates or BoldedDates call UpdateBoldedDates, to
774         effectively repaint the control.
775         Fixes the remaining bits of #417961.
777 2008-12-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
779         * MonthCalendar.cs: When setting MaxDate/MinDate, adjust the selected
780         range to contain only dates within the new possible range.
781         Fixes part of #417961.
783 2008-12-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
785         * MaskedTextBox.cs: MaskedTextService.Replace doesn't expect the
786         length of the text, but the end position, so we need to substract 1 to
787         have a valid value. Also, in the same InputText method, don't use
788         SelectionLength as the length of the text, since the selected text
789         could actually be empty, but we need to set the value anyway.
790         Fixes #457370.
792 2008-12-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
794         * TextBox.cs: Don't do any auto complete task if the custom source is
795         null or empty. Also avoid duplication of code.
796         Fixes #457743.
798 2008-12-09  Ivan N. Zlatev  <contact@i-nz.net>
800         * DataGridView.cs: Refresh column sizes when new rows are added.
801         [Fixes bug #457050]
803 2008-12-09  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
804         * RichTextBox.cs: When parsing the contents of a rtf file, don't call
805         Split to create a line - we are already doing this, by _adding_ a new
806         one when rtf_cursor_x is 0 (this field gets this value just after we
807         receive the newline param as true). This avoids having a proportional number
808         of empty lines in the end of the rich text box.
809         Fixes #396664.
811 2008-12-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
813         * RichTextBox.cs: When saving the contents as a plain text, don't add
814         a new line for every Line structure, since the data in Document
815         already contains the new line characters. This avoids duplicated new
816         lines using the Save methods.
817         Fixes #445618.
819 2008-12-09  Sandy Armstrong  <sanfordarmstrong@gmail.com>
821         * TreeView.cs: Expose ScrollBars as internal properties, for use by UIA
822         framework.  Fixes bug #457678.
824 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
826         * DataGridViewRow.cs: Prevent an exception on a not yet databound grid, 
827         where datasource is null.
828         [Fixes exception reported in bug 441240]
830 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
832         * DataGridView.cs: EndEdit validation fixes.
834 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
836         * DataGridView.cs: This is the cool patch that adds support for 
837         actually updating the data in the databinding backend after editing. 
838         With bonus firing and handling the DataError event.
840 2008-12-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
842         * Line.cs: When calculating the text tags's Shift value, store it as
843         pixels instead of points. This way we can actually handle different
844         fonts in the same RichTextBox, as well as the right size of the caret.
845         Fixes part of #351938.
847 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
849         * DataGridViewCheckBoxCell.cs: Fix to make it work. Wrong value was 
850         casted to CheckState causing InvalidCastExceptions.
852 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
854         * DataGridView.cs: Fix the DataGridViewEditMode.EditOnEnter behavior 
855         to not depend on the item being clicked.
857 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
859         * DataGridView.cs: Implement NotifyCurrentCellDirty, so that it no 
860         longer throws a NotImplementedException.
862 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
864         * DataGridView.cs: Set EditingControlFormattedValue when preparing an 
865         IDataGridViewEditingControl for editing.
867 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
869         * DataGridViewComboBoxCell.cs: Implement data binding support.
871 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
873         * DataGridView.cs: Use the CurrencyManager to update the data source 
874         binding position instead of casting the data sourcde to BindingSource.
875         This enables position updating for other type of data sources.
877 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
879         * ComboBox.cs: Update the SelectedIndex before updating the Text 
880         in OnDisplayMemberChanged.
882 2008-12-07  Ivan N. Zlatev  <contact@i-nz.net>
884         * DataGridView.cs: Fix our support for IDataGridViewEditingControl.
885         [Fixes bug #457112]
887 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
889         * DataGridView.cs: Sorting fixes:
890            - Be strict when sorting is enabled.
891            - If there is a data source delegate the sorting request.
893 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
895         * Binding.cs: When converting the data also try with the destination 
896         type typeconverter. This indirectly adds support for Nullable types 
897         in our databinding layer.
899 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
901         * DataGridView.cs: When cell editing is finished focus back the 
902         DataGridView. Fixes keyboard navigation post-editing.
904 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
906         * DataGridView.cs: Fix the cell editing by delaying the currentCell 
907         setting to after EndEdit is called for the old cell.
909 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
911         * BindingSource.cs: Reset the bindings. Fixes a NotWorking test.
913 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
915         * XplatUIX11.cs: Send WM_HELP only to the focused window.
917 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
919         * CurrencyManager.cs: Fix exceptions when resetting the data source 
920         for the same time (e.g. in ComboBox): 
921            - Do not set the list position if we are still transferring data
922            - When resetting the list firstly push the data then update the 
923            binding.
924         * Binding.cs: Check BindingManager.Position == -1 instead of 
925         BindingManager.Current == null in order to avoid unexpected 
926         exceptions.
928 2008-12-05  Brad Taylor  <brad@getcoded.net>
930         * MonthCalendar.cs: Add UIA specific events so that we can know when
931         the selection changes, and when MaxSelectedCount changes.
933 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
935         * DataGridView.cs: Cleanup rows_displayed out of OnPaint. It's not 
936         used for anything.
938 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
940         * DataGridView.cs: Fix scrolling and selection of cells/rows prior
941         to the control being drawn for the first time by:
942            - Implement DisplayedRowsCount to not rely on the control being
943            already painted. Also added support for the partial row flag.
944            - Fix scrolling to take into account partial rows and scroll to
945            them.
946         [Fixes bug #456527]
948 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
950         * DataGridView.cs: Do not reset the CurrentCell when the handle is
951         created if the user has already set it.
953 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
955         * DataGridView.cs: Fix CurrentCell to actually select the cell.
957 2008-12-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
959         * XplatUIX11.cs: Add support to RichTextFormat by reading it as ascii
960         text and then let the underneath users of IDataObject interpret and
961         parse by themselves. 
962         Fixes #439251.
964 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
966         * DataGridView.cs: Fix my previous commit to actually update what it 
967         was supposed to.
969 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
971         * DataGridView.cs: Ensure that when a row is removed the all the 
972         current row/column/cell get updated. Fixes multiple exceptions.
974 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
976         * DataGridView.cs: Fix scrolling to the current cell when key navigation 
977         is used.
978         [Fixes bug #443560]
980 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
982         * DataGridView.cs, DataGridViewCell.cs: Fire CellStateChanged events.
983         * DataGridViewCell.cs: Set the cell as selected prior to setting the 
984         new state.
985         [Fixes issue 1 in bug #443560]
987 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
989         * DataGridView.cs: Invalidate after the current row/column seletion 
990         chagnes.
991         [Fixes bug #438434]
993 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
995         * DataGridView.cs: Refresh the data if the data list is reset, etc.
997 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
999         * DataGridView.cs: Handle datasource state changes:
1000            - IBindingList - list changes
1001            - BindingSource - list changed and datasource changes
1003 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1005         * DataGridView.cs: Select the first cell when databound. 
1006         Visually select when CurrentCell is set.
1008 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1010         * DataGridView.cs: Set the current cell before raising CellClick.
1012 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1014         * DataGridView.cs: Cleanup MoveCurrentCell to not fire any CellEnter, 
1015         CellLeave events as this is already done in SetCurrentCellAddressCore.
1017 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1019         * DataGridView.cs: Set the minimum size for the columns to be the 
1020         width of their header, so that the columns don't get squashed 
1021         all together.
1023 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1025         * DataGridView.cs: After the data is bound PerformLayout, so that 
1026         the columns get autosized.
1028 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1030         * DataGridView.cs: Move all currentCell setting code into 
1031         one central place - SetCurrentCellAddressCore. That way the 
1032         current cell is properly updated when programatically set.
1033         Fire RowEnter/Leave events.
1035 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1037         * DataGridView.cs: Update the CurrencyManager.Position, so that 
1038         when a BindingSource is used BindingSource.Current will be correct.
1040 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1042         * GroupBoxRenderer.cs: Fix when VisualStyles disabled:
1043            - No caption text is drawn because Color.Empty is used.
1044            - Fix top and height off by 1.
1046 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1048         * DataGridViewRow.cs: Implement DataBoundItem.
1050 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1052         * BindingSource.cs: Return null for Current if there is no data present.
1054 2008-11-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1056         * MenuAPI.cs: Add a Menu.SelectedItem null check when navigating the
1057         menus using the arrow keys. Also when handling the left arrow key, don't 
1058         assign the current menu to the parent one, if the parent is null.
1059         Fixes #446392.
1061 2008-11-24  Everaldo Canuto  <ecanuto@novell.com>
1063         * PrintPreviewDialog.cs: Fix toolbar size, height must be 26. Fixes bug
1064         #413501.
1066 2008-11-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1068         * Scrollbar.cs:
1069         * ScrollableControl.cs: Simplify the code to manually set the size of
1070         the thum area, avoiding duplication of code, and also preserving the
1071         right value for different code paths - this can happen when size
1072         changes are made to the scrollbar after setting LargeChange, Maximum
1073         or related properties for the ScrollBar.
1075 2008-11-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1077         * ScrollableControl.cs: When scrolling, don't invalidate the entire
1078         area, and call to XplatUIX11.ScrollWindow instead. This is exactly
1079         what .Net does: copy the visible area, and only invalidate the part of
1080         the area that wasn't visible before scrolling.
1081         Fixes #441738.
1083 2008-11-24  Jonathan Pobst  <monkey@jpobst.com>
1085         * DataGridView.cs: Listen for a DataTable's TableCleared event so we
1086         can clear ourselves when it is raised, we don't have a newrowindex
1087         if we don't have any columns.
1088         * DataGridViewRowCollection.cs: Ensure we always delete all the rows,
1089         re-index after each delete so the NewRow will have the correct index.
1090         [Fixes bug #448005]
1092 2008-11-24  Jonathan Pobst  <monkey@jpobst.com>
1094         * Form.cs: Don't change min/max size if it is empty.
1095         [Fixes bug #447873]
1097 2008-11-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1099         * ScrollBar.cs:
1100         * ScrollableControl.cs: When the manual thumb size is used, the
1101         maximum allowed value should depend on that thumb size, instead of
1102         LargeChange (using the maximum - LargeChange + 1 value). But
1103         LargeChange should be used normally when incrementing/decrementing.
1104         Fixes the remaining part of #441546.
1106 2008-11-23  Andreia Gaita  <avidigal@novell.com>
1108         * WebBrowser.cs, WebBrowserBase.cs: Delay loading of DocumentStream 
1109         until an about:blank has been loaded (according to spec). Fix 
1110         ScrollbarsEnabled to set when a document is loaded (since we use js 
1111         for it). Fix url so it reflects the current loading document and not 
1112         the previous one. Send StatusChanged events.
1114 2008-11-23  Andreia Gaita  <avidigal@novell.com>
1116         * Application.cs: If a message comes in for an embedded control
1117         (like webbrowser) when we're capturing the keyboard, release the
1118         capture and continue.
1119         [fixes #429462]
1121 2008-11-22  Andreia Gaita  <avidigal@novell.com>
1123         * XplatUI.cs: Only use PlatformID.MacOSX enum when not building on VS
1125 2008-11-21  Andreia Gaita  <avidigal@novell.com>
1127         * WebBrowser.cs, HtmlDocument.cs: Fixes for #428172
1128         
1129 2008-11-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1131         * ScrollBar.cs:
1132         * ScrollableControl.cs: Set manually the thumb size for the
1133         ScrollableControl scrollbars, so any further changes to the underneath
1134         scrollbars respect the original size.
1135         Fixes part of #441546.
1137 2008-11-21  Geoff Norton  <gnorton@novell.com>
1139         * XplatUI.cs: Ensure that we can run on .net 2.0 with mono 2.2 where
1140         PlatformID.MacOSX now exists.
1142 2008-11-20  Jonathan Pobst  <monkey@jpobst.com>
1144         * TextBoxBase.cs: Provide a default implementation for ChangeBackColor.
1145         Having something internal abstract isn't very nice for people who want
1146         to inherit from this class.
1148 2008-11-20  Jonathan Pobst  <monkey@jpobst.com>
1150         * ToolStripItem.cs: Don't crash if ImageIndex or ImageKey is set to an
1151         invalid value.  Just return null for the Image, and use the ImageList's
1152         ImageSize for calculations.
1154 2008-11-20  Jonathan Pobst  <monkey@jpobst.com>
1156         * ComboBox.cs: Call HideWindow instead of Hide when closing the dropdown
1157         through DroppedDown so the proper events get called and state gets reset.
1158         [Fixes bug #446805]
1160 2008-11-18  Jonathan Pobst  <monkey@jpobst.com>
1162         * DataGridViewColumnCollection.cs: Make sure we re-index the columns after
1163         the collection is modified.
1165 2008-11-17  Jonathan Pobst  <monkey@jpobst.com>
1167         * DomainUpDown.cs: Remove string cache and reflection optimizations.  They
1168         aren't always correct, and fixing them for every case is not worth the
1169         negligible benefit they provide.
1170         [Fixes bug #445713]
1172 2008-11-17  Jonathan Pobst  <monkey@jpobst.com>
1174         * DataGridView.cs: We should never add actual cells to the RowTemplate.
1175         Internally, use RowTemplateFull to give us a new row with cells.
1176         * DataGridViewColumnCollection.cs: Clear Rows when we clear Columns.
1177         * DataGridViewRowCollection.cs: Use RowTemplateFull.
1179 2008-11-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1181         * XplatUIX11.cs: Forms without borders should be able to change its
1182         size - specially they should be able to be maximized, adding the
1183         respective MotifFunctions.Resize bit when setting window properties as
1184         well as *not* marking the Hwnd as size fixed.
1185         Fixes #444347.
1187 2008-11-12  Jonathan Pobst  <monkey@jpobst.com>
1189         * DataGridViewCellStyle.cs: Allow SelectionBackColor to have
1190         an alpha value.
1191         [Fixes bug #444348]
1193 2008-11-11  Jonathan Pobst  <monkey@jpobst.com>
1195         * DataGridView.cs: Add internal to OnAutoSizeColumnModeChanged.
1196         * DataGridViewColumn.cs: Recalculate columns when AutoSizeMode changes.  Raise
1197         AutoSizeColumnModeChanged.
1198         [Fixes bug #443609]
1200 2008-11-11  Jonathan Pobst  <monkey@jpobst.com>
1202         * DataGridViewRowCollection.cs: Guard against the user deleting the
1203         NewRow.  Add an internal delete so we can still delete it.
1204         * DataGridView.cs: Use the new internal delete when deleting the NewRow.
1205         [Fixes bug #442181]
1207 2008-11-10  Jonathan Pobst  <monkey@jpobst.com>
1209         * TextControl.cs: Add some order of operation to our math so
1210         we don't end up with a negative height for our invalidate rect.
1211         [Fixes bug #381889]
1213 2008-11-10  Jonathan Pobst  <monkey@jpobst.com>
1215         * Control.cs: When our enabled changes, notify our implicit children
1216         controls as well as our regular controls.
1217         [Fixes bug #441523]
1219 2008-11-08  Andreia Gaita <shana@jitted.com> 
1221         * HtmlElement.cs: Small code cleanup
1223 2008-11-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1225         * BindingNavigator.cs: MoveFirstItem should be enabled only if
1226         position is larger than 0, not only different than 0. Also Position
1227         and Count items should be enabled if the BindingSource is non null and
1228         non empty.
1229         Fixes #439961.
1231 2008-11-05  Jonathan Pobst  <monkey@jpobst.com>
1233         * TabControl.cs: Don't raise SelectedIndexChanged until we have
1234         actually modified the tab collection, so TabCount will be correct.
1235         [Fixes bug #441896]
1237 2008-11-05  Sandy Armstrong  <sanfordarmstrong@gmail.com>
1239         * ListViewItem.cs: Mark ListViewSubItem.UIATextChanged event as
1240         NonSerialized to fix serialization of ListViewItem.
1242 2008-11-04  Mike Gorse  <mgorse@novell.com>
1244         * ListView.cs: Call OnUIAFocusedItemChanged after completing the
1245           focus change, and always call in SetFocusedItem.
1246         * ListBox.cs: Add UIAFocusedItemChanged as in ListView.
1248 2008-11-04  Jonathan Pobst  <monkey@jpobst.com>
1250         * ComboBox.cs: Only call OnDrawItem when we are using an OwnerDraw
1251         mode.  Based on a patch by John Mortlock.
1252         [Fixes bug #436790]
1254 2008-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1256         * ListView.cs: Use the UsingGroups property where needed, instead of
1257         duplicating the check in other places.
1259 2008-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1261         * ListView.cs: When calculating layout, refresh the count of items
1262         belonging to the default item, insteas of doing it only one time. This
1263         was already working fine for icon views, not not for details.
1264         Fixes #438948.
1266 2008-11-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1268         * ListView.cs:
1269         * ListViewItem.cs:
1270         * ThemeWin32Classic.cs: Don't render Tile view if there wasn't a call
1271         to Applicatin.EnableVisualStyles, and use LargeIcon view, as .net
1272         does.
1273         Fixes #437933.
1275 2008-11-03  Sandy Armstrong  <sanfordarmstrong@gmail.com>
1277         * ListView.cs: Wrap call to OnUIAFocusedItemChanged with #if NET_2_0.
1279 2008-11-03  Sandy Armstrong  <sanfordarmstrong@gmail.com>
1281         * ListView.cs: Add internal UIAFocusedItemChanged event.  Fixes bug
1282         #441280, patch by Mike Gorse <mgorse@novell.com>.
1284 2008-11-03  Jonathan Pobst  <monkey@jpobst.com>
1286         * TreeView.cs: When doing ExpandAll, don't scroll to the bottom
1287         if there is no scrollbar.
1288         [Fixes bug #440885]
1290 2008-11-03  Jonathan Pobst  <monkey@jpobst.com>
1292         * ProgressBar.cs, ThemeWin32Classic.cs, ThemeVisualStyles.cs: Commit
1293         patch from Andy Hume that fixes many issues with ProgressBar.
1294         [See bug #440220]
1296 2008-11-03  Jonathan Pobst  <monkey@jpobst.com>
1298         * Form.cs: Don't allow MinimumSize and MaximumSize to conflict.
1299         [Fixes bug #438866]
1301 2008-11-03  Sandy Armstrong  <sanfordarmstrong@gmail.com>
1303         * UpDownBase.cs:
1304         * DomainUpDown.cs:
1305         * NumericUpDown.cs: Internal events added to UpDownBase:
1306         UIAUpButtonClick and UIADownButtonClick.  Patch by Neville Gao
1307         <ngao@novell.com>.
1309 2008-11-03  Sandy Armstrong  <sanfordarmstrong@gmail.com>
1311         * ToolStripLabel.cs: Internal event added: UIAIsLinkChanged.
1313 2008-11-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1315         * ListView.cs:
1316         * ThemeWin32Classic.cs: Don't use groups nor insertion mark in
1317         Application.EnableVisualStyles hasn't been called.
1318         Fixes part of #437933.
1320 2008-10-31  Andreia Gaita  <shana@jitted.com>
1322         * Form.cs (SetVisibleCore): since set_ActiveControl no longer calls focus
1323           if the container is not focused already, we need to specifically set
1324           focus to the first available control, or to the form itself if there
1325           are no controls.
1327 2008-10-31  Andreia Gaita  <shana@jitted.com>
1329         activate message fix: a call to .Show now waits until both WM_SHOWWINDOW and
1330         WM_ACTIVATE have been processed before returning, so it is guaranteed that
1331         once it returns and the form is visible, it is actually on the screen on X11
1333         * ContainerControl.cs: Only send focus to the control if the top container
1334           is already focused. This is so that, when a form is first shown, all
1335           the enter/leave events are done first before any focus stuff comes in.
1336           If a control has no top container, there's an extra check on Control.Focus
1337           to make sure it gets focused in this particular case.
1339         * Control.cs: Force focus if the control is active but did not receive
1340           focus after being set as active.
1342         * MdiClient.cs: Dispose the form when closing
1344         * XplatUIX11.cs: When mapping and unmapping windows, make sure the call
1345           doesn't return until both WM_SHOWWINDOW and WM_ACTIVATE have come in
1346           if the window is a top Form.
1347           Reset all hwnd properties when the window has been destroyed so that
1348           we don't land in any codepaths that might try to do something with it.
1349           Added a bunch of debugging messages. If TRACE is defined, all X calls
1350           are logged through DebugHelper. Set a few missing EntryPoint attributes.
1352 2008-10-29  Mario Carrion <mcarrion@novell.com>
1354         * ListViewItem.cs: Control enabled to support Accessibility:
1355         - Internal events: UIATextChanged, UIASubItemTextChanged.
1356         - Internal event UIATextChanged in ListViewSubItem that triggers
1357         UIASubItemTextChanged.
1358         * ListView.cs: Control enabled to support Accessibility:
1359         - Internal events: UIACheckBoxesChanged, UIAMultiSelectChanged, 
1360         UIAShowGroupsChanged, UIAViewChanged and UIALabelEditChanged.
1361         - Internal event UIACollectionChanged in ColumnHeaderCollection.
1362         - Internal event UIACollectionChanged in ListViewItemCollection.
1363         - Internal properties: UIAHeaderControl, UIAColumns, UIARows, 
1364         UIADefaultListViewGroup, UIAHScrollBar and UIAVScrollBar.
1365         - Internal methods: UIAGetHeaderBounds.
1367 2008-10-25  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1369         * ScrollableControl.cs: Actually fire the 2.0 Scroll event when we get
1370         the event from the respective scrollbars.
1371         Fixes #436709.
1373 2008-10-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1375         * ComboBox.cs: Use the new CanNavigateAutoCompleteList property of the
1376         textbox to know whether any navigation key will be handled or not. If
1377         not, don't pass the message to the textbox, and use it here instead. 
1378         * TextBox.cs: Define a new CanNavigateAutoCompleteList property -which
1379         is more precise- than the previous AutoCompleteMatches one.
1380         This should the keyboard navigation in ComboBox when using auto
1381         complete modes.
1383 2008-10-24  Jonathan Pobst  <monkey@jpobst.com>
1385         * ComboBox.cs: Fix item height calculation based off Font to match .Net.
1386         [Fixes bug #436730]
1388 2008-10-24  Jonathan Pobst  <monkey@jpobst.com>
1390         * ToolStripDropDownItem.cs: Call OnClick instead of base.OnClick so
1391         overridden methods will get called.
1392         * ToolStripItem.cs: Raise Click before MouseUp.
1393         * ToolStripSplitButton.cs: Fix up some bounding rectangles to take
1394         the item's location into account.
1395         [Fixes bug #437683]
1397 2008-10-24  Neville Gao  <nevillegao@gmail.com>
1399         * NumericUpDown.cs: Control enabled to support accessibility.
1400         [Fiexes bug #438135]
1402 2008-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1404         * TextBox.cs: Check that we actually have items no navigate, select
1405         text when pressing enter, as well as handle direction keys only if
1406         mode is different to Suggest or the suggest listbox is visible.
1408 2008-10-23  Andreia Gaita  <shana@jitted.com>
1410         * WebBrowser.cs: Use the new ContentStream property to retrieve
1411           a stream encoded from the document content
1413 2008-10-23  Andreia Gaita  <shana@jitted.com>
1415         * HtmlDocument.cs,
1416           HtmlElement.cs,
1417           HtmlWindow.cs: Fix GetHashcode for null objects
1419 2008-10-22  Andreia Gaita  <shana@jitted.com>
1421         * HtmlDocument.cs,
1422           HtmlElement.cs,
1423           HtmlWindow.cs: Fix equality operators (fixes #428173)
1425 2008-10-21  Jonathan Pobst  <monkey@jpobst.com>
1427         * XplatUIWin32.cs: Apply patch from John Mortlock that ensures
1428         mouse_state gets set during WM_MOUSEMOVE and WM_NCMOUSEMOVE.
1429         [Fixes bug #436772]
1431 2008-10-21  Jonathan Pobst  <monkey@jpobst.com>
1433         * ComboBox.cs: Fire SelectedIndexChanged when the user selects the
1434         same item with the mouse as was already selected.
1435         [Fixes bug #436789]
1437 2008-10-21  Brad Taylor  <brad@getcoded.net>
1438         
1439         * TextControl.cs: Break out code to get the visible range into
1440           GetVisibleLineIndexes to be used in UIA code.
1441         
1442         * Line.cs:
1443         * TextControl.cs:
1444         * TextBoxBase.cs: Add comments indicating that the method or property
1445           is used via reflection from UIA code.
1447 2008-10-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1449         * ListViewItem.cs: Match .net serialization.
1450         Fixes remaining part of #417520.
1452 2008-10-20  Jonathan Pobst  <monkey@jpobst.com>
1454         * ToolStripProfessionalRenderer.cs: Don't paint over a set BackgroundImage.
1456 2008-10-20  Mario Carrion <mcarrion@novell.com>
1458         * ErrorProvider.cs, ToolTip.cs, HelpProvider.cs: UIA internal property 
1459         added: UIAToolTipRectangle.
1461 2008-10-19  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1463         * ListViewItem.cs: When deserializing enumerate over the data, instead
1464         of accessing the data directly. This way we handle much better the
1465         cases were we lack information.
1466         Fixes #417520.
1468 2008-10-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1470         * ListView.cs: When removing an item from a main ListView.Items
1471         collection (and not a ListViewGroupCollection.Items one), remove it
1472         also from the group, as .net does. Patch by Mario Carrion (mario at
1473         novell dot com).
1474         Fixes #436653.
1476 2008-10-19  Andreia Gaita  <avidigal@novell.com>
1478         * Form.cs: Forms that get closed without a handle being created are
1479         disposed in 2.0. Fixes failing FormTest.FormClose and
1480         FormTest.FormClose2 on windows.
1482 2008-10-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1484         * ListView.cs: If both scrollbars are visible, the vertical one
1485         shouldn't extend too far down.
1486         Fixes #435771.
1488 2008-10-17  Jonathan Pobst  <monkey@jpobst.com>
1490         * DataGridView.cs: Add the ability to resize columns and rows with
1491         the mouse.  Also support double-clicking to autoresize.
1492         * DataGridViewColumn.cs: Invalidate the grid if a column's width changes.
1493         * DataGridViewRow.cs: Invalidate the grid if a row's height changes.
1494         * DataGridViewTextBoxCell.cs: Add 1 to preferred width so ellipsis
1495         isn't shown on autoresize.
1496         [Fixes bug #420193]
1498 2008-10-17  Mario Carrion <mcarrion@novell.com>
1500         * ComboBox.cs: Remove UIAListbox.
1502 2008-10-17  Mario Carrion <mcarrion@novell.com>
1504         * ComboBox.cs, ListBox.cs: Using added/removed item in 
1505           OnUIACollectionChangedEvent instead of index.
1507 2008-10-17  Jonathan Pobst  <monkey@jpobst.com>
1509         * ComboBox.cs: When we are sorting the items, if the item's type
1510         doesn't support IComparer, use a default one that compares based
1511         off the item's visible text.
1512         [Fixes bug #436328]
1514 2008-10-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1516         * ColumnHeader.cs: Invalidate ListView.header_control when setting
1517         ImageIndex/ImageKey.
1518         * ThemeWin32Classic.cs: When drawing the column header, draw a image
1519         for the column if available, and make the required adjustments to the
1520         text location.
1521         Fixes #435105.
1523 2008-10-17  Neville Gao  <nevillegao@gmail.com>
1525         * StatusBarPanel.cs: Control enabled to support accessibility.
1526         [Fixes bug #435988]
1528 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
1530         * DataGridView.cs: When a user begins an edit in the 'new row',
1531         make that a real row, and add a new 'new row'.  If the user
1532         cancels the edit, remove the new 'new row' and reset everything.
1533         Also, ensure UserAddedRow and UserRemovedRow events are raised.
1534         [Fixes bug #430954]
1536 2008-10-16  Ivan N. Zlatev  <contact@i-nz.net>
1538         * TableLayoutSettings.cs: Fix NREs when deserializing and 
1539         panel is not yet set.
1540         [Fixes bug #436199]
1542 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
1544         * DataGridView.cs: Invalidate after deleting a row.
1546 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
1548         * DataGridView.cs: Handle Enter and Escape keys.
1549           - Move call to EndEdit to MoveCurrentCell.
1550           - Remove call to EndEdit from navigation key routines.
1551           - Fire CellLeave and CellEnter.
1553 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
1555         * DataGridViewCell.cs: Some fixes to the new cell border
1556         painting code.
1558 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
1560         * ThemeEngine.cs: Enable visualstyles rendering by default
1561         (on platforms that support it).
1563 2008-10-15  Ivan N. Zlatev  <contact@i-nz.net>
1565         * XplatUIX11.cs, XplatUICarbon.cs: Do not Timer.Tick before 
1566         MainForm.OnLoad has completed unless DoEvents is forced.
1567         [Fixes bug #412536]
1569 2008-10-15  Jonathan Pobst  <monkey@jpobst.com>
1571         * ToolTip.cs: Ensure that Timer.Internal cannot be set to 0.
1573 2008-10-15  Jonathan Pobst  <monkey@jpobst.com>
1575         * Control.cs: Make our implementation of DrawToBitmap better 
1576         match WmPaint.  [Fixes bug #435579]
1578 2008-10-14  Andreia Gaita  <avidigal@novell.com>
1580         * WebBrowser.cs: Use DocumentElement as the document's root for the
1581         whole content. Should fix DocumentText and DocumentStream problems.
1583 2008-10-14  Jonathan Pobst  <monkey@jpobst.com>
1585         * DataGridViewColumnCollection.cs: Remove calls to OnColumnAddedInternal,
1586         these will get called in DGV.OnCollectionChanged.  Make sure 
1587         OnCollectionChanged always gets called.
1588         * DataGridView.cs: Make a OnColumnRemovedInternal that removes the cells
1589         from every row.  Call this in OnCollectionChanged.
1590         [Fixes bug #433669]
1592 2008-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1594         * ComboBox.cs: WM_KEYDOWN and WM_KEYUP messages should be sent to the
1595         textbox if auto complete is used, since we need to navigate over it.
1596         And in this case don't pass this messages to the base impl. Also hide
1597         the auto complete list box when displaying the drop down listbox.
1598         * TextBox.cs: new internal members to expose some of the auto complete
1599         functionality to combobox.
1601 2008-10-13  Ivan N. Zlatev  <contact@i-nz.net>
1603         * XplatUIX11.cs, XplatUICarbon.cs, Form.cs: Do not Timer.Tick before 
1604         MainForm.OnLoad has completed.
1605         [Fixes bug #412536]
1607 2008-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1609         * TextBox.cs: Apply an old-approved patch that adds autocomplete's
1610         Append support to this controls. We need it to apply new patches.
1612 2008-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1614         * Control.cs: When updating z order in child controls, send to back
1615         the implicit controls. Also, do it explicitly, instead of making
1616         GetAllControls return the implicit controls in a specific order, and
1617         thus avoid depending on that, which could change in the future.
1618         Fixes #434304.
1620 2008-10-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1622         * X11Dnd.cs: Try to call Application.DoEvents before returning in a
1623         call to StartDrag, since we must fire DragDrop/DragLeave *before*
1624         that, as .net does - instead of firing DragDrop/DragLeave *after* the
1625         call to Control.DoDragDrop has completed. This is needed since at the
1626         point of returning, we have sent related dnd ClientMessages, but we
1627         need to wait for them to fire the wmf respective ones.
1628         Fixes #325076.
1630 2008-10-09  Everaldo Canuto  <ecanuto@novell.com>
1632         * LinkLabel.cs: Recreate link pieces when change Padding.
1634 2008-10-09  Everaldo Canuto  <ecanuto@novell.com>
1636         * LinkLabel.cs: Take Padding into account when recreate link pieces.
1637         [Fixes bug #412530]
1639 2008-10-08  Everaldo Canuto  <ecanuto@novell.com>
1641         * Control.cs: Implement internal property PaddingClientRectangle, it will be
1642         useful for drawing controls that must take care about Padding property.
1644 2008-10-08  Jonathan Pobst  <monkey@jpobst.com>
1646         * BindingSource.cs: Make item_type internal so we can access it in DGV.
1647         * DataGridView.cs: Add support for autogenerating columns from a
1648         BindingSource.
1650 2008-10-07  Jonathan Pobst  <monkey@jpobst.com>
1652         * DataGridView.cs: Comment out an exception that is getting thrown
1653         too often currently.
1655 2008-10-07  Jonathan Pobst  <monkey@jpobst.com>
1657         * DataGridView.cs: Always rebind to the datasource, as things may
1658         have changed in it that we aren't capturing yet.
1660 2008-10-07  Jonathan Pobst  <monkey@jpobst.com>
1662         * DataGridViewTextBoxCell.cs: Don't default to VerticalCenter font
1663         drawing mode.  If we are top aligned, give ourselves some top padding.
1665 2008-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1667         * X11Dnd.cs: When firing the default dnd enter/leave events, fire the
1668         events on the control under the mouse pointer, instead of firing them
1669         on the window generating the dnd operation. To achieve this re-use the
1670         code used to get the window under the pointer when getting MouseMove
1671         events.
1672         Fixes #381876.
1674 2008-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1676         * X11Dnd.cs: Don't check that that the window sending the dnd events
1677         is the owner of the selection. Although Gtk+ sets it that way, it's
1678         not a requirement of the XDnd protocol, and Qt doesn't seem to do it.
1679         So, just as Gtk+ does, we set our window sending the dnd events as the
1680         owner of the selection, but don't check it when receiving them. This
1681         should fix interoperability with Qt/Kde.
1682         Fixes #324251.
1684 2008-10-06  Jonathan Pobst  <monkey@jpobst.com>
1686         * DataGridView.cs: Make sure we take the vertical scrollbar into
1687         account when autosizing columns.
1689 2008-10-06  Jonathan Pobst  <monkey@jpobst.com>
1691         * DataGridView.cs: Handle sorting datetimes.
1693 2008-10-04  Ivan N. Zlatev  <contact@i-nz.net>
1695         * ButtonBase.cs, Control.cs, Label.cs, PictureBox.cs, TabControl.cs, 
1696         TextBoxBase.cs, ToolBar.cs, TrackBar.cs, TreeView.cs: Cleanup 
1697         compilation warnings.
1699 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
1701         * RTF.cs, Application.cs, BindingContext.cs, BindingSource.cs, 
1702         ContextMenuStrip.cs, Control.cs, Hwnd.cs, Line.cs, MaskedTextBox.cs, 
1703         ProgressBar.cs, SaveFileDialog.cs, TextControl.cs, Theme.cs, 
1704         ToolBar.cs, ToolStripItemCollection.cs, TrackBar.cs: Cleanup 
1705         compilation warnings.
1707 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
1709         * DataGridView.cs, DataGridViewCell.cs, 
1710         DataGridViewCellValidatingEventArgs.cs, 
1711         DataGridViewComboBoxEditingControl.cs, DataGridViewHeaderCell.cs, 
1712         DataGridViewRow.cs, DataGridViewRowHeaderCell.cs, 
1713         DataGridViewTextBoxEditingControl.cs: Cleanup compilation warnings.
1715 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
1717         * HtmlElementEventArgs.cs, HtmlWindowCollection.cs: 
1718         Cleanup compilation warnings.
1720 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
1722         * XplatUIWin32.cs: Cleanup compilation warnings.
1724 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
1726         * PropertyGrid.cs: Cleanup compilation warnings.
1728 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
1730         * DataGridViewRow.cs: Only clear the row background if we
1731         are going to paint a new background.
1733 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
1735         * DataGridViewCell.cs, DataGridViewColumnHeaderCell.cs,
1736         DataGridViewRowHeaderCell.cs: Remove PaintPartBorder and
1737         use PaintBorder instead.        
1739 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
1741         * DataGridView.cs: When CellBorderStyle is set, update the
1742         AdvancedCellBorderStyle to match.
1744 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
1746         * DataGridViewCell.cs: Add helper methods to convert Alignment
1747         to TextFormatFlags and align rectangles.
1748         * DataGridViewTextBoxCell.cs: Use Alignment when painting text.
1749         * DataGridViewImageCell.cs: Use Alignment when painting the image.
1751 2008-10-02  Ivan N. Zlatev  <contact@i-nz.net>
1753         * ToolTip.cs: Display tooltips only for controls on the active form.
1754         [Fixes bug #428115]
1756 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
1758         * DataGridView.cs: Make OnCellValueNeeded internal.
1759         * DataGridViewCell.cs: Raise the CellValueNeeded event so the
1760         user can supply their own value if they choose.
1762 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
1764         * DataGridViewColumnHeaderCell.cs: Create a new style object
1765         so the DefaultCellStyle doesn't get changed.
1767 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
1769         * ToolStripItem.cs: Check to make sure the owner is actually
1770         changing in InternalOwner before doing any work.  Fixes some
1771         failing tests.
1773 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
1775         * DataGridViewColumnHeaderCell.cs: Correctly calculate style.
1776         * DataGridView.cs: Use a column header's inherited style instead
1777         of just using the default.
1779 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
1781         * SplitContainer.cs: Raise SplitterMoved when the splitter is
1782         moved through code.
1784 2008-10-01  Mario Carrion <mcarrion@novell.com>
1786         * ScrollBar.cs: Internal property added: UIAThumbPosition.
1788 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
1790         * ToolStripOverflowButton.cs: Use InternalOwner instead of Owner.
1792 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
1794         * ToolStripItem.cs: When the user sets Owner, we need to remove
1795         it from its previous owner and then add it to the new owner's
1796         item collection.  Also, create InternalOwner, so we can set the owner
1797         that doesn't do this new stuff.
1798         * ToolStripItemCollection.cs: Use InternalOwner instead of Owner.
1800 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
1802         * ToolStripItem.cs: When our parent changes, recalculate our text
1803         size, since we may be getting our Font from our parent.  When our
1804         owner's Font changes, recalculate ourselves as we may be using
1805         that font.
1807 2008-10-01  Everaldo Canuto  <ecanuto@novell.com>
1809         * MenuAPI.cs: Select the first option of a popup when opening the popup via
1810         return key. [Fixes bug #413792].
1812 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
1814         * ToolStripItem.cs: Make Font, BackColor, and ForeColor be
1815         ambient properties.  (Get their value from their parents if
1816         values haven't been set.)
1818 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
1820         * ToolStripSystemRenderer.cs: Call overridden methods' bases
1821         after our logic, so users can do painting by handling the events.
1822         Currently, we draw over any user painting.
1824 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
1826         * ToolStripProfessionalRenderer.cs: Call overridden methods' bases
1827         after our logic, so users can do painting by handling the events.
1828         Currently, we draw over any user painting.
1830 2008-09-30  Everaldo Canuto  <ecanuto@novell.com>
1832         * MenuAPI.cs: Prevent NRE when deactivate menu. Fixes #413636.
1834 2008-09-30  Jonathan Pobst  <monkey@jpobst.com>
1836         * TreeNode.cs, TreeView.cs: Move logic that determines the node
1837         image to draw to TreeNode.  Give Index/Keys put on the node
1838         precedence over the global one for the TreeView.
1840 2008-09-30  Jonathan Pobst  <monkey@jpobst.com>
1842         * TreeNode.cs: Setting ImageIndex or ImageKey should reset the other.
1844 2008-09-29  Mario Carrion <mcarrion@novell.com>
1846         * ListBox.cs: Index fixed.
1848 2008-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1850         * TabControl.cs: When expanding the tab -because it's selected now-,
1851         using Right alignment, instead of adding some selected delta value to
1852         the X origin, substract it, so it gets a location adjacent to the panel, 
1853         instead of be more separated.
1854         Fixes #409170.
1856 2008-09-29  Jonathan Pobst  <monkey@jpobst.com>
1858         * MessageBox.cs: Use SystemIcons for graphics instead of keeping our
1859         own copies of them.
1861 2008-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1863         * X11Dnd.cs: source and related fields should be set to IntPtr.Zero,
1864         as well as the other static fields, to avoid using their previous
1865         values my mistake when handling the dnd events. This should avoid
1866         handling any status event after the drop has been finalized/cancelled.
1868 2008-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1870         * X11Dnd.cs: We have to send a dnd enter event as soon as we start the
1871         operation, instead of waiting until we get any movement - this will
1872         help us to have the data available in case no movement was detected
1873         and _still_ we have to fire DragEnter and DragLeave/DragDrop events.
1874         Finally add a windows.forms-only fallback to fire the mentioned events
1875         if no movement at all was detected, just like .net does.
1876         Fixes #381876.
1878 2008-09-27  Jonathan Pobst  <monkey@jpobst.com>
1880         * ThemeWin32Classic.cs: When drawing a status bar panel, don't
1881         return early if the text is empty because the icon doesn't get
1882         drawn then.  [Fixes bug #428113]
1884 2008-09-25  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1886         * FileDialog.cs: Implement basic support for sorting by columns in
1887         Details view. Patch by Eric Petit.
1888         Fixes #428006.
1890 2008-09-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1892         * ThemeWin32Classis.cs: When drawing gridlines take into account the
1893         case where ListView.ItemSize hasn't been computed, and provide a
1894         fallback as well. This prevents a division by 0.
1896 2008-09-24  Jonathan Pobst  <monkey@jpobst.com>
1898         * ThemeVisualStyles.cs: Use ClientRectangle instead of Bounds to
1899         correctly draw tooltip backgrounds.
1901 2008-09-24  Jonathan Pobst  <monkey@jpobst.com>
1903         * ImageList.cs: Change CopyTo implementation to ensure clones are
1904         created of our images.
1905         [Fixes bug #409169]
1907 2008-09-24  Jonathan Pobst  <monkey@jpobst.com>
1909         * Control.cs: When setting fonts, we need to ensure we change our
1910         reference to the new font object, even if it represents the same
1911         font as before.  If we don't, the original font can get disposed
1912         and we will still try to use it.
1913         [Fixes bug #386450]
1915 2008-09-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1917         * FileDialog.cs: Take into account Tile view when selecting the view
1918         (2.0 profile).
1920 2008-09-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1922         * ThemeWin32Classic.cs: When drawing gridlines for ListView don't use
1923         the item bounds, since we can't iterate over them in virtual mode.
1924         Also fix wrong calculation of the gridlines when using scrolling.
1925         Fixes #400390.
1927 2008-09-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1929         * XplatUIX11.cs: When handling EnterNotify events, take into account
1930         both the public and implicit controls when trying to detect the
1931         grab/ungrab process. This should fix ListView selection in Details
1932         view.
1934 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
1936         * TreeView.cs: Redraw the whole node area when the selected node changes.
1937         Things like state images were not getting redrawn because the invalid
1938         rectangle was too small.
1939         [Fixes bug #428211]
1941 2008-09-23  Mario Carrion  <mcarrion@novell.com>
1943         * ListBox.cs: UIA Selection Pattern fully supported in ListBox control.
1944         [Fixes bug #428993]
1946 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
1948         * Form.cs: Do not set the Form's icon in the backend if showicon = false.
1949         [Fixes bug #428114]
1951 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
1953         * ThemeWin32Classic.cs: Allow tooltips to be multiline.
1954         [Fixes bug #427884]
1956 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
1958         * StatusBar.cs: Add tooltip support.
1959         [Fixes bug #428113]
1961 2008-09-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1963         * ThemeWin32Classic.cs: Use StringAlignment.Center for the vertical
1964         alignments of sub items in Details view. Patch by John Mortlock (johnm at 
1965         hlaustralia.com.au).
1966         Fixes #425360.
1968 2008-09-23  Neville Gao  <nevillegao@gmail.com>
1970         * StatusBar.cs: Add UIA event in AddInternal () to support accessibility.
1971         [Fixes bug #419079]
1973 2008-09-22  Jonathan Pobst  <monkey@jpobst.com>
1975         * TextBoxBase.cs: Set Text to "" instead of null in Clear().
1976         [Fixes bug #428107]
1978 2008-09-22  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1980         * ListView.cs: Don't do anything when EnsureVisible is called inside a
1981         BeginUpdate/EndUpdate block.
1982         Fixes #425049.
1984 2008-09-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1986         * ListViewItem.cs: The semantics for the public .ctor of
1987         ListViewSubItemCollection need us to already have a Text value for the
1988         item, which in our implementation have as available *after* adding the
1989         first sub item. So create an internal .ctor that satisfies our needs
1990         and let the public .ctor have the same semantics as .net.
1991         Fixes #427561.
1993 2008-09-19  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1995         * ListControl.cs: Changes in Formatting related values should call
1996         RefreshItems, as .net does.
1997         * ComboBox.cs:
1998         * ListBox.cs: In the respective overrides of RefreshItems calculate
1999         layout as well as refreshing - again, this is what .net does.
2000         Fixes #426168.
2002 2008-09-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2004         * ListBox.cs: In UpdateTopItem, don' call to XplatUI.ScrollWindow,
2005         since we are already doing that when we change the value of the
2006         scrollbar or force the call to ScrollWindow in the same method. This
2007         way we don't cause a Invalidate call for all the listbox bounds for
2008         methods calling UpdateTopItem with an already updated top item. This
2009         was happening specially calling EnsureVisible with already visible
2010         items.
2012 2008-09-18  Mike Gorse <mgorse@novell.com>
2014         * Application.cs, IKeyFilter.cs, X11Keyboard.cs, XplatUI.cs,
2015           XplatUIStructs.cs: Added KeyFilter
2016         [Fixes bug #427039]
2018 2008-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2020         * RelatedPropertyManager.cs: The properties returned by
2021         GetItemProperties should be that ones of the *actual* object returned
2022         by the property, not the property type - this is very special when the
2023         property exposes a type, but the returned object actually is a child
2024         class and implements more functionality and properties.
2026 2008-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2028         * Binding.cs: Don't look for the property in the data source if the
2029         passed string is empty.
2031 2008-09-18  Ivan N. Zlatev  <contact@i-nz.net>
2033         * XplatUIX11.cs: Comment out _NET_WM_WINDOW_TYPE_DIALOG in order to 
2034         fix unused variable warnings.
2036 2008-09-18  Ivan N. Zlatev  <contact@i-nz.net>
2038         * XplatUIX11.cs: Send WM_HELP when F1 is pressed.
2039         [Fixes bug #427073]
2041 2008-09-18  Ivan N. Zlatev  <contact@i-nz.net>
2043         * XplatUIX11.cs: 
2044          - Do not set _NET_WM_WINDOW_TYPE_DIALOG for modal forms, because this 
2045          leads to the window manager overriding our border style and zorder. 
2046          - Allow the activation of non-modal forms, which are children of a 
2047          modal form.
2048         [Fixes bug #423417]
2050 2008-09-17  Ivan N. Zlatev  <contact@i-nz.net>
2052         * XplatUIX11.cs, X11Structs.cs: For mapped windows SetTopMost should 
2053         ask the window manager to do the work instead of changing the property 
2054         directly.
2055         [Fixes bug #423417]
2057 2008-09-17  Everaldo Canuto  <ecanuto@novell.com>
2059         * CurrencyManager.cs: Check for positon before call ChangeRecordState in
2060         AddNew to fix some navigation for empty datasets. [Fixes #323053]
2062 2008-09-17  Everaldo Canuto  <ecanuto@novell.com>
2064         * FileDialog.cs: Remove OnPaint method on PopupButtonPanel and set 
2065         InternalBorderStyle to BorderStyle.Fixed3D. It is the best way to get 3d
2066         border and fixes some drawing issues when resize form.
2068 2008-09-17  Everaldo Canuto  <ecanuto@novell.com>
2070         * FileDialog.cs: Lots of layout fixes to mimic Win32. [Fixes #408752]
2071         
2072         * ThemeWin32Classic.cs: We don't need to reduce button size when it is
2073         AcceptButton.
2075 2008-09-17  Ivan N. Zlatev  <contact@i-nz.net>
2077         * TextBoxBase.cs: For standard textbox the scrollbars are always 
2078         visible if Multiline is true.
2079         [Fixes bug #426896]
2081 2008-05-12  Everaldo Canuto  <ecanuto@novell.com>
2083         * DataGridTextBoxColumn.cs: Uncomment code accidentally commited in last
2084         patch.
2085         
2086 2008-05-12  Everaldo Canuto  <ecanuto@novell.com>
2088         [Fixes most od DBNull and HeadersVisible problems]
2089         
2090         * DataGrid.cs:
2091         - ShowingColumnHeaders removed because we dont need it, ColumnHeadersVisible
2092         returns the value that we need.
2093         - Fixed FromPixelToColumn method that return zero for first     column and for
2094         row header cell, now it returns -1 for row header cell.
2095         - Fixed HitTest to check row header cell in column header area, it now
2096         returns HitTestType.None. [Fixes #322864]
2097         - Fixed the calculation of visible columns in UpdateVisibleColumn, now it
2098         checks for RowHeadersVisible and other things.
2099         - If an exception occurs when setting CurrentCell and user type 'yes' in
2100         message dialog, invalidade current and new cell and set setting_current_cell
2101         to false to prevent future errors. [Partially fixes #323050]
2103         * DataGridColumnStyle.cs: Don't call EndEdit after set property_descriptor
2104         value (SetColumnValueAtRow), it must be done by grid to properly show 
2105         messages. [Fixes #323050]
2107         * ThemeWin32Classic.cs: Lots of fixes in DataGridPaintColumnHeaders to
2108         better draw column and row header. Also dont draw anything when column
2109         headers is not visible.
2111 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
2113         * ThemeWin32Classic.cs: Hook ListViewItems into the ShowFocusCues
2114         logic.
2116 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
2118         * TreeView.cs: Don't start editing a node on right click, only
2119         left click.
2121 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
2123         * NativeWindow.cs: Reenable the ThreadExceptionDialog I accidentally
2124         disabled over a year ago.
2125         * Form.cs: Wrap calling Load in a try/catch because it can happen
2126         before the catch-all one in NativeWindow.
2127         [Fixes bug #425414]
2129 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
2131         * ToolStripDropDownMenu.cs: Calculate the connected area better
2132         to take into account when the drop down is not directly under the
2133         owner item.
2134         * ToolStripProfessionalRenderer.cs: Draw the whole unconnected area.
2136 2008-09-16  Mario Carrion <mcarrion@novell.com>
2138         * ScrollBar.cs: New event added: UIAValueChanged, generated when
2139           LargeChange, SmallChange, Maximum or Minimum values are changed.
2140         [Fixes bug #426464]
2142 2008-09-16  Mario Carrion <mcarrion@novell.com>
2144         * ErrorProvider.cs: Component enabled to support accessibility.
2145         * Application.cs: Updated to Initialize UIA in ErrorProvider.
2146         [Fixes bug #426459]
2148 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
2150         * TextBoxBase.cs: Flag has_been_focused when SelectionStart is set
2151         so we don't highlight on first focus.
2152         [Fixes bug #360869]
2154 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
2156         * TextControl.cs: Correctly calculate the height of the area we 
2157         need to invalidate when we have started scrolling and viewport_y
2158         is used.  [Fixes bug #387608]
2160 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
2162         * TextControl.cs: When getting the SelectedText, don't add in
2163         NewLine characters, as they are already contained in the lines.
2164         [Fixes bug #388115]
2166 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
2168         * TextBoxBase.cs: Replace the buggy Lines setter with one that
2169         simply concats the lines and send it to the Text setter.
2170         [Fixes issue #2 and #3 of 388115]
2172 2008-09-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2174         * Binding.cs: The default value of DataSourceNullValue should be
2175         Convert.DBNull actually. Also, the NullValue should only be used *if*
2176         itself is not null, and use the null/Convert.DBNull value instead.
2178 2008-09-15  Jonathan Pobst  <monkey@jpobst.com>
2180         * TextControl.cs: Add a method to convert a string newline to the
2181         newline enum.
2182         * TextBoxBase.cs: When the user hits enter, insert a native newline.
2183         [Fixes part 1 of bug #388115]
2185 2008-09-15  Mario Carrion <mcarrion@novell.com>
2187         * ToolTip.cs: UnPopup event set to internal to match public API.
2189 2008-09-15  Jonathan Pobst  <monkey@jpobst.com>
2191         * TextBoxBase.cs: If the user is using Ctrl-Tab to move focus, we
2192         have to remove the Ctrl in order for the focus moving code to kick in.
2193         [Fixes bug #426170]
2195 2008-09-15  Jonathan Pobst  <monkey@jpobst.com>
2197         * CheckedListBox.cs: Return the real item index from Add.  It may not be
2198         the last item if the list is sorted.  The user can change the NewValue in
2199         the ItemCheck event, we need to use that value if so.
2200         * ListBox.cs: Return the real item index from a sorted Add.
2201         [Fixes bug #426166]
2203 2008-09-15  Ivan N. Zlatev  <contact@i-nz.net>
2205         * MimeIcon.cs: Add null checks in the GnomeHandler, because it might 
2206         happen that the icons from the theme is missing or the particular size 
2207         unavailable.
2208         [Fixes bug #424981]
2210 2008-09-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2212         * Binding.cs: When assigning null or DBNull depending on value/ref type,
2213         use IsValueType instead to get the precise desired value.
2214         Fixes #424276.
2216 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
2218         * TreeNodeCollection.cs: When adding a new node to an opened node,
2219         we have to invalidate everything below the parent node because
2220         every node scoots down and we have to repaint them.
2221         [Fixes bug #411386]
2223 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
2225         * ThemeWin32Classic.cs: Take CheckBox and RadioButton's CheckAlign
2226         property into account when drawing.
2227         [Fixes bug #416064]
2229 2008-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2231         * ListBox.cs: When calling Items.Clear(), call
2232         SelectedIndexCollection.ClearCore instead of normal Clear method, to
2233         not fire any Selected*Changed event - this is done to match .net and
2234         don't have invalid values when changing the DataSourceProperty.
2235         Fixes #424273.
2237 2008-09-12  Mario Carrion  <mcarrion@novell.com>
2239         * HelpProvider.cs: Control enabled to support accessibility.
2240         * Application.cs: Updated to Initialize UIA in HelpProvider.
2241         [Fixes bug #425988]
2243 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
2245         * Form.cs: When we are showing a dialog box, if its owner is TopMost,
2246         make the dialog TopMost as well.
2247         [Fixes bug #425984]
2249 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
2251         * Win32DnD.cs, XplatUIWin32.cs: Applied patch from Andy Hume that handles
2252         clipboard data better.
2253         [Fixes bug #414446]
2255 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
2257         * TextBoxBase.cs: Applied patch from John Mortlock that ensures
2258         TextChanged and SelectionChanged events fire in the same order as .Net.
2259         [Fixes bug #425725]
2261 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
2263         * DataGridView.cs: When sorting a column, if it only contains numbers,
2264         do a numeric sort instead of a string sort.
2265         [Fixes bug #425849]
2267 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
2269         * TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Guard
2270         against NRE's when the settings have a null panel.
2271         * TableLayoutPanel.cs: When setting the TableLayoutSettings, ensure
2272         the panel gets set.
2273         [Fixes bug #425647]
2275 2008-09-11  Mario Carrion  <mcarrion@novell.com>
2277         * ToolTip.cs: Control enabled to support accessibility.
2278         * Application.cs: Updated to Initialize UIA in ToolTip.
2279         [Fixes bug #425277]
2281 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
2283         * Control.cs: Make the custom Enumerator internal to fix build.
2285 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
2287         * DataGridViewCheckBoxCell.cs: If our content is clicked and we aren't
2288         already in edit mode, begin edit mode.  Generally edit mode isn't
2289         started until the second click, but CheckBoxes are special.
2291 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
2293         * ErrorProvider.cs: Never try to add our icons to ContainerControl,
2294         since that can be set to anything.  Always add them to the Control's
2295         parent.  [Fixes bug #416058]
2297 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
2299         * ListView.cs: Use a custom enumerator for ListViewItemCollection
2300         so items can be deleted in a foreach.
2301         [Fixes bug #425342]
2303 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
2305         * DataGridViewRow.cs: Better implementation of GetPreferredHeight.
2306         Store the user set explicit height so that the row can be AutoSized
2307         and then when AutoSize is turned off, it can get its original size back.
2308         * DataGridView.cs: Use the Row's GetPreferredHeight instead of 
2309         duplicating the logic.  When setting AutoSizeRowsMode to None, reset
2310         rows' heights back to their explicit values.
2311         [Fixes bug #415780]
2313 2008-09-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2315         * DateTimePicker.cs: When getting focus, select the checkbox if we are
2316         already showing it. Also, don't change its value when pressing space
2317         if the checkbox is not visible (ShowCheckBox as false). Finally, the
2318         checkbox should remain selected as long as Checked is false, and the
2319         other parts are disabled.
2320         Fixes #424267.
2321         
2322 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
2324         * MessageBox.cs: Handle shortcut keys to dialog buttons.
2325         [Fixes bug #425425]
2327 2008-09-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2329         * Binding.cs: When the value retrieved from the control property is
2330         null, don't return Convert.DBNull for Nullable instances, since they
2331         can *actually* get a null value.
2332         Fixes #424265.
2334 2008-09-10  Jonathan Pobst  <monkey@jpobst.com>
2336         * Control.cs: Add an internal field to force doublebuffering regardless
2337         of what the public mechanisms are set to.  This is because MS's native
2338         controls are doublebuffered even though their .Net bits are set to false.
2339         * ProgressBar.cs: Set force_double_buffer to true.
2340         [Fixes bug #406595]
2342 2008-09-10  Jonathan Pobst  <monkey@jpobst.com>
2344         * DataGridViewCheckBoxColumn.cs: Use the threestate constructor for
2345         the cell template.
2346         * DataGridViewCheckBoxCell.cs: Add proper support for threestate.
2347         * DataGridViewCell.cs: Implement GetEditedFormattedValue for types
2348         without EditingControls, paint background selection for types without
2349         EditingControls, reset the EditingCellValueChanged flag when the
2350         cell's value is committed.
2351         * DataGridView.cs: Make BeginEdit and EndEdit work with cells that don't
2352         have EditingControls, remove a double call to a cell's OnContentClickInternal,
2353         don't do cell changing logic in OnMouseDown if the cell didn't change.
2354         [Fixes bug #420351]
2356 2008-09-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2358         * DateTimePicker.cs: Fix the edition of am/pm specifier.
2360 2008-09-09  Jonathan Pobst  <monkey@jpobst.com>
2362         * TextControl.cs: Add "&" to the list of valid characters in a URL.
2364 2008-09-09  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2366         * DateTimePicker.cs: Before incrementing or decrementing any part in
2367         the textbox, end any current edit. Also when ending the current edit
2368         use the editing_part_index field instead of the current selected
2369         value, since they can be out of synch, and we really need to work on
2370         the *real* current edit part. Finally when PartData.Selected changes,
2371         always try to end any ongoing edit.
2372         This should fix some small errors handling mouse navigation and
2373         increase/decrease operations.
2375 2008-09-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2377         * DateTimePicker.cs: 'hh' and 'HH' formats (12 and 24 hour formats
2378         respectively) should handled different, since the 12 hours format
2379         needs the value typed by the user to be adjusted depending on the
2380         a.m/p.m value, so it is preserved, and only changed when the value
2381         reaches the 12 value (when it changes from a.m to p.m).
2382         Fixes part of #416555.
2384 2008-09-08  Jonathan Pobst  <monkey@jpobst.com>
2386         * ToolStrip.cs: Ensure MouseDown gets called for MenuStrip items.
2387         * ToolStripDropDownItem.cs: Don't fire events and such again if
2388         ShowDropDown is called on an already dropped down item.
2389         * ToolStripMenuItem.cs: Call ShowDropDown even if there aren't any
2390         subitems, the user may add some in the DropDownOpening event.
2391         [Fixes bug #417877]
2393 2008-09-08  Jonathan Pobst  <monkey@jpobst.com>
2395         * ComboBox.cs: Fix IOORE when setting SelectedItem to null.
2396         [Fixes bug #424270]
2398 2008-09-08  Jonathan Pobst  <monkey@jpobst.com>
2400         * MdiClient.cs: When looking for menustrips on a child form to merge,
2401         look inside ToolStripContainers.
2402         [Fixes bug #424264]
2404 2008-09-08  Ivan N. Zlatev  <contact@i-nz.net>
2406         * ErrorProvider.cs: Unbreak my previous commit.
2408 2008-09-08  Ivan N. Zlatev  <contact@i-nz.net>
2410         * ErrorProvider.cs: Icon should always be 16x16.
2411         [Fixes bug #424380]
2413 2008-09-07  Ivan N. Zlatev  <contact@i-nz.net>
2415         * GridEntry.cs: Invalidate the child items cache when the property 
2416         value changes.
2418 2008-09-07  Ivan N. Zlatev  <contact@i-nz.net>
2420         * GridEntry.cs, PropertyGridView.cs: 
2421            - Update the ReadOnly detection and rendering to finally hopefully 
2422            match the one of MSFT.
2423            - Niceify and move the debug CWLS.
2424         [Fixes bug #409028]
2426 2008-09-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2428         * ListView.cs: Don't call Invalidate at all from SetItemLocation,
2429         since we are already calling Invalidate for the entire control when
2430         needed - and call Redraw() when size changes, since we need to paint
2431         there by ourselved and not anymore from the mentioned method. 
2432         This should improve the layout process. Also clean some not needed calls 
2433         here and there.
2435 2008-09-05  Jonathan Pobst  <monkey@jpobst.com>
2437         * MenuAPI.cs: Add a null check to the Alt-F4 code.
2438         [Fixes bug #420309]
2440 2008-09-05  Jonathan Pobst  <monkey@jpobst.com>
2442         * ThreadExceptionDialog.cs: Disable AutoScaling for this dialog.
2443         [Fixes bug #423040]
2445 2008-09-04  Ivan N. Zlatev  <contact@i-nz.net>
2447         * GridEntry.cs, CategoryGridEntry.cs, RootGridEntry.cs, PropertyGrid.cs, 
2448         PropertyGridView.sc: Implement lazy/delayed propertygrid population 
2449         on item expansion. Improves performance and fixes bug #417955.
2450         [Fixes bug #417955]
2452 2008-09-05  Stephane Delcroix  <sdelcroix@novell.com>
2454         * Control.cs: only check for OptimizedDoubleBuffer in NET_2_0.
2455         fix the build.
2457 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
2459         * TextControl.cs: Add "_" to the list of valid characters in a URL.
2460         [Fixes bug #423408]
2462 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
2464         * Control.cs: If using OptimizedDoubleBuffer, ensure the clip 
2465         region gets set.
2466         [Fixes bug #414166]
2468 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
2470         * FontDialog.cs: When storing our font size from the starting font,
2471         use SizeInPoints instead of Size in case Size is a different unit
2472         from Points.
2473         [Fixes bug #416489]
2475 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
2477         * FileDialog.cs: When enter is pressed on a SaveFileDialog and we
2478         don't use it for anything else, check if a directory is highlighted.
2479         If it is, navigate into it.
2480         [Fixes bug #422087]
2482 2008-09-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2484         * Binding.cs: When acquiring a BindingManagerBase for the first time,
2485         check that the specified property actually exists in the data source,
2486         and throw an ArgumentException if that's not the case - this is only
2487         done for this scenario, since for later cases (such Position changes)
2488         we throw different exceptions (match .Net).
2490 2008-09-03  Ivan N. Zlatev  <contact@i-nz.net>
2492         * ButtonBase.cs CheckBox.cs, Control.cs, FlowLayoutPanel.cs, 
2493           FlowLayoutSettings.cs, GroupBox.cs, Label.cs, ListBox.cs, 
2494           PropertyGrid.cs, RadioButton.cs, TableLayoutPanel.cs, 
2495           TableLayoutSettings.cs, ToolStrip.cs, ToolStripDropDownButton.cs, 
2496           ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripSplitButton.cs, 
2497           ToolStripStatusLabel.cs: Add missing PerformLayout calls to various 
2498           properties.
2499           [Fixes bug #418684]
2501 2008-09-03  Neville Gao  <nevillegao@gmail.com>
2503         * StatusBar.cs: Control enabled to support accessibility.
2504         [Fixes bug #419079]
2506 2008-09-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2508         * Binding.cs: When connecting the event handler for the "Changed"
2509         event for the property, only do it for PropertyManager, and not for
2510         CurrencyManager - this is exactly what does .Net, totally ignoring any
2511         change in the property of the elements of a list.
2512         Fixes the tests.
2514 2008-09-02  Jonathan Pobst  <monkey@jpobst.com>
2516         * XplatUIWin32.cs: Ensure we never send the WS_EX_MDICHILD flag
2517         to Windows when creating a window, as we fake MDI stuffs.
2518         [Fixes bug #421858]
2520 2008-09-01  Ivan N. Zlatev  <contact@i-nz.net>
2522         * TextBox.cs: Invalidate after UseSystemPasswordChar, so that the 
2523         change takes effect.
2525 2008-08-24  Ivan N. Zlatev  <contact@i-nz.net>
2527         * XplatUIX11.cs: Provide MouseButtons/State information to the XPlatUI.
2528         [Fixes bug #419001]
2530 2008-08-27  Jonathan Pobst  <monkey@jpobst.com>
2532         * DataGridView.cs: Raise CellContentClick event.
2533         [Fixes part of bug #420351]
2535 2008-08-27  Mario Carrion  <mcarrion@novell.com>
2537         * ScrollBar.cs: Control enabled to support accessibility.
2538         [Fixes bug #416759]
2540 2008-08-27  Mario Carrion  <mcarrion@novell.com>
2542         * ComboBox.cs: Control enabled to support accessibility.
2543         [Fixes bug #416663]
2545 2008-08-27  Mario Carrion  <mcarrion@novell.com>
2547         * ListBox.cs: Control enabled to support accessibility.
2548         [Fixes bug #416640]
2550 2008-08-27  Jonathan Pobst  <monkey@jpobst.com>
2552         * ComboBox.cs: Don't suppress the TextChanged event when changing
2553         the SelectedIndex.
2554         * ToolStripComboBox.cs: Listen to the ComboBox's TextChanged event
2555         and re-raise it.
2556         [Fixes bug #420673]
2558 2008-08-26  Jonathan Pobst  <monkey@jpobst.com>
2560         * ErrorProvider.cs: Fix a regression NRE when setting properties
2561         for a control before it has a parent.
2562         [Fixes bug #420305]
2564 2008-08-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2566         * Binding.cs: Use the BindingManagerBase.Current value to obtain
2567         connect the property "Changed" event, instead of using the data
2568         sources - this is useful when the property specifies actually a
2569         multiple objects path.
2570         Fixes part of #417973.
2572 2008-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2574         * RelatedPropertyManager.cs: PropertyManager instances associated to a
2575         nested properties should return not the properties of the data source
2576         itself, but the properties of the type of a specific property in the
2577         data source - match .net.
2579 2008-08-24  Gert Driesen  <drieseng@users.sourceforge.net>
2581         * ListBox.cs (IntegerCollection): To avoid duplication, moved code for
2582         AddRange overloads into AddItems method, and added missing NULL check.
2583         Added extra argument check to RemoveAt for compatibility with MS. 
2584         Modified IList implementation of Add, Contains, IndexOf and Remove to
2585         throw an ArgumentException if item is not an int. Modified IList.Insert
2586         to throw a NotSupportException instead of an Exception. Implemented
2587         ICollection.
2588         (ObjectCollection): To avoid duplication, use AddItems method from
2589         AddRange overloads. On 1.0 profile, first perform NULL check on items
2590         in AddItems.
2592 2008-08-23  Gert Driesen  <drieseng@users.sourceforge.net>
2594         * Control.cs: Do not modify bounds directly in .ctor's. Fixes bug
2595          #419087.
2597 2008-08-22  Atsushi Enomoto  <atsushi@ximian.com>
2599         * X11Keyboard.cs : comment out some Console.WriteLine().
2601 2008-08-22  Atsushi Enomoto  <atsushi@ximian.com>
2603         * X11Keyboard.cs : fixed wrong call to XOpenIM() which happened
2604           even if premises are not filled. Also XLookupString() was not
2605           receiving correct input, which blocked precise input handling
2606           on non-XIM mode.
2608 2008-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2610         * ListView.cs: When calling OnCacheVirtualItems, cast to the right
2611         type of delegate, instead of EventHandler - this was causing a type
2612         cast exception in all apps handling this event.
2613         Fixes #417876.
2615 2008-08-20  Jonathan Pobst  <monkey@jpobst.com>
2617         * ToolStripDropDownItem.cs: Always raise DropDownOpening in
2618         ShowDropDown to give the user a chance to dynamically add
2619         drop down items.  [Step 1 of fixing bug #417877]
2621 2008-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2623         * X11Dnd.cs: Don't fire pseudo motion DragOver events if we haven't
2624         had any mouse motion since the call to StartDrag, to match the dnd
2625         behaviour of .net.
2626         Fixes part of #381876.
2628 2008-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2630         * XplatUIX11.cs: Only do the children control bounds check for EnterNotify
2631         if mode is NotifyUngrab, and let it flow if mode is NotifyNormal.
2632         Also, if we are actually moving into a different window after
2633         grabbing, generate a LeaveNotify event for the previous window, since
2634         we need to fire the leave events until the grab ends, not when
2635         actually moving outside of the control.
2637 2008-08-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2639         * XplatUIX11.cs: The check inside EnterNotify case to fire MouseEnter
2640         events only for client windows was wrong - we need to compare the
2641         client window against the window receiving the EnterNotify event, not
2642         against zero (since client window is never Zero, btw).
2643         This prevents having unnecessary handling of EnterNotify events for
2644         non-client windows when a gran begins.
2646 2008-08-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2648         * XplatUIX11.cs: Handling X ButtonPress events, we must *not* generate
2649         MouseMove/MotionNotify events at all (which should only happen after
2650         MouseUp/ButtonRelease, as .Net does).
2651         This avoids firing an extra and unnecessary MouseMove event just after
2652         every MouseDown event.
2654 2008-08-19  Jonathan Pobst  <monkey@jpobst.com>
2656         * LinkLabel.cs: Always clear any previous links when LinkArea
2657         is set.  [Fixes bug #410709]
2659 2008-08-19  Jonathan Pobst  <monkey@jpobst.com>
2661         * ToolStripProfessionalRenderer.cs: Revert last change.
2662         * ProfessionalColorTable.cs: For Classic, use SystemColors.Window
2663         for ToolStripDropDownBackground.
2665 2008-08-19  Jonathan Pobst  <monkey@jpobst.com>
2667         * ToolStripProfessionalRenderer.cs: Use Window color for the 
2668         background of dropdowns to match .Net when the user is not
2669         using the default white.  [Fixes bug #418108]
2671 2008-08-19  Atsushi Enomoto  <atsushi@ximian.com>
2673         * XplatUIWin32.cs : SetTimer() used to set wrong window handle and
2674           it caused timer registration twice. Fixed bug #418107.
2676 2008-08-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2678         [Correction: This is the actual change to X11Dnd issue, not the
2679         previous one, which was actually a different issue.]
2681         * X11Dnd.cs: Increase the interval for the Timer, to not fire our
2682         pseudo motion HandleMouseOver method so aggresive. Also, don't call it
2683         when the pointer is actually in motion, but only when the pointer
2684         seems to stop (as .net does).
2685         Fixes part of #381876.
2688 2008-08-18  Jonathan Pobst  <monkey@jpobst.com>
2690         * ListBox.cs: Fix CopyTo implementation.
2691         [Fixes bug #409169]
2693 2008-08-18  Jonathan Pobst  <monkey@jpobst.com>
2695         * ThemeWin32Classic.cs: Use ClientRectangle instead of Bounds when
2696         drawing a ComboBox's background.  Fixes bad disabled rendering when
2697         the control is not at 0,0.
2698         [Fixes bug #416063]
2700 2008-08-16  Ivan N. Zlatev  <contact@i-nz.net>
2702         * GridEntry.cs: Leave the ICustomTypeDescriptor handling up to the 
2703         ComponentModel layer, which will properly prioritize the attributes.
2704         Avoids wrong prioritization of duplicate attributes when retrieving 
2705         the converter and editor.
2706         [Fixes bug #417729]
2708 2008-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2710         * XplatUIX11.cs: Increase the interval for the Timer, to not fire our
2711         pseudo motion HandleMouseOver method so aggresive. Also, don't call it
2712         when the pointer is actually in motion, but only when the pointer
2713         seems to stop (as .net does).
2714         Fixes part of #381876.
2716 2008-08-15  Ivan N. Zlatev  <contact@i-nz.net>
2718         * GridEntry.cs: Perform stricter check for the ParentEntry's 
2719         PropertyDescriptor/PropertyOwner for the ICustomTypeDescriptor 
2720         implementation.
2721         [Fixes bug #417567]
2723 2008-08-14  Geoff Norton  <gnorton@novell.com>
2725         * XplatUICarbon.cs: Properly implement PeekMessage and DoEvents.
2726         Fixes #396983.  Properly fix ActiveWindow trackin and do not
2727         prematurely show POPUP windows.
2729 2008-08-12  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2731         * XplatUIX11.cs: Handle the obscured regions while scrolling using
2732         GraphicsExpose event, processing it just after we copy the scrolled
2733         area. This ensures that the next calls to ScrollWindow will copy
2734         regions already updated, and the scrolling will be smooth. Also remove
2735         the code that was trying to detect the obscured regions, since we are
2736         not using it anymore (too slow).
2738 2008-08-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2740         * ListBox.cs: Fix the -temporary- broken selection in ListBox for
2741         MultiExtended mode, by separating some logic between the ctrl/shift
2742         handling. Also ignore any MouseMove events generated together with
2743         MouseDown events - we are only interested in the real motion event.
2744         Fixes part of #414963.
2746 2008-08-08  Jonathan Pobst  <monkey@jpobst.com>
2748         * DataGridViewCell.cs: Guard against an AOORE when checking if a cell
2749         is selected.  [Fixes bug #414143]
2751 2008-08-07  Ivan N. Zlatev  <contact@i-nz.net>
2753         * GridEntry.cs: Check if current property is a ICustomTypeDescriptor 
2754         and not the parent one (the propertyowner). Fixes the behavior of 
2755         GetConverter/GetEditor.
2756         [Fixes bug #415452]
2758 2008-08-07  Ivan N. Zlatev  <contact@i-nz.net>
2760         * PropertyGrid.cs: Refresh should also repopulate the PropertyGrid.
2761         [Fixes part of bug #415452]
2763 2008-08-05  Ivan N. Zlatev  <contact@i-nz.net>
2765         * GridEntry.cs: ITypeDescriptorContext should be relative to the parent 
2766         GridEntry, not the current.
2767         [Fixes bug #413896]
2769 2008-08-04  Ivan N. Zlatev  <contact@i-nz.net>
2771         * TextBoxBase.cs: De-internalize max_length field.
2772         * RichTextBox.cs: Use base.MaxLength - both TextBoxBase and RichTextBox 
2773         share the same logic.
2774         [Fixes bug #414454]
2776 2008-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2778         * ListBox.cs: Selection changes made in the MouseDown handler should
2779         use the *Core versions of selection in SelectedIndices collection,
2780         since the SelectedIndexChanged/SelectedValueChanged events are fired
2781         until we get a MouseUp event, and thus we need to separate the logic
2782         from the events, as done in the keyboard navigation. Also, fire those
2783         selection events from keyboard navigation in SelectionMode.None, even
2784         if we don't have a selection, as .Net does.
2786 2008-08-01  Jonathan Pobst  <monkey@jpobst.com>
2788         * ToolStripButton.cs, ToolStripMenuItem.cs: Guard against a NRE my
2789         last change introduced when an item is clicked but isn't on a toolstrip.
2791 2008-07-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2793         * ListBindingHelper.cs: When looking for an object's properties, check
2794         if it implements ICustomTypeDescriptor, in which case we should
2795         resolve the propertu based on its GetProperties method, not in its
2796         actual properties. This is what .Net seems to do.
2797         Fixes a UsingWebBrowser problem during initialization.
2799 2008-07-31  Jonathan Pobst  <monkey@jpobst.com>
2801         * ToolStrip.cs: Fix an NRE caused by clicking on a ToolStripButton
2802         sitting on a MenuStrip.
2804 2008-07-31  Jonathan Pobst  <monkey@jpobst.com>
2806         * ToolStripButton.cs: If we "click" a top button on a menustrip that has
2807         no children with the keyboard, we need to release the keyboard capture.
2808         [Fixes bug #413567]
2810 2008-07-31  Jonathan Pobst  <monkey@jpobst.com>
2812         * ToolStripMenuItem.cs: If we "click" a top level menu item that has
2813         no children with the keyboard, we need to release the keyboard capture.
2814         [Fixes bug #413567]
2816 2008-07-31  George Giolfan  <georgegiolfan@yahoo.com>
2818         * ThemeVisualStyles.cs: Made ScrollBar rendering less strict so it supports
2819         the GTK+-based implementation of VisualStyles.
2820         * ThemeWin32Classic.cs: Exposed various layout values for use in the
2821         GTK+-based implementation of VisualStyles: ListViewGetHeaderHeight(Font),
2822         ListViewGetHeaderHeight(), ProgressBarChunkSpacing, ProgressBarGetChunkSize(),
2823         ProgressBarGetChunkSize(int), ProgressBarDefaultHeight,
2824         TrackBarGetThumbSize(), TrackBarVerticalTrackWidth,
2825         TrackBarHorizontalTrackHeight.
2827 2008-07-31  George Giolfan  <georgegiolfan@yahoo.com>
2829         * TabControl.cs: Added hot style handling for the scroll buttons.
2830         right_slider_state, left_slider_state are now of type PushButtonState to
2831         allow for a hot state. Added tracking of the mouse button being held down
2832         on a tab page. Extracted HasHotElementStyles, RightScrollButtonArea,
2833         LeftScrollButtonArea.
2834         * Theme.cs, ThemeWin32Classic.cs: Removed TabControlGetLeftScrollRect,
2835         TabControlGetRightScrollRect.
2837 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
2839         * MenuAPI.cs: Check for null GrabControl on ProcessMnemonic to prevent 
2840         runtime errors.
2842 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
2844         * Form.cs: Ensure that we reset the shown_raised flag after 
2845         the form is closed, so that we raise the show events the next 
2846         time the form is shown.
2847         [Fixes bug #413141]
2849 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
2851         * Form.cs: Ensure closing events are raised only once.
2852         [Fixes bug #413143]
2854 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
2856         * X11Keyboard.cs: Refactor SendKeyboardInput to accept the keycode, 
2857         so that we can successfully generate the LParam in-place instead of 
2858         in KeyEvent, which isn't called for e.g. MainMenu. Fixes keyboard 
2859         navigation for menus.
2861 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
2863         * MenuAPI.cs: When montion don't set the keyboard navigation state to 
2864         'navigating'. Fixes bug #411356.
2866 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
2868         [Fixed remaining issues of #406773 (#1)]
2869         * MenuItem.cs: UpdateMenuItem added to track the shotcut changes.
2871         * MenuAPI.cs: Don't create tracker on TrackPopupMenu, it will be created in
2872         MainMenu (already done) and ContextMenu creation.
2874         * ContextMenu.cs: Create tracker on construction. 
2876 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
2878         * MenuAPI.cs: For ContextMenu set GrabControl on TrackPopupMenu, it make
2879         possible to instantiate MenuTracker without GrabControl.
2881 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
2883         * MenuAPI.cs: On constructor dont set the GrabControl for non ContextMenu.
2885         * MainMenu.cs: Set GrabControl on SetForm using current form.
2887 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
2889         * MenuAPI.cs: Chage grab_control to GrabControl and make it public.
2891 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
2893         * MenuAPI.cs: Check if menu is activated before deactivate it in 
2894         ProcessShortcut.
2896 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
2898         * TableLayoutStyleCollection, TableLayoutStyle.cs, RowStyle.cs, 
2899         ColumnStyle.cs: 
2900         Make the TableLayoutStyle owned by the the TableLayoutPanel, so that:
2901          - One style instance can only participate in a single style collection.
2902          - Styles can request their owner to layout whenever their properties 
2903          change.
2904          [Fixes bugs #412583 and #412582]
2906 2008-07-29  Ivan N. Zlatev  <contact@i-nz.net>
2908         * X11Keyboard.cs: Implement the generation of the LParam for 
2909         all keyboard messages.
2910         [Fixes bug #378728]
2912 2008-07-29  Jonathan Pobst  <monkey@jpobst.com>
2914         * ListBox.cs: Don't let the user set TopIndex so high that it
2915         scrolls up far enough to show empty items.
2916         [Fixes bug #412728]
2918 2008-07-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2920         * ThemeWin32Classic.cs: Actually commit the changes to fix #410880
2921         (I'm an idiot and forgot to commit the actual changes, as well as
2922         specify the right file, which is this one, not ListView.cs).
2924 2008-07-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2926         * ListView.cs: Don't draw ListViewSubItem instances from
2927         DrawListViewItem - we need to reuse the main item's drawing for the
2928         first sub item in case owner draw is true, but wants the system to
2929         do the default draw for the first sub item, without incurring in a
2930         recursion problem.
2931         Fixes #410880.
2933 2008-07-28  Jonathan Pobst  <monkey@jpobst.com>
2935         * ToolStripButton.cs: Update Checked for CheckOnClick before
2936         raising the Click event.  [Fixes bug #412505]
2938 2008-07-28  Ivan N. Zlatev  <contact@i-nz.net>
2940         * Form.cs: Remove some seems leftover code for non-TopLevel's 
2941         CreateParams, which is breaking ClientSize sizing, because it 
2942         removes the border window styles.
2944 2008-07-27  Ivan N. Zlatev  <contact@i-nz.net>
2946         * PropertyGrid.cs: Invalidate the View when the PropertyTab 
2947         changes.
2949 2008-07-25  Gert Driesen  <drieseng@users.sourceforge.net>
2951         * WebBrowser.cs: Removed debug output.
2953 2008-07-25  Jonathan Pobst  <monkey@jpobst.com>
2955         * FileDialog.cs: Apply patch from Ernesto to clean up some
2956         dialog messages.
2958 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
2960         * TableLayoutPanel.cs: Perform layout on GrowStyle change, so 
2961         that the change has an immediate effect.
2963 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
2965         * ScrollableControl.cs: Update PerformLayout calls to include 
2966         provide the name of the property that changed.
2968 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
2970         * TableLayoutPanel.cs: Draw relative to the DisplayRectangle 
2971         location. Fixes drawing of border and cell borders if scrollable.
2973 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
2975         * ScrollableControl.cs: Perform layouting after the AutoScroll 
2976         properties have changed, so that the changes have immediate 
2977         effect.
2978         [Fixes bug #409090]
2980 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
2982         * XplatUIX11.cs: Non Client area is actually Client such in the 
2983         case of NotifyIcon, so double check WholeWindow == ClientWindow 
2984         when adding an expose.
2985         [Fixes bugs #324237 and #357022]
2987 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
2989         * TableLayoutPanel.cs: Invalidate after layouting, so that we 
2990         repaint the cell borders.
2992 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
2994         * PropertyGridTextBox.cs: Stop filtering messages prior to our 
2995         disposal to avoid unexpected ObjectDisposedExceptions.
2997 2008-07-24  Ivan N. Zlatev  <contact@i-nz.net>
2999         * TableLayoutPanel.cs: Layout on Row/Column count change.
3001 2008-07-22  Gert Driesen  <drieseng@users.sourceforge.net>
3003         * ListViewItem.cs: Changed binary serialization to match MS. Fixes
3004         bug #409351.
3005         * PictureBox.cs: When ImageLocation is set to null or an empty string,
3006         only set image to null if it was previously initialized from an url
3007         (or using ImageLocation). In ImageLocation, load specified image
3008         asynchronously if WaitOnLoad is false. Added support for local file
3009         paths to LoadAsync, and added missing argument check.
3011 2008-07-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3013         * DateTimePicker.cs: 
3014         * ThemeWin32Classic.cs: Add a editing capability to DateTimePicker, in
3015         order to set the value as required (which means: when selection
3016         changes for a part being edited, and not before that if not needed).
3017         Also use an enum to describe which part are we using, and use the
3018         selection as a property in PartData, in order to notify the
3019         DateTimePicker owner that we need to end the current edit.
3020         Fixes #383462.
3022 2008-07-17  Ivan N. Zlatev  <contact@i-nz.net>
3024         * PropertyGridTextBox.cs: Validation should be performed only if we 
3025         are focused. We can lose focus for example if the Return key is used 
3026         to set the entry and there is an error. When the message box is 
3027         displayed we would have validate on click in the message box.
3029 2008-07-16  Ivan N. Zlatev  <contact@i-nz.net>
3031         * GridEntry.cs: Checking for DesignerSerializaitonVisibility.Content 
3032         in order to determine that we are expandable is wrong. There was a bug, 
3033         now fixed, in TypeDescriptor that was causing the wrong converter to be 
3034         returned which caused GetPropertiesSupported == false in most cases.
3035         [Fixes bug #409027]
3037 2008-07-15  Jonathan Pobst  <monkey@jpobst.com>
3039         * ImageList.cs: Fix ICollection.CopyTo implementation for
3040         ImageListCollection.  [Fixes bug #409169]
3042 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
3044         * MenuAPI.cs, ToolStripDropDown.cs: Use VirtualScreen instead of
3045         WorkingArea so that menus can appear on the second monitor
3046         when one has dual monitors.
3048 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3050         * TextBox.cs: Auto complete stuff in WndProc should be 2.0 only.
3051         Fixes build.
3053 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3055         * TextBox.cs: Implement navigation support for auto complete in
3056         TextBox, as well as refactor the code to show the auto complete window
3057         when receiving a WM_CHAR message, instead of TextChanged, since
3058         autocomplete itself should be able to set the Text a lot of times and
3059         finally only typing should show it, not changes from code.
3061 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3063         * TabControl.cs: When expanding the selected tab, don't adjust the
3064         width if alignment is Right, since it has a different offset than 0,
3065         as opposed to the other alignments.
3066         Fixes the selected tab not being painted at all with alignment = Right
3067         and using FillToRight size mode.
3069 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
3071         * TreeView.cs: Fix ToString to match MS.  [Fixes bug #409029]
3073 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
3075         * NumericUpDown.cs: Apply patch from Andy Hume to clamp out of range
3076         values from the textbox to the boundary values.  [Fixes bug #409026]
3078 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
3080         * TreeNodeCollection.cs: We were copying one too many elements when
3081         doing our array copy.  Fixes a crash when RemoveAt is called.
3082         [Fixes bug #408999]
3084 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3086         * TabControl.cs: When doing the layout and need to call FillRow -using
3087         FillToRight size mode-, use the overload receiving a bool param
3088         indicating whether we need to do a vertical or horizontal calculation.
3089         Fixes part of #399583.
3091 2008-07-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3093         * TextBox.cs: When painting, use the value returned by
3094         GetLastVisibleItem instead of using the cached last_item field, since
3095         there could be a desynchronization between the layout and the
3096         painting. Fixes a AOOR exception in auto complete mode.
3098 2008-07-12  George Giolfan  <georgegiolfan@yahoo.com>
3100         * ThemeVisualStyles.cs: Disabled when Application.VisualStyleState is
3101         NonClientAreaEnabled until our VisualStyles is modified to allow it.
3103 2008-07-12  Gert Driesen  <drieseng@users.sourceforge.net>
3105         * TextBox.cs: Fixed NRE in LostFocus. Avoid unnecessary initialization.
3107 2008-07-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3109         * TextBox.cs: When focus is lost, if the auto complete listbox is
3110         visible, hide it.
3112 2008-07-11  George Giolfan  <georgegiolfan@yahoo.com>
3114         * InternalWindowManager.cs: HandleSizing: Implemented a better minimum
3115         tracking size for tool windows.
3116         * Theme.cs, ThemeWin32Classic.cs : Extracted
3117         ManagedWindowSpacingAfterLastTitleButton.
3119 2008-07-11  Jonathan Pobst  <monkey@jpobst.com>
3121         * ThemeEngine.cs: Remove the clearlooks, nice, and old gtk themes.
3122         They are bit-rotted and have always been listed as "unsupported".
3124 2008-07-11  Jonathan Pobst  <monkey@jpobst.com>
3126         * PictureBox.cs: Don't crash if ImageLocation is set to "" or null.
3128 2008-07-11  George Giolfan  <georgegiolfan@yahoo.com>
3130         * ThemeVisualStyles.cs: Fixed minimized window height adjustment.
3132 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
3134         * ListBox.cs: Make sure last_item_visible gets reset before we try
3135         to do a layout due to scrollbars appearing or disappearing.
3136         [Fixes bug #408139]
3138 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
3140         * XPlatUIWin32.cs: Change GetMenuOrigin to calculate borders better
3141         for different window themes.  [Fixes bug #339140]
3143 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
3145         * ThemeWin32Classic.cs: Implemented minimized window border width properly,
3146         in ManagedWindowBorderWidth.
3148 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
3150         * InternalWindowManager.cs: Change MouseMove to take a point, so
3151         we can use the same point later on.
3152         * MdiWindowManager.cs: Store point sent to MouseMove so we can
3153         later reset to it.  On Windows, the Cursor.Position had already
3154         changed by the time we were resetting to it.
3155         [Fixes bug #363239]
3157 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
3159         * InternalWindowManager.cs: Ignore mouse actions on TitleButtons that
3160         are inactive.
3161         * ThemeWin32Classic.cs: Disable or hide MinimizeBox/MaximizeBox if
3162         user requested it.
3163         [Fixes bug #398686]
3165 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
3167         * MdiWindowManager.cs: Double-clicking on the title bar should not
3168         maximize a MDI form if MaximizeBox = false.
3170 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
3172         * ThemeVisualStyles.cs: Fixed a warning.
3174 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
3176         * ThemeVisualStyles.cs: Fixed warnings and formatted.
3178 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
3180         * ThemeVisualStyles.cs: Removed ManagedWindowGetMenuButtonSize. The base
3181         implementation produces a better result.
3183 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
3185         * ThemeVisualStyles.cs: Adjusted height and border rendering for minimized
3186         windows.
3188 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
3190         * Application.cs: Added VisualStylesEnabled because XplatUI.ThemesEnabled
3191         cannot be used from the ThemeEngine constructor.
3192         * ThemeEngine.cs: Changed the XplatUI.ThemesEnabled check to
3193         Application.VisualStylesEnabled because it does not work on X11.
3195 2008-07-09  Jonathan Pobst  <monkey@jpobst.com>
3197         * StatusBar.cs: Apply patch from Andy Hume to remove lazy instantiation
3198         that we did not always check for, as well as fixes to the IList
3199         implementations.  [Fixes bug #402703]
3201 2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>
3203         * IDeviceContext.cs: Added Dispose.
3205 2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>
3207         * Control.cs: Added OnSizeInitializedOrChanged.
3208         * Form.cs: OnLoadInternal: Added a call to
3209         Control.OnSizeInitializedOrChanged.
3210         * InternalWindowManager.cs:
3211          * HandleTitleBarMouseMove: No longer invalidates the parent window.
3212          * DrawTitleButton: Extracted Theme.ManagedWindowDrawMenuButton.
3213          * TitleButton: Added Entered.
3214          * TitleButtons.MouseMove: Added handling of TitleButton.Entered.
3215         * MdiWindowManager.cs:
3216          * HandleTitleBarMouseMove: Now invalidates the parent window when a mouse
3217          move over the maximized title buttons causes a change.
3218          * IsActive: Can now be called before the window is added to a MDI parent.
3219         * Theme.cs: Added ManagedWindowTitleButtonHasHotElementStyle,
3220         ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
3221         * ThemeVisualStyles.cs: Implemented proper managed window rendering.
3222         * ThemeWin32Classic.cs:
3223          * Extracted ManagedWindowDrawTitleBarAndBorders, ManagedWindowDrawTitleButton.
3224          * DrawTitleButton takes a new form parameter.
3225          * Added ManagedWindowTitleButtonHasHotElementStyle,
3226          ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
3228 2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>
3230         * ThemeEngine.cs: ThemeVisualStyles is now selected if
3231         Application.EnableVisualStyles has been called, even if the current system
3232         configuration does not support rendering with Visual Styles.
3233         * ThemeVisualStyles.cs: Now falls back to ThemeWin32Classic when Visual
3234         Styles should not be used.
3236 2008-07-08  Jonathan Pobst  <monkey@jpobst.com>
3238         * ComboBox.cs: PreferredHeight is not tied to ItemHeight.  Fixes 3rd
3239         ComboBox in FormsTest.
3241 2008-07-08  Ivan N. Zlatev  <contact@i-nz.net>
3243         * ThemeWin32Classic.cs: (ManagedWindowBorderWidth): width 3 is only 
3244         for fixed toolwindows.
3246 2008-07-08  George Giolfan  <georgegiolfan@yahoo.com>
3248         * Form.cs: SetBoundsCore: Added minimum size for minimized windows.
3250 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
3252         * Control.cs: CreateControl just returns if the Control is diposed 
3253         and doesn't throw ObjectDisposedException.
3254         [Fixes bug #406566]
3256 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
3258         * Control.cs: Do not create the control if the parent isn't created 
3259         yet, e.g in the case of a parented form on which .Show is called.
3260         It will be created when the parent is made visible/created.
3261         Improves #402446.
3263 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
3265         * Form.cs: Avoid recursively calling OnSizeChanged due to recursive 
3266         WM_WINDOWPOSCHANGED caused by the layouting code on win32.
3267         [Fixes bug #406786]
3269 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
3271         * Form.cs: When disposed set owner to null. Improves #402446.
3273 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
3275         * Form.cs, FlowLayoutPanel.cs: When calculating the PreferredSize 
3276         use children's PreferredSize if in AutoSize mode and ExplicitBounds 
3277         if not.
3278         * Form.cs: Take the Padding into account for the PreferredSize.
3279         [Fixes bug #402849]
3281 2008-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3283         * TabControl.cs: Since we don't support more than one direction in
3284         TabControl rows alignment (this is, the row becomes the
3285         bottom row when selected), make Direction return always 1. This way
3286         the layout doesn't get confused about a bad calculation.
3287         Fixes #399582.
3289 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
3291         * XplatUIX11.cs: Implement NC hit-testing for mouse down/up messages, 
3292         so that the wparam is properly set.
3293         Fixes form moving in the test case in bug 402446.
3295 2008-07-07  Jonathan Pobst  <monkey@jpobst.com>
3297         * FolderBrowserDialog.cs: If we can't find the SelectedPath, display
3298         the full tree instead of nothing.  [Improves bug #406584]
3300 2008-07-07  George Giolfan  <georgegiolfan@yahoo.com>
3302         * ThemeWin32Classic.cs: Adjusted minimized window painting.
3304 2008-07-07  George Giolfan  <georgegiolfan@yahoo.com>
3306         * InternalWindowManager.cs: No longer draws decorations for maximized MDI
3307         children.
3309 2008-07-04  Jonathan Pobst  <monkey@jpobst.com>
3311         * TreeView.cs: Add a null check when using CollapseAll on an
3312         empty tree.  [Fixes bug #406449]
3314 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
3316         * Form.cs: Make OnMenuComplete internal so we can call it.
3317         * MenuAPI.cs: Raise Form.MenuComplete when a menu item is clicked.
3318         [Fixes bug #399321]
3320 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
3322         * TabControl.cs: Handle Up and Down keys when TabControl is in
3323         vertical alignment.
3324         [Fixes bug #399585]
3326 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
3328         * TabControl.cs: Invalidate when we remove a tab.  Guard against
3329         an AOORE when trying to remove a tabpage that is not owned by the
3330         parent control.
3331         [Fixes bug #399927]
3333 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
3335         * ScrollBar.cs: Change the LargeChange calculation to be correct.
3336         Ensure we are using LargeChange instead of large_change so we our
3337         calculations are correct.
3338         [Fixes bug #403122]
3340 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
3342         * TableLayoutPanel.cs: When we change to a serialized TableLayoutSettings,
3343         we need to ensure the ColumnCount/RowCount gets set.
3344         [Fixes bug #404851]
3346 2008-07-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3348         * ListBox.cs: When handling item navigation, if selection mode is
3349         None, call EnsureVisible, since scrolling is normally handled by
3350         selection, that we are not calling in this case.
3351         Fixes #398345.
3353 2008-07-02  Jonathan Pobst  <monkey@jpobst.com>
3355         * ContainerControl.cs: Apply a patch from Ernesto Carrea that adds
3356         a null check to our focus walking code.  [Fixes bug #394332]
3358 2008-07-02  Andy Hume <andyhume32 at yahoo dot co dot uk>
3360         * ComboBox.cs: Case missed in bug 379596 "Support item
3361         navigation by entering text": On _close_ drop-down select
3362         the first item matching the text in the textbox.  [Fixes bug #397265]
3364 2008-07-02  Jonathan Pobst  <monkey@jpobst.com>
3366         * DataGridView.cs: Fix a crash when sorting by column headers, 
3367         mentioned in bug #404841.  Remove some dead switch cases.
3369 2008-07-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3371         * ComboBox.cs:
3372         * TextBox.cs: Implement AutoComplete support for ComboBox, which just
3373         uses the AutoComplete support in the internal TextBox. Also TextBox
3374         can store a reference to ComboBox, in case AutoCompleteSource is set
3375         to ListItems (this is, ComboBox's items, and we don't want to pass an
3376         additional collection).
3378 2008-07-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3380         * ListViewItem.cs: Restore the initial value of bounds rect to
3381         Rectangle.Empty, and is this value for Layout detection in virtual
3382         mode. Fixes the tests.
3384 2008-06-30  Jonathan Pobst  <monkey@jpobst.com>
3386         * XPlatUI.cs: Remove references to "new" X11 backend.
3388 2008-06-28  Ivan N. Zlatev  <contact@i-nz.net>
3390         * Control.cs: Add an internal virtual OnDragDropEnd method 
3391         to allow controls such as ListBox, which depend on a sequence 
3392         of MouseDown+Move+End events, to handle the lack of a MouseUp 
3393         when a DnD operation is started in MouseDown.
3394         * ListBox.cs: If a DnD operation is started in MouseDown we won't 
3395         get a MouseUp, so reset our state whenever a DnD operation ends.
3397 2008-06-28  Ivan N. Zlatev  <contact@i-nz.net>
3399         * PropertyGrid.cs: Clear the root griditem first thing when 
3400         new object/s is/are selected. Fixes some rare cases where 
3401         the View will get a paint request and won't know that the 
3402         grid is in the process of repopulating.
3404 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
3406         * XplatUIX11.cs, InternalWindowManager.cs: 
3407         If WS_EX_TOOLWINDOW is set in the CreateParams for a form MS 
3408         doesn't automagically update the FormBorderStyle, so we must 
3409         double check the CreateParams explicitly to determine if the 
3410         window is a toolwindow.
3411         * ThemeWin32Classic.cs: Use InternalWindowManager.IsToolWindow 
3412         instead of doing custom checks.
3414         Fixes toolwindows for the test case in bug #402446
3416 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
3418         * Control.cs: Visibility of the control should be false 
3419         when the handle is destroyed in WmDestroy and not immediately 
3420         in Dispose(). This is effectively where the disposing process 
3421         ends even though the control is marked as Disposed immediately 
3422         after calling Dispose().
3423         [Fixes bug #402446]
3425 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
3427         * PropertyGridTextBox.cs: Start monitoring the mouse clicks 
3428         when the textbox gets focus.
3429         [Fixes bug #402704]
3431 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
3433         * PropertyGridTextBox.cs, PropertyGridView.cs: 
3434          - Alt + Down should show the drop down editor.
3435          - Focus the editor when showing it
3436         [Fixes bug #402710]
3438 2008-06-25  Jonathan Pobst  <monkey@jpobst.com>
3440         * ThemeWin32Classic.cs: Fix from Andy for panel text for panels
3441         that are not the first panel.
3442         * StatusBar.cs: Ensure that the X coordinate of panels is always
3443         stored.  Fix IList implementation of StatusBarPanelCollection to
3444         call the regular methods.
3445         [Fixes bug #403599, #402165]
3447 2008-06-23  Jonathan Pobst  <monkey@jpobst.com>
3449         * ThemeWin32Classic.cs: Fix position calculation for centered
3450         text on status bar panels.  [Fixes bug #402165]
3452 2008-06-22  Ivan N. Zlatev  <contact@i-nz.net>
3454         * Splitter.cs: Fix Splitter to:
3455          - Work for arbitrary splitter size
3456          - Handle MinSize and MinExtra properly
3457          - Get rid of absolute positioning during drag and use relative
3458          - Multiple other fixes 
3459          [Fixes bug #338966]
3461 2008-06-22  Ivan N. Zlatev  <contact@i-nz.net>
3463         * Cursor.cs: Show shouldn't hide the cursor.
3465 2008-06-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3467         * ListViewItem.cs: When invalidating, add some extra space to bounds,
3468         since focus rectangle and selection can add some space and need to
3469         take into account those small offsets - specially in Details view.
3470         * ListView.cs: Instead of invalidate using item Bounds directly, call
3471         item.Invalidate, to have the code centralized.
3472         Fixes focused/selection garbage when selecting and deselecting items
3473         that are close.
3475 2008-06-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3477         * ListViewItem.cs: Set bounds initially to -1 values - thus in virtual
3478         mode we can check whether we have to force a Layout or not, and can
3479         cache based on this, instead of avoiding caching all the the time. Do
3480         this check in GetBounds and TextBounds.
3481         Fixes selection in Details view.
3483 2008-06-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3485         * ListView.cs: Make HeaderControl internal, thus the theme engine can
3486         get its *real* height instead of trying to infere it.
3487         * ThemeWin32Classic.cs: When drawing gridlines, don't iterate over the items to
3488         get the position of them, since it's in general a bad idea in general,
3489         and because we can't do that in virtual mode. Instead get the first
3490         visible item as well as item height, and draw them.
3491         Fixes #400390.
3493 2008-06-20  Jonathan Pobst  <monkey@jpobst.com>
3495         * ToolStripSplitButton.cs: We can't add in extra width if
3496         the button is not AutoSize.  [Fixes bug #401279]
3498 2008-06-20  Ivan N. Zlatev  <contact@i-nz.net>
3500         * PaddingConverter.cs: 
3501          - Implement conversion to InstanceDescriptor
3502          - Handle "All" in CreateInstance by using the supplied 
3503          ITypeDescriptorContext.
3504          [Fixes bugs #396076 and #396078]
3506          Patch by Andy Hume  <andyhume32@yahoo.co.uk>
3507          Code contributed under MIT/X11 license.
3509 2008-06-19  Andy Hume <andyhume32 at yahoo dot co dot uk>
3511         * ComboBox.cs, ListControl.cs, Control.cs, Button.cs, 
3512         ButtonBase.cs:
3513         Add Category attributes.
3514         Code is contributed under the MIT/X11 license.
3516 2008-06-18  Ivan N. Zlatev  <contact@i-nz.net>
3518         * Form.cs: 
3519          - Fix a NRE when unparenting a form.
3520          - Do not recreate or destroy a parented form when 
3521         unparenting. 
3523 2008-06-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3525         * TextBox.cs: Implement basic support for AutComplete with custom
3526         sources.
3528 2008-06-18  Jonathan Pobst  <monkey@jpobst.com>
3530         * ToolStripSplitButton.cs: Left and Top of ButtonBounds, SplitterBounds,
3531         DropDownButtonBounds should be from the origin of the button, not the
3532         ToolStrip.  [Fixes bug #401279]
3534 2008-06-16  Sandy Armstrong <sanfordarmstrong@gmail.com> 
3536         * X11DesktopColors.cs: Clear GTK_MODULES environment variable before
3537           running gtk_init_check.  This prevents GAIL from loading
3538           unnecessarily, which was breaking UIA support.  Initial fix for bug
3539           #375987.
3540         * Application.cs: Add UIA support to Winforms.  New static constructor
3541           uses reflection to initialize UIAutomationWinforms assembly.  Added
3542           PreRun event so UIA can initialize before the mainloop starts, and
3543           FormAdded event so UIA can provide a11y support for new Forms in an
3544           Application.
3546 2008-06-16  Jonathan Pobst  <monkey@jpobst.com>
3548         * DataGridView.cs: When binding to a dataset, subscribe to table
3549         and column change events.  Unsubscribe to these when we clear bindings.
3550         [Fixes bug #399601]
3552 2008-06-14  Everaldo Canuto  <ecanuto@novell.com>
3554         [DataGrid drawing refactory]
3556         * DataGrid.cs: Fix the caption size, we need one pixel more for divider.
3558         * DataGridColumnStyle.cs: Removing PaintHeader code, the draw operations
3559         must be handle by Theme, now it call DataGridPaintColumnHeader.
3561         * DataGridTextBoxColumn.cs: Fix the textbox size. It must be one pixel less,
3562         test cases must be also fixed because it checks for wrong size.
3564         * ThemeWin32Classic.cs: 
3565                 - Draw the bottom line of grid caption.
3566                 - Prevent to draw caption text when it is empty.
3567                 - Use CPDrawBorder3D for 3D efects to simplify code.
3568                 - Uses 3D (when not flat) to paint corner shared between row and column
3569                 header.
3570                 - Fix header drawing issues on win32, now borders are drawing.
3571                 - Fix column header paint issues to mimic win32.
3572                 - Adjust header drawing for last column, like first one it must be draw
3573                 different.
3574                 - Added DataGridPaintRowHeaderStar to draw star like .net does, it is
3575                 not an character.
3576                 - DataGridPaintColumnHeader created to draw column headers, it also
3577                 paint stuff right on Win32.
3578                 - Use DataGridPaintColumnHeader method instead of DataGridColumnStyle 
3579                 class.
3581         * Theme.cs: 
3582                 - DataGridPaintRowHeaderStar method added.
3583                 - DataGridPaintColumnHeader method added.
3585 2008-06-13  Jonathan Pobst  <monkey@jpobst.com>
3587         * Control.cs: Don't reset to Dock style layout if DockStyle is
3588         set to none.  [Fixes bug #399316]
3590 2008-06-12  Everaldo Canuto  <ecanuto@novell.com>
3592         * Win32DnD.cs: Fix the check for control not equal null.
3593         Fixes bug #341420 and #381886. 
3595 2008-06-12  Jonathan Pobst  <monkey@jpobst.com>
3597         * DataGridViewRowCollection.cs: Update the indexes of rows after
3598         one has been removed.
3599         * DataGridViewSelectedRowCollection.cs: Add internal clear method.
3600         * DataGridViewSelectedColumnCollection.cs: Add internal clear method.
3601         * DataGridView.cs: Add support for deleting rows via Delete key, deleting
3602         rows for the Rows collection, or deleting rows from the bound DataSet.
3604 2008-06-12  Jonathan Pobst  <monkey@jpobst.com>
3606         * DataGridView.cs: Listen to a DataSet's changed event even
3607         when autogeneratecolumns is false.  Refactor the changed event's
3608         add row code to use the same as the existing add row code.
3609         [Fixes bug #399601]
3611 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
3613         * TextBoxBase.cs: We need to call RaiseSelectionChanged pretty
3614         much any time the caret moves and there is text, not just when
3615         the selection changes as one would think.
3616         * RichTextBox.cs: Override RaiseSelectionChanged and fire
3617         SelectionChanged.
3618         [Fixes bug #397271]
3620 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
3622         * FontDialog.cs: Forward ListBox keyboard events to the ListBox
3623         instead of trying to duplicate the code.
3624         * ListBox.cs: Make method internal so we can send keyboard events.
3625         [Fixes bug #398344]
3626         
3627 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
3629         * TextBoxBase.cs: When pasting and checking the max length,
3630         subtract the selected text length (the text we will be replacing) from
3631         the document length.
3632         * TextControl.cs: Ensure every character insertion is reflected in
3633         charcount, so max length will work properly.
3634         [Fixes bug #398605]
3636 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
3638         * ListBox.cs: Ensure scrollbars are updated when a single
3639         column listbox with an already set top-index is created.
3640         [Fixes bug #398342]
3642 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
3644         * FontDialog.cs: Typing in the font/style textboxes should search
3645         the list boxes case-insensitively.  [Fixes bug #398343]
3647 2008-06-11  George Giolfan  <georgegiolfan@yahoo.com>
3649         * ThemeWin32Classic.cs: Managed window title bar layout now uses actual
3650         widths of icon and buttons instead of hard coded values.
3652 2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3654         * ListBox.cs: When SelectionMode is None, clicking an item should move focus
3655         as well as generating a SelectedIndexChanged event, just like .Net does
3656         -surprise-.
3657         Fixes #398345.
3659 2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3661         * ListBox.cs: When navigating items visually, use FocusedItem as the
3662         reference point instead of SelectedIndex, since even in
3663         SelectionMode.None we need to support navigation, and in that case we
3664         just can't use SelectedIndex.
3665         Fixes part of #398345.
3667 2008-06-10  Jonathan Pobst  <monkey@jpobst.com>
3669         * Control.cs: Make a SetBoundsInternal that avoids the new
3670         SetBounds code.
3671         * ComboBox.cs, Form.cs, ListBox.cs, ScrollableControl.cs: Use
3672         SetBoundsInternal instead of SetBoundsCoreInternal.
3674 2008-06-10  Ivan N. Zlatev  <contact@i-nz.net>
3676         * ScrollableControl.cs: Use SetBoundsCoreInternal instead of 
3677         SetBounds for the scrollbars.
3679 2008-06-10  Andreia Gaita <avidigal@novell.com> 
3681         * HtmlDocument.cs: Implement RightToLeft, ContextMenuShowing,
3682           FocusingEvent, LosingFocusEvent, OnMouseDown, OnMouseLeave,
3683           OnMouseMove, OnMouseOver, OnMouseUp
3684         * HtmlElement.cs: Optimize InsertBefore. Implement RemoveFocus,
3685           ScrollIntoView, Focusing, GotFocus, LosingFocus, LostFocus.
3686         * HtmlElementCollection.cs, HtmlWindowCollection.cs: Keep a reference
3687           to the WebControl object to pass to new collection objects
3688         * HtmlHistory.cs: Implement support for individual window histories.
3689         * HtmlWindow.cs: Implement History, Position, Size, WindowFrameElement,
3690           AttachEventHandler, DetachEventHandler, RemoveFocus, Error,
3691           GotFocus, LostFocus, OnLoad, OnUnload
3692         * WebBrowser.cs: Implement EncryptionLevel, ScrollBarsEnabled,
3693           ContextMenu
3694         * WebBrowserBase.cs: Implement Cursor, Enabled, UseWaitCursor, Add
3695           security level changes and context menu event support.
3697 2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3699         * ComboBox.cs: Pressing Enter should close the dropdown listbox, just
3700         as happens with Esc, patch my Andy Hume.
3701         Fixes #396294.
3703 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
3705         * MdiWindowManager.cs: DrawMaximizedButtons now uses
3706         ManagedWindowGetMenuButtonSize instead of ManagedWindowButtonSize.
3707         * Theme.cs: Made MenuButtonSize platform dependent. Added
3708         ManagedWindowButtonSize.
3709         * ThemeWin32Classic.cs: Added ManagedWindowGetMenuButtonSize.
3710         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added MenuButtonSize.
3712 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
3714         * DateTimePicker.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs:
3715         Added support for rendering with VisualStyles.
3717 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
3719         * ComboBox.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
3720         support for rendering the border with VisualStyles.
3722 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
3724         * InternalWindowManager.cs: Added ShowIcon. Fixed IconRectangleContains when
3725         the icon is not shown.
3726         * ThemeWin32Classic.cs: Now uses InternalWindowManager.ShowIcon instead of
3727         its own logic.
3729 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
3731         * InternalWindowManager.cs: Draw minimized windows even if they don't have
3732         borders.
3734 2008-06-09  Jonathan Pobst  <monkey@jpobst.com>
3736         * ComboBox.cs, ListBox.cs: Use SetBoundsInternalCore instead of SetBounds.
3738 2008-06-09  Jonathan Pobst  <monkey@jpobst.com>
3740         * Control.cs: Fill in the defaults for unspecified bounds in SetBounds.
3741         [Fixes bug #397943]
3743 2008-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3745         * ComboBox.cs: When snaping height -because of IntegralHeight set to
3746         true- with ComboBoxStyle.Simple, set the height to PreferredHeight
3747         if the requested height leaves the listbox area with *less* than the
3748         required are to see one item. We were setting it to PreferredHeight
3749         even for values matching the height for a single item.
3750         Fixes #396297.
3752 2008-06-06  Jonathan Pobst  <monkey@jpobst.com>
3754         * DataGridViewCell.cs: Simplify GetInheritedStyle by using ApplyStyle.
3756 2008-06-06  Jonathan Pobst  <monkey@jpobst.com>
3758         * DataGridViewCell.cs: Use property instead of field.
3760 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
3762         * InternalWindowManager.cs, ThemeWin32Classic.cs: Removed useless Form.Icon
3763         null checks.
3765 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
3767         * Theme.cs: Added #region around the managed window code. Made the managed
3768         window methods abstract.
3769         * ThemeWin32Classic.cs: Added #region around the managed window code.
3771 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
3773         * InternalWindowManager.cs: Now only calls Theme.DrawManagedWindowDecorations
3774         if it has borders.
3775         * ThemeWin32Classic.cs: Removed HasBorders checks in
3776         DrawManagedWindowDecorations.
3778 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
3780         * InternalWindowManager.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
3781         Extracted ManagedWindowGetTitleBarIconArea.
3783 2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
3785         * DataGridViewCellStyle.cs: Don't clone the font.
3787 2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
3789         * DataGridViewCell.cs: Ensure we don't pass null to GetConverter.
3791 2008-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3793         * XplatUIX1..cs: Use IntPtr size instead of int, as wee need to work
3794         also on 64 bit machinges. Fixes the BadWindow errors while scrolling
3795         in 64 bit machines.
3797 2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
3799         * DataGridViewCell.cs: Correctly get converters for FormattedValue.
3800         Use Format/FormatProvider before trying converters.
3801         * DataGridViewCellStyle.cs: ApplyStyle should only apply things that
3802         are 'set'.  Change constructor to not use ApplyStyle since it wants
3803         everything applied.  Clone the Font.
3804         * DataGridViewRowHeaderCell.cs: Start with DefaultCellStyle and
3805         ApplyStyle the rest.
3807 2008-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3809         * ListView.cs: We need to calculate the scrollbars even if the handle
3810         hasn't been created - this is needed when methods using scrollbars
3811         info, such EnsureVisible, are called before control has been created.
3812         Fixes #397272.
3814 2008-06-05  George Giolfan  <georgegiolfan@yahoo.com>
3816         * ThemeVisualStyles.cs: ScrollBar is now rendered with the VisualStyles API
3817         only if the elements are defined. 
3819 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3821         * ComboBox.cs: I'm an idiiot - forgot to commit the last ComboBox
3822         section. Also, when setting bounds, snap height as well as save the
3823         requested height if Dock has any value affecting the height: Left,
3824         Right and Bottom - important if using IntegralHeight as true.
3826 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3828         * ComboBox.cs: When calling UpdateComboBoxBounds, adjust the height
3829         passed to SetBounds to reflect the new adjusted height (Integral-wise), 
3830         instead of doing that only in our SetBoundsCore override, since the 
3831         bounds cached can be the same as saved one and we could not get the
3832         new height applied.
3833         Fixes #396297.
3835 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
3837         * Theme.cs: Made ToolWindowCaptionButtonSize platform dependent.
3838         * XplatUI.cs: Added ToolWindowCaptionButtonSize.
3839         * XplatUIDriver.cs: Changed SmallCaptionButtonSize to 15,15. Added
3840         ToolWindowCaptionButtonSize.
3841         * XplatUIWin32.cs: Added ToolWindowCaptionButtonSize.
3843 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
3845         * MdiWindowManager.cs: Now uses SystemInformation.DoubleClickTime instead of
3846         hard coded values.
3847         * Theme.cs: Made DoubleClickTime plaform dependent.
3849 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
3851         * Theme.cs: Made ToolWindowCaptionHeight platform dependent.
3852         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
3853         ToolWindowCaptionHeight.
3855 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
3857         * InternalWindowManager.cs: The adjustment to ensure positive client area
3858         sizes is now platform dependent (disabled on Windows).
3859         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
3860         RequiresPositiveClientAreaSize.
3862 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
3864         * Form.cs: Fixed null handling in Icon (see SettingIconToNull in the tests).
3866 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
3868         * InternalWindowManager.cs: Changed IconicSize to use
3869         SystemInformation.MinimizedWindowSize.
3870         * XplatUICarbon.cs, XplatUIX11.cs: Removed MinimizedWindowSize.
3871         * XplatUIDriver.cs: Changed MinimizedWindowSize to provide a default value.
3873 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3875         * ComboBox.cs: If the combobox is anchored both on top and bottom,
3876         adjust height if IntegralHeight is true when calling SetBoundsCore (as
3877         likely the height was modified even if Height wasn't specified in
3878         BoundsSpecified parameter).
3879         Fixes part of #396297.
3881 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com> 
3883         * InternalWindowsManager.cs: Changed minimum window size while resizing to
3884         SystemInformation.MinWindowTrackSize.
3885         * XplatUICarbon.cs, XplatUIX11.cs: Removed MinWindowTrackSize.
3886         * XplatUIDriver.cs: Changed MinWindowTrackSize to provide a default value.
3888 2008-06-03  George Giolfan <georgegiolfan@yahoo.com> 
3890         * MenuItem.cs: Fixed Dispose.
3892 2008-06-03  George Giolfan <georgegiolfan@yahoo.com> 
3894         * ColumnHeader.cs: CalcColumnHeader now uses the theme to get the height.
3895         * DataGridView.cs: * EnableHeadersVisualStyles: Fixed default value.
3896         EnteredHeaderCell, PressedHeaderCell: Added.
3897         * DataGridViewCell.cs: Refactored: Extracted GetBorderPen.
3898         * DataGridViewColumnHeaderCell.cs, DataGridViewRowHeaderCell.cs: Gave the
3899         theme a chance to override default painting.
3900         * ListView.cs: Added EnteredColumnHeader. Refactored: Extracted
3901         GetColumnHeaderInvalidateArea, Invalidate(ColumnHeader).
3902         * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added members for
3903         ListView and DataGridView header rendering.
3904         
3905 2008-06-03  Ivan N. Zlatev  <contact@i-nz.net>
3907         * RichTextBox.cs: GetPositionFromCharIndex should return the 
3908         visual position of the character relative to the viewport.
3909         [Fixes part of bug #396664]
3911 2008-06-03  Ivan N. Zlatev  <contact@i-nz.net>
3913         * GridEntry.cs: Make HasCustomEditor check for EditStyle != None 
3914         and not just for the existance of an UITypeEditor. In some cases 
3915         there is an editor associated just to do PaintValue, but which 
3916         doesn't actually support editing.
3917         [Fixes bug #396632]
3919 2008-05-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3921         * ComboBox.cs: page_size as well as vscrollbar.LargeChange should be 1
3922         if needed, instead of 0 - this should help us in the corner case where
3923         we have more than one item but we are only partially showing 1 item.
3924         Fixes part of #374713.
3926 2008-05-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3928         * XplatUiX11.cs: When scrolling and detecting the obscured areas in a
3929         control, return immediately if the any parent control's handle hasn't
3930         been created or isn't visible, as well as avoiding creating the parent
3931         Form if the handle hasn't been previously created.
3932         Fixes tests.
3934 2008-06-02  Jonathan Pobst  <monkey@jpobst.com>
3936         * TableLayoutPanel.cs: Use border sizes when calculating the
3937         panel's preferred size.  [Fixes part of bug #396433]
3939 2008-06-02  Ivan N. Zlatev  <contact@i-nz.net>
3941         * SplitContainer.cs:
3942          - Fix SplitterDistance to update only if needed. 
3943          - Make it force min and max validation.
3944          - Handle properly mouse moves outside the resizeable area.
3945          [Fixes bug #396232]
3947 2008-06-02  Andreia Gaita <avidigal@novell.com> 
3949         * WebBrowserBase.cs: Implement support for ScriptErrorsSuppressed
3950           (which also suppresses all popup dialogs). Throw NotSupported
3951           exceptions for activex getters/setters.
3952         * WebBrowser.cs: Implement DocumentStream, DocumentType, IsBusy,
3953           IsOffline, ReadyState, ScriptErrorsSuppressed, ScrollbarsEnabled,
3954           StatusText, Version, GoSearch
3955         * HtmlDocument.cs: Add DocType support
3957 2008-06-02  Andy Hume  <andyhume32@yahoo.co.uk>
3959         * TextBox.cs: Implement TextBoxAutoCompleteSourceConverter.
3960         [Fixes bug 396124]
3962 2008-06-02  Ivan N. Zlatev  <contact@i-nz.net>
3964         * GridEntry.cs: Pass the ITypeDescriptorContext everywhere.
3966 2008-06-02  Jonathan Pobst  <monkey@jpobst.com>
3968         * TableLayoutPanel.cs: When calculating preferred size, use the
3969         actual number of columns and rows, not what the user set them to.
3970         [Fixes bug #396141]
3972 2008-06-02  George Giolfan <georgegiolfan@yahoo.com> 
3974         * Form.cs: Enabled managed handling of tool window MDI children. Fixes bug
3975         394311.
3977 2008-06-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3979         * XplatUIX11.cs: When detecting areas obscured in a control by other
3980         toplevel windows while scrolling, return if the control hasn't a 
3981         container form.
3982         Fixes some tests.
3984 2008-05-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3986         * XplatUIX11.cs: Properly detect the visible area of a control being
3987         scrolled (obscured by other winforms controls and any X toplevel
3988         windows), to mark as invalid the requested area to be scrolled that
3989         isn't visible and thus can't be copied.
3990         Fixes #324513.
3992 2008-05-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3994         * ListBox.cs: Compute the precise amount to vertically scroll when
3995         using DrawMode.OwnerDrawVariable.
3996         Patch by jkeymer (j.keymer@gmx.net).
3998 2008-05-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4000         * ComboBox.cs: Use ListBox-like scrollbar values In ComboListBox 
4001         to avoid setting an invalid value for the verticall scrollbar 
4002         when navigating items. And, duh, also remove my silly debug messages
4003         from previous commits.
4004         Fixes #374713.
4006 2008-05-30  Ivan N. Zlatev  <contact@i-nz.net>
4008         * FlatButtonAppearance.cs: Make FlatButtonAppearanceConverter exandable and 
4009         make it MS compatible.
4011 2008-05-30  Ivan N. Zlatev  <contact@i-nz.net>
4013         * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs: 
4014          - Allow the editing of entries even if their parent is read-only.
4015          - Do not render expandable properties read-only.
4016          - Refactor expansion checks form PropertyGrid into PropertyGrid.
4018 2008-05-30  George Giolfan <georgegiolfan@yahoo.com> 
4020         * ScrollBar.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
4021         support for the hover style.
4023 2008-05-29  Andreia Gaita <avidigal@novell.com> 
4025         * ContainerControl.cs: Check for null dead-end when traversing the tree
4026           of parent controls.
4027         
4028           [Fixes #394332, patch by Ernesto Carrea]
4030 2008-05-29  Geoff Norton  <gnorton@novell.com>
4032         * XplatUICarbon.cs: Fix a culture-dependent conversion to be the
4033         constant that it is.  Fixes #393981
4035 2008-05-29  Jonathan Pobst  <monkey@jpobst.com>
4037         * Form.cs: Add a MonoTODO to the AutoScaleBaseSize setter explaining
4038         that the user probably doesn't want to set this.
4040 2008-05-29  Jonathan Pobst  <monkey@jpobst.com>
4042         * ThemeWin32Classic.cs: Don't let the text size be bigger than
4043         the control size for CheckBox/RadioBox.
4044         [Fixes part of bug #394645]
4046 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
4048         * PropertyGrid.cs: Update the state of the sorting buttons in 
4049         the toolbar if PropertySort is set programatically.
4051 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
4053         * GridItemCollection.cs: Add multiple items with conflicting names 
4054         support and also preserve name ordering.
4055         [Fixes #395345]
4057 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
4059         * GridItemCollection.cs: Revert my multiple items with same 
4060         name patch.
4062 2008-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4064         * ScrollBar.cs: Scrollbars should only react to left-clicks, not right
4065         or middle ones.
4066         Fixes part of #393908.
4068 2008-05-28  Jonathan Pobst  <monkey@jpobst.com>
4070         * ToolStripDrowDown.cs: When using the Show () methods that have a
4071         Control parameter, set the menu owner to that Control.
4072         [Fixes bug #394345]
4074 2008-05-28  Ivan N. Zlatev  <contact@i-nz.net>
4076         * PropertyGridTextBox.cs, PropertyGridView.cs: Implement validation.
4077         [Fixes bug #362756]
4079 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
4081         * GridItemCollection.cs: Refactor to support multiple items with the 
4082         same name.
4083         [Fixes bug #394314]
4085 2008-05-27  Jonathan Pobst  <monkey@jpobst.com>
4087         * Control.cs: The 2.0 check for illegal cross thread calls in 
4088         Control.Handle were throwing an exception when we were getting
4089         the Handle in order to invoke correctly.  Created a private
4090         version that does not contain this check.
4091         [Fixes bug #394531]
4093 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
4095         * PropertyGrid.cs: Respect DefaultTabType.
4097 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
4099         * ListView.cs: SPACE selects an item.
4100         [Fixes bug #393023]
4102 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
4104         * ListView.cs: Reset the search string whenever the items are 
4105         modified.
4106         [Fixes bug #393020]
4108 2008-05-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4110         * ListControl.cs: For the first added item PositionChanged is fired
4111         _before_ ItemChanged, which leave us in a temporary invalid state - so
4112         we need to set the selected index from ItemChanged handler *if* we
4113         know that the first item has just been added *and* the items have been
4114         actually added to the ListControl.
4115         Fixes #369048.
4117 2008-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4119         * TabControl.cs: Only clicks with the left button should be
4120         handled.
4121         Fixes #393908.
4123 2008-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4125         * ComboBox.cs: 
4126         * FIleDialog.cs:
4127         * TextBox.cs: Expose an internal method in TextBox to restore the
4128         original context menu, and call it from ComboBox to re-use it in the
4129         combobox containing the file name in FileDialog.cs.
4130         Fixes part of #393775.
4132 2008-05-24  George Giolfan  <georgegiolfan@yahoo.com>
4134         * ThemeVisualStyles.cs: Added support for the hot ComboBox drop down button
4135         style.
4137 2008-05-24  George Giolfan  <georgegiolfan@yahoo.com>
4139         * ComboBox.cs, Theme.cs, ThemeWin32Classic.cs: Added support for the hot drop
4140         down button style.
4142 2008-05-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4144         * ComboBox.cs: Minor correction to previous patch: PageDown should
4145         also *try* to move by one item if the computed offset is negative,
4146         just like the PageUp case.
4148 2008-05-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4150         * ComboBox.cs: When navigating using PageDown/PageUp the navigation
4151         should be done for at least 1 item, and not stay at the same item.
4152         Fixes part of #374713.
4154 2008-05-23  Jonathan Pobst  <monkey@jpobst.com>
4156         * FileDialog.cs: Add a FSEntryComparer, and use it to sort the
4157         directories.  [Fixes bug #393931]
4159 2008-05-22  Andreia Gaita <avidigal@novell.com> 
4161         * WebBrowser.cs: Implement DocumentText. Implement AllowNavigation.
4162           Don't fire events until the initial about:blank page has finished
4163           loading. Clean up events.
4165 2008-05-22  Atsushi Enomoto  <atsushi@ximian.com>
4167         * XplatUIX11.cs : when we call WM_SETFOCUS, call X11Keyboard
4168           FocusIn() too. This should fix the issue on switching
4169           scim keyboards.
4171 2008-05-22  Atsushi Enomoto  <atsushi@ximian.com>
4173         * X11Keyboard.cs : set XIM font size to somewhat reasonable
4174           number (ideally the input textbox size, but that could be
4175           too messy).
4177 2008-05-22  Jonathan Pobst  <monkey@jpobst.com>
4179         * ToolStripTextBox.cs: List for the TextBox's TextChanged and fire
4180         the ToolStripItem's TextChanged.  [Fixes bug #393597]
4182 2008-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4184         * TabControl.cs: When invalidating in SelectedIndex and we need to
4185         inflate to take into account the border of the tabs, make sure that
4186         the invalidated rect doesn't overflow the control bounds, since that
4187         would avoid updating at all.
4189 2008-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4191         * TabControl.cs: Don't substract scroller width from the row width,
4192         since we need to take into account the total width of the control when
4193         calculating the position of the tabs. This avoids showing scroller
4194         when it is actually not needed.
4195         Fixes part of #322325.
4197 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
4199         * ThemeVisualStyles.cs: Added support for TextBoxBase.
4201 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
4203         * RichTextBox.cs, TextBoxBase.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
4204         Extracted TextBoxBase.Draw and Theme.TextBoxBase*.
4206 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
4208         * DataGridView.cs: Only paint the top left header cell if there
4209         are columns.
4211 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
4213         * DataGridView.cs: When binding to a BindingSource, get the underlying
4214         list to bind to.  [Fixes bug #345483]
4216 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
4218         * DataGridView.cs: Do not bind to collection properties.
4219         [Fixes bug #337470]
4221 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
4223         * ThemeVisualStyles.cs: Added support for the hot TrackBar thumb style.
4225 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
4227         * Theme.cs, ThemeWin32Classic.cs, TrackBar.cs: Added support for the hot
4228         thumb style.
4230 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
4232         * ThemeVisualStyles.cs: Added support for ToolTip transparent background.
4234 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
4236         * Theme.cs, ThemeWin32Classic.cs, ToolTip.cs: Added support for transparent
4237         background.
4239 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
4241         * ThemeVisualStyles.cs: Added support for ToolBar hot and hot checked styles.
4243 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
4245         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs: Added support for hot and hot
4246         checked styles.
4248 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
4250         * TabControl.cs: Extended to handle the hot style.
4252 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
4254         * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs, UpDownBase.cs:
4255         Extended UpDownBase code to handle hot and disabled styles.
4257 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
4259         * DataGridView.cs: Handle databinding to generic list type things.
4260         [Fixes bug #325239]
4262 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
4264         * DataGridViewCellCollection.cs: Add a method to find the cell
4265         with the given DataPropertyName.
4266         * DataGridViewColumn.cs: Track if the column was autogenerated or not.
4267         * DataGridViewColumnCollection.cs: Add a method to clear all
4268         autogenerated columns.
4269         * DataGridView.cs: If AutoGenerateColumns is false, don't autogenerate
4270         columns.
4271         [Fixes bug #348082]
4273 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
4275         * DataGridView.cs: Don't try to update the RowTemplate with
4276         a null CellTemplate.
4278 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
4280         * DataGridViewColumn.cs: Allow IsDataBound to be set internally.
4281         * DataGridViewColumnCollection.cs: Ensure OnColumnAdded is called.
4282         * DataGridView.cs: Lots of fixes/enhancements to databinding to
4283         a DataSet.
4285 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
4287         * Control.cs: Remove invalidating implicit child controls when
4288         control is invalidated.  It was causing too many redraws on
4289         controls with implicit scrollbars.
4290         * ListView.cs: Listen to the Invalidated event and invalidate
4291         child controls.
4293 2008-05-20  Andreia Gaita <avidigal@novell.com> 
4295         * WebBrowserBase.cs, WebBrowser.cs: Hook up page loading events
4296         * HtmlDocument.cs: Check for nulls
4298 2008-05-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4300         * Control.cs: In ControlCollection.RemoveInternal, remove the
4301         internal control before calling PerformLayout and OnControlRemoved,
4302         which was leaving us in an invalid state and causing a X error (bad
4303         match). Observe that Remove () call has the same order.
4304         Fixes an X error changing ComboBoxStyle.DropDownStyle.
4306 2008-05-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4308         * TabControl.cs: Don't paint by ourselved and instead let OnPaint
4309         being fired if ControlStyles.UserPaint style is activated.
4310         Fixes #371905.
4312 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
4314         * GridEntry.cs: Don't be so strict when setting the value - 
4315         do not check if what we set is what we get.
4316         [Fixes bug #389245]
4318 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
4320         * XplatUIX11.cs: If there are no timers timeout should be 0
4321         [Fixes bug #363522]
4323 2008-05-19  Jonathan Pobst  <monkey@jpobst.com>
4325         * Control.cs: As a followup to invalidating implicit children when
4326         a control is invalidated, only invalidate them if they are in the
4327         clip rectangle.
4329 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
4331         * ThemeVisualStyles.cs: Implemented partial support for ToolTip.
4333 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
4335         * ThemeWin32Classic.cs: Refactored: Extracted ToolTipDrawBackground.
4337 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
4339         * GroupBoxRenderer.cs: Fixed text area clipping in the Visual Styles case.
4340         * XplatUIWin32.cs: Made Win32DeleteObject public.
4342 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
4344         * GridEntry.cs: Determine HasDefaultValue more strictly by using 
4345         PropertyDescriptor.ShouldSerializeValue.
4346         [Fixes bug #391924]
4348 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
4350         * ThemeVisualStyles.cs: Enabled support for ScrollBar element styles not present
4351         in the classic theme.
4353 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
4355         * ScrollBar.cs: Added FirstButtonEntered, SecondButtonEntered, ThumbEntered,
4356         ThumbPressed.
4357         * Theme.cs, ThemeWin32Classic.cs: Added ScrollBarHasHotElementStyles,
4358         ScrollBarHasPressedThumbStyle.
4360 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
4362         * TextRenderer.cs: Included some methods in the 1.1 profile.
4364 2008-05-19  Jonathan Pobst  <monkey@jpobst.com>
4366         * Control.cs: When we make a control visible, it may have been
4367         previously visible and while it wasn't visible, the z-order of
4368         things may have been shuffled, so the control needs to have its
4369         z-order updated just in case.  [Fixes bug #391518]
4371 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
4373         * ThemeVisualStyles.cs: Added support for GroupBox.
4375 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
4377         * GroupBoxRenderer.cs: Included in the 1.1 profile.
4379 2008-05-16  Atsushi Enomoto  <atsushi@ximian.com>
4381         * XplatUIX11.cs, X11Keyboard.cs : redoing r103060 with fix for
4382           bug #389996; XSelectInput() behaved as mouse handler robber,
4383           so remove extra call to it.
4385 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
4387         * Control.cs: Simplify ControlCollection.Contains method.
4389 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
4391         * DataGridViewRow.cs: Implement GetPreferredSize.
4393 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
4395         * DataGridViewComboBoxCell.cs: Don't declare text twice.  Fixes build.
4397 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
4399         * DataGridViewComboBoxCell.cs: Implement some NIEX stuffs, better
4400         painting and edit control fixes.
4402 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
4404         * DataGridView.cs, DataGridViewCell.cs: Work around some external
4405         checks to make sure we are in an actual row/col for top left header cell.
4406         * DataGridViewTopLeftHeaderCell.cs: Implement some NIEX's.
4408 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
4410         * Control.cs: Use long instead of int when handling WParam from
4411         mousewheel scrolling.  Int was overflowing on Win64.
4413 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
4415         * FlowLayoutPanel.cs, ScrollableControl.cs: We need to layout the
4416         flow panel without scrolling first, and then calculate the 
4417         scrolling based on the new layout.  [Fixes bug #390149]
4419 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
4421         * ListBox.cs: Invalidate after scrolling up when selected index
4422         changes.  [Fixes bug #390151]
4424 2008-05-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4426         * ComboBox.cs: When setting mode to Simple *and* height hasn't been
4427         set, default height to 150. I tried first with DefaultSize, but this
4428         is not generating a SetBoundsCore call before handle creation time, so
4429         we can take it into account. This is just what .net does.
4431 2008-05-13  Jonathan Pobst  <monkey@jpobst.com>
4433         * XplatUIX11.cs, X11Keyboard.cs: Had to revert eno's r103060,
4434         as it broke some stuff.  Calberto is filing a bug for eno to
4435         work with.
4437 2008-05-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4439         * ComboBox.cs: When handling PageDown pressed event, set SelectedIndex
4440         to 0 is the current value is -1, and if style is not Simple, just
4441         return, like .net does.
4442         Fixes part of #374713.
4444 2008-05-13  Jonathan Pobst  <monkey@jpobst.com>
4446         * ThemeWin32Classic.cs, ThemeVisualStyles.cs: When calculating
4447         progress bar stuffs, use doubles instead of ints to prevent
4448         overflow.  [Fixes bug #389798]
4450 2008-05-13  Atsushi Enomoto  <atsushi@ximian.com>
4452         * XplatUIX11.cs, X11Keyboard.cs :
4453           Significant refactoring on XIM support. Now IM engine UI
4454           should show up, at mostly-correct preedit position.
4455           - Eliminated use of FocusWindow, as it is never mapped
4456             and hence blocks correct preedit position. XIC is now
4457             created per window, and it must be destroyed too when
4458             the window is destroyed.
4459           - WM_QUIT messages should not be filtered even when hwnd
4460             is zombie. Filtering it could cause endless loop.
4461           - Preedit position must move only when the window is alive.
4462           - Make it IDisposable and make sure to release XIM/XICs.
4464 2008-05-13  Atsushi Enomoto  <atsushi@ximian.com>
4466         * Timer.cs, Control.cs, Form.cs, ApplicationContext.cs,
4467           XplatUIX11.cs, XplatUIWin32.cs :
4468           fix for bug #325033 and #387693;
4469           - WM_QUIT should not be sent when no running application
4470             exists.
4471           - SetTimer/KillTimer (especially on win32) should be
4472             invoked for the window that the timer is/will_be attached.
4473           - There could be unattached timers to a window when it's
4474             started. For those timers, hold pending timers and when
4475             a window is mapped, attach them to it.
4476           - WaitForHwndMessage() could run into loop when
4477             WM_SHOWWINDOW is handled before this method is called.
4478             So, strictly check wm_showwindow state.
4479           - Tick handler should not be invoked while one Tick handler
4480             call is still running (introduced Busy state).
4482 2008-05-13  Andreia Gaita <avidigal@novell.com> 
4484         * WebBrowserBase.cs: Override Internal alternative methods for
4485           SetBoundsCore and OnResize instead of the protected ones.
4486         * Control.cs: Move SetBoundsCore and OnResize implementations to
4487           SetBoundsCoreInternal and OnResizeInternal, so they can be
4488           overriden internally (WebBrowserBase needs to catch them but can't
4489           override the protected methods without api compat problems)
4491 2008-05-13  Andreia Gaita <avidigal@novell.com> 
4493         * WebBrowserBase.cs: Hiding away non-public overrides for api compat
4495 2009-05-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4497         * Binding.cs:
4498         * ListView.cs: Remove debug messages.
4500 2008-05-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4502         * ComboBox.cs: Don't do any calculation for simple mode if the listbox
4503         area is empty. Also calculate scrollbars in Simple mode based in area
4504         height and total number of items, not in MaxDropDownItems.
4505         Fixes part of #371991.
4507 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
4509         * PictureBox.cs: Always invalidate on resize.  Fixes an app for jhill.
4511 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
4513         * BindingSource.cs: GetListSortDescription is not public.
4515 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
4517         * WebBrowser.cs, WebBrowserBase.cs, WebBrowserSiteBase.cs: corcompare.
4519 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
4521         * HtmlElement.cs: Fix parameter names to match MS.
4522         * HtmlWindowCollection.cs: Should not be sealed.
4524 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
4526         * ThemeWin32Classic.cs: Always draw the scrollbar area under the thumb
4527         button, because the thumb button will not get drawn if the scrollbar
4528         is disabled.  [Fixes bug #389262]
4530 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
4532         * ListBox.cs: Handle End key for multi-column listboxen.
4533         [Fixes bug #389266]
4535 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
4537         * ListBox.cs: Fix algorithm to determine which column our item is in.
4538         [Fixes bug #389265]
4540 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
4542         * ListBox.cs: Invalidate when the listbox is resized.
4543         [Fixes bug #389256]
4545 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
4547         * ListBox.cs: There is always at least one row in the ListBox (if
4548         we are doing these calculations.)  [Fixes bug #389253]
4550 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
4552         * ListBox.cs: There is always at least one column in the ListBox.
4553         [Fixes bug #389250]
4555 2008-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4557         * ComboBox.cs: When handle is created call UpdateComboBoxBounds to
4558         ensure in Simple mode that the height is exactly the requested one.
4559         Also add the ComboBoxListControl to the controls collection in Simple
4560         mode even if handle hasn't been created.
4561         Fixes part of #371991.
4563 2008-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4565         * ComboBox.cs: For ComboListBox control -specially in Simple mode-, give focus to
4566         our ComboBox owner instead of giving it back to the previous control (
4567         as done in other controls). Also remove the empty override of Select
4568         method, since we want to be selected *and* give focus to our owner.
4569         This should let the user do keys-navigation in Simple mode. 
4571 2008-05-10  Geoff Norton  <gnorton@novell.com>
4573         * XplatUICarbon.cs: Dont use HIViewScrollRect as it's causing painting
4574         problems with rapid scrolling of treeviews. Fixes #381084
4576 2008-05-10  Geoff Norton  <gnorton@novell.com>
4578         * XplatUICarbon.cs: Deactivate the active window before
4579         activating the desired window.  Completes fixing #386504
4581 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4583         * ListView.cs: When calculating scrollbars, set horizontal scroll bar
4584         SmallChange to the item size width plus the padding, to match .net.
4586 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4588         * FileDialog.cs: Apply the custom filter typed by the user in the file
4589         name combobox as much as possible while navigating in the file dialog.
4590         Fixes #385261.
4592 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4594         * Binding.cs: Actually use NullValue if the retrieved value of
4595         data source is null or DBNull. Makes a test pass.
4597 2008-05-09  Jonathan Pobst  <monkey@jpobst.com>
4599         * ErrorProvider.cs, Form.cs: Get icons from ResourceImageLoader.
4600         * MimeIcon.cs: Provide a way to get icons from resources.
4602 2008-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4604         * Binding.cs: When the value retrieved from the control to be assigned
4605         to the data source is null, actually use the 2.0 DataSourceNullValue
4606         value. Make pass a data binding test.
4608 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
4610         * Control.cs: We need to invalidate implicit children even when
4611         invalidate is called with invalidatechildren = false.  (Implicit
4612         children are really part of the parent.)
4613         * ListView.cs: Double-buffer internal child controls for less
4614         flicker.
4615         * ThemeWin32Classic.cs: Remove an extra nested loop in drawing
4616         owner ListView subitems for greatly increased performance.
4617         [Fixes bug #388477]
4619 2008-05-08  Carlos Alberto Cortez <calebrto.cortez@gmail.com>
4621         * FileDialog.cs: When the user types a wildcard character in the
4622         filename combobox, update the contents of the folder using the text as
4623         a filter.
4624         Fixes part of #385261.
4626 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
4628         * ListBox.cs: Various fixes for MultiColumn listboxen.
4629         [Fixes bug #388114]
4631 2008-05-08  Andreia Gaita <avidigal@novell.com> 
4633         * HtmlElement.cs: Implement Style property
4635 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
4637         * ListBox.cs: Respect checkboxes when measuring item size.
4638         * ThemeWin32Classis.cs: When drawing list items, don't draw
4639         text outside of the item's bounds to prevent overlapping.
4640         (.Net actually overlaps, but that's just silly.)
4641         [Fixes bug #388117]
4643 2008-05-08  Everaldo Canuto  <ecanuto@novell.com>
4645         * NotifyIcon.cs: Call SetForegroundWindow before show context menu. Thanks
4646         Gert Driesen. Fixes bug #324830. 
4648 2008-05-07  Everaldo Canuto  <ecanuto@novell.com>
4650         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: SetForegroundWindow
4651         method implemented.
4653 2008-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4655         * BindingSource.cs: When calling IsSynchronized, return the value of
4656         the related IList list.
4658 2008-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4660         * ListBindingHelper.cs: Fix some bits in GetListItemProperties, to
4661         make a test pass.
4663 2008-05-07  Jonathan Pobst  <monkey@jpobst.com>
4665         * DataGridView.cs: Implement PageUp/PageDown keys.  Extend keyboard
4666         navigation to scroll the grid if the current cell is not visible.
4668 2008-05-07  Andreia Gaita <avidigal@novell.com> 
4670         * HtmlElement.cs: Implement TabIndex
4672 2008-05-07  Jonathan Pobst  <monkey@jpobst.com>
4674         * ListBox.cs: Respect ScrollAlwaysVisible and HorizontalScrollbar
4675         properties, even when there are no items.
4676         [Fixes bug #387611]
4678 2008-05-07  Ivan N. Zlatev  <contact@i-nz.net>
4680         * NativeWindow.cs: Add support for multiple handles per window.
4681         * NativeWindows.cs, LibSupport.cs, Control.cs, XplatUIX11GTK.cs, 
4682         XplatUIX11.cs, X11Display.cs: Do not access NativeWindow.windows_collection 
4683         directly - use FromHandle instead.
4684         [Fixes bug #374660]
4686 2008-05-07  Andreia Gaita <avidigal@novell.com> 
4688         * HtmlElement.cs: Implement InnerHTML setter
4690 2008-05-07  Andreia Gaita <avidigal@novell.com> 
4692         * HtmlDocument.cs: Implement Focused
4694 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4696         * BindingSource.cs: Minor fixes to the the ApplySort and Remove sort
4697         methods, as well as add messages to the exceptions.
4699 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4701         * BindingSource.cs: Setting DataSource should only reset DataMember if
4702         the previous value was null (make pass a not working test).
4704 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4706         * BindingSource.cs: When EndInit call is postponed and is called until
4707         DataSource.EndInit is called, remove the handler for data source.
4709 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
4711         * ToolStripManager.cs: Don't use IsAlive, race condition, etc. etc.
4713 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
4715         * ToolStripManager.cs: Store references to toolstrips as
4716         weak references so they do not prevent forms from getting collected.
4717         [Fixes bug #386483]
4719 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
4721         * TrackBar.cs: We can't set ResizeRedraw because it isn't set
4722         on .Net.  So do the same thing in WndProc.
4724 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
4726         * TrackBar.cs: Commit patch from Andy Hume that corrects
4727         the clickable areas to better match .Net.
4728         [Fixes bug #387074]
4730 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
4732         * TrackBar.cs: Commit patch from Andy Hume that adds the
4733         ResizeRedraw control flag so the track bar repaints itself
4734         when it is resized.  [Fixes bug #387072]
4736 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
4738         * TrackBar.cs: Commit patch from Andy Hume that adds better
4739         support for keyboard navigation when the TrackBar is vertical.
4740         [Fixes bug #387071]
4742 2008-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4744         * BindingSource.cs: Implement ISupportInitializeNotification support.
4746 2008-05-06  George Giolfan  <georgegiolfan@yahoo.com>
4748         * ThemeVisualStyles.cs: Added support for ToolBar.
4750 2008-05-06  George Giolfan  <georgegiolfan@yahoo.com>
4752         * ToolBar.cs: Made the Vertical property internal.
4754 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
4756         * ThemeVisualStyles.cs: Added support for TrackBar.
4758 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
4760         * ThemeWin32Classic.cs: Refactored: Extracted TrackBarGetThumbSize,
4761         TrackBarDrawVerticalTrack, TrackBarDrawVerticalThumbRight,
4762         TrackBarDrawVerticalThumbLeft, TrackBarDrawVerticalThumb,
4763         TrackBarGetVerticalTickPainter, TrackBarDrawHorizontalTrack,
4764         TrackBarDrawHorizontalThumbBottom, TrackBarDrawHorizontalThumbTop,
4765         TrackBarDrawHorizontalThumb, TrackBarGetHorizontalTickPainter.
4767 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
4769         * ThemeVisualStyles.cs: Added support for UpDownBase.
4771 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
4773         * Theme.cs, ThemeWin32Classic.cs, UpDownBase.cs: Refactored:
4774         Extracted Theme.UpDownBaseDrawButton.
4776 2008-05-05  Jonathan Pobst  <monkey@jpobst.com>
4778         * ToolStrip.cs, ToolStripDropDownItem.cs: Make sure toolstrips are
4779         removed from the static toolstrips collection in ToolStripManager
4780         when they are disposed.  Provides a workaround for bug #386483.
4782 2008-05-05  Ivan N. Zlatev  <contact@i-nz.net>
4784         * GridEntry.cs: Read-only properties with Editor with 
4785         UITypeEditorEditStyle.Modal shouldn't be read-only in the PropertyGrid.
4786         [Fixes bug #384184]
4788 2008-05-05  Jonathan Pobst  <monkey@jpobst.com>
4790         * MenuStrip.cs, ToolStrip.cs: Guard against an NRE when pressing
4791         the menu key and there are no items on the menu.
4792         [Fixes bug #386644]
4794 2008-05-05  Sebastien Pouliot  <sebastien@ximian.com>
4796         * Control.cs: Avoid calling ToString on a string.
4797         * Form.cs: Avoid calling ToString on a string. Found using Gendarme.
4798         * GroupBox.cs: In FlatStyle property throw, not just create, the 
4799         exception. Avoid calling ToString on a string.
4800         * ProgressBar.cs: Avoid calling ToString on a string. 
4801         * ScrollBar.cs: Avoid calling ToString on a string. 
4802         [All issues were found using Gendarme]
4804 2008-05-05  Everaldo Canuto  <ecanuto@novell.com>
4806         * NotifyIcon.cs: Prevent click events to be trigger after double click 
4807         events. Fixes remaining issues of bug #324832.
4809 2008-05-05  Everaldo Canuto  <ecanuto@novell.com>
4811         * NotifyIcon.cs: Trigger click and mouseclick events after mouseup event
4812         to mimic win32 behavior. Partially fixes bug #324832.
4814 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4816         * BindingSource.cs: Implement Find methods.
4818 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4820         * BindingSource.cs: Implement Sort, ApplySort overloads, and
4821         RemoveSort methods.
4823 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4825         * ListBindingHelper.cs: When calling GetListItemProperties and the
4826         passed object is ITypedList, return the result of
4827         ITypedList.GetItemProperties instead.
4829 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
4831         * LinkLabel.cs: Set default value of name on constructor of Link class
4832         only for 2.0 profile.
4834 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
4836         * LinkLabel.cs: Fix implementation of LinkCollection.LinksAdded property.
4837         Fixes remaining issues of bug #346154.
4839 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
4841         * LinkLabel.cs: Set a default value for name on internal contructor of
4842         Link class. It fixes assert B5 of LinkCollectionTest.Constructor1.
4844 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
4846         * LinkLabel.cs: Move links collection from LinkCollection to LinkLabel
4847         and refer all instances to owner.links. Partially fixes #346154.
4849 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
4851         * LinkLabel.cs: Fix linkarea values for empty text, must have start and 
4852         length equal zero. Also called CreateLinkPieces in constructor. It fixes
4853         the LinkLabel test 'TestLinkArea'.
4855 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
4857         * Form.cs: Remove menu before close form to prevent form to be not gaced.
4858         [Fixes #386460]
4860 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
4862         * MenuAPI.cs: Dispose popup window after hide. Thanks to Jesse Jones.
4863         [Fixes #386463]
4865 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
4867         * MenuAPI.cs: Implemented keyboard navigation for ContextMenu.
4868         [Fixed bug #357004]
4870 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
4872         * MenuAPI.cs: Remove unused ProcessCmdKey method.
4874 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
4876         * MenuAPI.cs: Prevent NRE in menu deactivation when shortcut is used. 
4877         [Fixes bug #375398]
4879 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
4881         * MenuAPI.cs: Enable implicit mnemonics for menus. Fixes remaining issues
4882         of bug #367492.
4884 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
4886         * MenuAPI.cs: Check if mouse down comes from menu, we need it because
4887         sometimes we open a conext menu on mouse down of some controls and the mouse
4888         up is dispatched to menu and dont need to. It fix remaining issues of 
4889         #363711 and other problems related to menu mouse click events.
4891 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
4893         * MonthCalendar.cs: Implemented "Go to today" context menu, also changed
4894         some var names to better fit changes, now we have month_menu and today_menu
4895         vars. Fixes bug #363711.
4897 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
4899         * MonthCalendar.cs: Handle every right mouse click to open context menu,
4900         right now the default month menu but it will be change to have "Go to today"
4901         menu.
4903 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
4905         * FileDialog.cs, MaskedTextBox.cs, OpenFileDialog.cs: corcompare.
4907 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
4909         * ThemeWin32Classic.cs: Fix MonthCalendar arrows drawing.
4911 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
4913         * ThemeVisualStyles.cs: Added support for TreeView.
4915 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
4917         * Theme.cs, ThemeWin32Classic.cs, TreeView.cs: Refactored:
4918         Moved TreeView.DrawNodePlusMinus to Theme.TreeViewDrawNodePlusMinus.
4920 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
4922         * OpenFileDialog.cs: Implement 2.0 SP1 stuffs.
4924 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
4926         * FileDialogCustomPlace.cs, FileDialogCustomPlacesCollection.cs:
4927         Implement 2.0 SP1 stuffs.
4929 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
4931         * FileDialog.cs: Implement 2.0 SP1 stuffs.
4933 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
4935         * Control.cs, ContainerControl.cs, DataGridView.cs, TextBoxBase.cs:
4936         Implement CanEnableIme property. (2.0 SP1)
4938 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
4940         * BindingManagerBase.cs, PropertyManager.cs: Hide GetItemProperties
4941         from the 2.0 API.
4943 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
4945         * Control.cs: Provide an internal way for a control to override
4946         the setting of Height.
4947         * DateTimePicker.cs: Remove SetBoundsCore from 2.0 profile,
4948         set height using new method.
4950 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
4952         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawMixedCheckBox.
4954 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
4956         * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
4957         ControlPaint.DrawMixedCheckBox now calls Theme.CPDrawMixedCheckBox.
4959 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
4961         * ThemeVisualStyles.cs: Added support for StatusBar.
4963 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
4965         * DataObject.cs: Add the other IDataObject interface.
4967 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
4969         * ThemeWin32Classic.cs: Refactored: extracted DrawStatusBarBackground,
4970         DrawStatusBarSizingGrip, DrawStatusBarPanelBackground.
4972 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
4974         * DataGridViewCheckBoxCell.cs, DataGridViewImageCell.cs: Fix parameter names.
4975         * ListView.cs: Hide non-public API.
4976         * MaskedTextBox.cs: Remove extra attribute.
4978 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
4980         * DataGridViewImageCell.cs: Use formatted value instead of value
4981         to calculate preferred size.
4983 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
4985         * ListBox.cs: Move some initialization around so that selected_indices
4986         is not accessed before it is created.
4988 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
4990         * InputLanguageCollection.cs: Implement the collection better.
4991         [Fixes bug #385506]
4993 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
4995         * ToolStripDropDownItem.cs: Get the correct event object for
4996         DropDownItemClicked.
4997         * ToolStripMenuItem.cs: Raise DropDownItemClicked on our owner.
4998         [Fixes bug #385475]
5000 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
5002         * DataGridViewRowCollection.cs: We don't currently support shared 
5003         rows.  Should fix test failures caused by previous commit.
5005 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
5007         * DataGridViewRow.cs: Fixes for cloning the row, ensure header cell's
5008         datagridview gets set.  Only paint cells in visible columns.
5009         * DataGridViewCell.cs: Draw border after cell content.
5010         * DataGridView.cs: Invalidate after setting some properties.  Only
5011         use visible columns.  Fit hit test bug with areas in the col/row header
5012         area but not in a row or col.  Implement UpdateCell/Row methods.
5014 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
5016         * DataGridViewElement.cs: Don't throw NIEX.
5017         * DataGridViewColumnHeaderCell.cs: Draw error icons for top left header cells.
5018         * DataGridViewColumnDesignTimeVisibleAttribute.cs: Don't throw NIEX.
5019         * DataGridViewCheckBoxColumn.cs: Implement ToString.
5020         * DataGridViewCheckBoxCell.cs: Allow DBNull as a value.
5021         * DataGridViewCell.cs: Don't raise CellFormatting for RowHeader cells,
5022         if the user filled in the formatting Value, use it.
5024 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
5026         * DataGridViewTextBoxCell.cs: Fix for objects that cannot be cast
5027         to a string.
5029 2008-04-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5031         * BindingSource.cs: Some corrections to Filter property, as well as
5032         setting it for our list when resetting it.
5034 2008-04-29  Jonathan Pobst  <monkey@jpobst.com>
5036         * ScrollBar.cs: Don't let dragging the thumb grip set the value greater
5037         than the maximum.  Fixes reopened bug #384182.
5039 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
5041         * ToolStripDropDown.cs: Fix offscreen position for DropDown itens.
5042         Fixes remaining issues of #367490.
5044 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
5046         * ToolStripDropDown.cs: Screen.Bound dont return right value then use 
5047         SystemInformation.WorkingArea to get max_screen value.
5049 2008-04-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5051         * BindingSource.cs: Implement Filter and RemoveFilter.
5053 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
5055         * MenuAPI.cs: Prevent sub-menu positon to be less than zero.
5057 2008-04-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5059         * X11Dnd.cs: When trying to convert data and we know we started the
5060         dnd loop, don't try to use the cached data if the loop is not running,
5061         which means that the data has been resetted.
5062         Fixes #378191.
5064 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
5066         * MenuAPI.cs: Force first menu subitem to show from left to right to mimic
5067         win32 behavior.
5069 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
5071         * MenuAPI.cs: Check the screen limits before show sub-menus and prevent
5072         it to drawn off screen edge. Fixes bug #367490.
5074 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
5076         * MenuAPI.cs: In PopupWindow.RefreshItems uses a temp point var to store
5077         menu position to have only one assignment of Location var.
5079 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
5081         * MenuAPI.cs: Implement the right key for sub-menus. Thanks Ernesto Carrea
5082         for this patch. Fixes bug #384115.
5084 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
5086         * ScrollBar.cs: If SmallChange is larger than LargeChange, make them
5087         the same.  If LargeChange is zero, set a minimum size for the scroll
5088         thumb grip.  [Fixes bug #384182]
5090 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
5092         * TextBoxTextRenderer.cs: Don't turn &A into a prefix for textboxen.
5093         [Fixes bug #384181]
5095 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
5097         * ListBox.cs: Math.Min should be Math.Max.  [Fixes bug #384183]
5099 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
5101         * ThemeVisualStyles.cs: Added partial support for ScrollBar (based on the
5102         patch from Ernesto).
5104 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
5106         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawComboButton.
5108 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
5110         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawButton.
5112 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
5114         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawRadioButton.
5116 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
5118         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawScrollButton.
5120 2008-04-27  George Giolfan  <georgegiolfan@yahoo.com>
5122         * ThemeVisualStyles.cs: Added support for ButtonBase.UseVisualStyleBackColor.
5124 2008-04-27  Andreia Gaita <avidigal@novell.com> 
5126         * HtmlWindow.cs, HtmlHistory.cs: Throw on DomHistory getter (it's
5127           supposed to return a reference to an mshtml interface, which we
5128           don't support).
5129         * HtmlElement.cs: Throw on DomElement getter (it's supposed to return a
5130           reference to an mshtml interface, which we don't support). Code
5131           formatting cleanup.
5132         * HtmlDocument.cs: Add DefaultEncoding getter implementation. Throw on
5133           DomDocument getter (it's supposed to return a reference to an
5134           mshtml interface, which we don't support). Code formatting cleanup.
5136 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5138         * ListView.cs: Ouch, forgot to commit.
5140 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5142         * ListView.cs: 
5143         * ThemeWin32Classic.cs: Fire the -until now- forgotten CacheVirtualItems event.
5145 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5147         * ListView.cs: When calculating box selection for virtual mode, don't
5148         look for intersection with item's text, but item bounds, since that
5149         would mean read ListViewItem's text for _every_ item, and that's
5150         something we just can't do in virtual mode (items are only requested
5151         when drawn).
5153 2008-04-26  George Giolfan  <georgegiolfan@yahoo.com>
5155         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCaptionButton and
5156         partial support for managed windows (based on the patch from Ernesto).
5158 2008-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5160         * ListView.cs: When doing a key search use FindItemWithText method
5161         instead of doing the search by ourselves, this way we avoid
5162         duplicating the code and also we handle the special case for virtual
5163         mode. To achieve that make our private overload of FindItemWithText
5164         internal and also have a 'roundtrip' parameter.
5166 2008-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5168         * ListView.cs: When doing the layout don't request the
5169         ListViewItem instance if we are in virtual mode (since we can't request it
5170         until the item is actully drawn).
5172 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
5174         * ThemeVisualStyles.cs: Added support for ProgressBar (based on the patch 
5175         from Ernesto).
5177 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
5179         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCheckBox (based on 
5180         the patch from Ernesto).
5182 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
5184         * ThemeEngine.cs: Added code to select ThemeVisualStyles.
5185         * ThemeVisualStyles.cs: Added.
5187 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
5189         * IDeviceContext.cs: Added a missing using.
5191 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
5193         * ButtonBase.cs: Made IsDefault protected internal.
5194         * ButtonRenderer.cs: Made GetPushButtonRenderer(PushButtonState) internal.
5196 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
5198         * Application.cs: Included VisualStyles-related members in the 1.1 profile.
5199         * ButtonRenderer.cs, CheckBoxRenderer.cs, Padding.cs, PaddingConverter.cs,
5200         RadioButtonRenderer.cs: Included in the 1.1 profile.
5201         * IDeviceContext.cs: Added.
5202         * TextRenderer.cs: Included a member in the 1.1 profile.
5204 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
5206         * ThemeWin32Classic.cs: Added ShouldPaintFocusRectangle(ButtonBase).
5208 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
5210         * ErrorProvider.cs: Make the error icons come after the control
5211         they refer to.  It isn't the way the MS does it, but its better
5212         than what we were doing.  See bug #368587.
5214 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
5216         * InputLanguage.cs, InputLanguageCollection.cs: Apply patch
5217         from Eric Albright that lazy loads the input language as ensures
5218         everything gets properly initialized.  Fixes bug #373871.
5220 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
5222         * ToolStrip.cs: Don't use ToolStripControlHosts when figuring up
5223         implicit mnemonics.  [Fixes bug #383000]
5225 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5227         * X11Dnd.cs: When canceling the operation, automatically restore the
5228         default cursor - normally the default cursor is restored when the
5229         mouse buttons are released, but we should be able to restore it even
5230         if the buttons are still pressed (for example, when pressing ESC to
5231         cancel).
5232         Fixes #381894.
5234 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5236         * X11Dnd.cs: When starting a new drad and drop operation, set control
5237         field to null, just as the other fields, to avoid calling any
5238         operation on a previous control. Also, when calling DndLeave on a
5239         control, set it to null, thus we don't fire that event multiple times
5240         for that control.
5241         Fixes #209264.
5243 2008-04-23  Geoff Norton  <gnorton@novell.com>
5245         * XplatUICarbon.cs: Ensure that we have a valid hwnd before accessing
5246         the whole_window object.  Fixes #377084.
5248 2008-04-23  Andreia Gaita <avidigal@novell.com> 
5250         * HtmlElement.cs: Implement RaiseEvent (event injection into the
5251           embedded browser)
5253 2008-04-23  Jonathan Pobst  <monkey@jpobst.com>
5255         * DataGridViewColumnHeaderCell.cs: Implement some NIEX stuffs.
5257 2008-04-23  Andreia Gaita <avidigal@novell.com> 
5259         * HtmlElement.cs, HtmlDocument.cs: Implement javscript method
5260           invocation
5262 2008-04-23  Andreia Gaita <avidigal@novell.com> 
5264         * HtmlElement.cs, HtmlDocument.cs: Implement custom event handler
5265           attaching/detaching
5267 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5269         * X11Dnd.cs: When the drop was cancelled, or could just not be
5270         performed, return DragDropEffect.None always (match .net).
5272 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
5274         * DataGridViewRowHeaderCell.cs: Fill in some NIEX stuff.
5276 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
5278         * DataGridViewRowCollection.cs: Revert something I didn't mean to commit.
5280 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
5282         * DataGridView.cs: Add support for error icon tool tips.
5283         * DataGridViewCell.cs: ErrorIconBounds needs to call GetErrorIconBounds.
5284         * DataGridViewRowHeaderCell.cs: Need internal way to get ErrorIconBounds.
5286 2008-04-22  Ivan N. Zlatev  <contact@i-nz.net>
5288         * X11Structs.cs: Add mouse button masks enum.
5289         * XplatUIX11.cs, Hwnd.cs: Send WM_ENTERSIZEMOVE and 
5290         WM_EXITSIZEMOVE only once at the beginning and at the end of the 
5291         form resize/move operation instead of for each step of it.
5292         [Fixes bug #346529 for the x11 backend]
5294 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
5296         * DataGridView*: Implement support for drawing error icons.
5298 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
5300         * TreeView.cs: Make vbar and hbar internal.
5301         * TreeNode.cs: If collapsing the node removes one of the TreeView's
5302         scrollbars, invalidate the whole thing.
5303         [Fixes bug #382001]
5305 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
5307         * TreeView.cs: Calling Sort() sets Sorted = true.
5308         * TreeNodeCollection.cs: Try to find the owner TreeView to determine
5309         if the nodes need to be sorted.
5310         [Fixes bug #382028]
5312 2008-04-21  Ivan N. Zlatev  <contact@i-nz.net>
5314         * Form.cs: Fire SizeChanged for both when the form is minimized and 
5315         restored.
5316         * XplatUIX11.cs: Instead of tracking minimization on UnmapNotify track it 
5317         on PropertyNotify of _NET_WM_STATE. Much much cleaner.
5319 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
5321         * ComboBox.cs: If the combobox is disabled, draw a disabled
5322         background before painting anything else.
5323         [Fixes bug #381729]
5325 2008-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5327         * X11Dnd.cs: Wehn the drag and drop operation is cancelled don't
5328         forget to send a Leave event to the target window - just as .net does
5329         when cancelling dnd operations.
5331 2008-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5333         * X11Dnd.cs: Stop tracking messages as part of the dnd operation as
5334         soon as possible - this happens when we send the drop message to the
5335         target window. This way we avoid firing any DragOver _after_ drop finished.
5336         Fixes #378179.
5338 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
5340         * XplatUIX11.cs: Send WM_WINDOWPOSCHANGED when a toplevel is minimized.
5341         * Form.cs: Handle form minimization as a special state, where size doesn't 
5342         change, but we have to fire SizeChanged.
5343         [Fixes bug #325122 for the win32 and x11 backends]
5345 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
5347         * XplatUIX11.cs: Win32 doesn't send WM_(KILL|SET)FOCUS 
5348         if the handle is disabled.
5349         [Fixes bug #371751]
5351 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
5353         * XplatUIX11.cs: Enable Maximize/Minimize/Close ability (not decorations) 
5354         for forms with FormBorderStyle.None.
5355         [Fixes bug #349571]
5357 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
5359         * XplatUIX11.cs: Implement support for WM_ENTERSIZEMOVE and 
5360         WM_EXITSIZEMOVE.
5361         [Fixes bug #346529 for the X11 backend]
5363 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
5365         * XplatUIX11.cs: 
5366           - Send a mouse Enter message after say dragging the mouse with a 
5367           button down and then release it in another client.
5368           - Reset the cursor to prevent X11 from remembering it and setting it 
5369           before the control gets WM_SETCURSOR.
5370           - Qeueue a mouse move after a mouse enter like win32.
5371           [Fixes bug #323234]
5373 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
5375         * XplatUIX11.cs: Implement limited support for WM_SYSCOMMAND. 
5376         It's sent when the form gets moved, resized, closed.
5377         * XplatUIStructs.cs: Add SystemCommands enum for WM_SYSCOMMAND.
5378         [Fixes bug #359193 for X11]
5380 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
5382         * Form.cs: Add a ValidateChildren for the 1.1 profile. Fixes 
5383         the build.
5385 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
5387         * ListView.cs: Move CalculateDetailsGroupItemsCount to the NET_2_0 
5388         group. Fixes the 1.1 build.
5390 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5392         * ListView.cs: Use display indexes for selection in Details view, as
5393         well as do the proper layout based on display indexes for that view
5394         too.
5396 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5398         * ListView.cs: Focused item information is now stored as a display
5399         index, and display indexes are used all over the place for selection,
5400         instead of ListViewItem.Index values, which doesn't give us enough
5401         information to modify the selection in groups mode, and was broken.
5403 2008-04-18  Ivan N. Zlatev  <contact@i-nz.net>
5405         * Control.cs: Do not fire MouseDown if validation of the control has 
5406         failed.
5407         * Form.cs: Validate the form before closing.
5408         [Fixes bugs #330501 and #353310]
5410 2008-04-18  Andreia Gaita <avidigal@novell.com> 
5412         * WebBrowserBase.cs: Added WndProc, DrawToBitmap,
5413           CreateWebBrowserSiteBase implementations
5414         * HtmlElement.cs: Add missing OuterHTML, OuterText setters, stubbed
5415           Style and TabIndex setters
5417 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5419         * ListViewGroup.cs: When returning the actual item count, return the
5420         proper count for default group.
5421         Fix the tests.
5423 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5425         * ListView.cs:
5426         * ListViewGroup.cs: When calculating groups layout, get the actual
5427         number of items per group, since groups added to the group BUT not
5428         added to the ListView are just ignored, and can cause some nasty
5429         exceptions because of the lack of synchronization. Also for
5430         ListViewGroup don't use lazy initialization for items, since we 
5431         the common scenario is to use it always - and it helps us to  refactor
5432         and clean the .ctor overloads.
5434 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5436         * ListView.cs: When adding an item to a ListViewItemCollection
5437         belonging to a group (ListViewGroup.Items), don't generate a redraw if
5438         the added item hasn't beeen previously added to the ListView instance
5439         refered by the group, since it will be ignored. This should avoid some 
5440         really nasty flickering.
5442 2008-04-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5444         * ListView.cs: When accessing an item in a specific display
5445         position, use the helper method GetItemAtDisplayIndex, instead of
5446         direct access to the reordered_items_indices array. When doing layout
5447         for groups set the correct Items index for the display position (since
5448         in groups mode items don't have the same position as in Items
5449         collection).
5450         * ListViewGroup.cs: Add a field to store the starting item number,
5451         which is later used when calculating the layout.
5453         Fixes #360805.
5455 2008-04-17  Gert Driesen  <drieseng@users.sourceforge.net>
5457         * Application.cs: Fixed ProductVersion to fallback to the assembly
5458         version. Fixes regression for bug #325413.
5460 2008-04-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5462         * ListView.cs: New helper method to retrieve an item in a _specific
5463         display_ position (the items can be displayed in a different order
5464         than one of Items collection).
5465         * ThemeWin32Classic.cs: When drawing, instead of iterating over Items
5466         collection, use ListView.GetItemAtDisplayIndex, to get an item in a
5467         specific display position (again remember that items can be sorted
5468         different than Items).
5470 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
5472         * DataGridViewColumnCollection.cs: Create a cached copy of our sorted
5473         list and update it when the collection changes.  We were recreating
5474         this several times per row paint and for every pixel the mouse moved
5475         across the grid.
5476         * DataGridViewColumn.cs: Regenerate cached sorted list when DisplayIndex
5477         changes.
5479 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
5481         * DataGridViewColumnCollection.cs: Convert our internal sorted columns
5482         list to use generics.
5483         * DataGridView.cs, DataGridViewRow.cs: Use generic sorted column list
5484         and remove unneccessay casts.
5486 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
5488         * DataGridViewBand.cs: Add internal way to set displayed variable.
5489         * DataGridViewRow.cs: Don't paint cells in non-displayed columns.
5490         * DataGridView.cs: Make sure we always keep track of Displayed
5491         rows and columns, and only draw things that are displayed.
5493 2008-04-16  Atsushi Enomoto  <atsushi@ximian.com>
5495         * X11Keyboard.cs, XplatUIX11.cs : manage key state regardless of
5496           whether the key events are filtered or not. Introduced
5497           PreFilter() process for this purpose. This fixes atokx3/iiimx
5498           shift state issue.
5500 2008-04-16  Andreia Gaita <avidigal@novell.com> 
5502         * HtmlHistory.cs: Implement Length property
5504 2008-04-15  Jonathan Pobst  <monkey@jpobst.com>
5506         * DataGridView.cs: Call EndEdit when a sort is performed so we take
5507         away the edit textbox.  Refactor to reuse column sort code.
5509 2008-04-12  Everaldo Canuto  <ecanuto@novell.com>
5511         * MenuAPI.cs: Remove the code that save and restore capture status of 
5512         grab_control, this fixes some Menu and Context menu bugs but maybe it can
5513         cause some others, I cant figure the possible problems of this patch but
5514         right now remove the code looks to be better than keep it. This patch fixes
5515         bugs #357638, #378721 and #379570.
5517 2008-04-12  Andreia Gaita <avidigal@novell.com> 
5519         * HtmlDocument.cs, HtmlElement.cs, HtmlHistory.cs, WebBrowser.cs:
5520         Implement OuterHtml, OuterText, Enabled, Scroll*, *Rectangle properties,
5521         add missing properties and event handlers.
5522         
5523 2008-04-14  Jonathan Pobst  <monkey@jpobst.com>
5525         * ListBox.cs: Make sure the LargeChange we are setting is at least
5526         zero, to prevent an IOORE.  [Fixes bug #379531]
5528 2008-04-13  Andy Hume <andyhume32@yahoo.co.uk>
5530         * ComboBox.cs: Support item navigation by entering text.  Firstly, 
5531         in DropDownList mode, for each key-press select the next item 
5532         starting with that letter.
5533         For other modes, when no item selected, on arrow-up/-down and open 
5534         drop-down select the first item matching the text in the textbox.
5536 2008-04-14  Atsushi Enomoto  <atsushi@ximian.com>
5538         * X11Keyboard.cs : Control.FromHandle() could return null
5539           in MoveCurrentCaretPos().
5541 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5543         * ListView.cs: When changing the size in VirtualMode, also Reset the
5544         selection.
5545         * ListViewItem.cs: Don't call SelectedIndexCollection.Reset when
5546         changing selection info for VirtualMode.
5547         Fixes #372618.
5549 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5551         * ThemeWin32Classic.cs: When drawing ListViewItem instancesin Details
5552         view, don't use LineLimit for the first item - use NoWrap *always*
5553         instead, since ListView.LabelWrap is not used for this view.
5554         Fixes #378054.
5556 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5558         * Binding.cs: Call UpdateIsBinding when setting control - probably
5559         Binding is already usable and we don't need to wait to check the
5560         IsBinding state. Also for 1.1 profile use IsHandleCreated instead of
5561         Created, just like 2.0 does.
5562         * CurrencyManager.cs: I'm so lame - the previous check was wrong.
5564 2008-04-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5566         * Binding.cs: Just realized we don't need to have a handler for
5567         BindingContextChanged, since this info should be now consumed directly
5568         in the BindingManagerBase. And also, the manager.IsBindingSuspended
5569         state info is checked directly, instead of caching it.
5571         * CurrencyManager.cs: IsSuspended should return always false if Count
5572         == 0.
5574 2008-04-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5576         * Binding.cs: When calling PushData, return if manager.Count == 0,
5577         since we just don't have data to be read. Also, when setting the
5578         Control for binding, hook up some events to refresh the IsBinding
5579         state when BindingContext change or control gets created; use
5580         Control.IsHandleCreated instead of Control.Created check to set
5581         IsBinding state - we *actually* need to modify IsBinding when control
5582         is created, but we don't have any Created event, only HandleCreated.
5583         Fixes part of #349364.
5585 2008-04-11  Geoff Norton  <gnorton@novell.com>
5587         * XplatUICarbon.cs: Expose Caret to the Carbon layer.  Guard against
5588         warping a null Caret.
5590 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
5592         * DataGridView.cs: Implement row/column autosizing methods. Implement
5593         autosorting.
5594         * DataGridViewColumnHeaderCell.cs: Add painting of the sort glyph.
5595         * DataGridViewRowCollection.cs: Add an internal sorting method.
5597 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
5599         * ThemeWin32Classic.cs: Apply patch from Ernesto to cache an expensive
5600         value in ListView drawing code.
5602 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
5604         * FileDialog.cs: Only call FileOk when Ok is clicked, not when Cancel
5605         is clicked.  Respect the user setting Cancel in FileOk.
5607 2008-04-11  Geoff Norton  <gnorton@novell.com>
5609         * ListView.cs: Avoid setting and resetting control Width/Heights and
5610         calculate the final value and set it once.  Prevents a feedback loop
5611         on the mac.
5613 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
5615         * TreeView.cs: Clamp setting the scrollbar value using SafeValueSet.
5616         [Fixes bug #378869]
5618 2008-04-10  Atsushi Enomoto  <atsushi@ximian.com>
5620         * X11Keyboard.cs, X11Structs.cs : make over-the-spot mode default.
5621           Add some on-the-spot code, but it seems we don't need it.
5623 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
5625         * Form.cs: Add method for DataGridView to trigger focus cues
5626         even when it handles the tab keypress.
5628 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
5630         * DataGridView.cs: More keyboard handling, tab, esc.
5631         * DataGridViewTextBoxEditingControl.cs: Don't request arrow keys
5632         when at the beginning or end of the text in the text box.
5634 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
5636         * DataGridViewCell.cs: Guard against an NRE causing a test to fail.
5638 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
5640         * DataGridView.cs: Some fixups for showing and adding the edit control.
5641         * DataGridViewButtonColumn.cs: Implement ToString.
5642         * DataGridViewCell.cs: Size and position the control simultaneously.
5643         * DataGridViewTextBoxCell.cs: Use base to position control.
5645 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
5647         * DataGridViewCell.cs: Fix up some formatting and painting code.
5648         * DataGridViewImageCell.cs: Implement some NIEX methods.
5650 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
5652         * ToolStripItemCollection.cs: What moving an item from one owner
5653         to another, remove from source owner before adding to destination.
5654         [Fixes bug #378109]
5656 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
5658         * PictureBox.cs: Call Load when ImageLocation is set.
5659         [Fixes bug #378308]
5661 2008-04-09  Atsushi Enomoto  <atsushi@ximian.com>
5663         * X11Keyboard.cs, XplatUIX11.cs :
5664           Implement over-the-spot mode (with some odd offsets).
5665           - set preedit position when caret is set.
5666           - Wrap XMoveResizeWindow() to move preedit position.
5668 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
5670         * X11keyboard.cs: Fix last patch, maxval must be less not greater than
5671         array lenght.
5673 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
5675         * KeyboardLayouts.cs: Uses GENERATING_RESOURCES to make VKeyTableIndex
5676         and ScanTableIndex public, it fix compilations errors when compiling
5677         WinForms to generate keyboard layout resources.
5679 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
5681         * X11keyboard.cs: Prevent keyboard errors when vitual table theres 
5682         different element count than scan table. It prevents some errors in non
5683         standard keyboards.
5685 2008-04-08  Jonathan Pobst  <monkey@jpobst.com>
5687         * DataGridViewHeaderCell.cs: Implement some NIEX methods.
5689 2008-04-08  Jonathan Pobst  <monkey@jpobst.com>
5691         * DataGridView.cs: Call OnContentClick.
5692         * DataGridViewCell.cs: Do a null check on ValueType instead
5693         of valueType.
5694         * DataGridViewCheckBoxCell.cs: Implement.
5696 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
5698         * X11Keyboard.cs : Do not cast IntPtr to int. Use long.
5700 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
5702         * X11Keyboard.cs : Check XGetIMValues() return value in
5703           case it does not return input styles in some environment.
5705 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
5707         * X11Keyboard.cs : sizeof(IntPtr) != 4 on amd64.
5709 2008-04-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5711         * BindingContext.cs: Stub UpdateBinding method.
5713 2008-04-07  Atsushi Enomoto  <atsushi@ximian.com>
5715         * X11Structs.cs : added couple of structs for XIM support.
5716         * X11Keyboard.cs :
5717           Release XIM in case it failed to create XIC. 
5718           Use consts for XNblah string.
5719           Add support for IM style customization and XIC creation
5720           for preedit-position and preedit-callback.
5721           Right now use MONO_WINFORMS_XIM_STYLE environment variable
5722           (list of: over-the-spot | on-the-spot | root). Only root
5723           mode works so far.
5725           (redoing r99172 with fix.)
5727 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
5729         * TreeView.cs: Center the checkbox a little better.
5731 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
5733         * ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs, ThemeWin32Classic.cs:
5734         Apply very nice patch from Ernesto Carrea that simplifies our
5735         scrollbar drawing.  [From bug #376146]
5737 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
5739         * TreeView.cs: Correct the location of the root node checkbox when
5740         ShowRootLines = false.  Don't draw the root lines for the root node
5741         when ShowRootLines = false.  [Fixes bug #377535]
5743 2008-04-06  Gert Driesen  <drieseng@users.sourceforge.net>
5745         * WebBrowserBase.cs: Added missing attributes and fixed attributes.
5746         Fixed line endings.
5747         * WebBrowser.cs: Added missing attributes and fixed attributes. Fixed
5748         line endings.
5749         * MaskedTextBox.cs: Added missing attribute. Code formatting.
5750         * PageSetupDialog.cs: Added missing attribute. Code formatting.
5751         * HtmlWindowCollection.cs: Code formatting. Fixed line endings.
5752         * ImeMode.cs: Added missing field.
5753         * HtmlWindow.cs: Code formatting. Fixed line endings.
5754         * HtmlElement.cs: Code formatting. Fixed line endings. Fixed compiler
5755         warnings.
5756         * HtmlHistory.cs: Code formatting. Fixed line endings.
5757         * HtmlDocument.cs: Code formatting. Fixed line endings.
5758         * ToolStripPanel.cs: Added missing IList implementation.
5759         * HtmlElementCollection.cs: Code formatting. Fixed line endings.
5761 2008-04-06  Gert Driesen  <drieseng@users.sourceforge.net>
5763         * BindingContext.cs: Changed argument names to fix corcompare errors.
5764         * DataGridView.cs: Removed extra explicit interface implementation
5765         of IDropTarget. Code formatting.
5766         * FlowLayoutPanel.cs: Changed argument names to fix corcompare errors.
5767         * ComboBox.cs: Changed argument names to fix corcompare errors.
5768         * DataGridTextBoxColumn.cs: Changed argument names to fix corcompare
5769         errors.
5770         * GridColumnStylesCollection.cs: Changed argument names to fix
5771         corcompare errors. Removed extra tabs.
5772         * GridTableStylesCollection.cs: Changed argument names to fix corcompare
5773         errors.
5774         * Control.cs: Changed argument names to fix corcompare errors. Code
5775         formatting. Removed extra explicit IList implementation.
5776         * TextBox.cs: Changed argument names to fix corcompare errors. Code
5777         formatting. Use string.Empty instead of "".
5778         * GridItemCollection.cs: Changed argument names to fix corcompare
5779         errors. Code formatting.
5780         * DataGridViewTopLeftHeaderCell.cs: Changed argument names to fix
5781         corcompare errors. Code formatting.
5782         * ImageList.cs: Changed argument names to fix corcompare errors.
5783         * ToolStripItem.cs: Changed argument names to fix corcompare errors.
5784         * DataGridViewRowCollection.cs: Changed argument names to fix
5785         corcompare errors. Code formatting.
5786         * TableLayoutPanel.cs: Changed argument names to fix corcompare errors.
5787         * DataGridViewSelectedCellCollection.cs: Changed argument names to
5788         fix corcompare errors. Code formatting.
5789         * DataGridViewComboBoxCell.cs: Changed argument names to fix
5790         corcompare errors. Code formatting.
5791         * LinkLabel.cs: Changed argument names to fix corcompare errors.
5792         * TreeNode.cs: Changed argument names to fix corcompare errors. Code
5793         formatting.
5794         * PropertyGrid.cs: Changed argument names to fix corcompare errors.
5795         Code formatting.
5796         * BindingSource.cs: Changed argument names to fix corcompare errors.
5797         Removed extra explicit interface implementations.
5798         * DataGridViewSelectedRowCollection.cs: Changed argument names to
5799         fix corcompare errors. Code formatting.
5800         * ToolStripItemCollection.cs: Removed extra explicit interface
5801         implementation of IList.ReadOnly.
5802         * DataGridViewColumnCollection.cs: Changed argument names to fix
5803         corcompare errors. Code formatting.
5804         * DataGridViewRow.cs: Rename converter to match MS. Code formatting.
5805         * ListView.cs:  Changed argument names to fix corcompare errors.
5806         * DataGridViewHeaderCell.cs: Changed argument names to fix corcompare
5807         errors.
5808         * DataGridBoolColumn.cs: Changed argument names to fix corcompare
5809         errors.
5810         * ListBindingHelper.cs: Changed argument names to fix corcompare
5811         errors.
5812         * DataGridViewSelectedColumnCollection.cs: Changed argument names to
5813         fix corcompare errors. Code formatting.
5814         * ToolStripPanel.cs: Removed extra explicit implementation of
5815         IDropTarget interface.
5816         * ListBox.cs: Changed argument names to fix corcompare errors. Code
5817         formatting. Removed extra tabs and spaces.
5818         * DataGridViewCellCollection.cs: Changed argument names to fix
5819         corcompare errors.
5820         * Help.cs: Changed argument names to fix corcompare errors. Code
5821         formatting.
5822         * TabControl.cs: Changed argument names to fix corcompare errors.
5823         * DataGridColumnStyle.cs: Changed argument names to fix corcompare
5824         errors.
5825         * TableLayoutSettings.cs: Changed argument names to fix corcompare
5826         errors.
5828 2008-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5830         * ListBindingHelper.cs: When returning properties, only return those
5831         that are browsable. Also, don't do a linear search of the properties,
5832         but use the indexer of the PropertyDescriptorCollection class.
5834 2008-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5836         * BindingSource.cs: Implement GetRelatedCurrencyManager by adding a
5837         Dictionary containing the related (child) currency managers. Also,
5838         when setting DataSource, add datasource to our List if it is not a list.
5840 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
5842         * PropertyGridTextBox.cs: Fix background color of the buttons.
5843         * PropertyGridView.cs: Make the entry less jumpy.
5845 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
5847         * PropertyGrid.cs: Fix unused variable warnings.
5849 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
5851         * PropertyGridView.cs: Fix expansion via [+] misbehavior on 
5852         double-click. It expanded it once in the mouse down and then 
5853         again in the double-click handler.
5855 2008-04-04  Ivan N. Zlatev  <contact@i-nz.net>
5856         
5857         * GridEntry.cs: ICustomTypeDescriptor support for PropertyOwner, 
5858         TypeConverter and UITypeEditors.
5860 2008-04-04  Ivan N. Zlatev  <contact@i-nz.net>
5862         * Control.cs: Visibility should be set synchronously, 
5863         so we must also redraw once it is and not rely on layouting or 
5864         other code to repaint.
5865         [Fixes bug #339898]
5867 2008-04-04  Jonathan Pobst  <monkey@jpobst.com>
5869         * DataGridViewCell.cs: Respect DataGridView.GridColor.
5871 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
5873         * Control.cs: Invalidate when the alpha channel is less than 255,
5874         not only when control is transparent.
5876 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
5878         * DataGridViewRowPrePaintEventArgs.cs, DataGridViewRowPostPaintEventArgs.cs:
5879         Implement some painting convenience methods that threw NIEX.
5881 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
5883         * DataGridView.cs: Call CellMouse[Enter|Move|Leave] properly.
5884         * DataGridViewLinkCell.cs: Implement.
5886 2008-04-03  Ivan N. Zlatev  <contact@i-nz.net>
5888         * GridEntry.cs: Report the conversion exception error description.
5889         [Fixes bug #375792]
5891 2008-04-03  Ivan N. Zlatev  <contact@i-nz.net>
5893         * PropertyGridView.cs: Do not scroll to item on resize.
5894         [Fixes bug #375789]
5896 2008-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5898         * BindingContext.cs: When retrieving a BindingManagerBase, if the
5899         dataSource parameter is ICurrencyManagerProvider, then return
5900         ICurrencyManagerProvider.CurrencyManager/GetRelatedCurrencyManager
5901         instead of creating a new one.
5903 2008-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5905         * BindingSource.cs: Implement support for Type instances as
5906         DataSource.
5908 2008-04-02  Jonathan Pobst  <monkey@jpobst.com>
5910         * DataGridView.cs: Minor cleanups and call CellMouseUp.
5911         * DataGridViewCell.cs: Make some painting routines internally virtual.
5912         * DataGridViewButtonCell.cs: Implement.
5914 2008-04-02  Jonathan Pobst  <monkey@jpobst.com>
5916         * Control.cs: We always need to invalidate our children with
5917         transparent backgrounds when we are invalidated.
5918         [Fixes bug #376081]
5920 2008-04-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5922         * BindingSource.cs: EndEdit and CancelEdit should call EndCurrentEdit
5923         and CancelCurrentEdit on CurrencyManager respectively. Implement
5924         support for ICancelAddNew too.
5926 2008-04-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5928         * CurrencyManager.cs: When calling EndCurrentEdit/CancelCurrentEdit,
5929         call EndNew/CancelNew if list is ICancelAddNew.
5931 2008-04-01  Jonathan Pobst  <monkey@jpobst.com>
5933         * DataGridView.cs: Guard against an exception while painting
5934         if there are no rows.
5936 2008-04-01  Jonathan Pobst  <monkey@jpobst.com>
5938         * DataGridView.cs: Implement a bunch of keyboard commands.
5940 2008-03-31  Jonathan Pobst  <monkey@jpobst.com>
5942         * ToolBar.cs: Don't do our painting if UserPaint is set.  If UserPaint
5943         isn't set, don't call OnPaint.  [Fixes bug #375300]
5945 2008-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5947         * BindingSource.cs: IsBindingSuspended, ResumeBinding and
5948         SuspendBinding depend on CurrencyManager. Implement RemoveCurrent,
5949         hookup the remaining events related to CurrencyManager, and fire
5950         OnListChanged also for the Clear () method.
5952 2008-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5954         * BindingSource.cs: Use Current and Position implementations in
5955         CurrencyManager instead of using our own routines, since we need 
5956         to be in synch with it. Count should NEVER return a -1 value, and 
5957         also report ListChanged events for both simple IList data 
5958         sources (manually) as well for IBindingList ones (by hooking up an
5959         event handler for it).
5961 2008-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5963         * BindingSource.cs: Make one .ctor call the another, to avoid
5964         duplicate code. Add the CurrencyManager property, and also for AddNew
5965         throw the proper exceptions and show better error messages.
5967 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
5969         * ComboBox.cs: Only adjust selectedindex if Handle has been
5970         created.  Fixes failing test.
5972 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
5974         * ComboBox.cs: Adjust selectedindex if we insert a new item
5975         above the current selectedindex in a sorted ComboBox.
5976         [Fixes bug #374654]
5978 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
5980         * ComboBox.cs: Support PageUp/PageDown when dropdown is closed.
5981         [Fixes bug #374712]
5983 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
5985         * DataGridViewTextBoxCell.cs: Implement stuffs.
5987 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
5989         * TreeView.cs: Create the scrollbars even earlier to be
5990         double dog certain they are created before they are accessed.
5992 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
5994         * XplatUIX11.cs: Remove a no-op line that csc was choking on.
5996 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
5998         * ScrollBar.cs: Create an internal safe Value setter so we
5999         won't crash if we try to set a value outside the min and max.
6000         * TextBoxBase.cs: Use safe value setter to guard against a
6001         potential NRE that is being reported by Reflector.
6003 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
6005         * TreeView.cs: Create the scrollbars earlier in the constructor
6006         to attempt to guard against an NRE in SetTop in Reflector.
6008 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
6010         * DataGridView.cs, DataGridViewCell.cs, DataGridViewCell.cs,
6011         DataGridViewRowCollection.cs: Do not scroll column and row headers,
6012         show messagebox on data format error, use column display index
6013         correctly, make sure HitTest supports new layout stuff,
6014         make sure scrollbars support new layout stuff.
6016 2008-03-27  Atsushi Enomoto  <atsushi@ximian.com>
6018         * XplatUIX11.cs : Patch by Doug Rintoul.
6019           For some IM engines, keypress events need to delay call
6020           to XPending() and XNextEvent() in the loop so that it
6021           does not mess the orders in XIM commit callback.
6022           Some KeyRelease events such as shift keys need to be
6023           processed both in the IM engine and winforms driver
6024           itself since winforms holds its own state check.
6026           For details, see: http://lists.ximian.com/pipermail/mono-winforms-list/2008-March/003279.html
6028 2008-03-27  Atsushi Enomoto  <atsushi@ximian.com>
6030         * X11Keyboard.cs, XplatUIX11.cs :
6031           add primitive support for XIM input support (preedit-
6032           nothing and status-nothing). It requires precise event
6033           capturing (XSelectInput/"filterEvents") and different
6034           call to XFilterEvent against root window.
6035           Get composed string and send dummy WM_IME_COMPOSITION.
6036           Free XIM and XIC instances in finalizer.
6038           (This first patch does not include suggested changes
6039            by Doug Rintoul. It will follow.)
6041 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
6043         * DataGridView.cs: When binding to a property, if the property
6044         doesn't have a setter, set the column to readonly.
6045         [Fixes bug #343965]
6047 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
6049         * ComboBox.cs: Guard against NRE if an arrow key is hit while
6050         we aren't dropped down.  Support Home/End in DropDownList mode.
6051         [Fixes bug #371990]
6053 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
6055         * TreeNodeCollection.cs: Don't increment count until we've
6056         saved our index to return.
6057         [Fixes bug #373603]
6059 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
6061         * Label.cs: Add padding to the label's AutoSize calculation.
6062         [Fixes bug #373792]
6064 2008-03-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6066         * ListBindingHelper.cs: Actually implement GetListName method.
6068 2008-03-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6070         * BindingSource.cs: Throw the propert expceptions for some methods, as
6071         well as detect the list item type for Add method if DataSource is null.
6073 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
6075         * DataGridViewCell.cs: I don't know why I commented this out,
6076         putting it back for now.
6078 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
6080         * DataGridViewCell.cs: Remove storage for owning column, just
6081         use column index.
6082         * DataGridViewColumn.cs: Make getter for HeaderTextSet.
6083         * DataGridViewColumnHeaderCell.cs: If the header text has been
6084         explicitly set, return it.
6085         [Fixes bug #325979]
6087 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
6089         * DataGridViewRowCollection.cs: Disable row sharing when
6090         using data binding.  Its a great feature, but lets work on
6091         getting DGV usable first before we worry about optimizations.
6093 2008-03-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6095         * BindingSource.cs: When resetting our internal list, compute list
6096         item type information to be used for indirect list access. Also
6097         implement/tune some properties and methods related to the list access
6098         too.
6099         * ListBindingHelper.cs: Add a stub for GetListName method, used from
6100         BindingSource.
6102 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
6104         * DataGridView.cs: If RowCount is increased while ColumnCount
6105         is zero, add a column.  [Fixes bug #331649]
6107 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
6109         * DataGridViewRowCollection.cs: When adding new rows for
6110         databinding, make sure they are place before the add row.
6111         [Fixes bug #343961]
6113 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
6115         * DataGridViewRow.cs: Draw cells in column DisplayIndex order
6116         instead of Index order.
6118 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
6120         * DataGridView.cs: If columns are added by increasing ColumnCount,
6121         they need to be DataGridViewTextBoxColumns, not DataGridViewColumn.
6122         [Fixes bug #325588]
6124 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
6126         * DataGridView.cs: Turn off and on the "new row" when 
6127         AllowUserToAddRows is toggled.  When the handle is created,
6128         set current cell and selected cell/row/col.
6130 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
6132         * ComboBox.cs: When navigating the drop down by keyboard, we
6133         need to scroll the list box if our selection moves out of the
6134         currently shown items.  [Fixes bug #371990]
6136 2008-03-24  Luke Page <luke.a.page@gmail.com>
6138         * RichTextBox.cs: Handles visible rtf tag and no longer shows the text
6139         on the control. Also now handles unicode compatibility characters and
6140         stores the unicode compatibility length on the stack. Fixes Bugs
6141         #355198 and #366436.
6143 2008-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6145         * BindingSource..cs: Take into account DataMember when re-creating the
6146         List property, and also create a specific kind of list as needed.
6148 2008-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6150         * ListBindingHelper.cs: Add a new case for GetList () method - when we
6151         get an empty IEnumerable, try to detect whether the datamember is
6152         valid or not for that type, if true, return null, and throw exception
6153         otherwise.
6155 2008-03-22  Jonathan Pobst  <monkey@jpobst.com>
6157         * ComboBox.cs: Alt-Down should drop down the list, Esc should
6158         retract it.  [Fixes bug #371989]
6160 2008-03-22  Ivan N. Zlatev  <contact@i-nz.net>
6162         * PropertyGrid.cs: Initialize the sorting button as pushed.
6164 2008-03-22  Ivan N. Zlatev  <contact@i-nz.net>
6166         * PropertyGrid.cs: 
6167          - Visually select the PropertyTab.
6168          - Filter Properties by Attributes properly.
6170 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
6172         * MenuItem.cs: Remove menu item from parent when disposed.
6173         [Fixes bug #372845]
6175 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
6177         * ToolBar.cs: Don't reset layout_type if Dock = None.
6179 2008-03-21  Andreia Gaita <avidigal@novell.com> 
6181         * UserControl.cs: Select the first available control when we get focus.
6182           Fixes #372616
6184 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
6186         * DataGridViewCell.cs, DataGridViewTextBoxCell.cs: Don't paint
6187         the content if we are in edit mode.  [Fixes bug #343964]
6189 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
6191         * DataGridViewCell.cs: Fix border painting for column headers.
6193 2008-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6195         * BindingSource.cs: When setting or resetting data source,
6196         use ListBindingHelper.GetList () method, since it will get the list in
6197         case datasource is IListSource.
6199 2008-03-20  Jonathan Pobst  <monkey@jpobst.com>
6201         * DataGridViewCell.cs: Implement lots more stuffs.
6203 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
6205         * PropertyGridView.cs, GridEntry.cs: Implement support for 
6206         UITypeEditor.IsDropDownResizable.
6208 2008-03-20  Jonathan Pobst  <monkey@jpobst.com>
6210         * DataGridViewCell.cs: Remove unused variables, improve how
6211         several of the property getters work.
6212         * DataGridViewRow.cs: Don't call setSize on a cell, cell should
6213         get its size from the parent row/col.
6215 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
6217         * PropertyGrid.cs: Ensure PropertiesTab is visible even if the 
6218         user alters manually the PropertyTabs collection via the 
6219         PropertyTabs property.
6221 2008-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6223         * ListBindingHelper.cs: Implement -previously- ignored cases. We have
6224         new tests for them to be sure to be compatible with .net.
6226 2008-03-20  Andreia Gaita <avidigal@novell.com> 
6228         * WebBrowserBase.cs: Fix attributes, add events
6229         * WebBrowser.cs: Fix Padding signature
6231 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
6233         * PropertyGrid.cs, PropertyGridView.cs: Implement PropertyTab support.
6235 2008-03-19  Jonathan Pobst  <monkey@jpobst.com>
6237         * DataGridView.cs, DataGridViewCell.cs, DataGridViewCellStyle.cs,
6238         DataGridViewLinkCell.cs, DataGridViewRow.cs, DataGridViewRowHeaderCell.cs,
6239         DataGridViewTextBoxCell.cs: Changes so that DataGridViewCell
6240         passes the new suite of tests for it.
6242 2008-03-18  Andreia Gaita <avidigal@novell.com> 
6244         * WebBrowser.cs: Add missing attributes, missing Padding and
6245           DefaultSize properties, remove extraneous getters
6247 2008-03-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6249         * ListBindingHelper.cs: Implement a pair of GetListItemProperties
6250         method overloads.
6252 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
6254         * ComboBox.cs: Move resetting the selected index to keypress
6255         instead of textchanged.  Changing the text programmatically
6256         should not trigger resetting the selected index.  Fixes test.
6258 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
6260         * ComboBox.cs: When the user types into the textbox, reset
6261         the selected index to -1.  [Fixes bug #371672]
6263 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
6265         * FileDialog.cs: Support Control-A for selecting everything
6266         in an OpenFileDialog.  [Fixes bug #371564]
6268 2008-03-15  Jonathan Pobst  <monkey@jpobst.com>
6270         * DataGridView.cs: When row/column visible/height properties
6271         change, invalidate.  Take the NIEX out of InvalidateRow/Column
6272         etc.  We don't support them yet, but we can just invalidate
6273         everything until we do support them.  (Added MonoTODO).  Set
6274         proper control styles.
6275         * DataGridViewRow.cs: Don't call PaintHeader if row headers
6276         are turned off. 
6278 2008-03-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6280         * ListBindingHelper.cs: Implement 2.0 GetListItemType methods.
6282 2008-03-14  Jonathan Pobst  <monkey@jpobst.com>
6284         * DataGridViewRow.cs: Only paint the white background in
6285         cell bounds, the row bounds extends past the cells if the 
6286         grid width isn't as wide as the DGV.
6288 2008-03-14  Jonathan Pobst  <monkey@jpobst.com>
6290         * DataGridView*: Completely revamp the drawing to match the
6291         public API.  Our grids now look better, and call all the
6292         appropriate methods and event to allow users to override
6293         the painting and do their own.
6295 2008-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6297         * ListBindingHelper.cs: Implement 2.0 GetList methods.
6299 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
6301         * DataGridView.cs: Implement BorderStyle.
6303 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
6305         * FileDialog.cs: Apply patch from Andy Hume: Any time we
6306         are comparing attributes, make sure we only look at the
6307         one we are interested.  These calls were failing if there
6308         were more than one attribute.
6309         [Fixes bug #370385]
6311 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
6313         * DataGridColumnStyle.cs: Hide ctor from 1.1 profile.
6315 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
6317         * PageSetupDialog.cs: Stub EnableMetric.
6318         * PrintControllerWithStatusDialog.cs: Implement IsPreview.
6319         * PrintPreviewDialog.cs: Add ProcessDialogKey,
6320         ProcessTabKey.
6322 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
6324         * MonthCalendar.cs: Remove unused variable.
6326 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
6328         * DataGridView*.cs: corcompare stuffs.
6330 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
6332         * MonthCalendar.cs: Remove an incorrect invalidate optimization.
6333         The savings aren't worth the extra code to fix the optimization.
6334         [Fixes bug #368585]
6336 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
6338         * ToolBar.cs: Always call base.Dock in the Dock override so that
6339         Control's layout_type gets reset correctly.
6340         [Fixes bug #368882]
6342 2008-03-11  Ivan N. Zlatev  <contact@i-nz.net>
6344         * X11Dnd.cs: End DnD operation also for the middle mouse button.
6346 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
6348         * ContainerControl.cs: We can't do MenuStrip implicit mnemonics
6349         at the same time we do explicit ones, because we have to give all
6350         other controls on the container a chance to handle explicit ones
6351         first.  If no one has an explicit mnemonic, then we can let the
6352         MenuStrip have a shot at implicit mnemonics.
6353         * MenuStrip.cs: Create an implicit mnemonic function.
6354         * ToolStrip.cs: When processing explicit mnemonics, don't do implicit
6355         mnemonics for MenuStrips.
6356         [Fixes bug #368493]
6358 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
6360         * AxHost.cs, Binding.cs, DataGridView.cs, DataGridViewCell.cs,
6361         DataGridColumnStyle.cs: corcompare stuffs.
6363 2008-03-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6365         * FileDialog.cs: Don't add any ColumnHeader to Columns if view is not
6366         Details - This is needed after we added the bits to use any available
6367         column also for List and SmallIcon view. 
6369 2008-03-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6371         * ListBox.cs: Fire SelectedIndexChanged and SelectedValueChanged events
6372         at the proper place, not only when changing SelectedIndex and changing
6373         the selection using keys/mouse, as .net does.
6375 2008-03-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6377         * ControlBindingsCollection.cs: Implement last 2.0
6378         DefaultDataSourceUpdateMode property. Also fix a wrong instruction
6379         in the new 2.0 Add methods.
6381 2008-03-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6383         * ListBox.cs: When calling SelectedIndexCollection.Clear,
6384         return if no items are previously selected - this is done to avoid 
6385         firing OnSelectedIndexChanged without need to do so. Also,
6386         when creating handle ensure that the focused item is visible (as
6387         .net does).
6389 2008-03-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6391         * ListBox.cs: Rewrote/refactored most of selection code. We require
6392         the following things in selection: a) keep selection sorted (both
6393         indices and items), b) SelectedIndices automatically detect the
6394         selection mode, c) SelectedIndex should be the first selected item
6395         index, d) Need to Focus/adjust scroll bar when selecting a new item,
6396         not only for SelectedIndex, which is specially important in Multi*
6397         selection modes. To achieve this we are moving the selection core to
6398         SelectedIndexCollection and make depend all selection modifications on
6399         it.
6400         Fixes #366438.
6402 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
6404         * ToolStrip.cs: Enable implicit mnemonics for drop down
6405         menu strips.  [Fixes part of bug #367692]
6407 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
6409         corcompare - fix parameter names [stragglers].
6410         Binding.cs, BindingsCollection.cs, GridColumnStylesCollection.cs,
6411         HelpEventHandler.cs, Label.cs, ListView.cs, Message.cs,
6412         TabControl.cs.
6414 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
6416         Control.cs: Don't call ProcessMenuKey on WM_SYSKEYUP if there
6417         was a mnemonic pressed as well as Alt.  Also, if nothing handles a
6418         mnemonic, let the ToolStripManager have it even if it doesn't
6419         have a matching mnemonic.
6420         [Fixes bug #367499]
6422 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
6424         corcompare - fix warning about implicit implementation
6425         * ToolStrip.cs: Add IToolStripData interface.
6426         * IToolStripData.cs: Add.
6428 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
6430         corcompare - fix warning about implicit implementation
6431         * Control.cs, ToolStripPanelRow.cs: Add IBounds interface.
6432         * IBounds.cs: Add.
6434 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
6436         corcompare - fix parameter names [N-Z].
6437         LinkArea.cs, NativeWindow.cs, NotifyIcon.cs, PageSetupDialog.cs,
6438         Panel.cs, PrintDialog.cs, PrintPreviewControl.cs, PropertyGrid.cs,
6439         PropertyManager.cs, RichTextBox.cs,
6440         ScrollBar.cs, SelectionRange.cs, SplitContainer.cs, StatusBar.cs,
6441         StatusBarDrawItemEventArgs.cs, StatusBarPanelClickEventArgs.cs,
6442         StatusStrip.cs, TabControl.cs, TableLayoutColumnStyleCollection.cs,
6443         TableLayoutRowStyleCollection.cs, TableLayoutStyleCollection.cs,
6444         TextBoxBase.cs, ThreadExceptionDialog.cs, ToolStrip.cs,
6445         ToolStripContentPanel.cs, ToolStripDropDown.cs,
6446         ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
6447         ToolStripPanel.cs, ToolStripSeparator.cs,
6448         TreeNode.cs, TreeView.cs, TreeViewHitTestInfo.cs,
6449         UICuesEventHandler.cs, UpDownBase.cs.
6451 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
6453         corcompare - fix parameter names [G-M].
6454         GridColumnStylesCollection.cs, GridItemCollection.cs,
6455         GridTableStylesCollection.cs, GroupBox.cs, Help.cs,
6456         HelpProvider.cs, ImageListStreamer.cs, InputLanguageCollection.cs,
6457         Label.cs, LayoutEngine.cs, LinkClickedEventArgs.cs,
6458         LinkLabel.cs, ListBox.cs, ListView.cs, ListViewGroupCollection.cs,
6459         ListViewItem.cs, Menu.cs, MenuItem.cs, MenuStrip.cs, MouseEventArgs.cs.
6461 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
6463         corcompare - fix parameter names [A-F].
6464         Control.cs, DataGridBoolColumn.cs, DataGridColumnStyle.cs,
6465         DataGridTextBoxColumn.cs, DataGridViewButtonCell.cs,
6466         DataGridViewCellCollection.cs, DataGridViewCellParsingEventArgs.cs,
6467         DataGridViewCheckBoxCell.cs, DataGridViewColumnDesignTimeVisibleAttribute.cs,
6468         DataGridViewComboBoxCell.cs, DataGridViewHeaderCell.cs,
6469         DataGridViewImageCell.cs, DataObject.cs, DomainUpDown.cs,
6470         DrawItemEventArgs.cs, FolderBrowserDialog.cs, FontDialog.cs, Form.cs.
6472 2008-03-03  Ivan N. Zlatev  <contact@i-nz.net>
6474         * GridEntry.cs: Do not convert not only if the types match, 
6475         but also if the property type is assigneable from the value's
6476         type.
6477         [Fixes bug #366566]
6479 2008-03-03  Ivan N. Zlatev  <contact@i-nz.net>
6481         * PropertyGridView.cs: 
6482          - Subscribe to the listbox only once and not everytime.
6483          - Update the textbox even if SetValue fails.
6484          - Close the listbox before calling TrySetValue just in case.
6485          [Fixes bug #366569]
6487 2008-03-03  Jonathan Pobst  <monkey@jpobst.com>
6489         * Control.cs: Hide ICollection.CopyTo from the 1.1 profile.
6491 2008-03-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6493         * ListView.cs: Implement support for custom column width based on
6494         Columns collection (we were previously using this collection only
6495         with Details view).
6496         Fixes #364484.
6498 2008-03-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6500         * ListViewItem.cs: For Tile view, always set bounds for the first
6501         subitem (which is the main one), and also don't let Width be larger
6502         than ListView.TileSize.Width. Improve code readibility also.
6503         * ThemeWin32Classic.cs: When painting the ListViewItem instances
6504         in Tile view, _always_ use the NoWrap flag.
6505         Fixes #360798.
6507 2008-02-29  Ivan N. Zlatev  <contact@i-nz.net>
6509         * PropertyGrid.cs: Check for null PropertyDescriptor.Name just 
6510         in case.
6511         * GridEntry.cs: For MS compitability make all child properties 
6512         readonly if the parent is readonly. Ugh.
6513         [Fixes bug #365945 and #365944]
6515 2008-02-29  Andreia Gaita <avidigal@novell.com> 
6517         * HtmlHistory.cs: Fix sigs for Forward and Back to navigate by index
6518           relative to the history
6520 2008-02-29  Andreia Gaita <avidigal@novell.com>
6522         * HtmlElement.cs: More handlers for mouse and key events
6524 2008-02-28  Andreia Gaita <avidigal@novell.com>
6526         * WebBrowserBase.cs: MouseClick sig changed.
6527         * HtmlHistory.cs: Implement history navigation
6528         * HtmlElement.cs: Add event handlers, and connect them.
6530 2008-02-28  Ivan N. Zlatev  <contact@i-nz.net>
6532         * GridEntry.cs: 
6533          - Use PropertyDescriptor.DisplayName instead of .Name for Label,
6534            so that DisplayNameAttribute doesn't get ignored.
6535          - Check for ParenthesizeNameAttribute and parenthesize the Label.
6536          - Add support for PasswordPropertyTextAttribute
6537         * PropertyGridView.cs: Check if an entry is a password.
6538         [Fixes bugs #365589, #365586, #365588]
6540 2008-02-28  Andreia Gaita <avidigal@novell.com>
6542         * PropertyGridView.cs: Revert the message filtering change, as we
6543         need it to block after all. Remove block parameter, unnecessary.
6545 2008-02-27  Jonathan Pobst  <monkey@jpobst.com>
6547         * UserControl.cs: Better implementation of GetPreferredSize.
6548         First step to fixing bug #361441.
6550 2008-02-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6552         * Binding.cs: Actually implement data binding support for 
6553         classes implementing IBindableComponent.
6554         * ControlBindingsCollection.cs: Likewise.
6556 2008-02-26  Andreia Gaita  <avidigal@novell.com>
6558         * PropertyGridView.cs: Use a message filter to check when to 
6559         close the dropdown
6561 2008-02-26  Andreia Gaita  <avidigal@novell.com>
6563         * Application.cs: Change the message_filters loop so a filter 
6564         can be removed while looping.
6566 2008-02-26  Ivan N. Zlatev  <contact@i-nz.net>
6568         * GridEntry.cs: Optimization in ToggleValue so that it caches
6569         the current value.
6570         * PropertyGridView.cs: An optimization so that the property isn't 
6571         re-read twice for each StandardValue added to the drop-down menu.
6572         Patch by Andy Hume <andyhume32@yahoo.co.uk> under the MIT/X11
6573         license.
6574         [Fixes bug #362755]
6576 2008-02-26  Jonathan Pobst  <monkey@jpobst.com>
6578         * Application.cs: Apply patch from Justin Cherniak to match
6579         MS better for ProductName, ProductVersion, and CompanyName.
6580         [Fixes bug #361709]
6582 2008-02-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6584         * Binding.cs: Actually implement 2.0 NullValue property. Also
6585         when changing the formatting related properties, only update the state
6586         if formatting_enabled is true (we don't mind otherwise).
6588 2008-02-25  Jonathan Pobst  <monkey@jpobst.com>
6590         * ToolStrip.cs: Don't raise ItemClicked for disabled items.
6591         [Fixes bug #364486]
6593 2008-02-25  Ivan N. Zlatev  <contact@i-nz.net>
6595         * GridEntry.cs: Use the PropertyDescriptor.PropertyType instead 
6596         of GetType on the current value as it uses reflection to 
6597         determine the type. This fixes the case where the new value is 
6598         null. 
6600 2008-02-25  Ivan N. Zlatev  <contact@i-nz.net>
6602         * PropertyGridView.cs: Limit mousewheel scrolling to not scroll
6603         past the view.
6605 2008-02-24  Luke Page  <luke.a.page@gmail.com>
6607         * Line.cs, TextControl.cs: Implement offset x and y so that a
6608         document doesn't have to begin  at (0,0) on the viewpoint.
6609         * TextBox.cs, TextBoxBase.cs: RightToLeft switches the scroll
6610         bars and switches the text alignment (and therefore is now
6611         implemented for textbox). Fixes #321383.
6613 2008-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6615         * Binding.cs: Actually implement 2.0 FormatString and FormatInfo
6616         properties. Also when changing FormattingEnabled update the control
6617         property -as .Net does-.
6619 2008-02-22  Carlos Alberto Cortez <calberto.cortez@ŋmail.com>
6621         * ControlBindingsCollection.cs: Add the missing 2.0 Add overloads.
6622         * Binding.cs: Add stubs for the overloads of the Add method in
6623         CBCollection.
6625 2008-02-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6627         * Binding.cs: PullData () returns a false value if we got an exception.
6628         Also when validating the control and we get an error, instead of
6629         setting the value of the previous one, cancel the event (tested in 1.1
6630         and 2.0).
6632 2008-02-22  Jonathan Pobst  <monkey@jpobst.com>
6634         * TreeView.cs: Make selected_node and highlighted_node internal.
6635         * TreeNodeCollection.cs: Reset selected_node and highlighted_node
6636         to null when Nodes.Clear is called.
6637         [Fixes bug #363884]
6639 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
6641         * FontDialog.cs: Ensure that when the Font is set in code,
6642         all the gui pieces are updated accordingly.
6643         [Fixes bug #361020]
6645 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
6647         * TextRenderer.cs: Respect proposed size for MeasureString.
6648         * ThemeWin32Classics.cs: If our CheckBox/RadioButton isn't
6649         autosize, use a proposed width to force wrapping for long text.
6650         [Fixes bug #360981]
6652 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
6654         * TreeView.cs: Factor in checkboxes = false and state images in
6655         to HitTest.  [Fixes bug #363360]
6657 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
6659         * ThemeWin32Classic.cs: Only look at the Date part of a DateTime
6660         when drawing the selected range.
6661         [Fixes bug #363648]
6663 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
6665         * ToolStripContainer.cs: Add SupportsTransparentBackColor and
6666         ResizeRedraw control styles.
6667         [Fixes bug #363555]
6669 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
6671         * TreeView.cs: StateImages are basically custom checkboxes, so
6672         factor their size the same as real checkboxes when determining
6673         what got clicked.
6674         [Fixes bug #363367]
6676 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
6678         * MessageBox.cs: Make the message box wider if the form caption
6679         is longer than the text in the form.
6680         [Fixes bug #361137]
6682 2008-02-20  Ivan N. Zlatev  <contact@i-nz.net>
6684         * PropertyGridView.cs: Fix a NRE when closing the drop down form.
6686 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
6688         * TreeNode.cs: Guard against an NRE when the parent's
6689         StateImageList hasn't been set.
6690         [Fixes bug #363353]
6692 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
6694         * SplitContainer.cs: Add SupportsTransparentBackColor and
6695         OptimizedDoubleBuffering control styles.
6696         [Fixes bug #363303]
6698 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
6700         * Application.cs: For the app data paths and the registry key paths,
6701         ensure they are created before returning them to the user.
6702         [Fixes bug #361709]
6704 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
6706         * Application.cs: Guard against an NRE in CompanyName and
6707         ProductName.
6709 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
6711         * Application.cs: For CompanyName, ProductName, and ProductVersion,
6712         make sure we handle all three cases correctly: attribute is present,
6713         attribute is present but is an empty string, and attribute is not
6714         present.
6716 2008-02-20  Ivan N. Zlatev  <contact@i-nz.net>
6718         * PropertyGridView.cs: 
6719          - Fix a NRE that caused a test failure
6720          - Another performance improvement - cache the standard values
6721          listbox.
6723 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
6725         * ComboBox.cs: Fix previous change to affect both 1.1 and 2.0
6726         code paths.
6728 2008-02-19  Ivan N. Zlatev  <contact@i-nz.net>
6730         * PropertyGridView.cs: Fix a big performance bug.
6732 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
6734         * SelectionRange.cs: Apply patch from Andy Hume to make
6735         constructor behavior more accurate.  [Fixes bug #362117]
6737 2008-02-19  Andreia Gaita <avidigal@novell.com> 
6739         * Control.cs: Added a new flag is_disposing to track if the
6740         window is currently in the process of being disposed of.
6741         This is used so that, when firing visibility changes triggered
6742         by unparenting controls during Dispose, the control doesn't
6743         get created again.      
6745 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
6747         * ComboBox.cs: Set height to preferred height when the handle
6748         is created.  [Fixes bug #360862]
6750 2008-02-18  Andreia Gaita <avidigal@novell.com>
6752         * XplatUIX11.cs: Create FosterParent with border width at 0.
6753         With the previous value of 4, everytime a control got reparented
6754         from parent = null, it's location would be shifted right and 
6755         down by 4, since these coordinates would be offset by the 
6756         FosterParent's border width.
6758 2008-02-18  Ivan N. Zlatev  <contact@i-nz.net>
6760         * Control.cs: During diposing firstly remove ourselfes from
6761         the parent and *then* destroy our handle, because removing
6762         ourselfes from the parent controls collection causes 
6763         VisibilityChange, etc events, which require a handle and end
6764         up recreating the control.
6766 2008-02-17  Ivan N. Zlatev  <contact@i-nz.net>
6768         * GridEntry.cs: Set expanded state before notifying that the
6769         expansion has taken place.
6770         * PropertyGridView.cs:
6771          - Set the propertygridtextbox text to the selected 
6772          StandardValue before proceeding to setting it.
6773          - Scrolling bugfixes.
6775 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
6777         * GridEntry.cs:
6778          - Fix ValueText to not return null.
6779          - Fix conversion error reporting to actually happen.
6780         * PropertyGridView.cs: Set entry only if the text has changed.
6781         [Fixes bug #362116]
6783 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
6785         * GridEntry.cs: 
6786          - Fix handling of a null current value.
6787          - Swallow editor exceptions.
6788         [Fixes bug #362114]
6790 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
6792         * PropertyGrid.cs: Clear current items first thing before 
6793         repopulating subitems.
6794         * GridEntry.cs: 
6795          - Handle null StandardValuesCollection.
6796          - Mark as not editable if there is no PropertyDescriptor and
6797          if the Converter cannot convert from string.
6798         [Part of fix for bugs #360666 and #358332]
6800 2008-02-15  Luke Page  <luke.a.page@gmail.com>
6801         * MaskedTextBox.cs: Now skips non editable characters after a
6802         character has been entered and we are progressing to the next
6803         position in the MaskedTextBox.
6805 2008-02-15  Luke Page  <luke.a.page@gmail.com>
6806         * TextBoxBase.cs: Handles MouseDown when shift key is clicked so
6807         that it changes the selection rather than just repositioning the
6808         cursor. Fixes Bug #360873.
6810 2008-02-15  Luke Page  <luke.a.page@gmail.com>
6811         * TextBoxBase.cs, TextControl.cs, RichTextBox.cs: TextChanged fires
6812         when Undo/Redo changes the text. Undo/Redo/Undo/Redo now works
6813         correctly. See #359330
6815 2008-02-15  Andreia Gaita <avidigal@novell.com>
6817         * XplatUIX11.cs: If the handle is null when posting a message, use the
6818         current thread queue to post instead. Fixes #332409
6820         * SendKeys.cs: Slight optimization
6822 2008-02-14  Ivan N. Zlatev  <contact@i-nz.net>
6824         * PropertyGrid.cs, PropertyGridView.cs:
6825         Fix multiple scrolling and sizing issues.
6826         [Fixes bug #359199]
6828 2008-02-12  Ivan N. Zlatev  <contact@i-nz.net>
6830         * PropertyGridView.cs: Ensure that drop down editors are shown
6831         in the WorkingArea of the screen.
6832         [Fixes bug #359807]
6834 2008-02-12  Ivan N. Zlatev  <contact@i-nz.net>
6836         * GridEntry.cs: Fail silently when UITypeEditor is missing.
6837         [Fixes bug #360666]
6839 2008-02-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6841         * Binding.cs: Implement 2.0 DataSourceNullValue property.
6843 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
6845         * PropertyGridView.cs:
6846          - Clear the controls in the drop down form after it is hidden.
6847          - Fix Width sizing of the dropdown editors to match MSFT.
6849 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
6851         * PropertyGridView.cs: 
6852          - Fix height for drawing the grid entry
6853          text value, so that it clips multiline text properly.
6854          - Fix unfocusing to match MSFT.
6856 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
6858         * PropertyGrid.cs: Do not populate subgriditems unless expandable.
6859         Fixes a bug where on repopulation after value changed items become
6860         expandable.
6862 2008-02-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6864         * Binding.cs: For the 2.0 profile, look for a 
6865         'PropertyChanged' event in the target control, and add checks for
6866         DataSourceUpdateMode property to change -or not- the data source
6867         from validation/control property change.
6869 2008-02-10  Atsushi Enomoto  <atsushi@ximian.com>
6871         * Binding.cs : build fix (operator == is not overriden in 1.x. Do
6872           not compare struct with null in 2.0).
6874 2008-02-10  Luke Page <luke.a.page@gmail.com>
6876         * MaskedTextBox.cs: UseSystemPasswordChar updates PasswordChar, PasswordChar
6877         updates the provider and if not using a provider, uses the internal document
6878         class implementation of password char. Also when showing text, uses display string
6879         from the provider, instead of the actual text.
6881 2008-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6883         * Binding.cs: Ooooops, forgot to take into account the data_source
6884         and binding_member_info null case (it was breaking the Binding tests).
6886 2008-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6888         * Binding.cs: Implement support for data source changes exposed by
6889         'PropertyNameChanged' events, and update the control property as
6890         needed.
6892 2008-02-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6894         * Binding.cs: Implement 2.0 WriteValue method.
6896 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
6898         Commit patch from James Purcell for better AutoScale implementation:
6900         * ScaleControl should call GetScaledBounds with the control's total size rather
6901         than client size.  GetScaledBounds should handle ignoring the borders in its
6902         calculations.  Cleaned up ScaleControl/GetScaledBounds overrides in controls
6903         (for the most part they just call the base code now since that is fixed).
6904         * Added ScaleChildrenInternal to allow controls to disable scaling of children
6905         without having to override ScaleChildren (since none of .NET's controls do). 
6906         This is required for most controls in Mono that have scrollbars to prevent the
6907         scrollbars from being moved/resized.
6908         * Nested ContainerControls can have a different scale mode than their parent. 
6909         This is briefly mentioned in MSDN but is buggy in MS.NET (the runtime and
6910         designer produce different results both of which look incorrect).
6911         * Default AutoScaleMode for ContainerControl should be Inherit.
6912         * Simplified workaround for ComboBox scaling issue.
6913         * 1.0 style auto-scaling now uses its own methods instead of sharing 2.0's. 
6914         1.0 style auto scaling should scale the whole control's size instead of
6915         ignoring the borders (except for Form) and the rounding is done differently to
6916         preserve control alignment.
6917         * ApplyAutoScaling (used for 1.0 style) should use the rounded result of
6918         GetAutoScaleSize.
6919         * Cleaned up fix for "Bug 355703 - Setting AutoScale = true doesn't stick".
6920         * CurrentAutoScaleDimensions should round the estimated character width instead
6921         of truncating.
6922         * ListBox's GetScaledBounds should always use the height it was set to instead
6923         of the height that was passed in.  This prevents rounding errors from
6924         accumulating quickly with IntegralHeight.
6925         [Bug #359098]
6927 2008-02-08  Andreia Gaita <avidigal@novell.com>
6929         * Form.cs: Add a null check (darn it). 
6931 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
6933         * MdiClient.cs: Make sure the requesting form actually owns the
6934         control menu items before removing them.  Also, use
6935         Suspend/ResumeLayout when adding or removing items so we only
6936         layout once.
6937         [Fixes bug #359887]
6939 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
6941         * Control.cs: Guard against an NRE in ShowFocusCues.
6942         [Fixes bug #359830]
6944 2008-02-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6946         * Binding.cs: Implement 2.0 ReadValue method and ControlUpdateMode
6947         property, as well as stubbing DataSourceUpdateMode.
6949 2008-02-08  Andreia Gaita <avidigal@novell.com>
6951         * Form.cs: When closing forms, get focus back to the active control of the
6952         active form. [Fixes #341314, corner case]
6953         
6954 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
6956         * MdiClient.cs: After we move the scrollbars, invalidate the NC
6957         area, so any old scrollbar artifacts are cleaned up.
6958         [Fixes bug #336305]
6960 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
6962         * MdiWindowManager.cs: If we are maximized and using MainMenuStrip
6963         for our menus, display that control box menu instead of the 1.1
6964         menu one.
6966 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
6968         * MdiControlStrip.cs: Add property to access the mdi form tied to
6969         each toolstripitem.
6970         * MdiClient.cs: Be smarter about removing and adding toolstripitems
6971         to the implicitly merged menu.  Every time we clicked the form, items
6972         were getting removed and the re-added, causing the form to jump around
6973         as the menu resized.
6975 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
6977         * MdiClient.cs: Make sure the NormalBounds always gets set.  It
6978         was being reset by the implicit menu merge for menustrips.
6979         [Fixes bug #336296]
6981 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
6983         * Form.cs: Don't do the previous change when WindowState = Normal,
6984         or it messes up where the window is placed.  Fixes test failure.
6986 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
6988         * Form.cs: When becoming visible, if we are an MDI child, call
6989         SetWindowState with a dummy old_state so that changes will actually
6990         be made.
6991         [Fixes the 2nd part of bug #325473]
6993 2008-02-07  Andreia Gaita <avidigal@novell.com>
6995         * Control.cs: Reset properties to their pre parent-change values in case
6996         the new parent == null (in which case we're basically removing the control, 
6997         and don't want any events fired due to fake property changes)
6998         [Fixes #355850]
7000 2008-02-06  Ivan N. Zlatev  <contact@i-nz.net>
7002         * PropertyGridView.cs: 
7003          - Refactor SetValue to allow setting the value
7004         when a custom editor is used, but the entry is not editable.
7005          - Remove the custom editor control on CloseDropDown.
7006         [Fixes #359196]
7008 2008-02-06  Andreia Gaita <avidigal@novell.com>
7010         * PrintControllerWithStatusDialog.cs: Set PrintFileName value through
7011         reflection only on 1.1, this property is public on system.drawing on 2.0.
7012         Fixed #359247
7014 2008-02-06  Andreia Gaita  <avidigal@novell.com>
7015         
7016         * WebBrowser.cs: Do a normal page refresh by default.
7018 2008-02-05  Andreia Gaita  <avidigal@novell.com>
7020         * XplatUIWin32.cs, XplatUICarbon.cs: set the hwnd.Mapped flag when we create 
7021         the window so that the check on Control.UpdateZOrderOfChild passes on non-X
7022         platforms. Fixes #359036
7023         
7024         Note: Control.UpdateZOrderOfChild needs to be rewritten to not rely on 
7025         platform-specific flags.
7027 2008-02-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7029         * Binding.cs: Add 2.0 BindableComponent property - just return control
7030         by now.
7032 2008-02-05  Everaldo Canuto  <ecanuto@novell.com>
7034         * MenuAPI.cs: Check if control is disposable when track popup menu. Thanks
7035         Jonathan for this patch. Fixes #358442.
7037 2008-02-05  Jonathan Pobst  <monkey@jpobst.com>
7039         * Form.cs: If we change the active MDI child form, let the others
7040         know they need to repaint their title bar so it will appear inactive.
7041         [Fixes part 1 of bug #325473]
7043 2008-02-05  Ivan N. Zlatev  <contact@i-nz.net>
7045          * PropertyGridView.cs: Do not trucate custom editors' width
7046          and align them to the left.
7047          [Fixes #358353 and #358349]
7049 2008-02-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7051         * BindingsCollection.cs: Implement 2.0 CollectionChanging event.
7052         Also fix the arguments passed to CollectionChangeEventArgs in the
7053         related methods.
7055 2008-02-04  Geoff Norton  <gnorton@novell.com>
7057         * Hwnd.cs: The conversion to Quartz coordinates happens in
7058         System.Drawing.  Removing this translation from here.
7060 2008-02-04  Ivan N. Zlatev  <contact@i-nz.net>
7062          * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs,
7063          CategoryGridEntry.cs, RootGridEntry.cs, GridItem.cs,
7064          GridItemCollection.cs:
7065          PropertyGrid rewrite part 2. Tons of bugfixes and new features.
7067 2008-02-04  Geoff Norton  <gnorton@novell.com>
7069         * X11Keyboard.cs: VK_MENU should send a KEYUP instead of 
7070         SYSKEYUP if any other key has been pressed in the mean time.
7071         Fixes #324404
7073 2008-02-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7075         * ListView.cs: In ItemControl.ItemsMouseMove, only fire ItemDrag event
7076         when the item in current position is different than 0. Also, save the
7077         item index in the beginning of the operation, instead of getting the
7078         index of the item when the event is actually performed. Lastly clean
7079         the related fields in ItemsMouseUp if the ItemDrag operation wasn't
7080         triggered.
7081         [Fixes #357873]
7083 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
7085         * Form.cs: Alt-Minus for MDI children system menu should work
7086         with both the minus keys on the keyboard.
7087         [Fixes bug #336295]
7089 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
7091         * Control.cs: Don't invalidate on region change.  The WM should
7092         take care of this automagically.  Keeps us out of an infinite
7093         paint loop if someone changes the Region in the OnPaint.
7094         [Fixes bug #358327]
7096 2008-02-04  Ivan N. Zlatev  <contact@i-nz.net>
7098          * ImageIndexConverter.cs: ConvertFrom must handle "(none)".
7100 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
7102         * DateTimePicker.cs: Apply patch from Srikanth Madikeri so we drop
7103         down the MonthCalendar only on F4, not Alt+F4.
7104         * MonthCalendar.cs: If we are a popup, close ourselves on Alt+F4.
7105         [Fixes bug #358340]
7107 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
7109         * ThemeWin32Classic.cs: For MonthCalendar, draw a dark border
7110         if its part of a DateTimePicker, else, use the back color.
7111         [Fixes bug #358339]
7113 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
7115         * Hwnd.cs: Use GraphicContext instead of the uninitialized bmp_g.
7116         [Fixes bug #358342]
7118 2008-02-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7120         * CurrencyManager.cs: When we get a ListChanged event from our source,
7121         always fire our own ListChanged event, as .Net does.
7123 2008-02-03  Luke Page  <luke.a.page@gmail.com>
7125         * RichTextBox.cs: AutoSize now defaults to false. Fixes Bug
7126         #358379.
7128 2008-02-03  Luke Page  <luke.a.page@gmail.com>
7130         * TextBoxBase.cs, RichTextBox.cs, TextControl.cs: Sets richtext
7131         property. Removed if for richtext property that was always true.
7132         PgUp/PgDn at top/bottom fixed for RTB. Fixes bug #358237.
7134 2008-02-03  Luke Page  <luke.a.page@gmail.com>
7136         * TextBoxBase.cs - commited patch from James Purcell that
7137         correctly sets the FixedHeight control style when the MultiLine
7138         property is changed on a TextBox control. Fixes bug 358229.
7140 2008-02-02  Luke Page  <luke.a.page@gmail.com>
7142         * Line.cs, LineTag.cs, RichTextBox.cs, TextControl.cs
7143         Fixes bug 351938 - caret is positioned correctly when drawn
7144         and when calculating textual position of caret, no longer
7145         has a NRE in certain situations.
7146         
7147 2008-02-01  Geoff Norton  <gnorton@novell.com>
7149         * Hwnd.cs: Ensure that windows moved into -'ve coordinate space
7150         get that region removed from the paint event.
7151         * XplatUICarbon.cs: Remove the window mapping after disposing of 
7152         window.  Prevents a crash with handle reuse.  Optimize exposes
7153         only onto visible windows (rare; but possible).
7155 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
7157         * UpDownBase.cs: Make sure the internal textbox calls the base's
7158         OnMouseDown and OnMouseUp so the textbox will function correctly.
7159         There were notes saying it doesn't chain up, but its an internal
7160         class, so our implementation may differ.
7161         [Fixes bug #357482]
7163 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
7165         * ListBox.cs: Fix a logic error and don't process MouseDown
7166         for mouse buttons other than Left.
7168 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
7170         * Control.cs: Remove HeightInternal.
7171         * ListBox.cs: Commit patch from James Purcell that correctly
7172         calculates heights for ListBoxen.
7173         [Fixes bug #357152]
7175 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
7177         * Label.cs: Apply patch from James Purcell that corrects the 
7178         signature of the AutoSize property.
7179         [Fixes bug #357605]
7181 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
7183         * ListBox.cs: Don't throw [Mouse]Click events for buttons
7184         other than the left mouse button.
7186 2008-01-31  Jonathan Pobst  <monkey@jpobst.com>
7188         * Control.cs: Remove my awesome optimization as it caused some
7189         regressions with control ordering.  :(
7190         [Fixes bug #357467]
7192 2008-01-31  Ivan N. Zlatev  <contact@i-nz.net>
7194          * PropertyGridView.cs: Fix a NRE on double click when there is no
7195          selected object.
7197 2008-01-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7199         * BindingManagerBase.cs: Implement IsBindingSuspended 2.0 property.
7201 2008-01-30  Jonathan Pobst  <monkey@jpobst.com>
7203         * ListBox.cs: Call MouseClick and MouseDoubleClick.
7204         [Fixes bug #357146]
7206 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
7208         * Hwnd.cs: Make bmp, bmp_g variables threadstatic and private.
7209         * Control.cs, DataGridViewCell.cs, LineTag.cs: Use Hwnd.GraphicsContext
7210         instead of Hwnd.bmp_g.
7212 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
7214         * TextRenderer.cs: Don't maintain private bitmap/graphics contexts.
7215         Use the Hwnd one instead.
7217 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
7219         * Form.cs: Remove duplicated copy of GetAutoScaleSize.
7221 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
7223         * Form.cs: corcompare for RestoreBounds.
7225 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
7227         * Control.cs: Add MarshalAs attribute to Font getter for corcompare.
7229 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
7231         * Form.cs: Handle Alt-Minus for MDI children forms.
7232         * MdiWindowManager.cs: Make ShowPopup internal so Form can call it.
7233         Add mnemonics to the control menu.
7234         [Fixes bug #336295]
7236 2008-01-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7238         * Binding.cs: Initial implementation bits of FormattingEnabled
7239         property and BindingComplete event (2.0). 
7240         * BindingCompleteEventArgs.cs: Internal methods for setting error text
7241         and exception.
7243 2008-01-28  Jonathan Pobst  <monkey@jpobst.com>
7245         * TableLayoutPanel.cs: Draw the table border at 0,0 instead of
7246         table.Location.  [Fixes bug #354672]
7248 2008-01-28  Jonathan Pobst  <monkey@jpobst.com>
7250         * Form.cs: Handle WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE to raise
7251         ResizeBegin and ResizeEnd.  [Fixes bug #346529 for win32]
7253 2008-01-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7255         * ComboBox.cs: When OnDisplayMemberChanged method is reached, instead
7256         of doing all the re-bound work, just invalidate and call SetControlText 
7257         to set the updated text of selected item to our textbox.
7258         Fixes #333750.
7260 2008-01-28  Andreia Gaita <avidigal@novell.com>
7262         * HtmlWindow.cs: Add event handler support. Add Document, Frames, 
7263         IsClosed, Opener, StatusBarText, Url properties, stub out the remaining
7264         missing properties and methods. Add Load, Unload, Error, GotFocus, 
7265         LostFocus, Resize, Scroll events (only load and unload are connected)
7267 2008-01-27  Gert Driesen  <drieseng@users.sourceforge.net>
7269         * AccessibleObject.cs: Modified argument names to match MS.
7270         * Button.cs: Modified argument names to match MS.
7271         * BindingContext.cs: Modified argument names to match MS.
7272         * BindingMemberInfo.cs: Modified argument names to match MS.
7273         * ButtonBase.cs: Modified argument names to match MS.
7274         * ComboBox.cs: Modified argument names to match MS.
7275         * Control.cs: Modified argument names to match MS.
7276         * CheckedListBox.cs: Modified argument names to match MS.
7277         * CommonDialog.cs: Modified argument names to match MS.
7278         * DataGrid.cs: Modified argument names to match MS.
7279         * CursorConverter.cs: Modified argument names to match MS.
7280         * ControlPaint.cs: Modified argument names to match MS.
7281         * CheckBox.cs: Modified argument names to match MS.
7282         * ControlBindingsCollection.cs: Modified argument names to match MS.
7283         * BindingSource.cs: Modified argument names to match MS.
7284         * DataFormats.cs: Modified argument names to match MS.
7285         * ContainerControl.cs: Modified argument names to match MS.
7286         * CurrencyManager.cs: Modified argument names to match MS.
7287         * Application.cs: Modified argument names to match MS.
7288         * ContextMenuStrip.cs: Modified argument names to match MS.
7289         * ContextMenu.cs: Modified argument names to match MS.
7290         * BindingManagerBase.cs: Modified argument names to match MS.
7291         * WindowsFormsSection.cs: Fixed line ending.    
7293 2008-01-27  Andreia Gaita <avidigal@novell.com>
7295         * PropertyGridView.cs: Rearrange the dropdown loop so that it exits when
7296         detecting that the dropdown toolwindow is hidden. EndLoop outside the
7297         while.
7299 2008-01-26  Gert Driesen  <drieseng@users.sourceforge.net>
7301         * PropertiesTab.cs: Fixed argument name of GetDefaultProperty to match
7302         MS. Code formatting.
7304 2008-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7306         * Binding.cs: Don't avoid the Format event if the control 
7307         property type is object. Also, if the value retrieved by 
7308         the data source is null _and_ the control proeprty type 
7309         is object, return Convert.DBNull (match .Net).
7310         Fixes part of #324286.
7312 2008-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7314         * ListControl.cs: Since we are getting two BinginContextChanged events
7315         for the same binding context instance (when the control is added to
7316         form, and when the form is actually shown), take it into account only the
7317         first time for a given binding context instance.
7318         Fixes part of #324286.
7320 2008-01-26  Ivan N. Zlatev  <contact@i-nz.net>
7322          * PropertryGridView.cs: Ops.
7324 2008-01-26  Ivan N. Zlatev  <contact@i-nz.net>
7326          * PropertyGridView.cs: Close dropdown form if the owner form is
7327          moved or minimized.
7328          [Fixes bug #322446]
7330 2008-01-25  Ivan N. Zlatev  <contact@i-nz.net>
7332          * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs, GridItem.cs, 
7333          RootGridEntry.cs, CategoryGridEntry.cs:
7334          PropertyGrid rewrite.
7335          - Rewrite all of the control logic in PropertyGrid.
7336          - Rewrite all of the ComponentModel logic in GridEntry.
7337          - Rewrite all UI work in PropertyGridView.
7338          - Many bugfixes, etc.
7340 2008-01-24  Jonathan Pobst  <monkey@jpobst.com>
7342         * TableLayoutPanel.cs: Enhance GetPreferredSize to take into account
7343         when all contained controls are autosize or dock-fill.  Also take into
7344         account when the total percentage of column/row sizes is not 100%.
7345         [Fixes bug #354672]
7347 2008-01-24  Andreia Gaita <avidigal@novell.com>
7349         * HtmlDocument.cs:
7350         - Save a reference to the IDocument in the instance and
7351           use that one instead of going to WebHost.Document; the document that the 
7352           WebHost returns might not be the right one (in case of frames).
7353         - Use the hashcode returned from the IDocument interface.
7354         - Implemented: ActiveElement, ActiveLinkColor, All, BackColor, Cookie, 
7355           Domain (setter is not supported), Encoding, ForeColor, Forms, Images, 
7356           LinkColor, Url, VisitedColor, Window
7358         * HtmlElement.cs: 
7359         - Implemented: CanHaveChildren, Children, Document, GetAttribute, 
7360           set_Attribute, NextSibling, Parent, TagName, AppendChild, 
7361           GetElementsByTagName, GetHashCode, HasAttribute, InsertAdjacentElement,
7362           SetAttribute, Equals, equality operators.
7363         - Added stubs for: AttachEventHandler, DetachEventHandler, Focus, 
7364           InvokeMember, RaiseEvent, RemoveFocus, ScrollIntoView, 
7365         
7366         * HtmlElementCollection.cs: Change implementation to use a generic
7367         collection. Implemented Enumerator and CopyTo
7369         * HtmlHistory.cs: Add constructor, no implementation yet.
7371         * HtmlWindow.cs: Initial implementation with: Name, Parent, Alert,
7372         Confirm, Prompt, Navigation, ScrollTo, Open, OpenNew, GetHashCode, 
7373         Equals, equality operators.
7375         * HtmlWindowCollection.cs: Implemented. 
7377         * WebBrowser.cs: Use the Navigation object to navigate (WebHost.Navigate
7378         has been deprecated).
7380         * WebBrowserBase.cs: Use Completed event to track document loading
7381         (Navigated has been deprecated)
7383 2008-01-24  Jonatham Pobst  <monkey@jpobst.com>
7385         * ThemeWin32Classic.cs: Add tab stops and NoWrap to dropdown MenuItems.  Top
7386         level MenuItems do not respect tabs.
7387         [Fixes bug #355196]
7389 2008-01-23  Geoff Norton  <gnorton@novell.com>
7391         * XplatUICarbon.cs:  Ensure that windows are created in their initial 
7392         FormWindowState.  Finished fixing Fullscreen windows on Carbon
7394 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
7396         * MenuAPI.cs: When FindForm fails uses FindRootParent to find the control to
7397         be used as grab_control. Also save status of capture before show ContextMenu
7398         and restore it after close.
7400 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
7402         * Control.cs: Internal FindRootParent method added to return high control
7403         in parent tree.
7405 2008-01-23  Geoff Norton  <gnorton@novell.com>
7407         * Hwnd.cs: Refactor Whole/Client pointer to 1 element for Cursors.
7408         * XplatUICarbon.cs: Refactor some dead code out to Cursor.cs and make
7409         it work again.  Handle HITTEST events.
7411 2008-01-23  Geoff Norton  <gnorton@novell.com>
7413         * XplatUICarbon.cs: Ensure that we always have a host window.  Prevents
7414         a crash in certain cases.  Support for fullscreen windows in certain cases.
7416 2008-01-23  Jonathan Pobst  <monkey@jpobst.com>
7418         * Form.cs: Don't set AutoScaleMode in AutoScale if we don't have to.
7419         [Fixes bug #355703]
7421 2008-01-23  Geoff Norton  <gnorton@novell.com>
7422         
7423         * XplatUICarbon.cs: Remove some dead code that was causing warnings.
7425 2008-01-23  Geoff Norton  <gnorton@novell.com>
7427         * XplatUICarbon.cs:  Re-enabled Carets in QuickDraw as a overlay window.
7429 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
7431         * SplitContainer.cs: Remove unused declarations.
7432         * Binding.cs: Remove unused declarations.
7434 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
7436         * Form.cs: Remove unused declaration of 'active' in Activate method.
7437         * Control.cs: Move declaration of nested_layout inside '#if NET_2_0" to 
7438         prevent compilation warnings.
7439         * TextControl.cs: Remove unused declaration of selection_pos_on_line.
7440         * Hwnd.cs: Remove unused declaration of clip in GetClippingRectangles.
7441         * Bindings.cs: Remove unused formatting_enabled declaration.
7442         * ToolTip.cs: Put some methods inside '#if NET_2_0" to prevent compilation 
7443         warnings.
7444         * TreeView.cs: Put some methods inside '#if NET_2_0" to prevent compilation 
7445         warnings.
7446         * PropertyGridView.cs: Remove usused 'ex' declaration.
7447         * DataGridView.cs: Remove unused declarations.
7449 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
7451         [Fixes bugs #343966, #338511 and other non reported (context)menu bugs]
7452         
7453         * Form.cs: Remove all active_tracker (used by menu) stuff, it is now moved 
7454         to Control class, it makes possible to grab menu to controls that can't 
7455         reach Form using parent tree. Handle for WmButtonUp, WmButtonDown and
7456         WmMouseMove removed since it was used only to track menu events.
7458         * Control.cs:
7459         - Moved all active_tracker stuff from Form.
7460         - ProcessActiveTracker added to prevent code duplicity, now mouse events 
7461         can call this method instead of reimplement all necessary code handle for
7462         menu tracker.
7463         - Call to ProcessActiveTracker for mouse events (WmButtonUp, WmButtonDown
7464         and WmMouseMove).
7465         
7466         * MenuAPI.cs: 
7467         - Remove special handle to ToolStripOverflow, now we can grab menu to 
7468         controls that can't reach Form using parent tree.
7469         - Change type of grab_control from Form to Control.
7471 2008-01-22  Geoff Norton  <gnorton@novell.com>
7473         * TextBoxBase.cs: Split up the sizing of controls and placing of 
7474         controls.  Fixes a bug where scrollbars in Reflector could be sized
7475         wrong and have non-working thumbers.
7477 2008-01-23  Geoff Norton  <gnorton@novell.com>
7479         * XplatUI.cs: Refactor environment variables to default support to the
7480         Carbon driver on the Mac.
7482 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
7484         * Label.cs: Uses new LabelPainter for drawing operations.
7485         * ThemeWin32Classic.cs: DrawLabel and LabelDefaultSize removed.
7486         * Theme.cs: DrawLabel and LabelDefaultSize removed.
7488 2008-01-22  Geoff Norton  <gnorton@novell.com>
7490         * XplatUICarbon.cs: Enable packing scroll delta into the mouse wParam
7492 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
7494         * ThemeWin32Classic.cs: Run Flat, Button appearance, 2.0 CheckBoxes
7495         through the normal flat button code and don't draw the checkbox glyph.
7496         * Theme.cs: Button->ButtonBase signature change.
7497         [Fixes bug #324755]
7499 2008-01-22  Everaldo Canuto  <ecanuto@novell.com>
7501         * LinkLabel.cs: Uses new class LinkLabelPainter.
7503 2008-01-22  Everaldo Canuto  <ecanuto@novell.com>
7505         * MessageBox.cs: Adjust right border space, we don't need to add 
7506         "space_border*2" two times.
7508 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
7510         * ScrollableControl.cs: With the advent of 2.0's Padding, DockPadding
7511         becomes a wrapper around Padding.
7512         [Fixes a part of bug #354676]
7514 2008-01-22 Geoff Norton  <gnorton@novell.com>
7516         * Mime.cs:  Avoid a needles exception on OSX if we dont have a buffer
7517         acquired.  Also ensure the buffer is large enough to grab the header
7518         we need on linux boxes.
7520 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
7522         * Control.cs: Implement a custom enumerator so people can delete
7523         from the Controls collection while in a foreach.
7524         [Fixes bug #355074]
7526 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
7528          * PropertyGridView.cs: Fix focusing behavior:
7529          - Tab should focus the grid text box.
7530          - Clicking on the labels shouldn't focus the grid text box.
7532 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
7534          * PropertyGridView.cs: IsValueTypeGridItem should return true 
7535          for Arrays as well.
7537 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
7539          * PropertyGrid.cs, GridEntry.cs, PropertyGridView.cs:
7540           - Renamed GridEntry.SelectedObjects to TargetObjects to better
7541           reflect the property name role.
7542           - PropertyGrid.GetTarget is not required as the target is known
7543           (TargetObjects).
7544           - Setting values will handle value types as a special case now and
7545           populate them up in the chain.
7546           [Fixes #354990]
7548 2008-01-21  Jonathan Pobst  <monkey@jpobst.com>
7550         * Hwnd.cs: Create a public property for the Graphics we keep around.
7552 2008-01-21  Ivan N. Zlatev  <contact@i-nz.net>
7554          * PropertyGridView.cs: Just hide the grid textbox and do nothing more 
7555          when the current object selection changes. 
7556          Fixes failing test SelectedObject_Null2.B5.
7558 2008-01-21  Ivan N. Zlatev  <contact@i-nz.net>
7560          * PropertyGrid.cs: Process Browsable properties with 
7561          DesignerSerializationVisibilityAttribute.Content as being expandable.
7562          This seems also what MS does. Without this e.g SplitContainer.Panel1/2
7563          will not be expandable. We should be nested components-friendly now.
7565 2008-01-21  Andreia Gaita <avidigal@novell.com>
7567         * WebBrowserBase.cs: Check if control was loaded properly, 
7568         don't bind if it wasn't.
7570         * HtmlDocument.cs: Implement CreateElement, Equals, Focus, 
7571         GetElementFromPoint, equality operators, OpenNew, Write.
7572         Remove extra set_Body
7574 2008-01-18  Jonathan Pobst  <monkey@jpobst.com>
7576         * ContainerControl.cs, Control.cs: Apply patch from James Purcell
7577         that makes our AutoScale* stuff more tolerant to different orders
7578         of being set.  [Fixes bug #354669]
7580 2008-01-18  Ivan N. Zlatev  <contact@i-nz.net>
7582          * PropertyGridView.cs, PropertyGridTextBox.cs: 
7583          Drop WM_LBUTTONDOWN msg sending and use focusing instead.
7584          [Fixes #339005 and #348209]
7586 2008-01-18  Ivan N. Zlatev  <contact@i-nz.net>
7588          * PropertyGridView.cs: Hide the grid text box before adjusting it
7589          for the newly selected GridItem.
7590          [Fixes #338999]
7592 2008-01-18  Jonathan Pobst  <monkey@jpobst.com>
7594         * Form.cs: Give MDI children the opportunity to cancel the parent form
7595         attempting to close.  Ensure that all [Form]Clos[ing,ed] events get called
7596         properly for both the parent and child.
7597         * Application.cs: Signature of internal method changed, pass the previous
7598         default of false.
7599         [Fixes bug #354286]
7601 2008-01-17  Ivan N. Zlatev  <contact@i-nz.net>
7603         * PropertyGridView.cs: Set the property value only if it has changed.
7604         [Fixes bug #338997]
7606 2008-01-17  Jonathan Pobst  <monkey@jpobst.com>
7608         * MenuAPI.cs: Windows sends us MOUSEMOVE messages when any key is pressed.
7609         If the mouse hasn't actually moved, ignore these messages so the currently
7610         highlighted menuitem isn't reset to the one under the mouse.
7611         [Fixes bug #333668]
7613 2008-01-17  Ivan N. Zlatev  <contact@i-nz.net>
7615         * PropertyGridView.cs: When the property changes Invalidate the GridItem
7616         in order for the properties with UITypeEditor.GetPaintValueSupported == true
7617         to reflect the change visually.
7618         [Fixes bug #338998]
7620 2008-01-17  Jonathan Pobst  <monkey@jpobst.com>
7622         * ButtonBase.cs: Add LineLimit to 1.1 button drawing, and TextBoxControl
7623         to 2.0 button drawing.
7624         * ThemeWin32Classic.cs: Ensure that the rectangle we are using to draw 
7625         the button text is tall enough for one line.  LineLimit says it will
7626         always draw at least one line, but it is a lie.
7627         [Fixes bug #324941]
7629 2008-01-17  Atsushi Enomoto  <atsushi@ximian.com>
7631         * XplatUIStructs.cs, X11Keyboard.cs :
7632           added some more VK_* keys to be handled.
7634 2008-01-16  Andreia Gaita <avidigal@novell.com>
7636         * Control.cs: Check if there is a container before setting or getting
7637         the validation flag.
7639 2008-01-16  Andreia Gaita <avidigal@novell.com>
7641         * ContainerControl.cs: Add flag to track if a control cancels validation, 
7642         so we don't fire click events.
7644         * Control.cs: 
7645         - (HandleClick) Check if validation was cancelled before  firing the click
7646         events (doubleclicks are fired, but not clicks)
7647         - (WmLButtonDown) Reset validation flag. The flag is normally reset on 
7648         ContainerControl.set_ActiveControl, but in the case of non-selectable
7649         controls, like a Label, activecontrol is not set. 
7651         * ButtonBase.cs: Only fire clicks if validation passes.
7652         
7653         Fixes #353310
7655 2008-01-16  Geoff Norton  <gnorton@novell.com>
7657         * XplatUICarbon.cs: Implement GetAutoScaleSize to fix Reflector on
7658         trunk
7660 2008-01-16  Jonathan Pobst  <monkey@jpobst.com>
7662         * FolderBrowserDialog.cs: If we cannot interpret the user's requested
7663         SelectedPath, just display the default dialog instead of crashing.
7664         [Fixes bug #348989]
7666 2008-01-16  Geoff Norton  <gnorton@novell.com>
7668         * XplatUICarbon.cs:  Flicker be gone!  Generate our messages in
7669         AddExpose instead of trusting apples compositing manager which doesn't
7670         work for our use case.  Remove some dead code causing warnings and 
7671         redecorate some other code to prevent warnings.
7673 2008-01-16  Geoff Norton  <gnorton@novell.com>
7675         * XplatUICarbon.cs:  Avoid some unecessary invalidation calls when
7676         carbon signals us to redraw.  Fixes another portion of the flickering bug
7678 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
7680         * Form.cs: Prevent the MdiParent property to be set when value is the same
7681         as value already set. Fixes bug #328019.
7683 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
7685         * Form.cs: Don't set mdi_parent as null when mdi window close is prevented, 
7686         it prevents NRE when closing mdi child windows. Fixes bug #325211.
7688 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
7690         * InternalWindowManager.cs: Invalidade close button after mouse up when 
7691         mdi form is prevented to close.
7693 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
7695         * MdiClient.cs: Fix the minimum bounds on child window sizes when cascade,
7696         thanks to Andy Hume. Fixes bug #325433.
7698 2008-01-16  Andreia Gaita <avidigal@novell.com>
7700         * LinkLabel.cs: Reset focused_index when resellecting the control.
7701         Fixes #323190
7703 2008-01-15  Geoff Norton  <gnorton@novell.com>
7705         * XplatUICarbon.cs:  Rework Grab/Ungrab handling to send some needed 
7706         messages.
7708 2008-01-15  Jonathan Pobst  <monkey@jpobst.com>
7710         * Form.cs: Change 2 more AutoScaleBaseSize calculation to round instead
7711         of truncate.
7713 2008-01-15  Jonathan Pobst  <monkey@jpobst.com>
7715         * ContainerControl.cs: Setting AutoScaleMode to anything should set
7716         Form.AutoScale to false.
7717         * Form.cs: Setting AutoScale to true should set AutoScaleMode to None.
7718         AutoScaleBaseSize should be changed on Font change unless it has been
7719         explicitly set.
7720         [Fixes bug #353827]
7722 2008-01-15  Everaldo Canuto  <ecanuto@novell.com>
7724         * MenuAPI.cs: On instance of MenuTracker check if source control is
7725         ToolStripOverflow and use properly method to find form.
7726         [Fixes bug #338511]
7728 2008-01-15  Everaldo Canuto  <ecanuto@novell.com>
7730         [Fixes bug #323241 Transparent toolbar support]
7732         * ToolBar.cs: Define ToolBarStyles.TBSTYLE_FLAT in CreateParams when toolbar
7733         is flat.
7735         * Control.cs: Paint background as transparent in case of TBSTYLE_FLAT is
7736         defined in control style to mimic win32 behavior.
7738         * ThemeWin32Classic.cs: Don't paint background for flat apparence toolbar, 
7739         it will be transparent.
7741 2008-01-14  Everaldo Canuto  <ecanuto@novell.com>
7743         * XplatUIStructs.cs: Implement ToolBarStyles to use in Style property of
7744         CreateParams for ToolBar controls.
7746 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
7748         * Form.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs: Forms with
7749         FixedToolWindow, SizeableToolWindow, or None for border styles have
7750         different minimum sizes than regular forms.  Implemented to fix
7751         regression in PDN with toolbox being too wide.
7753 2008-01-14  Andreia Gaita <avidigal@novell.com>
7755         * HtmlElementCollection.cs: Implemented
7757         * HtmlElement.cs: Implemented:
7758           - All
7759           - InnerHtml
7760           - InnerText
7761           - Id
7762           - Name
7763           - FirstChild
7765         * HtmlDocument.cs: Implemented GetElementsByTagName.
7767 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
7769         * Screen.cs: Stub BitsPerPixel to always return 32.
7771 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
7773         * Form.cs: Implement RestoreBounds.
7775 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
7777         * RichTextBox.cs, ToolStrip.cs: Fix some typos pointed out by
7778         Sebastien and his fabulous magical problem-finding machine:
7779         Gendarme.  Also put a MonoTodo on AutoWordSelect since we don't
7780         respect the value set.
7782 2008-01-14  Everaldo Canuto  <ecanuto@novell.com>
7784         * Form.cs: In WmWindowPosChanged call base.WndProc including when state is
7785         minimized. Fixes bug #325122 for Win32. Thanks  Srikanth Madikeri.
7787 2008-01-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7789         * X11Dnd.cs: Since we don't propagate the WM_LBUTTONUP/WM_RBUTTONUP
7790         messages (to match .Net), we need to remove the capture ourselves.
7792 2008-01-11  Jonathan Pobst  <monkey@jpobst.com>
7794         * MenuAPI.cs: If we get an Alt-F4, release our capture so Windows
7795         will process the message and close our window.
7796         [Fixes bug #324328]
7798 2008-01-10  Geoff Norton  <gnorton@novell.com>
7800         * XplatUICarbon.cs:  Clip the Graphics context to the invalid area
7801         tracked in the Hwnd.  Only invalidate the dirty region to the Carbon
7802         window manager.
7804 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
7806         * Form.cs: Enforce the Form minimum size in SetBoundsCore.  Fixed
7807         failing test.
7809 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
7811         * XplatUIX11.cs: Set a minimum window size and enforce it.  Even though
7812         Linux doesn't care, having a minimum matches MS and keeps the window
7813         from becoming too small to use window decorations.
7814         [Fixes bug #338996]
7816 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
7818         * ThemeWin32Classic.cs: Tie CheckBox/RadioButton focus rectangles to
7819         ShowFocusCues.  Make focus rectangles fit the text instead of the whole
7820         control.  [Fixes bug #325419]
7822 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
7824         * ComboBox.cs: Guard against an NRE if the user open a new form from a
7825         SelectedIndexChanged event.  This closes the combobox dropdown, and we
7826         were trying to dispose it.  [Fixes bug #352830]
7828 2008-01-09  Jonathan Pobst  <monkey@jpobst.com>
7830         * Control.cs, Form.cs: Implement the necessary semantics for
7831         ShowFocusCues.  All paint code will need to check Control.ShowFocusCues
7832         to determine if a focus rectangle should be drawn.
7833         * PropertyGrid.cs: Fix property visibility to match override.
7834         * ThemeWin32Classic.cs: Use ShowFocusCues for Button.
7836 2008-01-09  Jonathan Pobst  <monkey@jpobst.com>
7838         * Application.cs: Use GetCommandLineArgs to calculate ExecutablePath.
7839         [Fixes bug #323552]
7841 2008-01-09  Geoff Norton  <gnorton@novell.com>
7842         
7843         * XplatUICarbon.cs: Scroll windows in the correct direction.
7845 2008-01-09  Geoff Norton  <gnorton@novell.com>
7847         * XplatUICarbon.cs: Track all created utility windows so we can hide them
7848         when the app is deactivated or spaces is enabled.
7850 2008-01-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7852         * ListViewItem.cs: Cosmetic fix - When calculating layout for item, don't add an
7853         extra separation pixel for the label rect origin if SmallImageList is
7854         null, and thus we don't need that separation between icon and label
7855         rects.
7856         Patch by Ernesto Carrea.
7857         Fixes # 340195.
7859 2008-01-08  Jonathan Pobst  <monkey@jpobst.com>
7861         * StatusStrip.cs: Invalidate after completing a layout.  The base
7862         OnLayout does this, but we don't call the base.
7863         * ToolStripItem.cs: Revert the previous change to invalidate after
7864         the item moves.
7865         [Fixes bug #351341 better.]
7867 2008-01-07  Geoff Norton  <gnorton@novell.com>
7869         * XplatUICarbon.cs:  WM_DESTROY is a teardown of a single window
7870         not a notification to exit the application.  Listen for WM_QUIT
7871         instead.
7873 2008-01-07  Andreia Gaita <avidigal@novell.com>
7875         * HtmlDocument.cs: Fix case on GetElementById (interface changed)
7877 2008-01-07  Jonathan Pobst  <monkey@jpobst.com>
7879         * ToolStripItem.cs: If the bounds of an item changes, invalidate it
7880         so it can repaint at the correct location.
7881         [Fixes bug #351341]
7883 2008-01-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7885         * ListControl.cs: SelectedValue should return a null value if
7886         SelectedIndex is -1. Also, when setting it, it should throw an
7887         ArgumentNullException if the value is null, as well as taking
7888         into account the String.Empty value, instead of ignoring it (we have
7889         tests for that now).
7890         Fixes part of #324286.
7892 2008-01-06  Jonathan Pobst  <monkey@jpobst.com>
7894         * TextBoxBase.cs, TextControl.cs: Patch from Luke Page to ensure
7895         SelectionStart is updated after pressing enter.  Fixes bug #351918.
7897 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
7899         * TextControl.cs: Revert a piece r92316 that prevented the fix
7900         from working when there were multiple tags in the text box.
7901         Fixes bug #351881.
7903 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
7905         * TextControl.cs: Apply patch from Luke Page that prevents an
7906         NRE when determining the beginning of a paragraph.
7907         Fixes bug #351886.
7909 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
7911         * TextBoxBase.cs: Apply patch from Luke Page that ensures the
7912         caret gets moved with clicking away from a selected block of
7913         text.  Fixes bug #351885.
7915 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
7917         * TextControl.cs: Apply patch from Luke Page that takes line
7918         alignment into account for mouse selection, so that center and
7919         right aligned text can be selected.
7920         Fixes bug #351881.
7922 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
7924         * RichTextBox.cs: Apply patch from Luke Page that fixes some caret
7925         issues after loading an RTF file by using the correct line feeds.
7926         Fixes bug #351841.
7928 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
7930         * TextControl.cs: When deleting multiple line selections, we need
7931         to invalidate every line beginning at the first line of the selection.
7932         Patch from Luke Page fixes bug #351791.
7934 2008-01-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7936         * ListControl.cs: When getting a CurrencyManager.PositionChanged
7937         event, don't set SelectedIndex if the number of items is 1. This is
7938         because, for the first item, PositionChanged is fired _before_
7939         ItemChanged (the place where we actually populate the items), and
7940         leave us in a temporary invalid state (since items collection is
7941         empty).
7942         Fixes #349655.
7944 2008-01-04  Geoff Norton  <gnorton@novell.com>
7946         * XplatUICarbon.cs:  Create native toolwindows instead of
7947         the managed drawing ones.
7949 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
7951         * LineTag.cs: If the line doesn't have any characters, return
7952         0 for GetCharIndex.  Fixes an AOORE exception after certain
7953         caret movements.  Fixes bug #351683.  Patch by Luke Page.
7955 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
7957         * TextBoxBase.cs: Apply patch from Luke Page so when backspace
7958         is hit when there is selected text, only the selected text gets
7959         deleted, not the character in front of the selection as well.
7960         Fixes bug #351578.
7962 2008-01-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7964         * ComboBox.cs: When the values are displayed, calculate the
7965         ComboListBox scrollbar's LargeChange based on the visible area's
7966         height and  the actuall ItemHeight, instead of calculating it
7967         based on MaxDropItems value, since it's not used by our _current_ 
7968         2.0 profile.
7969         Fixes #332366.
7971 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
7973         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
7974         Patch from Luke Page that fixes issues with font colors and styles
7975         not showing up in a readonly RichTextBox.  Fixes bug #324354.
7977 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
7979         * Line.cs, RichTextBox.cs, TextControl.cs: Another awesome patch
7980         from Luke Page.  This one fixes bug #349926.
7982 2007-12-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7984         * CurrencyManager.cs: Actually fire the 2.0 ListChanged event when
7985         an item in the IBindingList source changes with
7986         ListChangedType.ItemAdded. Ignore for now firing the event for other
7987         changes, since we want to have tests for those cases as well.
7989 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
7991         * TextBoxBase.cs: Don't store a 1x1 Bitmap for every TextBox
7992         created.
7994 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
7996         * TextBoxTextRenderer.cs: Implement a cache for measuring each
7997         character.  This is effective because the typical usage of a
7998         TextBox is with a limited amount of fonts and characters, and
7999         the current implementation of TextBox measures everything one
8000         character at a time.  Another second or two speedup for bug #347238.
8002 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
8004         * Control.cs: Rewrite the Font getter to only query the parent's
8005         Font property once instead of twice.  Since this operation is
8006         recursive, the queries were growing exponentially as the control
8007         tree got deeper.  Another second or two speedup for bug #347238.
8009 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
8011         * Control.cs: Avoid setting a parent (and more importantly, updating
8012         the zorder of all its children) if the parent is already correct in
8013         WmShowWindow.  Decreases the startup time of the test case on bug
8014         #347238 from 35 seconds to 11 seconds.
8016 2007-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8018         * X11Dnd.cs: When the dnd operation has started and we are 
8019         in the dnd loop, don't dispatch either WM_LBUTTONUP nor WM_RBUTTONUP.
8020         This is done to match .Net, which doesn't send those messages after
8021         dnd operation was completed/cancelled.
8022         Fixes #349922.
8024 2007-12-27  Jonathan Pobst  <monkey@jpobst.com>
8026         * ToolStrip.cs: Previous change should be != null, not == null.
8027         Thanks Gert!
8029 2007-12-27  Jonathan Pobst  <monkey@jpobst.com>
8031         * ToolStrip.cs: Guard against an NRE after ItemClicked is called, the
8032         user may have moved the mouse off the current item during the event.
8034 2007-12-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8036         * ListView.cs: In ItemControl.ItemsMouseMove, try to avoid
8037         calling GetItemAt for every MouseMove event by also taking into
8038         account whether any mouse button is pressed (probably dragging); 
8039         if so, we can call GetItemAt, and if not, try to not call it 
8040         (GetItemAt can be quite expensive when used with a large number of items).
8042 2007-12-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8044         * ListView.cs: Implement -finally- support for dnd, by calling
8045         OnItemDrag as needed. Also, remove the dnd TODO, and add myself to the
8046         authors list ;-).
8047         * ListViewInsertionMark.cs: Implement NearestIndex method, by doing a
8048         simple calculation of distances for all the items in the owner
8049         listview.
8051 2007-12-21  Geoff Norton  <gnorton@novell.com>
8053         * XplatUICarbon.cs:  Ensure that we create WindowMapping handles
8054         for windows that are originally created as invisible.  Fixes missing
8055         main window in paint-mono.
8057 2007-12-21  Geoff Norton  <gnorton@novell.com>
8059         * XplatUICarbon.cs:  Register our D&D handler.  Register our custom
8060         subclass handler for com.novell.mwfview subclassing HIView.  Implement
8061         Pasteboard and Dnd methods.
8063 2007-12-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8065         * ListBox.cs: When we got focus, give focus to first item if there
8066         wasn't any pervious focused item. Also update navigation to depend on
8067         SelectedIndex rather than FocusedItem, just as .Net does.
8068         Fixes #349174.
8070 2007-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8072         * ListBox.cs: Both FindString and FindStringExact methods must do an
8073         case insensitive search, should allow the last valid index to be
8074         passed in the overload taking an initial index, and should also
8075         continue searching from the top back to the specified index when it
8076         reaches the bottom.
8078 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
8080         * TextControl.cs: Apply patch from Luke Page that fixes a scrolling
8081         redraw issue, and allows RichTextBox to draw colored text even while
8082         disabled or readonly.
8084 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
8086         * RichTextBox.cs, TextBoxBase.cs: Apply patch from Luke Page that
8087         disallows cut/paste in a readonly textbox, adds support for Shift-Insert,
8088         and doesn't grey text in a disabled RichTextBox.
8090 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
8092         * RichTextBox.cs: Apply patch from Luke Page that adds better support
8093         for many RTF commands: quad alignment, separate formatting for blocks
8094         inside groups, and ParDef support.  Makes the test case from bug #324589
8095         look much better.
8097 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
8099         * LineTag.cs: Fix an error in the new Draw method that caused
8100         a crash when rendering the document on bug #324589.
8102 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
8104         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs,
8105         TextControl.cs: Apply patch from Luke Page that adds support
8106         for URL links in RichTextBox.
8107         [Fixes enhancement #342516]
8109 2007-12-18  Everaldo Canuto  <ecanuto@novell.com>
8111         * MenuItem.cs: When cloning menuitem clone also name and tag properties for
8112         2.0 profile. Thanks Ernesto Carrea and Luke Page. Fixes bug #340289.
8114 2007-12-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8116         * ListBox.cs: When a key gets pressed, try to find a string
8117         if the key is a character or a digit.
8118         Fixes #343971.
8120 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
8122         * TableLayoutPanel.cs: Remove some unused variables.
8124 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
8126         * DateTimePicker.cs: Commit patch from Luke Page that ensures
8127         we don't end up at an invalid date when we click the up/down
8128         spinner to change the month or year.  Fixes bug #348682.
8130 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
8132         * Application.cs: Calling Exit in 2.0 should chain to the
8133         Exit (CancelEventArgs) version so it can be cancelled.
8134         * Form.cs: Create a flag to allow raising the Closing
8135         events to be skipped.  We raise them once in Application.Exit
8136         and don't want to raise them again when the Form is actually
8137         closed.  [Fixes bug #349073]
8139 2007-12-16  Jonathan Pobst  <monkey@jpobst.com>
8141         * ToolStripDropDown.cs: Guard against an NRE when there
8142         hasn't been a mainform set in the application context.
8143         [Fixes bug #349108]
8145 2007-12-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8147         * ListBox.cs: When SetBoundsCore gets called, besides
8148         calling UpdateScrollBars, update the value of
8149         last_visible_index, since we could need to show more items
8150         than before, and we need to let the paint routines know that.
8151         Fixes #344445.
8153 2007-12-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8155         * ListView.cs: Add DesignerSerializationVisibility attribute to
8156         InsertionMark property.
8157         * ListViewItem.cs: Add same attribute to Position property.
8159 2007-12-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8161         * ListViewItem.cs: .ctor (SerializationInfo, StreamingContext)
8162         is 2.0 only.
8164 2007-12-14  Jonathan Pobst  <monkey@jpobst.com>
8166         * ThemeWin32Classic.cs: Don't draw the background on a
8167         flat button if there is a background image.
8168         [Fixes bug #348649]
8170 2007-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8172         * ListBox.cs: If we remove the item currently selected,
8173         remove it not only from SelectedItems, but also
8174         resetting selected_index. Moreover, set focused_item to Items.Count - 1 if 
8175         the items count decreased and focused_item has bigger value than that.
8177 2007-12-13  Jonathan Pobst  <monkey@jpobst.com>
8179         * Control.cs: Perform our layout after we resize ourselves
8180         if we had to adjust our AutoSize.  Missed commit for bug
8181         #346246.
8183 2007-12-13  Jonathan Pobst  <monkey@jpobst.com>
8185         * TableLayoutPanel.cs: Override GetPreferredSizeCore so
8186         we can provide an implementation of AutoSize.
8187         [Fixes bug #346246]
8189 2007-12-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8191         * ListBox.cs: Add the internal overload Sort (bool paint),
8192         to indicate whether we actually need a paint or we will
8193         call Refresh ourselves. This way we don't request a paint
8194         _before_ having an updated and valid layout.
8195         Fixes #347233.
8197 2007-12-12  Andreia Gaita <avidigal@novell.com>
8199         * XPlatUIX11.cs: Send paint messages when updating a systray icon
8200         * NotifyIcon.cs: Invalidate the window before doing a systray change so it is
8201         properly invalidated. 
8202         Fixes #324237
8204 2007-12-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8206         * ListViewItem.cs: When using a .ctor taking a ListViewGroup,
8207         don't simply assign it to our internal group field, but instead 
8208         use our Group property, which should do all the neccessary work
8209         required to support groups. Fixes an issue reported to me (mail) by a 
8210         guy using this new feature.
8212 2007-12-11  Jonathan Pobst  <monkey@jpobst.com>
8214         * Control.cs: Use Scale instead of ScaleControl to ensure the
8215         whole hierarchy gets scaled.
8216         [Fixes bug #347282]
8218 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
8220         * DateTimePicker.cs: Don't set the internal MonthCalendar's
8221         Parent property.  Doing this causes the control to be hosted by
8222         the Form instead of being a popup window.
8223         [Fixes bug #347665]
8225 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
8227         * ToolStripItemCollection.cs: If we try to insert a ToolStripItem
8228         at an index higher than Count, just use Add instead of Insert.
8229         [Fixes bug #347669]
8231 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
8233         * ThemeWin32Classic.cs: Don't draw a PictureBox's background in
8234         DrawPictureBox, this is handled by Control.PaintBackground.
8235         [Fixes bug #347276]
8237 2007-12-10  Everaldo Canuto  <ecanuto@novell.com>
8239         * MenuAPI.cs: When process menu keys return true by default only if menu is
8240         active. Fixes bug #342892.
8242 2007-12-09  Andreia Gaita <avidigal@novell.com>
8244         * Control.cs: check if windows are actually mapped before
8245         trying to zorder. Fixes #342509, #346955
8247 2007-12-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8249         * ListView.cs:
8250         * ListViewInsertionMark.cs:
8251         * ThemeWin32Classic.cs: Implement the drawing side of the
8252         new 2.0 ListView.InsertionMark property.
8254 2007-12-07  Jonathan Pobst  <monkey@jpobst.com>
8256         * CurrencyManager.cs: Silence some debug spew.
8258 2007-12-07  Geoff Norton  <gnorton@novell.com>
8259         
8260         * Hwnd.cs: Refactor GetClippingRectangles to suppose returning the
8261         masks for our children as well as siblings to avoid having to query
8262         Quartz for this information.
8263         * XplatUICarbon.cs: Implement a delegate based system to pass
8264         information to System.Drawing.  Implement Async methods.  Remove
8265         the hack for the resize thumb and imlpement a transparent Grow Box.
8266         Rework the messaging system to proplery create window's and messages,
8267         fixes TabControl.
8269 2007-12-06  Andreia Gaita <avidigal@novell.com>
8271         * X11Keyboard.cs: Use Xutf8LookupString to support international 
8272         characters under alternate codepages. Patch from #340878
8274 2007-12-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8276         * ListView.cs: When doing layout computations, set position in the
8277         ListView instances (we cache the position just as .Net does).
8278         * ListViewItem.cs: New internal setter method for Position. Also set
8279         position field as also available in 1.1, since we are going to use it
8280         now in the common case.
8282 2007-12-06  Andreia Gaita <avidigal@novell.com>
8284         * Control.cs: When removing controls, get the actual container
8285         to notify about active control changes. Fixes 341314.
8287 2007-12-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8289         * ListViewItem.cs: Forgot to add Font to our serialization stuff.
8291 2007-12-05  Andreia Gaita <avidigal@novell.com>
8293         * Control.cs: When updating the zorder, ignore windows that are not
8294         mapped. Fixes #342509
8296 2007-12-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8298         * ListViewItem.cs: Actually implement serialization on this class.
8300 2007-12-05  Gert Driesen  <drieseng@users.sourceforge.net>
8302         * LinkLabel.cs: Fixed paramname of ArgumentNullException in ctor of
8303         LinkCollection. Spaces to tabs, and removed extra tabs.
8305 2007-12-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8307         * XplatUIX11.cs: Make toolwindows' decorations show up without causing any
8308           tests to fail (hopefully).
8310 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
8312         * ToolStripDropDownMenu.cs: Fill in AffectedBounds when drawing
8313         the image margin so custom renderers can correctly place it.
8315 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
8317         * StatusStrip.cs: Fill in AffectedBounds when drawing the grip
8318         so custom renderers can correctly place it.
8320 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
8322         * Application.cs: Let WM_CHAR messages flow through to controls
8323         hosted in Strips.  [Fixes bug #343972]
8325 2007-12-02  Jonathan Pobst  <monkey@jpobst.com>
8327         * ToolStripManager.cs: Guard against an NRE I ran into.
8329 2007-12-02  Jonathan Pobst  <monkey@jpobst.com>
8331         * LinkLabel.cs: Apply patch from George to fix bug 344012.  If
8332         a Link is manually added to the Links collection, we need to set
8333         its owner, so it can invalidate properly.
8334         [Fixes bug #344012]
8336 2007-11-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8338         * ListView.cs: When changing ListViewItem.Position (which calls
8339         ListView.ChangeItemLocation), invalidate not only the area
8340         corresponding to the main item, but also to the area occupied
8341         by the items being moved.
8343 2007-11-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8345         * ListView.cs: When changing the position of a given item,
8346         don't use item bounds, but item areas (which includes the item spacing
8347         between them). Also, use first/last position if the requested
8348         position is outside bounds (as .Net does). Invalidate the previous and
8349         new bounds. Finally, in ItemControl.ItemsMouseDown use the actual item
8350         in a specific position, instead of directly accessing Items collection
8351         (this is done to get the right item - remember an Item can have a
8352         different position in the grid than in the Items collection).
8354 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
8356         * MessageBox.cs: Calculate text area instead of just top left, this rect 
8357         area will be used in DrawString. Fixes bug #343364.
8359 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
8361         * MessageBox.cs: Calculate max amount for text area width, it must be 60% of
8362         screen width. Partially fixes bug #343364.
8364 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
8366         * NotifyIcon.cs: Remove duplicated code before call realculate and put this
8367         code inside recalculate, it makes code more simple.
8369 2007-11-22  Everaldo Canuto  <ecanuto@novell.com>
8371         * NotifyIcon.cs: When recalculate icon verify if icon is active to decide
8372         between update or add icon. Fixes bug #324344.
8374 2007-11-21  Andreia Gaita <avidigal@novell.com>
8376         * XPlatUIX11.cs: Do not treat tool windows as if they have no 
8377         window manager, since that stretches the drawing area to include
8378         the window decorations, and they get hidden. Reverts r84444 and fixes
8379         #335849 and #342790 (mdi and pdn3 regression)
8381 2007-11-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8383         * ListView.cs: When setting focused item, try to give focus to the
8384         previous one _only_ if the previous one remains valid. 
8385         Fixes #342504.
8387 2007-11-20  Jonathan Pobst  <monkey@jpobst.com>
8389         * Application.cs: Revert r89650, as it broke a common case to fix
8390         an obscure case.  Fixes bug #342606.
8392 2007-11-20  Everaldo Canuto  <ecanuto@novell.com>
8394         * ThemeWin32Classic.cs: Fix extra space on end of tooltip.
8396 2007-11-20  Everaldo Canuto  <ecanuto@novell.com>
8398         * ThemeWin32Classic.cs: Fix tooltip text align removing horizontal 
8399         alignment. [Fixes #324228]
8401 2007-11-19  Jonathan Pobst  <monkey@jpobst.com>
8403         * ToolStrip.cs: Handle flow layout in GetPreferredSize to fix PDN3.
8404         [Fixes bug #342123]
8406 2007-11-19  Everaldo Canuto  <ecanuto@novell.com>
8408         * Form.cs: Check for empty Text before assign to cp.Caption in CreateParams
8409         it prevent problems when empty captions. [Fixes #342141]
8411 2007-11-19  Jonathan Pobst  <monkey@jpobst.com>
8413         * Label.cs: Use Size instead of None.  Fixes bug #342077.
8415 2007-11-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8417         * ListViewItem.cs: Implement 2.0 FindNearestItem method.
8419 2007-11-17  Jonathan Pobst  <monkey@jpobst.com>
8421         * MenuStrip.cs: Guard against a NRE when a MdiWindowItem is set
8422         but there isn't a MdiContainer.
8423         [Fixes bug #342358]
8425 2007-11-17  Jonathan Pobst  <monkey@jpobst.com>
8427         * TextControl.cs: Don't recalculate document if the recalc_start and
8428         recalc_end hasn't changed.
8429         [Fixes bug #342505]
8431 2007-11-17  Gert Driesen  <drieseng@users.sourceforge.net>
8433         * DataGridViewTextBoxCell.cs: Removed CWL.
8435 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8437         * ListView.cs: Implement 2.0 SearchForVirtualItem event support.
8439 2007-11-16  Jonathan Pobst  <monkey@jpobst.com>
8441         * TextControl.cs: Missed some code for bug 341534 to trigger a
8442         recalculation when the font changes.
8444 2007-11-16  Andreia Gaita <avidigal@novell.com>
8446         * Control.cs: When updating the zorder, check if the child to update is
8447         the same control that is set to always be on top (i.e., scrollbars), and 
8448         just put it on top directly. Fixes BadMatch error on pdn3
8450 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8452         * ListView.cs: Throw the needed exceptions for FindNearestItem.
8454 2007-11-16  Jonathan Pobst  <monkey@jpobst.com>
8456         * Control.cs: Don't perform a new layout when a label changes its text,
8457         cause label handles its own autosizing.
8458         [Fixes bug #342077]
8460 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8462         * ListView.cs: Implement 2.0 FindNearestItem methods.
8464 2007-11-15  Jonathan Pobst  <monkey@jpobst.com>
8466         * ToolStripPanel.cs: Make Join at least add the control to the panel,
8467         even if the rest of what Join does isn't supported.  Add some more
8468         support for vertical toolbars.
8469         * ToolStripPanelRow.cs: Add some more support for vertical toolbars.
8470         [Fixes the application breaking parts of bug #341998]
8472 2007-11-15  Jonathan Pobst <monkey@jpobst.com>
8474         * ToolStripItem.cs: When determining if we have a check/image margin,
8475         we need to look at ShowCheckMargin as well as ShowImageMargin.
8477 2007-11-15  Geoff Norton  <gnorton@novell.com>
8479         * XplatUIOSX.cs: Rename to...
8480         * XplatUICarbon.cs: and refactor all event handling out to the new event handling
8481         system in System.Windows.Forms.CarbonInternal.  Lots of code cleanup as well.
8483 2007-11-15  Jonathan Pobst  <monkey@jpobst.com>
8485         * KeysConverter.cs: The default values should be an array of Keys, not
8486         strings.  Also, the array has more values for 2.0.
8487         [Fixes bug #341851]
8489 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
8491         * Application.cs: Change ExecutablePath to use 
8492         Process.GetCurrentProcess ().MainModule.FileName instead of Assembly.GetEntryAssembly.
8493         [Fixes bug #323552]
8495 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
8497         * LineTag.cs: Don't attempt to draw '\r', treat it like it doesn't exist.
8498         When measureing CR or LF, use /u000D instead of /u0013. (Hex, not decimal.)
8499         * TextControl.cs: Fix a case in GetLineEnding where a \n before a \r would
8500         be ignored.  Create a new GetLineEnding that can specify which types of
8501         line endings to look for.  On Insert, only create new lines for \n and \r\n.
8502         [Fixes bug #324274]
8504 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
8506         * TextBoxBase.cs: As we loop through each line changing the font, tell
8507         the document that the line needs to be recalculated.  Fixes bug #341534.
8509 2007-11-13  Jonathan Pobst  <monkey@jpobst.com>
8510         [Another round of refactoring]
8511         * Line.cs: Add DeleteCharacters.
8512         * LineTag.cs: Add Delete.
8513         * TextBoxBase.cs: Update to use new methods.
8514         * TextControl.cs: Refactor the Delete* methods.
8516 2007-11-13  Everaldo Canuto  <ecanuto@novell.com>
8518         * Win32DnD.cs: Implement Win32 Drop files, thank you Srikanth Madikeri for
8519         the patch. [Fixes #324856]
8521 2007-11-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8523         * ListView.cs:
8524         * ListViewItem.cs: Add an initial implementation of
8525         2.0 ListViewItem.Position getter.
8527 2007-11-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8529         * ListView.cs: Add a reordered_items_indices array, to allow us
8530         to have a different sorting than that of Items (the sorting in Items
8531         could not match the actual sorting in screen). This is needed to
8532         implement a pair of 2.0 features.
8533         * ListViewItem.cs: Add a DisplayIndex property to keep track of the
8534         actual position in the ListView grid, since it could have a position
8535         different than its Index (position in ListViewItemCollection). 
8537 2007-11-09  Jonathan Pobst  <monkey@jpobst.com>
8539         * Label.cs: Add StringFormatFlags.LineLimit.  This tells DrawString to
8540         not draw partial lines.
8541         * LinkLabel.cs: Change FormatFlags setter from = to |= so that the
8542         LineLimit flag from the base is preserved.
8543         Fixes the windows part of bug #338965.
8545 2007-11-09  Jonathan Pobst  <monkey@jpobst.com>
8547         * TextBoxBase.cs: Move handling of the enter key from KEYDOWN to CHAR
8548         so that it can be canceled in KeyPress.
8549         Fixes bug #340078.
8551 2007-11-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8553         * ListView.cs: In ItemControl, reset mouse-handling related
8554         fields even if we dont' have items (we still should reset them when
8555         we had items but then called Items.Clear). Partially based in a patch
8556         by George Giolfan.
8557         Fixes #338399.
8559 2007-11-08  Gert Driesen  <drieseng@users.sourceforge.net>
8561         * Application.cs: In ProductVersion first try AssemblyFileVersion
8562         before falling back to assembly version. Fixes bug #339787.
8564 2007-11-08  Andreia Gaita <avidigal@novell.com>
8566         * HtmlElement.cs: Implement InnerText setter.
8567         * WebBrowserBase.cs: Implement Navigated event support.
8568         Add flag to track when the browser "document" is ready to be retrieved.
8569         * WebBrowser.cs: Implement CanGoBack, CanGoForward, Title, Url.
8570         Make sure browser document is ready before retrieving it.
8571         Clean up cached objects (document) when moving to a new page through
8572         any of the navigation methods.
8573         Use the new Mono.WebBrowser.INavigation interface to control navigation.
8574         Implement OnNavigated event.
8576 2007-11-07  Jonathan Pobst  <monkey@jpobst.com>
8578         * ThemeWin32Classic.cs: Don't draw the background in DrawLabel or
8579         DrawLinkLabel, this is handled by OnPaintBackground.
8580         Fixes bug #339565, part II.
8582 2007-11-07  Andreia Gaita <avidigal@novell.com>
8584         * Control.cs: Revert r88915. Selecting text on a textbox depends on
8585         getting a Select call on click, so this call needs to be here for now.
8586         Unfixes #325809
8588 2007-11-07  Geoff Norton  <gnorton@novell.com>
8590         * OSXStructs.cs: Add the kEventClassApplication constants.
8591         * XplatUIOSX.cs: Send a WM_LBUTTONDOWN to the Grab window when the 
8592         application is deactivated otherwise Menu overlays linger on top of
8593         other application windows.
8595 2007-11-07  Geoff Norton  <gnorton@novell.com>
8597         * XplatUIOSX.cs: Dont throw an exception on OverrideCursor as we
8598         dont support cursors yet anyways.  This allows Reflector to run.
8600 2007-11-07  Geoff Norton  <gnorton@novell.com>
8602         * XplatUIOSX.cs: Implement DragSize.
8604 2007-11-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8606         * ListView.cs: When we receive a WM_LBUTTONDOWN message in
8607         ItemControl, request the focus, as .Net does. This is needed after 
8608         Control does not request focus anymore when it receives a
8609         WM_LBUTTONDOWN.
8611 2007-11-06  Jonathan Pobst  <monkey@Jpobst.com>
8613         * Label.cs: Make DrawImage internal so it can be called from Theme code.
8614         Remove the DrawImage call from OnPaint.
8615         * LinkLabel.cs: Remove the DrawImage call from OnPaint.
8616         * ThemeWin32Classic.cs: Call DrawImage after we paint the background,
8617         but before we draw the text for DrawLabel and DrawLinkLabel.
8618         Fixes bug #339565.
8620 2007-11-05  Andreia Gaita <avidigal@novell.com>
8622         * Control.cs: Remove select call on click. Fixes #325809
8624 2007-11-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8626         * ListViewItem.cs: Add 2.0 Position property getter.
8628 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8630         * ListView.cs: Add 2.0 BackgroundImageTiled property.
8631         Also, to make it work properly, change item's BackColor and
8632         BackgroundImageLayout as needed.
8633         * ThemeWin32Classic.cs: Don't fill any background rectangle 
8634         in ListView.ItemControl when drawing items; just let the Control
8635         base implementation fill it.
8637 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8639         * ListViewGroup.cs: Adda TypeConverter attribute for this class,
8640         as well as adding a custom 'dummy' Converter, as .net does.
8642 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8644         * PropertyGridView.cs: When clicking drop-down button,
8645         select an index in the listbox only if our standard values collection 
8646         has one or more items.
8648 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8650         * ListViewItem.cs: Add a DefaultValue attribute to 2.0 IndentCount
8651         property.
8653 2007-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
8655         * PropertyGrid.cs: In PropertySort, update the toolbar buttons even if
8656         the value is not changed. This ensure a pushed button remains in that
8657         state when clicked again. When switching the value of PropertySort
8658         between Categorized and CategorizedAlphabetical, do not update the
8659         grid items and do not fire a PropertyChangedEvent. When clicking the
8660         sorting buttons, do not modify the PropertySort value when switching
8661         between Categorized and CategorizedAlphabetical but only update the
8662         button state.
8664 2007-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
8666         * Label.cs: Make AutoEllipsis internal on 1.0 profile. Code
8667         formatting.
8668         * PropertyGrid.cs: Also put Categorized button in pushed state when
8669         PropertySort is CategorizedAlphabetical. Set AutoEllipsis to true
8670         for help description label.
8672 2007-11-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8674         * ListView.cs: When calculating the biggest item for a given column,
8675         take into account 2.0 LIstViewItem.IndentCount, since it directly affects
8676         the item's width.
8678 2007-11-03  Gert Driesen  <drieseng@users.sourceforge.net>
8680         * PropertyGrid.cs: Fixed default value for PropertySort. Allow invalid
8681         value for PropertySort on 1.0 profile. PropertySortChanged event
8682         should only be fired on 2.0 profile. Fixed NullReferenceException
8683         in UpdateSortLayout when PropertyGrid contains no items.
8685 2007-11-02  Jonathan Pobst  <monkey@jpobst.com>
8687         * MessageBox.cs: Patch from George to implement MessageBoxDefaultButton.
8688         [Fixes bug #338554]
8690 2007-11-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8692         * ListViewItem.cs: Implement 2.0 IndentCount property.
8694 2007-11-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8696         * X11Dnd.cs: When sending status in a dnd operation, compare current
8697         effect with the 'allowed' field instead of 'drag_data.Allowed', since
8698         the later is only created when a Winforms application is both the
8699         source and the target, but not when we are the target only.
8700         Fixes part of #324251.
8702 2007-11-01  Geoff Norton  <gnorton@novell.com>
8704         * XplatUI*.cs: Add GetPreviousWindow utility method to return windows in
8705         order of Z-Order.
8706         * Hwnd.cs: Add initial implementation of GetClippingRectangles to clip sibling 
8707         children out of the drawing view on mac.
8708         * XplatUIOSX.cs: Code cleanup.  Handle more window grab cases.  Fix SetParent
8709         to handle the orphan and invisible case (1/2 fixes TabStrip drawing in FormsTest)
8710         
8711 2007-11-01  Jonathan Pobst  <monkey@jpobst.com>
8713         * ToolStrip.cs: Don't process MouseUp for a ToolStripControlHost, clicking
8714         on the non-hosted-control part of it shouldn't do anything.
8715         Fixes part of bug #327498.
8717 2007-11-01  Andreia Gaita <avidigal@novell.com>
8719         * WebBrowserBase.cs: revert previous change, resize can be called anytime
8721 2007-11-01  Jonathan Pobst  <monkey@jpobst.com>
8723         * Application.cs: When a toolstrip has the keyboard input loop, let messages
8724         it does not use flow through to controls that are hosted in menus.
8725         Same with mouse clicks.
8726         * Form.cs: Don't close all menus on click if the click is on a
8727         control hosted in a menu.
8728         Fixes part of bug #327498, and part of bug #325969.
8730 2007-10-31  Andreia Gaita <avidigal@novell.com>
8732         * WebBrowserBase.cs: Only call resize on gluezilla when it is active
8734 2007-10-31  Jonathan Pobst  <monkey@jpobst.com>
8736         * TextBoxBase.cs: Use int.MaxValue for MaxLength instead of magic number.
8737         Addresses an issue raised in bug #336218.
8739 2007-10-30  Jonathan Pobst  <monkey@jpobst.com>
8741         * Form.cs: Patch from George that moves the conversion of ClientSize->Size
8742         for PreferredSize from OnLayout to PreferredSize.  Fixes bug #325242.
8744 2007-10-30  Andreia Gaita <avidigal@novell.com>
8746         * ContainerControl.cs: Check if the active control is a
8747         child of a removed control and update active_control accordingly.
8748         Fixes #329718
8750 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
8752         * DateTimePicker.cs: Throw ArgEx if the Value is set outside the MinDate
8753         or the MaxDate.  Fixed bug #337693.
8755 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
8757         * XplatUIWin32.cs: Always call SetWindowPos with SWP_FRAMECHANGED flag
8758         after calling SetWindowLong for a form, to force an immediate NC refresh.
8759         Fixes first part of bug #325150.
8761 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
8763         * ComboBox.cs: Don't try to resize the listbox when we are DropDownStyle
8764         simple.  Fixes the last part of bug #322668.
8766 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
8768         * MessageBox.cs: If the owner is TopMost, then the MessageBox form
8769         needs to be TopMost as well, or else the MessageBox is under the form.
8770         Patch by George fixes bug #325300.
8772 2007-10-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8774         * X11Dnd.cs: When starting a new drag operation, reset the static
8775         'dropped' field to false (previously the implementation didn't reset
8776         it and got confused after the first drag).
8777         Fixes #325071.
8779 2007-10-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8781         * PropertyGrid.cs: When PropertySort changes, re-organize the grid
8782         items instead of re-creating them all. For this purpose we now cache
8783         both CategoryGridEntry items and the GridEntries for the main object's
8784         properties.
8785         * GridItem.cs: Make SetParent method abstract.
8786         * GridEntry.cs: Override the SetParent method (already there, but now
8787         we override it).
8788         Fixes #324866.
8790 2007-10-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8792         * PropertyGridView.cs: Set the plus/minus bounds of a grid item
8793         depending on its depth (as .Net does). Update the needed values in
8794         MouseDown handler. Also draw the plus/minus rect after the label,
8795         so we don't draw on top of it.
8797 2007-10-24  Everaldo Canuto  <ecanuto@novell.com>
8799         * MenuAPI.cs: Return true as default in ProcessKeys to prevent keys to be
8800         processed by forms or controls when menu is active. [Fixes #333548]
8802 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
8804         * ToolStripItem.cs: Don't focus a ToolStripControlHost on Select of the
8805         parent doesn't have focus.  This was causing ToolStripTextBoxes to take
8806         focus on mouse over.
8808 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
8810         * TextControl.cs: Code cleaning, simplifying.
8812 2007-10-24  Geoff Norton  <gnorton@novell.com>
8814         * XplatUIOSX.cs: Route mouse events to the grab hwnd on mouse down as well.
8815         * XplatUIStructs.cs: Fix the ToString method of POINT and MSG.
8817 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
8819         * TextBoxBase.cs: If the user sets maxlength to 0, it should mean
8820         the cap is maxvalue, not actually 0.  [Fixes bug #336218]
8822 2007-10-24  Andreia Gaita <avidigal@novell.com>
8824         * SendKeys.cs: apply jpobst's patch to bug #332409
8826 2007-10-23  Andreia Gaita <avidigal@novell.com>
8828         * TextBoxTextRenderer.cs: Lower bounds max size to Int16.MaxValue, the 
8829         Windows 2000 gdi DrawText call doesn't draw if it's higher than that
8830         for some reason
8832 2007-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8834         * PropertyGridView.cs: If a property has an UIEditor available,
8835         make the drop-down/editor button available only if the property
8836         is _not_ read only.
8838 2007-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8840         * PropertyGridView.cs: Don't make the grid item textbox 
8841         editable when a drop-down control is available, but 
8842         CanConvertFrom (typeof (string)) is false or GetStandardValuesExclusive () is
8843         true. The same bur the color of the grid item value's label.
8845 2007-10-22  Geoff Norton  <gnorton@novell.com>
8847         * OSXStructs.cs: Add the needed constants for keyboard modifiers.
8848         * OSXKeyboard.cs: Initial support for keyboard and limited modifiers.
8849         * XplatUIOSX.cs: New reversible frame support.  Wire in the new keyboard
8850         driver.  Padd the bottom of all real windows so the resize thumb doesn't
8851         obscure scroll/status bars.
8853 2007-10-22  Jonathan Pobst  <monkey@jpobst.com>
8855         * WindowsFormsSection.cs: Implement.
8857 2007-10-22  Everaldo Canuto  <ecanuto@novell.com>
8859         * MdiClient.cs: Maximize new active mdi child when a maximized child is 
8860         closed see #325434 patch.
8862 2007-10-22  Everaldo Canuto  <ecanuto@novell.com>
8864         * MdiClient.cs: Fix remaining issues from layout vertical and horizontal,
8865         see #325434 patch.
8867 2007-10-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8869         * PropertyGridView.cs: When showing the textbox for a grid item,
8870         have two local variables to store the read-only and non-editable
8871         status of a grid item (we were previously using just one variable
8872         to do this, when actually they are slightly different).
8873         Fixes part of #325023.
8875 2007-10-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8877         * PropertyGridView.cs: When showing a drop-down list, try to get the
8878         values using TypeConverter.ConvertTo (to convert to a string). Fixes
8879         part of #325023.
8881 2007-10-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8883         * PropertyGrid.cs: When updating a property and populating sub grid
8884         items, remove the previous ones, and invalidate the specific area.
8885         * PropertyGridView.cs: A new InvalidateBelowGridItem to invalidate the
8886         area behind a grid item.
8887         * GridItemCollection.cs: Add an internal Clear method, to allow us to
8888         clean the items if needed (specially for controls implementing 
8889         ICustomTypeDescriptor and returning a variable number of properties).
8890         Fixes #324865.
8892 2007-10-19  Jonathan Pobst  <monkey@jpobst.com>
8894         * TextControl.cs: Clean up and document the Insert function.
8896 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
8898         * TextControl.cs: Make sure we know our start point for updating the view
8899         in ReplaceSelection.  Fixes an issue where pasting multiline text wouldn't
8900         update the view.
8902 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
8904         * ListView: Couple of corcompare fixes.
8906 2007-10-17  Geoff Norton  <gnorton@novell.com>
8908         * XplatUIOSX.cs: Implement support for window icons in the dock.  Set
8909         the title caption of real window.
8911 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
8913         * ErrorProvider.cs: Add the error provider's internal window to a 
8914         containercontrol when the parent changes.  [Fixes bug #329714]
8916 2007-10-17  Geoff Norton  <gnorton@novell.com>
8918         * XplatUIOSX.cs: Implement ScrollWindow.  Properly create TOOLWINDOWs.
8919         When we make a new window; restore the old active window - fixes dialogs.
8921 2007-10-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8923         * PropertyGridView.cs: Look for RefreshPropertiesAttribute
8924         when modifying a property, and if found then invalidate as
8925         requested.
8926         Fixes part of #324865.
8928 2007-10-17  Geoff Norton  <gnorton@novell.com>
8930         * XplatUIOSX.cs: Re-enable the native driver on the Mac.  This is still
8931         highly experimental.  Fixed coordinate translation.  Fixed window locations.
8932         Initial support for clipping. Implemented NC areas and menus.  Support for
8933         launching from command line from Will Johansson (wjohansson@atacomm.com).
8934         * OSXStructs.cs: Add ProcessSerialNumer (Patch from Will Johansson
8935         wjohansson@atacomm.com)
8936         * Hwnd.cs: Add some internal structures for tracking Mac cursors.
8937         Hwnds now track the existence of all of their children for Mac clipping.
8938     * XplatUI.cs: Re-enabled the native driver on the Mac.
8940 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
8942         * Line.cs: Move the InsertString function to here.
8943         * TextControl.cs: Cleanup some duplicate code, move some InsertString
8944         functionality to Line.
8946 2007-10-17  Geoff Norton  <gnorton@novell.com>
8948         * ComboBox.cs: Destroy the popup after hiding it.  Fixes #322582
8950 2007-10-16  Gert Driesen  <drieseng@users.sourceforge.net>
8952         * ButtonBase.cs: Fixed IsDefault to use assigned value instead of
8953         always setting value to true.
8954         * Form.cs: When changing AcceptButton, notify new and original button.
8956 2007-10-16  Jonathan Pobst  <monkey@jpobst.com>
8958         * Form.cs: Guard against an NRE when the user sets the AcceptButton to
8959         a custom control that implements IButtonControl instead of an actual
8960         button.  [Fixes bug #334244]
8962 2007-10-15  Everaldo Canuto  <ecanuto@novell.com>
8964         * Form.cs: Change SelectActiveControl to internal, we need to call it in
8965         MdiWindowManager.
8966         
8967         * MdiWindowManager.cs: In RaiseActivated call SelectActiveControl to select
8968         active control when activate a new mdi window.
8969         
8970         [Fixes bug #330495]
8972 2007-10-15  Everaldo Canuto  <ecanuto@novell.com>
8974         * ComboBox.cs: Dont implicit add listbox_ctrl on OnHandleCreated because it
8975         is already added.
8976         [Fixes bug #333617]
8978 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
8980         * TextControl.cs: When SuspendRecalc is first called, reset the recalc_start
8981         to MaxValue and recalc_end to MinValue.  Currently, recalc_start is always 1,
8982         so we always recalculate the whole document instead of just the new part.
8983         [Fixes bug #325082]
8985 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
8987         * LineTag.cs: Fix a case where the GetCharIndex would not return 0
8988         when the mouse was to the left of the first character in the line.
8990 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
8992         * TextBox.cs, TextBoxBase.cs: When setting the document's password
8993         character, use the property instead of the variable so that the
8994         UseSystemPasswordChar property is taken into account.
8995         [Fixes bug #333748]
8997 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8999         * FolderBrowserDialog.cs: When a node is right clicked and the "New
9000         folder" contex menu appears, actually add the new folder to it, even
9001         if the node is not currently selected. Still use SelectedNode in case 
9002         there wasn't found a node under the pointer.
9003         Fixes #325452.
9005 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9007         * ListViewItem.cs: When retrieving the focused state, the index check
9008         should be done only when ListView is in virtualmode, as it is an
9009         expensive check for normal mode.
9011 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9013         * ListViewItem.cs: Make the focus state information be stored
9014         in the ListView, not in the items. This is done to match the MS
9015         behaviour for items that are not yet part of a ListView control;
9016         besides that, since just one item can be focused at the same time,
9017         we save a little space in our items.
9018         Fixes part of #331643.
9020 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
9022         * ComboBox.cs: When focus is lost, deselect the text. When setting
9023         text of control, select all text. Do not hide selection when control
9024         does not have focus. Fixes bug #333663.
9026 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
9028         * TextBoxBase.cs: On 2.0 profile, throw ArgumentOutOFRangeException
9029         instead of ArgumentException when SelectionLength is set to negative
9030         value. Added same check to SelectionStart. Code formatting.
9032 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
9034         * TextBoxBase.cs: Invalidate selection before changing SelectionLength
9035         or SelectionStart. Code formatting.
9037 2007-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9039         * TreeView.cs: drag_begin_x and drag_begin_y are now set to -1,
9040         indicating that there was not a previous drag-and-drop operation going
9041         on.
9042         Fixes part of #325071.
9044 2007-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9046         * X11Dnd.cs: When DragEventArgs.Effect is set to a value not part of
9047         AllowedEffect, don't let the drop operation happen. 
9048         Fixes #32580.
9050 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
9052         * TextRenderer.cs: Use GDI on Windows in both the 1.1 and 2.0 profiles.
9054 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
9056         * Line.cs, LineTag.cs: Guard against an exception when Document.Clear
9057         is called.
9059 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
9061         * Line.cs: Add a method that finds the tag that contains an x-coord.
9062         * LineTag.cs: Add a method that finds the character at an x-coord using
9063         a binary search, the old way was a linear search.
9064         * TextControl.cs: Change FindCursor to use the above new methods.
9066 2007-10-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9068         * DragEventArgs.cs: Allow Effect to have a non allowed value (a
9069         value different than AllowedEffect). This should be possible to
9070         indicate that dragging is not possible in some control/area.
9072 2007-10-11  Jonathan Pobst  <monkey@jpobst.com>
9074         * LineTag.cs: Encapsulate all variables with properties.  Calculate ascent/
9075         descent internally when font changes instead of outside code being responsible
9076         for setting it.
9077         * Line.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Use Tag properties
9078         instead of accessing internal variables.
9080 2007-10-09  Everaldo Canuto  <ecanuto@novell.com>
9082         * MdiClient.cs: Always call ArrangeIconicWindows before any arrangement and
9083         remove special treatment for ArrangeIcons since it is already arranged.
9085 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
9087         * TextBoxTextRenderer.cs: Draw takes a Color now instead of a Brush, as
9088         the Win32 backend uses Color.
9089         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
9090         Refactor to store a Color instead of a Brush for Color.
9092 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
9094         * Line.cs, LineTag.cs: Override GetHashCode to make a compiler warning go
9095         away.  I didn't realize I needed this when I refactored these earlier.
9097 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
9099         * LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Refactor to
9100         store a Color structure and use the ResPool for back color instead of
9101         holding onto brushes.
9103 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
9105         * TextControl.cs: Fix how we calculate the end of the tag we are drawing.
9106         [Fixes bug #325592]
9108 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
9110         * MonthCalendar.cs: When ShowWeekNumbers is changed, force the calendar
9111         to recalculate its size.  Fixes a part of bug #331052.
9113 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
9115         * NotifyIcon.cs: Set the correct mouse button when handling right mouse
9116         button.  Fixes a part of bug #331052.
9118 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
9120         * Form.cs: Trim NewLine before setting XPlatUI.SetText, and when setting
9121         the CreateParams.
9122         * ThemeWin32Classic.cs: Trim NewLine before drawing MDI children window
9123         decorations.
9124         [Fixes bug #330986]
9126 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
9128         * TextBoxTextRenderer.cs: Don't make this a static class, as static
9129         doesn't exist in 1.1.  (Thanks jb!)
9131 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
9133         * TextBoxTextRenderer.cs: Abstract text measuring and drawing to this
9134         class to allow us to use different backends on different platforms.
9135         Linux uses the current [Draw|Measure]String backend.  Windows uses
9136         the TextRenderer.[Draw|Measure]Text backend, which uses GDI instead
9137         of GDI+.  This leads to better looking text and more accurate measurements
9138         on Windows, fixing many of the reported issues.
9139         * Line.cs, LineTag.cs: Update to use TextBoxTextRenderer.
9141 2007-10-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9143         * FolderBrowserDialog.cs: When running on Windows,
9144         try to detect paths such "C:" and add Path.DirectorySeparatorChar,
9145         since we must match both "C:" and "C:\" forms. A little hackish, but
9146         works.
9147         Fixes #325247.
9149 2007-10-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9151         * ListView.cs: When calling EndEdit (after editing an item),
9152         create a new instance of LabelEditEventArgs to keep clean the fields
9153         in case we get a new call to BeginEdit; also do Application.DoEvents
9154         to have focus in synch. This is a fix similar to TreeView's #325244.
9156 2007-10-07  Andreia Gaita <avidigal@novell.com>
9158         * HtmlDocument.cs, HtmlElement.cs, WebBrowser.cs: Added dom support
9159         * WebBrowserBase.cs: Added dialog support, calling the
9160           WebBrowserDialogs classes for each specific dialog type.
9162 2007-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9164         * ListView.cs: When the last item is focused and is removed,
9165         move the focus to the previous item (in Items order). This is what MS
9166         does.
9167         Fixes #330415.
9169 2007-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9171         * ListView.cs: In ListViewItemCollection, make Remove call RemoveAt,
9172         instead of the opposite (RemoveAt call Remove). This is a better
9173         approach since we don't need to to a pair of traversals when using
9174         RemoveAt.
9176 2006-10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9178         * TreeView.cs: When Keys.Left is pressed, before trying to Collapse
9179         check that the node actually has nodes, and if not, move to the
9180         parent node instead. 
9181         Fixes #325265.
9183 2006-10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9185         * TreeView.cs: Move the previous change to the general case (to
9186         call Application.DoEvents in cases where the method was called by
9187         different places).
9189 2007_10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9191         * TreeView.cs: When calling EndEdit and we need to hide the textbox,
9192         call Application.DoEvents. This is neccessary when we get a call to
9193         BeginEdit from an AfterLabelEdit handler, because the focus always
9194         goes to the TreeView, even if we try to give it to our
9195         LabelEditTextBox. The call do Application.DoEvents seems to
9196         synchronize the focus, basically.
9197         Fixes #325244.
9199 2007-10-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9201         * TreeView.cs: When AfterLabelEdit event is fired, TreeNode.IsEditing
9202         should be false. This also removes some nasty recursive paths. Fixes
9203         part of #325244.
9205 2007-10-04  Everaldo Canuto  <ecanuto@novell.com>
9207         * MdiClient.cs: When cascade (layout) mdi window that is maximized, set the
9208         state to normal. Also resize window when cascading. Fixes #325433. 
9210 2007-10-04  Jonathan Pobst  <monkey@jpobst.com>
9212         * RichTextBox.cs: When SelectionColor is set to Color.Empty, use
9213         DefaultForeColor, as drawing empty colored lines isn't very useful.
9214         [Fixes the not drawn lines part of bug #324358]
9216 2007-10-04  Jonathan Pobst  <monkey@jpobst.com>
9218         * TextControl.cs: Move Line and LineTag classes into separate files to
9219         make things easier to find.
9220         * Line.cs, LineTag.cs: Bring coding standards up to Mono's guidelines.
9221         * RichTextBox.cs: Capitalize LineTag.Length property access.
9222         - This is purely an organizational/formatting change, no logic changed. -
9224 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
9226         * ThemeWin32Classic.cs: Do not show focus rectangle in radio buttons when
9227         text is empty.
9229 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
9231         * ThemeWin32Classic.cs: Do not show focus rectangle in checkboxes when
9232         text is empty.
9234 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
9236         * ComboBox.cs: On contructor use backgound_color instead of BackColor to
9237         prevent calling of OnBackColorChanged. Fixes #325321.
9239 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
9241         * TextBox.cs: When check enabled uses Enabled property instead of is_enabled
9242         because control can be disabled because owner is disabled.
9244 2007-10-02  Jonathan Pobst  <monkey@jpobst.com>
9246         * ComboBox.cs: For the 1.1 profile, the default SelectedText is
9247         string.Empty, test failed from previous change.
9249 2007-10-02  Jonathan Pobst  <monkey@jpobst.com>
9251         * TextBoxBase.cs: For the 1.1 profile, the default SelectedText
9252         is null, not String.Empty.  See bug #323038.
9254 2007-10-01  Jonathan Pobst  <monkey@jpobst.com>
9256         * TextControl.cs: Change the margins to match MS a little better.
9257         Still not perfect for X11 due to some DrawString differences, but
9258         is still an improvement over the old stuff.
9259         Partially fixes #324467.
9261 2007-09-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9263         * FolderBrowserDialog.cs: When using MyComputer as 
9264         RootFolder, let absolute paths be considered as valid ones. Also, use
9265         Path.DirectorySeparatorChar instead of Path.AltDirectorySeparatorChar,
9266         for Windows compatibility.
9267         Partially fixes #325247.
9269 2007-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9271         * FolderBrowserDialog.cs: Fix the recursive FindPathInNodes method.
9272         Also remove the stack.Count > 0 check in FBTreeView.SetSelectedNode
9273         method, since it causes the dialog to not select folders directly
9274         under the root path (when setting SelectedPath property).
9276 2007-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9278         * TreeNode.cs: When calling Expand/Collapse and need to call 
9279         ExpandBelow/CollapseBelow respectively, take into account
9280         partially visible nodes (previously Expanding/Collapsing
9281         a partially visible node in the bottom was not updating its +- sign).
9283 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9285         * TreeView.cs: When calling Expand on a TreeNode, and we need to
9286         expand nodes below (ExpandBelow), scroll the entire Viewport
9287         area if the node is above it and not visible (instead of scrolling
9288         the area from node's Bottom, which applies only when the node is
9289         visible).
9290         Fixes #325266.
9292 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9294         * TreeView.cs: When calling ExpandAll, set SelectedNode to the top
9295         node in the bottom area (as .Net does). This is done to preserve the
9296         scroll position when ExpandAll is called before handle is created for
9297         the 1.1 profile (bottom area, as opposed to top area in 2.0).
9298         Fixes #324103.
9300 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9302         * TreeView.cs: When calling ExpandAll, don't move the scroll to the 
9303         bottom area if we are in fact not using the vertical scroll bar.
9304         Fixes #324824.
9306 2007-09-27  Jonathan Pobst  <monkey@jpobst.com>
9308         * Control.cs: Comment out a double buffering optimization that doesn't
9309         take into account invalidates created in OnPaint, causing the control
9310         to never be redrawn.  It would take quite a bit of work to work around
9311         this, but I left it commented with an explanation for later possible
9312         optimization.
9313         [Fixes bug #328681]
9315 2007-09-27  Jonathan Pobst  <monkey@jpobst.com>
9317         * Control.cs: Ask parent to perform a layout if control is AutoSize and
9318         the text changes.
9319         * RadioButton.cs: Implement GetPreferredSizeCore.
9320         [Fixes bug #328672]
9322 2007-09-26  Jonathan Pobst  <monkey@jpobst.com>
9324         * RichTextBox.cs, TextBoxBase.cs, WindowsFormsSynchronizationContext.cs:
9325         corcompare stuffs.
9327 2007-09-26  Jonathan Pobst  <monkey@jpobst.com>
9329         * Application.cs: Move the sync context stuff to Run instead of RunLoop
9330         so that it doesn't get uninstalled on modal forms.
9331         * Control.cs: Install a sync context when a control is created.
9332         * WindowsFormsSyncronizationContext.cs: Create a private static control
9333         to invoke on.  This is easier than trying to find a created control we
9334         can use.
9335         [Fixes bug #327608]
9337 2007-09-25  Jonathan Pobst  <monkey@jpobst.com>
9339         * Application.cs: Install a WindowsFormsSynchronizationContext in the
9340         run loop, and uninstall it when done.
9341         * WindowsFormsSynchronizationContext.cs: Implement.
9342         [Fixes the common case in bug #327608]
9344 2007-09-23  Gert Driesen  <drieseng@users.sourceforge.net>
9346         * DataGridViewCellCollection.cs: Added argument checks for indexers.
9347         Use case-insensitive lookup of column name in indexer. Code
9348         formatting.
9350 2007-09-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9352         * TreeNode.cs: When collapsing or expanding a node, check whether its
9353         change will affect the visible area (we were previously doing a
9354         IsVisible check, but that check is not enough since children nodes
9355         could be still visible). Fixes part of #325266.
9357 2007-09-21  Jonathan Pobst  <monkey@jpobst.com>
9359         * TreeView.cs: Always select the first node when the TreeView gets
9360         focus if there is no currently selected node.
9361         [Fixes bug #324279]
9363 2007-09-21  Jonathan Pobst  <monkey@jpobst.com>
9365         * TreeView.cs: Do not raise BeforeSelect or AfterSelect when the
9366         node being selected is null.
9367         [Patch from Yves Bastide fixes bug #326858]
9369 2007-09-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9371         * TreeNode.cs: Add an internal ArePreviousNodesExpanded, to know
9372         whether all the parent nodes are expanded.
9373         * TreeNodeCollection.cs: When adding a new node an calling SetupNode,
9374         call RecalculateVisibleOrder if all previous nodes are expanded.
9375         Before that we were doing a IsVisible check, but sometimes the node
9376         is not in the visible area, but _should_already be ready, because of
9377         all previous nodes are expanded. Fixes #325259.
9379 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
9381         * ToolStripSplitButton.cs: Call the ButtonClick event if the button
9382         portion of the item is clicked.
9384 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
9386         * TextControl.cs: Do not tell the system to move the cursor if the
9387         textbox isn't focused.  Fixes part of bug #322668.
9389 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
9391         * ComboBox.cs: When there are no items, do not show the dropdown if
9392         the down arrow is clicked.  Fixes part of bug #322668.
9394 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
9396         * ToolStripComboBox.cs: Manually set the size of this control in the
9397         constructor, as it doesn't seem to be the same as DefaultSize.
9398         Fixes a failing monobuild test.
9400 2007-09-19  Jonathan Pobst  <monkey@jpobst.com>
9402         * DateTimePicker.cs: If the user sets MinDate to DateTime.MinValue,
9403         change it to DateTimePicker.MinDateTime.  [Fixes bug #326609]
9405 2007-09-19  Jonathan Pobst  <monkey@jpobst.com>
9407         * Theme.cs: FileDialogs should be using DesktopDirectory instead of
9408         Desktop.  This lets it work for people who have moved their desktops
9409         from the default location on windows.  For people who have not, both
9410         values are the same, so it shouldn't hurt anything.  [Fixes bug #325270]
9412 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
9414         * ToolStripControlHostTest.cs: DefaultSize is based off hosted control,
9415         but when the base constructor sets this, the control is null.  Set it
9416         again in the constructor.  Fixes a failing monobuild test.
9418 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
9420         * ToolStripDropDownItem.cs: Make sure Click and DropDownOpened events
9421         get called.
9422         * ToolStripSplitButton.cs: Make sure MouseDown and MouseUp events get
9423         called.
9425 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
9427         * ToolStrip.cs: Don't show tooltips for ToolStripTextBoxes, they
9428         will handle it themselves.
9429         * ToolStripItem.cs: When deciding what the text of a tooltip should
9430         be, use the Text property instead of the text field.
9431         * ToolStripTextBox.cs: Handle tooltips.
9432         [Fixes bugs #325417 and #325973]
9434 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
9436         * ToolStripDropDownButton.cs: Only drop down overflow menu with a
9437         left click.  Fixes the easy part of bug #325969.
9439 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
9441         * ToolStrip.cs: Set AutoSizeMode back to GrowAndShrink to refix
9442         bug #325406, but set a minimum for StatusStrip to 22 to keep
9443         bug #325390 fixed.  I think this minimum would have been figured
9444         up automatically if the grip was actually a ToolStripItem, but it
9445         currently is not.
9447 2007-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9449         * ListView.cs: max_label_wrapping is now 30 pixels instead of 38,
9450         as this is apparently the actual value used by .Net. Also apply
9451         ItemPadding in Details view only, and decrease the general width padding,
9452         to have only the needed. This should fix #324340 in Windows too.
9454 2007-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9456         * ListViewItem.cs: Don't Invalidate item if parent is inside
9457         a BeginUpdate/EndUpdate block. This prevents to have differences
9458         between the ListView and items state, as well as avoid some exceptions
9459         there.
9460         * ListView.cs: Make 'updating' field internal.
9462 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
9464         * ToolStripControlHost.cs: Realign control when ControlAlign changes.
9465         * ToolStripItem.cs: Use ImageScalingSize when calculating preferred
9466         size if appropriate.
9467         Fixes reopened bug #325414.
9469 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
9471         * ToolStrip.cs: Set AutoSizeMode back to GrowOnly.
9472         * ToolStripItem.cs: Invalidate before and after our new autosize when
9473         text changes.
9474         Fixes reopened bug #325390.
9476 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
9478         * ToolStripMenuItem.cs: Make sure we invalidate when clicked so
9479         mnemonics can be drawn or undrawn correctly.  Fixes reopened bug 
9480         #325044.
9482 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
9484         * Control.cs: Do WM_CONTEXTMENU before OnMouseUp.  [Fixes bug #325535]
9486 2007-09-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9488         * ColumnHeader.cs: When drawing column text, use EllipsisCharacter
9489         instead of EllipsisWord (by equistango at gmail.com). Fixes part of
9490         #82734.
9492 2007-09-14  Jonathan Pobst  <monkey@jpobst.com>
9494         * ToolStrip.cs: Make ToolStrip selectable when TabStop = true.  Find an
9495         item to select when the ToolStrip is selected.
9496         * ToolStripControlHost: Realign the control when the bounds or visibility
9497         change.
9498         * ToolStripItem.cs: When selected, if it's a control host, focus the control.
9499         * ToolStripOverflow.cs: When laying out the drop down, respect the item's
9500         preferred height.
9501         * ToolStripTextBox.cs: OnPaintInternal should call base.OnPaintInternal, not
9502         base.OnPaint.  Was causing text not to be drawn.
9504 2007-09-14  Jonathan Pobst  <monkey@jpobst.com>
9506         * SplitterPanel.cs: Ignore attempts to set AutoSizeMode.
9508 2007-09-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9510         * TreeView.cs: When creating the label edit text box,
9511         set is initially to Visible = false. This is done to
9512         prevent a confusion in the layout which makes it to lose
9513         focus when shown the first time. Fixes part of #82592.
9515 2007-09-13 Andreia Gaita <avidigal@novell.com>
9517         * WebBrowserBase.cs: add FocusOption enumeration for finer focus control
9519 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
9521         * ToolStrip.cs: Take Margin into account when calculating preferred
9522         size.  Also, allow preferred size to get smaller than the explicit
9523         size.
9524         * ToolStripTextBox.cs: Don't change the GetPreferredSize implementation.
9525         First step towards fixing bug #82747.
9527 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
9529         * TreeView.cs: Applied patch from latency@gmx.de to not paint the
9530         full row select background over the plus/minus glyph.  Also, turn
9531         off the focus rectangle for full row select since MS doesn't seem
9532         to ever paint it.  [Fixes bug #81839]
9534 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
9536         * ToolStrip.cs: Don't FocusInternal if there is no selected item.
9537         This was causing keyboard opened dropdowns to lose focus.
9538         [Fixes bug #82803]
9540 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
9542         * Control.cs: If Rectangle.Empty is passed to Invalidate, use
9543         ClientRectangle instead.  [Fixes bug #82838]
9545 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
9547         * SplitContainer.cs: We can't reset Visible on every layout because
9548         someone may have set Visible = false explicitly on a SplitterPanel.
9549         Make sure when we switch orientation the SplitterDistance does not
9550         change.  Fixes two failing tests.
9552 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9554         * TreeView.cs: Use MeasureTextInternal instead of MeasureText in
9555         TextRenderer, since the latter is only available in 2.0.
9557 2007-09-13  Ivan N. Zlatev <contact@i-nz.net>
9559         * Cursor.cs: Fix Cursor.Current to apply Cursor.Default.
9560         * SplitContainer.cs: Implement FixedPanel layouting.
9562 2007-09-12  Andreia Gaita  <avidigal@novell.com>
9564         * WebBrowserBase.cs: setup shutdown routine
9566 2007-09-12  Andreia Gaita  <avidigal@novell.com>
9568         * Application.cs: Let keyboard events that are targetted 
9569                 to non-mwf windows hosted inside mwf (as in, webbrowser),
9570                 propagate properly. Fixes keyboard handling on the webbrowser.
9572 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9574         * ListView.cs: When handling MouseUp event and we are 
9575         highligting a node with the mouse right button, don't trigger
9576         Before/AfterSelecting event, since we are not actually selecting
9577         the node.
9579 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9581         * TreeView.cs: When editing a node, modify the edit text box
9582         depending on the text length (as you are typing), like MS does.
9584 2007-09-12  Jonathan Pobst  <monkey@jpobst.com>
9586         * ToolStrip.cs: Fixup preferred size calculations for vertical toolbars. 
9587         Override GetPreferredSizeCore to perform calculations.  Remove custom
9588         autosize logic.  [Fixes bug #82739]
9590 2007-09-12  Jonathan Pobst  <monkey@jpobst.com>
9592         * TextBoxBase.cs: Modified should default to false.
9594 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
9596         * Control.cs: Update the anchoring distances even when layout is supspended.
9597         Patch provided by George fixes bug #82805.
9599 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
9601         * Control.cs: Provide a setter for ExplicitHeight.
9602         * TextBoxBase.cs: Now that we have the implementation for explicit heights,
9603         remove the hacks in here for requested_height.
9604         [Fixes bug #82749]
9606 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
9608         * ScrollBar.cs: Fix an issue reported on the lists where setting a scrollbar's
9609         Maximum to lower that its current Value caused an ArgumentException by setting
9610         the Value to the new Maximum.
9612 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
9614         * ThemeWin32Classic.cs: Math is hard!  Fix some math so that the TrackBar
9615         handle moves to the closest tick when it is being dragged.
9616         [Fixes bug #82751]
9618 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
9620         * ToolStripManager.cs: When we have added MDI buttons onto a MenuStrip, we
9621         can't let them count as real items when calculating where to merge in the
9622         user's items.  [Fixed bug #82786]
9624 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
9626         * ToolStripMenuItem.cs: Add a parent type check so we don't crash on people
9627         who want to add a menu item directly onto a toolstrip.
9628         [Fixes bug #82775, part II]
9630 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
9632         * StatusStrip.cs: Synchronize SetDisplayedItems with the ToolStrip version.
9633         * ToolStrip.cs: If a ToolStripItem set to not visible is added to a ToolStrip,
9634         don't set it to available.
9635         * ToolStripItem.cs: When Visible is changed, tell the owner to perform a layout.
9636         [Fixes bug #82727, part II]
9638 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
9640         * StatusStrip.cs: Change item placement to None if not visible.
9641         * ToolStripItem.cs: Invalidate when InternalVisible changes.
9642         These should have been committed to fix 82723, but I missed them.
9644 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
9646         * ToolStrip.cs: Make sure ItemClicked is raised before the ToolStripItem's
9647         Click, and that it is only called once.
9648         * ToolStripMenuItem.cs: Call OnClick even when there are dropdown items.
9649         * ToolStripDropDownItem.cs: Override HandleItemClick so dropdowns stay
9650         dropped down.
9651         [Fixes bug #82775]
9653 2007-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9655         * ColumnHeaderSample.cs: Use 5 pixels as extra height instead of 8
9656         to match .Net.
9657         * ThemeWin32Classic.cs: For the columns text, use 5 pixels as left padding
9658         instead of 8, just like above. Partially fixes #82734.
9660 2007-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9662         Patch by Ernesto Carrea <equistango at gmail.com>. Partially 
9663         fixes #82734.
9665         * ListView.cs: Remove extra space between rows in Details view (match
9666         .Net). 
9667         * ThemeWin32Classic.cs: Header text should use ListView.Font, not
9668         the DefaultFont.
9670 2007-09-08  Gert Driesen  <drieseng@users.sourceforge.net>
9672         * Application.cs: Modified ProductVersion to return value of
9673         AssemblyInformationVersion if available, and fallback to assembly
9674         version. Fixes bug #82746. Code formatting.
9675         * BindingSource.cs: Remove NIE from Dispose, and mark it MonoTODO
9676         instead.
9678 2007-09-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9680         * Control.cs: When updating ZOrder for a child control,
9681         take into account the implicit ones (we need it in our controls
9682         using them). Fixes #82642.
9684 2007-09-07  Jonathan Pobst  <monkey@jpobst.com>
9686         * ToolStripItem.cs: Add support for animated images.
9687         [Fixes bug #82726]
9689 2007-09-07  Jonathan Pobst  <monkey@jpobst.com>
9691         * ToolStrip.cs: Make sure we aren't drawing anything that isn't 
9692         visible.  [Fixes bug #82727]
9694 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
9696         * ToolStripItem.cs: If AutoSize changes the size of our item, invalidate
9697         so we repaint using the new size.  [Fixes bug #82723]
9699 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
9701         * TreeView.cs: If ShowLines is true, we should ignore the FullRowSelect
9702         option.  [Fixes bug #81779]
9704 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
9706         * TreeView.cs: Override HandleClick because the StandardClick style is
9707         set to false.  According to MSDN (and testing), the click events should
9708         only be raised when the click occurs on a TreeNode.  [Fixes bug #81739]
9710 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
9712         * ToolStripTextBox.cs: Invalidate our textbox when it loses focus, so
9713         the border will disappear.  Fixes reopened #82653.
9715 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
9717         * Control.cs: If the control is autosize, and its preferred size changes
9718         when it lays out its children, tell its parent so it can be re-layed out.
9719         Fixing some of the fallout from r85433.
9721 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
9723         * ThemeWin32Classic.cs: Fix a NRE caused by r85427 because RadioButton
9724         and CheckBox share some code.
9726 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
9728         * TrackBar.cs: Only call OnScroll if we actually changed the Value of
9729         the TrackBar, not every mouse move.  [Fixed bug #82718]
9731 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
9733         * ThemeWin32Classic.cs: Allow a CheckBox to be rendered like a Button
9734         under 2.0 rendering.  [Fixes bug #82657]
9736 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
9738         * TreeView.cs: If we found a TreeNode to display a context menu, but
9739         it doesn't have one to show, let the TreeView display its menu
9740         instead.  [Fixes bug #82680]
9742 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
9744         * ToolStripTextBox.cs: TextBox no longer call OnPaint, we need to use
9745         OnPaintInternal instead.  Give the internal TextBox a Border property
9746         so it can draw itself more correctly.  [Fixes bug #82653]
9748 2007-09-06  Zoltan Varga  <vargaz@gmail.com>
9750         * HtmlHistory.cs HtmlWindow.cs HtmlWindowCollection.cs ListBindingHelper.cs WindowsFormsSection.cs WindowsFormsSynchronizationContext.cs: Stubs for missing 2.0 classes.
9752 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
9754         * ComboBox.cs: Adjust combobox button state to reflect current state when
9755         back to enabled = true. Fixes first issue of #82654.
9757 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
9759         * Control.cs: Fix last patch regression, prevent forms to update zorder when
9760         setting visible property.
9762 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
9764         * Control.cs: Update zorder after control creation in SetVisibleCore, it 
9765         fix zorder for controls initially created as non visible. Fixes #82667.
9767 2007-09-04  Everaldo Canuto  <everaldo@simios.org>
9769         * ThemeWin32Classic.cs: Adjust checkbox light color to ControlLightLight to
9770         mimic win32 look. Fixes #82656.
9772 2007-09-01  Zoltan Varga  <vargaz@gmail.com>
9774         * FileDialogCustomPlace.cs FileDialogCustomPlacesCollection.cs: 
9775         Stubs for new net 3.5 classes.
9777 2007-08-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9779         * ListViewItem.cs: In ListViewItemCollection operations calculate
9780         Layout for owner as well as invalidate it. Fixes part of #82642.
9782 2007-08-31  Jonathan Pobst  <monkey@jpobst.com>
9784         * ToolStripItem.cs: Take Parent/Owner's Enabled state in to account
9785         when returning Enabled.  [Fixes bug #82651]
9787 2007-08-30  Everaldo Canuto  <everaldo@simios.org>
9789         * ToolBar.cs: Fix button size for non flat toolbars. Fixes #82368.
9791 2007-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9793         * ListView.cs: Put item padding info in a single place
9794         (Theme.ListViewItemPaddingWidth) to have working AutoResize on
9795         columns again.
9796         * ThemeWin32Classic.cs:
9797         * Theme.cs: Likewise.
9799 2007-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9801         * ListView.cs: When a ListViewSubItem instance is invalidated,
9802         invoke Invalidate on parent ListViewItem, not parent ListView.
9803         Fixes #81570.
9805 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
9807         * ListView.cs, ListViewItem.cs: corcompare stuffs.
9809 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
9811         * BindingMemberInfo.cs: Implement == and != operators.
9813 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
9815         * HtmlElementEventArgs.cs: Implement properties.
9817 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
9819         * HtmlElementErrorEventArgs.cs, HtmlElementErrorEventHandler.cs: Added.
9821 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
9823         * TabControl.cs: I was looking into the MonoTODO on TabPageCollection.
9824         Add (string,string,string) to implement the imagekey.  It turns out, we
9825         use the requested imagekey whereas .Net does not.  So I broke ours to match
9826         theirs.  :(
9828 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
9830         * Form.cs, UserControl.cs: Override ValidateChildren, AutoValidate.
9832 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
9834         * ContainerControl.cs: Implement ValidateChildren and new Validate overload.
9836 2007-08-29  Gert Driesen  <drieseng@users.sourceforge.net>
9838         * FolderBrowserDialog.cs: Set Tag of newly created node, and keep it
9839         up-to-date. Fixes bug #82618.
9841 2007-08-29  Everaldo Canuto  <everaldo@simios.org>
9843         * TextBoxBase.cs: Call CalculateDocument after changes Lines property to
9844         reflect document changes. Fixes #82367.
9846 2007-08-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9848         * ListView.cs: Add/fix some override differences between 1.1 and 2.0,
9849         as well as add new ones. This should make work the BackgroundImage
9850         property for ListView again.
9852 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
9854         * DataGrid.cs, DataGridViewButtonColumn.cs, DataGridViewCheckBoxColumn.cs,
9855         DataGridViewComboBoxColumn.cs, DataGridViewImageColumn.cs, DataGridViewLinkColumn.cs,
9856         DataGridViewTextBoxColumn.cs, ToolTip.cs: corcompare stuffs.
9858 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
9860         * Control.cs, XPlatUI.cs, XPlatUIDriver.cs, XPlatUIWin32.cs: Implement
9861         IsKeyLocked.
9863 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
9865         * Cursor.cs: Add HotSpot, hook into XPlatUI.GetCursorInfo.
9866         * XPlatUIWin32.cs: Implement hotspot lookup in GetCursorInfo.
9868 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
9870         * RadioButton.cs: Use 2.0 rendering.  Use base implementation of TextAlign.
9871         * Theme.cs, ThemeWin32Classic.cs: Implement 2.0 rendering for RadioButton.
9873 2007-08-27  Ivan N. Zlatev  <contact@i-nz.net>
9875         * CursorConverter.cs: Implement conversion to InstanceDescriptor.
9877 2007-08-27  Ivan N. Zlatev  <contact@i-nz.net>
9879         * GridEntry.cs: Implement GetService.
9881 2007-08-27  Jonathan Pobst  <monkey@jpobst.com>
9883         * LabelEditTextBox.cs, TreeView.cs: After hiding the textbox used
9884         for label editting, make sure we focus back on the TreeView.
9885         [Fixes bug #82590]
9887 2007-08-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9889         * ListView.cs: Add some 2.0 overrides.
9891 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
9893         * Form.cs: Uses opacity var instead of Opacity property in CreateHandle
9894         because getter dont returns right value before handle creation. Thanks 
9895         to George. Fixes #82569.  
9897 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
9899         * Theme.cs: Revert last patch, it causes error under win32. 
9901 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
9903         * Theme.cs: Uses Environment.SpecialFolder.DesktopDirectory instead of 
9904         Environment.SpecialFolder.Desktop in Places method, Desktop returns the 
9905         logical Desktop rather than the physical file system location. Fixes #82603. 
9907 2007-08-26  Everaldo Canuto  <ecanuto@novell.com>
9909         * MessageBox.cs: Add clipboard copy (ctrl+c) to messagebox. Thanks Andy Hume
9910         for the patch. Fixes #82568.
9912 2007-08-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9914         * ListView.cs: Add a pair of missing 2.0 ListViewItemCollection.Insert
9915         methods.
9917 2007-08-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9919         * ListViewInsertionMark.cs: New stubbed class.
9921 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
9923         * FolderBrowserDialog.cs: When adding folder, immediately create the
9924         directory with temporary name and rename the directory when editing
9925         finishes. This matches MS. Ensure the node for the new folder is 
9926         selected and LabelEdit is disabled, when editing is either finished
9927         or cancelled.
9929 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
9931         * TreeView.cs: When editing label of node, ensure node is visible.
9933 2007-08-25  Ivan N. Zlatev  <contact@i-nz.net>
9935         * PropertyGridView.cs: Set the value only if it has changed.
9937 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9939         * ListView.cs: Some more code refactoring to add support sorting
9940         with groups (now for Details view). Remove unused code also.
9942 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
9944         * NodeLabelEditEventArgs.cs: EndEdit immediately when CancelEdit is called.
9945         Not a big fan of reacting immediately to a field in an EventArg, but that's
9946         the way it's done.  (This is part of the previous commit that got left out.)
9948 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
9950         * FolderBrowserDialog.cs: Removed need for separate description field.
9951         Replaced "" with string.Empty. Fixed tabindex. Ensure OK button
9952         has focus when dialog box is displayed again, regardless of what
9953         button was pressed the previous time. Set RootFolder and SelectedPath
9954         each time dialog box is displayed. This ensures the treeview is
9955         refreshed, and fixes bug #82579. Do no hide selected node in TreeView
9956         when it does not have focus. Added support for more special folders.
9958 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
9960         * TreeView.cs: Create a CancelEdit method.  Clone the edit_args in EndEdit
9961         before calling AfterLabelEdit.  If the user calls BeginEdit in that event,
9962         it resets the edit_args.
9963         * TreeNode.cs: Call CancelEdit if the user passes cancel = true to EndEdit.
9964         [Fixes bug #82577]
9966 2007-08-24  Gert Driesen  <drieseng@users.sourceforge.net>
9968         * FolderBrowserDialog.cs: Modifies form caption and text of new folder
9969         button to match MS. Provide more meaningful exception message for
9970         invalid RootFolder value. Use zero-length string when SelectedPath
9971         is set to null. Allow non-rooted paths in SelectedPath, but ignore
9972         them in FolderBrowserTreeView. Allow folders to be created in
9973         RootFolder. Fixes bug #82576.
9975 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9977         * ListView.cs: Correctly compute the layout_ht (height) when using groups,
9978         since we need to take into account the group headers and the margin
9979         between them.
9980         * ListViewGroup.cs: Add a rows field to store the number of rows per
9981         group.
9983 2007-08-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9985         * DateTimePicker.cs: The MS' MTB has a really stupid year formatting.
9986           Anyways, let's just follow the lead.
9988 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
9990         * CheckBox.cs: Set the AutoSizeMode to GrowAndShrink.
9991         * Form.cs, GroupBox.cs: Don't skip Right or Bottom anchored 
9992         controls in GetPreferredSizeCore.
9993         * ThemeWin32Classic.cs: Tweak text drawing of CheckBoxes.
9994         [Fixes bug #82488]
9996 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
9998         * PrintDialog.cs: Need to instantiate the form variable here too.
10000 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10002         * ListView.cs: Do some reorganization to support sorting in groups,
10003         by doing the layout sequentially in ListView.Items. Also add support
10004         for the Default Group, which should be available for items with no
10005         group assigned.
10006         * ListViewGroup.cs: Add support for DefaultGroup. Include new members
10007         for storing layout info also.
10008         * ListViewGroupCollection.cs: Add a DefaultGroup as part of the
10009         collection, as well as providing internal members to do a traversal
10010         including the default group (needed when doing layout/drawing).
10011         * ThemeWin32Classic.cs: When drawing group headers use internal
10012         ListViewGroupCollection members to take into account the default
10013         group.
10015 2007-08-23  George Giolfan  <georgegiolfan@yahoo.com>
10017         * FlowLayoutPanel.cs: Add GetPreferredSizeCore.  [Fixes bug #82537]
10019 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
10021         * TreeView.cs: IsInputKey: don't ask for any keys if the handle hasn't
10022         been created.  If handle is created, we want arror keys.  If we are editing
10023         a node, we want things like enter, esc, home, end, page up, page down.
10024         Allows Esc to work for FolderBrowserDialog.
10026 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
10028         * ColorDialog.cs, FontDialog.cs: Set the form's CancelButton so that
10029         they close when ESC is pressed.  Thanks Andy!
10031 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
10033         * CommonDialog.cs: Do not instantiate form, leave that for derived classes.
10034         This way we can tell if this is a CommonDialog provided with mono, or one
10035         that is being implemented outside by a developer.  If it is an external one,
10036         the developer is responsible for showing their own form.  We were showing
10037         our blank form after the developer showed his.
10038         * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs, FontDialog.cs,
10039         PageSetupDialog.cs: Instantiate form variable in our constructor.
10040         [Fixes bug #82531]
10042 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
10044         * ListBox.cs, ListView.cs, TreeView.cs: Override IsInputCharInternal
10045         and always return true.  [Fixes bug #81616]
10047 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
10049         * TextBoxBase.cs: Allow 2.0 AutoSize to change the height of the
10050         TextBox.  [Fixes bug #82549]
10052 2007-08-23  Gert Driesen  <drieseng@users.sourceforge.net>
10054         * FileDialog.cs: When Save/Open is clicked and no filename is selected
10055         or entered then do not close the dialog. Fixes bug #82539. Removed
10056         CWLs.
10058 2007-08-22  Everaldo Canuto  <ecanuto@novell.com>
10060         * FileDialog.cs: Create UpdateRecentFiles and move the recent files refresh
10061         code to this method. It is calling every time filter changes. This method
10062         will help to fix the bug #80887.
10064 2007-08-22  Jonathan Pobst  <monkey@jpobst.com>
10066         * CheckBox.cs: Implement AutoSize calculation.
10068 2007-08-22  Jonathan Pobst  <monkey@jpobst.com>
10070         * CheckBox.cs: Use new 2.0 rendering for 2.0.
10071         * Theme.cs: Method declarations for 2.0 rendering path.
10072         * ThemeWin32Classic.cs: 2.0 rendering implementation for CheckBox.
10074 2007-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10076         * ListViewGroupCollection.cs: Fix a typo of the previous patch.
10078 2007-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10080         * ListViewGroupCollection.cs: Implement AddRange the right way, to
10081         only call Redraw on the parent one time.
10083 2007-08-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10085         * DataGridViewRowHeaderCell.cs, DataGridViewColumnHeaderCell.cs: Implemented
10086           GetClipboardContent.
10087         * DataGridViewCell.cs: Implemented GetClipboardContent,
10088           GetEditedFormattedValue, GetFormattedValue.
10089         * DataGridView.cs: Implemented GetClipboardContent, TopLeftHeaderCell.
10091 2007-08-21  Jonathan Pobst  <monkey@jpobst.com>
10093         * TableLayoutStyleCollection.cs: corcompare fix.
10095 2007-08-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10097         * DataObject.cs: Implemented retrieval of convertible / not convertible
10098           objects.
10100 2007-08-21  Jonathan Pobst  <monkey@jpobst.com>
10102         * ToolStripItem.cs: When changing the item's text, invalidate before we resize
10103         ourselves.  This ensures the entire old bounds are repainted, in case our new
10104         size is smaller.  [Fixes bug #82518]
10106 2007-08-20  Everaldo Canuto  <ecanuto@novell.com>
10108         * XplatUIX11.cs: Apply patch from #81588, it makes use of PointerMotionHintMask
10109         flag to make fast handle of mouse events, without this the mouse move is
10110         handled in some manner, whether it is a mouse move or not. Fixes #81588.
10112 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10114         * ListView.cs: When doing layout calculations don't use a ref
10115         param to keep the current item; instead use its Index value (this 
10116         is specially important when doing the layout with Groups
10117         and Items being sparse). Also don't take into account items added to
10118         the Group but not yet added to the main ListView.Items collection.
10120 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10122         * ListViewGroupCollection.cs: Forgot to mimic an issue
10123         in the indexer (don't assign the ListView owner for new values).
10125 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10127         * ListViewGroupCollection.cs: Make the string indexer use
10128         the int based indexer to re-use code, instead of duplicate the code.
10129         Also Redraw as needed and take into account null values.
10131 2007-08-20  Jonathan Pobst  <monkey@jpobst.com>
10133         * StatusStrip.cs: Make sure the item's parent gets set in SetDisplayedItems.
10134         [Fixes bug #82481]
10136 2007-08-20  Jonathan Pobst  <monkey@jpobst.com>
10138         * ToolStrip.cs: Add some logic to un-focus controls in ToolStripControlHosts
10139         when other buttons are clicked or navigated to.
10141 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10143         * XplatUIX11.cs: Treat toolwindows as if they had no window manager, since
10144           it's XplatUIX11 that attaches them.
10146 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10148         * DataGridView.cs: If a column has been added, recreate the editing row.
10149           Fixes #82226.
10151 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10153         * TextControl.cs: Use Math.Max instead of Math.Min when deciding the length
10154           of the tag to draw. Makes disappearing text show up again.
10156 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10158         * StatusBar.cs: Take into account any icons when a panel has AutoSize =
10159           Contents. Fixes #82487.
10161 2007-08-19  Andreia Gaita  <avidigal@novell.com>
10163         * Added HtmlElement.cs, HtmlElementCollection.cs, 
10164           HtmlElementEventArgs.cs, HtmlElementEventHandler.cs
10165           
10166 2007-08-19  Andreia Gaita  <avidigal@novell.com>
10168         * BindingSource.cs: Implement this, dispose and getenumerator.
10169         * DataGridViewRowCollection.cs: Move the InvalidOperationException
10170         out of AddInternal, throw it only on public Add calls. The 
10171         UsingWebBrowser sample was blowing up with this when setting the
10172         DataSource after adding DataBindings, so it's likely that .net
10173         only throws this exception when Add is called directly. 
10174         
10175         * ToolStripControlHost.cs: Return the hosted control's text
10176         property, and not the ToolStripItem one (it would always return
10177         the initial value).
10178         
10179         * HtmlDocument.cs: Implement GetElementById and All
10180         * WebBrowser.cs: Remove exception on set_DocumentStream.        
10182 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
10184         * Form.cs: Fix the max and min value for opacity (0~1).
10186 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
10188         [Fixes #80118]
10189         * DataGridTableStyle.cs: Default header font is now null, on getter it 
10190         returns datagrid font when is null. On setter permits null.
10192         * DataGrid.cs:
10193         - When ResetHeaderFont set header font to null.
10194         - On EndInit set grid_style.DataGrid.
10196 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
10198         * TabControl.cs: Fix regression in default padding x.
10200 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
10202         * TabControl.cs: Fix tab page text area removing padding. Fixes #82471.
10204 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
10206         * TabControl.cs: Fix first tab drawing, when selected it must have x = 0
10207         not 2. Fixes #82229.
10209 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
10211         * TabControl.cs: Fix tab size when image height is less than text height.
10212         Partially fixes #81837.
10214 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
10216         * Form.cs: Add WS_EX_CONTROLPARENT to forms to make it selectable using 
10217         "alt + tab". It works only for Win32, for X11 theres no way to remove window
10218         from taskbar and keep it on "alt_tab". Fixes #81722.
10220 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
10222         * XplatUIX11.cs: Apply patch from Jurek Bartuszek to fix DrawReversibleFrame
10223         and DrawReversibleLine, also apply same behavior to FillReversibleRectangle. 
10224         Fixes #80877 and #79418.
10226 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
10228         * MenuAPI.cs: Fix popup menu position when the size is larger than distance 
10229         between position and one of the screen borders. Fixes #82349.
10231 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
10233         * MessageBox.cs: When there is no form that invoked the MessageBox, shows
10234         the MessageBox in the taskbar. Fixes #82457.
10236 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
10238         * MessageBox.cs: Fix form size when icon is set and text height is bigger
10239         than icon. Fixes #82468.
10241 2007-08-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10243         * ThemeWin32Classic.cs: A FixedToolWindow has border size 3.
10244         * InternalWindowManager.cs: Change HandleCalcSize to return a boolean value
10245           if handled or not. Implement WM_NCCALCSIZE for WParam == 0 as well.
10246           Refactored HandleNCCalcSize somewhat to avoid code duplication.
10247         * Form.cs: Add is_clientsize_set, set in set_ClientSize, used by
10248           FormBorderStyle to decide if we're calculating a new size from the
10249           client size or not. CreateParams: Don't fake tool windows, only the X11
10250           backend manages toolwindows manually.
10252 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
10254         * Form.cs: Only reset is_visible if !IsDisposed to prevent an
10255         ObjectDisposedException.
10257 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
10259         * Form.cs: Reset is_visible back to true after OnLoad.  Setting this
10260         in OnLoad should not have any effect.  [Fixes bug #82470]
10262 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
10264         * ToolTip.cs: Add a hack to ToolTipWindow so it will still size and
10265         paint for controls that create their own ToolTipWindow instead of
10266         going through ToolTip.
10268 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
10270         * ToolTip.cs: Make Hide internal instead of public to match MS API.
10272 2007-08-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10274         * ListViewGroupCollection.cs: Use generic List instead of an
10275         ArrayList, since this collection is 2.0 only.
10277 2007-08-17  Jeffrey Stedfast  <fejj@novell.com>
10279         * ToolTip.cs (Hide): Made public to make the build work (should
10280         this not be public?).
10282 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
10284         * ToolBar.cs, ToolStrip.cs, TreeView.cs: Use a ToolTip instead of a
10285         ToolTipWindow.
10286         * ToolTip.cs: Add an internal Visible property to facilitate transition.
10288 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
10290         * DrawToolTipEventArgs.cs, DrawToolTipEventHandler.cs, PopupEventArgs.cs,
10291         PopupEventHandler.cs: Make these internal for 1.1.
10292         * ThemeClearlooks.cs, ThemeWin32Classic.cs: Use TextRenderer, and modify to not
10293         use ToolTipWindow internals.
10294         * ToolTip.cs: Add 2.0 modal Show methods.  Had to move a lot of stuff around to
10295         support this.  A lot of stuff in the ToolTipWindow got moved to the ToolTip.
10297 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10299         * X11Dnd.cs: Add a null check.
10301 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10303         * X11Dnd.cs: MwfWindow: Try to load the control directly from the handle if
10304           nothing else succeeds. Fixes #82453.
10306 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10308         * XplatUIWin32.cs: PaintEventStart: validate the entire source client
10309           rectangle if we're painting to another window than the one the paint
10310           message was generated on. Simplify the code somewhat, which makes
10311           PaintEventEnd also simpler.
10313 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10315         * Control.cs: When changing parent of a form, let the form decide whether
10316           XplatUI.SetParent should be called or not.
10317         * Form.cs: ChangingParent: only call XplatUI.SetParent if we're not
10318           recreating the handle. If the new parent's handle isn't created, don't
10319           recreate our handle, just destroy it. CreateParams: Check if the
10320           parent's handle is created before fetching it.
10322 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10324         * Control.cs, Form.cs, InternalWindowManager.cs, MainMenu.cs, MdiClient.cs:
10325           Update calls to PaintEventStart/End to take a Message argument.
10326         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Update PaintEventStart/End to
10327           take a Message argument.
10328         * XplatUIWin32.cs, XplatUIX11.cs: Update PaintEventStart/End to take a
10329           Message argument, and handle the case where we don't paint to the window
10330           for which the paint message was generated.
10332 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10334         * XplatUIWin32.cs: Don't call Win32GetLastError directly, use
10335           Marshal.GetLastWin32Error. Plug nasty memory leak in
10336           PaintEventStart/End, we were creating a DC we weren't releasing.
10338 2007-08-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10340         * ListView.cs: Add Groups support in Details view. Also have a small
10341         method to do the layout of the group header. Don't use a separate
10342         method to do the groups calculation in Icons view, since our methods
10343         are now a little simpler.
10344         * ListViewGroup.cs: Use the more accurate `HeaderBounds' name than
10345         `Bounds'.
10346         * ThemeWin32Classic.cs: Likewise.
10348 2007-08-16  Jonathan Pobst  <monkey@jpobst.com>
10350         * Application.cs: Add FilterMessage method and rework our message loop
10351         logic to use it.
10353 2007-08-16  Jonathan Pobst  <monkey@jpobst.com>
10355         * Application.cs: Add some methods and stub a few methods that are
10356         pretty much never used.
10358 2007-08-15  Jonathan Pobst  <monkey@jpobst.com>
10360         * TreeNode.cs: Add some serialization methods.
10362 2007-08-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10364         * ListView.cs: In ListViewItemCollection have a 
10365         'is_main_collection' field to not modify ListViewItem.ListView
10366         when using it as ListViewGroup.Items (and not ListView.Items)
10367         and also don't modify selection state (.Net behaviour). 
10368         Instead, set group for items contained in a ListViewGroup.Items collection.
10369         * ListViewItem.cs: Simplify some code in Group setter.
10370         * ListViewGroup.cs: use the new .ctor to pass the current instance
10371         to the ItemsCollection.
10372         * ListViewGroup.cs: Set the ListView property for ListViewGroup
10373         instances when adding/removing. Also make Remove use RemoveAt, which
10374         should perform better.
10376 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
10378         * Message.cs, TabControl.cs, TextBox.cs, TextBoxBase.cs: Hide some 2.0 API
10379         that crept into the 1.1 profile.
10381 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
10383         * ToolBarButton.cs: Implement ImageKey.
10385 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
10387         * ToolBar.cs: Implement ScaleControl/ScaleCore.
10389 2007-08-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10391         * PictureBox.cs: OnAnimateImage/UpdateAnimateImage: Check if handle is still
10392           created, it might have gotten destroyed since we last checked. Fixes
10393           #82405.
10395 2007-08-11  Jonathan Pobst  <monkey@jpobst.com>
10397         * ToolTip.cs: Remove mouse in control check from mouseleave handler so
10398         tooltip will hide when mouse is moved off the control.
10399         [Fixes bug #82407]
10401 2007-08-11 Andreia Gaita <avidigal@novell.com>
10403         * WebBrowserBase.cs, WebBrowser.cs: add implementation
10404         using Mono.Mozilla for loading and navigating webcontrol
10405         with xulrunner.
10406         The initial implementation was done on 
10407         /trunk/mozembed/tests/browser , and copied here.
10409 2007-08-11  Gert Driesen  <drieseng@users.sourceforge.net>
10411         * ThemeWin32Classic.cs: On 2.0 profile, use ForeColor and BackColor of
10412         ToolTipWindow for drawing the tooltip. Fixes bug #82408.
10414 2007-08-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10416         * DataGridView.cs: Add support for an editing row. Fixes #82226.
10417           RowTemplateFull: throw an exception if a column doesn't have a template.
10418         * DataGridViewRowCollection.cs: AddInternal: if there are any editing rows,
10419           add the row just before it.
10420         * DataGridViewTextBoxCell.cs: Don't paint cells which are in edit mode as
10421           selected.
10422         * DataGridViewSelectedRowCollection.cs: Don't return the editing row. Add a
10423           DataGridView field to be able to reach the grid's editing row.
10425 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
10427         * ToolTip.cs: If the control's handle hasn't been created when it has a
10428         tooltip set on it, don't check to see if we need to show the tooltip.  This
10429         check was causing the control's handle to be created.
10430         [Fixes bug #82399]
10432 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
10434         * TextBoxBase.cs: Fix SelectionLength when no text selected to match MS:
10435                                         1.1             2.0
10436         Handle Not Created      -1              0
10437         Handle Created          0               0
10438         [Fixes bug #82371]
10440 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
10442         * ToolTip.cs: Hide the tooltip if the control is clicked to match MS behavior.
10443         [Fixes bug #82348]
10445 2007-08-09  Jonathan Pobst  <monkey@jpobst.com>
10447         * DrawToolTipEventArgs.cs: Don't dispose a brush we got from the respool.
10448         * ToolTip.cs: Implement some properties and owner draw.
10450 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10452         * DataGridView.cs: OnPaint: don't set scrollbar visibility to false then
10453           show them again, since setting visibility causes a paint, causing an
10454           endless loop (instead use a temporary and set it all when it's known if
10455           they should be shown or not). Fixes #79265.
10457 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10459         * DataGridView.cs: Only do a full column/row selection if a header was
10460           clicked and we're in Column/RowHeader selection mode. If shift and ctrl
10461           isn't pressed, deselect everything before selecting something.
10463 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10465         * DataGridView.cs: Fix SelectedRows and SelectedColumns to match MS
10466           behaviour according to bug #81075 - they are returned in the order they
10467           are selected. Fix HitTest to check if the point is within any of the
10468           headers. Allow for row/column selection when in ColumnHeader or
10469           RowHeader selection mode. Add SetSelected[Column|Row]CoreInternal for
10470           the row and column to call when their selected state changes, and
10471           updated selected_[rows|columns] whenever SetSelected* is called.
10472         * DataGridViewBand.cs: Initialize isRow correctly. Call
10473           SetSelected[Row|Column]CoreInternal when the selected state changes, and
10474           add a SelectedInternal to avoid StackOverflows.
10475         * DataGridViewColumn.cs, DataGridViewRow.cs: If DGV is ReadOnly, we're also
10476           ReadOnly no matter what.
10477         * DataGridViewSelectedColumnCollection.cs,
10478           DataGridViewSelectedRowCollection.cs: Add an InternalAddRange that adds
10479           the items in reverse order (just as MS does...)
10481 2007-08-09  Jonathan Pobst  <monkey@jpobst.com>
10483         * Application.cs: Only release menustrips if Alt (MenuKey) is pressed by
10484         itself, not part of a mnemonic.  [Fixes bug #82378]
10486 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10488         * DataGridView.cs: BeginEdit: don't allow editing of readonly cells.
10489         * DataGridViewCell.cs: Implement ReadOnly better: the cell is ReadOnly if
10490           the DGV, the column, the row, or the cell itself is readonly.
10492 2007-08-09  Gert Driesen  <drieseng@users.sourceforge.net>
10494         * ThemeNice.cs: Use XplatUI.RunningOnUnix instead of checking
10495         OSVersion.Platform.
10496         * FileDialog.cs: Same.
10497         * TextRendered.cs: Same.
10498         * FolderBrowserDialog.cs: Same.
10499         * TextBoxBase.cs: Same.
10500         * Application.cs: Same.
10501         * Cursors.cs: Same.
10502         * ThemeClearLooks.cs: Same.
10504 2007-08-09  Gert Driesen  <drieseng@users.sourceforge.net>
10506         * XplatUI.cs: Added RunningOnUnix property to be used by controls
10507         instead of duplicating these checks everywhere.
10508         * FileDialog.cs: Use case-insensitive comparison for populating the
10509         DirComboBox when not running on unix. Fixes bug #82385.
10510         * OpenFileDialog.cs: to match MS, change label of DirComboBox to 
10511         "Look in".
10513 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10515         * DataGridView.cs: SelectedRows: we need to check if selectionMode is
10516           FullRowSelect (not FullColumnSelect). Fixes #81075. Implemented
10517           BeginEdit, EndEdit, SetSelected<Cell|Row|Column>Core. Implemented row,
10518           cell and column selection with ctrl and shift pressed. Call the correct
10519           BeginEdit/EndEdit whenever we start/end editing. Move painting code to
10520           the corresponding virtual method (PaintBackground to paint background,
10521           etc).
10522         * DataGridViewCell.cs: Implement Selected correctly, we're selected if
10523           either the column, row or the cell itself is selected.
10524         * DataGridViewRowCollection.cs: Use DGV.OnRowsAddedInternal instead of
10525           OnRowsAdded.
10526         * DataGridViewRow.cs: Moved some of the painting code from DataGridView
10527           here. When the row is selected, don't select all cells. Each cell now
10528           queries the row to see if the row is selected.
10530 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10532         * DataGridViewColumn.cs: Throw if the SortMode conflicts with DataGridView's
10533           SelectionMode.
10535 2007-08-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10537         * ListView.cs: In ListViewItemsCollection check that owner is
10538         not null before trying to access it (this happens quite often
10539         using Groups). Also don't duplicate calls by calling CollectionChanged
10540         method.
10542 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
10544         * ToolStrip.cs: Record if we were activated by mouse or keyboard.  Redraw
10545         when we are dismissed to clear keyboard mnemonics.
10546         * MenuStrip.cs, ToolStripDropDown.cs, ToolStripItem.cs, 
10547         ToolStripMenuItem.cs: Record if we were activated by mouse or keyboard.
10548         * ToolStripItemTextRenderEventArgs.cs: Draw mnemonic underlines if menu
10549         was activated by keyboard or the OS tells us to always draw them.
10550         * ToolStripManager.cs: Setup storage for activated by mouse or keyboard.
10551         [Fixes bugs #82376, #82377]
10553 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
10555         * Control.cs: If no one accepts a mnemonic, let the MenuStrip have a 
10556         shot at having it because Alt was pressed.
10557         * MenuStrip.cs: When handling Alt, don't select a SystemMenuItem, select
10558         the first real menu item.
10559         * ToolStrip.cs: Don't crash when looking for a ToolStripItem to handle
10560         a mnemonic if Text is null.
10561         [Fixes bug #82374]
10563 2007-08-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10565         * ListView.cs: In ListViewItemCollection.AddItem, don't do a linear
10566         search do check whether the item is already contained in the
10567         collection or not; instead check if the owner of the item is the same
10568         as ours. Also, remove a redundant check in the same method. 
10570 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
10572         * Control.cs: Allow the clip region to be set back to null.
10573         * XplatUIWin32.cs: If we are sent a null clip region, use IntPtr.Zero.
10574         [Fixes button still showing up in bug #82370 when Show Through is turned off]
10576 2007-08-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10578         * GridEntry.cs: Add a null check.
10579         * PropertyGrid.cs: When checking for existing grid entries, ignore category
10580           entries. Fixes #82297.
10582 2007-08-07  Jonathan Pobst  <monkey@jpobst.com>
10584         * OwnerDrawPropertyBag.cs: Make the serialization constructor protected
10585         for 2.0.
10587 2007-08-07  Jonathan Pobst  <monkey@jpobst.com>
10589         * ListBox.cs: Implement ScaleControl.
10591 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10593         * Form.cs: Add a few ActiveMenu null checks. ActiveMenu might be null if we
10594           have a menu strip.
10595         * MdiWindowManager.cs: Don't create a maximized menu if the child or it's
10596           parent has a menu strip. Fixes #81689.
10598 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10600         * ToolTip.cs: We don't get mouse events on all platforms in the exact same
10601           moments, so apply some fuzzy logic to determine if the mouse is still
10602           inside a control or not. Fixes #82288 (for the third time).
10604 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10606         * Control.cs: CreateControl: create implicit children as well. Fixes #82344.
10607           Don't create the child if it has been disposed already (may happen if
10608           the user closes the form the Load event).
10610 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10612         * ToolTip.cs: If ReshowDelay is 0, show the tooltip immediately. Fixes
10613           #82288.
10615 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10617         * Control.cs: Add a null check in OnParentBindingContextChanged. The parent
10618           might call us after we've been destroyed, in which case our own private
10619           parent field is null. Fixes #82326.
10621 2007-08-06  Jonathan Pobst  <monkey@jpobst.com>
10623         * ToolStripDropDown.cs: Fix a failing test on X11 by adding a null
10624         check for setting the dropdown's owner.
10626 2007-08-06  Jonathan Pobst  <monkey@jpobst.com>
10628         * MdiClient.cs: Fix some failing tests on X11 by adding a null check
10629         before removing system menu items.
10631 2007-08-02  Jonathan Pobst  <monkey@jpobst.com>
10633         * MdiClient.cs, MdiWindowManager.cs: Support 2.0 Mdi MenuStrip
10634         folding.
10635         * MdiControlStrip.cs: Added.  These are the menu items used in mdi
10636         folding.
10637         * ToolStrip.cs: Add a null check to mnemonics.
10638         * ToolStripDropDownMenu.cs: When using a SystemMenuItem, there is
10639         no ConnectedArea.
10640         [Fixes most of bug #81689]
10642 2007-08-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10644         * PropertyGrid.cs: Add a null-check. Fixes #82289/SVGPad.
10646 2007-08-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10648         Use InitialDelay if ReshowDelay is zero. Fixes #82288.
10650 2007-08-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10652         * DataGridViewCell.cs: EditType: returns
10653           DataGridViewTextBoxEditingControl always.
10655 2007-08-01  Jonathan Pobst  <monkey@jpobst.com>
10657         * TextRenderer.cs: Remove the LineLimit string format flag from the
10658         DrawString fallback method so that things like buttons that aren't
10659         tall enough to draw a full line will still draw part of the text.
10660         [Fixes part of bug #82272]
10662 2007-08-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10664         * DataGridView.cs: Implemented AutoResizeColumn(s).
10665         * DataGridViewCellStyle.cs: Added SetAlignment, fills in a StringFormat
10666           according to the Alignment.
10667         * DataGridViewColumnHeaderCell.cs, DataGridViewTextBoxCell.cs:
10668           Implement alignment and padding when painting.
10669         * DataGridViewRow.cs: SetValues: Don't create a cell if it already
10670           exists.
10671         * DataGridViewCell.cs: Implement BorderWidths in the most primitive
10672           way.
10673         * DataGridViewColumnCollection.cs: Raise OnColumnAdded on the DGV when
10674           a column is added.
10676 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
10678         * TextBoxBase.cs: Use Control.ExplicitBounds instead of explicit_bounds,
10679         which is internal.
10681 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
10683         * ToolStrip.cs: Stub out drag and drop methods, fix some corcompare stuff,
10684         hide GetPreferredSize from public API.
10685         * ToolStripDropDown.cs: Override AllowItemReorder, fix AccessibleObject.
10686         * ToolStripItem.cs: Stub out drag and drop methods and events.
10687         * ToolStripManager.cs: Stub out Save/LoadSettings.
10688         * ToolStripOverflow.cs: Use renamed ToolStrip.GetPreferredSize.
10689         * ToolStripPanel.cs: Fix corcompare error.
10690         * ToolStripPanelRow.cs: Use renamed ToolStrip.GetPreferredSize.
10691         * ToolStripSplitButton.cs: Fix AccessibleObject stuff.
10692         * ToolStripSplitStackLayout.cs: Use renamed ToolStrip.GetPreferredSize.
10694 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
10696         * TextBoxBase.cs: In our new GetPreferredSizeCore, return the explicit
10697         bounds height instead of PreferredHeight.  Puts things back the way 
10698         they were for height while still fixing the width.  Fixes broken unit
10699         tests.
10701 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10703         * Binding.cs: Implement 2.0 constructors and add a null check.
10705 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10707         * DataGridViewRowCollection.cs: Allow a null DGV in the constructor,
10708           and fix row index (off by one).
10710 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10712         * PropertyGridView.cs: Remove debug output.
10714 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10716         * Control.cs: We need to reset the is_created flags when the handle is
10717           destroyed. Fixes #82187.
10718         * XplatUIWin32.cs: In GetWindowRect don't offset screen coordinates to
10719           client coordinates if the window doesn't have a parent.
10720           Win32GetParent returns the parent or the owner, and for top-level
10721           windows with no parent (but with an owner) we were calculating the
10722           location from the location of the owner.
10723         * Form.cs: Remove incorrect fix for #82187. Don't raise OnLoad if the
10724           form has been disposed.
10725         * MdiClient.cs: Add a null-check.
10727 2007-07-30  Jonathan Pobst  <monkey@jpobst.com>
10729         * TextBoxBase.cs: TextBoxBase reports itself at AutoSize, but doesn't
10730         actually do auto-sizing.  Override the internal GetPreferredSizeCore 
10731         so we can provide an implementation that returns the current width
10732         and preferred height.  Allows anchor = right to work with TextBox 2.0.
10733         [Fixes bug #82233]
10735 2007-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10737         * ListView.cs: Add support for navigating items in Groups mode, by
10738         creating a big matrix containing all rows and cols of all groups. When
10739         are in other mode than Details, pressing Up should have a similar
10740         behaviour as that one of Down (moving to the next available column if
10741         current one doesn't have an item in the requested row). Also, don't
10742         proceed to use groups if ShowGroups is false.
10743         * ListViewGroup.cs: Add an internal int field to store the starting
10744         row of the group (used by the big matrix used for navigating the
10745         ListView).
10746         * ThemeWin32Classic.cs: Don't draw headers if ListView.ShowGroups is
10747         false.
10749 2007-07-30  Jonathan Pobst  <monkey@jpobst.com>
10751         * ToolStripDropDown.cs: When we do Show, start with the 
10752         DefaultDropDownDirection, but if our popup menu is going to off-screen,
10753         modify the direction to keep it on screen.  [Fixes bug #82210]
10755 2007-07-29  Gert Driesen  <drieseng@users.sourceforge.net>
10757         * FileDialog.cs: Accept any FilterIndex value, and store it
10758         unmodified. When FilterIndex is less than 1, or greater than number
10759         of filters, then default to first filter. Only add filter extension to
10760         file if user did not specifiy an extension. When type of dialog is
10761         OpenFileDialog and DefaultExt is set, then only use filter extension
10762         if: CheckFileExists is true and no file wih the default extension
10763         exists, or CheckFileExists is false, and user specified file does not
10764         exist. When CheckFileExists is true, then add first extension of 
10765         selected filter that matches existing file. Perform checks for
10766         existing file, overwrite and create after extension has been added to
10767         file name. When CheckFileExists is true and type is SaveFileDialog,
10768         then only consider first filter extension if DefaultExt is set.
10769         When CheckFileExists is true, then ignore DefaultExt if file with that
10770         extension does not exist. Also perform check for existing file when
10771         type is SaveFileDialog. Changed some field to constants.
10773 2007-07-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10775         * ListView.cs: Take into account the region used by header
10776         control when doing the vertical scroll (this way we invalidate
10777         the precise area, and don't get any dirty one).
10779 2007-07-27  Everaldo Canuto  <ecanuto@novell.com>
10781         * FileDialog.cs: Check for valid filterIndex on button open/save. 
10782         Fixes #82184.
10784 2007-07-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10786         * ListView.cs: Update some layout calculations in details view
10787         and clean the code in a pair of assignations.
10789 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
10791         * ComboBox.cs, ContainerControl.cs, DataGrid.cs, FontDialog.cs, Label.cs,
10792         LinkLabel.cs, ListBox.cs, ListView.cs, ListViewItem.cs, MessageBox.cs,
10793         MonthCalender.cs, StatusBar.cs, ThemeClearlooks.cs, ThemeWin32Class.cs,
10794         ToolBar.cs, TreeView.cs: First pass at using thread-safe string measuring.
10796 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
10798         * TextRenderer.cs: Use [ThreadStatic] instead of locks to improve
10799         performance of thread-safe Graphic methods.  (Thanks rolf!)
10801 2007-07-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10803         * ListView.cs: When doing the layout calculations, don't calculate
10804         scroll bars before handle is created. This is unnecessary and also
10805         calculating them before handle creation item causes a number of random
10806         bugs (which begin to appear after Chris' big patch for handle creation
10807         fixes). 
10809 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
10811         * TextRenderer.cs: Create thread-safe versions of Graphics.MeasureString
10812         for things that don't have a Graphics object.  Currently, things just use
10813         the static Hwnd.bmp_g which is not thread safe.
10815 2007-07-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10817         * Form.cs: ShowDialog: don't destroy handles if the dialog is a common
10818           dialog. Fixes #82187.
10820 2007-07-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10822         * DataGridViewElement.cs: Initialize state.
10823         * DataGridView.cs: Forward a few Mouse events to cells. Add
10824           GetRowInternal and GetCellInternal that doesn't unshare rows.
10825           Implement GetCellDisplayRectangle. HitTest: if the row is shared,
10826           don't use the index, but look it up. Add
10827           DataGridViewControlCollection.RemoveInternal to remove controls
10828           that Remove won't remove (scrollbars, edit control).
10829         * DataGridViewColumn.cs: Initialize State correctly.
10830         * DataGridViewColumnHeaderCell.cs, DataGridViewComboBoxCell.cs,
10831           DataGridViewHeaderCell.cs, DataGridViewRowHeaderCell.cs: Started
10832           implementing this.
10833         * DataGridViewRowCollection.cs: Implemented shared rows.
10834         * DataGridViewRow.cs: Throw exceptions as MS do.
10835         * DataGridViewCell.cs: A few properties are implemented by a
10836           Get<Property> method, so move implementation there and remove the
10837           NIEX in the method. Add a bunch of OnXInternal that DataGridView
10838           calls when necessary.
10839         * DataGridViewComboBoxEditingControl.cs: Remove a few NIEX'es that just
10840           complicates matters.
10841         * DataGridViewCellCollection.cs: Add a GetCellInternal that doesn't
10842           unshare any rows.
10844 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
10846         * UpDownBase.cs: We cannot override SetBoundsCore for 2.0, which was relayout-ing
10847         the children controls.  Instead, we will just set up the proper docking for the
10848         children controls so we don't have to worry about it.  [Fixes bug #82188]
10850 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
10852         * TreeView.cs, NodeLabelEditEventArgs.cs, LabelEditTextBox.cs: Support edit
10853         canceling and correct Before/AfterLabelEdit properties as layed out in bug
10854         81847.  [Fixes bug #81847]
10856 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
10858         * Label.cs: If AutoSize = true and a width or height is set, ignore it and
10859         redo the autosize.  VS2005 defaults to setting the AutoSize, and then setting
10860         an explicit size based on the design-time size of the text.  Since our fonts
10861         may not match this explicit size, we tend to cut off the ends of people's labels.
10863 2007-07-24  Jonathan Pobst  <monkey@jpobst.com>
10865         * Menu.cs: Add some missing methods to MenuItemCollection.
10867 2007-07-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10869         * DataGridView.cs: Added RowTemplateFull, creates a row from the templates in the columns.
10870         * DataGridViewBand.cs: DefaultHeaderCellType: initialize correctly. Resizable: if not set, check DGV.
10871         * DataGridViewColumn.cs: InheritedAutoSizeMode: if not set, check DGV. Resizable: delegate to base class. ToolTipText: Never return null. Initialize a few other properties correctly.
10872         * DataGridViewColumnCollection.cs: Add: Default column is a TextBoxColumn.
10873         * DataGridViewComboBoxCell.cs: Started implementing this, lots left still.
10874         * DataGridViewElement.cs: State defaults to Visible.
10875         * DataGridViewRowCollection.cs: Add: creates the new row based on a template.
10876         * DataGridViewTextBoxColumn.cs: SortMode: delegate to base class, but initialize to Automatic. ToString: implement correctly.
10878 2007-07-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10880         * Control.cs: Minor 1.1 corcompare fix.
10882 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
10884         * LinkLabel.cs, PrintPreviewDialog.cs, TabPage.cs, TextBox.cs,
10885         TextBoxBase.cs, ToolBar.cs: 2.0 corcompare work.
10887 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10889         * DataGridViewLinkColumn.cs, DataGridViewRowCollection.cs,
10890           DataGridViewImageColumn.cs, DataGridViewSelectedCellCollection.cs,
10891           DataGridViewComboBoxCell.cs, DataGridViewLinkCell.cs,
10892           DataGridViewSelectedColumnCollection.cs,
10893           DataGridViewSelectedRowCollection.cs: Corcompare work.
10895 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
10897         * PrintDialog.cs: Stub UseEXDialog.  I chose to stub this because
10898         it is autoset by VS2005 designer and the effect is barely noticeable.
10900 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
10902         * TreeView.cs: Implement HitTest.
10904 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10906         * DataGridViewTextBoxCell.cs: Use DGV.EditControlInternal instead of
10907           manually adding and removing the control from the Controls
10908           collecftion.
10909         * DataGridView.cs: Implement DataGridViewControlCollection. Add an
10910           EditingControlInternal property that tracks the editing control.
10911           Always keeping the scrollbars in the Controls collection, as MS
10912           testing confirms is the right behaviour.
10914 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10916         * ScrollableControl.cs: Fix implementation of AutoScrollPosition
10917           according to MSDN and new test.
10919 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
10921         * TreeNode.cs: Implement ToolTipText.
10922         * TreeView.cs: Implement tooltips, NodeMouse* events.
10924 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
10926         * TreeView.cs: Implement OnNodeMouseClick and OnNodeMouseDoubleClick.
10928 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
10930         * TreeNode.cs: Implement ContextMenu, ContextMenuStrip, and Level.
10931         * TreeView.cs: Use the node's contextmenu[strip] if applicable.
10933 2007-07-20  Ivan N. Zlatev  <contact@i-nz.net>
10935         * Control.cs, Form.cs, ContainerControl.cs,
10936         ScrollableControl.cs, ButtonBase.cs:  Added ShouldSerialize
10937         for misc properties.
10939 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
10941         * TreeNode.cs: Implement StateImageIndex and StateImageKey.
10942         * TreeView.cs: Implement StateImageList.
10944 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10946         * Form.cs: Don't check if the current form is the active form before
10947           activating it. Fixes #81904.
10949 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10951         * Form.cs: Don't check if the current form is the active form before
10952           activating it. Fixes #81904.
10954 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10956         * TreeView.cs: Apply patch from Tyron (tmm@aon.at). Fixes #81847.
10958 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10960         * Form.cs: Don't try to position the form after loading if the form was
10961           disposed. Fixes #81969.
10963 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10965         * PropertyGrid.cs, PropertyGridView.cs: Implemented 2.0 methods and
10966           properties. Had to change ToolBar into ToolStrip, which required a
10967           few #ifs.
10969 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10971         * PropertyGrid.cs: PropertyToolBar: Redraw the entire toolbar when it's
10972           resized, fixes part of #79829 (vertical lines in toolbar).
10973           PropertyGrid: Refactored Populate* to something that's easier to
10974           follow at least for me, as well as splitting it up into several new
10975           methods, required to update only subitems when something has
10976           changed by a popup editor or listbox. Don't use events to check
10977           when any values are changed, since the events are unreliable (we're
10978           changing the objects the events are registered with, and if the
10979           event handling requires the objects to be immutable (objects stored
10980           in hashtables for instance), the events will never be raised).
10981         * PropertyGridView.cs: Call PropertyGrid.PropertyValueChangedInternal
10982           everytime we change a value, since events are unreliable.
10983           DropDownButtonClicked: For the same reason don't compare objects to
10984           check if it has changed or not, it would require all objects to
10985           derive Equals. Fix dialog location on windows, MS is doing weird
10986           things when creating parented forms.
10987         * GridEntry.cs: Add a SelectedObject setter.
10989 2007-07-19  Jonathan Pobst  <monkey@jpobst.com>
10991         * TreeNode.cs: Add some corcompare attributes.
10992         * TreeNodeCollection.cs: Implement 2.0 stuffs.
10993         * TreeView.cs: Implement some 2.0 stuffs.
10995 2007-07-18  Andreia Gaita  <avidigal@novell.com>
10997         * WebBrowser.cs, WebBrowserBase.cs: add some more MonoTODOs now
10998         for moma.
11000 2007-07-19  Jonathan Pobst  <monkey@jpobst.com>
11002         * ListBox.cs: Implement custom tab offsets.
11004 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
11006         * ToolStripContentPanel.cs: Support System renderer.
11007         * ToolStripControlHost.cs: Set RightToLeft to default to No.
11009 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
11011         * ScrollableControl.cs: Don't mess up the user's explicit bounds.
11013 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
11015         * CheckBox.cs: Chain TextAlign to base implementation instead of
11016         maintaining another one.
11018 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
11020         * ButtonBase.cs: Fix an incorrect string constant.
11022 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
11024         * TextRenderer.cs: Use the static Graphics context in Hwnd instead
11025         of creating one for measuring strings.
11027 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
11029         * ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownMenu.cs: 
11030         Implement MaxItemSize.
11032 2007-07-17  Jonathan Pobst  <monkey@jpobst.com>
11034         * Control.cs: Remove per-control 1x1 Bitmap and Graphics context used
11035         for DeviceContext.  Instead, use the static one available in Hwnd.
11036         Informal tests show this saves about 500k on formtest.exe.
11038 2007-07-17  Jonathan Pobst  <monkey@jpobst.com>
11040         * ContainerControl.cs: Implement 2.0 AutoScaling.
11042 2007-07-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11044         * ComboBox.cs: Work around bug #82120 (bug in mcs).
11046 2007-07-16  Jonathan Pobst  <monkey@jpobst.com>
11048         * ThemeWin32Classic.cs: Allow a Flat button to be Focused and Entered.
11049         Darken the focus color.
11051 2007-07-16  Jonathan Pobst  <monkey@jpobst.com>
11053         * ListBox.cs: When measuring items, if it's a CheckedListBox, add room
11054         for the checkbox.
11055         * ThemeWin32Classic.cs: Make the checkbox bigger in a CheckedListBox and use
11056         X, Y instead of a rect for drawing text.
11057         - For ControlPaint.DrawCheckBox, center the check a little better when the
11058         checkbox is odd width.  When drawing a flat checkbox, use a white background
11059         when state != inactive.
11060         [Fixes bugs #82097, 82100]
11062 2007-07-16  Gert Driesen  <drieseng@users.sourceforge.net>
11064         * ListControl.cs: When changing CurrencyManager, disconnect event
11065         handlers from previous one. Fixes bug #81771. Code formatting.
11067 2007-07-15  Andreia Gaita <avidigal@novell.com>
11069         * PrintPreviewControl.cs: Remove extraneous Invalidate calls. Separate
11070         full preview invalidation from layout invalidation, and only invalidate
11071         the layout when setting zoom or other properties. Invalidation should
11072         always be done even when resetting properties with the same values as
11073         what is there. Fixes #81744 and #79830.
11075 2007-07-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11077         * ListView.cs: Implement initial support for Groups. Split some of the
11078         LayoutIcons code to render a partial list of the items (needed by
11079         items contained in ListViewGroup instances). Let the
11080         ListViewItemsCollection.ListView property be modifiable (needed when
11081         using Groups, too).
11082         * ListViewGroup.cs: Use a Bounds property rather than a Location
11083         one. Also invalidate the bounds when they get changed.
11084         * ThemeWin32Classic.cs: When drawing items, also draw the group header
11085         if ListView.Groups.Count is bigger than 0. Add a DrawListViewGroupHeader
11086         method as well.
11088 2007-07-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11090         * ListView.cs: When space gets pressed and CheckBoxes is true, 
11091         don't invoke the Begin and EndUpdate methods. We are generating 
11092         a redraw of the entire control without need to do so.
11094 2007-07-13  William Holmes <billholmes54@gmail.com> 
11096         * Control.cs: Changing logic in FindFlatForward and 
11097           FindFlatBackward to handle multiple Controls with 
11098           the same TabIndex.  
11099           This fixes bug 81687.
11101 2007-07-13  Jonathan Pobst  <monkey@jpobst.com>
11103         * OSFeature.cs: Enable IsPresent.
11105 2007-07-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11107         * Control.cs: Don't do anything in WmShowWindow if the control has been
11108           disposed. We can get WM_SHOWWINDOW after a control is disposed: a
11109           control is created, put on a form, the control is disposed (the
11110           form is never shown), and then we get a MapNotify, triggering a
11111           WM_SHOWWINDOW.
11112         * Form.cs: Exclude the current form when sending Deactivate to all
11113           MdiChildren.
11114         * NativeWindow.cs: Set WindowCreating to null as soon as possible,
11115           there was a race condition because assigning the handle raises
11116           events, we can get more messages, therefore trying to assign the
11117           handle again, which would fail if any of those event handlers
11118           closed/disposed the control.
11120 2007-07-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11122         * Form.cs: Make the fix for #80775 windows-only (fixes #81957).
11124 2007-07-12  Jonathan Pobst  <monkey@jpobst.com>
11126         * SystemInformation.cs, Theme.cs, XplatUI.cs, XplatUIDriver.cs,
11127         XplatUIWin32.cs: Implement SystemInformation 2.0 properties.
11129 2007-07-12  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11131         * DateTimePicker.cs: If there's no part format specifier, return an
11132           empty string.
11134 2007-07-12  Jonathan Pobst  <monkey@jpobst.com>
11136         * FlatButtonAppearance.cs: Throw NotSupportedException for a
11137         Transparent BorderColor.
11139 2007-07-12  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11141         * DataGridView.cs, TextControl.cs, ProgressBar.cs, PrintDialog.cs,
11142           MessageBox.cs, ButtonBase.cs, PageSetupDialog.cs, NumericUpDown.cs,
11143           X11Dnd.cs, Binding.cs, DataGrid.cs, AxHost.cs,
11144           LinkLabelLinkClickedEventArgs.cs, TextRenderer.cs, Label.cs,
11145           LinkLabel.cs, TreeNode.cs, BindingSource.cs, TabPage.cs,
11146           TextBoxBase.cs, BindingNavigator.cs, Application.cs,
11147           ToolStripPanel.cs, TabControl.cs, ThemeClearlooks.cs, TreeView.cs:
11148           Remove warnings.
11149         * X11Structs.cs: Remove warnings, add ToString implementations.
11151 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11153         * XplatUIX11.cs: Translate min/max size according to the actual min/max
11154           size, and not the current size. Fixes #81798.
11156 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11158         * XplatUIX11.cs: Fix #80822 again (DefWndProc can be reached before
11159           XplatUI.CreateWindow returns, in which case the hwnd isn't assigned
11160           to the control yet).
11162 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11164         * PropertyGridTextBox.cs: Add a method that sends any forwarded
11165           mousedowns to the contained textbox.
11166         * X11Structs.cs: More ToString implementation.
11167         * PropertyGridView.cs: Forward any mousedowns to the textbox, fixes
11168           #81791.
11170 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11172         * PropertyGridView.cs: Add a null-check, fixes a few tests.
11174 2007-07-10  Jonathan Pobst  <monkey@jpobst.com>
11176         * TableLayoutPanelCellPosition.cs: TypeConverter.
11178 2007-07-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11180         [ Fixes #79761]
11181         
11182         * PropertyGridTextBox.cs: Propagate any color changes to all contained
11183           controls.
11184         * PropertyGridView.cs: A few color fixes.
11186 2007-07-10  Jackson Harper  <jackson@ximian.com>
11188         * TextControl.cs: Remove some old unused text formatting stuff.
11190 2007-07-10  Jackson Harper  <jackson@ximian.com>
11192         * TreeView.cs: Update full row select invalidation to match the
11193         newer DrawSelection... method.
11194         - Make sure to invalidate the entire width when selecting a new
11195         node, if we have full row selection enabled.
11197 2007-07-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11199         * PropertyGridView.cs: Fix for #81800, makes text show up on initial
11200           display of properties again.
11202 2007-07-10  Jonathan Pobst  <monkey@jpobst.com>
11204         * ListBox.cs: Add IntegerCollection and Add, Clear, Remove
11205         to existing collections.
11207 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
11209         * AccessibleObject.cs, RadioButton.cs: Fix some base classes
11210         that changed between 1.1 and 2.0.
11212 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
11214         * PowerStatus.cs: Added.  This is just a data class, it is filled
11215         in by SystemInformation.
11217 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
11219         * Message.cs: Add op_Equality and op_Inequality.
11221 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
11223         * MenuStrip.cs: Finish corcompare work.
11225 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
11227         * LinkArea.cs: Add op_Equality and op_Inequality.
11229 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
11231         * Application.cs: Add MessageLoopCallback delegate.
11233 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
11235         * ListBox.cs: First set of 2.0 stuffs.
11237 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
11239         * Control.cs: Make an internal Height property we can override
11240         without messing up the public API.
11241         * ListBox.cs: Override HeightInternal to always return the size
11242         the user set.  [Fixes bug #80466]
11244 2007-07-08  Jonathan Pobst  <monkey@jpobst.com>
11246         * TableLayoutPanel.cs: Add a null check so we don't NRE trying to
11247         paint cell borders if we haven't calculated where they go yet.
11248         [Fixes bugs #82040 and #82041]
11250 2007-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11252         * ListView.cs: In Details view, set the location of item_control
11253         in the (0,0) position (and the header_control is thus on the
11254         item_control). This way the Bounds of the Items are relative to the
11255         ListView control (before this, they had a Bounds value without the
11256         header_control offset, which wasn't matching .Net). Fixes #82004.
11258 2007-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11260         * ListControl.cs: When DataSource is set to null, pass an empty
11261         array of object to SetItemsCore. This is done to clean the items
11262         in the ListContol children. Fixes #81788.
11264 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
11266         * ListControl.cs: Add 2.0 stuffs.
11268 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
11270         * Label.cs: Finish up 2.0 stuffs.  Replace calls to Refresh with Invalidate,
11271         Refresh is overkill for just about every repaint request.
11273 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
11275         * ToolStripItem.cs: TextDirection getter handles looking up Inherit for us,
11276         so remove my custom Get method and fix the property getter.
11278 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
11280         * Label.cs: DefaultMargin for 2.0.
11282 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
11284         * ComboBox.cs: Override IsInputCharInternal and return true.  Fixes 
11285         reported issue where other controls with mnemonics would steal strokes
11286         from a selected ComboBox.
11288 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
11290         * ScrollOrientation.cs: Make internal for 1.1.
11291         * ScrollEventArgs.cs: Add 2.0 stuffs.
11293 2007-07-05  Jonathan Pobst  <monkey@jpobst.com>
11295         * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
11296         ToolStripItem.cs, ToolStripItem.cs, ToolStripItemTextRenderEventArgs.cs,
11297         ToolStripRenderer.cs, ToolStripSeparator.cs: Implement TextDirection.
11299 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11301         * ListViewItem.cs: Implement the small 2.0 GetSubItemAt method.
11303 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11305         * ListView.cs: Implement the so-incredibly broken 2.0 
11306         VirtualItemsSelectionRangeChanged event.
11308 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11310         * ListView.cs: When enter is pressed and selection is non empty,
11311         an OnItemActivate event must be fired.
11313 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11315         * ListView.cs: Store the FocusedItem information as an
11316         int instead of a ListViewItem (needed by VirtualMode).
11317         Update the calls to SetFocusedItem to pass an index instead of
11318         an item.
11319         * ListViewItem.cs: Likewise. Also, in VirtualMode retrieve
11320         the Focused state from the owner ListView. 
11322 2007-07-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11324         * ListView.cs: Set ListView.focused_item from ListViewItem.Focused
11325         property. Also, invalidate previous focused item in the mentioned
11326         property (match .Net).
11328 2007-07-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11330         * ListView.cs: Implement 2.0 FocusedItem property setter.
11332 2007-07-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11334         * ListView.cs: Implement 2.0 TopItem property setter.
11336 2007-07-03  Jonathan Pobst  <monkey@jpobst.com>
11338         * StatusStrip.cs: The default renderer is System.
11339         * ToolStrip.cs, ToolStripManager: Now that we have System renderer, use it 
11340         if the user specifies it.
11341         * ToolStripDropDown.cs: Don't reset our Renderer on changing OwnerItem
11342         if we are ManagerRenderMode.
11343         * ToolStripMenuItem.cs: Calculate our text color better.
11344         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Move some stuff
11345         from Professional to the base class based off working with the System renderer.
11346         * ToolStripSystemRenderer.cs: Added.
11348 2007-07-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11350         * ListView.cs: I'm so lame - the real name is HitTest, not HitInfo.
11352 2007-07-02  Jonathan Pobst  <monkey@jpobst.com>
11354         * ToolTip.cs: Implement 2.0 Tag property.
11356 2007-06-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11358         * ListView.cs: Implement 2.0 HitTest methods.
11360 2007-06-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11362         * ListViewItem.cs: Add a 2.0 bool Hot property, to tell whether the
11363         item is under the pointer or not (sugar). Also remove the TODO
11364         regarding to the cursor changes in OneClick activation.
11365         * ThemeWin32Classic.cs: When HotTracking is true and we are drawing
11366         the subitems use the parent's HotFont if UseItemStyleForSubItems is
11367         true; otherwise don't show the underline style.
11369 2007-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11371         * ListView.cs: In ItemControl.ItemsMouseMove, refactor
11372         the code to retrieve the item at position only one time. Also
11373         change cursor when Activation is ItemActivation.OneClick as well
11374         as invalidate the item if HotTracking is true (to show/hide the
11375         underline style). Add an internal HotItemIndex property to retrieve
11376         the current hot item's index.
11377         * ListViewItem.cs: Add an internal HotFont property to cache the
11378         font used when HotTracking is true and the pointer moves within the
11379         item's borders.
11380         * ThemeWin32Classic.cs: When drawing the item's text, use Font or
11381         HotFont depending on the hot state of the item.
11383 2007-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11385         * ListView.cs: Implement 2.0 HotTracking property.
11387 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
11389         * ToolStripControlHost.cs: If our hosted control never got created,
11390         don't try to dispose it.  [Fixes bug #81909]
11392 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
11394         * TableLayoutPanel.cs: Implement ScaleCore, ScaleControl.
11396 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
11398         * TableLayoutPanel.cs: Implement CellBorderStyle.  [Fixes bug #81884]
11400 2007-06-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11402         * ThemeWin32Classic.cs: In OwnerDraw mode draw subitems only for 
11403         Details view.
11404         * DrawListViewColumnHeaderEventArgs.cs:
11405         * DrawListViewSubItemEventArgs.cs: Add padding to the bounds when drawing text
11406         using the DrawText () methods.
11408 2007-06-19  Jonathan Pobst  <monkey@jpobst.com>
11410         * ToolStripProfessionalRenderer.cs: Put back clearing a ToolStripDropDown's
11411         background which got erased in my changes yesterday.
11413 2007-06-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11415         * ListViewItem.cs: Actually set bounds for subitems in Details view
11416         (2.0 feature).
11417         * ThemeWin32Classic.cs: Refactor the drawing code for subitems, so we
11418         can invoke from the owner draw routines if we need it. Also, add
11419         support for Owner draw in Details view.
11421 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
11423         * ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripLabel.cs,
11424         ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs: Respect the
11425         ShowImageMargin setting, properly align text in a ToolStripLabel
11426         hosted on a ToolStripDropDown.
11428 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
11430         * ToolStrip.cs, ToolStripContentPanel.cs, ToolStripDropDownMenu.cs,
11431         ToolStripProfessionalRenderer.cs: Refactor and clean up some rendering code.
11433 2007-06-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11435         * DrawListViewSubItemEventArgs.cs: Actually implement its methods.
11437 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
11439         * ToolStripLabel.cs: If the label is on a dropdown, adjust the text
11440         location to match ToolStripMenuItems.
11442 2007-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11444         * DrawListViewColumnHeaderEventArgs.cs:
11445         * ThemeWin32Classic.cs: Implement 2.0 OwnerDraw support for
11446         column headers in ListView. 
11448 2007-06-15  Jonathan Pobst  <monkey@jpobst.com>
11450         * UserControl.cs: Implement AutoSize.
11452 2007-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11454         * DrawListViewItemEventArgs.cs:
11455         * ListView.cs:
11456         * ThemeWin32Classic.cs: Implement basic support for 2.0 OwnerDraw in
11457         ListView.
11459 2007-06-15  Jonathan Pobst  <monkey@jpobst.com>
11461         * ToolStripDropDownItemAccessibleObject.cs: Added.
11462         * ToolStripDropDownItem.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
11463         ToolStripOverflow.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
11464         ToolStripProgressBar.cs, ToolStripSeparator.cs, ToolStripSplitButton.cs,
11465         ToolStripTextBox.cs: corcompare work.
11467 2007-06-14  Jonathan Pobst  <monkey@jpobst.com>
11469         * OSFeature.cs, StatusStrip.cs, TabControl.cs, TableLayoutSettings.cs,
11470         TableLayoutStyle.cs, TableLayoutCollection.cs, ToolStripContentPanel.cs,
11471         ToolStripControlHost.cs, ToolStripDropDown.cs, ToolStripDropDownButton.cs:
11472                 corcompare.
11474 2007-06-14  Jonathan Pobst  <monkey@jpobst.com>
11476         * OSFeature.cs: Add IsPresent.
11477         * PrintPreviewControl.cs: Add RightToLeft.
11478         * SplitContainer.cs: Add AutoScrollOffset, ScaleControl.
11479         * SplitterPanel.cs: Add AutoSizeMode.
11481 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
11483         * LayoutEventArgs.cs: Add 2.0 AffectedComponent.
11484         * MdiClient.cs: Add 2.0 ScaleControl.
11485         * NativeWindow.cs: Implement 2.0 interface IWin32Window.
11486         * NumericUpDownAccelerationCollection.cs: Add [ListBinding].
11488 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
11490         * Form.cs: Implement some scaling methods, stub some RTL methods,
11491         corcompare work.
11493 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
11495         * Control.cs: corcompare work.
11496         * FlatButtonAppearance.cs, FolderBrowserDialog.cs: Add TypeConverters.
11498 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
11500         * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Implement
11501         ControlPaint 2.0 stuffs.
11503 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
11505         * ThreadExceptionDialog.cs: Add 2.0 stuffs.
11507 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
11509         * UpDownBase.cs: Add 2.0 stuffs.
11511 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
11513         * NumericUpDown.cs: Add 2.0 stuffs.
11515 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
11517         * NotfiyIcon.cs: Add MouseDoubleClick event, hook up MouseClick event.
11519 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
11521         * ErrorProvider.cs: Implement 2.0 stuffs.
11523 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
11525         * DomainUpDown.cs: Implement 2.0 stuffs.
11527 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
11529         * CheckedListBox.cs: Fix RefreshItems signature.
11531 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
11533         * PictureBox.cs: Implement 2.0 stuffs.
11535 2007-06-12  Andreia Gaita  <avidigal@novell.com>
11536         
11537         * TabControl.cs: Check if there are tabpages before checking
11538         the selected index - fix #81802 (font changes raise a ResizeTabs
11539         call on controls.add, which blew up nicely with no tabpages)
11541 2007-06-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11543         * ListView.cs:
11544         * ListViewItem.cs: Implement 2.0 ItemSelectionChanged event.
11546 2007-06-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11548         * ListView.cs:
11549         * ListViewItem.cs: In VirtualMode the selection information
11550         resides in the ListView, rather than in the Items. Also, throw
11551         InvalidOperationExceptions when VirtualMode is being used and
11552         CheckedItemCollection is accessed.
11554 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
11556         * ComboBox.cs: Add ScaleControl.
11558 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
11560         * ButtonBase.cs: ButtonBaseAccessibleObject.State should not be visible to 1.1.
11562 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
11564         * GroupBox.cs: Add 2.0 stuffs.
11566 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
11568         * Panel.cs: Add autosize properties/event.
11570 2007-06-07  Jonathan Pobst  <monkey@jpobst.com>
11572         * Control.cs:
11573         - When we remove a control, remove it from the collection before performing the layout.
11574         - Setup an internal property for explicit_bounds.
11575         - Don't let the UpdateBounds in CreateHandle overwrite our explicit bounds.
11576         - Perform a layout when we set a new AutoSizeMode.
11578 2007-06-07  Jonathan Pobst  <monkey@jpobst.com>
11580         * ScrollableControl.cs: Add 2.0 stuffs.
11582 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
11584         * ScrollBar.cs: Add 2.0 stuffs.
11586 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
11588         * Splitter.cs: Add 2.0 stuffs.
11590 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
11592         * SplitContainer.cs: Apply patch from Neil Cawse <neilcawse@geotab.com>
11593         to have BindingContext simply use base implementation.
11595 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
11597         * ColumnHeader.cs: corcompare fix.
11599 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
11601         * Button.cs: corcompare fixes.
11602         * ButtonBase.cs: corcompare fixes, add ButtonBaseAccessibleObject.State.
11604 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
11606         * Button.cs: Override GetPreferredSizeCore.
11607         * ButtonBase.cs: PerformLayout after changing properties that can affect
11608         AutoSize.  Simplify some mouse/keyboard code.
11609         * Control.cs: PerformLayout after changing Padding if AutoSize = true.
11610         * MouseEventArgs.cs: Make Location internal for 1.1.
11611         * TextRenderer.cs: Make MeasureTextInternal (string, Font, bool) internal for 1.1.
11612         * Theme.cs: Add CalculateButtonAutoSize.
11613         * ThemeWin32Classic.cs: Implement CalculateButtonAutoSize.
11615 2007-06-05  Miguel de Icaza  <miguel@novell.com>
11617         * TreeNodeCollection.cs: Applied patch from Neil Cawse <neilcawse@geotab.com>
11619 2007-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11621         * ListViewItem.cs: We can't cache Bounds in VirtualMode 
11622         since we can get different item instances every time we retrieve it.
11624 2007-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11626         * ListView.cs: Work around for #81602, since an unkown an pretty
11627         infrequent condition appears only in some systems (old linux boxes, it
11628         seems).
11630 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
11632         * Button.cs: Completely reformat and a little refactor to bring
11633         this closer to Mono circa 2007.
11635 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
11637         * CheckBox.cs, Form.cs, RadioButton.cs: Change call to ButtonBase.Redraw
11638         to be ButtonBase.Invalidate.
11640 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
11642         * ButtonBase.cs: GetPreferredSize is 2.0 only.  Fixes build.
11644 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
11646         * ButtonBase.cs: Completely reformat and a little refactor to bring
11647         this closer to Mono circa 2007.
11649 2007-06-01  Everaldo Canuto  <ecanuto@novell.com>
11651         * Label.cs: Fixes preferred sizes for 2.0 profile, also adjust some
11652         values for autosize. Fixes #80137.
11654 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
11656         * Control.cs: Don't perform layout when AutoSize changes.
11657         * Form.cs: Perform layout in AutoSize override.  Don't set ClientSize
11658         directly when autosizing, use SetBounds with BoundsSpecified.None.
11659         Fixes unit tests my last commit broke.
11661 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
11663         * Control.cs: Perform layout when AutoSize changes.
11664         * Form.cs: Implement AutoSizing.
11666 2007-06-01  Chris Toshok  <toshok@ximian.com>
11668         * DataGrid.cs: remove the XXX'ed check at the top of
11669         ProcessGridKey.  fixes #80464.
11671 2007-06-01  Chris Toshok  <toshok@ximian.com>
11673         * DataGridTextBoxColumn.cs: TextBox.TextChanged event handler
11674         adding idempotent (add/remove in Edit()), and also make sure we
11675         don't add it until after we set the text, so it's not tripped in
11676         Edit().  Fixes unit test regression.
11678 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
11680         * Control.cs: In UpdateBounds, only recalculate anchor distances if the
11681         change is user explicit, not when the layout engine moves stuff.  Fixes
11682         anchoring to bottom and right.  [Fixes bug #81790]
11684 2007-06-01  Andreia Gaita  <avidigal@novell.com>
11686         * PrintDialog.cs: Add collation preview thumbnails. Fixes #80726.
11688 2007-06-01  Andreia Gaita  <avidigal@novell.com>
11690         * ContainerControl.cs: 
11691         Fire enter event for common ancestor if it is not a ContainerControl.
11692         Send focus to the active_control and not the 'value', the active 
11693         control might have been changed in one of the events fired.     
11694         Definitely fixes #80159.
11696 2007-06-01  Andreia Gaita  <avidigal@novell.com>
11698         * DataGrid.cs: Finish editing when focus leave the datagrid. Fixes #80159.
11700 2007-06-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11702         * PropertyGrid.cs: Anchor the help description to the bottom of the
11703           help panel and refactor SelectGridItem into a
11704           SelectGridItemInternal that can be set to null (and update it to
11705           clear the help texts when it is set to null). Set root item to null
11706           when there's no SelectedObject. Fixes #80438.
11707         * ScrollableControl.cs: In Recalculate we need to ResumeLayout(true)
11708           when we're recalculating after a resize (only).
11710 2007-05-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11712         * ListView.cs: Implement 2.0 RedrawItems method.
11714 2007-05-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11716         * ListControl.cs: Disconnect PositionChanged and ItemChanged
11717         handlers from previous data manager when DataSource is set to
11718         null. Fixes #81771.
11720 2007-05-31  Jackson Harper  <jackson@ximian.com>
11722         * TextBoxBase.cs: These seem to be the correct values.
11724 2007-05-31  Everaldo Canuto  <ecanuto@novell.com>
11726         * FileDialog.cs: When close dialog with ok set filterindex using combobox
11727         value. Fixes #81784.
11729 2007-05-31  Jonathan Pobst  <monkey@jpobst.com>
11731         * Control.cs: Implement 2.0 scaling methods.
11733 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11735         * ProgressBar.cs, WebBrowserBase.cs, Control.cs, MaskedTextBox.cs,
11736           MessageBox.cs, PropertyGrid.cs, RichTextBox.cs: Fix warnings and
11737           corcompare issues.
11739 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11741         * ProgressBar.cs: Implemented missing 2.0 members.
11743 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11745         * Control.cs: Corcompare issues.
11746         * MessageBox.cs: Implemented missing 2.0 functions.
11748 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11750         * CheckedListBox.cs, ListBox.cs, ListControl.cs, ComboBox.cs:
11751           Implemented more 2.0 members.
11753 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11755         * Application.cs: Try to avoid NRE when Assembly.GetEntryAssembly is
11756           null (strange, but it seems to happen when running unit tests).
11758 2007-05-30  Andreia Gaita  <avidigal@novell.com>
11760         * ContainerControl.cs: Set active_control even earlier, before 
11761         firing any events, and undo it if validation returns false.
11763 2007-05-30  Andreia Gaita  <avidigal@novell.com>
11765         * ContainerControl.cs: Raise Validation and Enter/Leave events
11766         even if there is no Form and set active_control earlier, just
11767         before firing Enter events (toshok's patches). Fixes #80647.
11769 2007-05-30  Jackson Harper  <jackson@ximian.com>
11771         * TextControl.cs: Redid the pageup/pagedown a little to simplify
11772         things and fix bug #81311.
11774 2007-05-30  Jackson Harper  <jackson@ximian.com>
11776         * X11Dnd.cs: Now that we have our own event loop, we need to
11777         cancel when we get a mouseup but it won't be accepted.
11779 2007-05-30  Chris Toshok  <toshok@ximian.com>
11781         * DataGrid.cs (set_CurrentCell): guard against negative
11782         column/row.
11784         * DataGridColumnStyle.cs (CheckValidDataSource): just use the
11785         array index syntax instead of looping over the property names.
11787         * DataGridTextBoxColumn.cs: add a changed handler on the textbox,
11788         and set IsInEditOrNavigateMode to false there.
11790 2007-05-30  Jackson Harper  <jackson@ximian.com>
11792         * TreeView.cs: Make sure we don't get a bad visible order when
11793         setting to the top node.  Fixes some misc crashing in
11794         ControlInspector.
11796 2007-05-30  Andreia Gaita  <avidigal@novell.com>
11798         * UserControl.cs: Add 2.0 AutoSizeMode
11800 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
11802         * DataGridTextBoxColumn.cs: Fix textbox horizontal offset.
11804 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
11806         * DataGridTextBoxColumn.cs: Fix textbox position to prevent override grid
11807         lines. Fixes #80285. 
11809 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
11811         * DataGridColumnStyle.cs: Add char trimming column header text format. 
11813 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
11815         * DataGridColumnStyle.cs: Fix grid header arrow drawing over column name. 
11816         Fixes #80147.
11818 2007-05-29  Jackson Harper  <jackson@ximian.com>
11820         * TreeNode.cs: Fix off by one on calculating whether or not a node
11821         is visible.
11823 2007-05-29  Jonathan Pobst  <monkey@jpobst.com>
11825         * Control.cs: ResumeLayout(false) should recalculate anchor distances.
11826         * ScrollableControl.cs: Force an UpdateDistances when we move the
11827         scrollbars.
11828         [Fixes bug #80605]
11830 2007-05-29  Andreia Gaita  <avidigal@novell.com>
11832         * PageSetupDialog.cs: Fix #80728 - Changing the printer doesn't
11833         update the page setup screen.
11835 2007-05-29  Andreia Gaita  <avidigal@novell.com>
11837         * PageSetupDialog.cs: Fix landscape mode.
11839 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11841         * SystemInformation.cs: Add 2.0 IconSizeVerticalSpacing and
11842         IconSizeHorizontalSpacing.
11844 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11846         * ListView.cs: The declaration of prev_tooltip_item should be inside
11847         a NET_2_0 conditional (avoid a warning).
11849 2007-05-28  Andreia Gaita  <avidigal@novell.com>
11851         * PageSetupDialog.cs: Implement PrintPreview control to display
11852         the preview thumbnail. Change unit conversion to use 
11853         PrinterUnitConvert methods.
11854         
11855         Note: there is a huge bug in ms.net where the default margins are 
11856         interpreted as centimeters (?), when in fact they are set in inches. When 
11857         loading the page setup dialog initially (ms.net), the default margins 
11858         are set to 1 inch, and the dialog shows them with value 10, when in fact 
11859         it should be 25 (properly converted). Our dialog doesn't have this bug.
11860         
11861         * Theme.cs, ThemeWin32Classic.cs: Add a CPDrawBorder override for 
11862         RectangleF.
11863         * ControlPaint.cs: Add a DrawBorder internal method for RectangleF.
11865 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11867         * ListView.cs:
11868         * ListViewItem.cs: Implement 2.0 ToolTipText support for listview
11869         items.
11871 2007-05-28  Andreia Gaita  <avidigal@novell.com>
11873         * X11Dnd.cs: A direct cast to VirtualKeys is not allowed from
11874         an IntPtr on csc (it builds fine on mcs, could it be a compiler
11875         bug?), convert the ptr to Int32 first.
11877 2007-05-28  Jackson Harper  <jackson@ximian.com>
11879         * X11Dnd.cs: Add a timer, so after drop, if a finish is not
11880         recieved, we will exit the dnd tracking loop.
11882 2007-05-28  Jackson Harper  <jackson@ximian.com>
11884         * X11Dnd.cs: Keep tracking until the xdnd finished event is
11885         recieved. TODO: I should probably stick a timer on the dropped
11886         event, and finish the drag if the XDND Finished event never shows
11887         (because some apps don't seem to send it).
11889 2007-05-28  Everaldo Canuto  <ecanuto@novell.com>
11891         * ToolBar.cs: Fix toolbar default width for button with image. Fixes
11892         #81733.
11894 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11896         * MonthCalendar.cs: Only mark the keypresses we actually handle as
11897           handled.
11899 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11901         * MonthCalendar.cs: Set the size after initializing all the relevant
11902           variables. Fixes #81742.
11904 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11906         * KeyEventArgs.cs: Fix typo.
11908 2007-05-28  Gert Driesen  <drieseng@users.sourceforge.net>
11910         * DateTimePicker.cs: Changed exceptions thrown by MinDate and MaxDate
11911         to match MS. Fixed MinDate to only accept value less than or equal
11912         to MaxDate on 2.0 profile and less than MaxDate on 1.0 profile.
11913         Removed TODO's that are now verified by unit tests.
11915 2007-05-27  Gert Driesen  <drieseng@users.sourceforge.net>
11917         * TreeNodeCollection.cs: Minor corrections to exceptions to match
11918         MS.
11920 2007-05-25  Jackson Harper  <jackson@ximian.com>
11922         * X11Dnd.cs: Rework to make StartDrag a blocking call that runs
11923         it's own message loop.
11924         * XplatUIX11.cs: Remove some of the dnd hooks
11926 2007-05-25  Gert Driesen  <drieseng@users.sourceforge.net>
11928         * XplatUIX11.cs: Change MinimumWindowSize to {Width=0,Height=0}
11929         instead of MinimizedWindowSize.
11931 2007-05-25  Jackson Harper  <jackson@ximian.com>
11933         * TextBoxBase.cs: Raise textchanged when cutting and pasting text.
11935 2007-05-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11937         * KeyEventArgs.cs: Added SuppressKeyPress.
11938         * Control.cs: Added support for SuppressKeyPress.
11940 2007-05-24  Andreia Gaita  <avidigal@novell.com>
11942         * NumericUpDown.cs: Refactor code to fix regressions on #79950 and
11943         problems with PieChart. suppress_validation should not be a counter,
11944         if there are several BeginInit calls, the first EndInit will 
11945         activate validation. Fix exceptions thrown by set_Value.
11946         * UpDownBase.cs: ValidateText only if it's the user editing it.
11948 2007-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11950         * ListControl.cs: FilterItemOnProperty should return the filtered
11951         item proeprty even if DataSource is null. The same applies for
11952         GetItemText. Fixes #80427.
11954 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
11956         * Control.cs: If a control doesn't have a parent when it's Dock is
11957         set, but it has children, it needs to do a layout.  Fixes some nested
11958         controls issues.  [Fixes bug #81199]
11960 2007-05-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11962         * ComboBox.cs: If there are few items in the drop down list, make it
11963           the exact size the items need, no bigger. Fixes #81612.
11965 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
11967         * Application.cs: When we have captured the keyboard for a menu,
11968         check for mouse down events in case we need to close the menu.
11969         * Control.cs, Form.cs: Remove mouse down checks for menus.
11971 2007-05-24  Jackson Harper  <jackson@ximian.com>
11973         * TextControl.cs: Handle tabs in non multiline mode a little
11974         differently.
11976 2007-05-24  Jackson Harper  <jackson@ximian.com>
11978         * TextControl.cs: We need to manually break apart tabbed text and
11979         move the tabs, since the system.drawing tabbing mechanism relies
11980         on tab stops.
11981         * TextBoxBase.cs: Move the caret properly when the user enters a
11982         tab.
11984 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
11986         * ContainerControl.cs: Don't check CanSelect before calling
11987         ProcessMnemonic.
11988         * ToolStrip.cs: Only do implicit mnemonics on MenuStrips.  Don't
11989         release a KeyboardActive on click if it's not ours.
11991 2007-05-23  Andreia Gaita  <avidigal@novell.com>
11993         * ColumnHeader.cs: Add TypeConverter
11995 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
11997         * LinkLabel.cs: Implement LinkCollection.Add with Link parameter (2.0).
11999 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
12001         * LinkLabelLinkClickedEventArgs.cs, LinkLabel.cs: Implement Button property.
12003 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
12005         * LinkLabel.cs: Implement public Padding property.
12007 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
12009         * LinkLabel.cs: Implement public FlatStyle.
12011 2007-05-23  Jonathan Pobst  <monkey@jpobst.com>
12013         * Control.cs: Apply patch from George to call parent.PerformLayout
12014         when Visible is changed.  [Fixes bugs #81118, 81718]
12016 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
12018         * MainMenu.cs, MenuAPI.cs: Implement Collapse event for MainMenu (2.0).
12020 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
12022         * ContextMenu.cs: Implement ProcessCmdKey with control parameter.
12024 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
12026         * ContextMenu.cs: Implement Collapse.
12028 2007-05-23  Rolf Bjarne Kvinge <RKvinge@novell.com>
12030         * ToolBarButton.cs: Implement Name.
12032 2007-05-22  Everaldo Canuto  <ecanuto@novell.com>
12034         * ToolBar.cs: Fix OnButtonDropDown to save item used in dropdown instead of
12035         use current_item, it prevents some NRE. Fixes #81675.  
12037 2007-05-22  Andreia Gaita  <avidigal@novell.com>
12039         * NumericUpDown.cs: Fix PieChart by not returning from UpdateEditText
12040         without updating the text.
12042 2007-05-22  Jonathan Pobst  <monkey@jpobst.com>
12044         * XplatUIWin32.cs: Plug a GDI leak caused by calling Font.ToHfont ()
12045         without calling DeleteObject.  [Should fix bug #81709]
12047 2007-05-22  Jackson Harper  <jackson@ximian.com>
12049         * RichTextBox.cs: Set the line endings correctly, when flushing
12050         RTF text.
12052 2007-05-22  Gert Driesen  <drieseng@users.sourceforge.net>
12054         * XplatUIX11.cs: MinimumWindowSize on X11 is actually
12055          {Width=0,Height=0}.
12057 2007-05-22  Jackson Harper  <jackson@ximian.com>
12059         * TreeView.cs: Setting top with a null node should set to the very
12060         top.
12062 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12064         * Form.cs: ShowDialog: destroy the handle when message loop is
12065           finished, matches MS behaviour. Refactor parts of WmClose into
12066           RaiseCloseEvents, that only raises events if they haven't already
12067           been raised. Fixes #81688 and #81521.
12068         * Application.cs: Don't call close on the form when exiting a modal
12069           loop, it will raise all the (Form)Closed/Closing events again if
12070           WM_CLOSE has been sent earlier on, instead call RaiseCloseEvent,
12071           which doesn'r raise any events it they have been raised before.
12073 2007-05-22  Jonathan Pobst  <monkey@jpobst.com>
12075         * Control.cs: Add OnPrint.
12076         * ToolStrip.cs: Add GetChildAtPoint.
12077         * ToolStripContainer.cs: Add OnRightToLeftChanged.
12078         * ToolStripRenderer.cs: Make CreateMirrorImage internal.
12080 2007-05-22  Everaldo Canuto  <ecanuto@novell.com>
12082         * MenuAPI.cs: Prevent context menu to be typed as MainMenu. Fixes #81509.  
12084 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12086         * InternalWindowManager.cs: ToolTipShow: Don't show tooltip if the form
12087           isn't visible anymore. Fixes #81651.
12089 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12091         * Control.cs: WmShowWindow: Update children's z-order after setting
12092           their parent. SetParent may show the window, thereby corrupting
12093           z-order, since the window will be shown on top.
12094         * XplatUIWin32.cs: SetParent: don't call SetVisible on forms. Prevents
12095           multiple (and redundant) WM_SHOWWINDOW messages.
12096         * MdiWindowManager.cs: RaiseDeactivate: only raise after an Activate
12097           event has already been raised.
12098         * Form.cs: Change is_changing_visible_state to a counter, since
12099           SetVisibleCore can be called recursively. CreateHandle: when
12100           creating mdi children, send (De)Activated events.
12101         * MdiClient.cs: Update use of is_changing_visible_state.
12102         * Application.cs: OnThreadException: Surround exception handling with
12103           try/finally to ensure we always reset the error-handling state
12104           before leaving.
12106 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12108         * ThemeWin32Classic.cs: DrawProgressBar: Avoid a DivideByZero exception
12109           (#81704).
12111 2007-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12113         * ListView.cs: Use Theme.ListViewHorizontalSpacing for List and
12114         SmallIcon views, now that we have a standarized horizontal spacing.
12116         * ThemeWin32Classic.cs: ListViewHorizontalSpacing now has a value of
12117         4, just like the other views (Match .Net).
12119 2007-05-21  Jonathan Pobst  <monkey@jpobst.com>
12121         * Control.cs: Delay calculating anchor distances until we actually layout.
12122         Always query the WM for the actual size and location it put us at instead of
12123         only when we send negative values.
12124         [Fixes bugs #81694, 81695]
12126 2007-05-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12128         * Application.cs: Avoid a possible stack overflow when trying to exit
12129           the application.
12131 2007-05-19  Marek Safar  <marek.safar@gmail.com>
12133         * Theme.cs (GetHatchBrush): A key uses internal value instead of formated
12134         enum value.
12136 2007-05-19  Andreia Gaita  <avidigal@novell.com>
12138         * NumericUpDown.cs: Added 2.0 methods (spin acceleration)
12139         * NumericUpDownAcceleration.cs, 
12140           NumericUpDownAccelerationCollection.cs: Added 2.0
12141           implementation.
12143 2007-05-19  Gert Driesen  <drieseng@users.sourceforge.net>
12145         * RichTextBox.cs: Recalculate the document after the ScrollBars
12146         property is changed. Fixes bug #81681.
12148 2007-05-18  Jonathan Pobst  <monkey@jpobst.com>
12150         * DataObject.cs: Implement 2.0 methods.
12152 2007-05-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12154         * ThemeWin32Classic.cs: Draw the check marks in ListViewItems
12155         in the center of the checkbox, not in the left-top corner. 
12156         Fixes #80037.
12158 2007-05-18  Jackson Harper  <jackson@ximian.com>
12160         * RichTextBox.cs: Recalculate the document after the scrollbars
12161         property is changed.
12162         * TextBoxBase.cs: ScrollBars is not a flags enum...This fixes
12163         81486.
12165 2007-05-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12167         * CreateParams.cs: Make HasWindowManager marginally faster.
12168         * XplatUIX11.cs, Hwnd.cs: CreateWindow: Move the default location code
12169           into Hwnd so that other drivers can use it as well.
12170         * XplatUIWin32.cs: CreateWindow: If the window has a window manager get
12171           the default location from Hwnd. Fixes MDI client windows always
12172           showing up at (0,0) in Windows (Win32 won't set the default
12173           location since the window styles aren't correct).
12175 2007-05-18  Gert Driesen  <drieseng@users.sourceforge.net>
12177         * TreeView.cs: Modified DoubleBuffered to just use the base
12178         implementation.
12180 2007-05-18  Jackson Harper  <jackson@ximian.com>
12182         * TreeView.cs: Set the top node to the last child node when
12183         expanding all
12184         - When we get focus, if there is no selected node, use the top
12185         node.
12187 2007-05-18  Jonathan Pobst  <monkey@jpobst.com>
12189         * KeysConverter.cs: Add CanConvertTo.
12190         * LinkLabel.cs: Add some 2.0 constructors and properties to LinkLabel.Link.
12191         * LinkConverter.cs: Added.
12193 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
12195         * Cursor.cs: Apply Sebastien patch from #81669 to open file in read mode,
12196         it prevents error when file dont have write access. Fixes #81669 and #81667.  
12198 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
12200         * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw toolbar 
12201         button text. Fixes #79640.  
12203 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
12205         * Control.cs: According to MSDN controls created in the designer theres 
12206         keyboard accelerators visible by default. So included check for design
12207         in ShowKeyboardCuesInternal.  
12209 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
12211         * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw combobox 
12212         text. Fixes #81621.  
12214 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
12216         * Control.cs: ShowKeyboardCuesInternal add to expose ShowKeyboardCues
12217         for 1.0, becuse ShowKeyboardCues is protected on 1.0.  
12219 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
12221         * Control.cs: Finish implementation of UI State using WmChangeUIState
12222         to send WM_UPDATEUISTATE to all child controls. Some hack will be needed
12223         in some controls to check for show_keyboard_cues to draw accell keys "_".  
12225 2007-05-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12227         * ListBox.cs: When calculating the horizontal scrollbar
12228         in single column mode, don't use values less than 0 for
12229         Maximum. Fixes #81474.
12231 2007-05-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12233         * ListBox.cs: Throw the some missing exceptions in
12234         ListBox.ObjectCollection methods.
12236 2007-05-17  Jackson Harper  <jackson@ximian.com>
12238         * TextBoxBase.cs: Recalculate the document when the word wrap
12239         value has changed. This fixes 81488.
12241 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
12243         * Clipboard.cs: Implement missing GetText overload.
12245 2007-05-17  Chris Toshok  <toshok@ximian.com>
12247         * Control.cs (CheckDataBindings): remove the binding_context arg
12248         to binding.Check.
12250         * CurrencyManager.cs (OnItemChanged): fix this now that
12251         BindingManagerBase is fixed. also remove the comment telling where
12252         the fix should go.  We set transfering_data to true/false around
12253         the call to PushData to keep UpdateIsBinding from being called.
12254         (ListChangedHandler): remove the extra OnMetaDataChanged call for
12255         PropertyDescriptorAdded in the 1.1 case.  The extra call is
12256         actually generated by System.Data generating 2 metadata changed
12257         events of its own per column add.  The fix should go there.  Add a
12258         comment to that affect in our test's Assert.Ignore.
12260         * BindingManagerBase.cs: Rework PullData and PushData slightly.
12261         we keep a boolean flag (transfering_data) that keeps us from
12262         calling UpdateIsBinding multiple times if we re-enter either of
12263         them.
12265         * ControlBindingsCollection.cs (AddCore): remove the
12266         binding_context arg to binding.Check.
12268         * Binding.cs (IsBinding): don't check if we're binding here, just
12269         return our cached value.  we update it in UpdateIsBinding.
12270         (Check): don't take the binding_context arg, we'll just use our
12271         control's.  Also, for some reason MS doesn't use the data member
12272         field when getting the bindingmanager for this binding.  it just
12273         uses the datasource.  Make this method callable multiple times,
12274         and only do the is_null_desc stuff if manager.Position != -1 (so
12275         we don't get an exception accessing manager.Current).
12276         (UpdateIsBinding): move the code from IsBinding here.
12277         (PositionChangedHandler): call Check here to we can initialize
12278         things that require a non- -1 position.
12280 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
12282         * Form.cs: When alt keys is pressed send WM_CHANGEUISTATE to top level
12283         control.
12285 2007-05-17  Andreia Gaita  <avidigal@novell.com>
12287         * TabControl.cs: Add 2.0 methods and events, including
12288         OnEnter / OnLeave and raises it for tabpages (fixes #79869)
12289         * TabPage.cs: Add 2.0 methods
12291 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
12293         * Control.cs: Implement WmUpdateUIState, show_focus_cues and
12294         keyboard_cues is properly handled by message method.  
12296 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
12298         * TreeViewImageIndexConverter.cs: Add 2.0 methods.
12300 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
12302         * ToolStripTextBox.cs: Wire up new 2.0 Textbox methods/properties.
12304 2007-05-16  Everaldo Canuto  <ecanuto@novell.com>
12306         * Control.cs: 
12307         - WmUpdateUIState added to handle state changes, it make call to
12308         OnChangeUICues event.
12309         - Fixed ShowKeyboardCues to check for MenuAccessKeysUnderlined in
12310         SystemInformation.
12312 2007-05-16  Jonathan Pobst  <monkey@jpobst.com>
12314         * ImageKeyConverter.cs: Added.
12315         * TreeViewImageKeyConverter.cs: Added.
12317 2007-05-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12318         
12319         * ToolTips.cs: Update Text if SetToolTip is called for a control
12320         already showing the tooltip, as well as restarting its timer; show
12321         tooltip if we are inside the control bounds by the time of calling
12322         SetToolTip. Inside ShowTooltip remove the check to not show the 
12323         tooltip again for the active control (it is allowed by .Net to 
12324         show the tooltip on the same control multiple times).
12326 2007-05-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12328         * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
12330 2007-05-16  Andreia Gaita <avidigal@novell.com> 
12332         * ContainerControl.cs: only process tab key if there are no 
12333         modifier keys present, otherwise the control does the 
12334         tab processing, if it needs to. Fixes #81622
12335         * TabControl.cs: Fixes calculation for which tab to select on
12336         shift+ctrl+tab.
12338 2007-05-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12340         * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
12342 2007-05-15  Jonathan Pobst  <monkey@jpobst.com>
12344         * Control.cs: Make IsInputCharInternal to allow controls to
12345         override it and still match MS API.
12346         * TextBoxBase.cs: Override IsInputCharInternal and always
12347         return true.
12348         [Fixes bug #81616]
12350 2007-05-15  Jackson Harper  <jackson@ximian.com>
12352         * TextBox.cs: Disable some of the menu options when using a
12353         readonly textbox.
12355 2007-05-15  Jackson Harper  <jackson@ximian.com>
12357         * TextBox.cs:
12358         * TextBoxBase.cs:
12359         * RichTextBox.cs: Some new 2.0 methods
12361 2007-05-15  Gert Driesen  <drieseng@users.sourceforge.net>
12363         * FileDialog.cs: On 1.0 profile, do not support multidotted 
12364         extensions.
12366 2007-05-14  Jackson Harper  <jackson@ximian.com>
12368         * TextBoxBase.cs: Implement some of the new 2.0 methods.
12369         * RichTextBox.cs: We need to override these methods on 2.0.
12370         * MaskedTextBox.cs: These are implemented now
12371         * TextControl.cs: This was off by one.
12373 2007-05-14  Jackson Harper  <jackson@ximian.com>
12375         * TextControl.cs: Because the line endings are including in the
12376         text, we don't need to add them in anymore.
12378 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
12380         * ToolBar.cs: Fix autosize and get it working only after hadle is created,
12381         also prevent redraw in set_autosize if handle is not created. Fixes #81523.
12383 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
12385         * ToolBar.cs: Adjust size to default size when button theres no text and
12386         image, it fixes remaining issues from #81524.
12388 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
12390         * ToolBar.cs: 
12391         - When not flat call redraw to recalculate sizes on creare handle to match
12392         win32 behavior.
12393         - Revert 77220 because it causes some regressions in toobar
12394         button.
12396 2007-05-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12398         * MaskedTextBox.cs: Update the base text whenever the text changes. MTB
12399           now actually enters a usable state.
12401 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
12403         * ToolBar.cs: Check for handle created in redraw to prevent unneeded size
12404         calculations, it reduces the size cauculation from 7 to 3 on a toolbar with
12405         3 buttons.
12407 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
12409         * ToolBar.cs: Save default_size on create handle to use later for buttons
12410         without text, needed to mimic win32 behavior.
12412 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
12414         * ToolBar.cs: Fix button layour to best fit width or height according to
12415         vertical or not. Fixes #81524.
12417 2007-05-10  Everaldo Canuto  <everaldo@simios.org>
12419         * ToolBarButton.cs: When change style call ToolBar.Redraw to update
12420         toolbar size info because different styles theres different sizes.
12421         Fixes #81522.
12423 2007-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12425         * ThemeWinClassic.cs: For .Net 2.0 don't draw any image
12426         if we are using checkboxes, checked is true, and we have less
12427         than two images in StateImageList; for the 1.1 in the same scenario
12428         draw the first image if we have at least one image in StateImageList.
12429         Fixes part of #81191.
12431 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
12433         * ToolStrip.cs, ToolStripManager.cs: We need to remove items from
12434         the owner's Items collection on merge.
12436 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
12438         * ToolStrip.cs: Use new internal ToolStripItemCollection constructor.
12439         * ToolStripItemCollection.cs: Lots of fixes to when events get called
12440         and parent/owner gets changed based on gert's unit tests.
12442 2007-05-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12444         * MaskedTextBox.cs: Started implementing parts of it.
12446 2007-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12448         * ListView.cs: When clicking the checkbox on the items
12449         take into account the double clicks even if we have only
12450         one image in StateImageList (only for 1.0/1.1). Also 
12451         generate an extra change of checked state when we receive
12452         the second click on checkbox (match .Net behaviour). 
12453         Fixes part of #81191.
12455 2007-05-10  Everaldo Canuto  <everaldo@simios.org>
12457         * ThemeWin32Classic.cs: Fix text rectangles in Tooltips.
12459 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
12461         * Form.cs: Move some of OnLoad to OnLoadInternal so it gets called
12462         even if OnLoad is overriden and base.OnLoad is not called.
12463         [Fixes bug #81582]
12465 2007-05-10  Andreia Gaita  <avidigal@novell.com>
12467         * TableLayoutSettings.cs: A big doh! fix and bowing down of head in 
12468         shame. (I blame my ever-persisting and annoying cold)
12470 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
12472         * ListView.cs: Don't eat navigation keys.  Let them flow through to
12473         KeyDown/KeyPress routines.  [Fixes bug #81569]
12475 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
12477         * ListView.cs: When handling keys for selecting the item based off
12478         keyboard input, do not consider keys pressed with Alt or Control.  Also,
12479         correctly handle keys when the Shift key is down. [Fixes bug #81578]
12481 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
12483         * Control.cs: When using UseWaitCursor, we have to store the requested
12484         Cursor to use when UseWaitCursor is turned off.
12486 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
12488         * Control.cs: Implement PreProcessControlMessage.  Default IsInputChar
12489         to false.
12490         * Application.cs: Use PreProcessControlMessage instead of
12491         PreProcessMessage.
12492         * PreProcessControlMessage.cs: Make internal for 1.1.
12494 2007-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12496         * Control.cs: Add InternalContains focus property, which hast the same
12497         functionality of ContainsFocus, but also including implicit controls.
12498         * ListViewItem.cs: Use InternalContainsFocus instead of ContainsFocus,
12499         since we need to know if the focus is contained in our implicit
12500         ItemControl when calculating Layout. Fixes part of #80888.
12502 2007-05-08  Everaldo Canuto  <everaldo@simios.org>
12504         * ToolTip.cs: Remove center form string alignment as it must be align to
12505         left.
12507 2007-05-08  Jonathan Pobst  <monkey@jpobst.com>
12509         * ToolStripItemCollection.cs: Set the new item's parent and owner
12510         in Insert like we do in Add.  [Fixes bug #81568]
12512 2007-05-08  Jackson Harper  <jackson@ximian.com>
12514         * TreeView.cs: GotFocus differences between 1.1 and 2.0.
12515         - Off by one error in SetTop
12516         - Disable DoubeBuffering
12517         
12518 2007-05-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12520         * ScrollableControl.cs: ScrollIControlntoView: we now only move the
12521           control as much as necessary in order to make it entirely visible,
12522           instead of centering the control in the container (matches MS
12523           behaviour). CalculateCanvasSize: we need to take the current scroll
12524           position into account when calculating the maximum canvas,
12525           otherwise the following scenario will fail: resize so that the
12526           scrollbars appear, use the scrollbars to scroll, resize again
12527           smaller, and now the canvas size is too small. Recalculate: when
12528           showing scrollbars make sure they start off at 0, and try to scroll
12529           the active control into view. Fixes #79540. HandleScrollBar: don't
12530           scroll anywhere if the scrollbar isn't visible.
12532 2007-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12534         * ListView.cs: When focus changed, call Layout/Invalidate
12535         in the focused item to update the selected state (should show
12536         entire label when ListView is focused, and a part of it if is not).
12537         * ListViewItem.cs: When doing layout for LargeIcon, take into account
12538         for displaying the entire label not only the Focused state of the
12539         item, but also the Focused state of the ListView (match .Net
12540         behaviour).
12542 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
12544         * Control.cs: Stub CanRaiseEvents, IsMirrored, and NotifyClients.
12545         Implement UseWaitCursor. 
12547 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
12548         Applying contributed patch from Sergey Volk.
12550         * Clipboard.cs: Implement SetDataObject retry logic and new overload
12551         of SetDataObject.
12552         * XplatUIWin32.cs: Throw an ExternalException if the clipboard set fails.
12554 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
12556         * Control.cs: Implement DrawToBitmap.
12558 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
12559         Applying contributed patch from Stefan Noack.
12560         
12561         * Control.cs: Add [Get|Set]AutoSizeMode.
12563 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
12565         * MdiClient.cs: Unmerge menus when the last child is closed.
12567 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
12569         * ToolStrip.cs: Do not call BeginMerge on DropDowns.
12570         * ToolStripManager.cs: Call Merge on DropDowns.
12571         [Fixes bug #81477]
12573 2007-05-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12575         * XplatUIWin32.cs: Changed Win32CreateWindow to take enums instead of
12576           uints.
12577         * Form.cs: CreateParams: don't set WS_VISIBLE if we're changing
12578           visibility. We can't create forms visible, since we have to set the
12579           owner before making the form visible (otherwise Win32 will do
12580           strange things with task bar icons). The problem is that we set the
12581           internal is_visible to true before creating the control, so
12582           is_changing_visible_state is the only way of determining if we're
12583           in the process of creating the form due to setting Visible=true -
12584           this works because SetVisibleCore explicitly makes the form
12585           visibile afterwards anyways. Fixes #80775.
12587 2007-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12589         * ThemeWin32Classic.cs: When drawing ListViewItems,
12590         use StringTrimming.EllipsisCharacter if the view is Tile, Details,
12591         or LargeIcon _and_ item is not focused (match .Net behaviour).
12593 2007-05-04  Jonathan Pobst  <monkey@jpobst.com>
12595         * Control.cs, Form.cs: Fix some obsolete method warnings.
12597 2007-05-04  Jonathan Pobst  <monkey@jpobst.com>
12599         * Control.cs: Implement GetChildAtPoint and OnParentCursorChanged.
12600         * GetChildAtPointSkip.cs: Make internal for 1.1 profile.
12602 2007-05-04  Andreia Gaita  <avidigal@novell.com>
12604         * ContainerControl.cs: Fix active_control attribution when going
12605         up the parent chain so that the first parent container gets the control
12606         and the rest of the parent containers get the child containers (skips
12607         non-containers). Fixes #80729
12609 2007-05-04  Randolph Chung  <tausq@debian.org>
12611         * FileDialog.cs: Implement the SupportMultiDottedExtensions property.
12612         [Fixes bug #81499]
12614 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12616         * XplatUIX11.cs: Add a TranslateWindowSizeToXWindowSize overload that
12617           takes a size parameter, since the CreateParam's size isn't true for
12618           minimized forms. Fixes #81518,
12620 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12622         * Form.cs: Add OnDeactivateInternal.
12623         * MdiClient.cs: Raise Deactivate event. Fixes #81409.
12625 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12627         * DateTimePicker.cs: CalculateDropDownLocation: do a null check before
12628           accessing the parent. Fixes #81508.
12630 2007-05-03  Chris Toshok  <toshok@ximian.com>
12632         * CurrencyManager.cs (CurrencyManager.ListChangeHandler): in the
12633         2.0 block, pass listposition + 1 to ChangeRecordState when a row
12634         was added before the current listposition.  Fixes the
12635         TestInsertRowBeforeCurrent unit test.
12637 2007-05-03  Jonathan Pobst  <monkey@jpobst.com>
12639         * Application.cs: Add RaiseIdle.
12640         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
12641         XplatUIX11.cs: Implement RaiseIdle.
12643 2007-05-02  Jonathan Pobst  <monkey@jpobst.com>
12644         corcompare work: N - Z
12645         * NotifyIcon.cs
12646         * ProgressBar.cs
12647         * RadionButton.cs
12648         * ScrollableControl.cs
12649         * SplitContainer.cs
12650         * SplitterPanel.cs
12651         * StatusBar.cs
12652         * SystemInformation.cs
12653         * TabControl.cs
12654         * TableLayoutControlCollection.cs
12655         * TableLayoutPanel.cs
12656         * TabPage.cs
12657         * ToolBar.cs
12658         * ToolBarButton.cs
12659         * ToolStrip.cs
12660         * ToolStripComboBox.cs
12661         * ToolStripContainer.cs
12662         * ToolStripContentPanel.cs
12663         * ToolStripDropDown.cs
12664         * ToolStripDropDownItem.cs
12665         * ToolStripDropDownMenu.cs
12666         * ToolStripItem.cs
12667         * ToolStripItemCollection.cs
12668         * ToolStripMenuItem.cs
12669         * ToolStripPanel.cs
12670         * ToolStripSplitButton.cs
12671         * ToolTip.cs
12672         * TreeNode.cs
12673         * TreeNodeCollection.cs
12674         * TreeNodeMouseHoverEventArgs.cs
12675         * TreeView.cs
12677 2007-05-01  Everaldo Canuto  <everaldo@simios.org>
12679         * ContextMenu.cs: Add public method Show with alignment property to 2.0
12680         stuff. Thanks aatdark for the patch. 
12682 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
12684         * GridItem.cs: Implement 2.0 Tag property.
12686 2007-05-01  Frederik Carlier <frederik.carlier@carlier-online.be> 
12688         * TreeNodeCollection.cs: Fix ContainsKey and IndexOfKey methods to use
12689         count instead of Nodes.Length.  [Fixes bug #81448]
12691 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
12693         * ComboBox.cs: Fix paramName sent to ArgumentOutOfRangeException's.
12694         [Fixes bug #81506]
12696 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
12697         corcompare work: A - M
12698         * BindingNavigator.cs
12699         * Button.cs
12700         * ButtonBase.cs
12701         * CheckBox.cs
12702         * Control.cs
12703         * FlowLayoutPanel.cs
12704         * Form.cs
12705         * Label.cs
12706         * LinkLabel.cs
12707         * ListView.cs
12709 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
12711         * Application.cs: Give toolstrips a chance to process mnemonics.
12712         * ToolStrip.cs, ToolStripDropDownButton.cs, ToolStripItem.cs,
12713         ToolStripItemTextRenderEventArgs.cs, ToolStripLabel.cs,
12714         ToolStripMenuItem.cs, ToolStripSplitButton.cs: Implement keyboard mnemonics.
12716 2007-05-01  Jackson Harper  <jackson@ximian.com>
12718         * TextBoxBase.cs: Better preferred height, FixedSingle gets the
12719         wider area too.
12720         - Don't set the BoundsSpecified
12722 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
12724         * Application.cs: When using the toolstrip shortcut mechanism, allow the
12725         message to pass through to a regular control if it hosted by a toolstrip.
12726         * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
12727         ToolStripManager.cs: Enable keyboard navigation for ToolStrips.
12729 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
12731         * TextRenderer.cs: Use the flags argument when using the MeasureString
12732         fallback algorithm.
12734 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
12736         * MenuStrip.cs: Don't let multiple ToolStripSeparators get added to
12737         the MDI menu item.  [Fixes bug #81483]
12739 2007-04-30  Gert Driesen  <drieseng@users.sourceforge.net>
12741         * DataGridViewColumn.cs: Initialize value of headercell to zero-length
12742         string. When setting Name to null, use zero-length string instead.
12744 2007-04-29  Andreia Gaita  <avidigal@novell.com>
12746         * TabControl.cs: Implement missing 2.0 methods (SelectTab, 
12747         DeselectTab). Implement missing 2.0 TabPageCollection methods
12748         (Add, ContainsKey, RemoveByKey, IndexOfKey)
12750 2007-04-29  Pedro Martínez Juliá  <pedromj@gmail.com>
12752         * DataGridViewColumn.cs: Make HeaderText take preference over Name.
12754 2007-04-29  Gert Driesen  <drieseng@users.sourceforge.net>
12756         * RichTextBox.cs: In LoadFile, use StreamReader to read plain text.
12757         Fixes bug #81479. Include details of exception when LoadFile fails.
12759 2007-04-28  Alan McGovern <alan.mcgovern@gmail.com>
12761         * DrawListViewSubItemEventArgs.cs: Added missing setter
12763 2007-04-27  Andreia Gaita  <avidigal@novell.com>
12765         * ToolTip.cs: Add missing 2.0 properties. Implement 2.0 Show and 
12766         Hide methods (not complete). Implement missing 2.0 OnPopup event.
12768 2007-04-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12770         * ListView.cs: In ItemControl.OnMouseDown restore a pair of braces I
12771         removed in ly last commit (it was breaking the Label edit feature).
12773         * ThemeWin32Classic.cs: When drawing a ListViewItem use
12774         StringAlignment.Near for LineAlignment (match .Net).
12776 2007-04-27  Andreia Gaita  <avidigal@novell.com>
12778         * TabControl.cs: Change SetTab so it adds the tabpage to the list
12779         of controls if it isn't already there - was blowing up when doing
12780         tabcontrol.TabPages[i]=new TabPage(). 
12781         SetTab now does a replace by removing the page at the index. 
12782         Add a new InsertTab method that inserts a page in a given index 
12783         instead of replacing. 
12784         Implements TabPageCollection.Insert(int, TabPage).
12786 2007-04-27  Chris Toshok  <toshok@ximian.com>
12788         * BindingManagerBase.cs: fill in CurrentItemChanged (and have an
12789         internal handler that can be invoked from our subclasses.)  Also,
12790         add a comment to PushData about how we need to fix it.
12792         * CurrencyManager.cs: tons of changes here.  trying to get things
12793         matching the behavior of .net wrt event orders (ItemChanged,
12794         CurrentChanged, PositionChanged.)  I've implemented a private .net
12795         symbol (ChangeRecordState) that appears in stack traces because
12796         it's actually easier to do this than to effective inline all its
12797         various behaviors at every call site.
12799         * RelatedPropertyManager.cs: guard against an exception here by
12800         not using parent.Current if the position is set to -1 (if the
12801         parent datasource is cleared, for instance).
12803         * Binding.cs: don't parse data in PushData (this might be wrong,
12804         but it jives with MS's behavior.)  Also, don't call PushData when
12805         we get a CurrentChanged event.
12807 2007-04-27  Andreia Gaita  <avidigal@novell.com>
12809         * WebBrowser.cs,
12810           WebBrowserBase.cs,
12811           WebBrowserSiteBase.cs,
12812           HtmlDocument.cs: Added stubbed out classes, no real implementations 
12813           yet.
12815 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
12817         * MainMenu.cs: In draw method without parameters call draw method with 
12818         PaintEvent, another one (just rect) adjust rectangle and we dont need it
12819         as Rect property is already adjusted. Fixes #80694.
12821 2007-04-27  Jonathan Pobst  <monkey@jpobst.com>
12823         * Application.cs: Need to handle keyboard menu deselection here.
12824         * Control.cs: Use WM_SYSKEYUP instead of WM_SYSCOMMAND to start menu keyboard
12825         navigation, allowing keyboard to work on X11.
12826         * ToolStrip.cs: Don't worry about handling the Menu key here anymore.
12828 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
12830         * MenuAPI.cs: When deactivate menu verify if hotkey (_) is active and redraw
12831         menu bar. It fixes some drawing issues in menu bar.
12833 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
12835         * MenuAPI.cs: Remove unneeded "keynav_state = KeyNavState.Idle" before 
12836         Deactivate calls, Deactivate method already do it. Also ser ActiveTracker
12837         when <alt> key is pressed.
12839 2007-04-26  Everaldo Canuto  <everaldo@simios.org>
12841         * XplatUIX11.cs: Simplify SystrayRemove to be like other libraries,     Gtk as 
12842         example just set visible to false and make this prevent from other problems.
12843         In SystrayAdd always remove pending expose. Fixes #81072.
12845 2007-04-26  Marek Safar  <marek.safar@gmail.com>
12847         * TextBoxBase.cs (CaretMoved): Consider scroll maximum when scroll
12848         value is set.
12850 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
12852         * ListView.cs: Added three missing 2.0 events and corresponding
12853         EventHandlers. Added the OwnerDraw property.
12854         * DrawListViewColumnHeaderEventHandler.cs: fixed typo
12856 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
12858         * DrawListViewItemEventArgs.cs
12859         * DrawListViewSubItemEventArgs.cs: Brought classes up to 2.0 status.
12861 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
12863         * TextControl.cs: Fixed typo in constructor
12865 2007-04-26  Jonathan Pobst  <monkey@jpobst.com>
12867         * Application.cs: Create a shortcut path so that currently selected
12868         MenuStrips can intercept keyboard events without having focus.
12869         * Control.cs: Handle WM_SYSCOMMAND message to activate MenuStrips.
12870         * MenuStrip.cs, ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownItem.cs,
12871         ToolStripItem.cs, ToolStripManager.cs, ToolStripMenuItem.cs: Support
12872         keyboard navigation (arrows, tab, enter, esc) on Windows.  Still need to
12873         generate WM_SYSCOMMAND message in X11 for other platforms.
12874         * ToolStripProfessionalRenderer.cs: ToolStripMenuItems need to be painted
12875         in OnRenderMenuItemBackground instead of OnRenderButtonBackground.
12876         * ToolStripSplitButton.cs: Add DefaultItem property.
12877         
12878 2007-04-26  Everaldo Canuto  <everaldo@simios.org>
12880         * MainMenu.cs: In OnMenuChanged pass PaintEventArgs to Draw method, it
12881         fixes some menu draw problem on Windows with border diferent from default
12882         it also fixes #81403.
12884 2007-04-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12886         * Form.cs: Refactor WndProc into separate methods, just like Control is
12887           doing it.
12889 2007-04-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12891         * Control.cs: set_Text: move the call to the driver into a seperate
12892           virtual method so that Form can override it.
12893         * MaskedTextBox.cs: Corcompare fixes.
12894         * Form.cs: Override UpdateWindowText and only update the styles if the
12895           form has been shown (fixes #81405).
12897 2007-04-25  Jonathan Pobst  <monkey@jpobst.com>
12899         * Control.cs, Form.cs: Use the better supported WM_?BUTTONDOWN and
12900         WM_ACTIVATE messages instead of WM_MOUSEACTIVATE and
12901         WM_ACTIVATEAPP.  This fixes menus not disappearing on X11 when
12902         the form lost focus or another control was clicked.
12904 2007-04-25  Gert Driesen  <drieseng@users.sourceforge.net>
12906         * DataGrid.cs: Uncomment MakeTransparent calls since bug #80151 is
12907         fixed.
12909 2007-04-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12911         * DrawListViewColumnHeaderEventHandler.cs, DrawToolTipEventArgs.cs,
12912           DrawListViewItemEventHandler.cs,
12913           DrawListViewSubItemEventHandler.cs, DrawToolTipEventHandler.cs:
12914           Added.
12915         * X11Structs.cs: More ToString implementation.
12917 2007-04-25  Jonathan Pobst  <monkey@jpobst.com>
12919         * ToolStripDropDownItem.cs: Don't lazy create a DropDown in Dispose.
12920         * ToolStripOverflowButton.cs: Don't lazy create a DropDown in HasDropDownItems.
12922 2007-04-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12924         * Control.cs: Only raise OnVisibleChanged if we're not recreating the
12925           handle.
12926         * FormCollection.cs: Don't add a form if it's already in the
12927           collection.
12928         * Form.cs: Change ShowDialog () to call ShowDialog (owner) with a null
12929           according to behaviour and MSDN. The ownerWin32 is the active
12930           window at the moment when we call ShowDialog, not the context's
12931           main form (the context's main form may open another form that opens
12932           a form with ShowDialog, the win32 owner is the second form). Add
12933           and remove forms to the Application.OpenForms in other places to
12934           better match MS behaviour. Add an IsActive property that raises
12935           On(de)Activated only if the active state has changed (we were
12936           raising OnDeactivated before OnActivated while creating forms).
12937         * Application.cs: Refactor Enabling/Disabling of windows for modal
12938           dialog loops out to separate methods, and restore the thread
12939           context when we quit the method. Fixes #81407.
12941 2007-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12943         * ListView.cs: In ItemControl.HandleClicks, also fire 
12944         2.0 MouseClick or MouseDoubleClick events on the parent,
12945         not only the Click/DoubleClick events.
12947 2007-04-24  Andreia Gaita  <avidigal@novell.com>
12949         * TableLayoutSettings.cs: 
12950         - Added a GetControls method and a support structure to help the 
12951         TypeConverter to enumerate the controls for     serialization. 
12952         - Added a new serialization constructor. 
12953         - Added a isSerialized flag initialized to true on the 
12954         serialization constructor so that the TableLayoutPanel.LayoutSettings 
12955         setter does not throw the designed NotSupportedOperation exception
12956         when the object is built through deserialization.
12957         - Implemented GetObjectData
12958         
12959         * TableLayoutPanel.cs: Added check on LayoutSettings.
12961 2007-04-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12963         * ListView.cs: Report Click and DoubleClick events to the parent
12964         from ItemsMouseUp, instead of ItemsMouseDown. This prevents us
12965         from breaking the click count state when using dialog forms (Control
12966         reports the clicks in a similar fashion). In the previous behaviour
12967         the last WM_LBUTTONUP message in a  double click was sent to the
12968         ListView's form, instead of the ListView, which was breaking the click
12969         count for it. Fixes #80387.
12971 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
12973         * BindingNavigator.cs : fixed bugs revealed by new nunit tests
12975 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
12977         * ToolStripDropDownItem.cs: Lazy initialize the DropDown.  This prevents
12978         us from created dropdowns for menu items that do not have subitems.
12979         * ToolStripItem.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs:
12980         Check HasDropDownItems before calling DropDown so a dropdown will not be
12981         created if it isn't needed.
12983 2007-04-24  Jackson Harper  <jackson@ximian.com>
12985         * TreeView.cs: Set the first node to the selected node when we get
12986         focus if there is no selected node.
12988 2007-04-24  Andreia Gaita  <avidigal@novell.com>
12990         * MimeIcon.cs: remove using blocks so that image streams are
12991         not disposed of. Fixes #80151
12993 2007-04-24  Jackson Harper  <jackson@ximian.com>
12995         * TextBoxBase.cs: Fixup the height of textboxes when the control
12996         is created.
12998 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
13000         * ToolStrip.cs: Fully implement GetNextItem.  Call OnParentRightToLeftChanged
13001         for each ToolStripItem when the parent's RightToLeftChanged is called.
13003 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13005         * ComboBox.cs: Forward ContextMenu to the underlying textbox, if any.
13006           Fixes #80163.
13007         * Control.cs: Replace GetContextMenuInternal() with ContextMenuInternal
13008           property, so that the setter can be overriden too.
13009         * TextBox.cs: Change GetContextMenuInternal() to use
13010           ContextMenuInternal.
13012 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13014         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
13015           #81406.
13017 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13019         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
13020           #81406.
13022 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13024         * MaskedTextBox.cs: Commit this so nobody else starts working on it and
13025           avoid duplicate work. Mostily skeleton code, it's not working at
13026           all yet.
13028 2007-04-20  Leszek Ciesielski <skolima@gmail.com>
13030         * NotifyIcon.cs : stub for MouseClick event
13031         * Application.cs: stub for SetUnhandledExceptionMode
13033 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
13035         * BindingNavigator.cs : Initial (partial) implementation
13037 2007-04-23  Jackson Harper  <jackson@ximian.com>
13039         * TreeView.cs: Do not create the treeview's handle when setting
13040         the scroll position.
13041         - ExpandAll needs to compute the scrollbars so it knows which
13042         position to set the bar too.
13043         * TreeNode.cs: 
13044         * TreeNodeCollection.cs: Pass new flag to UpdateScrollBars
13046 2007-04-23  Jackson Harper  <jackson@ximian.com>
13048         * TextBoxBase.cs: Non multiline textboxes shouldn't take the enter
13049         key. Fixes #81408.
13051 2007-04-23  Jonathan Pobst  <monkey@jpobst.com>
13053         * ToolStripItem.cs: Make GetImageSize internal.
13054         * ToolStripMenuItem.cs: Use GetImageSize to determine the size we
13055         need to draw an item.  Fixes a reported issue where images on menus
13056         that were not 16x16 were drawing incorrectly.
13058 2007-04-21  Miguel de Icaza  <miguel@novell.com>
13060         * Padding.cs: Use the converter, fixes the resgen2 issue with
13061         XMLNotePad. 
13063 2007-04-21  Jackson Harper  <jackson@ximian.com>
13065         * TreeView.cs: Dont try to unhighlight the selected node if there
13066         isn't a selected node.
13068 2007-04-21  Jackson Harper  <jackson@ximian.com>
13070         * UpDownBase.cs:
13071         * TextBoxBase.cs:
13072         * ListView.cs:
13073         * ListBox.cs:
13074         * TreeView.cs: Use the InternalBorderStyle property to set the
13075         initial border style, this forces the client rectangle to be sized
13076         correctly.
13078 2007-04-20  Jackson Harper  <jackson@ximian.com>
13080         * TreeView.cs: Simplify scrolling to the last node after expanding
13081         all.
13082         - Fix some off by ones with setting the bottom.
13084 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
13086         * Control.cs: Use DefaultSize for Size, calculate ClientSize from
13087         that.  We were incorrectly doing it the other way around.  Also,
13088         update ClientSize if we change the BorderStyle before the control
13089         is created.
13091 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
13093         * XplatUI.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
13094         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
13095         XplatUIDriver.Caption to CaptionHeight. Spaces to tabs.
13096         * XplatUIDriver.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
13097         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
13098         Caption to CaptionHeight.
13099         * XplatUIX11.cs: Renamed Caption to CaptionHeight.
13100         * Theme.cs: Modified Border3DSize, BorderSize, CaptionButtonSize
13101         and FixedFrameBorderSize to return value from current XplatUI driver.
13102         * XplatUIWin32.cs: Implemented Border3DSize, BorderSize,
13103         CaptionButtonSize, DragFullWindows, DoubleClickSize, DoubleClickTime
13104         and FixedFrameBorderSize using win32 API. Renamed Caption to
13105         CaptionHeight.
13106         * XplatUIOSX.cs: Renamed Caption to CaptionHeight.
13107         * SystemInformation.cs: Fixed typo in BorderSize.
13109 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
13111         * XplatUI.cs: Added MenuAccessKeysUnderlined.
13112         * XplatUIDriver.cs: Added MenuAccessKeysUnderlined.
13113         * XplatUIX11.cs: Implemented MenuAccessKeysUnderlined by always
13114         returning false.
13115         * Theme.cs: Modified MenuAccessKeysUnderlined to return corresponding
13116         value from XplatUI driver.
13117         * XplatUIWin32.cs: Implemented MenuAccessKeysUnderlined using
13118         SystemParametersInfo.
13119         * ThemeWin32Classic.cs: Remove obsolete MenuAccessKeysUnderlined
13120         override.
13121         * XplatUIOSX.cs: Implemented MenuAccessKeysUnderlind by always
13122         returning false.
13124 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13126         * XplatUIX11.cs, Hwnd.cs: Remove warnings.
13128 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13130         * MessageBox.cs, XplatUIX11.cs, Hwnd.cs: Remove warnings.
13132 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
13134         * ToolStripManager.cs: Fix a reported InvalidCastException when unmerging
13135         MenuStrips that contain ToolStripSeparators.
13137 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13139         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Add
13140           DefineStdCursorBitmap.
13141         * Cursor.cs: Add an internal constructor so that the Cursor knows if it
13142           has been created off a standard cursor. This is used to get a
13143           bitmap of the standard cursor when Draw or DrawStretched is called
13144           in order to draw the cursor.
13145         * X11Structs.cs: Added XcursorImage and XcursorImages.
13146         * XplatUIX11.cs, XplatUIWin32.cs: Add and implement
13147           DefineStdCursorBitmap.
13148         * Cursors.cs: Update all relevant creations of Cursor to use the new
13149           internal constructor.
13151 2007-04-19  Jackson Harper  <jackson@ximian.com>
13153         * TextBox.cs: Move the has_been_focused into the base control, so
13154         some of the text adding methods can manipulate it (probably time
13155         for a better name for this flag too).
13156         - Call a new version of selectall that doesn't scroll
13157         * TextBoxBase.cs: When we append text, if the document is empty,
13158         don't scroll.  If the document has text already, we scroll to the
13159         end of the appended text.
13160         - When the text is changed, we reset the has_been_focused, so the
13161         next time the control gets focused, all the text is selected.
13163 2007-04-19  Jackson Harper  <jackson@ximian.com>
13165         * TextControl.cs: Move the margins to the document, add a method
13166         so the margin sizes can be updated.
13167         * TextBoxBase.cs: When the border style is changed, update the
13168         border sizes.
13170 2007-04-19  Jonathan Pobst  <monkey@jpobst.com>
13172         * Control.cs: Respect DefaultPadding.
13173         * GroupBox.cs: Implement DefaultPadding, DisplayRectangle takes
13174         padding into account.
13175         * ToolStrip.cs: Remove setting padding to DefaultPadding in constructor.        
13177 2007-04-19  Jackson Harper  <jackson@ximian.com>
13179         * TextControl.cs: Oops, we need to use the ClientRect not the
13180         bounds here.
13182 2007-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13184         * ListView.cs: In ItemControl.ItemsMouseDown, take into
13185         account the double clicks when CheckBoxes are used and
13186         the pointer is inside the checkbox. Fixes part of #81191.
13188 2007-04-18  Jackson Harper  <jackson@ximian.com>
13190         * TextControl.cs: Pressing the end key shouldn't move the caret
13191         past the line ending.
13192         * TextBoxBase.cs: We can still delete if we are in the line
13193         ending and the combine will just kill the existing line ending.
13195 2007-04-18  Jackson Harper  <jackson@ximian.com>
13197         * TextControl.cs: We can't move lines, then invalidate their
13198         bounds, we need to get the old bounds and combine that with the
13199         new bounds.
13200         * TextBoxBase.cs: Before combining two lines for a delete, we need
13201         to invalidate the area of the old line, since that will be moved
13202         in the combine operation.
13204 2007-04-18  Everaldo Canuto  <everaldo@simios.org>
13206         * LinkLabel.cs: In OnPaint invoke draw background to fix problems
13207         with transparent background. Fixes #80482.
13209 2007-04-18  Jonathan Pobst  <monkey@jpobst.com>
13211         * PictureBox.cs: Refresh on resize when SizeMode = Zoom.
13212         * ThemeWin32Classic.cs: Implement PictureBox.SizeMode = Zoom.
13213         [Fixes bug #81391]
13215 2007-04-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13217         * CreateParams.cs: Add a couple of helper methods and do a less string
13218           concatenation in ToString.
13219         * XplatUIX11.cs: Add an TranslateClientRectangleToXClientRectangle
13220           overload that takes a Control parameter, since this method may be
13221           called before a control is assigned to the hwnd (from
13222           CreateWindow), and update CreateWindow to use the new overload. In
13223           GetMenuOrigin subtract the title bar from the y position if the
13224           form has a window manager (since we're painting it and not X).
13225         * XplatUIWin32.cs: If we can get a form in GetMenuOrigin use the form's
13226           CreateParams to calculate the origin (since border sizes may vary).
13227           In ScreenToMenu only subtract the title height if we actually have
13228           a title.
13229         * MdiWindowManager.cs: Override MenuHeight to always return 0, since
13230           mdi children never have menus of themselves.
13231         * InternalWindowManager.cs: Implement menu handling like form does.
13232           Added GetMenuOrigin to calculate the menu origin, can't use the
13233           CreateParams from the form like normally since it's lying.
13234         * Hwnd.cs: Implement GetBorderSize better (in the sense more
13235           windows-like) and add Inflate and comparison operators to the
13236           Borders type. When calculating MenuOrigin and it's a form with a
13237           window manager, use the window manager to calculate it.
13239 2007-04-17  Chris Toshok  <toshok@ximian.com>
13241         * Control.cs (CreateControl): turns out in 2.0 we don't need this
13242         OnBindingContextChanged thing here.  It's only generated from
13243         ContainerControl.OnCreateControl.  Fixes a newly written unit test
13244         - BindingTest.BindingContextChangedTest4.
13245         
13246 2007-04-17  Jackson Harper  <jackson@ximian.com>
13248         * ScrollBar.cs: When setting values, make sure the current
13249         position stays within the new values range.
13251 2007-04-17  Chris Toshok  <toshok@ximian.com>
13253         * Control.cs (CreateControl): talk about a bizarre corner case.
13254         Don't emit OnBindingContextChanged here if we're a parentless
13255         control (i.e. if we're a form.).  Fixes
13256         BindingTest.BindingContextChangedTest2.
13258 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
13260         * ButtonBase.cs: Remove TextFormatFlags.WordBreak to mimic same behavior 
13261         from win32. Fixes #81255.
13263 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
13265         * ThemeWin32Classic.cs: Remove text offset from DrawButtonText as it is
13266         already present in CalculateButtonTextAndImageLayout.
13268 2007-04-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13270         * XplatUIX11.cs: When setting min/max size for a window we need to
13271           translate the coordinates to x coordinates. Create an overload of
13272           SetWindowMinMax that takes a CreateParams handling this, and change
13273           SetWMStyles to call this function (can't use Control.FromHandle in
13274           the SetWindowMinMax to get the control/CreateParams from the handle
13275           because the handle might not have been assigned to the control
13276           yet). Fixes #81371.
13278 2007-04-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13280         * ListView.cs: In ItemControl.ItemMouseDown, don't change check state
13281         if StateImageList is non-null and it has less than two items (match MS
13282         behaviour). Also, in HandleNavKeys handle the Space key, calling
13283         the new ToggleItemsCheckState method, which tries to change the
13284         checked state of the selected items. Fixes part of #81191.
13286 2007-04-16  Jackson Harper  <jackson@ximian.com>
13288         * RichTextBox.cs: namespace cleanup.
13290 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
13292         * XplatUIWin32.cs: Back last parameter to true in SetClipRegion.
13294 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
13296         [Fixes #79447]
13297         * Control.cs: Call invalidate in set_Region.
13299         * XplatUIX11.cs, XplatUIWin32.cs: Remove invalidate from SetClipRegion as
13300         it dont works here.
13302 2007-04-16  Jackson Harper  <jackson@ximian.com>
13304         * TextBoxBase.cs: When enter is pressed, we need to update all
13305         lines below the current.
13307 2007-04-16  Jonathan Pobst  <jpobst@monkey.com>
13309         * MdiClient.cs: Implement implicit menu merging for MDI
13310         children.  When a child form is active, if it has a menustrip
13311         and the parent form has a MainMenuStrip, automatically merge
13312         the menus.
13314 2007-04-15  Andreia Gaita  <avidigal@novell.com>
13316         * TabControl.cs: Refactored sizing methods to not repeat
13317         code all over the place. Tab bounds are now calculated
13318         as if alignment is top and single line, and only when 
13319         setting the bounds are the positions adjusted according
13320         to alignment. Replaced hardcoded positions, spacings and
13321         paddings by getting the values the ThemeEngine. 
13322         Fixes #79619.
13323         
13324         * Theme.cs: Change TabControl properties and methods so
13325         that all start with TabControl*. Added more properties
13326         to help remove hardcoded values on tabcontrol.
13327         Add CPDrawBorder3D declaration so the Theming classes
13328         can access it.
13329         
13330         * ThemeClearlooks.cs, ThemeNice.cs: Method signature changes from Theme.
13332         * ThemeWin32Classic.cs: Rector TabControl out to the TabControlPainter
13333         on the Theming namespace, and call the appropriate methods here.
13334         Change CPDrawBorder3D to public.
13336 2007-04-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13338         * Control.cs: In WmRButtonUp, send the WM_CONTEXTMENU message to
13339         the control after firing the OnMouseUp event, instead of sending
13340         the message before the mentioned event. This is so we can match the
13341         MS behaviour. Fixes part of #80385.
13343 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
13345         * ToolStripItem.cs: Call the RightToLeftChanged event when setting the
13346         RightToLeft property.
13348 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
13350         * ToolStrip.cs: Add properties and internal methods to support merging.
13351         * ToolStripItem.cs: Add MergeAction and MergeIndex.
13352         * ToolStripItemCollection.cs: Add Insert and Remove methods that do
13353         not trigger reparenting or layouts.
13354         * ToolStripManager.cs: Add Merge and RevertMerge methods.
13355         * ToolStripOverflow.cs: Add a convenience method to find the ToolStrip that
13356         is hosting the overflow menu.
13358 2007-04-13  Jackson Harper  <jackson@ximian.com>
13360         * TextControl.cs: Set the line ending correctly for the first
13361         inserted line.
13363 2007-04-13  Sebastien Pouliot  <sebastien@ximian.com>
13365         * Theme.cs: Update GetMethod to get the new definition for 
13366         KnownColors.Update (and fix theme color updates).
13368 2007-04-12  Everaldo Canuto  <everaldo@simios.org>
13370         * MessageBox.cs: Fix some test and button position.
13372 2007-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13374         * Form.cs: Consider the implicit controls in
13375         GetRealChildAtPoint. We need it since this method
13376         is called on Form when handling the some messages in
13377         WndProc, and need to consider those implicit ones too.
13378         Fixes #80385.
13380 2007-04-12  Jonathan Pobst  <monkey@jpobst.com>
13382         * ToolStripMenuItem.cs: Display the ShortcutKeyDisplayString even
13383         if there are no ShortcutKeys set.
13384         * ToolStripProfessionalRenderer.cs: If an item has had its BackColor
13385         set, use it when painting.
13387 2007-04-12  Jackson Harper  <jackson@ximian.com>
13389         * TextControl.cs: Fix some off-by-one issues in line duplication
13390         and insertion in the undo manager. Also, overwrite the first tag
13391         of a line on insert, if it is just a zero lengthed tag. This
13392         prevents us from getting an extra stranded tag at the beginning of
13393         the first line.
13395 2007-04-11  Everaldo Canuto  <everaldo@simios.org>
13397         * Label.cs: Remove check for handle created in CalcAutoSize, we need 
13398         to calculated proper size including when handle was not created yet.
13400 2007-04-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13402         * MdiWindowManager.cs: When moving a form, allow the form to be moved
13403           when the mouse is outside of it's parent's client rectangle. Fixes
13404           #79982 (take 3, part 2).
13406 2007-04-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13408         * X11Structs.cs: Add a few ToString() overrides.
13409         * XplatUIX11.cs: Added GetTopLevelWindowLocation to try to calculate
13410           the window location in a window-manager independent way. Reworked
13411           FrameExtents, it now actually works. Reworked AddConfigureNotify
13412           and ReparentNotify handling to use GetTopLevelWindowLocation
13413           instead of the earlier, more hacky solution. Reworked SetWMStyles,
13414           hopefully for the better: we now set _NET_WM_WINDOW_TYPE* for all
13415           windows, DIALOG for modal windows, UTILITY for toolboxes and NORMAL
13416           for all other windows (fixes #81281 part 1), a toolwindow is hidden
13417           from the taskbar if it has a parent (fixes #81281 part 2 for kwin),
13418           and generally refactored to do as few calculations as possible
13419           inside the lock.
13421 2007-04-09  Sebastien Pouliot  <sebastien@ximian.com>
13423         * Theme.cs: Change "reflective-contract" between MWF and SD to 
13424         minimize # of calls, avoid Color serialization and avoid updating 
13425         every "known colors" each time a single one is updated.
13427 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
13429         * DataGridTextBoxColumn.cs: Only set IsInEditOrNavigateMode to false
13430         when not readonly and the text is explicitly set. Code style updates.
13431         * DataGridTableStyle.cs: Removed extra line.
13432         * DataGrid.cs: Code style updates. Removed extra whitespace.
13433         * DataGridColumnStyle.cs: Code style updates. Removed extra 
13434         whitespace.
13436 2007-04-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13438         * XplatUIX11.cs: Added comment that "fixes" #80021.
13440 2007-04-09  Jackson Harper  <jackson@ximian.com>
13442         * TextControl.cs: We don't need this -1 on the line count anymore.
13444 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
13446         * DataGridTextBoxColumn.cs: In Commit, use TypeConverter to convert
13447         entered value to underlying type, and convert it back to a string to
13448         apply formatting. Modified GetFormattedValue to use TypeConverter
13449         if available.
13451 2007-04-08  Gert Driesen  <drieseng@users.sourceforge.net>
13453         * ListViewItem.cs: Added null checks. Avoid duplicating code in ctors.
13454         Use SubItems property when we want to ensure there's at least one
13455         subitem. Modified SubItems property to ensure there's always at least
13456         one subitem. Avoid using ListViewSubItemCollection.AddRange to match
13457         the NRE's reported by MS.
13459 2007-04-07  Gert Driesen  <drieseng@users.sourceforge.net>
13461         * ProgressBar.cs: On 2.0 profile, default forecolor is Highlight. Added
13462         ResetForeColor override on 2.0. Fixed a few API compatibility issues.
13463         Spaces to tabs. Removed extra tabs.
13465 2007-04-06  Jonathan Pobst  <monkey@jpobst.com>
13467         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
13468         infinite loop.  (Forgot to copy to the horizontal toolstrip case.)
13470 2007-04-06  Jackson Harper  <jackson@ximian.com>
13472         * TextBoxBase.cs: When a delete removes a line, recalculate all
13473         lines below that line (they need to get offsets setup correctly)
13474         and invalidate.
13476 2007-04-05  Jackson Harper  <jackson@ximian.com>
13478         * TextControl.cs: We need to invalidate across the width of the
13479         document when we are invalidating multiple lines.
13480         * TextBoxBase.cs: Don't delete into the line ending.
13482 2007-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13484         * ListView.cs: Restore the check for the MouseHover event
13485         in ListView. It looks like the ListView fires more than one MouseHover
13486         event when HoverSelection is true  _only_ in weird-corner scenarios, but
13487         in most of the cases it only fires one. Also, add the 2.0 ItemMouseHover
13488         event.
13490 2007-04-05  Mike Kestner  <mkestner@novell.com>
13492         * ListView.cs : raise MouseDown before updating selection.
13493         [Fixes #80373 tab 1&3]
13495 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
13497         * ToolStripRenderer.cs: Add static method to mirror image.
13498         * ToolStripProfessionalRenderer.cs: Support ImageTransparentColor
13499         and RightToLeftAutoMirrorImage.
13500         * ToolStripItem.cs: Remove MonoTODO from ImageTransparentColor.
13502 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
13504         * ToolStripSplitStackLayout.cs: Support Alignment property.
13505         * ToolStripItem.cs: Remove MonoTODO from the Alignment property.
13507 2007-04-05  Jackson Harper  <jackson@ximian.com>
13509         * TextControl.cs: Move around the line endings when crossing line
13510         boundaries.
13511         - When combining lines, strip the ending text off the first line.
13513 2007-04-05  Jackson Harper  <jackson@ximian.com>
13515         * TextControl.cs:
13516         * TextBoxBase.cs: Try to never move the cursor into the line
13517         ending.
13518         
13519 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
13521         * ToolStripItem.cs: Make sure we aren't firing mouse events when
13522         the item is disabled.  Also add a few missing methods.
13524 2007-04-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13526         * ListView.cs: We don't need the MouseEnter/MouseLeave check
13527         to fire just one MouseHover event when HoverSelection is true, since
13528         .Net does fire more than one MouseHover event in that scenario. Also,
13529         fix the selection in HoverSelection, by invoking UpdateMultiSelect
13530         if MultiSelect is true, instead of only setting ListViewItem.Selected.
13531         Finally, we need to reset the Hover logic in MouseMove, even when we
13532         don't have a selected item.
13534 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
13536         * ToolStrip.cs: Add several missing methods, properties, and events.
13538 2007-04-04  Chris Toshok  <toshok@ximian.com>
13540         * DataGridTextBoxColumn.cs: set the bounds of the text box to
13541         (0,0,0,0) in Commit, as MS does.
13543         * DataGrid.cs: call EndEdit() from Select() as microsoft does, and
13544         make sure we set CurrentRow on a row header click *before* calling
13545         Select.  This moves the current cell (and the textbox) to the new
13546         row.  The call to Select then hides the textbox, giving us the
13547         correct behavior.  Fixes #80362.
13549         * CurrencyManager.cs (UpdateIsBinding): raise ItemChanged (-1).
13550         (ListChangedHandler): reorder the position/current changed events,
13551         and call UpdateIsBinding in the ItemAdded case.
13553         * GridColumnStylesCollection.cs: add some columns events, one of
13554         which raises the CollectionChanged event.
13556 2007-04-04  Jackson Harper  <jackson@ximian.com>
13558         * TextControl.cs: When we delete multiple selection lines
13559         invalidate the selection area, don't need to do that for single
13560         lines because the final update view will handle it.
13562 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
13564         * Control.cs: When we CreateControl, we need to also create all of the
13565         control's children.  The child's OnLoad must also fire before the parent's
13566         OnLoad.  Fixes the toolbox size in PDN.
13568 2007-04-04  Jackson Harper  <jackson@ximian.com>
13570         * TextBoxBase.cs: When the user presses enter, insert a line
13571         ending into the text. (Maybe this would be a good spot for
13572         Environment.NewLine).
13573         * TextControl.cs: Remove undo manager hack, line endings get
13574         inserted properly now.
13575         
13576 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
13578         * MenuAPI.cs: 
13579         - Remove unneeded parameters in UpdateCursor.
13580         - Fix UpdateCursor to check if menu is active.
13581         - Call UpdateCursor when menu deactivate my click.
13582         [Fixes remaining issues from #80410]
13584 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
13586         * Control.cs: GetRealChildAtPoint method added, it make an
13587         recursive child control search for the point. 
13589         * Form.cs: Makes use of GetRealChildAtPoint in mouse event after closes
13590         menu.
13592         * MenuAPI.cs: Makes use of GetRealChildAtPoint in UpdateCursor.
13594 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
13596         * Form.cs: Fix mouse position when send back mouse event after closes
13597         menu.
13599 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
13601         * Form.cs: Simplify the BUTTONDOWN for active tracker.
13603 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
13605         * Control.cs: Fix an issue where if a user resized a control inside
13606         a sizing method like OnResize, we would overwrite their explicit
13607         value.  Also, only call DefaultSize once in the constructor instead
13608         of 4 times.  Also, do not call SetBoundsCore from SetBounds if 
13609         nothing actually changed.
13611 2007-04-03  Jackson Harper  <jackson@ximian.com>
13613         * TextControl.cs: Don't attempt to copy text for lines with no
13614         text in them (technically this shouldn't happen, but we aren't
13615         always inserting line endings when we should be).
13617 2007-04-03  Jackson Harper  <jackson@ximian.com>
13619         * TextBoxBase.cs: Calculate the scrollbars before calculating the
13620         document, because this sets some of the document size properties
13621         that are needed.
13623 2007-04-03  Jackson Harper  <jackson@ximian.com>
13625         * TextBoxBase.cs: We need to calculate maximums even if this is
13626         not a multiline control, because the maxs are used for scrolling.
13627         - Display the caret after doing a page up/down, we need to
13628         manually display it because a proper CaretMoved event isn't
13629         triggered (this is because of the way the math is done to
13630         determine how far to scroll).
13632 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
13634         * ToolBar.cs: Fix some breakage caused by the SetBoundsCore change.
13635         (ToolBar was relying on SetBoundsCore to default the values sent 
13636         base off of BoundsSpecified.)
13638 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13640         * DateTimePicker.cs: Change Text so that when a null value or empty
13641           string is assigned to the test we always raise ValueChanged and
13642           TextChanged (earlier implementation would only raise ValueChanged
13643           if the current date value was different from DateTime.Now).
13645 2007-04-03  Andreia Gaita <avidigal@novell.com> 
13647         * ButtonBase: Call update after invalidation, fixes #80194
13649 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13651         * ThemeWin32Classic.cs: Draw StatusBar using double buffering. Fixes
13652           #79335.
13654 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13656         * XplatUIX11.cs: SetWMStyles: If the control is a form with
13657           FormBorderStyle = None, don't give the window any decorations.
13658           Fixes #81276.
13660 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13662         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
13663         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style
13664           to check for is a mix of several styles (such as WS_CAPTION for
13665           instance).
13666         * Control.cs: Don't paint an area bigger than the client area when
13667           painting the background colour. Add an internal GetCreateParams.
13668           Update calls to XplatUI.CalculateWindowRect due to API change.
13669         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole
13670           window's size, and handle WM_NCCALCSIZE in DefWndProc to calculate
13671           the size if it hasn't been handled by any windows. When creating
13672           and moving windows, X wants the location of the entire window, but
13673           the size of the client window, so add
13674           TranslateClientRectangleToXClientRectangle,
13675           TranslateWindowSizeToXWindowSIze and
13676           TranslatedXWindowSizeToWindowSize to cope with this, and call them
13677           before every window creation and move. Update CalculateWIndowRect
13678           to use Hwnd.GetWindowRect (one step towards removing DeriveStyles).
13679           In AddConfigureNotify don't do anything if the hwnd is a zombie
13680           (fixes the BadWindow we were getting while running the tests),
13681           always calculate the offsets when it's a parentless window, not
13682           only when reparented, and translate the window size, since we're
13683           getting the client size of the whole window, excluding entire
13684           window.
13685         * Theme.cs: Added BorderSizableSize.
13686         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
13687           anymore. Update calls to XplatUI.CalculateWindowRect due to API
13688           chang
13689         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API
13690           change. Fake the window styles here instead of in XplatUIWin32 so
13691           that all back-ends get the same window styles (and it's Form that's
13692           deciding when to use wm, not the Win32 backend anyways)
13693         * Hwnd.cs: Completely reworked GetWindowRectangle and
13694           GetClientRectangle - they are now passed a CreateParams and they
13695           only use Style and ExStyle to determine the rectangles (they should
13696           now work just like Win32AdjustWindowRectEx - though quite a few
13697           special cases are probably missing). They should also be 100%
13698           complimentary (i.e. GetWindowRectangle (GetClientRectangle (rect))
13699           == rect), and all numbers (borders, menu sizes) are taken from the
13700           current theme. Added a GetBorders helper function that will return
13701           the borders for any given CreateParams (including captions and
13702           menus), and GetBorderSize that returns the given border size only.
13703         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
13704           Hwnd.GetClientRectangle.
13706 2007-04-02  Chris Toshok  <toshok@ximian.com>
13708         * DataGridBoolColumn.cs: rewrite things a bit, and fix up the
13709         logic between the values we present to the user and the values
13710         which are stored in the column's property.  Also, don't call
13711         GetPreferredSize - it's virtual. Along the way, fix bug #80965.
13713 2007-04-02  Jackson Harper  <jackson@ximian.com>
13715         * TextBoxBase.cs: Scroll faster!
13717 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
13719         * StatusStrip.cs: Layout fixes for PDN.
13720         * ToolStrip.cs: Set item's available to true, and placement to main when
13721         added.
13722         * ToolStripItem.cs: Fix an Available issue, check that Parent is really
13723         changing in setter before doing any work, add InternalVisible.
13724         * ToolStripPanel.cs: Remove unused variable to fix compiler warning.
13725         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
13726         infinite loop.
13728 2007-04-02  Jackson Harper  <jackson@ximian.com>
13730         * TextBox.cs: LBUTTON does not make the textbox select all of it's
13731         text on focus.
13733 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13735         * XplatUIWin32.cs: Use the previous change in SetParent for forms only.
13736           Makes ToolStripComboBoxes show up again.
13738 2007-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13740         * ListView.cs: Add a hover_pending field in ListView
13741         to fire just one OnMouseHover event for each MouseEnter/MouseLeave
13742         cycle (we are resetting the MouseHover logic in XplatUI
13743         to handle HoverSelection). Fixes #80429.
13745 2007-04-02  Jackson Harper  <jackson@ximian.com>
13747         * TextControl.cs: Make sure the attributes get set on the last
13748         tag.
13749         - Still have to do the end tag if we have stepped all the ways to
13750         the end.
13752 2007-04-02  Sebastien Pouliot  <sebastien@ximian.com>
13754         * XplatUIOSX.cs, XplatUIX11.cs, XplatUIX11GTK.cs: Remove dependency
13755         on an internal libgdiplus call when the information is already 
13756         available via the public API.
13758 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13760         * Control.cs: Call ContainerControl.ChildControlRemoved whenever a
13761           control is removed from a control collecftion.
13762         * XplatUIX11.cs: The first location for toplevel form is (22, 22).
13763           Fixes FormPropertyTest (failed on rare occasions).
13764         * XplatUIWin32.cs: Add a workaround in SetParent for strange behaviour
13765           of Win32SetParent (when changing from no parent to a parent it
13766           might add the new parent's location in screen coordinates to this
13767           window's location).
13768         * Form.cs: Rework ChangingParent once again, now the handle is
13769           recreated whenever a FormWindowManager is added or removed (that is
13770           whenever a normal form is parented or abandoned). Also change
13771           CreateParams so that all non-toplevel windows always get the
13772           specified sice (StartupPosition is never considered for
13773           non-TopLevel forms).
13774         * ContainerControl.cs: Add ChildControlRemoved, the container control
13775           needs to be notified when a control is removed from it's
13776           collection, in the case the removed control is the active control.
13778 2007-04-02  Jackson Harper  <jackson@ximian.com>
13780         * RichTextBox.cs: Use the new methods for setting the font and
13781         color, these methods set the specified attribute without
13782         overriding the other attributes.
13784 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
13786         * ToolStripPanel.cs: Fixes for better layouts in PDN.
13788 2007-03-31  Gert Driesen  <drieseng@users.sourceforge.net>
13790         * TextBox.cs: Added internal ChangeBackColor method to special-case
13791         Color.Empty. Added check for invalid ScrollBars value.
13792         * TextBoxBase.cs: Added internal ChangeBackColor method.
13793         * RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added
13794         internal ChangeBackColor method to special-case Color.Empty. Added
13795         check for invalid ScrollBars value.
13797 2007-03-30  Everaldo Canuto  <everaldo@simios.org>
13799         * MenuItem.cs: On invalidate prevent form to create handle. [Fixes #81272]
13801 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
13803         * ScollableControl.cs: Add HorizontalScroll and VerticalScroll properties.
13804         * ScrollProperties.cs, HScrollProperties.cs, VScrollProperties.cs: Added.
13805         [Based on submitted patch from Olivier Duff.]
13807 2007-03-30  Jackson Harper  <jackson@ximian.com>
13809         * TextBox.cs: Only select all on initial focus if the user has not
13810         specified a selection area.
13812 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
13814         * UserControl.cs: Override CreateParams.
13816 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13818         [ Fixes #80995 ]
13820         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
13821         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style to
13822           check for is a mix of several styles (such as WS_CAPTION for instance).
13823         * Control.cs: Don't paint an area bigger than the client area when painting
13824           the background colour. Add an internal GetCreateParams. Update calls to
13825           XplatUI.CalculateWindowRect due to API change.
13826         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole window's
13827           size, and handle WM_NCCALCSIZE in DefWndProc to calculate the size if it
13828           hasn't been handled by any windows. When creating and moving windows, X
13829           wants the location of the entire window, but the size of the client
13830           window, so add TranslateClientRectangleToXClientRectangle,
13831           TranslateWindowSizeToXWindowSIze and TranslatedXWindowSizeToWindowSize
13832           to cope with this, and call them before every window creation and move.
13833           Update CalculateWIndowRect to use Hwnd.GetWindowRect (one step towards
13834           removing DeriveStyles). In AddConfigureNotify don't do anything if the
13835           hwnd is a zombie (fixes the BadWindow we were getting while running the
13836           tests), always calculate the offsets when it's a parentless window, not
13837           only when reparented, and translate the window size, since we're getting
13838           the client size of the whole window, excluding entire window.
13839         * Theme.cs: Added BorderSizableSize.
13840         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
13841           anymore. Update calls to XplatUI.CalculateWindowRect due to API change.
13842         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API change.
13843           Fake the window styles here instead of in XplatUIWin32 so that all
13844           back-ends get the same window styles (and it's Form that's deciding when
13845           to use wm, not the Win32 backend anyways)
13846         * Hwnd.cs: Completely reworked GetWindowRectangle and GetClientRectangle -
13847           they are now passed a CreateParams and they only use Style and ExStyle
13848           to determine the rectangles (they should now work just like
13849           Win32AdjustWindowRectEx - though quite a few special cases are probably
13850           missing). They should also be 100% complimentary (i.e. GetWindowRectangle
13851           (GetClientRectangle (rect)) == rect), and all numbers (borders, menu
13852           sizes) are taken from the current theme. Added a GetBorders helper
13853           function that will return the borders for any given CreateParams
13854           (including captions and menus), and GetBorderSize that returns the given
13855           border size only.
13856         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
13857           Hwnd.GetClientRectangle.
13859 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13861         * Form.cs: Don't layout mdi children on MdiParent creation, the initial
13862           layout of the mdi children is handled by CreateParams. Fixes
13863           #79964,
13865 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
13867         * MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is
13868         processed.
13870         * Form.cs: When active tracker mouse down is not processed, send event 
13871         back to control inside mouse position. [Fixes #81227]
13873 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
13875         * ComboBox.cs: Override the ComboListBox's ActivateOnShow property and
13876         remove WS_VISIBLE from CreateParams to prevent combobox dropdowns from
13877         stealing focus from the active form on Windows.  (Control will be made
13878         visible in ShowWindow.)
13880 2007-03-29  Mike Kestner  <mkestner@novell.com>
13882         * ImageList.cs : add internal Changed event.
13883         * ListView.cs : hook up to StateImageList.Changed to perform
13884         invalidations when the the state icon list changes. [Fixes #81191]
13886 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
13888         * ToolTip.cs: Override the ToolTipWindow's ActivateOnShow property
13889         to prevent tooltips from stealing focus from the active form on Windows.
13891 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
13893         * ThemeWin32Classic.cs: Small stetic fixes in notifyicon balloon. 
13895         * ThemeClearlooks.cs: Implement notifyicon balloon for clearlooks theme.
13897 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
13899         * NotifyIcon.cs, ThemeWin32Classic.cs: Icon support added to notifyicon
13900         balloons.
13902 2007-03-29  Jackson Harper  <jackson@ximian.com>
13904         * TextControl.cs: When deleting text from non multiline textboxes,
13905         we need to update the entire document, because line offsets will
13906         be shifting.
13908 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
13910         * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method
13911         added to theme, now we can create themes that uses diferent notify engines
13912         like notification-daemon from galago project or growl for Mac OS.
13914 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
13916         * NotifyIcon.cs: Prevent Balloon to show in task bar.
13918 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
13920         * XplatUIX11.cs: Prevent system to open more than one balloon.
13922         * NotifyIcon.cs: Prevent system to open more than one balloon and remove
13923         some compiler warning messages.
13925 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
13927         [Fixes #79149]
13929         * XplatUIX11.cs: Implement SystrayBalloon for X11 systems.
13931         * ThemeWin32Classic.cs, Theme.cs: DrawBalloonWindow and BalloonWindowRect 
13932         implemented, this methods is used by NotifyIcon.BalloonWindow class.
13934         * NotifyIcon.cs: BalloonWindow class added to support Balloon in X11 
13935         systems.
13937 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13939         * ListViewItem.cs: Forgot to make Invalidate internal.
13941 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13943         * ListView.cs: Add a InvalidateSelection method to
13944         invalidate methods which are currently selected, and call
13945         it when setting FullRowSelect and HideSelection, instead of
13946         calling Redraw.
13948 2007-03-28  Chris Toshok  <toshok@ximian.com>
13950         * XplatUIX11.cs (UnmapWindow): reindent this block.
13952         * DataGrid.cs (UpdateSelectionAfterCursorMove): we need to update
13953         the selection_start if we're moving the selection (that is, not
13954         extending it). Fixes bug #80461.
13956 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
13958         * ProgressBar.cs: Make the default MarqueeAnimationSpeed = 100.
13959         * ToolStripPanel.cs: Fix RowMargin, Renderer, RenderMode, and
13960         create private ControlCollection.
13962 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
13964         * Control.cs: We need to call OnVisibleChanged for our implicit
13965         children as well as our normal children.  Fixes scrollbars in
13966         comboboxes not showing up.
13968 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
13970         * Control.cs, Form.cs: Anywhere we call CreateHandle, we need to do
13971         the check for IsHandleCreated first.  The check in CreateHandle is not
13972         good enough because CreateHandle can be overriden, and the override 
13973         should not be called if the handle is already created.
13975 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
13977         * ToolStrip.cs: Remove MonoTODO for tooltips.
13978         * ToolStripComboBox.cs: Fix MonoTODO for DropDownHeight and events.
13979         * ToolStripContainer.cs: Add custom ControlCollection class.
13980         * ToolStripContentPanel.cs: Fix Renderer setting to match MS behavior.
13981         * ToolStripDropDown.cs: Add some missing properties/methods.
13982         * ToolStripDropDownMenu.cs: Override OnLayout and SetDisplayedItems.
13983         * ToolStripItem.cs: Remove MonoTODO for tooltips.
13984         * ToolStripManager.cs: Add IsShortcutDefined.
13985         * ToolStripOverflow.cs: Override LayoutEngine.
13986         * ToolStripProgressBar.cs: Add MarqueeAnimationSpeed.
13987         * ToolStripSeparator.cs: Add ImageKey.
13989 2007-03-28  Jackson Harper  <jackson@ximian.com>
13991         * TextControl.cs: If a char delete removes a line ending, we need
13992         to update the ending style.
13993         - Make sure the line ending calcs get called.
13995 2007-03-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13997         * XplatUIX11.cs: CreateWindow: Remove old default form location code,
13998           it was making the new code not work. Fixed a typo in the new code
13999           as well. Fixes #79826.
14001 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
14003         * XplatUIWin32.cs:
14004         - NIF_STATE and NIF_INFO added to NotifyIconFlags.
14005         - NOTIFYICONDATA properties sizes fixed, szTip is 128, not 64.
14006         - SystrayBalloon method implemented.
14007         [Add support for notifyicon balloon on win32, #79149]
14009 2007-03-27  Mike Kestner  <mkestner@novell.com>
14011         * ThemeWin32Classic.cs : update StateImageList selection to mirror
14012         the ms behavior when only one image is added to the list.
14013         [Fixes #81191]
14015 2007-03-27  Jackson Harper  <jackson@ximian.com>
14017         * TextControl.cs: Improvements to non multiline line ending
14018         drawing/measuing.
14020 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
14022         * XplatUIX11.cs: Fix the time which tooltip is opened for NotifyIcon. 
14024 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
14026         * NotifyIcon.cs: 
14027         - Balloon message handling added.
14028         - Call XplatUI.SystrayBalloon in ShowBalloonTip. 
14030         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
14031         XplatUIOSX.cs, XplatUIX11-new.cs: ShowBalloonTip method renamed 
14032         to SystrayBalloon to me like other Systray method, also a
14033         handle parameter added.
14035 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14037         * ListView.cs: Show scrollbars even when items.Count == 0
14038         but the columns Width is bigger than the ListView.Width.
14039         Also, when columns.Count == 0 set layout_wd and layout_ht
14040         to the ClientRectangle values, so we don't show any scrollbar
14041         in that case.
14043 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
14045         * XplatUIStructs.cs: Balloon (NIN_BALLOON*) constants added.
14047 2007-03-27  Jackson Harper  <jackson@ximian.com>
14049         * RichTextBox.cs: The RTF library decodes the text properly for us
14050         now.
14052 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14054         * ListView.cs: Display HeaderControl even when columns.Count == 0.
14055         * ThemeWin32Classic.cs: Use SystemBrushes.Control to draw the
14056         ListView header (HeaderControl), instead of Control.BackColor.
14058 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
14060         * Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
14061         Fixes tab control issues where controls would not show up because they
14062         never received their OnVisibleChanged call.
14064 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
14066         * NotifyIcon.cs: Balloon events added (BalloonTipClicked, BalloonTipClosed,
14067         BalloonTipShown).
14069 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
14071         * Control.cs: We won't get a WM_SHOWWINDOW when we create a window that
14072         is maximized or minimized, so move CreateControl to Control.OnVisibleChanged.
14073         * Form.cs: After we set the form visible, send a fake WM_SHOWWINDOW if we
14074         are max or min.  Remove WS_VISIBLE from CreateParams unless we are recreating
14075         the handle.  Fix WindowState by using the internal variable until we are 
14076         sure that we've been shown.
14077         * XplatUIX11.cs: Do not generate a WM_SHOWWINDOW message if new form is
14078         max or min.
14079         [Fixes bug #81198]
14081 2007-03-27  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14083         * XplatUIX11.cs: Windows without WS_CAPTION can still get decorations
14084           (at least borders). Fixes #79386 on Linux (with a small difference
14085           in behaviour: when trying to resize a caption-less window metacity
14086           shows the sysmenu. Resizing is still possible though).
14087         * XplatUIWin32.cs: When setting window styles send request an extra
14088           WM_NCCALCSIZE when it's a form without title (due to no text and no
14089           caption), since Win32 seems to calculate it wrong the first time we
14090           get the message, though the second time things work as they should.
14091         * Form.cs: Reorder a few statements in ChangingParent, otherwise the
14092           newly reparented window might show up unparented. Update
14093           CreateParams to exclude WS_DLGFRAME if ControlBox is false and
14094           there's no title text. Fixes #79386.
14096 2007-03-27  Mike Kestner  <mkestner@novell.com>
14098         * ListBox.cs : don't perform invalidations if the handle hasn't been
14099         created.  [Fixes #80753]
14101 2007-03-27  Mike Kestner  <mkestner@novell.com>
14103         * ListBox.cs : don't adjust top item when SelectedIndex is set to -1.
14104         [Fixes #80428]
14106 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
14108         * XplatUIWin32.cs: Complete NOTIFYICONDATA structure, additional fields 
14109         needed to implement Balloon.
14111 2007-03-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14113         * ListViewItem.cs: In the constructors that take
14114         an array of strings, don't use ListViewSubItemCollection.AddRange
14115         method to add items, since we need to have a different behaviour (in
14116         the constructors we add an item for each null string, opposed to
14117         the behaviour of AddRange, which adds nothing).
14119 2007-03-26  Andreia Gaita  <avidigal@novell.com>
14121         * NumericUpDown.cs: Fix broken 1.1 api for ParseEditText
14123 2007-03-26  Jackson Harper  <jackson@ximian.com>
14125         * TextControl.cs: Draw and measure line endings when in non
14126         multiline mode.
14127         - When searching the text, count the end of the last line as a
14128         word boundary.
14130 2007-03-26  Jackson Harper  <jackson@ximian.com>
14132         * RichTextBox.cs: The selection_start and selection_end don't
14133         really track the correct tags for the selection. So we'll manually
14134         compute the correct tag here.
14136 2007-03-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14138         * ProgressBar.cs, ThemeWin32Classic.cs: Implemented drawing of Marquee
14139           and Continuous styles. Fixes #79469.
14141 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
14143         * ToolStrip.cs: Implement Tooltips.
14144         * ToolStripItem.cs: Create internal method for determining tooltip.
14146 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
14148         * PropertyGrid.cs: Hide a EditorBrowsable attribute from 1.1 API.
14150 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
14152         * NotifyIcon.cs: On disposing verify if icon is visible and hide it,
14153         it prevents a problem thak keeps icon visible after application 
14154         closes on win32.
14156 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
14158         * NotifyIcon.cs: Balloon properties and methods created.
14160         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
14161         XplatUIOSX.cs, XplatUIX11-new.cs: Implement ShowBalloonTip method.
14163 2007-03-25  Jonathan Pobst  <monkey@jpobst.com>
14165         * ToolStripComboBox.cs: Default the ComboBox's FlatStyle to Popup.
14167 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
14169         * Control.cs: Make SetBoundsCore match MS better.  The BoundsSpecified
14170         parameter indicates which aspects were explicit/user-set.
14171         * ComboBox.cs, ListBox.cs: Call SetBoundsCore correctly. (no 0 parameters).
14173 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
14175         * ProgressBar.cs: Throw AOORE instead of AE for property Value (2.0).
14176         * ScrollBar.cs: Throw AOORE instead of AE for properties LargeChange,
14177         SmallChange, and Value (2.0).
14178         * Timer.cs: Throw AOORE instead of AE for property Interval (2.0).
14180 2007-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14182         * ListView.cs: Always set item_control.Width in LayoutDetails
14183         if View is Details. Setting it later in CalculateScrollBars
14184         in a not-so-corner scenario (the sum of columns width is
14185         not bigger than the ListView width when handle is created, and then
14186         that sum gets bigger by increasing the width of the columns)
14187         causes a very weird recursion path (which shouldn't be happening,
14188         since header_control sets it in CalculateScrollBars too). This bug
14189         appeared after Chris' fixes for handle created issues, so probably
14190         it's related to some handle-creation time.
14192 2007-03-23  Chris Toshok  <toshok@ximian.com>
14194         * DataGrid.cs (GetVisibleRowCount): increase the row count in the
14195         case where there's an add row, just so we don't end up in a case
14196         where it's not displayed (this happens when the row is partially
14197         obscured).  Fixes bug #79574.
14199 2007-03-23  Jackson Harper  <jackson@ximian.com>
14201         * TextControl.cs:
14202         * TextBoxBase.cs:
14203         * RichTextBox.cs: Preserve line endings in the lines text buffer,
14204         also added an enum that represents the line ending type. 
14206 2007-03-23  Andreia Gaita  <avidigal@novell.com>
14208         * NumericUpDown.cs: Fix logic so Text and Value properties are not
14209         messed with in every method call, but only from DownButton, 
14210         UpButton, UpdateEditText() and ValidateText. Fixes #80346
14212 2007-03-23  Chris Toshok  <toshok@ximian.com>
14214         * DataGridTextBoxColumn.cs (GetFormattedValue): don't try to
14215         format objects if the format spec is "".  Fixes bug #80889.
14217 2007-03-22  Miguel de Icaza  <miguel@novell.com>
14219         * ToolStripPanel.cs (Join): added stubs to build PDN3
14221         * Control.cs (AutoScrollOffset): Add.
14223         * SystemInformation.cs (MouseWheelScrollDelta): Expose this
14224         property, its only implemented for Win32, on X11 it defaults to
14225         some hardcoded value.
14227         * ToolStripItem.cs (AllowDrop): Add property
14229 2007-03-22  Mike Kestner  <mkestner@novell.com>
14231         * ListView.cs : in FullRowSelect Details mode, only enable box
14232         selection if the user clicks over the "item" column outside of the
14233         text area.  Mmmmm, compatibility.  [Fixes #80374 subpart 7]
14235 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14237         * Control.cs: ChangeParent: Call Form's ChangingParent even if the
14238           handle is not created yet.
14239         * Form.cs: Select: Don't call CreateHandle if the handle is already
14240           created, avoids a stack overflow on Windows when we are recreating
14241           controls.
14242         * ScrollableControl.cs: Set the correct z-order for the scrollbars when
14243           they are made visible, and override AfterTopMostControl to keep
14244           them on top when other controls are brought to front.
14245           CalculateCanvas: Scrollbars are only visible if auto_scroll is true
14246           or force_*scroll_visible is true (old implementation always shows
14247           scrollbars when needed, no matter what auto_scroll was set to).
14248         * InternalWindowManager.cs: UpdateWindowDecorations: Add a
14249           IsHandleCreated check.
14251 2007-03-22  Andreia Gaita  <avidigal@novell.com>
14253         * DataGrid.cs: Implement Column and Row auto sizing when double-clicking on
14254         row or col separator.
14255         * DataGridTextBoxColumn.cs: Implement GetPreferredHeight and GetPreferredSize
14257 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
14259         * MenuAPI.cs: Remove unneeded check for grab_control in UpdateCursor.
14261 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
14263         * MenuAPI.cs: UpdateCursor method added, it is calling in OnMotion to update
14264         cursor for child controls. In ShowWindow and HideWindow now call SetCursor 
14265         every time. Fixes #80410.
14267 2007-03-22  Chris Toshok  <toshok@ximian.com>
14269         * BindingSource.cs (AddNew): partially implement.
14271         remove a couple of NotImplementedException's
14272         to get bug #81148 closed.
14274 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
14276         [Fixes #80380]
14277         
14278         * Control.cs:
14279         - UpdateCursor method added to update the screen cursor.
14280         - GetAvailableCursor method added to return cursor for enabled tree,
14281         it searches for cursor on control and it's parent's for enabled control.
14282         - Call UpdateCursor method on setter of Cursor property.
14283         - On setter of Enabled call UpdateCursor when it is false, we need to
14284         change cursor to normal (or to this parent cursor) because cursor 
14285         setting theres no effect to disabled controls.
14286         - Some minor source changes to follow the coding style guidelines.
14288         * XplatUIX11.cs: In MotionNotify only dispatch SET_CURSOR event for enabled 
14289         controls.
14291 2007-03-22  Chris Toshok  <toshok@ximian.com>
14293         * XplatUIX11.cs: ignore the BadPicture errors cairo+render
14294         generates.
14296 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14298         * XplatUIX11.cs: Implement default locations for forms.
14299         * Form.cs: Completely rework startup location for forms. Fixes #79964.
14300         * Hwnd.cs: Add previous_child_startup_location (to track the current
14301           startup location for any child forms of the current form) and
14302           previous_main_startup_location (to track the startup location for
14303           the current toplevel form).
14305 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
14307         * Control.cs: Don't trigger a layout if an implicit control is added
14308         that isn't visible.  Also, don't notify the owner when an implicit control
14309         is added.  (Owners shouldn't even know about their implicit controls.)
14311 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
14313         * ScrollableControl.cs: Add implicit controls with AddRangeImplicit
14314         to save some re-layouts.
14316 2007-03-21  Everaldo Canuto  <everaldo@simios.org>
14318         * MenuAPI.cs: In ProcessKeys returns false when key is not processed.
14319         [Fixes #81203]
14321 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
14323         * FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
14324         ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.
14326 2007-03-21  Mike Kestner  <mkestner@novell.com>
14328         * ListView.cs : disable selection update for non-left button clicks
14329         with mods and over selected items.  [Fixes #80524]
14331 2007-03-20  Jackson Harper  <jackson@ximian.com>
14333         * TextControl.cs:
14334         * TextBoxBase.cs: Allow different types of line endings. \r, \r\n,
14335         \r\r\n, \n.
14337 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14339         * ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
14340           very probably a more complicated calculation there. Update the
14341           textbox' ForeColor and BackColor when the ComboBox' colors are
14342           changed. Change the border change in LayoutComboBox to only affect
14343           the textbox, not all the calculations there. Seems to fix most of
14344           #79436.
14346 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14348         * ComboBox.cs: Handle Home and End keys as well as all combinations of
14349           modifiers + navigation keys as input keys, enables advanced text
14350           selection in the combobox (like Shift+Left Arrow for instance).
14351           ComboTextBox now overrides Focused and returns whatever
14352           ComboBox.Focused returns, since it really should be focused
14353           whenever the ComboBox is. Fixes #80795. Also make the border around
14354           the text box one pixel bigger, as mentioned in #79436.
14356 2007-03-20  Jackson Harper  <jackson@ximian.com>
14358         * TreeView.cs: Don't offset the images, this was causing some
14359         artifacts when expanding/collapsing with images that were the
14360         exact height of the treenode.
14362 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14364         * TrackBar.cs: Query the theme for the correct value when the mouse
14365           moves and the thumb is pressed. 
14366         * Theme.cs: Added TrackBarValueFromMousePosition
14367         * ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
14368           implementation was updating the trackbar value when drawing, now
14369           the drawing methods only draw. Fixes #80900. Refactored the
14370           calculations out to TrackBarValueFromMousePosition and
14371           GetTrackBarDrawingInfo, so that TrackBar can get the correct value
14372           according to the mouse position whenever it wants to. Changed the
14373           light coloured pen when drawing the thumb from ControlLight to
14374           ControlLightLight, because the ControlLight is the same colour as
14375           the background so the 3D effect is lost. 
14377 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
14379         * Form.cs: In ShowDialog uses MainForm as transient form when no form is
14380         defined. Fixes #80784.
14382 2007-03-20  Marek Habersack  <mhabersack@novell.com>
14384         * ContextMenuStrip.cs: align with the change introduced in
14385         revision 74664.
14387 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
14389         * XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs, 
14390         XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner 
14391         in SetTopmost.
14393 2007-03-19  Chris Toshok  <toshok@ximian.com>
14395         * Control.cs (WmPaint): don't make use of the Handle property
14396         after an event is emitted, as the user could have closed the
14397         form/destroyed the control.  Store the Handle in a local variable
14398         and make use of that.  Fixes bug #80768.
14400 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
14402         * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
14403         behavior in X11 environments.
14405 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
14407         * Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
14408         because on setter of topmost we dont call SetTopmost when handle is not
14409         created.
14411 2007-03-20  Jackson Harper  <jackson@ximian.com>
14413         * TextControl.cs: Need to use SelectionLength () not
14414         selection_length, since that var is reset to -1.
14415         - Draw the caret when we don't have focus.
14416         * TextBox.cs: The selectall actually doesn't occur until the first
14417         focus.
14418         * TextBoxBase.cs: Need to update the caret position after a
14419         selectall.
14420         
14421 2007-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14423         * ListView.cs: Enable scrolling when using Tile view.
14425 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
14427         [Fixes #80902]
14429         * XplatUIDriver.cs: Abstract SetOwner method created.
14431         * XplatUIOSX.cs: Override SetOwner to prevent compilation errors method 
14432         must be implemented and was masked as todo.
14434         * XplatUIWin32.cs: SetOwner implemented using SetWindowLong with 
14435         GWL_HWNDPARENT.
14437         * XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but 
14438         cheking for null owner to remove transient. The SetTopmost will be change
14439         on a decond step.
14441         * Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
14442         SetTopmost. Now owned forms will work properly in win32 and X11.
14444 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14446         * MdiWindowManager.cs: Update function name.
14447         * Form.cs: After closing a form MdiParent is always null.
14448         * MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
14449           better what it should do: necessary book-keeping when the form is
14450           closed, it should not close the form itself.
14452 2007-03-19  Andreia Gaita  <avidigal@novell.com>
14454         * ListViewItem.cs: Fix back and fore color. The subitems only
14455         use their own colors if they are set, otherwise use the listview's
14456         colors. Don't set default colors on constructor for subitem.
14457         Fixes #79315.
14459 2007-03-19  Mike Kestner  <mkestner@novell.com>
14461         * ListView.cs : make box selection for Details views with 
14462         FullRowSelect conform to MS behavior when clicking in the "item" 
14463         column and clicking outside the defined columns.
14464         [Fixes case 5-6 of #80374]
14466 2007-03-19  Chris Toshok  <toshok@ximian.com>
14468         * ScrollableControl.cs: create the controls from within the ctor,
14469         but don't actually add them until our handle is created.  this
14470         fixes a NRE possibility jpobst found (if you override OnLayout in
14471         a subclass, it's called before your ctor).  Also, add a
14472         IsHandleCreated guard to UpdateSizeGripVisibility as well.
14474 2007-03-19  Jackson Harper  <jackson@ximian.com>
14476         * TextBox.cs: Reduce the amount of invalidation we do.
14477         * TextBoxBase.cs: Make shortcuts enabled true by default, at least
14478         some of them are true by default on MS.
14479         - Add some functions to reduce the amount of invalidates we do.
14480         * TextControl.cs: Less invalidation.
14482 2007-03-19  Chris Toshok  <toshok@ximian.com>
14484         [ Fixes #81773, and *seems* to fix #81553 as well ]
14486         * XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
14487         AccumulateDestroyedHandles.  We need to do it *after* we send
14488         WM_DESTROY, as the user's code can access Control.Handle in
14489         OnHandleDestroyed, and this shouldn't cause a recreation.  Also,
14490         move the WM_DESTROY/zombie handling to before the call to
14491         XDestroyWindow.  For some reason without this ordering
14492         FormTest.RecreateHandle hangs.  This ordering is semantically
14493         equivalent, however, as XDestroyWindow is async anyway.
14495 2007-03-19  Gert Driesen  <drieseng@users.sourceforge.net>
14497         * RichTextBox.cs: Reset backcolor_set after setting default.
14499 2007-03-19  Chris Toshok  <toshok@ximian.com>
14501         * ScrollableControl.cs: the scroll position should not effect the
14502         canvas size.  commit patch from georgegiolfan@yahoo.com, which
14503         fixes some really bizarre behavior on resizing.  Fixes bug #80778.
14504         
14505 2007-03-19  Chris Toshok  <toshok@ximian.com>
14507         * ScrollableControl.cs: clean this up a bit.  create the
14508         scrollbars in the ctor and just show/hide them as needed.  Also,
14509         make hscroll_visible/vscroll_visible internal to Recalculate, and
14510         just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
14511         everywhere else.  This seems to fix the scrollbars appearing
14512         beneath the content for me (i have *no* idea why that is,
14513         however.)
14515 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
14517         * ToolStrip.cs: Don't call DoAutoSize when we change Dock.  Also, remove
14518         some redundacy for stuff in Anchor and Dock that base will take care of.
14519         [Fixes #80762]
14521 2007-03-19  Mike Kestner  <mkestner@novell.com>
14523         * ListView.cs : make box selection for Details views without 
14524         FullRowSelect dependent on the text bounds, not item bounds.
14525         * ListViewItem.cs : add an internal property to obtain the TextBounds
14526         in Details view.  [Fixes case 1-4 of #80374]
14528 2007-03-19  Andreia Gaita  <avidigal@novell.com>
14530         * PaintEventArgs.cs (Dispose): Only dispose of graphics object if
14531         we're < 2.0. #78448 && #80316
14533 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
14535         * FontDialog.cs: Don't crash when we switch to a new font that doesn't
14536         have the same style available as the previously selected one.  Also,
14537         support FixedPitchOnly property.  [Fixes bugs #80918, #80947]
14539 2007-03-19  Jackson Harper  <jackson@ximian.com>
14541         * TextControl.cs: Add an alignment property that all new lines
14542         will be given.
14543         - Make sure to use the align shift when calculating the line's X
14544         position.
14545         * TextBox.cs: Set the alignment on the document as well as on all
14546         the document lines.
14548 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14550         * Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
14551           throw if setting the parent of an mdichild that already has an
14552           mdiparent. Update signature for 2.0 profile. ProductName: If there's no
14553           AssemblyProductAttribute in the assembly, use the type's namespace (as
14554           MS seems to do). CreateControl: don't create the handle if the control
14555           is not visible (according to MS behaviour and spec).  SetTopLevel: Only
14556           create handle if the control is not a form. Change FocusInternal to
14557           virtual so that it can be overriden by Form.
14558         * TextBox.cs: Update call to FocusInternal.
14559         * Form.cs: Always create the handle when calling Focus on a MdiChild. The
14560           form is not a toplevel form when it's a mdi child, so update is_toplevel
14561           accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
14562           hasn't been created. Show (IWin32Window): Don't allow this overload for
14563           toplevel windows. CenterToParent/CenterToScreen/Select: create the
14564           handle as MS does. SetVisibleCore: if called on a MdiChild and the
14565           parent isn't visible yet, save the visibility and restore it when the
14566           parent is made visible.
14567         * ScrollableControl.cs: Refactor out scrollbar visibility code to separate
14568           methods, since the visibility of the scrollbars can be changed from
14569           several places, not only from AutoScroll.
14570           [Fixes #81179]
14572 2007-03-19  Jackson Harper  <jackson@ximian.com>
14574         * RichTextBox.cs: Enable shortcuts by default.
14575         * TextBoxBase.cs: Add conditional shortcuts.  
14577 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
14579         * MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).  
14581 2007-03-19  Chris Toshok  <toshok@ximian.com>
14583         [ Fixes bug #80604]
14584         
14585         * XplatUIX11.cs (WaitForHwndMessage): change this to actually
14586         swallow the message we're waiting on, instead of delivering it, as
14587         this is only used for the WM_SHOWWINDOW raised from
14588         MapWindow/UnmapWindow, and the message needs to be generated
14589         (MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
14590         before doing the Map/Unmap.  Also make sure that the Hwnd is still
14591         alive after the message has been handled.
14593         *before* the window is shown.
14595         * Control.cs (CreateControl): guard a few more things inside the
14596         if (!is_created) block, as we might end up being called again -
14597         yay .net.
14598         (WmShowWindow): call CreateControl if we're showing the control.
14600 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14602         * Control.cs: Fix 2.0 signature for Invoke. Support invoking on
14603           controls without a handle if they have any parent with a handle. In
14604           Dispose add a check whether the handle is created or not before
14605           calling BeginInvoke, this removes the need of the extra disposing
14606           parameter (which was bogus anyway since it didn't prevent the
14607           invoke from happening, it only skipped the check for an existing
14608           handle, meaning that the invoke would call on an inexistent
14609           handle).
14611 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
14613         * MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
14614         appears in taskbar.
14616 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
14618         * MessageBox.cs:
14619         - Fixed a problem that dont show help button for messages with 3 buttons.
14620         - Refactory button size and position calculations, now dont use fixed 
14621         values, also fixed button sizes (#80043) and form's border space.
14622         - AddButton method created, now all other AddButton methods call this one.
14623         - Some other source code cosmetic changes.
14625 2007-03-18  Jackson Harper  <jackson@ximian.com>
14627         * RichTextBox.cs: Don't do this all fonts must match check if
14628         there is only one char selected.
14630 2007-03-18  Jackson Harper  <jackson@ximian.com>
14632         * TreeView.cs: ScrollWindow works properly now, so we don't need
14633         to screw around with the scroll area.  This fixes some artifacts
14634         when expanding and collapsing.
14636 2007-03-18  Jackson Harper  <jackson@ximian.com>
14638         * TextBoxBase.cs: Allow updating the selection position when the
14639         cursor is outside the textarea, but we have a capture.
14640         * TextControl.cs: A special case for when the cursor is outside
14641         the bounds of the TB.
14642         
14643 2007-03-18  Jackson Harper  <jackson@ximian.com>
14645         * TextBoxBase.cs: Remove image pasting code for now.  There is no
14646         way to get an image on the clipboard right now anyways.
14647         * TextControl.cs:
14648         * RichTextBox.cs: Use the new RTF Picture class for pictures.
14650 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
14652         * MessageBox.cs:
14653         - Set window properties in constructor intead of on CreateParams.
14654         - Remove topmost from Window ExStyle.
14655         - Set ShowInTaskbar to false.
14656         - Set form border to FixedDialog.
14657         - Some cosmetic changes and remove unneeded comments.
14658         - It fixes itens 2,3 and 4 of bug #80043.
14660 2007-03-18  Gert Driesen  <drieseng@users.sourceforge.net>
14662         * TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
14663         none was explicitly set. Fixes part of bug #79949.
14665 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
14667         * ToolStripComboBox.cs: Add AutoComplete*.
14669 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
14671         * ToolStripComboBox.cs: Add FlatStyle.
14673 2007-03-16  Jonathan Pobst  <monkey@jpobst.com>
14675         * ToolStrip.cs, ToolStripProfessionalRenderer.cs,
14676         ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
14678 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14680         * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
14681           CheckBox.cs, RadioButton.cs, BindingSource.cs,
14682           DataGridColumnStyle.cs: Remove warnings.
14684 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14686         * Menu.cs: MergeMenu: Check menu argument for null before looping over
14687           it.
14688         * MdiWindowManager.cs: Add IsVisiblePending to track the pending
14689           visibility of mdi child forms. FormSizeChangedHandler: update the
14690           maximized size if size has changed while maximized.
14691         * MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
14692           creating the handle.
14693         * InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
14694           avoid creating the handle if not created.
14695         * XplatUI.cs: Update debug output.
14696         * XplatUIStructs.cs: Added ToString's for a couple of structs.
14698 2007-03-16  Jonathan Pobst <monkey@jpobst.com>
14700         * ContainerControl.cs: Give ToolStripManager the opportunity to handle
14701         ProcessCmdKey().
14702         * ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs, 
14703         ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
14704         Implement keyboard shortcuts.
14706 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
14708         * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
14709         Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog, 
14710         ColorDialog and all derived classes.
14712 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
14714         [ Fixes bug #79828 ]
14716         * ToolBar.cs:
14717         - Rename ToolBarButtonInfor to ToolBarItem.
14718         - Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
14719         - Maintain an array of ToolBarItem, used instead of ToolBarButton
14720         collection to be able add same button more than one time on a toolbar.
14721         - Refactory all properties and methods to use ToolBarItem. 
14723         * ToolBarButton.cs: 
14724         - Remove all propeties and methods that is now in ToolBarItem.
14725         - Rectangle propery now gets the rectangle from first ToolBarItem to
14726         mimic win32 behavior.
14727         - Size calculation and layout methods also removed.
14729         * ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
14730         ToolBarItem instead of ToolBarButton to right drawing buttons when
14731         same button/separator was added more than one time to ToolBar.
14733         * ThemeNice.cs: Same as above. 
14735 2007-03-15  Andreia Gaita  <avidigal@novell.com>
14737         * XplatUIX11.cs: Fire extra MouseMove events right after
14738         MouseDown and MouseUp, emulating win32's <censored> behaviour
14739         for apps that rely on it.
14741 2007-03-15  Jackson Harper  <jackson@ximian.com>
14743         * TextControl.cs:
14744         * TextBoxBase.cs: On MS, a fixed single border is not in NC area,
14745         it is drawn on the controls client window and there is no NC
14746         area.
14747         - Set the background color to gray on 2.0 when we are readonly.
14749 2007-03-15  Chris Toshok  <toshok@ximian.com>
14751         [ Fixes bug #81144 ]
14752         
14753         * XplatUIX11.cs: implement VirtualScreen independently of
14754         WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
14755         property.
14757 2007-03-15  Chris Toshok  <toshok@ximian.com>
14759         * Hwnd.cs: add an internal field for the cached_window_state.
14761         * XplatUIX11.cs: cache the window state, invalidating the cache
14762         (and thus re-querying the X server) only when we see an update to
14763         the _NET_WM_STATE property.
14765 2007-03-15  Chris Toshok  <toshok@ximian.com>
14767         * BindingSource.cs: get a lot of the unit tests working.
14769 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
14771         * Control.cs: Modify UpdateStyles to store distances when bounds >=
14772         0 instead of just bounds > 0.  [Fixes bug #80912]
14774 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
14776         * ToolStrip.cs, ToolStripItem.cs: Implement several new properties
14777         and methods.
14779 2007-03-15  Ivan N. Zlatev <contact@i-nz.net>
14780         
14781         * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
14782         XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
14783         XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
14784         WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
14786 2007-03-15  Chris Toshok  <toshok@ximian.com>
14788         [ Fixes #81101 ]
14789         
14790         * Control.cs: add Ivan's fix for 81101, with a slight modification
14791         - you can set control.Target to null.
14793 2007-03-14  Jonathan Pobst  <monkey@jpobst.com>
14795         * ToolStripItem.cs: If our OwnerItem is null, we can't use 
14796         HideDropDown, use Hide instead to prevent an NRE.
14797         [Fixes bug #81147]
14799 2007-03-14  Jackson Harper  <jackson@ximian.com>
14801         * TextBoxBase.cs: Mess with the creation stuff a little. We need
14802         to calculate the document before the handle is created, in some
14803         cases. (Actually just one case).
14805 2007-03-14  Jackson Harper  <jackson@ximian.com>
14807         * TextBoxBase.cs: Need to display the caret after letting the base
14808         wndproc handle the focus methods, because the caret display
14809         methods check the focus state.
14810         - Try to display the caret after updating it's position with SelectWord.
14811         - Don't need to do an immediate update on this recalc, since there
14812         will be an invalidate anyways.
14814 2007-03-14  Jackson Harper  <jackson@ximian.com>
14816         * TreeView.cs: Some workarounds so that we can match event order a
14817         little better.
14819 2007-03-14  Gert Driesen  <drieseng@users.sourceforge.net>
14821         * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
14822         #80803. Avoid NullReferenceException when Control does not have
14823         parent. Fixed different blinkstyle issues. Only subscribe to Tick
14824         event a single time. Only draw error icon when control is created and
14825         visible. Fixes failing unit tests.
14827 2007-03-14  Andreia Gaita  <avidigal@novell.com>
14829         * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
14830         Selecting events. Fire Leave and Enter events when changing tabs.
14832 2007-03-14  George Giolfan  <georgegiolfan@yahoo.com>
14834         * TreeView.cs: Add TreeViewNodeSorter.
14835         * TreeNodeCollection.cs: Add sorter parameter to Sort method.
14837 2007-03-14  Chris Toshok  <toshok@ximian.com>
14839         * Form.cs: go ahead and remove the RecreateHandles that jpobst
14840         removed earlier and I had him add back it.  It turns out metacity
14841         *does* in fact handle the MOTIF_WM_HINTS property changing, it
14842         just doesn't redraw the window titlebar until you resize the
14843         window.  This also means we aren't recreating the entire window
14844         hierarchy on X when you change this property.  And it looks better
14845         on windows, too.
14847 2007-03-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14849         * ListViewItem.cs:
14850         * ListView.cs: Collecting selection information
14851         is now done in SelectedIndexCollection rather than in
14852         SelectedListViewItemCollection. This is done so we can
14853         have the selection information code in one single place
14854         (virtual mode selection information entirely depends on
14855         SelectedIndexCollection).
14857 2007-03-13  Miguel de Icaza  <miguel@novell.com>
14859         * ErrorProvider.cs: Add stubs for ISupportInitialize
14861 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14863         * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
14864         in the right order with the right values, from the Checked property, 
14865         just as MS does (instead of triggering them from ListView).
14867         * ListView.cs: Make OnItemCheck and OnItemChecked internal.
14869 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14871         * ListView.cs: Implement ItemChecked 2.0 event. Also cast to 
14872         the correct handler in OnItemCheck method (ItemCheckEventHandler 
14873         instead of EventHandler). This used to throw an InvalidCastException.
14875 2007-03-13  Jackson Harper  <jackson@ximian.com>
14877         * TextBoxBase.cs: Calculate the document before the handle is
14878         created, so there isn't an extra invalidate called.
14880 2007-03-13  Jonathan Pobst  <monkey@jpobst.com>
14882         * Form.cs: Don't set owner in ShowDialog until we are sure
14883         that we aren't going to throw an exception.  [Fixes bug #80773]
14885 2007-03-12  George Giolfan  <georgegiolfan@yahoo.com>
14887         * TreeView.cs: Make it compile.
14889 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
14891         * Control.cs: Another place we don't call SizeFromClientSize.
14892         * Form.cs: Another place we don't call SizeFromClientSize.
14893         [Fixes bug #81125]
14895 2007-03-12  Jackson Harper  <jackson@ximian.com>
14897         * TreeView.cs: Basically emulating some strangness here with
14898         exanding nodes and setting node positions when windows aren't
14899         created.
14900         - Also attempting to walk the node tree less than previously, and
14901         just use visible order calculations for determining offsets.
14902         - oops made scrolling backwards.
14903         * TreeNode.cs: We need to start nodes with a zero visible order,
14904         because the order calcs are based on the first nodes order.
14906 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
14908         * Form.cs: Don't exit the program if RecreateHandle is called on
14909         the main form.
14911 2007-03-12  Chris Toshok  <toshok@ximian.com>
14913         * XEventQueue.cs: remove the use of PostQuitState.
14915         * XplatUIX11.cs: remove the use of PostQuitState.  If we get a
14916         WM_QUIT message in GetMessage, return false (and if we're in the
14917         nested WaitForHwndMessage, repost the WM_QUIT message).
14919 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
14921         * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
14922         or the MaximizeBox properties.  [Part of bug #80640]
14924 2007-03-12  Everaldo Canuto  <everaldo@simios.org>
14926         * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
14927         no links.
14929 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
14931         * ToolStripItem.cs: Fix some tests I broke by checking Visible
14932         instead of visible.
14934 2007-03-12  Gert Driesen  <drieseng@users.sourceforge.net>
14936         * FileDialog.cs: Use text of File name combobox to determine what
14937         files the user selected. Added tokenizer to parse the file names.
14938         Fixes bug #81123.
14940 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
14942         * Control.cs: We can't call SizeFromClientSize in the constructor,
14943         but we still need to do the same work, so make an internal version.
14944         [Fixes bug #80621]
14946 2007-03-12  Jackson Harper  <jackson@ximian.com>
14948         * TreeView.cs:
14949         * TreeNode.cs:
14950         * OpenTreeNodeEnumerator: Match MS better for IsVisible and
14951         IsExpanded.
14953 2007-03-12  Jackson Harper  <jackson@ximian.com>
14955         * TextBoxBase.cs: Now that the handles are being created a little
14956         later, we need to make sure that the document is recalculated when
14957         the handle is created.
14959 2007-03-11  Everaldo Canuto  <everaldo@simios.org>
14961         * Theme.cs: GetLinkFont abstract method added.
14962         
14963         * LinkLabel.cs: 
14964         - Remove CalcTrimRectangle, no longer needed.
14965         - Factor also remove, position issues must be fixed in libgdiplus.
14966         - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
14967         - GetPieceFont, CreateLinkFont and link_font removed, theme must be 
14968         care about font used to draw links.
14969         - Set TabStop to true when control is "Selectable", control is selectable
14970         when have one or more links. Fixes #80501 (test case is also added).
14971         - Set the LinkArea values after links change, LinkArea values must be
14972         based in first link position and size, a test case was created.
14973         - Fix ControlStyles.Selectable value, now is based on LinkArea value, 
14974         the attribute must be true LinkArea.Length > 0. The same was applied to
14975         TabStop.
14976         
14977         * ThemeWin32Classic.cs: 
14978         - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used 
14979         in draw method.
14980         - Use CPDrawStringDisabled to draw disabled text instead of hard code 
14981         color change.
14982         - Draw focus rectangle for every parts focused, including parts that 
14983         is on another line, its because regions returns various rectangles
14984         and not only one. Needed to mimic W32 look.
14985         - Uses Graphics.Clip to delimite region painted, it mean that now 
14986         complete text is passed to DrawString, with this we solve layout
14987         issues without create another text renderer.
14988         - Uses Region.Intersect to fix some flickers problems, now only needed
14989         parts will redrawed.
14990         - This changes fixes #79614 and some other unreported issues, on Linux 
14991         some layout problems still remain, the problem is under 
14992         MeasureCharacterRanges but it is an libgdiplus bug.
14994 2007-03-10  Gert Driesen  <drieseng@users.sourceforge.net>
14996         * TextBox.cs: Set for foreground color.
14997         * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
14998         this is already done in Control.
15000 2007-03-10  Jackson Harper  <jackson@ximian.com>
15002         * TextBox.cs: Set the background color, but reset the
15003         backcolor_set flag which is just for the user setting the
15004         background color.
15006 2007-03-09  Chris Toshok  <toshok@ximian.com>
15008         * Control.cs: really remove the call to XplatUI.SetVisible from
15009         CreateHandle(), like I said I did when I merged the branch.
15011         * BindingSource.cs: implement some more of this stuff.
15013 2007-03-09  Jackson Harper  <jackson@ximian.com>
15015         * TextBox.cs: Don't explicitly set our background colors.
15016         * TextControl.cs:
15017         * TextBoxBase.cs: Draw readonly text.
15018         - Need to invalidate when backcolor or readonly are changed.
15019         
15020 2007-03-09  Jackson Harper  <jackson@ximian.com>
15022         * TextBoxBase.cs: Don't set the forecolor until the handle is
15023         created.
15024         - Do not raise OnPaint, and removed some old debug code.
15026 2007-03-09  George Giolfan  <georgegiolfan@yahoo.com>
15028         * ScrollableControl.cs: Fix mouse wheel scrolling.
15030 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
15032         * Control.cs: Wire up MouseDoubleClick event.
15034 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
15036         * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
15037         top or bottom.
15038         * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
15039         * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
15040         item is added.  This logic was moved to ToolStrip.OnItemAdded.
15041         [Fixes bug #81090]
15043 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15045         * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
15047 2007-03-08  Jackson Harper  <jackson@ximian.com>
15049         * TreeView.cs: Show the correct image for selected node (this used
15050         to work, not sure how the code got deleted). Also implemented 2.0 feature
15051         SelectedImageKey.
15053 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15055         * ListView.cs:
15056         * ListViewItem.cs: Cache index in items when retrieving them
15057         in VirtualMode.
15059 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
15061         * ToolStripItem.cs: Don't return the explicit_size if we are using 
15062         AutoSize.  Fixes invalidation issue when user has explicitly set a
15063         size and has AutoSize = true.
15065 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
15067         * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
15069 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
15071         * DataGridView.cs: Remove event handler from DataView when a
15072         DataTable is used as DataSource.
15074 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
15076         * Control.cs: Create internal setter for client_size to allow it to be
15077         set without triggering resizing code.
15078         * Form.cs: Calculate client_size in constructor, only change client_size
15079         in FormBorderStyle property if Handle has been created.
15080         [Fixes #80574, #80791]
15082 2007-03-08  George Giolfan  <georgegiolfan@yahoo.com>
15084         * SystemInformation.cs: Add TerminalServerSession.
15086 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
15088         * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
15089         TreeView code.
15091 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
15093         * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
15094         Handle before we were supposed to.  Now checks ActivateOnShow property
15095         in Control.
15096         * Control.cs: Add internal ActivateOnShow property.
15097         * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
15098         for ActivateOnShow.
15099         * Hwnd.cs Remove no longer needed no_activate field.
15101 2007-03-07  Jackson Harper  <jackson@ximian.com>
15103         * TreeView.cs: Implement owner draw tree nodes.  And a couple more
15104         2.0 properties
15105         * DrawTreeNodeEventHandler.cs: Add
15106         * DrawTreeNodeEventArgs.cs: Correct default value.
15107         
15108 2007-03-07  Chris Toshok  <toshok@ximian.com>
15110         * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
15111         to be called before NativeWindow.WndProc.  Put the HwndCreating
15112         magic there to hook up our Hwnd's to handles.
15114 2007-03-07  Gert Driesen  <drieseng@users.sourceforge.net>
15116         * DataGridView.cs: Comment out debug code.
15118 2007-03-07  Chris Toshok  <toshok@ximian.com>
15120         [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
15121         to make the rest of the world happy]
15123         * Control.cs (CreateHandle): there's no need to call
15124         XplatUI.SetVisible here, it's effectively done by
15125         XplatUI.CreateWindow on X now, and always was on windows.
15127         * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
15128         shortcircuit out of the loop if we have a message loop running on
15129         this thread.
15131         [Changelog from merge]
15133         2007-03-05  Chris Toshok  <toshok@ximian.com>
15135                 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
15136                 causes handle creation.
15138         2007-02-28  Chris Toshok  <toshok@ximian.com>
15140                 * ApplicationContext.cs: Add a flag to make sure we only raise the
15141                 ThreadExit event once (ExitThreadCore can be indirectly called
15142                 from a few places.)  I don't like the additional flag, but it
15143                 makes the event ordering/count correct.
15145                 * Application.cs (MWFThread.LoopCount): don't use an enumerator
15146                 without locking the collection.  An enumerator doesn't give us any
15147                 protection from modification anyway.  Lock the thread hash and
15148                 replace the complicated enumerator loop with a foreach.
15149                 (Application.CloseForms): make internal so it can be called from
15150                 ApplicationContext.  This should probably be moved to MWFThread.
15151                 (Application.ExitThread): don't call MWFThread.Current.Exit()
15152                 here.  just call XplatUI.PostQuitMessage.  We'll exit the thread
15153                 when the runloop exits (in response to WM_QUIT.)
15154                 (Application.RunLoop): add a comment (and check) for
15155                 context.MainForm being null after setting context.MainForm.Visible
15156                 = true.  This is because you're perfectly free to dispose of a
15157                 form in VisibilityChanged.  Chalk this up to another case where we
15158                 need to synchronously generate WM_ACTIVATE from Control.Show.
15159                 Also, add handling for WM_QUIT here so we'll exit the loop.
15160                 
15161                 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit.  The
15162                 fact that we don't wait if we're only unmapping the whole_window
15163                 makes me a bit nervous, but it doesn't seem to cause any problems
15164                 yet.
15166                 also, add a comment about the stupid, broken and wrong resetting
15167                 of PostQuitState to false in GetMessage().
15169                 In PostQuitMessage, we need to add a WM_QUIT message to the
15170                 thread's queue.  We use the FosterParent to get the right
15171                 handle/hwnd/queue.
15173                 Lastly, in SetVisible, we need to unmap both windows, since the
15174                 waiting only happens when we're unmapping the client window.  So
15175                 now, the *only* time we unmap just the whole_window is in the hack
15176                 for resizing a control to 0,0.
15177                 
15178         2007-02-21  Chris Toshok  <toshok@ximian.com>
15180                 * Application.cs (CloseForms): rewrite this so that we don't
15181                 modify the list while we're traversing it.
15183         2007-02-20  Chris Toshok  <toshok@ximian.com>
15185                 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
15186                 of OnHandleCreated.
15187                 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
15188                 handle is created.  otherwise we'll create it here.
15189                 (VerticalScrollEvent): same here.
15191                 * Application.cs (CloseForms): call Form.Dispose, don't post
15192                 WM_CLOSE_INTERNAL.
15194                 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
15195                 here. Application should Dispose() of the Form's.
15197                 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
15198                 WM_DESTROY as well.
15199                 (MapWindow,UnmapWindow): only actually do the waiting for
15200                 SHOWWINDOW if the control we're dealing with is a Form.
15201                 (CreateWindow): if the control isn't a form, SendMessage
15202                 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
15204                 * Control.cs (SetVisibleCore): always use is_visible here, not
15205                 value.  If we use value, we can end up re-setting something
15206                 visible if, for instance, you do Control.Hide() in a delegate
15207                 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
15209         2007-02-20  Chris Toshok  <toshok@ximian.com>
15211                 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
15212                 the message we need.  PeekMessage returning false should not be a
15213                 condition under which we exit the loop.
15215         2007-02-15  Chris Toshok  <toshok@ximian.com>
15217                 * Control.cs (Refresh): only refresh if we've got a handle and are
15218                 visible.
15219                 (CreateAccessibilityInstance): CreateControl() here.
15220                 (UpdateChildrenZOrder): complicate the code loop even more by
15221                 taking into account controls that haven't had their handle
15222                 created, and those that aren't visible.  But on the flip side,
15223                 simplify the code by splitting it into two loops.  one which
15224                 builds up the list of child controls we're interested in, and the
15225                 other that sets the z order of those children.
15227         2007-02-14  Chris Toshok  <toshok@ximian.com>
15229                 * Control.cs: Control.AccessibilityObject causes the control to be
15230                 created, not just the handle.
15232         2007-02-14  Chris Toshok  <toshok@ximian.com>
15234                 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
15235                 problem on X where a window might have its handle created (and be
15236                 visible) while the window is unmapped.  calling XConfigureWindow
15237                 on an unmapped window is bad, and generates X errors.
15239         2007-02-13  Chris Toshok  <toshok@ximian.com>
15241                 * Control.cs (CreateHandle): don't loop over our children setting
15242                 their parent here.  do it when in WndProc when we're shown.
15243                 (UpdateChildrenZOrder): make this internal so we can call it from
15244                 ScrollableControl.
15245                 (WndProc): for WM_SHOWWINDOW, reparent the child control after
15246                 creating its handle.  Also, remove the calls to PerformLayout from
15247                 here.  they're done in ScrollableControl.OnVisibleChanged.  Also,
15248                 OnVisibleChanged only seems to be called directly here for the
15249                 toplevel control.  It's propagated down the window hierarchy by
15250                 calls to child.OnParentVisibleChanged.
15251                 (OnVisibleChanged): don't do layout here - it's done (oddly
15252                 enough, according to a glance at stack traces on ms.net..) in
15253                 ScrollableControl.
15254                 
15255                 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
15256                 z order of our children before calling PerformLayout.
15258         2007-02-12  Chris Toshok  <toshok@ximian.com>
15260                 [big change, fixes #80020]
15261                 
15262                 * AccessibleObject.cs: we need to make owner internal again to fix
15263                 some of ControlAccessibleObject.
15265                 * Control.cs: lots of changes here.  add support for WM_CREATE,
15266                 for which we generate OnHandleCreated.  Remove the OnHandleCreated
15267                 call from CreateHandle.  Also add support for WM_SHOWWINDOW where
15268                 we create child controls.  leave the MonoTODO's for the
15269                 accessibility calls, but fix the exceptions so the tests pass.
15271                 Add the InvalidOperationExceptions to Invoke methods, and remove a
15272                 couple of InvokeInternal methods we aren't using.
15273                 
15274                 Also, add a couple of CreateHandle calls in places where we know
15275                 the handles are being created but our code doesn't reference
15276                 .Handle.
15278                 Make SetVisibleCore call OnVisibleChange if the handle isn't
15279                 created.  If the handle is created, we rely on XplatUI.SetVisible
15280                 generating the event synchronously.
15281                 
15282                 Lastly, make sure we don't use this.Handle inside CreateHandle,
15283                 because we can call back into client (and that code can dispose of
15284                 the control).
15286                 * XplatUIStructs.cs: misc/cleanup.
15288                 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
15289                 although we don't populate the wParam properly.
15290                 (CreateWindow): generate WM_CREATE.
15291                 (MapWindow,UnmapWindow): make these calls synchronous, at great
15292                 performance expense (particularly in the unmap case), to match
15293                 win32 behavior.
15295                 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
15296                 to call it.
15297                 (set_MdiParent): don't recreate the handle unless it's been
15298                 created already.
15299                 
15300                 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
15301                 it's created.
15303                 * NativeWindow.cs: this is probably the weirdest part of the
15304                 patch.  We need a way to link up the window being created to the
15305                 WM_CREATE message.  Since we can only be creating one window at a
15306                 time on a given thread, we keep track of a per-thread reference so
15307                 we can dispatch it properly.  We also need to keep track of the
15308                 Hwnd currently being created so that the win32 backend doesn't
15309                 have problems.
15310                 
15311                 * XplatUIWin32.cs: a similar change to the one we made in
15312                 NativeWindow.cs.
15314 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
15316         * ToolStripItem.cs: Make CalculatePreferredSize virtual.
15317         * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
15318         to draw the menu shortcut string.
15320 2007-03-07  Jackson Harper  <jackson@ximian.com>
15322         * TreeNode.cs: Add the 2.0 collapse method.
15324 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
15326         * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
15328 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
15330         * DataGridView.cs: Change DataSource will clear column and row
15331         lists. Call Invalidate() to reflect DataSource change.
15333 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
15335         * DataGridView.cs: Add rows when DataSource is System.Data.DataView
15336         and a new row is added to it.
15338 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
15340         * DataGridView.cs: Add columns when DataSource is en empty list but
15341         is a System.Data.DataView (from a System.Data.DataTable).
15343 2007-03-06  Andreia Gaita  <avidigal@novell.com>
15345         * Label.cs: Implement AutoEllipsis (2.0)
15347 2007-03-06  Jackson Harper  <jackson@ximian.com>
15349         * TreeView.cs: Implement 2.0 TopNode setter property.
15350         - Use a local var instead of the skipped_nodes field for computing
15351         how many nodes to skip.  Otherwise we won't scroll because the
15352         valuechanged handler checks if skipped_nodes is equal to the new
15353         value.
15354         - Implement 2.0 Sort method.
15355         - Add useless 2.0 DoubleBuffer property
15356         - Implement 2.0 LineColors property.  Lets you change the color of
15357         the lines in the tree. Terribly useful for creating non cohesive
15358         desktops.
15359         - Implement 2.0 image key feature.
15361 2007-03-06  Jackson Harper  <jackson@ximian.com>
15363         * TreeView.cs: We can't get the bounds of the nodes before raising
15364         the AfterSelect event, because that event could change the node's
15365         bounds (scrolling, font change, etc).
15367 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15369         * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
15370         * Form.cs: Don't recreate handle when creating FormWindowManager, just
15371           update window styles. In CreateParams us VisibleInternal instead of
15372           VIsible to get the actual visible flag set for this form.
15373         * FormWindowManager.cs: Activate the form whenever the mouse clicks on
15374           the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
15375           handle the case when the form is already maximized, in which case
15376           it should be restored. Fixes #81043.
15378 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15380         * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
15382 2007-03-05  Jackson Harper  <jackson@ximian.com>
15384         * TreeViewHitTestInfo.cs: implement.
15386 2007-03-05  Jackson Harper  <jackson@ximian.com>
15388         * InternalWindowManager.cs: class status fix.
15390 2007-03-05  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15392         * InternalWindowManager.cs: All windows that have a parent
15393         are confined to their parent when they're being moved.
15394         Fixes #80822.
15396 2007-03-04  Gert Driesen  <drieseng@users.sourceforge.net>
15398         * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
15399         on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
15401 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15403         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
15404           buttons invisible before deciding which ones should be visible
15405           (fixes minimize/maximize buttons showing up in toolwindows). Remove
15406           an unused variable.
15407         * InternalWindowManager.cs: Remove warning.
15409 2007-03-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15411         * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
15412         to throw an InvalidOperationException is virtual mode is being used.
15414 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
15416         * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
15417         ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
15418         ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
15419         ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
15420         ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
15421         ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
15423 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15425         * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
15426           driver.KeyboardDelay from XplatUI.KeyboardDelay 
15427         * XplatUIW      in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
15428           (patch by Sergey Volk)
15430 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15432         * ToolWindowManager.cs: Added, contains logic for
15433           tool windows.
15434         * CreateParams.cs: Add a few helper methods and an
15435           internal variable to know which control the CreateParams belongs
15436           to.
15437         * Control.cs: Call Form.ChangingParent when the
15438           parent is about to be changed.
15439         * XplatUIX11.cs: DeriveStyles (): Set
15440           caption_height for all windows that have captions and are children.
15441           Update to use ToolWindowManager instead of InternalWindowManager
15442           for ToolWindows.
15443         * XplatUIWin32.cs: Set fake window styles for all
15444           windows that have window managers.
15445         * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
15446           now duplicated for mdi windows when they are
15447           maximized, first for the buttons the window itself has, then for
15448           the buttons that appear in the menu bar. Makes things a little
15449           easier). Updated UpdateWindowDecorations, SetWindowState and the
15450           mouse eventhandlers accordingly.
15451         * Form.cs: Add ChangingParent (), contains the
15452           logic of what should happen when the parent changes. In MdiParent
15453           don't set things that ChangingParent () is doing. When handling
15454           WM_CLOSE, we can close the form if there are any other modal forms
15455           and the current form is a descendent of the modal form.
15456         * InternalWindowManager.cs: A lot of refactoring,
15457           the title buttons are now extracted to a separate container class
15458           that takes care of all button code (clicks, tooltips, etc). Moved
15459           Iconic|Maximized|Normal Bounds properties to this class from
15460           MdiWindowManager, so that the window state logic can succeed for
15461           other than mdi wm's. Implemented general window state change logic.
15462           Moved CreateButtons to ThemeWin32Classic, since the theme might
15463           override which buttons are available when as well as the exact
15464           location.
15465         * FormWindowManager.cs: Added, contains logic for
15466           normal forms.
15467         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
15468           which buttons go where (and if they are at all visible). 
15469           Removed special handling of maximized windows, since they aren't special. 
15470           In DrawManagedWindowDecorations don't try to draw the text if it is
15471           empty.
15472         * MdiClient.cs: ArrangeIconicWindows: Don't  calculate any sizes, 
15473           use whatever the wm gives us.
15475 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
15477         * ButtonBase.cs: Add 2.0 properties.
15478         * Button.cs: Override Draw for 2.0.
15479         * Control.cs: Add Entered and Selected properties.
15480         * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
15481         TextRenderer.cs: Make internal for 1.1 to unify drawing code.
15482         * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
15483         buttons.
15484         * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
15486 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
15488         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code.  :/
15490 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
15492         * XplatUIWin32.cs: Register a new class with Windows each time we get
15493         a new ClassStyle.  [Fixes bugs #79432, #80817]
15494         * Controls.cs: Set the correct ClassStyle in CreateParams.
15495         * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
15497 2007-03-01  Gert Driesen  <drieseng@users.sourceforge.net>
15499         * ListView.cs: Add fireEvent argument to ReorderColumn since the
15500         ColumnReordered event must not be signaled when modifying DisplayIndex
15501         of a ColumnHeader. Added internal ReorderColumns method which takes
15502         care of drawing, and updating the internal DisplayIndex of the
15503         ColumnHeader. Added AddColumn method which is invoked from
15504         ColumnHeaderCollection when adding or inserting columns, and which
15505         ensures that reorder_columns_indices is kept in sync. Avoid redrawing
15506         after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
15507         Recalculated dispay indices after removing a ColumnHeader.
15508         * ColumnHeader.cs: Save DisplayIndex separately from ListView to
15509         match MS. Allows last display index to be returned after ListView
15510         is disposed. Update actual location of ColumnHeader when DisplayIndex
15511         is modified.
15513 2007-03-01  Everaldo Canuto  <everaldo@simios.org>
15515         * LinkLabel.cs: Improve CalcTrimRectangle.
15516         
15517         * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
15519 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
15521         * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
15522         get rectangle as a result value.
15524 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
15526         * LinkLabel.cs: Theres some diferences between rectangle return from 
15527         MeasureCharacterRanges and the area used for DrawString to fix this 
15528         CalcMeasurementFactor method was created, it calcules the diferences
15529         to be use later to adjust rectangle in draw operations. Fixes #80473.
15530         
15531         * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
15532         to adjust draw rectangle.
15534 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
15536         * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
15537         text and some other changes to reduce and optimize source code.
15539 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
15541         * RadioButton.cs: Implement 2.0 event.
15542         * RelatedImageListAttribute.cs: Implement new class.
15544 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
15546         * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
15548 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
15550         * CheckBox.cs: Implement 2.0 functionality.
15552 2007-02-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15554         * ListView.cs: Refactor Add and AddRange methods of
15555         ListViewItemCollection, to not update the ListView
15556         everytime an item is added in AddRange. Also move the update
15557         code to a new CollectionChanged method, and call it
15558         from other methods that need it as well (this should also fix some
15559         bugs when Sorting is used).
15561 2007-02-27  Jackson Harper  <jackson@ximian.com>
15563         * TextControl.cs: Try to never let the caret stay in a non-text
15564         tag.
15565         * TextBoxBase.cs: Update the caret.
15567 2007-02-26  Jonathan Pobst  <monkey@jpobst.com>
15569         * XplatUIStructs.cs: Add some convenience methods for POINT structure.
15570         * XplatUIWin32.cs: Add some convenience methods for RECT structure,
15571         delete POINT structure, duplicate of one in XplatUIStructs.
15572         * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
15574 2007-02-26  Gert Driesen  <drieseng@users.sourceforge.net>
15576         * ListView.cs: Initialize LabelEditEventArgs after setting Text of
15577         edit box since otherwise the Label would immediately be set (even if
15578         the user did not modify the label). In OnKeyDown set Handled to true
15579         if Return or Escape was pressed. In ColumnHeaderCollection unlink
15580         columns that are to be removed. In ListViewItemCollection unlink items
15581         that are to be removed.
15583 2007-02-24  Jonathan Pobst  <monkey@jpobst.com>
15585         * TextRenderer.cs: If we set a GDI clip region, we need to clear
15586         it when we are done.  [Fixes bug #80949]
15588 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
15590         * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
15592 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15594         * ListView.cs: I forgot to commit the changes for ListView 
15595         in my previous patch.
15597 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
15599         * Clipboard.cs: Partially implement an overload of SetDataObject.
15600         * Form.cs: Implement ShowWithoutActivation.
15601         * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
15603 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15605         This is a first set of changes to make the Virtual mode works,
15606         by avoiding the retrieval of ListViewItem instances until
15607         draw time.
15609         * ListView.cs: Store item position in the ListView instead of the
15610         ListViewItem, this way we don't request the Bounds property of
15611         ListViewItem inside the ListView calculations, as well as cache the item
15612         size in item_size field. Store indexes instead of ListViewItem
15613         instances in the matrix used by icon view. Add a ItemMatrixLocation
15614         struct to hold the row and col info of the matrix info.
15616         * ListViewItem.cs: Don't store the location anymore, and only cache
15617         the rectangles for GetBounds. Use the ListView.GetItemLocation
15618         method to retrieve the actual location.
15620 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
15622         * TextRenderer.cs: Add clipping support, thanks to George.
15623         [Fixes bug #80949]
15625 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
15627         * ListViewItem.cs: Cancel label edit when item is removed from 
15628         ListView.
15629         * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
15630         event before the edit textbox is displayed.  Added CancelEdit method
15631         which is used end to editing while ignoring the value set by the
15632         user. In EndEdit, set focus to ListView to avoid losing focus to
15633         other controls. In ListViewItemCollection.Clear, cancel editing of
15634         any of the items.  In Remove, cancel editing of item being removed.
15635         Avoid udplicate code by modifing RemoveAt to invoke Remove.
15637 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
15639         * FileDialog.cs: Update FSEntry when move is successful. Fixes
15640         bug #80948.  
15642 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
15644         * MainMenu.cs: Change Draw method to take care about MenuOrigin to be 
15645         compatible with non X11 systems. Fixes #80901.
15647 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
15649         * ListView.cs: Added bool argument to UpdateMultiSelection to specify
15650         whether the item should be unselected and reselect. We do no want this
15651         when we're starting to edit the label. Do not fire the 
15652         SelectedIndexChanged event from ListView when its already been fired
15653         by modifying ListViewItem.Selected. Fixes bug #80943.
15655 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
15657         * TextRenderer.cs: Previos commit logic was backwards.
15659 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
15661         * TextRenderer.cs: Don't add padding on MeasureText if we were
15662         sent the NoPadding flag.
15664 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
15666         * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
15667         after DrawButton. To prevent image overlaps button borders SetClip and 
15668         ResetClip added before and after draw image. Fixes #79129.
15670 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
15672         * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify 
15673         window size, it fix problem when you run under win32 that theres
15674         Size diferent than ClientSize. Also fix controls size and positions
15675         to mimic Win32. Fixes #80837.
15677 2007-02-22  Everaldo Canuto  <everaldo@simios.org>
15679         * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on 
15680         menu area to fix some problems for non X11 systems. Fixes #80613.
15682 2007-02-22  Jackson Harper  <jackson@ximian.com>
15684         * TreeNode.cs: When a node is expanded, set its is_expanded flag
15685         even if it doesn't have any children.
15687 2007-02-22  Jackson Harper  <jackson@ximian.com>
15689         * TreeView.cs: Calculate the top node 'on the fly', this
15690         eliminates issues where you need to click on the tree before
15691         scrolling it to get the top node computed correctly.
15692         * TreeNodeCollection.cs: We don't need to mess with the top node
15693         anymore.
15695 2007-02-22  Jackson Harper  <jackson@ximian.com>
15697         * DataGridViewRow.cs: Fix typo so height can actually be set.
15698         Patch by Peter Grimm.
15700 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
15702         * FileDialog.cs: Fixed support for renaming files and directories.
15703         * ListView.cs: Do not lose focus when edit is canceled. Process
15704         Escape as regular key (to prevent closing of dialogs).
15706 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
15708         * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
15709         spaces. Changed spaces to tabs. Removed unnecessary init of bools.
15711 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
15713         * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
15714         did not modify label.
15715         * ListView.cs: Only set LabelEditEventArgs.Label if user actually
15716         modified the text. Reset Label when user presses Escape in edit mode.
15717         Move focus to ListView after having cancelled or finished editing the
15718         label.
15720 2007-02-21  Gert Driesen  <drieseng@users.sourceforge.net>
15722         * ComboBox.cs: Removed unnecessary initializations. Marked items field
15723         private. Clear textbox when Text is set to null and SelectedIndex is
15724         already -1.
15725         * FileDialog.cs: Removed unnecessary initializations. Removed 
15726         workarounds for ComboBox bugs that are now fixed. Modified
15727         DefaultExt, InitialDirectory and Title property to change null to
15728         zero-length string in getters. Avoid directly accessing fields.
15730 2007-02-20  Jackson Harper  <jackson@ximian.com>
15732         * TextControl.cs: Remove RecalAlignments call, that was some
15733         debugging leftovers.
15734         - Don't use the line indent when we shouldn't.
15735         * RichTextBox.cs: Add support for paragraph left indents.
15737 2007-02-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15739         * Control.cs: Fix BeginInvoke signature for 2.0 profile.
15740         Seems like the class status pages doesn't catch params differences.
15742 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
15744         * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
15746 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
15748         * ComboBox.cs: Setting Text should have no effect if item text of
15749         selected item exactly matches value. First lookup text using
15750         case-sensitive comparison, and fallback to case-insensitive comparison.
15751         FindString(Exact) returns -1 if search string is null. On 2.0 profile, 
15752         allow startIndex to be last index. Changed ArgumentOutOfRangeException
15753         paramname to match MS. Restart from first item if string is not found
15754         after startIndex. Fixed paramname of ArgumentNullException that is
15755         thrown for null value in ObjectCollection.Contains.
15757 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
15759         * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
15761 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15763         * ListControl.cs: In SelectedValue use value.Equals to compare for
15764         equality instead of ==, otherwise it will fail for strings.
15765         Fixes #80794.
15767 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15768         
15769         * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
15770         since the caret won't show up unless ShowSelection is true. 
15771         Fixes #80795.
15773 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15775         * Application.cs: When disabling all forms but the main form, do not
15776           disable any descendants of the main form (such as mdi children or
15777           other parented forms). Fixes #80822 on Windows.
15778         * Form.cs: If we have a parent, set the WS_CHILD style.
15779         * Control.cs: Update the window styles if the control whose parent has
15780           changed is a form (the WS_CHILD style has to be switched).
15782 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
15784         * XplatUIStructs.cs: MsgUIState structure added.
15786 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
15788         * FileDialog.cs: Removed need for separate fileName field. On 2.0
15789         profile, do not check filename(s) for illegal character if filename(s)
15790         were set non-interactively but always check on 1.0 profile. Fixed NRE
15791          in DefaultExt and only strip off first leading dot. Improve exception
15792         message when invalid Filter is set. Do not ignore InitialDirectory if
15793         it does no exist. Store specified Title, and if empty use default
15794         title (depending on type of dialog). Added an internal DialogTitle 
15795         property for retrieving dialog title. Fixed logic of displayed dir to
15796         more closely match MS. Avoid setting ComboBox.Text to a zero-length 
15797         string as its buggy.
15798         * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
15799         FileName is a zero-length string (it can never be null). Override 
15800         DialogTitle property to set default title of dialog box.
15801         * SaveFileDialog.cs: Override DialogTitle property to set default
15802         title of dialog box.
15804 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
15806         * FileDialog.cs: Modify default text of filename and filetype labels
15807         to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
15808         after we've updated the SelectedIndex. Fixes part of bug #80887.
15809         * SaveFileDialog.cs: Set text of filetype label.
15811 2007-02-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15813         * LabelEditEventArgs.cs: New internal SetLabel method, to set the
15814         label field. Needed by latest Jackson's fixes for ListView.
15816 2007-02-16  Andreia Gaita  <avidigal@novell.com>
15818         * PrintPreviewControl/PrintPreviewDialog: Properly dispose of 
15819         print preview images.
15821 2007-02-16  Jackson Harper  <jackson@ximian.com>
15823         * ListView.cs: Make AfterLabelEdit work correctly.
15824         * FileDialog.cs: After changing the name of the folder, we have to
15825         make sure that it is created, or that we pop up an error because
15826         it already exists.
15828 2007-02-16  Jackson Harper  <jackson@ximian.com>
15830         * X11Dnd.cs: Implement aliases on mime handlers, so things like
15831         System.String are mapped to text.
15832         - Handle dataobjects, getting all the possible formats out of them
15833         - We dont need the drag event args before we give feedback. This
15834         allows feedback cursors to be immediate before selections have
15835         been converted.
15837 2007-02-16  Jackson Harper  <jackson@ximian.com>
15839         * TextBoxBase.cs: Modified the method for inserting images to
15840         taking a line and position instead of tag and position.
15841         * RichTextBox.cs: Handle PngBlip data by inserting the png image
15842         into the RTF file.
15843         * TextControl.cs: Allow images to be inserted as the first tag of
15844         a line.
15845         - Fix some off by one issues when we assume the first tag is a
15846         text tag, not an image tag.
15848 2007-02-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15850         * ListView.cs: Set focus to ListView when ItemControl gets a
15851         WM_RBUTTONDOWN message, to mimic .Net behaviour. 
15852         Fixes part of #80467.
15854 2007-02-15  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15856         * DateTimePicker.cs: Call RecreateHandle if the Format changes and
15857           validate Text input (if null or empty string reset Value to default
15858           value). Fixes #80830.
15860 2007-02-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15862         * ListView.cs: Set owner as null for columns and items when
15863         Dispose is invoked. Fixes #80607.
15865 2007-02-14  Jonathan Pobst  <monkey@jpobst.com>
15867         * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
15868         showing DropDowns, don't show a Grip when doing Flow layout.
15869         [This fixes the toolbox in PDN 2.72.]
15870         * ToolStripItem.cs: Add Anchor property and some internal properties to
15871         reduces needed changes to FlowLayout.
15872         * ToolStripOverflow.cs: Remove unused variable.
15873         * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
15874         use it in the layout calculations.
15876 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
15878         * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
15879         reported in #79640.
15880         
15881         * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
15882         size calculation.
15884 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
15886         * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from 
15887         MeasureString format, it can make button very large in some cases, it is
15888         strange but is what win32 do.
15890 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
15892         * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string 
15893         size calculation.
15895         * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
15896         rendering, the value is based on MenuAccessKeysUnderlined.
15898 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
15900         * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
15901         for most themes.
15902         
15903         * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
15904         
15905         * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
15906         and use MenuAccessKeysUnderlined instead.
15908 2007-02-13  Andreia Gaita  <avidigal@novell.com>
15910         * ContainerControl.cs: Focus fix for nunit treeview selection bug.
15911         A selected control would not get a Focus call if:
15912                 - the default active control of the container is the same as
15913                   the one that was selected
15914                 - we are switching from one container to another
15915         Under these conditions, the container being selected already has
15916         an active_control, which is the same as the one being activated, 
15917         so set_ActiveControl would always return and not send the Focus
15918         call. Fix to check if the currently active control of the container
15919         is actually focused.
15921 2007-02-13  Jonathan Pobst  <monkey@jpobst.com>
15923         * StatusStrip.cs: Implement the spring layout.
15924         * ToolStripControlHost.cs: Make sure the hosted control's visibility
15925         always matches the host.
15926         * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
15927         and TextAfterImage.
15929 2007-02-13  Andreia Gaita  <avidigal@novell.com>
15931         * Control.cs: Code reorganization only.
15932           - Reorganize the WndProc cases so that each case has it's own handling method, 
15933           to help with the no-line-numbering stack traces.
15934           - Formatting changes (it's vstudio's fault, really :p)
15936 2007-02-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15938         * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
15939           Thread.CurrentUICulture to match DateTimePicker's (and MS)
15940           behaviour.
15942 2007-02-12  Jackson Harper  <jackson@ximian.com>
15944         * RichTextBox.cs:
15945         * TextBox.cs: By default we have a non multiline document
15946         - use the multiline property instead of the internal variable
15947         * TextBoxBase.cs: Treat multiline and non multiline the same in
15948         most places.
15949         - Use the documents multiline flag instead of tracking it ourself
15950         * TextControl.cs: Attempt at getting multiline to match MS
15951         behavior.  Lines now track an offset, which is either their X or Y
15952         offset depending on whether or not we are in multiline mode.
15953         - Update all the methods to understand that lines have an X value.
15954         - Fix crash in Undo::Duplicate when empty lines are deleted.
15956 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
15958         * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and 
15959         code moved to properties PreferredHeight and PreferredWidth. It solve the
15960         all problems when preferred sizes must be recalculated. Fixes #80801.
15962 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
15964         * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
15965         font height when compatible_text_rendering is false. Partially fix #80801.
15967 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
15969         * Form.cs: Fixed typo in exception message. Fixes bug #80779.
15971 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
15973         * Form.cs: Improved exception messages in ShowDialog.
15975 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
15977         * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
15978         PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
15979         if not set. Fixes bug #80764. Avoid accessing current_settings field
15980         directly.
15982 2007-02-08  Everaldo Canuto  <everaldo@simios.org>
15984         * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
15985         false.
15987         * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
15988         public in 2.0 and for easy maintenance and dont break compatibility it is 
15989         internal in 1.1.
15990         
15991 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
15993         * ToolStripItem.cs: Implement using images from ImageList.
15995 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15997         * DateTimePicker.cs: Change default date-formatting culture from
15998           CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
15999           seems to be the way MS does it.
16001 2007-02-08  Andreia Gaita  <avidigal@novell.com>
16003         * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image 
16004         (the 6 was cut off on the right side)
16006 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
16008         * Form.cs: Tell MenuStrips to close when the form is clicked.
16009         * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs, 
16010         ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
16011         ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
16012         ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add 
16013         support for Overflow, where items that do not fit are automatically
16014         reparented to a drop down menu.
16015         * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
16016         Also: fixes bug #80747.
16018 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16020         * ComboBox.cs: Remove warning (unused code).
16021         * ScrollableControl.cs: Remove warning for 1.1 profile.
16023 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16025         * Form.cs: Remove a warning.
16027 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16029         * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
16030           'g' specifier, not documented anywhere, but seems to always show up
16031           as a single space (might have something to do with the DateTime 'g'
16032           specifier, which is the era format, but since DateTimePicker can't
16033           go earlier than 1753 it wouldn't matter) . Fixed quote handling,
16034           won't crash if the format has an unmatched quote. Now shows
16035           single-character formats correctly. Fixes #80744.
16037 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
16039         * StatusStrip.cs: Stretch property needs to call base.Stretch,
16040         not this.Stretch to fix stack overflow. [Fixes bug #80760]
16042 2007-02-07  Chris Toshok  <toshok@ximian.com>
16044         * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
16045         background color.  it overwrites the background image we've
16046         already painted.  Fixes #80599.
16048 2007-02-07  Chris Toshok  <toshok@ximian.com>
16050         * DataGrid.cs: return immediately from Edit() when there are no
16051         columns.  Fixes #80662.
16053 2007-02-07  Chris Toshok  <toshok@ximian.com>
16055         * MessageBox.cs: fix #80625.  don't always show the Help button in
16056         2.0.  use the displayHelpButton parameter to determine if we
16057         should show it. Also, make the internal show_help field private.
16059 2007-02-07  Chris Toshok  <toshok@ximian.com>
16061         * Control.cs (SetVisibleCore): check in the proposed patch for
16062         80604, and set is_visible before calling CreateControl.
16064 2007-02-07  Jonathan Pobst  <monkey@jpobst.com>
16066         * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to 
16067         MonoInternalNote.  This is added automagically by VS2005, so let's not crash
16068         on it.
16070 2007-02-06  Everaldo Canuto  <everaldo@simios.org>
16072         * MenuAPI.cs: hotkey_active internal field added, it is required because
16073         we need to know when hotkeys must be draw, before this change a keystate
16074         Navigating was used but we can have menu in navigating state without
16075         hotkeys. Fixes #80694.
16076         
16077         * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
16079 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16081         * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
16082           corresponding events and methods to be internal for 1.1 profile and
16083           public for 2.0 profile (required by SizeGrip).
16084         * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
16085           implicit control list). Don't set the size nor the location of the
16086           SizeGrip anymore as it's not needed.
16087         * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
16088           draw directly on the captured control (fixes #80656). Removed
16089           ShowGrip (it wasn't used anywhere), redraw (always true), added
16090           GetDefaultSize and GetDefaultRectangle to calculate defaults.
16091         * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
16092           be called from SizeGrip.
16094 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16096         * Timer.cs: Throw ArgumentException if Interval <= 0.
16098 2007-02-05  Jackson Harper  <jackson@ximian.com>
16100         * TreeView.cs: We need to check scrollbar visibility when window
16101         visibility is updated, because non visible trees don't ever add
16102         scrollbars.
16103         * Cursor.cs: We want the override cursor to be reset to NULL when
16104         we set current cursor to the default cursor.
16106 2007-02-05  Jackson Harper  <jackson@ximian.com>
16108         * TextControl.cs: Don't have crlfs when we are non multiline.
16109         - Consolidate the line position.
16111 2007-02-05  Jackson Harper  <jackson@ximian.com>
16113         * X11Keyboard.cs: BACK+CTRL gets a special char code.
16115 2007-02-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16117         * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
16118           handling LeaveNotify->NotifyUngrab in order to send
16119           WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
16120           after calling XUngrabPointer, so we call WindowUngrabbed directly
16121           from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
16122         * Control.cs: Handle WM_CAPTURECHANGED in order to raise
16123           MouseCaptureChanged correctly. Also create handles if changing
16124           Capture (matches MS behaviour).
16126 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16128         * SizeGrip.cs: Make the last change 2.0 only.
16130 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16132         * SizeGrip.cs: If resizing and the capture is lost, revert any size
16133           changes to initial size (fixes #80597).
16135 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16137         * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
16139 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16141         * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
16142           background) and only allow dragging if enabled. This way the
16143           sizegrip can be used to fill the open square that otherwise would
16144           have been shown in the bottom right corner of ScrollableControl
16145           when ScrollableControl is not suppose to support sizing.
16146         * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
16147           sizegrip is shown and enabled, and hook up with necessary events.
16149 2007-02-01  Chris Toshok  <toshok@ximian.com>
16151         * DataGridTextBoxColumn.cs: clean up the
16152         GetFormattedString/GetColumnValueAtRow combination of functions.
16153         Also fix UpdateUI, and the initial state of
16154         IsInEditOrNavigateMode.
16156         * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
16157         aren't supposed to scroll the textbox here, we're supposed to
16158         scroll the datagrid.
16160 2007-02-01  Chris Toshok  <toshok@ximian.com>
16162         * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
16163         setting the position.
16165 2007-02-01  Chris Toshok  <toshok@ximian.com>
16167         * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
16168         here, since the most recent focus fixes keep us from generating
16169         the Leave event when our textbox gets focus.
16170         (Edit): we should be passing null for the column style's
16171         instantText parameter.
16172         
16173 2007-02-01  Jonathan Pobst  <monkey@jpobst.com>
16175         * ToolStripDropDownItem.cs: Make sure DropDownOpening event is 
16176         raised.  Fixes menu text/icons not showing up in PDN.
16178 2007-02-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16180         * Control.cs: Remove code in constructor that makes every
16181         control with WS_CHILD set have initial location -1, -1.
16183 2007-01-31  Jackson Harper  <jackson@ximian.com>
16185         * X11Dnd.cs: Take the keyboard on init to reduce coupling with
16186         XplatUIX11.
16187         * XplatUIX11.cs: Give teh keyboard to teh dnd.
16189 2007-01-31  Jackson Harper  <jackson@ximian.com>
16191         * X11Dnd.cs: Use IDataObject instead of the DataObject class.
16192         - Remove some debug code.
16194 2007-01-31  Jackson Harper  <jackson@ximian.com>
16196         * XplatUIX11.cs: If you set the override cursor during a grab, it
16197         should actually override the grab cursor.  This comes into play
16198         when you are setting custom cursors in a DND feedback method.
16200 2007-01-31  Jackson Harper  <jackson@ximian.com>
16202         * X11Dnd.cs: Add support for handling the QueryContinue and
16203         GiveFeedback events.
16204         - Cancel drag and drop actions when the escape key is clicked.
16205         * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
16206         can handle the ESCAPE key.
16207         - Allow dnd to swallow BUTTONUP messages if it needs to.  This is
16208         done when dnd events are continued after the button is released.
16209         - Add a new helper method so that dnd can translate key events.
16211 2007-01-31  Alexander Olk  <alex.olk@googlemail.com>
16213         * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
16214         make it more obvious what is happening.
16216 2007-01-30  Jackson Harper  <jackson@ximian.com>
16218         * XplatUIX11.cs: Don't break when handling button release in drag
16219         and drop operations. We need that BUTTONUP message to get through
16220         so capture is released.
16221         * X11Dnd.cs: We don't need to manually grab the pointer anymore,
16222         this is handled automatically when the mouse is down.
16224 2007-01-30  Jackson Harper  <jackson@ximian.com>
16226         * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
16227         is closed, so we need to make sure that we aren't changing the
16228         dialog result when the OK (Open or Save) button has been clicked
16229         and we are closing the window ourselves.  Note we don't need to
16230         worry about the cache being written in this case, because it was
16231         already done in the previous FilOk call.
16233 2007-01-30  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16234         
16235         * DateTimePicker.cs: Remove a warning.
16236         * ComboBox.cs: Remove a couple of warnings.
16238 2007-01-29  Chris Toshok  <toshok@ximian.com>
16240         * XplatUIX11.cs: don't crash, and remove the icon if the user has
16241         set one, if SetIcon is passed a null icon.
16243 2007-01-29  Andreia Gaita  <avidigal@novell.com>
16245         * TextBox.cs: Redraw when the password characters changes
16246         * TextControl.cs: Check if textbox has a password char and draw 
16247         a line of password chars instead of the text in the line. LineTag gets 
16248         an extra Draw() method which allows document.Draw to override the text 
16249         that will be drawn. Removes 1024 char limitation on length of passworded 
16250         lines.
16252 2007-01-29  Jackson Harper  <jackson@ximian.com>
16254         * TextBoxBase.cs: Deleting sections of text is undoable.  Deleting
16255         single chars is not.
16257 2007-01-28  Jonathan Pobst  <monkey@jpobst.com>
16259         * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
16260         one pixel.  Fix a StackOverflowException caused by an overload wrongly
16261         calling itself.
16263 2007-01-26  Everaldo Canuto  <everaldo@simios.org>
16265         * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
16266         also remove ProcessArrowKey and put the code inside ProcessKeys.
16268 2007-01-26  Jonathan Pobst  <monkey@jpobst.com>
16270         * PaddingConverter.cs: Added.
16272 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16273         
16274         * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
16275         ShowPanels is false (fixes #80600). Only draw up to 127 characters
16276         of text (fixes #80601). For panels clip the text to draw to the
16277         panel (fixes #80603).
16279 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16281         * ComboBox.cs: Fixed implementation of ResetText.
16283 2007-01-25  Jackson Harper  <jackson@ximian.com>
16285         * TextControl.cs: For the last char of a line we need to use the
16286         line size, not that chars width, since it won't actually be
16287         computed since the right side of a char is based on the start of
16288         the left side of the next char, and the next char does not exist.
16290 2007-01-25  Chris Toshok  <toshok@ximian.com>
16292         * Splitter.cs: fix the new unit tests, and reindent some switch
16293         statements.
16295 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16297         * ComboBox.cs: Implemented 2.0 methods and events.
16298         * TextBoxBase.cs: Added OnTextUpdate, so that
16299         ComboBox.ComboTextBox can inform ComboBox of it.
16301 2007-01-25  Jackson Harper  <jackson@ximian.com>
16303         * TextControl.cs: Respect ShowSelection when deciding whether or
16304         not to display the caret, this allows comboboxes to have carets
16305         when the combotextbox does not have focus.
16307 2007-01-25  Jackson Harper  <jackson@ximian.com>
16309         * TextControl.cs: Add a Suspend/Resume for updating, basically the
16310         same as the Suspend/Resume for recalc, except this will do actual
16311         Invalidates.
16312         - New Undo manager, works much like the MS version.
16313         - Implemented Redo
16314         * TextBoxBase.cs: The Cut operation is undoable.
16316 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16317         
16318         * TextBoxBase.cs: Don't antialias text. Makes it look way better
16319         on Windows (no difference on Linux).    
16321 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16323         * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
16324         we don't want to activate any windows. Fixes #79433.
16326 2007-01-25  Jonathan Pobst  <monkey@jpobst.com>
16328         - ButtonBase.cs: Fix capitalization of parameter: disposing.
16329         [Fixes bug #80609]
16331 2007-01-25  Alexander Olk  <alex.olk@googlemail.com>
16333         * FileDialog.cs:
16334         - Move to using System.ComponentModel.EventHandlerList
16335         - Replace Refresh with Invalidate
16336         - Clear the mime filecache on closing
16337         - Some other memory reducing work. After beeing closed FD now uses
16338           only about 300 KB for the fdo mime stuff plus the memory of the
16339           cached icons.
16340         * Mime.cs: Changed coding style and removed unnecessary commented
16341         code. Some more memory memory reducing work.
16343 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16345         * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
16346         a few other missing 2.0 properties.
16347         * Theme.cs: Added DrawFlatStyleComboBox.
16348         * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
16350 2007-01-24  Chris Toshok  <toshok@ximian.com>
16352         * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
16353         wake_waiting flag, not just when there's data to be read.  if we
16354         don't, then future wakeup's won't reach us and we'll be doomed to
16355         wait for the entire 1 second timeout forever (unless there are X
16356         events to be had).
16358 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
16360         * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
16361         until you pass Items.Count, not Items.Count - 1 like 1.1.
16363 2007-01-24  Gert Driesen  <drieseng@users.sourceforge.net>
16365         * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
16367 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
16369         * ToolStripContainer.cs: The recent Dock fix exposed that I was
16370         adding the panels in the wrong order.
16372 2007-01-24  Jackson Harper  <jackson@ximian.com>
16374         * TextBoxBase.cs: When we move the caret we also need to move the
16375         selection, this fixes some random crashing after doing select
16376         text, unselect, delete a char, paste.
16378 2007-01-24  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16380         * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
16382 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
16384         * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
16385         OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553. 
16386         * ToolBar.cs: Force redraw in BackgroundImageChanged.
16388 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
16390         * ToolBar.cs:
16391         - Implement support for vertical toolbars. Fixes #80539;
16392         - Call LayoutToolBar when resize, it fix some other problems in layout.
16393         - Rename requested_height to requested_size, as we can have width on it
16394         when toolbar is vertical.
16395         - Create a private property "Vertical" that uses Dock to verify when 
16396         toolbar is vertical or not.
16397         - Set ControlStyles when change Dock property.
16398         - Refactory in LayoutToolBar to have better variables names and to support
16399         vertical toolbars.
16400         - Fixes default value for ButtonSize when button count is equal zero, size
16401         must be (39, 36) test case writed.
16403 2007-01-23  Chris Toshok  <toshok@ximian.com>
16405         * Control.cs: fix the checks so that they work correctly for mdi
16406         parents/children.
16408 2007-01-23  Chris Toshok  <toshok@ximian.com>
16410         * Control.cs: ControlCollection seems to have super-secret
16411         abstraction breaking knowledge of Mdi containers.  allow MdiClient
16412         to add toplevel controls.
16414 2007-01-23  Chris Toshok  <toshok@ximian.com>
16416         * Control.cs: throw an ArgumentException if a toplevel control is
16417         added to our control collection from ControlCollection.Add, as
16418         well as from ControlCollection.IList.Add.  This fixes the
16419         ControlSetTopLevelTest.TestTopLevelAdd unit test.
16421         Also, in ControlCollection.IList.Add, don't through an
16422         ArgumentNullException, throw an ArgumentException, when value ==
16423         null.  This matches MS.
16425 2007-01-23  Chris Toshok  <toshok@ximian.com>
16427         * BindingSource.cs: initial, incomplete, implementation of
16428         BindingSource.
16430 2007-01-23  Jackson Harper  <jackson@ximian.com>
16432         * TextControl.cs:
16433         * TextBoxBase.cs: Checking in some pieces of the undo stuff so
16434         that I can fix a broken unit test (TextBoxTest::ClearUndo)
16435         
16436 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
16438         * ToolBar.cs: Add status fields to ToolBarButtonInfo.
16440 2007-01-23  Andreia Gaita  <avidigal@novell.com>
16442         * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
16443         * TreeNodeCollection.cs: New Add() methods, ContainsKey and
16444         IndexOfKey() for 2.0
16446 2007-01-23  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16448         * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
16449         to prevent it from changing z-order.
16450         * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
16451         leave UI updates in MdiWindowManager.
16452         * InternalWindowManager.cs: Check for 0 sized nc areas and make them
16453         1 sized (NC handling goes weird on Linux otherwise).
16454         * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
16455         necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
16456         remove a few NCRequestRecalcs. Changed calculations in IconicBounds
16457         to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
16458         and SetWindowState(s) to allow for changing the size of an activated child
16459         before activating it (reduces a lot of flicker).
16461 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
16463         * Form.cs: Changing FormBorderStyle has different semantics based
16464         on whether the Form is visible or not.  If not visible, don't change
16465         the Size.  But InvalidateNC needs to be called to force the window
16466         to pick up the changes and redraw itself.  [Fixes bug #80574]
16468 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
16470         [Moma work]
16471         * ContainerControl.cs: ProcessCmdKey.
16472         * ErrorProvider.cs: new constructor.
16473         * Form.cs: fix AutoValidateEvent compiler warning.
16474         * Label.cs: fix OnAutoSizeChanged compiler warning.
16475         * MenuStrip.cs: fix CanOverflow compiler warning.
16476         * TabControl.cs: SelectTab, OnSelected methods, Selected event.
16477         * TextBox.cs: Dispose.
16478         * ToolStrip.cs: CanOverflow, re-enable double buffering.
16479         * ToolStripControlHost.cs: fix CausesValidation compiler warning.
16480         * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
16481         * ToolStripItem.cs: Overflow, RightToLeft properties.
16483 2007-01-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16485         * Form.cs: Move the layout of the main form to MdiWindowManager.
16486         * MdiWindowManager.cs: If WindowState changes from or to Maximized,
16487         do a layout of the main window to update MdiClient's client area to
16488         the right area. Fixes #80533. Remove the calculation of nc size, 
16489         it was just wrong and the correct one is the same as for 
16490         InternalWindowManager. 
16492 2007-01-20  Jonathan Pobst  <monkey@jpobst.com>
16494         * Control.cs: Setting Anchor or Dock needs to reset the other
16495         to its default.  [Fixes bug #80556]
16497 2007-01-20  Chris Toshok  <toshok@ximian.com>
16499         * CheckedListBox.cs: class status changes.
16501         * ScrollableControl.cs: same.
16503         * RichTextBox.cs: same.
16505         * ContainerControl.cs: same.
16507         * ListView.cs: same.
16509         * NotifyIcon.cs: same.
16511         * MenuStrip.cs: same.
16513         * RadioButton.cs: same.
16515         * CheckBox.cs: same.
16517         * PrintPreviewDialog.cs: same.
16519         * Form.cs: same.
16521 2007-01-19  Jonathan Pobst  <monkey@jpobst.com>
16523         * TreeNode.cs: Apply Alan's patch for Name property.
16525 2007-01-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16526         
16527         * Form.cs: Implemented SizeGripStyle.
16528         * SizeGrip.cs: Check for minimum and maximum size for the
16529         control being resized and only resize if size has actually
16530         changed.
16532 2007-01-19  Chris Toshok  <toshok@ximian.com>
16534         * DataGridColumnStyle.cs: stop setting _readonly in the
16535         PropertyDescriptor setter.  fixes a unit test failure.
16537         also, rename ParentReadOnly to TableStyleReadOnly, and have it
16538         just consult our table style (if we have one).  We don't need to
16539         consult the datagrid readonly attribute because that's passed in
16540         as the _ro arg to Edit.  this simplifies things a little.
16541         
16542         * DataGrid.cs: use CurrentColumn instead of
16543         current_cell.ColumnNumber just to simplify some of the code.
16545         switch the order of some things in the CurrentCell setter to keep
16546         the previous cell from getting a textbox again -
16547         EnsureCellVisibility causes scrolling to happen, which calls Edit.
16548         So we need to set the new cell before calling it.
16549         
16550         call Edit in OnEnter, as does Microsoft.
16551         
16552         also, make sure the current table style isn't the one we create
16553         initially when checking to see if it's different than the one
16554         we're setting it to in BindColumns (this fixes #80421).
16556         * GridTableStylesCollection.cs: table styles can have "" for a
16557         mapping name.  part of the fix for #80421.
16559         * DataGridTextBoxColumn.cs: simplify the readonly calculation in
16560         Edit significantly.
16562 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
16564         * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
16565         and less GDI object leaky-er.
16567 2007-01-18  Andreia Gaita  <avidigal@novell.com>
16569         * LinkLabel.cs: Add opaque control style
16571 2007-01-18  Jackson Harper  <jackson@ximian.com>
16573         * TextControl.cs: Calculate width properly.
16574         - Don't store the tag's X offset, this can be figured out very
16575         easily.
16576         - When getting the caret tag make sure to get the last empty tag.
16578 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
16580         * Form.cs: Recalculate our size after setting a new FormBorderStyle.
16581         [Fixes bug #79959]
16583         * Control.cs: Color.Empty shouldn't count for previous transparent
16584         redraw changes.
16586 2007-01-18  Jackson Harper  <jackson@ximian.com>
16588         * TextBox.cs:
16589         * RichTextBox.cs:
16590         * TextControl.cs: Starting to merge in some pieces of my older
16591         undo work.  Basically just some slight cleanup of the undo API.
16593 2007-01-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16595         * TrackBar.cs: Fix signature of RightToLeftLayout.
16596         * StatusBar.cs: Implemented missing 2.0 methods and attributes.
16597         * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
16598         * Application.cs: Implemented UseWaitCursor.
16600 2007-01-18  Jackson Harper  <jackson@ximian.com>
16602         * TextControl.cs: We can't skip tags if any part of the tag is
16603         visible.
16605 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
16607         * ContainerControl.cs: Override OnLayout.
16609 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
16611         * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
16613         * ContextMenuStrip.cs: Make sure context menu is shown on top of 
16614         everything else.
16616 2007-01-18  Chris Toshok  <toshok@ximian.com>
16618         * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
16619         (leftover from the container_selected days, I'd wager).  fixes bug
16620         #80546.
16622 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
16624         * Control.cs: Apply patch from George to fix the new testcase on
16625         bug #80451.  We can't just check for Color.Transparent, we need 
16626         to check if the back color's alpha channel is < 255.
16628 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
16630         * Form.cs: Move setting show_icon = true to before the constructor
16631         so that the base constructor has that information when it calculates
16632         the form's size.  Was causing forms to be (6, 6) bigger than they
16633         were supposed to be.  Thanks for catching this Rolf!
16635 2007-01-18  Jackson Harper  <jackson@ximian.com>
16637         * TextControl.cs: When replacing a selection we need to invalidate
16638         from the initial selection start, because selection start is moved
16639         to the end of the replacement.
16641 2007-01-18  Andreia Gaita  <avidigal@novell.com>
16643         * LinkLabel.cs: Missing ControlStyles. Fixes #80482
16645 2007-01-18  Chris Toshok  <toshok@ximian.com>
16647         * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
16648         I just added.
16650 2007-01-17  Everaldo Canuto  <everaldo@simios.org>
16652         * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every 
16653         layout methods and properties from ToolBarButton must be available
16654         into ToolBarButtonInfo.
16656 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
16658         * Control.cs: If the control has a transparent background, we
16659         need to refresh it when it moves and when it's parent's background
16660         image changes.  [Fixes bug #80451]
16662 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
16664         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code!  Doh!
16666 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
16668         * XplatUIWin32.cs: Implement proper double buffering for Windows.
16669         [Fixes bug #80447, and probably speeds up things as well]
16671 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16673         * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
16674         * XplatUIWin32.cs: We need to recalculate NC size after changing 
16675         window style to toolwindow (otherwise the client rectangle will be
16676         3 pixels to small for some reason).
16677         * MdiWindowManager.cs: Revert NC size calculations to match how
16678         they are calculated only based on window styles (to match
16679         Win32AdjustWindowRectEx, since otherwise when setting size or 
16680         location, Control will call Win32AdjustWindowRectEx to update client 
16681         size, which would provoke a paint, then we'd get a NCCALCSIZE and 
16682         calculate a different value of client size causing another paint 
16683         (and flickering))
16684         * InternalWindowManager.cs: When moving or resizing a window only
16685         update size or location if they actually changed.
16686         * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
16687         (seems to match Windows behaviour better). Cleaned up 
16688         ManagedWindowDecorations to draw what's needed and nothing else
16689         (was drawing borders and lines where they shouldn't be)
16690         * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
16691         (style = 0xFFFF) and takes into account caption height when 
16692         calculating window rectangle.   
16694 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
16696         * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button 
16697         can be added to toolbar multiple times, we need to maintain a list of 
16698         button information for each positions.
16700 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
16702         * ToolBar.cs: Some small stetic changes.
16704 2007-01-16  Jackson Harper  <jackson@ximian.com>
16706         * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
16707         that allow us to have nested recalc = false blocks.
16708         - Add paste support for images in the RichTextBox
16709         * RichTextBox.cs: flush the text after the color is changed, so
16710         the change takes effect.
16711         - Use SuspendRecalc
16712         - Some extra debugging info
16713         * TextControl.cs: Tags no longer track their length, it is just
16714         computed from the next tags length, this makes things a little
16715         simpler and reduces places that we have to track length changes.
16716         - Refactored the linetag class a little so we could make it
16717         a base class for different kinds of tags
16718         - Created a image tag, a tag that can have a single image inserted
16719         into it
16720         - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
16721         that we can call suspend multiple times.
16722         - Add some debugging methods
16724 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16726         * MdiClient.cs: Add ActivatePreviousChild for 
16727         mdi child window navigation.
16728         * Form.cs: Use MdiClient.ActivateNextChild/
16729         ActivatePreviousChild instead of Form.SelectNextControl
16730         to select the next/previous child since 
16731         SelectNextControl doesn't do it in the same order
16732         as mdi children should do it.
16734 2007-01-16  Chris Toshok  <toshok@ximian.com>
16736         * Control.cs: remove container_selected field.
16738 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16740         * MdiClient.cs: Update main form's ActiveChild when
16741         updating keyboard focus for the mdi child.
16743 2007-01-16  Jonathan Pobst  <jpobst@novell.com>
16745         * Control.cs: PreferredSize fix.
16747         * Form.cs: Add several 2.0 events, properties, and methods.
16749 2007-01-16  Gert Driesen  <drieseng@users.sourceforge.net>
16751         * Form.cs: Provide meaningful message when MdiParent is assigned a
16752         Form that is not an MdiContainer.
16754 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16756         * MdiClient.cs: Update main form's ActiveChild when
16757         activating a mdi child.
16759 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16761         * MdiWindowManager.cs: Fix NRE when merging menus and main form
16762         doesn't have a menu.
16764         * Form.cs: Request NCRecalc after creating a mdi child window.
16765         Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab, 
16766         Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
16767         
16768         * MdiClient.cs: Add new method SendFocusToActiveChild that either
16769         sends keyboard focus to the active child, or to the MdiClient
16770         if there are no child forms.
16771         
16772 2007-01-15  Chris Toshok  <toshok@ximian.com>
16774         * ListView.cs: drop the *Internal overrides, just do our work in
16775         ItemControl's WndProc instead.
16777         * UpDownBase.cs: a few large changes.  Fix up the Selectable state
16778         of the various controls, and forward the events properly (in the
16779         same manner as MS) from the textbox to the UpDown.  Also the
16780         ActiveControl of the UpDownBase gets set properly now.  Finally,
16781         we don't call UpdateEditText from the ctor.  Fixes bug #79957.
16783         * NumericUpDown.cs: set Text in the ctor.
16785         * DomainUpDown.cs: call UpdateEditText in the ctor.
16786         
16787         * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
16788         so even a Selectable = false textbox can be focused if you click
16789         in it.  Go figure.
16791         * Control.cs: remove On{Got,Lost}FocusInternal.  Subclasses can
16792         just add their handling in their respective WndProc's.  Also add
16793         an explicit FocusInternal method that doesn't consult CanFocus
16794         before calling Select(this).
16796         * TextBoxBase.cs: deal with removal of the FocusInternal calls -
16797         do our work in WndProc instead.
16799         * TabControl.cs: same.
16801         * ComboBox.cs: same.
16803 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
16805         * Menu.cs: implement MergeItems and Replace for MenuMerge method.
16806         Fixes #80006.
16808 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16810         * ListViewItem.cs:
16811         * ThemeWin32Classic.cs: Don't draw the item text outside
16812         item bounds in Details view, as well as use trimming.
16813         Fixes bug #80376.
16815 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
16817         * Form.cs: Implement Form.ShowIcon.
16818         
16819         * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
16820         null, which when combined with the DlgModalFrame window style removes
16821         the icon from the title bar.
16823 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
16825         * Control.cs: Call OnMouseClick after OnClick. (2.0)
16827 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
16829         * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
16830         menu when mdi child windows theres a menu, uses insert to get icon
16831         at first position. Partially fix #80006.
16833 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
16835         * Clipboard.cs: Implement 2.0 methods.
16837 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
16839         * Menu.cs: Implement Insert method of MenuItemCollection class
16840         to fix MenuMerge.
16842 2007-01-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16844         * ListView.cs: Implement 2.0 FindItemWithText method.
16846 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
16848         * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
16849         to calculate menu bar size. Fixes #80290.
16851 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
16853         * ThemeWin32Classic.cs: Fix position of menuitem check mark.
16855 2007-01-11  Chris Toshok  <toshok@ximian.com>
16857         * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
16858         initial form.
16860 2007-01-11  Chris Toshok  <toshok@ximian.com>
16862         * LinkLabel.cs: make sure to call base.Select in our Select method
16863         if it turns out we're going to be selected (i.e. if we have a link
16864         that is going to receive focus).  That way our container's
16865         ActiveControl is updated properly.
16867 2007-01-11  Chris Toshok  <toshok@ximian.com>
16869         * LinkLabel.cs: turns out that LinkLabels are only Selectable if
16870         they have 1 or more links.  this fixes the crash gert reported.
16872 2007-01-11  Andreia Gaita  <avidigal@novell.com>
16874         * ContainerControl.cs: Remove ContainerSelected flag, not needed
16875         anymore.
16877         * Control.cs (Controls.Add): Check if control to be added to the collection
16878         is a top level control, and throw an ArgumentException if it is.
16879         Remove ContainerSelectedFlag, not needed anymore.
16881         * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
16882         top most control doesn't activate the form. This fixes a problem in the
16883         MessageBox, where the default button wouldn't get focus because the form
16884         was activated before being Loaded - when the Owner is set, SetTopMost is
16885         called, and it would activate it.
16887 2007-01-11  Jonathan Pobst  <jpobst@novell.com>
16889         * Button.cs: When clicked and setting the parent form's DialogResult,
16890         use FindForm instead of Parent, since parent could be a container
16891         control and not the Form.  Fixes bug #80495.
16893 2007-01-10  Chris Toshok  <toshok@ximian.com>
16895         * Form.cs: move the call to SendControlFocus into the same
16896         is_loaded check.
16898 2007-01-10  Chris Toshok  <toshok@ximian.com>
16900         * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
16901         It breaks in the face of the new ActiveControl stuff, and should
16902         be unnecessary.
16904         * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
16905         activecontrol's focus if it's not already set, after we set
16906         ActiveControl, but before we call OnActivated.  Re-fixes #79667
16907         after the previous focus/active control fixes regressed it.
16909         * Control.cs: reindent some code.
16910         
16911 2007-01-10  Chris Toshok  <toshok@ximian.com>
16913         * Splitter.cs: clearing some outstanding changes from my tree.
16914         Replace all accesses (not writes) to the internal dock_style field
16915         with the Dock property.
16917 2007-01-10  Chris Toshok  <toshok@ximian.com>
16919         * Control.cs: make FireEnter, FireLeave, FireValidating, and
16920         FireValidated virtual.
16922         * Form.cs: override and don't chain up calls to FireEnter and
16923         FireLeave.
16925 2007-01-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16927         * ListView.cs: Add more text padding space when using
16928         auto resize for columns (the previous value didn't work fine).
16930         * ThemeWin32Classic.cs: Update text position inside columns,
16931         to match the appeareance of .Net.
16933         * ColumnHeader.cs: When using auto resize, only the Width should
16934         depend on the sub items, not the Height. Also, set width after
16935         auto resizing (the value of Width should never remain as -1 or -2).
16937 2007-01-10  Chris Toshok  <toshok@ximian.com>
16939         * Application.cs: fix compilation errors when debug is enabled.
16941 2007-01-10  Chris Toshok  <toshok@ximian.com>
16943         * ContainerControl.cs (set_ActiveControl): rework this a bit (and
16944         add some nice ascii art pictures and explanation of the process).
16945         (GetMostDeeplyNestedActiveControl): new utility function we need
16946         because our ActiveControl can refer to a child container with its
16947         own ActiveControl.
16949         * Form.cs (OnActivated): remove the call to SelectActiveControl
16950         from here, since you can override this method and not chain up,
16951         and winforms still sets the active control.
16952         (OnCreateControl): also remove the unnecessary SelectActiveControl
16953         call from here.
16954         (WndProc): it's actually called from the WM_ACTIVATE block, just
16955         before calling OnActivated.
16957         * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
16958         inside the else.  the ActiveControl setter will end up setting
16959         focus on @control.  This keeps us from setting it again (and
16960         generating an extra LostFocus/GotFocus pair).
16961         (Select (bool, bool)): reindent.
16963 2007-01-10  Jonathan Pobst  <jpobst@novell.com>
16965         * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
16966         StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
16967         ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
16968         ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
16969         ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
16970         ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
16971         ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
16972         ToolStripTextBox.cs: Another wave of corcompare work.
16974 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16976         * ColumnHeader.cs: Implement 2.0 AutoResize method using
16977         the Width property.
16979         * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
16980         methods by callling Column.AutoResize method on columns.
16982 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
16984         * Control.cs: Provide proper implementations of PreferredSize
16985         and GetPreferredSize (2.0).
16987 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
16989         * Form.cs: Remove one character (!) to make my previous OnClosing
16990         stuff work for modal windows like MessageBox.
16992 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16994         * ListView.cs:
16995         * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
16996         ListView.Columns to get the last displayed column. Fixes #80452.
16998 2007-01-09  Everaldo Canuto  <everaldo@simios.org>
17000         * Label.cs, LinkLabel.cs: Source code identation fixes.
17002 2007-01-08  Everaldo Canuto  <everaldo@simios.org>
17004         * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
17005         we dont need to invalidate only borders because when we invalidate four
17006         border lines the invalidate's generates a complete redraw of button, 
17007         because it now invalidate a complete rect some other redraws operations
17008         are fixed. Fixes #80196.
17009         
17010         * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
17011         Remove ToolBarInvalidateEntireButton as it is not used.
17013 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
17014         
17015         * Form.cs: Make sure that both OnClosing and OnFormClosing are
17016         called for 2.0 profile.
17017         * CloseReason.cs: Make class internal for 1.1.
17019 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
17021         * ToolStripManager.cs: Implement FindToolStrip functionality.
17022         * ToolStrip.cs: Register and unregister with ToolStripManager.
17024 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
17026         * Control.cs: This was messy.  2.0 moves much of ControlCollection
17027         to ArrangedElementCollection.  Implemented this with as few #if's as 
17028         possible (which is still too many).
17030 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
17032         * Control.cs: Implement SizeFromClientSize() [2.0].
17034 2007-01-07  Everaldo Canuto  <everaldo@simios.org>
17036         * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
17037         use Theme.BorderSize to calculate area instead of static value 1, 
17038         by the way use new BorderStaticSize instead     Border3DSize when 
17039         border_static is true. Fixes #79537.
17040         
17041         * XplatUIOSX.cs: Fix call to GetClientRectangle. 
17042         
17043         * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
17044         it is not needed.
17046 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
17048         * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
17050 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
17052         * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
17053         WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
17054         
17055         * Hwnd.cs: 
17056         - border_static field added, it will used to define when a control 
17057         theres 3D border but it must be static (thin).
17058         - In GetWindowRectangle use Theme.BorderSize to calculate area 
17059         instead of static value 1, by the way use new BorderStaticSize instead
17060         Border3DSize when border_static is true.
17062         * XplatUIX11.cs, XplatUIOSX.cs: 
17063         - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
17064         
17065         * Theme.cs: BorderStaticSize field added.
17067 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
17069         * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
17071 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
17073         * Control.cs: Under InternalBorderStyle call RecreateHangle to 
17074         mimic same behavior than win32 that set border only in CreateParams,
17075         it fix problems under CreateParams overrides. Fix #79442 and partial
17076         fix #79537.
17077         
17078         * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
17079         of thi control you must call recreate handle. 
17080         
17081         * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
17082         need to do anything as RecreateHangle will take care about borders.
17084 2007-01-05  Mike Kestner  <mkestner@novell.com>
17086         * ListView.cs: hack to eliminate Lost/Got focus notifications on
17087         cycles between the ItemControl and parent.  Fixes #80388.
17089 2007-01-05  Gert Driesen  <drieseng@users.sourceforge.net>
17091         * Control.cs: Lazy init layout engine. Do not directly use 
17092         layout_engine since LayoutEngine may be overridden (on 2.0 profile).
17094 2007-01-05  Chris Toshok  <toshok@ximian.com>
17096         * DataGrid.cs: don't forceably rebind columns in SetDataSource
17097         unless our list manager has changed (i.e. unless we have reason to
17098         believe our columns have changed).  Fixes #80422.
17099         
17100         also, disable the call do BindColumns in
17101         OnListManagerMetaDataChanged.  this breaks this test in 2.0 (in
17102         1.1 the event isn't raised in response to a column addition on a
17103         table.)
17105 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
17107         * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
17108         that inheritors can not call it if they choose.  Fixes bug #80456.
17110 2007-01-05  Andreia Gaita  <avidigal@novell.com>
17112         * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it 
17113         doesn't blow up with a null exception on marshalling.
17114         
17115 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
17117         * Control.cs: Implement several 2.0 protected properties and methods.
17118         Ensure that all necessary events are being called when properties
17119         are set.
17121 2007-01-05  Mike Kestner  <mkestner@novell.com>
17123         * ListView.cs: implement PgUp/PgDn for Details view.  Also
17124         fixes First/LastVisibleIndex to use the item_control.ClientRect 
17125         instead of the parent control.  Fixes #80378.
17127 2006-01-05  Atsushi Enomoto  <atsushi@ximian.com>
17129         * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
17130           determine whether to use yard-pound or not (bug #78399).
17132 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
17134         * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
17135         problems. So it is time to bring back the old popupbutton colors.
17137 2006-01-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17139         * ColumnHeader.cs:
17140         * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
17141         property by using the internal information of the
17142         columns order in ListView.
17144 2007-01-04  Jonathan Pobst  <monkey@jpobst.com>
17146         * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
17147         Add 2.0 Tag properties.
17149         * LinkArea.cs: Add 2.0 ToString method.
17151 2007-01-03  Chris Toshok  <toshok@ximian.com>
17153         * DataGrid.cs: the Alt+0 handling was wrong, it should have been
17154         Ctrl+0.  Fixes bug #80367.  Also, don't eat the Delete keypress
17155         when we're editing, which fixes #80047.
17157 2007-01-03  Chris Toshok  <toshok@ximian.com>
17159         * Form.cs: apply patch contributed by Dominik Seichter.  fixes
17160         #80404.
17162 2007-01-03  Jonathan Pobst  <monkey@jpobst.com>
17164         * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
17165         property and implementation.
17167         * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
17168         for MdiWindowListItem property.
17170         * ToolStripDropDown.cs: Don't consider hidden menu items while
17171         laying out the menu.
17173 2007-01-03  Andreia Gaita  <avidigal@novell.com>
17175         * SendKeys.cs: window handle is not needed in win32, so just
17176         get the active window for X after parsing keys and don't use
17177         it when building the message; it is passed by parameter to the 
17178         Xplat method and used there to build the message instead. Also,
17179         wait for events to be processed on SendWait, as opposed to Send,
17180         which doesn't wait :) Playing with threads and Send() completely 
17181         hangs on ms.net, only SendWait() works.
17182         
17183         XplatUIX11.cs
17184         X11Display.cs: Check for valid window handle.
17186 2007-01-03  Jackson Harper  <jackson@ximian.com>
17188         * TextControl.cs: Need to prevent wrap calculations when replacing
17189         text (this was there before i removed it accidently).
17190         - Don't update the cursor during the positioning, just set it to
17191         selection_start at the end of the operaion.
17193 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17195         * Control.cs:
17196         * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
17197         
17198 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17200         * MonthCalendar.cs: Added Click and DoubleClick events again,
17201         but this time they only hide Control's Click and DoubleClick.
17202         
17203 2007-01-03  Gert Driesen  <drieseng@users.sourceforge.net>
17205         * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
17206         System.Drawing assembly. Spaces to tabs. Removed extra tabs.
17208 2007-01-02  Jackson Harper  <jackson@ximian.com>
17210         * TextBoxBase.cs: We move the caret with the split now, so we
17211         don't need to explicitly move the caret after splitting.  This
17212         fixes the caret bumping down an extra line on Enter.
17214 2007-01-02  Miguel de Icaza  <miguel@novell.com>
17216         * ContainerControl.cs: Add AutoValidateChanged event (for PDN
17217         2.72). 
17219         * ScrollableControl.cs: Add Scroll event.
17221 2007-01-02  Mike Kestner  <mkestner@novell.com>
17223         * ListView.cs: one more try with help from georgegiolfan@yahoo.com 
17224         to fix all hdr height padding codepaths.  Fixes #80207.
17226 2007-01-02  Chris Toshok  <toshok@ximian.com>
17228         * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
17229         setting it to the Control defaults anyway, and it being after the
17230         Dock set was screwing up layout.
17231         (set_Dock): don't short circuit out of setting base.Dock.  Also,
17232         no need to call UpdateStatusBar here, as it'll be re-layed out if
17233         it needs to be.
17235 2007-01-02  Mike Kestner  <mkestner@novell.com>
17237         * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
17238         to header height for width == -1. Fixes the rest of #80207.
17240 2007-01-02  Mike Kestner  <mkestner@novell.com>
17242         * ListView.cs: rework the mouse event forwarding everaldo added
17243         to translate the coordinates to the parent control not
17244         raise the parent events until after we've done our work. Hover
17245         needs more work, in the case where HoverSelection is on, because
17246         the item control receives more than one MouseHover per Enter
17247         event, so we need to ensure only the "first" hover gets forwarded.
17248         Opening a minor bug for that.
17250 2007-01-02  Gert Driesen  <drieseng@users.sourceforge.net>
17252         * CheckedListBox.cs: Fixed SelectionMode to match MS.
17253         * ListControl.cs: Implemented AllowSelection property. Removed extra
17254         tabs.
17255         * ListBox.cs: Implemented AllowSelection property.
17257 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
17259         * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
17260         SelectedItem, it prevent for errors when you must disable item
17261         before perform click. Fixes #80409.
17263 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
17265         * MenuAPI.cs: Prevent second level and beyond submenus to close
17266         until first level when move out side of popup.
17267         
17268 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
17270         * MenuAPI.cs:
17271         - Down submenu positin in three pixels.
17272         - Closes sub menu when mouse leaves from menu. Fixes #80402.
17274 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
17276         * ThemeWin32Classic.cs:
17277         - Fix popup menu size adding one pixel on the top.
17278         - Down menu item border from two to one to mimic Win32.
17279         - Some source identation fixes. 
17281 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
17283         * ThemeWin32Classic.cs: Use float numbers to calculate size and
17284         position of menu arrows, it fix wrong arrow size.
17286 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
17288         * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
17289         instead of line, it simplify draw operation and fix it using 3D
17290         borders to mimic Win32.
17292 2007-01-01  Jonathan Pobst  <monkey@jpobst.com>
17294         * StatusStrip.cs: Add implementation of the sizing grip.
17296         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
17297         StatusStrip rendering.
17299 2006-12-31  Chris Toshok  <toshok@ximian.com>
17301         * ToolBar.cs: don't assign to dock_style in the .ctor.  it doesn't
17302         override the layout style (anchor/dock) of the control.  assign to
17303         Dock instead.  Fixes bug #80416.
17305         * ToolStrip.cs: same.
17307 2006-12-31  Andreia Gaita  <avidigal@novell.com>
17309         * ContainerControl.cs: Use ContainerSelected flag to check if 
17310         a Container is directly selected, or if Select is called on a 
17311         non-container. If a container is directly selected, focus events 
17312         should not be raised.
17313         Apply #80411 patch to throw exception on set_ActiveControl if 
17314         control is the same as the current one.
17315         
17316         * Control.cs: Use ContainerSelected flag (see above).
17317         Add invalidation check to raise event but not invalidate if 
17318         dimensions are 0.       
17319         Apply #80411 patch.
17320         
17322 2006-12-31  Everaldo Canuto  <everaldo@simios.org>
17324         * MenuAPI.cs: After click, dont close popup menu when menu is
17325         ContextMenu. Fixes #80399.
17327 2006-12-30  Chris Toshok  <toshok@ximian.com>
17329         * ContainerControl.cs: make sure we throw the exception if the
17330         container control doesn't contain the control we're setting
17331         ActiveControl to.
17333 2006-12-30  Chris Toshok  <toshok@ximian.com>
17335         * Control.cs (SetTopLevel): fix the exception raised by
17336         SetTopLevel for child controls.
17337         (set_Anchor): call UpdateDistances when setting the anchor type.
17338         This fixes bug #80336.
17340 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
17342         * Theme.cs: For now, revert back to 8pt font.
17344 2006-12-29  Everaldo Canuto  <everaldo@simios.org>
17346         * MenuAPI.cs: Set popup as active when open a ContextMenu. 
17347         Fixes #80395.
17349 2006-12-29  Chris Toshok  <toshok@ximian.com>
17351         * Control.cs: reorder the code in OnResize to give the same event
17352         ordering as MS.
17354 2006-12-29  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17356         * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
17357         TileHorizontally and TileVertically.
17358         
17359 2006-12-29  Alexander Olk  <alex.olk@googlemail.com>
17361         * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
17362         FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
17363         SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
17364         Corrected copyright and email adress.
17366 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
17368         * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
17369         of Exception in FullPath property if no TreeView is associated with
17370         the TreeNode.
17372 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
17374         * Theme.cs: Marked default_font as private, and initialize it in ctor
17375         with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
17376         on 2.0 profile.
17377         * ThemeGtk.cs: Removed default_font intialization.
17378         * ThemeWin32Classic.cs: Removed default_font initialization.
17380 2006-12-28  Chris Toshok  <toshok@ximian.com>
17382         * Control.cs: fix a couple of place where we were creating handles
17383         more aggressively than we should be.  Fixes ControlRefresh unit
17384         tests.
17386 2006-12-28  Chris Toshok  <toshok@ximian.com>
17388         * Control.cs: contrary to what the comment said, Control.Dock does
17389         not supercede Control.Anchor - the last one you assign to decides
17390         the layout behavior.  so we need to keep track of which was the
17391         last set.  Also, fix some of the affected property arguments in
17392         PerformLayout calls, and remove an redundant parent.PerformLayout
17393         call in OnResized.
17395         Add a VisibleInternal property, which returns is_visible.  We
17396         can/should get rid of all the usage of this field elsewhere.
17398 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17399         
17400         * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
17401         control style, not DoubleBuffer. Added UseDoubleBuffering property
17402         that indicates whether doublebuffering is enabled and supported.
17403         (comment from and code based on Gert Driesen's patch in #80324).
17404         Fixes #80324.
17406 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17407         
17408         * Control.cs: Fixed a NRE.
17410 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17412         * TrackBar.cs: Fix SmallChange and LargeChange exceptions
17413         for 2.0.
17415 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17417         * Control.cs: Rewrote double buffering, now a seperate
17418         class handles all the buffering, no Graphics is disposed of
17419         until the painting is finished (earlier implementation 
17420         would crash if the control was resized in the OnPaint, 
17421         since it would cause the double buffer to be recreated
17422         and the old one disposed), a separate Graphics is 
17423         created for every paint (MS behaviour and anyways the state
17424         of the Graphics would have to be saved and restored otherwise)
17425         
17426         * XplatUIDriver.cs: 
17427         * XplatUIX11.cs:
17428         * XplatUI.cs: Added and implemented GetOffscreenGraphics 
17429         so that we can get the graphics for the back buffer without
17430         having to create a new one and remove the offscreen_dc parameter
17431         from CreateOffscreenDrawable and DestroyOffscreenDrawable.
17432         
17433 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17435         * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
17436         Also make virtual all the key-related methods.
17438         * ListViewItem.cs: Make virtual the key related methods for
17439         ListViewSubItemCollection.
17441 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17443         * ListView.cs:
17444         * ListViewItem.cs:
17445         * ThemeWin32Classic.cs:
17446         * Theme.cs: Initial support for Tile view in ListView,
17447         as well as the implementation of the required bits for it (Item
17448         and Subitem).
17450 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
17452         * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
17453         of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
17454         Provide useful exception messages.
17456 2006-12-27  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17458         * TrackBar.cs: Remove a warning.
17459         * MonthCalendar.cs: Moved back to using Capture to hide the calendar
17460         when used by DateTimePicker, fixes #80287. This also requires that 
17461         MonthCalendar implements it's own drawing for the yearly updown control,
17462         otherwise the Capture tracking would be too complicated. Removed the Click 
17463         and DoubleClick events (according to comments they were hiding the base class
17464         event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
17465         raise these events, not that they cannot be raised. It is possible to raise 
17466         them by calling OnClick and OnDoubleClick). Added two internal fields in 
17467         HitTestInfo in order to track give more tracking info needed by MonthCalendar.
17468         * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
17469         * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
17470         event, no longer needed.
17471         
17472 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
17474         * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
17475         true if new value differs from current value.
17477 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
17479         * Control.cs: ControlCollection.Count must be public. Fixed build of
17480         unit tests.
17482 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
17484         * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
17486 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
17488         * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
17490 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
17492         * Control.cs: Invalidates control including when Width and Height is 
17493         equal zero or is not visible, only Paint event must be care about 
17494         this. Fixes #79913.
17496 2006-12-26  Chris Toshok  <toshok@ximian.com>
17498         * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
17499         more corcompare work.
17501         * DataGridView.cs: fix compiler warning.
17503         * ColumnHeader.cs: some corcompare work, and also take the
17504         opportunity to make the internal fields private.
17506         * ListView.cs: fix the fallout from the above field change.
17508 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
17510         * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
17511         ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
17512         ToolStripTextBox.cs: Fixes to events and corcompare.
17514 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
17516         * ListView.cs: Call owner.OnMousexx event to propagate events from
17517         item to ListView. Fixes #80367.
17519 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
17521         * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
17522         if value is less than one. ItemHeight should not be set to a value
17523         less than 1, and throw ArgumentOutOfRangeException on 2.0 profile. 
17524         Removed extra tabs.
17526 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
17528         * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
17529         * ToolStripStatusLabel.cs: Add Spring for Moma.
17531 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
17533         * DataGridView.cs: Fixed several NullReferenceException in On* methods.
17534         Fixed code formatting. Removed debug code.
17535         * DataGridViewTextBoxEditingControl.cs: Removed debug code.
17537 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
17539         * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
17540         RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
17541         ArgumentOutOfRangeException if ColumnCount is negative. In 
17542         ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
17543         less than 4 or higher than 32768.
17544         * DataGridViewCellStyle.cs: Fixed default value for NullValue.
17545         Fixed FormatProvider to return CurrentCulture unless explicitly set.
17546         Fixed IsFormatProviderDefault to return true if FormatProvider has
17547         not been explicitly set.
17549 2006-12-25  Chris Toshok  <toshok@ximian.com>
17551         * Application.cs: add a couple of 2.0 events.
17553 2006-12-25  Chris Toshok  <toshok@ximian.com>
17555         * Control.cs: fix compiler warning.
17557         * AxHost.cs: corcompare fixes.
17559         * ApplicationContext.cs: corcompare fixes.
17561 2006-12-25  Chris Toshok  <toshok@ximian.com>
17563         * Control.cs: only update dist_right/dist_bottom if the
17564         width/height is > 0.  this fixes anchored controls being resized
17565         smaller until they disappear and then resized larger again.
17567 2006-12-25  Chris Toshok  <toshok@ximian.com>
17569         * Control.cs: a couple of changes.  Remove dist_left and dist_top,
17570         since they're nothing more than X/Left and Y/Top, respectively.
17572         Also, move back to a per-control Bitmap/Graphics for
17573         DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
17574         MT case.  Go with a tiny bitmap though, 1x1, instead of Width x
17575         Height.
17577 2006-12-25  Miguel de Icaza  <miguel@novell.com>
17579         * MessageBox.cs: Implemented overload that takes a new "bool
17580         displayHelpButton" by adding a new internal field "show_help".
17581         When clicked this will raise the HelpRequested on the owner or the
17582         main form. 
17584         From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
17585         From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
17587         * ListView.cs: Add support ColumnWidthChanged and
17588         ColumnWidthChanging. 
17590         Add support for ColumnReordered event.
17591         (ReorderColumn): Add NET_2_0 specific support for cancelling the
17592         reorder.
17594         Very nice codebase!
17596         * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
17598         This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
17600 2006-12-24  Chris Toshok  <toshok@ximian.com>
17602         * GridTablesFactory.cs: 2.0 corcompare work.
17604         * ToolStripContainer.cs: add "override" to
17605         ContextMenuStripChanged, and remove the local event object.
17607         * ToolStripDropDown.cs: same with a couple properties.
17609         * ToolStripPanel.cs: same with AutoSizeChanged event.
17611         * TextBoxBase.cs: add "override" to AutoSizeChanged.
17613         * Form.cs: add the remaining 2.0 events, and do some corcompare
17614         attribute work.
17616         * DateTimePicker.cs: add "new" to padding.
17618         * ButtonBase.cs: use Control's use_compatible_text_rendering.
17620         * ToolStripContentPanel.cs: use base.AutoSizeChanged.
17622         * DataGridView.cs: PaddingChanged is overridden.
17624 2006-12-24  Chris Toshok  <toshok@ximian.com>
17626         * Control.cs: corecompare work here too.
17628         * DataGridViewElement.cs, DataGridView.cs,
17629         DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
17630         DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
17631         DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
17632         DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
17633         work.
17635 2006-12-24  Miguel de Icaza  <miguel@novell.com>
17637         * Control.cs: Switched the error message on the console for a
17638         todo.  A review of the code will have to cope with this anyways
17639         (since its a large feature, it is in our radar) and it was
17640         producing too much output when running PDN.
17642         * ToolStripComboBox.cs: Set the text when the SelectedIndex
17643         changes.  Applications depend on this (PDN 2.72)
17645 2006-12-23  Chris Toshok  <toshok@ximian.com>
17647         * TableLayoutSettings.cs: finish up the corcompare work for this
17648         class.
17650 2006-12-23  Chris Toshok  <toshok@ximian.com>
17652         * Control.cs: make SetImplicitBounds internal, do some futzing
17653         with LayoutEngine so that it's available in 1.1, and remove the
17654         entire duplicated code mess from PerformLayout.  Use
17655         System.Windows.Forms.Layout.DefaultLayout instead.
17657         * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
17659 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
17661         * Form.cs: Add MainMenuStrip property.
17663 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
17665         * Control.cs: Add ContextMenuStrip property and implementation.
17666         Fix ContextMenu implementation to show menu centered on control when
17667         activated using the keyboard instead of showing at screen (0,0).
17669         * ToolStripDropDown.cs: Fix needed overload of Show ().
17671 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
17673         * Menu.cs: Name property added for 2.0 profile.
17674         
17675 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
17677         * Menu.cs: Update information about FindMenuItem, method to be
17678         implemented soon.
17680 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
17682         * MenuAPI.cs: When deselect items deselect also selected subitems.
17683         
17684 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
17686         * MenuAPI.cs: When hides menu set Wnd to null, it prevents
17687         FindSubItemByCoord to found itens that is not active, also an
17688         cheking added to FindSubItemByCoord to search for items only 
17689         in visible popup windows. Fixes #80274.
17691 2006-12-22  Everaldo Canuto  <everaldo@simios.org>
17693         * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
17694         internal property, it be care about change ExStyle. 
17696 2006-12-22  Andreia Gaita  <avidigal@novell.com>
17698         * ContainerControl.cs: set activeControl for parent forms up the 
17699         tree when the new activecontrol is a container.
17700         When validating the active control, if it is a container, also
17701         raise up the validation for it's active control. Fixes #80280
17702         
17703         * Control.cs: Add internal property flag and check to prevent
17704         Focus events from getting raised when Select() is called for
17705         a ContainerControl. There are still too many focus events being
17706         raised at the moment though.
17707         Cleaned up the code a bit.
17709 2006-12-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17711         * Control.cs: Added all missing 2.0 events.and
17712         fixed a couple of corcompare issues.
17713         * TrackBar.cs: Implemented missing 2.0 bits.
17714         * MonthCalendar.cs, 
17715         * DateTimePicker.cs, 
17716         * MdiClient.cs: Fixed some corcompare issues.
17718 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
17720         * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
17721         SplitterPanel.cs: corecompare work.
17723 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
17725         * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
17726         Clean up warnings for BackgroundImageChanged and PaddingChanged
17727         events now that they are implemented in Control.cs.
17729 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
17731         * Control.cs: Make sure layout_engine isn't null before using it (2.0).
17732         
17733         * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
17734         TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
17735         of TableLayoutPanel and supporting cast.
17737 2006-12-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17739         * XplatUIWin32.cs: 
17740         - GrabWindow now confines the mouse pointer to the confine window.
17741         - Added Win32ClipCursor and Win32GetClipCursor.
17743         * Control.cs: 
17744         - Added CaptureWithConfine to be able to capture and confine 
17745         mouse pointer.
17746         
17747         * InternalWindowManager.cs: 
17748         - Call CaptureWithConfine instead of Capture if we're an
17749         MdiChild (fixes #79982).
17751 2006-12-21  Chris Toshok  <toshok@ximian.com>
17753         * DataGrid.cs: guard against the initial state of selection, where
17754         selection_start == -1.  make sure we only select from index >= 0.
17755         Fixes bug #80291.
17757 2006-12-21  Chris Toshok  <toshok@ximian.com>
17759         * Control.cs: we don't need to be so draconian with
17760         UpdateDistances, and we thusly don't need to call it before
17761         calling PerformLayout in ResumeLayout.  Fixes bug #80289.
17763 2006-12-21  Daniel Nauck  <dna@mono-project.de>
17765         * ComboBox.cs,
17766         TextBox.cs: Implemented AutoComplete properties.
17768 2006-12-20  Chris Toshok  <toshok@ximian.com>
17770         * DataGridView*.cs: some corecompare work.
17772 2006-12-20  Jackson Harper  <jackson@ximian.com>
17774         * XplatUIX11.cs: We need to hide the caret when deleting it,
17775         otherwise you get carets left lying around everywhere.
17776         * TextBoxBase.cs: Kill then redraw the caret when scrolling.  This
17777         prevents getting some weird half drawn caret tracers when
17778         scrolling.
17779         * TextControl.cs: Attempt to reduce the number of times we need to
17780         recreate the caret.
17782 2006-12-20  Gert Driesen  <drieseng@users.sourceforge.net>
17784         * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
17786 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17788         * DateTimePicker.cs:
17789         - Implemented missing 2.0 bits.
17790         - Changed some default values to match MS.
17791         
17792 2006-12-20  Jackson Harper  <jackson@ximian.com>
17794         * TextBoxBase.cs: When changing the font across the document we
17795         can't recalculate after changing each line, since that will cahnge
17796         the line count.
17797         - PreferredHeight is a little different than i thought.
17798         - When backspacing, move the caret before we do the actual char
17799         delete, because when that delete crosses a wrap boundary the
17800         positional information will change.
17802 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17804         * Control.cs: Added some missing 2.0 bits: 
17805         BackgroundImageLayout, BackgroundImageLayoutChanged, 
17806         OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and 
17807         add IBindableComponent and IDropTarget implementation.
17808         
17809         * MonthCalendar.cs: 
17810         - Added all missing 2.0 features:
17811         BackgroundImageLayout, RightToLeftLayout, 
17812         OnHandleDestroyed, RightToLeftLayoutChanged, 
17813         BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
17814         PaddingChanged.
17815         - Rewrote all the BoldDate code, it was completely broken.
17816         - Fixed all the tests (the tests can now be re-enabled, the
17817         problems were not with the tests, but with the control, it was
17818         mostly broken).
17819         
17820         * DateTimePicker.cs: Changed the location where the 
17821         MonthCalendar is shown.
17822         
17823 2006-12-19  Chris Toshok  <toshok@ximian.com>
17825         * DataGridView.cs: add IDropTarget implementation.
17827         * ToolStripPanel.cs: add IDropTarget implementation.
17829 2006-12-19  Jackson Harper  <jackson@ximian.com>
17831         * TextControl.cs: soft now means something different than what it
17832         used to mean, we want to move the caret regardless of whether or
17833         not this break was soft (would we really have wanted the caret
17834         to not move with the break in the old context?)
17835         * TreeView.cs: Make sure we factor in the vert scrollbar when
17836         calculating the horizontal scrollbar's maximum.
17838 2006-12-19  Andreia Gaita  <avidigal@novell.org>
17840         * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
17841         check for keywords in alternate casing, close bug #80049.
17843 2006-12-19  Chris Toshok  <toshok@ximian.com>
17845         * ToolStripItem.cs: add the implementation of the 4 IDropTarget
17846         methods (which all do nothing).
17848         * IDropTarget.cs: add the 4 missing methods.
17850 2006-12-19  Chris Toshok  <toshok@ximian.com>
17852         * TableLayoutRowStyleCollection.cs: corcompare work.
17853         
17854         * TableLayoutSettings.cs: same.
17856         * TableLayoutStyle.cs: same.
17858         * TableLayoutColumnStyleCollection.cs: same.
17860 2006-12-19  Jonathan Pobst  <monkey@jpobst.com>
17862         * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
17863         TableLayoutPanel I've had in my local tree for way too long.
17865 2006-12-19  Miguel de Icaza  <miguel@novell.com>
17867         * TableLayoutSettings.cs: Finish the public API (still needs all
17868         the logic to update on changes). 
17870         * TableLayoutPanelCellPosition.cs: new file.
17871         
17872         * TableLayoutRowStyleCollection.cs,
17873         TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
17874         TableLayoutSettings.cs: Track the final 2.0 table api.
17876 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17878         * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
17879         and Image List 2.0 members for ColummnHeader.
17880         * ListView.cs: Add key-related 2.0 methods for
17881         ColumnHeaderCollection.
17883 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
17885         * ListViewItem.cs: Changed AddRange overloads to match MS: throw
17886         ArgumentNullException if items argument is null. Ignore null item in
17887         arrays. Removed extra tabs.
17889 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
17891         * MonthCalendar.cs: Fixed InvalidCastException.
17893 2006-12-19  Jackson Harper  <jackson@ximian.com>
17895         * TextControl.cs: Don't increment the position here.
17896         - When calculating char positions only add in the line break size
17897         for hard line breaks.
17899 2006-12-19  Andreia Gaita  <avidigal@novell.org>
17901         * SendKeys.cs: Changed some things to match ms.net behaviour
17902         when parsing shifted capital letters.
17903         
17904         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX: 
17905         Add window handle as parameter to SendInput. X11 needs the 
17906         window handle, and the handle being passed      to it in the keys 
17907         queue is the active control handle (which windows needs), not 
17908         the window handle.
17909         
17910         XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput 
17911         to support SendKeys on X.       
17912         
17913         * X11Keyboard: Implement helper method to lookup a linux keycode
17914         given the virtual keycode. Added table of keycode-2-virtualkey
17915         values to support this.
17917 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17919         * ListView.cs: Add support for SelectedIndexCollection
17920         and SelectedItemCollection 2.0 methods. Implement support
17921         for ImageKey too.
17922         * ListViewItem.cs: Add support for ListViewSubItemCollection
17923         2.0 methods. Also, fix an incorrect behavior of AddRange method
17924         (it shouldn't call Clear).
17925         * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
17927 2006-12-19  Jackson Harper  <jackson@ximian.com>
17929         * RichTextBox.cs: 
17930         * TextBoxBase.cs: New args for FormatText
17931         * TextControl.cs: Rewrote the main drawing method, this version
17932         feels a little easier to understand and debug to me.  Hopefully it
17933         does to others also
17934         - Fix FormatText to OR in the new formating values.  Added
17935         FormatSpecified param, basically this works in the same way as
17936         BoundsSpecified in Control.
17937         - Set the caret properties when the caret is positioned.
17938         - When wrapping text make sure that we calculate the width of the
17939         last character
17940         - when calculating alignments we might have wrapped down to the
17941         next line, so don't search for an individual tag, search for the
17942         end of the line
17943         - We need to invalidate the selection area when we replace the
17944         selection.
17945         
17946 2006-12-19  Daniel Nauck  <dna@mono-project.de>
17948         * Application.cs: add Restart () 2.0 support
17950 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
17952         * MenuItem.cs: Invalidate menu item rectangle after change Enable
17953         property. Fixes #80268.
17954         
17955 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
17957         * MenuAPI.cs: Dont trigger select event when closes top menu
17958         item. Fixes #80270.
17960 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
17962         * MenuAPI.cs: When you click on menuitem only trigger onselect
17963         event for top menu itens. Fixes #80271.
17964         
17965 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17967         * MdiWindowManager.cs: Make IconicBounds depend on
17968         the bottom of MdiClient, not the top (fixes #80267)
17969         
17970 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17972         * MdiClient.cs: Added missing 2.0 attribute
17974 2006-12-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17976         * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
17977         as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
17979 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
17981         * MenuAPI.cs: Fix click when menuitem is not popup,
17982         this regression was caused by last commit (#80272).
17984 2006-12-17  Everaldo Canuto  <everaldo@simios.org>
17986         * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
17987         fire click event or close menu. Fixes #80272.
17989 2006-12-17  Daniel Nauck  <dna@mono-project.de>
17991         * ListViewHitTestInfo.cs: add
17993 2006-12-17  Daniel Nauck  <dna@mono-project.de>
17995         * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
17996         * FlatButtonAppearance.cs: add
17997         * DockingAttribute.cs: add
17999 2006-12-17  Chris Toshok  <toshok@ximian.com>
18001         * DataGrid.cs: hook up MetaDataChanged event on the list manager,
18002         and rebind our columns when it does - this way, if you make
18003         changes to the DataTable (or set the Table attribute on a DataView
18004         after setting it as the DataGrid's DataSource, the changes are
18005         made visible.)  Fixes bug #80107.
18007 2006-12-17  Daniel Nauck  <dna@mono-project.de>
18009         * ListViewGroup.cs: add internal Location property for layouting.
18010         * Theme.cs: add abstract ListViewGroupHeight function.
18011         * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
18013 2006-12-16  Andreia Gaita  <avidigal@novell.com>
18015         * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
18016         Added reset of selected index to 0 when adding first tab page.
18017         Fixes #80264
18018         
18019         * NumericUpDown.cs: Fix NET_2_0 check
18021 2006-12-16  Daniel Nauck  <dna@mono-project.de>
18023         * ListViewGroup.cs: fixed DefaultValueAttribute value
18025 2006-12-16  Daniel Nauck  <dna@mono-project.de>
18027         * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
18029 2006-12-15  Miguel de Icaza  <miguel@novell.com>
18031         * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
18032         TextBoxBase.cs, ListView.cs, ContainerControl.cs,
18033         ScrollableControl.cs: Add a handful of methods that are
18034         overwritten in 2.0 
18036 2006-12-15  Chris Toshok  <toshok@ximian.com>
18038         * XplatUIWin32.cs: initial implementation of the Reversible
18039         drawing functions.  there are some problems.  DrawReversibleFrame
18040         doesn't seem to work at all for Dashed FrameStyle, and in the
18041         Thick case there are drawing errors at the corners (we probably
18042         need to bind Rectangle instead of doing moveto/lineto's.)
18044 2006-12-16  Andreia Gaita  <avidigal@novell.com>
18045         
18046         * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput, 
18047         to send blocks of key messages. Send accumulates keys to send with Flush, 
18048         while SendWait sends all keys immediately.
18049                 
18050         * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, 
18051         XplatUIX11.cs,  XplatUIX11-new.cs:
18052         - Define SendInput and stubs for OSX and X11, implements Win32 with a call
18053         to Win32 SendInput.
18054         - Added INPUT support structures to XplatUIWin32 for Win32SendInput
18055         
18056         Tests:  It seems ms.net is hooking the keyboard to implement this, so doing unit
18057         testing for ms.net on this class is very tricky, as the tests run too fast 
18058         to allow the hook to release, essentially freezing the keyboard and the 
18059         test. So, barring a win32 miracle, they'll be commited in the ms-notworking     
18060         category :p
18062 2006-12-16  Daniel Nauck  <dna@mono-project.de>
18064         * Padding.cs: fixed serialization compability to MS ("_var" field names),
18065                         added missing attributes.
18067 2006-12-15  Daniel Nauck  <dna@mono-project.de>
18069         * ListViewGroup.cs: Added missing attributes.
18070         * ListViewGroupCollection.cs: Added missing attributes.
18072 2006-12-15  Daniel Nauck  <dna@mono-project.de>
18074         * ListViewItem.cs: fixed ListViewSubItem text property.
18076 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18077         
18078         * Control.cs: Added missing 2.0 attributes
18079         
18080 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18081         
18082         * MdiClient.cs: Added missing 2.0 attribute.
18083         * MonthCalendar.cs: Added some missing 2.0 attributes 
18084         and properties.
18085         
18086 2006-12-15  Daniel Nauck  <dna@mono-project.de>
18088         * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
18090 2006-12-15  Jonathan Pobst  <monkey@jpobst.com>
18092         * MainMenu.cs: Add the new 2.0 constructor to help out people
18093         using the MainMenu in VS2005.
18095 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18096         
18097         * MdiChildContext.cs: Removed it, no longer used.
18098         * MdiClient.cs: Added missing 2.0 attributes.
18099         
18100 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18101         
18102         * InternalWindowManager.cs: Fix a NullRef with previous 
18103         changes for toolwindows.
18104         
18105 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18107         * Control.cs: 
18108         - Added AfterTopMostControl to allow for certain controls 
18109         to always stay on top when normal controls are brought to 
18110         front.
18111         
18112         * XplatUIWin32.cs: 
18113         - (DrawInversibleRectangle): Get window rectangle from Win32 
18114         in stead of from control, since Win32 doesn't calculate
18115         screen coords correctly from control's Location if it 
18116         have docked siblings.
18117         
18118         * MdiWindowManager.cs:
18119         - Correct the control menu popup location when clicked on
18120         the maximized form icon. (fixes #80223.1)
18121         - Don't show moving rectangle if mouse hasn't moved from
18122         the original clicked point.
18123         - Removed FormGotFocus handler (not used).
18124         - Calculate the control buttons location from the main
18125         window's size and not client size (fixes #79770).
18126         - Form is now closed when the form icon is double-clicked
18127         (fixes #79775). 
18128         - Correct NCCalcSize numbers a little bit (fixes #80223.2)
18129         
18130         * InternalWindowManager.cs:
18131         - Moved some MDI-only methods to MdiWindowManager.
18132         - Removed unused properties and methods.
18133         - Unified method naming for methods handling wm messages.
18134         - Moved all message handling to seperate methods for
18135         each message.
18136         
18137         * ThemeWin32Classic.cs:
18138         - DrawManagedWindowDecorations now draws the title bar 
18139         with a gradient brush.
18140         - Add a CPDrawButtonInternal that allows us to specify
18141         light, normal and dark colors for the buttons (control 
18142         buttons for MDI children were drawn with the same light
18143         color as the background, therefore loosing the 3D effect).
18144         
18145         * SizeGrip.cs:
18146         - Add a CapturedControl property that is used to 
18147         determine the control to resize (defaults to parent). 
18148         Needed for MdiClient, since its SizeGrip's parent is
18149         MdiClient, but the control to resize is the main form.
18150         
18151         * MdiClient.cs:
18152         - Set SizeGrip's CapturedControl to the main form in order
18153         to resize the main form and not the MdiClient.
18154         - Override AfterTopMostControl to leave the scrollbars 
18155         always on top.
18157 2006-12-15  Daniel Nauck  <dna@mono-project.de>
18159         * ListView.cs: fixed ListViewItemCollection AddRange and
18160                         implemented ListViewItemCollection AddRange 2.0 support.
18162 2006-12-15  Daniel Nauck  <dna@mono-project.de>
18164         * ListViewGroup.cs: Add.
18165         * ListViewGroupCollection.cs: Add
18166         * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
18167         * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
18168                                 stub for ImageKey 2.0 support.
18170 2006-12-14  Mike Kestner  <mkestner@novell.com>
18172         * ListView.cs: add text padding to the autocalculation for columns
18173         of width -2.  Fixes #80207.
18175 2006-12-14  Mike Kestner  <mkestner@novell.com>
18177         * ListView.cs: add some index guarding for partial row navigation 
18178         logic.  Fixes #80250.
18180 2006-12-14  Mike Kestner  <mkestner@novell.com>
18182         * ListView.cs: throw ArgumentExceptions when parented ListViewItems
18183         are added or inserted to the collection.  Fixes #81099.
18185 2006-12-13  Everaldo Canuto  <everaldo@simios.org>
18187         * MenuAPI.cs: Closes menu when right click out side of popup
18188         it fix problem in ContextMenu and MainMenu. Fixes #80252.
18190 2006-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18192         * ListViewItem.cs: Fix dumb error.
18194         * ListView.cs: Add Find and ContainsKey methods in 
18195         ListViewItemCollection, and also return true for IsReadOnly
18196         and IsFixedSize (changes for 2.0). 
18198 2006-12-13  Gert Driesen  <drieseng@users.sourceforge.net>
18200         * Control.cs: Allow Region to be set to null.
18202 2006-12-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18204         * MdiWindowManager.cs: Remove unused (commented out) code.
18205         * Form.cs: When the MdiChild is maximized, the form needs 
18206         WM_NCMOUSELEAVE, so request it.
18207         * InternalWindowManager.cs: 
18208         - Added tooltips to control buttons.
18209         - Removed duplicated control button handling code.
18210         - Removed unused (commented out) code.
18211         
18212 2006-12-12  Everaldo Canuto  <everaldo@simios.org>
18214         * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor 
18215         was used because we must set cursor without trigger ChangeCursor event
18216         and without change Cursor control property. Fixes #79963.
18218 2006-12-12  Andreia Gaita  <avidigal@novell.com>
18219         
18220         * Control.cs: Check if Region setter value is null, and ignore
18222 2006-12-12  Jackson Harper  <jackson@ximian.com>
18224         * TextControl.cs: We were almost always drawing one more line then
18225         needed, since the GetLineByPixel will return the last line found
18226         at that pixel. In most cases though, we were invalidating up to
18227         the junction between two lines.
18228         - Improve debug code.
18230 2006-12-12  Chris Toshok  <toshok@ximian.com>
18232         * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
18233         and FillReversibleRectangle.
18235         * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
18236         and FillReversibleRectangle.
18238         * XplatUIWin32.cs: add stubs which do nothing for
18239         DrawReversibleFrame, DrawReversibleLine, and
18240         FillReversibleRectangle.
18242         * XplatUIOSX.cs: add stubs which raise NIE for
18243         DrawReversibleFrame, DrawReversibleLine, and
18244         FillReversibleRectangle.
18246         * XplatUIX11.cs: add working implementation for
18247         DrawReversibleFrame, DrawReversibleLine, and
18248         FillReversibleRectangle.
18249         
18250         * ControlPaint.cs: implement DrawReversibleFrame,
18251         DrawReversibleLine, and FillReversibleRectangle, by calling into
18252         the appropriate XplatUI method.
18254 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18256         * Form.cs: Make MdiClient have the focus even if it's
18257         not selectable, since it should receive WM_KEY* and WM_MOUSE 
18258         messages. Fixes #79907.
18259         
18260 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18262         * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
18263         queried after the window is created.
18264         
18265         * XplatUIX11.cs: Added SendParentNotify to implement 
18266         WM_PARENTNOTIFY logic. Fixes #79965.
18267         
18268         * Control.cs: Added MakeParam.
18269         
18270 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18272         * MdiClient.cs: Resume Layout before setting window
18273         states (fixes #80201).
18275 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18277         * MenuAPI.cs: Deselect a menu item after performing
18278         the click (fixes #80197).
18280 2006-12-11  Jackson Harper  <jackson@ximian.com>
18282         * TextBoxBase.cs: We need to cap this value, since Maximum -
18283         ViewPortHeight can be less than zero.
18284         - Only do selection with the left mouse button.
18285         * TextBox.cs: Don't tell the world that we have a context menu.
18286         * Control.cs: New method so that we can control whether or not the
18287         context menu is visible outside MWF.
18289 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
18291         * ToolBarButton.cs: Fix text positon. 
18293 2006-12-11  Miguel de Icaza  <miguel@novell.com>
18295         * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
18297         * Control.cs (DoubleBuffered): Add implementation.
18299         * Application.cs (OpenForms): Add.
18301 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
18303         * Form.cs: Use opacity instead of Opactiy to determine if we need
18304         to set the WS_EX_LAYERED bit.  [Fixes bug #80185]
18306 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
18308         * Control.cs: Fix NRE if Control.Site was set to null.
18310 2006-12-11  Chris Toshok  <toshok@ximian.com>
18312         * Control.cs: ControlCollection.Remove should return if the arg is
18313         null, and ControlCollection.SetChildIndex should raise a ANE.
18315 2006-12-11  Gert Driesen  <drieseng@users.sourceforge.net>
18317         * Control.cs: Verify value set for Dock property. Code formatting
18318         updates.
18320 2006-12-11  Jackson Harper  <jackson@ximian.com>
18322         * TextControl.cs: Draw the caret and the selection when a flag is
18323         set on the owner.
18324         * TextBoxBase.cs: We want to draw the caret and the selection for
18325         TextBox but not for TextBoxBase.
18326         - If the window is resized and scrolling is no longer needed (the
18327         whole doc is visible) set the scroll position to zero.
18328         - The default SelectWord (the one TextBox uses) should move the
18329         caret to the end of the word.
18330         - SelectAll moves the caret to the end of the selection.
18331         * TextBox.cs: We don't selectall on focus, we just do it when the
18332         control is created.
18333         
18334 2006-12-11  Mike Kestner  <mkestner@novell.com>
18336         * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
18338 2006-12-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18340         * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer 
18341         2.0 support.
18342         * ListViewItem.cs: Add Name 2.0 property.
18344 2006-12-11  Andreia Gaita  <avidigal@novell.com>
18346         * TabControl.cs: Set visibility on selected or default tab 
18347         when tabcontrol handle is created, so that it's contents
18348         actually show up (duh). Fixes #80193
18349         Don't redraw the control if there is no handle created, as
18350         the selected index might be completely invalid. Added some tests
18351         to check for this.
18353 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
18355         * ToolBar.cs: Uses maximun width and height of all buttons as 
18356         button rectangle when ButtonSize specified, it looks strange but
18357         is what happens in Win32. Fixes #80189.
18359 2006-12-11  Jackson Harper  <jackson@ximian.com>
18361         * TextControl.cs: Need to track undo levels ourself, since
18362         compound actions will mess them up.
18364 2006-12-10  Andreia Gaita  <avidigal@novell.com>
18366         * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
18367         SelectedIndex value is changed (even if it's not valid).
18368         Reset SelectedIndex to 0 when the handle is created and if
18369         the current index is invalid.
18370         Fixes SelectdeIndex unit tests and #80128
18372 2006-12-08  Chris Toshok  <toshok@ximian.com>
18374         * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
18375         calls EndEdit, it needs to be called before we set current_cell to
18376         its new value.  Otherwise, we end up committing the value in the
18377         textbox to the new cell as well.  Fixes bug #80160.
18379 2006-12-08  Chris Toshok  <toshok@ximian.com>
18381         * Form.cs (set_CancelButton): if the button's DialogResult is
18382         None, set it to Cancel.  Fixes bug 80180.
18384 2006-12-08  Jackson Harper  <jackson@ximian.com>
18386         * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
18387         to watch ourselves when setting the canvas size and setting the
18388         scrollbar values.
18390 2006-12-08  Chris Toshok  <toshok@ximian.com>
18392         * DataGrid.cs: comment out the two MakeTransparent calls for the
18393         time being so people using trunk (and not 1.2.2) on windows can
18394         actually use the datagrid.  This deals with bug #80151.
18396 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
18398         * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
18399         Graphics.DrawImage (image, int, int, int, int) overload instead
18400         of Graphics.DrawImage (image, int, int).  GDI+ can't figure out
18401         the dpi difference and was blurring images it drew.
18402         [Fixes bug #79960]
18404 2006-12-08  Chris Toshok  <toshok@ximian.com>
18406         * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
18407         rowcnt is 0 (such as with an empty datasource), and make sure we
18408         initialize not_usedarea.Y to cells.Y, so we don't draw over the
18409         other areas (caption, parent row, etc, etc).  Fixes bug #80095.
18411 2006-12-08  Chris Toshok  <toshok@ximian.com>
18413         * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
18414         grid.
18416 2006-12-08  Chris Toshok  <toshok@ximian.com>
18418         [ Fixes bug #80167 ]
18419         
18420         * ThemeWin32Classic.cs: don't draw the image if the button's flat
18421         style is FlatStyle.System.
18423         * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
18424         ButtonBase.flat_style private, and switch uses of it to the public
18425         property.
18426         
18427 2006-12-08  Chris Toshok  <toshok@ximian.com>
18429         [ Fixes bug #80121 ]
18430         
18431         * ThemeWin32Classic.cs: center the caption text in the datagrid
18432         when we draw it.
18434         * DataGrid.cs: lessen the amount we add to the caption height from
18435         6 to 2.  6 was making it huge.
18437 2006-12-08  Andreia Gaita  <avidigal@novell.com>
18439         * UpDownBase: Handle MouseWheel call directly instead of capturing
18440         the inner textbox's OnMouseWheel. Fixes #80166
18442 2006-12-08  Jackson Harper  <jackson@ximian.com>
18444         * TextControl.cs: We need to invalidate the textbox when we empty
18445         it (how had this not been discovered before?)
18447 2006-12-08  Jackson Harper  <jackson@ximian.com>
18449         * TextBoxBase.cs: Reworked the mouse down code so I could get it
18450         to behave like MS, we now ignore the eventargs.Click and just
18451         track state ourself, which we were already doing anyways.
18452         - Constrain the double click handler to the double click size.
18453         
18454 2006-12-08  Chris Toshok  <toshok@ximian.com>
18456         * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
18457         direction if that scrollbar isn't shown.  fixes bug #80158.
18459 2006-12-08  Andreia Gaita  <avidigal@novell.com>
18461         * NumericUpDown.cs: Update value on getter. Fixes #79950
18463 2006-12-08  Chris Toshok  <toshok@ximian.com>
18465         * MenuItem.cs: add back in the event cloning code.  I didn't know
18466         how to do it in the face of the EventHandlerList work i'd done
18467         last week.  Fixes bug #80183.
18469 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
18471         * Control.cs: Add an invalidate to the BackgroundImage setter.
18472         [Fixes 80184]
18474 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
18476         * ToolStrip*: Add some small properties reported by MoMA, fix event
18477         firing and default properties based off of unit tests, and add some
18478         attributes based off of the class status page.
18480 2006-12-07  Jackson Harper  <jackson@ximian.com>
18482         * TextBoxBase.cs: Take HideSelection into account when determining
18483         whether or not to show the selection.
18484         * RichTextBox.cs: After inserting the RTF into the document move
18485         the cursor to the beginning of the document.
18487 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
18489         * Control.cs: Remove static ArrayList "controls" which maintained
18490         a reference to every control created.
18491         * Application.cs: Create a static FormCollection to maintain a reference
18492         to every form created.  Use it in places that formerly enumerated through
18493         the controls one looking for forms.
18494         * Form.cs: Add and remove self from above FormCollection.
18496 2006-12-07  Alexander Olk  <alex.olk@googlemail.com>
18498         * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
18499           not libgdk (though it makes me wonder why I didn't have any
18500           problems)
18502 2006-12-07  Chris Toshok  <toshok@ximian.com>
18504         [ you had to know this was coming after that last commit...]
18505         
18506         * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
18507         XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
18508         DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
18509         XCopyArea).
18511 2006-12-07  Chris Toshok  <toshok@ximian.com>
18513         * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
18514         DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
18515         all the behavior we need for double buffering.
18517         * XplatUIDriver.cs: implement the 3 double buffer methods using a
18518         client side Bitmap, just like the old Control-based double buffer
18519         code did.  The methods are virtual, so each XplatUI driver
18520         subclass can replace the implementation to use a faster, platform
18521         specific approach.
18523         * Control.cs: make use of the 3 Offscreen XplatUI calls in the
18524         double buffer code, and clean things up a bit in the process.
18526 2006-12-06  Chris Toshok  <toshok@ximian.com>
18528         * Control.cs: reindent WndProc.
18530 2006-12-06  Chris Toshok  <toshok@ximian.com>
18532         [ I wanna be like BenM when I grow up ]
18533         
18534         * Hwnd.cs: create a single static Graphics object on the static
18535         Bitmap we create.  use this for our text measurements.
18537         * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
18538         This was causing us to allocate a backbuffer for every control,
18539         even when it wasn't flagged as double buffered.  Instead use the
18540         single graphics instance.  This might have implications for
18541         multithreaded applications.  If we run into problems we can switch
18542         to creating 1 Graphics per control, on the static Hwnd bitmap.
18544         this change nets us a 7M savings in private dirty mappings when
18545         running FormsTest.exe.
18547 2006-12-06  Chris Toshok  <toshok@ximian.com>
18549         * ListView.cs: the BackgroundImage override is just to set
18550         attributes.  chain up to base.BackgroundImage.
18552         * RichTextBox.cs: same.
18554         * ToolBar.cs: same, but we need to also redraw the toolbar when it
18555         changes, so instead a handler for BackgroundImageChanged.
18556         
18557         * Control.cs: make background_image private.
18559 2006-12-06  Chris Toshok  <toshok@ximian.com>
18561         * ScrollBar.cs: change the assignment of cursor to Cursor.  not
18562         sure we even need this assignment, but roll with it for now.
18564         * Control.cs: make the cursor field private.
18566 2006-12-06  Chris Toshok  <toshok@ximian.com>
18568         * Form.cs: we don't need to explicitly set ImeMode to
18569         ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
18570         behavior in the face of ImeMode.Inherit.
18572         * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
18573         change the ctor's assignment to use ImeMode instead of ime_mode.
18575         * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
18576         ImeModeInherit.  Only check for the parent's imemode (and return
18577         NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
18578         This fixes the button unit test, which sets both ImeMode and
18579         DefaultImeMode to ImeMode.Disable.
18581         also make the ime_mode field private.
18583 2006-12-06  Chris Toshok  <toshok@ximian.com>
18585         * Control.cs: make control_style private.
18587         * TextBoxBase.cs: fix the HandleClick override.  it was explicitly
18588         setting the styles to true, then setting them to false instead of
18589         reverting to their previous values.
18591         also, call SetStyle on the scrollbars instead of using
18592         control_style directly.
18594 2006-12-06  Jonathan Pobst  <monkey@jpobst.com>
18596         * FormCollection.cs: Implement. [2.0]
18598 2006-12-06  Chris Toshok  <toshok@ximian.com>
18600         * Control.cs: make tab_stop private.
18602         * Label.cs: set TabStop, not tab_stop.  reformat some event
18603         add/remove methods to make them more compact.
18605 2006-12-06  Chris Toshok  <toshok@ximian.com>
18607         * RadioButton.cs: fix TabStop handling.
18609 2006-12-06  Chris Toshok  <toshok@ximian.com>
18611         * TextBox.cs: remove the explicit assignments to has_focus.
18612         Control does that.
18614         * ButtonBase.cs: remove the assignment to has_focus.  Control will
18615         manage that.
18616         
18617 2006-12-06  Chris Toshok  <toshok@ximian.com>
18619         * ButtonBase.cs: remove all uses of is_enabled from this code.
18620         it's always true when any of the code containing the checks is
18621         executed.
18623 2006-12-06  Chris Toshok  <toshok@ximian.com>
18625         * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
18626         with different semantics (some are present in both 1.1 and 2.0
18627         profiles) so that we match MS's behavior in our unit tests.
18629 2006-12-06  Jackson Harper  <jackson@ximian.com>
18631         * TextControl.cs: Make this operation undoable.
18632         * TextBoxBase.cs: Factor the border width into the preferred
18633         height.
18634         - implement Modified as per the spec.
18636 2006-12-06  Chris Toshok  <toshok@ximian.com>
18638         * Timer.cs, Control.cs, Menu.cs: make control_tag private.
18640 2006-12-06  Chris Toshok  <toshok@ximian.com>
18642         * Control.cs: make right_to_left and context_menu fields private.
18644 2006-12-06  Chris Toshok  <toshok@ximian.com>
18646         * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
18647         XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
18648         Control.child_controls private.  switch all uses over to
18649         Control.Controls.
18651 2006-12-06  Chris Toshok  <toshok@ximian.com>
18653         * System.Windows.Forms/GroupBox.cs,
18654         System.Windows.Forms/AccessibleObject.cs,
18655         System.Windows.Forms/ErrorProvider.cs,
18656         System.Windows.Forms/Control.cs,
18657         System.Windows.Forms/UpDownBase.cs,
18658         System.Windows.Forms/ScrollBar.cs,
18659         System.Windows.Forms/DateTimePicker.cs,
18660         System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
18661         System.Windows.Forms/ToolTip.cs,
18662         System.Windows.Forms/RadioButton.cs,
18663         System.Windows.Forms/LinkLabel.cs,
18664         System.Windows.Forms/Splitter.cs,
18665         System.Windows.Forms/TextBoxBase.cs,
18666         System.Windows.Forms/ToolStripTextBox.cs,
18667         System.Windows.Forms/ContainerControl.cs,
18668         System.Windows.Forms/ThemeWin32Classic.cs,
18669         System.Windows.Forms/SizeGrip.cs,
18670         System.Windows.Forms/ToolStripDropDown.cs,
18671         System.Windows.Forms/ScrollableControl.cs: Make Control.parent
18672         private.  switch all uses over to Control.Parent.
18674 2006-12-06  Chris Toshok  <toshok@ximian.com>
18676         * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
18677         Control does this before calling emitting these events.
18679         * TabControl.cs: same.
18681         * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
18682         Control.client_rect.
18684         * ButtonBase.cs: use the ClientSize property instead of the
18685         client_size field.
18687         * ScrollableControl.cs: same.
18689         * Control.cs: another pass at making properties private.  also,
18690         move the initialization of tab_stop to the ctor.
18692 2006-12-05  Andreia Gaita <avidigal@novell.com>
18694         * TabControl.cs: Let the selected index be set freely if the 
18695         control handle is not yet created.
18697 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
18699         * Control.cs: Revert dist_top, dist_right, and dist_bottom to 
18700         internal until I can rewrite DefaultLayout.
18701         * ToolStrip.cs: Fix build error and some general cleaning.
18702         * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
18703         Fix build errors caused by making some of Control's fields private.
18705 2006-12-05  Jackson Harper  <jackson@ximian.com>
18707         * TextControl.cs: Redo Insert a little so that it use IndexOf
18708         instead of Split, this prevents it from messing up on things like
18709         \n\n\n. Also more effecient since the split array doesn't need to
18710         be created.
18711         * TextBoxBase.cs: AppendText doesnt handle multiline and non
18712         multiline text differently, this is the first of many fixes that
18713         will make multiline/non-multiline the same thing as far as the
18714         TextBoxBase is concerned.
18715         - Don't split the text and insert lines, this can lose some line
18716         endings (like is the last line a soft or hard break). Instead use
18717         the new Insert.
18718         - Fix an off by one when combining all the lines in the Text
18719         getter.
18720         - Remove separate multiline handling from the Text getter/setter.
18722 2006-12-05  Chris Toshok  <toshok@ximian.com>
18724         * ButtonBase.cs: a few changes:
18726         - don't reinitialize internal Control fields in the ctor when they
18727         have the same values as Control sets them.
18729         - don't set has_focus in OnGotFocus/OnLostFocus.  Control does
18730         this before calling those methods.
18732         - we don't need to call Refresh for anything.  use Invalidate
18733         instead.
18735         - OnEnabledChanged doesn't need to redraw at all - Control.cs
18736         calls Refresh in its OnEnabledChanged.
18737         
18738         - several of the events we were registered for in the ctor to
18739         redraw ourselves already include calls to Invalidate in the
18740         property setters that raise the events.  remove the extra
18741         invalidation.
18743         - reformat a switch statement that was 83274658 columns wide.
18744         
18745 2006-12-05  Mike Kestner  <mkestner@novell.com>
18747         * ComboBox.cs: fix a unit test regression from a TextBox
18748         SelectionLength return of -1 when there's no selection.  
18750 2006-12-05  Chris Toshok  <toshok@ximian.com>
18752         * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
18753         ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
18754         cleaning up some of the internal Control fields being used by
18755         subclasses.
18757 2006-12-05  Mike Kestner  <mkestner@novell.com>
18759         * ComboBox.cs: fix some Simple mode regressions.  Set Visible on the
18760         listbox after AddImplicit calls since it defaults to hidden. Add a 
18761         hack to preserve requested heights across DropDownStyle changes.
18763 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
18765         * PropertyGrid.cs: Hide FindFirstItem method from public API.
18767 2006-12-05  Chris Toshok  <toshok@ximian.com>
18769         * DataGridView.cs: fix compiler warnings.
18771         * PrintControllerWithStatusDialog.cs: same.
18773         * ToolBar.cs: same.
18775         * FolderBrowserDialog.cs: same.
18777         * Splitter.cs: same.
18779         * DataGridViewComboBoxCell.cs: same.
18781         * XplatUIWin32.cs: same.
18783         * PictureBox.cs: same.
18785         * Win32DnD.cs: same.
18787         * PageSetupDialog.cs: same.
18789         * FileDialog.cs: same.
18791         * PrintDialog.cs: same.
18793         * DataGridTextBoxColumn.cs: same.
18795         * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
18797 2006-12-05  Chris Toshok  <toshok@ximian.com>
18799         * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
18800         MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
18801         System.ComponentModel.EventHandlerList work.
18803 2006-12-05  Jonathan Chambers  <joncham@gmail.com>
18805         * DrawTreeNodeEventArgs.cs: Added.
18807 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18808         
18809         * InternalWindowManager.cs: Remove an unused field.
18810         
18811 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18813         * InternalWindowManager.cs:
18814         - Save the point where the title bar is clicked.
18815         
18816         * MdiWindowManager.cs:
18817         - Only allow moving of the window as long as the 
18818         clicked point on the title bar does not get out of
18819         MdiClient's rectangle. Fixes #79982.
18820         
18821         * MdiClient.cs:
18822         - Added Horizontal/VerticalScrollbarVisible.
18823         - Simplified the scrollbar sizing algorithm.
18824         - Cache the difference in scrolled value in
18825         H/VBarValueChanged and move the calculation out
18826         of the for loop.
18828 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18830         * Control.cs: Make the Console.WriteLine in WndProc 
18831         write more info.
18833 2006-12-05  Chris Toshok  <toshok@ximian.com>
18835         * ToolStripManager.cs, ToolStripButton.cs,
18836         ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
18837         ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
18838         ToolStripSplitButton.cs, ToolStripSeparator.cs,
18839         ToolStripRenderer.cs, ToolStripDropDownItem.cs,
18840         ToolStripProgressBar.cs, ToolStripContainer.cs,
18841         ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
18842         to using System.ComponentModel.EventHandlerList.
18844 2006-12-04  Chris Toshok  <toshok@ximian.com>
18846         * LinkLabel.cs: fix up compiler warnings.
18848         * TableLayoutSettings.cs: same.
18850         * TreeView.cs: same.
18852         * ToolBar.cs: same.
18854         * TabControl.cs: same.
18856         * RichTextBox.cs: same.
18858         * ListViewItem.cs: same.
18860         * PropertyGrid.cs: same.
18862         * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
18864         * ToolTip.cs same.
18866         * TextRenderer.cs: fix up compiler warnings.
18868         * Label.cs: same.
18870         * Form.cs: corcompare fixes.
18872         * PictureBox.cs: fix up compiler warnings.
18874         * ImageListStreamer.cs: same.
18876         * TrackBar.cs: corcompare fix.
18878         * Control.cs: fix up compiler warnings.
18880         * SplitterPanel.cs: same.
18882         * NumericTextBox.cs: same.
18884         * ImageList.cs: same.
18886         * StatusStrip.cs: same.
18888         * ProgressBar.cs: corcompare fix.
18890         * ToolStripButton.cs: fix up compiler warnings.
18892         * ToolStripStatusLabel.cs: same.
18894         * ToolStripSplitButton.cs: same.
18896         * ToolStripSeparator.cs: same.
18898         * ToolStripProgressBar.cs: same.
18900         * ToolStripDropDownMenu.cs: same
18902         * ToolStripDropDown.cs: same.
18904         * ToolStripDropDownButton.cs: same.
18906         * ToolStrip.cs: same.
18908         * ToolStripControlHost.cs: same.
18910         * ToolStripContentPanel.cs: same.
18912         * ToolStripDropDown.cs: same.
18914         * ToolStripContainer.cs: same.
18916         * ToolStripPanel.cs: same, and add "new" where we need it to work
18917         with the new ArrangedElementCollection.
18919         * ToolStripItemCollection.cs: add "new" where we need it to work
18920         with the new ArrangedElementCollection.
18922 2006-12-04  Andreia Gaita <avidigal@novell.com>
18924         * TabControl.cs: Fix default tab selection to after TabControl
18925         gets focus and not before. Fixes #80128
18927 2006-12-04  Chris Toshok  <toshok@ximian.com>
18929         * DataGridTableStyle.cs: remove the gross calling of
18930         datagrid.Refresh from here.  It's a broken idea and it doesn't
18931         work anyway.
18933         * DataGrid.cs: instead, just register/unregister from the
18934         DataGridTableStyle events in CurrentTableStyle.  we play it
18935         conservatively and EndEdit + CalcAreasAndInvalidate on any event,
18936         even though some would most likely not require it.  Fixes bug
18937         #80115 (and one portion of #80117 as a side effect).
18939 2006-12-04  Chris Toshok  <toshok@ximian.com>
18941         * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
18942         so the textbox (if any) goes away.  Fixes bug #80117.
18944 2006-12-04  Chris Toshok  <toshok@ximian.com>
18946         * DataGridColumnStyle.cs: set the column's readonly property
18947         initially based on the property descriptor's IsReadOnly.  Fixes
18948         bug #80044.
18950 2006-12-04  Chris Toshok  <toshok@ximian.com>
18952         * ComboBox.cs: wrap the dropdown style changing work in
18953         SuspendLayout/ResumeLayout.  Fixes bug #79968.
18955 2006-12-04  Jackson Harper  <jackson@ximian.com>
18957         * TextBoxBase.cs: Fix off by one, since these are one-based.
18958         * TextBox.cs: Select all the text when we get focus.  The TextBox
18959         does this but the RTB does not.
18961 2006-12-04  Chris Toshok  <toshok@ximian.com>
18963         * DataGridTextBoxColumn.cs: remove some spew.
18965         * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
18966         but some part of me is saying "it shouldn't be here.."  At any
18967         rate, it fixes bug #80046.  Call IEditableObject.EndEdit after
18968         setting the value.
18970 2006-12-04  Chris Toshok  <toshok@ximian.com>
18972         * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
18973         to reassign the propertydescriptor.
18975 2006-12-04  Jackson Harper  <jackson@ximian.com>
18977         * TextBoxBase.cs:
18978         * TextControl.cs: Remove some unused variables.  Maybe this will
18979         patch things up between mike and I.
18980         - don't split lines less then one char wide, if the viewport is
18981         that small text won't be visible anyways.
18982         
18983 2006-12-04  Jackson Harper  <jackson@ximian.com>
18985         * TextBoxBase.cs: Default selection length is -1, need to do some
18986         more testing on windows to see when this is used for the property.
18987         - Redid the Lines [] property to that we properly remove soft line
18988         breaks
18989         - added support for preserving carriage returns
18990         -  CanUndo is not a variable like 'is undo enabled' it just returns
18991         true if there is undo operations available.
18992         - AppendText doesn't need to grab the last tag itself anymore,
18993         this happens automatically when we move the cursor.
18994         * TextControl.cs: Add CompoundActions to the undo class. This
18995         allows combining the other operations into one big option.  ie a
18996         paste will combine { delete old, insert new, move cursor }
18997         - Add InsertString undo operation
18998         - New method for deleting multiline text
18999         - Add carriage returns to lines. So we can preserve carriage
19000         returns when text is 'roundtripped'
19002 2006-12-04  Chris Toshok  <toshok@ximian.com>
19004         * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
19005         minimum 0.  Fixes the scrollbar exception in bug #80136.
19007 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19009         * MdiClient.cs: 
19010         * MdiWindowManager: Removed unused fields and methods.
19011         
19012 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19013         
19014         * StatusBar.cs: Update all panels when a AutoSize=Contents
19015         panel needs updating.
19016         
19017         * StatusBarPanel.cs: Remove twidth and only use initialize.
19018         Fixes #80031.
19019                 
19020 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19022         * Form.cs: When a form's MdiParent is set add it directly
19023         on top of the z-order in stead of relying on MdiClient's
19024         ActivateChild to do it. Fixes #80135.
19025         
19026         * MdiClient.cs: 
19027         - Remove original_order, mdi_child_list is already doing
19028         the same thing.
19029         - Create mdi_child_list on construction in
19030         stead of first use (avoids a few null checks).
19032         * MenuItem.cs: Use an already existing list of mdi children
19033         to get the correct order of children and remove the other
19034         redundant list.
19036 2006-12-04  Chris Toshok  <toshok@ximian.com>
19038         * PropertyGridView.cs: cached_splitter_location is only used in
19039         !DOUBLEBUFFER code.
19041         * PropertyGrid.cs: implement the ComComponentNameChanged event
19042         using Events, hoping that would fix the warning.  Looks like a
19043         compiler bug instead (#80144).
19045         * PropertyManager.cs: remove unused method.
19047 2006-11-04  Everaldo Canuto  <everaldo@simios.org>
19049         * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar, 
19050         include parentesis to fix expression evaluation. Fixes #79634.
19052 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
19053         
19054         * MenuAPI.cs:
19055         - Changes to fix behavior in Menu control, some reported in #80097
19056         and other detected during behavior refactory like a select event
19057         problems.
19058         - Remove unneded "if's" conditions.
19059         - Created an internal to flag when popup is active in control, we need 
19060         it because in .NET you can have menu active but without popup active
19061         when you active menu using popup without visible items.
19062         - Mimic win32 behavior for Select and Popup events.  
19063         - Dont open popup menu when you dont have visible subitems.
19064         - Do nothing when click on disabled menu item.
19065         - Some small changes to follow the coding style guidelines.
19066         - Unselect menu only when another control gives focus. Fixes #80097.
19067         - Remove unused code.
19068         
19069         * MenuItem.cs: internal VisibleItems method to check if menu
19070         theres visible subitems, it will be usefull to fix some 
19071         behavior in Menu control.
19072         
19073 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
19074         
19075         * Timer.cs: Tag property for 2.0 profile.
19076         
19077 2006-12-01  Chris Toshok  <toshok@ximian.com>
19079         [ after removing all warning suppressions, this cleans up over 100 warnings. ]
19080         
19081         * Win32DnD.cs: comment out some unused fields.
19083         * XplatUIWin32.cs: comment out some unused pinvokes, and remove
19084         some unused properties/methods.
19086         * XplatUIX11.cs: fix MousePosition so we override the base class's
19087         property instead of conflicting with it.
19089         * PictureBox.cs: comment out some unused fields
19091         * OSXStructs.cs: make some struct fields public.
19093         * XplatUIOSX.cs: comment out some unused pinvokes, and fix
19094         MousePosition so we override the base class's property instead of
19095         conflicting with it.
19097         * X11Dnd.cs: comment out some unused fields
19099         * X11DesktopColors.cs: fix some struct field visibility to quiet
19100         the compiler.
19102         * X11Dnd.cs: remove some debug code.
19104         * ThemeClearlooks.cs: comment out unused field.
19106         * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
19108         * ThemeGtk.cs: comment out some unused pinvokes.
19110         * Timer.cs: remove some unused fields.
19112         * ThemeClearlooks.cs: comment out unused field.
19114         * UpDownBase.cs: comment out unused field.
19116         * DataObject.cs: comment out unused field.
19118         * DataGridBoolColumn.cs: reomve unused field.
19120         * DataGrid.cs: remove unused field.
19122         * Cursor.cs: remove old ToBitmap code.
19124         * ControlPaint.cs: remove unused method.
19126         * ScrollBar.cs: remove unused fields.
19128         * ComboBox.cs: remove unused field, and chain up to
19129         AccessibleObject ctor.
19131         * ListBox.cs: remove unused field.
19133         * ButtonBase.cs: wrap a couple fields in NET_2_0.
19135         * GridEntry.cs: remove unused fields.
19137         * Binding.cs: remove unused fields.
19139         * AxHost.cs: remove unused method.
19141         * ContainerControl.cs: remove unused field.
19143         * ScrollableControl.cs: remove unused fields.
19145 2006-12-01  Chris Toshok  <toshok@ximian.com>
19147         * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
19148         the Where/WhereString stuff.  it's easy enough to CWL
19149         Environment.StackTrace.
19151         * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
19152         unused private fields.
19154 2006-12-01  Jackson Harper  <jackson@ximian.com>
19156         * TextControl.cs: Do not update the view while inserting multiline
19157         text. If we update the view we might wrap lines, before entering
19158         the new lines, which causes the new line insertion calculations to
19159         be totally fubared.
19160         - Remove an old TODO
19161         - Make debug output a little nicer
19162         
19163 2006-12-01  Chris Toshok  <toshok@ximian.com>
19165         * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
19167 2006-12-01  Chris Toshok  <toshok@ximian.com>
19169         [ fix the majority of the CS0108 warnings we've been suppressing ]
19170         
19171         * TreeView.cs: mark BackgroundImageChanged as 'new'.
19173         * ToolBar.cs: ImeMode just passes stuff to Control.  Rename Layout
19174         to "LayoutToolBar" to quiet mcs.
19175         
19176         * TabControl.cs: mark our ControlCollection class as 'new'.
19178         * TextBoxBase.cs: mark some events as 'new'.
19180         * Splitter.cs: TabStop is 'new'.
19182         * ControlBindingsCollection.cs: mark a few methods as new since
19183         they change the visibility from protected to public.
19185         * RadioButton.cs: DoubleClick -> base class, and remove unused
19186         HaveDoubleClick.
19188         * MonthCalendar.cs: ImeMode property -> base class, and mark many
19189         events as new.
19191         * NumericUpDown.cs: TextChanged -> base class.
19193         * CheckedListBox.cs: mark our ObjectCollection class as new to
19194         quiet mcs.
19196         * FolderBrowserDialog.cs: make HelpRequest event new and have it
19197         muck with the base class.
19199         * StatusBar.cs: fix some mcs warnings about Update being the same
19200         name as a base class method.
19202         * RichTextBox.cs: mark some events as new, and make them do things
19203         to the base class impl.
19205         * UserControl.cs: mark TextChanged as new, and have it manipulate
19206         base.TextChanged.
19208         * UpDownBase.cs: mark some things new.
19210         * CheckBox.cs: mark DoubleClick "new", and add some text about
19211         what we need to look at.
19213         * Panel.cs: make the events "new", and manipulate the base
19214         version.  these are just here for attributes.
19216         * AccessibleObject.cs: make owner private.
19218         * Control.cs: deal with AccessibleObject.owner being private.
19219         cache our own copy if we need it.
19221         * Button.cs: add "new" to the DoubleClickEvent.
19223         * ListBox.cs: no need to track our own has_focus here.  let
19224         Control.has_focus do it for us.  Also some other work to clear up
19225         warnings about not overriding base class methods of the same name.
19226         
19227         * ComboBox.cs: clear up some warnings about not override base
19228         class methods of the same name.
19230 2006-12-01  Chris Toshok  <toshok@ximian.com>
19232         * Form.cs: flag a few things as "new" to quiet some of the mcs
19233         warnings.
19235         * AxHost.cs: same.
19237         * PrintPreviewDialog.cs: same.
19239         * DataGridView.cs: fix a ton of corcompare warnings.  not all, but
19240         now DGV isn't so horrible on the class status page.  also, move
19241         all events to using System.ComponentModel.EventHandlerList.  my
19242         wrists hurt.
19244 2006-12-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19246         * MdiWindowManager.cs:
19247         - Set form to active mdi child if shown,
19248         and update the active mdi child to the next 
19249         remaining child in the z-order if the form is hidden.
19251         * Form.cs: 
19252         - Track if the form has been visible and if its 
19253         visibility is beeing changed, so that the MdiClient
19254         can properly decide the ActiveMdiChild. The MdiClient 
19255         cannot track this since the form can change visibility 
19256         before MdiClient is created.
19258         * MdiClient.cs:
19259         - Don't activate anything of the parent form is changing
19260         its visibility.
19261         - Rework ActiveMdiChild to only return visible mdi 
19262         children and take into account several other corner 
19263         cases.
19265 2006-12-01  Chris Toshok  <toshok@ximian.com>
19267         * IBindableComponent.cs: new 2.0 interface.
19269 2006-12-01  Gert Driesen  <drieseng@users.sourceforge.net>
19271         * DataGrid.cs: Font for caption area is bold by default.
19273 2006-12-01  Everaldo Canuto  <everaldo@simios.org>
19275         * Menu.cs: Tag property for 2.0.
19276         
19277 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
19279         * ThemeWin32Classic.cs: Adjust menu separator drawing. 
19280         
19281 2006-12-01  Chris Toshok  <toshok@ximian.com>
19283         * TreeView.cs: doh, the Begin* events should be
19284         TreeViewCancelEventHandler.
19286 2006-12-01  Chris Toshok  <toshok@ximian.com>
19288         * Form.cs: Form.ControlCollection already stores off the
19289         form_owner field.  don't access the base class's internal "owner"
19290         field.
19292         * Control.cs: make all the fields in Control.ControlCollection
19293         private.  there's no need for any internal fields here.
19295 2006-12-01  Chris Toshok  <toshok@ximian.com>
19297         * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
19298         OnHandleCreated.  Fixes bug #80109.
19300 2006-12-01  Chris Toshok  <toshok@ximian.com>
19302         * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
19303         SplitContainer.cs, Control.cs, StatusStrip.cs,
19304         DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
19305         NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
19306         DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
19307         DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
19308         Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
19309         LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
19310         MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
19311         TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
19312         PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
19313         DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
19315         do most of the work to convert our code over to use
19316         System.ComponentModel.Component.Events for
19317         adding/removing/dispatching events.
19320 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
19322         * DataGridView.cs: Fix an ArgumentNullException reported 
19323         twice today in IRC.
19325 2006-11-30  Mike Kestner  <mkestner@novell.com>
19327         * ComboBox.cs: fix the scrollbar mouse event forwarding in the 
19328         grabbed listbox.  Fixes #80036 and #80101.
19330 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
19332         * Message.cs: Changed ToString() to match MS.
19333         
19334 2006-11-30  Jackson Harper  <jackson@ximian.com>
19336         * TextBoxBase.cs: You can still change the selected text on a read
19337         only textbox.
19338         * TextControl.cs: Lower magic number for wrap calculations. This
19339         lets text get closer to the right (far) edge.
19341 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
19343         * Control.cs: Tweak 2.0 layout properties.
19344         * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
19345         * TextRenderer.cs: Add a new overload.
19346         * ToolStrip*: Huge amount of changes and new features.
19348 2006-11-30  Mike Kestner  <mkestner@novell.com>
19350         * ComboBox.cs: fixes for LargeChange and Maximum to get the 
19351         scroll range correct.  Fixes #79994.
19353 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
19355         * MdiWindowManager.cs: Update main form's text when
19356         a form is closed. (fixes #80038)
19357         
19358 2006-11-30  Everaldo Canuto  <everaldo@simios.org>
19360         * ToolBar.cs:
19361         - Fix an regression in ButtonSize.
19362         - Get ImeMode default value change to "Disable".
19363         - Get ShowTooltips default value change to true, default value is 
19364         "false" but after make a test in .NET we get "true" result as default.
19365         
19366 2006-11-29  Jonathan Pobst  <monkey@jpobst.com>
19368         * ToolStripDropDown.cs: Fix for SupportsTransparency change.
19370 2006-11-29  Chris Toshok  <toshok@ximian.com>
19372         * XplatUIWin32.cs (GetWindowTransparency): check return value of
19373         GetLayeredWindowAttributes.  if it's 0, return 1.0, as
19374         SetWindowTransparency hasn't been called.
19376 2006-11-29  Chris Toshok  <toshok@ximian.com>
19378         * Form.cs (set_TransparencyKey): only call SetWindowTransparency
19379         if it's supported.
19380         (set_AllowTransparency): reorder things a little so that the
19381         WS_EX_LAYERED style is removed properly.
19383 2006-11-29  Chris Toshok  <toshok@ximian.com>
19385         [ totally cosmetic eye-candy feature, fixes bug #80089 ]
19386         
19387         * Form.cs: only call the XplatUI transparency method (get/set) if
19388         SupportsTransparency says it's supported. Otherwise fallback to
19389         doing nothing (in the set case) or returning the instance field we
19390         cache (in the get case).
19392         * XplatUIStructs.cs: add TransparencySupport flag enum.
19393         
19394         * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
19395         change to SupportsTransparency.
19397         * XplatUIOSX.cs: stub out GetWindowTransparency, and return
19398         TransparencySupport.None from SupportsTransparency.
19400         * XplatUIX11.cs: Stub out GetWindowTransparency, and return
19401         TransparencySupport.Set from SupportsTransparency.
19403         * XplatUIWin32.cs: implement GetWindowTransparency calling
19404         GetLayeredWindowAttributes, and implement SupportsTransparency by
19405         checking whether or not both
19406         GetWindowTransparency/SetWindowTransparency are available
19407         entrypoints.  We need to do this since SetWindowTransparency is
19408         available as of win2k, but GetWindowTransparency requires winxp.
19409         yay win32 api.
19411         * XplatUI.cs: Add GetWindowTransparency, and change
19412         SupportsTransparency to allow for either/both Get/Set.
19414 2006-11-29  Chris Toshok  <toshok@ximian.com>
19416         * DataGrid.cs: keep from going into an infinite loop redrawing a
19417         datagrid that has no datasource.  Fixes bug #80033.
19419 2006-11-29  Chris Toshok  <toshok@ximian.com>
19421         * MenuItem.cs: fix the NRE when we assign text (and therefore call
19422         Invalidate) before the mainmenu has been assigned to a control.
19424 2006-11-29  Chris Toshok  <toshok@ximian.com>
19426         * DataGrid.cs: detect when we should be double the double click
19427         row/column autosize stuff, although that codepath has yet to be
19428         written.  part of the work for bug #79891.
19430 2006-11-29  Chris Toshok  <toshok@ximian.com>
19432         * Binding.cs (SetControl): fix unit test.
19434 2006-11-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19436         * PageSetupDialog.cs: Validate the margins and set them in
19437         PageSettings. 
19438         * NumericTextBox.cs: New class to mimic the behavior of the
19439         textboxes used in the printing dialogs.
19441 2006-11-29  Andreia Gaita  <avidigal@novell.com>
19442         
19443         * Form.cs: Revert previous change (remove call UpdateBounds
19444         from form constructor), because it messes with the handle creation
19445         order, and that one needs lots and lots of love.
19446         * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
19447         for valid printer and throw InvalidPrinterException if document
19448         is set but printer not valid), adding a MonoTODO. Once 
19449         handle creation is done properly, we can put this back in.
19451 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
19453         * MenuItem.cs: Create a invalidate method for menu item, to be
19454         calling from set text, it make text changes to imadiate update
19455         on screen. Fixes #80013. 
19456         
19457 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
19459         * ToolBar.cs: Fixes and simplify toolbar button layout, it 
19460         fixes bug #80070 and some other problem on toolbar buttons
19461         layout.
19463 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
19465         * ThemeWin32Classic.cs: Paint toolbar toggle button background 
19466         with dotted brush.      Fixes #79564
19467         
19468 2006-11-28  Andreia Gaita  <avidigal@novell.com>
19470         * Form.cs: Removed call to UpdateBounds on Form
19471         constructor, it was causing a call to CreateHandle
19472         before it was supposed to.
19473         * PrintControllerWithStatusDialog: Applied patch
19474         by Chris Toshok to hide controller when there are
19475         no printers available.
19476         PrintDialog.cs: initialize printer settings to 
19477         null - correct DefaultValues test #5
19478         * PrintPreviewControl.cs: Move PrintController
19479         initialization to GeneratePreview
19480         * PrintPreviewDialog.cs: 
19481         - Remove Preview generation     from Document_set(). It is 
19482         called on OnPaint
19483         - Throw InvalidPrinterException on CreateHandle if
19484         a Document is set but there are no printers or 
19485         printer is not valid.
19486         * ThemeWin32Classic: don't paint PrintPreviewControl
19487         if there is nothing to paint    
19489 2006-11-28  Miguel de Icaza  <miguel@novell.com>
19491         * Form.cs: Add another popular method.
19493         * TabPage.cs: ditto.
19495 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19497         * MenuItem.cs: Fixed a warning.
19498         * InternalWindowManager: Fixed a warning.
19500 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19502         * MenuItem.cs:
19503         - When cloning a menu also clone MdiList and clone the 
19504           window menu items properly (as the forms and menuitems
19505           are kept in an internal hashtable, these need updating 
19506           as well)
19507         - Rewrote the window menu code, menu items are added in the
19508           order the forms were added to their parent, and they are
19509           updated every time the window menu is shown (before the
19510           list was only generated once, in the current order of the
19511           forms, and would never be updated). A checkmark is shown
19512           next to the item corresponding to the active mdi child.
19514 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19516         * XplatUIStructs.cs: 
19517         - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
19518         
19519         * XplatUIWin32.cs: 
19520         - Added TME_NONCLIENT to TMEFlags.
19521         - Handles WM_NCMOUSEMOVE in GetMessage to 
19522           generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
19524         * MdiWindowManager:
19525         - Now merges mdi child menu to parent menu when maximized.
19526         - Recalculate NC areas of both mdi child and mdi parent. 
19527           Fixes #79757 (4).
19528           on window state and size changes.Fixes #79844 (3).
19529         - Handle WM_NCCALCSIZE to properly calculate borders.
19531         * Form.cs:
19532         - Add/remove to the mdi containers list of mdi children 
19533           in the order they are added.
19534         - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE 
19535           to the maximized mdi child.
19536         
19537         * InternalWindowManager.cs:
19538         - Only execute a click on the control buttons on the mouse up,
19539           not on the mouse down. Show the state of the button 
19540           (was only showing Normal state, never Pressed state). The
19541           pressed button now follows the mouse (if you click the Close 
19542           button and move the mouse over the Maximize button, the 
19543           Maximize button will be shown as pressed). Since Win32 does
19544           not generate WM_NCLBUTTONUP if you release the button outside
19545           of the nc area, we need to handle WM_NCMOUSELEAVE and treat
19546           it as a mouse up.
19547         
19548         * ThemeWin32Classic.cs:
19549         - Draw a missing border around mdi child forms. Fixes #79844 (2).
19551         * MdiClient.cs:
19552         - Added a list of forms which contains the order the forms are
19553           added to the mdi parent.
19554         - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
19555         - Handle WM_NCCALCSIZE to properly calculate the 3D border.
19556         - If the active form changes set the scrollbars to the top
19557           of the Z order, otherwise the form could hide them.
19558         - Scrollbars are now sized according to ClientSize, not 
19559           to Size, and they take into account the other scrollbar
19560           to determine maximum.
19561         
19562 2006-11-28  Rolf Bjarne Kvinge <RKvinge@novell.com>
19563         
19564         * XplatUI.cs:
19565         * XplatUIDriver.cs:
19566         * XplatUIX11.cs:
19567         * XplatUIWin32.cs:
19568         * XplatUIOSX.cs:
19569         - Added RequestAdditionalWM_NCMessages for windows to 
19570           opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
19571           Currently only implemented in XplatUIWin32.
19573 2006-11-27  Chris Toshok  <toshok@ximian.com>
19575         * Hwnd.cs: only add the hwnd to the windows hash in
19576         set_WholeWindow and set_ClientWindow if whole_window/client_window
19577         are not IntPtr.Zero.  also, remove the unused SetObjectWindow.
19579 2006-11-27  Mike Kestner  <mkestner@novell.com>
19581         * ComboBox.cs: remove redundant OnDropDown call.  It is called
19582         from the ComboListBox.ShowWindow code. Fixes #79969.
19584 2006-11-27  Chris Toshok  <toshok@ximian.com>
19586         * Hwnd.cs: remove the setters for ExposePending and
19587         NCExposePending - noone uses them.
19589 2006-11-27  Jackson Harper  <jackson@ximian.com>
19591         * TextControl.cs: new param for ReplaceSelection which determines
19592         whether we select the new selection, or set the cursor to the end
19593         of the new selection.
19594         * TextBoxBase.cs: Use new param for ReplaceSelection.  When
19595         pasting, select the new text.
19596         * RichTextBox.cs: Use new param for ReplaceSelection.
19598 2006-11-27  Jackson Harper  <jackson@ximian.com>
19600         * TextBoxBase.cs: Set the selection to the caret after the caret
19601         is moved, otherwise they get out of sync.
19603 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
19605         * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
19606         it fixes #80015
19608 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
19610         * ThemeWin32Classic.cs: 
19611         - Fix toolbar drop down arrow position.
19612         - Fix drop down appearance when ToolBar.Appearance is normal,
19613         it fixes #80018.
19614         
19615 2006-11-26  Gert Driesen  <drieseng@users.sourceforge.net>
19617         * ProgressBar.cs: GetStyle fixes for 2.0 profile.
19618         * Control.cs: Same.
19619         * UpDownBase.cs: Same.
19620         * ButtonBase.cs: Same.
19621         * ScrollBar.cs: Same.
19622         * TrackBar.cs: Same.
19623         * PictureBox.cs: Same.
19624         * UserControl.cs: Same.
19625         * Label.cs: Same.
19626         * ListControl.cs: Same.
19627         * TextBoxBase.cs: Same.
19628         * ListView.cs: Same.
19629         * RichTextBox.cs: Same.
19630         * TreeView.cs: Same.
19632 2006-11-25  Jordi Mas i Hernandez <jordimash@gmail.com>
19634         * PrintDialog.cs:
19635         - Text label for where 
19636         - Text label comment was not shown
19638 2006-11-23  Everaldo Canuto  <everaldo@simios.org>
19640         * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
19642 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
19644         * InternalWindowManager.cs: 
19645         - Handle WM_PARENTNOTIFY to activate the form
19646         if any child control is clicked.
19647         - The form is only sizable if not minimized.
19649         * MdiWindowManager.cs:
19650         - Save the IconicBounds if the form is moved.
19651         - Rework SetWindowState, now the window bounds 
19652         are stored only if the old window state is Normal.
19653         
19654         * MdiClient.cs:
19655         - In SetWindowStates store the old window state if 
19656         the window is maximized and restore window state if
19657         the window looses focus.
19658         - Don't handle any scrollbar value changes if 
19659         initializing the scroll bars. Fixes #79771.
19660         - Reworked ArrangeIconicWindows. Current algorithm
19661         tests bounds agains all other minimized windows, if
19662         any intersections create new bounds (going left to 
19663         right, bottom to top) and then test again. When 
19664         successful the bounds are saved and never computed
19665         again. Fixes #79774.
19667 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
19669         * InternalWindowManager.cs: Added HandleTitleBarUp.
19671 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
19673         * NumericUpDown.cs: In .NET 1.1, user entered text is still
19674         hexadecimal in ParseUserEdit.
19676         
19677 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
19679         * MdiWindowManager.cs: 
19680         - Handle a click on the form's icon to show the 
19681         system menu (when maximized). Fixes #79775.
19682         - Change the existing click handler for the form's
19683         icon when not maximized to show on MouseUp.
19684         Fixes #79776.
19686         * Form.cs: In OnResize only layout the mdi child's
19687         parent if it actually has a parent. Might not if
19688         the window is closing.
19691 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
19693         * MdiClient.cs: Ignore active MDI client for text of parent, if
19694         child has no text set.
19696 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
19698         * ToolBar.cs: Fixed ToString to match MS.
19700 2006-11-22  Andreia Gaita  <avidigal@novell.com>
19702         * NumericUpDown: 
19703         - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to 
19704         update inner values on set. Fixes #79966.
19705         - Override OnLostFocus to update value on NET 2. Fixes #79950.
19706         - Fix hexadecimal parsing.
19707         
19708         * UpDownBase: Override OnGotFocus and OnLostFocus to notify 
19709         parent. Fixes #79957
19711 2006-11-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19713         * Control.cs: After calling SetWindowsPos in SetBoundsCore 
19714         the actual size has to be queried, since if height /
19715         width is negative Win32 changes it to 0. 
19716         Fixes #79999 on Windows.
19717         
19718         * XplatUIX11.cs: Set height / width to 0 if negative
19719         in SetWindowPos. Fixes #79999 on Linux.
19720         
19721 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
19723         * ThemeWin32Classic.cs: Fix text redenring when button is
19724         pressed.
19726 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
19728         * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
19729         and later navigate by mouse. Fixes #79528.
19731 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
19733         * ToolBar.cs: Set default value for TabStop to false in
19734         constructor, it fixes remaining behavior of bug #79863.
19736 2006-11-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19738         * MdiWindowManager.cs:
19739         * InternalWindowManager.cs:
19740         - Moved a few methods specific to Mdi from 
19741         InternalWindowManager to MdiWindowManager.
19742         Fixes #79996.
19743         
19744 2006-11-21  Chris Toshok  <toshok@ximian.com>
19746         * XplatUIOSX.cs: stub out InvalidateNC.
19748         * XplatUIWin32.cs: implement InvalidateNC using the call I found
19749         at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
19751         * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
19753         * XplatUIDriver.cs: add InvalidateNC abstract method.
19755         * XplatUI.cs: add InvalidateNC.
19757 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
19759         * ToolBar.cs: Invalidate complete button area when pressed status 
19760         was changed.
19761         * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
19762         * ThemeWin32Classic.cs: Increase vertical and horizontal position 
19763         by 1 when button is pressed.
19765 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
19767         * ToolButton.cs: Invalidate middle of DropDown button when
19768         ToolBar theres DropDownArrows.
19769         * ThemeWin32Classic.cs: Change position of DropDown arrow and
19770         fix DropDown drawing operations.
19772 2006-11-20  Chris Toshok  <toshok@ximian.com>
19774         * NativeWindow.cs: fix the formatting of functions ('{' on the
19775         following line), and enable the thread exception dialog.
19777         * Application.cs: remove the duplicate exception catching from
19778         here.
19780 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
19782         * Toolbar.cs: Triggers button click event when click on icon
19783         of dropdown ToolBarButton. Fixes #79912.
19784         
19785 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19787         * Theme.cs:
19788         * ThemeWin32Classic.cs:
19789         - Added a property WindowBorderFont to enable themeing
19790           of mdi child windows' Text.
19791           
19792 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19794         * InternalWindowManager.cs:
19795         * Form.cs:
19796         * MdiClient.cs:
19797         * MdiWindowManager.cs: 
19798         - If mdi child is maximized, set mdi parent's
19799           text to "Parent - [Child]". Fixes #79770.
19800         - If there is any maximized mdi child windows, only the active 
19801           window (and any new windows) is maximized, the rest are normal.
19802         - On a WindowState change only save mdi child's window bounds 
19803           if the old window state was normal. Fixes #79774.
19804         - The scroll bars are now calculated on hopefully all
19805           necessary events. Fixed #79771 / #79844->6 / #79906.
19806         - MdiClient.SizeScrollBars() now takes into account docked 
19807           controls in the parent when calculating available space.
19808         - InternalWindowManager now always repaints the entire title
19809           area. Fixes #79844->1/4/5.
19810         - Added RequestNCRecalc on mdi child windowstate changes.
19811           Fixes #79772.
19813 2006-11-20  Mike Kestner  <mkestner@novell.com>
19815         * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
19816         in the MouseUp handler of the listbox and move the return handling
19817         code to FireMouseUp to avoid scrolling on ups.  Fixes #79952.
19819 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
19821         * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855. 
19823 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
19825         * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
19826           working in 1.2.x anymore. So, updated.
19828 2006-11-19  Gert Driesen  <drieseng@users.sourceforge.net>
19830         * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
19831         NumberGroupSeparator of current culture instead of assuming en-US.
19832         Fixed bug #79967.
19834 2006-11-17  Mike Kestner  <mkestner@novell.com>
19836         * Control.cs: Add the concept of implicit bounds setting so that
19837         dock/undock round trips preserve explicitly set size/locations.
19838         Fixes #79313.
19840 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
19842         * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
19843           can't handle those filters. (Fixes bug #79961)
19845 2006-11-17  Chris Toshok  <toshok@ximian.com>
19847         [ fixes the exit/crashes associated with #79835.  it's clearly
19848         suboptimal though, we need to figure out a better way to solve
19849         this. ]
19850         
19851         * PrintPreviewControl.cs: deal with the new invalid printer
19852         exceptions.
19854         * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
19855         and return false (so CommonDialog.ShowDialog doesn't actually show
19856         the form.)
19858         * PrintDialog.cs: enable/disable the Ok button depending on
19859         whether or not the printer is valid.
19861         * CommonDialog.cs (ShowDialog): only actually show the form if
19862         RunDialog returns true.
19864 2006-11-17  Jackson Harper  <jackson@ximian.com>
19866         * TextControl.cs: When soft splitting a line, mark it as a soft
19867         split line. Also carry over the current line break to the next
19868         line.
19870 2006-11-17  Chris Toshok  <toshok@ximian.com>
19872         * XplatUIX11.cs: when scrolling a window with an invalid area, we
19873         only want to shift the part of the invalid area that overlaps the
19874         area we're scrolling.  we also don't want to clear the invalid
19875         area unless the invalid area was entirely contained within the
19876         scrolling area.
19878 2006-11-16  Chris Toshok  <toshok@ximian.com>
19880         * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
19881         also make sure to free the memory returned by XGetWindowProperty
19882         in GetText().
19884         * X11Structs.cs: remove the TimerEvent stuff, it's unused.
19886 2006-11-16  Chris Toshok  <toshok@ximian.com>
19888         * XplatUI.cs: add a new super secret way to get at the totally
19889         unsupported X11 backend.
19891 2006-11-16  Gert Driesen  <drieseng@users.sourceforge.net>
19893         * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
19895 2006-11-16  Jackson Harper  <jackson@ximian.com>
19897         * TreeView.cs: Allow more explicit setting of top node position
19898         for scrollbars. Slower algo, but more accurate.
19899         - CollapseAll should maintain the current top node.
19900         * TextBoxBase.cs: When positioning the caret, use the line, pos
19901         method, since the x, y method does not grab the correct tag, and
19902         the caret height never gets set correctly. (Maybe I should just do
19903         away with the caret having its own height, and always use the
19904         carets current tag for height).
19906 2006-11-16  Jonathan Pobst  <monkey@jpobst.com
19908         [Fixes 79778, 79923]
19910         * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
19911         Parent to the FosterParent instead.
19913 2006-11-16  Jackson Harper  <jackson@ximian.com>
19915         * TreeView.cs: Need to recalc the topnode when we expand or
19916         collapse. The scrolling methods can't handle this on their own,
19917         since they use differences between the last scroll position, and
19918         those difference get completely messed up since we are expanding
19919         nodes.  This problem should probably be fixed in the scrolling
19920         methods, so they can figure out exactly where they are, but this
19921         will slow things down a little.
19922         * ThemeWin32Classic.cs: Special case for groupboxes with empty
19923         strings, makes nunit-gui look a lot nicer.
19925 2006-11-16  Chris Toshok  <toshok@ximian.com>
19927         * XplatUIX11.cs: nasty, nasty, nasty changes required because of
19928         the broken multithreaded event handling we have in here.  File
19929         this entry under "Why we should move to the new X11 backend".
19931         Any thread can make it into UpdateMessageQueue, which gets events
19932         from the X socket - some of which could belong to hwnds being
19933         managed by a different thread.  We can also have multiple threads
19934         in UpdateMessageQueue at the same time, with each one reading from
19935         the X socket.  This leads to many problems, with the following
19936         solutions:
19938         We can't use hwnd.Queue.Enqueue anywhere in here and must use
19939         EnqueueLocked.
19941         The MotionNotify compression we do can't work across threads
19942         (without locking the entire queue, perhaps) since we call
19943         hwnd.Queue.Peek, so we just punt and don't compress motion events
19944         unless the owning thread is the one which got the X event.
19946         ConfigureNotify is another fun one, since it modifies the hwnd's
19947         bounds and then enqueues the event.  We add a lock to Hwnd which
19948         is held when setting configure_pending to true (and enqueuing the
19949         event).
19951         There is a race wrt the wake socket.  we need to make sure that
19952         only 1 thread is waiting on that socket, or else a thread could
19953         sleep waiting for data that never comes.  It's difficult (but not
19954         impossible) to make happen, because it seems to require something
19955         like the following:
19957             1. Thread 1 polls on wake_receive
19958         
19959             2. poll returns saying there's data to be read on
19960                wake_receive.
19961         
19962             3. Thread 2 polls on wake_receive and immediately returns
19963                saying there's data to be read.
19965             4. Thread 2 reads the wakeup byte from wake_receive
19967             5. Thread 1 attempts to read the wakeup byte from
19968                wake_receive.
19970             6. Thread 2 exits (due to a form closing, perhaps).
19972             7. Thread 1 blocks forever.
19973         
19974         Fun, eh?
19976         Fixing the Expose handling isn't done yet, and the races inherent
19977         in that piece of code are responsible for the drawing mistakes you
19978         see when generating expose events in a MT app (like NPlot).  This
19979         one is the likely to be the hardest to bandaid, and it doesn't
19980         appear to cause anything but drawing problems.  The other issues
19981         caused apps to exit or hang.
19983         * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
19984         called from a different thread than the one that should be calling
19985         these functions.
19987         * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
19989 2006-11-15  Chris Toshok  <toshok@ximian.com>
19991         * Application.cs: null out the context's MainForm when we exit
19992         RunLoop.  Fixes a newly checked in unit test as well as the last
19993         ODE from bug #79933.
19995 2006-11-15  Chris Toshok  <toshok@ximian.com>
19997         * Form.cs (set_Owner): allow a null value so we can clear the
19998         form's owner.
19999         (Dispose): set all our owned_form's Owner properties to null, and
20000         clear the owned_forms collection.
20001         (WM_CLOSE): clean up this a little bit.. still not right though.
20003         * ApplicationContext.cs: OnMainFormClosed should only call
20004         ExitThreadCore if the main form isn't recreating.  Fixes unit
20005         test.
20007 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
20009         [Fixes 78346]
20011         * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
20013 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
20015         [Fixes 79433]
20017         * Hwnd.cs: Add a flag to show a window, but not activate it, to 
20018         keep popup window types from stealing focus from the main form
20019         on Windows.
20021         * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
20023         * MenuAPI.cs: Set above flag to true.
20025 2006-11-15  Chris Toshok  <toshok@ximian.com>
20027         * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
20028         the button being released is not in wParam.
20030 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
20032         * Form.cs: Add the released button to MouseEventArgs.Button
20033         for the OnMouseUp call to the MenuTracker.  Fixes menu clicking
20034         on Win32.
20036 2006-11-15  Chris Toshok  <toshok@ximian.com>
20038         * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
20039         GetText().  untested because it's unused in our implementation.
20040         Control.Text always caches the text, even if
20041         ControlStyles.CacheText is not set.
20043         fixes bug #79939.
20045 2006-11-15  Chris Toshok  <toshok@ximian.com>
20047         [ fixes #79933 ]
20048         
20049         * Form.cs: in Close() don't do anything after we send the WM_CLOSE
20050         message.  no hiding, no disposing.
20052         in the WM_CLOSE handler, hide the form if it's modal.
20054 2006-11-15  Chris Toshok  <toshok@ximian.com>
20056         * XplatUIX11.cs: use AddExpose instead of sending a message.
20057         fixes textbox border drawing.
20059 2006-11-15  Chris Toshok  <toshok@ximian.com>
20061         * PropertyGridView.cs: keep from crashing on mouse move/down when
20062         the property grid is empty.
20064 2006-11-14  Jackson Harper  <jackson@ximian.com>
20066         * TextControl.cs: Make PageUp and PageDown more like the MS
20067         versions.
20068         * TextBoxBase.cs: When we set the text property position the
20069         cursor at the beginning of the document.
20071 2006-11-14  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20073         * Form.cs: if a mdi child's WindowState has changed
20074         before it's creation, it would display wrong control
20075         buttons.
20076         
20077 2006-11-14  Alexander Olk  <alex.olk@googlemail.com>
20079         * TreeView.cs: De-uglify TreeView checkbox checkmarks.
20080           (Fixes bug #79927)
20082 2006-11-14  Rolf Bjarne Kvinge <RKvinge@novell.com> 
20084         * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that 
20085         the window gets to paint its borders even if the window is
20086         getting smaller.
20087         
20088         * Form.cs: on a WM_NCPAINT invalidate the entire menu, 
20089         otherwise the old control buttons would still be painted 
20090         if the window gets bigger.
20091         
20092         * PaintEventArgs.cs: add an internal method so that the clip 
20093         rectangle can be changed.
20094         
20095 2006-11-13  Chris Toshok  <toshok@ximian.com>
20097         [ fixes bug #79745 ]
20098         
20099         * NotifyIcon.cs: lots of cleanup.
20101         * X11Structs.cs: add an enum for XEMBED messages.
20103         * XplatUIX11.cs: reindent one of the giant switch statements, it
20104         was taking up an additional tab stop, and this file is already way
20105         too wide for my laptop's screen.
20107         Also, add handling for the XEmbed EMBEDDED_NOTIFY message.  When
20108         we get it, resize the hwnd to the WMNormalHints max_width/height.
20110 2006-11-13  Jackson Harper  <jackson@ximian.com>
20112         * TextBoxBase.cs: Compute the value changes for the mouse wheel
20113         teh simple way.
20115 2006-11-13  Chris Toshok  <toshok@ximian.com>
20117         * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
20118         #79898.  force a reference to the Region to stick around so the
20119         unmanaged object isn't collected (rendering our handle in the MSG
20120         stale).
20122 2006-11-13  Chris Toshok  <toshok@ximian.com>
20124         * XplatUIX11.cs: fix #79917 for window managers which support
20126         using XStoreName on the raw utf8, and we need to convert to
20127         COMPOUND_TEXT if it's non-latin1.
20129 2006-11-13  Chris Toshok  <toshok@ximian.com>
20131         * Form.cs (set_DialogResult): we need to set closing to false if
20132         we're setting our result to None.  fixes bug #79908.
20134 2006-11-13  Jackson Harper  <jackson@ximian.com>
20136         * TextControl.cs: When formatting text, compute the adjusted tag
20137         lengths correctly, using FindTag for the end tag instead of trying
20138         to figure it out outselves.
20139         * TreeNode.cs: Use ActualItemHeight, which is the actual height of
20140         the item, ItemHeight doesn't work, because trees with large
20141         imagelists use those for their height
20142         * TreeView.cs: ActualItemHeight factors in the image height
20143         - compute left edge of checkboxes correctly
20144         - when expanding/collapsing move the bottom down one pixel, so we
20145         aren't moving part of the node
20147 2006-11-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20149         * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
20150         stack in PaintEventStart so that it won't get disposed by the gc
20151         before reaching PaintEventEnd.
20153 2006-11-13  Jackson Harper  <jackson@ximian.com>
20155         * TextBoxBase.cs: Don't select the word if we are on a line with
20156         no text.
20157         - We don't need to position the caret on mouse up, since the mouse
20158         move handler should be doing this
20159         - When double clicking a blank line, the caret is advanced to the
20160         next line.
20162 2006-11-13  Gert Driesen  <drieseng@users.sourceforge.net>
20164         * TreeNodeCollection.cs: Avoid duplicating indexer code.
20166 2006-11-12  Gert Driesen  <drieseng@users.sourceforge.net>
20168         * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
20169         Fixes part of bug #79910.
20171 2006-11-11  Alexander Olk  <alex.olk@googlemail.com>
20173         * ColorDialog.cs: Fix a NRE when adding a color to custom colors
20174           (bug #79903). Some minor string updates to match ms.
20176 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
20178         * FileDialog.cs: Don't add an extension if the filename
20179           already ends with that extension.
20181 2006-11-10  Jackson Harper  <jackson@ximian.com>
20183         * TreeView.cs: Use the currently highlighted node for the
20184         BeforeSelect event.
20185         * TextBoxBase.cs: There is no need to expand selection on
20186         MouseMove.
20187         - CanUndo means 'is there any undo operations', not 'is undo
20188         allowed on this textcontrol. Fixed ClearUndo unit test.
20190 2006-11-10  Andreia Gaita  <shana.ufie@gmail.com>
20192         * Button.cs: only perform click when button is Selectable (so as 
20193         not to activate default buttons when they're disabled)
20194         
20195         * Control.cs: Rewrite of the SelectNextControl and related 
20196         methods. HandleClick now selects next control if the current one
20197         is being disabled.
20198         
20199         * Form.cs: OnActivated selects next active control only if Load 
20200         has already occurred. If Load hasn't run, there's no point in 
20201         selecting here, Load might change the state of controls.
20202         
20203         * FocusTest.cs: Tests marked as working again for these fixes
20205 2006-11-10  Chris Toshok  <toshok@ximian.com>
20207         * XplatUIX11.cs: a couple of fixes.
20209         - use XInternAtoms with almost all the atoms we need to register,
20210         instead of many, many calls to XInternAtom.  should help a bit on
20211         startup time, at the expense of making the code look a little
20212         worse.
20214         - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
20215         isn't reparented (which seems to be a clue that we're running fon
20216         compiz) and they have an Owner form.  This fixes the tool windows
20217         in paint.net when running under compiz.
20219         - when setting the opacity of a window, support both the case
20220         where the window has been reparented and also when it hasn't been.
20221         Since compiz/beryl doesn't seem to reparent windows, and these are
20222         the only window managers which support translucency, I'm not sure
20223         why we need the hwnd.reparented case at all.. but leave it in.
20224         now we get translucent windows in paint.net under compiz/beryl.
20226 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
20228         * FileDialog.cs: Always return the value for FilterIndex that
20229           was set. Internally convert it to values that make sense.
20231 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
20232         
20233         * ThemeWin32Classic.cs: Fix drowp down arrow borders.
20235 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
20237         * Toolbar.cs: Change default value of DropDownArrows to true, the 
20238         signature still using false to make it compatible with MS but the 
20239         initial value is true. Fixes #79855.
20241 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
20243         * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
20244           only available on Linux.
20246 2006-11-09  Everaldo Canuto  <everaldo@simios.org>
20248         * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
20249         reduce number of calls to redraw method during toolbar creation.
20251 2006-11-09  Mike Kestner  <mkestner@novell.com>
20253         * ListView.cs : raise SelectedIndexChanged when an item is selected
20254         programmatically via the Item.Selected property.  Gert's nice 
20255         ListViewSelectedIndexChanged test fixture now runs clean.
20257 2006-11-09  Mike Kestner  <mkestner@novell.com>
20259         * ListView.cs : raise SelectedIndexChanged when a selected item is
20260         removed from the item collection using Remove or RemoveAt.
20262 2006-11-09  Mike Kestner  <mkestner@novell.com>
20264         * ListView.cs : raise SelectedIndexChanged once per selected item
20265         for compat with MS.  Fixes #79849+.
20267 2006-11-09  Chris Toshok  <toshok@ximian.com>
20269         * TabControl.cs: initialize row_count to 0, and set it to 1 when
20270         we need to (if we have any tab pages).  Fixes unit test.
20272 2006-11-09  Chris Toshok  <toshok@ximian.com>
20274         * Label.cs (CalcPreferredWidth): if Text == "", our preferred
20275         width is 0, not 3.  Fixes a unit test.
20277 2006-11-09  Mike Kestner  <mkestner@novell.com>
20279         * ListView.cs : use Implicit scrollbars so that focus isn't 
20280         stolen from the listview when they are clicked. Fixes #79850.
20282 2006-11-09  Chris Toshok  <toshok@ximian.com>
20284         * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
20285         have a root item.  Fixes #79879.
20287 2006-11-09  Alexander Olk  <alex.olk@googlemail.com>
20289         * FileDialog.cs:
20290           - Fix ToString ()
20291           - An ArgumentException is now thrown if a wrong filter
20292             is applied (matches ms). The previous filter doesn't change
20293             anymore if an exception is thrown.
20294           - Changing the FileName property also affects FileNames
20295         * ColorDialog.cs: The length of the CustomColors array is always
20296           16. It doesn't matter if we use a smaller array or null to update
20297           or change the custom colors property.
20298         * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
20299           for RootFolder if we get a undefined value.
20301 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20303         * StatusBarPanel.cs: 
20304         - Width is set to MinWidth if Width is smaller than
20305         MinWidth. Fixes #79842.
20306         - MinWidth now always overrides Width (MSDN says MinWidth
20307         is set to Width when AutoSize = None, but they do not 
20308         behave like that).
20309         - Style has now the the correct default value.
20310         
20311 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20313         * TrackBar.cs: 
20314         - The control is completely invalidated on 
20315         Got/LostFocus to draw the focus rectangle correctly.
20316         - When AutoSize then height is always 45 (width for 
20317         vertical controls).
20318         
20319         * ThemeWin32Classic.cs: The TrackBar thumb is now centered
20320         on the mouse when moved and it doesn't move when grabbed
20321         until the mouse moves as well. Also fixed some wrong 
20322         calculations when clicking on the thumb (control thought
20323         click was outside of thumb and didn't grab it).
20324         Fixes some of the issues in #79718.
20326 2006-11-08  Everaldo Canuto  <everaldo@simios.org>
20328         * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
20330 2006-11-08  Chris Toshok  <toshok@ximian.com>
20332         * PropertyGridView.cs: only call ToggleValue if the item is not
20333         readonly.
20335 2006-11-08  Jackson Harper  <jackson@ximian.com>
20337         * TextBoxBase.cs: The RichTextBox and textbox have very different
20338         word selection methods.  Implement the textbox's simple word
20339         selection here, and let the RichTextBox override and provide it's
20340         own.
20341         - Don't do extra selection on mouseup
20342         * RichTextBox.cs: Use the documents word selection algorithm, I
20343         think ideally, this function will be pulled into the
20344         RichTextBox.cs code someday.
20346 2006-11-08  Chris Toshok  <toshok@ximian.com>
20348         * RootGridEntry.cs: new class to represent GridItemType.Root.
20350         * CategoryGridEntry.cs: reformat, and add boilerplate.
20351         
20352         * GridEntry.cs: remove the UIParent stuff - turns out .Parent
20353         returns the UI parent anyway, and we need special handling to
20354         implement the GetTarget method in the face of it.  Also, implement
20355         Select().
20357         * PropertyGrid.cs, PropertyGridView.cs: a number of fixes.  create
20358         a root grid item, and use that instead of PropertyGrid.grid_items.
20359         Also, make use of TypeConverters (and add limitted support for
20360         ICustomTypeDescriptors) when initially populating the grid.
20361         Arrays now show up more or less properly.
20363 2006-11-08  Chris Toshok  <toshok@ximian.com>
20365         * Application.cs: set the modal dialog to non modal after we close
20366         it.  Fixes bug #79866.
20368 2006-11-08  Jackson Harper  <jackson@ximian.com>
20370         * TextControl.cs: When combining lines carry over the line end
20371         style from the end line.
20372         - Invalidate the selected area when setting it, if it is visible.
20373         * TextBoxBase.cs: Only rich text box can do full line selects.
20374         - Make sure to set the cursor position when there is a click,
20375         otherwise two clicks in separate areas could cause a large chunk
20376         to be selected.
20378 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
20380         * Toolbar.cs: Release flat button borders when Toolbar lost focus. 
20381         Fixes #79863.
20383 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
20385         * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
20386         time. Remove tooltips when ToolButton click events.  Fixes #79856.
20388 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
20390         * MenuAPI.cs: Ignore right click for menu actions and fixes
20391         menu border when clicked.  Fixes #79846.
20393 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
20395         * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
20396         MouseState after create wParam for message, this fixes mouse button 
20397         equal none in mouse up events.
20398         
20399 2006-11-07  Andreia Gaita  <shana.ufie@gmail.com>
20401         * Control.cs : Focus() now calls Select to set the Container's
20402         Active Control and to give it focus. To avoid infinite recursion
20403         (because ActiveControl also calls Focus at one point), a check 
20404         is made in Focus with the help of a new internal variable
20405         is_focusing.
20407 2006-11-07  Mike Kestner  <mkestner@novell.com>
20409         * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
20410         if there's a selection.  Fixes #79849.
20412 2006-11-07  Gert Driesen  <drieseng@users.sourceforge.net>
20414         * PropertyGrid.cs: Avoid fixed height of help description label.
20415         Fixes part of bug #79829.
20417 2006-11-07  Chris Toshok  <toshok@ximian.com>
20419         * XplatUIX11.cs: fix #79790 again, by using the
20420         _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
20422 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
20424         * ToolBar.cs: Fix left click checking.
20426 2006-11-07  Chris Toshok  <toshok@ximian.com>
20428         * ProgressBar.cs: fix a typo in ToString().  fixes a unit test.
20430 2006-11-07  Chris Toshok  <toshok@ximian.com>
20432         * RelatedPropertyManager.cs: set property_name in our ctor.  fixes
20433         PropertyManager unit tests.
20435         * PropertyManager.cs: make property_name internal.
20437 2006-11-07  Chris Toshok  <toshok@ximian.com>
20439         * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
20440         pass a unit test.  Also, don't set image_index to anything in
20441         response to setting the ImageList property.
20443 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
20445         * ToolBar.cs: Ignore click events when mouse button is not a
20446         left button, only accepts other button for dropdown menus.  
20447         Fixes #79854.
20449 2006-11-07  Chris Toshok  <toshok@ximian.com>
20451         * DataGrid.cs: make the back and parent row buttons a little less
20452         ugly.
20454 2006-11-07  Jackson Harper  <jackson@ximian.com>
20456         * TextBoxBase.cs: When converting to Text don't put line breaks in
20457         for soft line breaks.
20458         * TextControl.cs: There is an initial "fake" line in the document,
20459         this is now a soft break line, so that an extra line feed doesn't
20460         get added to the end of documents.
20462 2006-11-07  Chris Toshok  <toshok@ximian.com>
20464         [ fix bug #79778 ]
20465         
20466         * CurrencyManager.cs: if the list is readonly, don't bother
20467         checking if IBindingList.AllowNew is true.
20469         * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
20470         for non-DataRowView datasources..  or rather, make it not crash.
20471         (DataGridPaintRelationRow): make sure we limit the row painting to
20472         the area not covered by the row header, and make our cell width at
20473         least large enough to cover the relation area.  This allows grids
20474         that have relations but no rows to render correctly.
20475         (DataGridPaintRowContents): same type of changes here.
20476         (SetDataSource): move back to always calling
20477         CalcAreasAndInvalidate.  this fixes a crash/drawing problem when
20478         navigating back through relations.
20479         (HitTest): handle the case where we have no cells but have
20480         relations.  Right now we generate a hit in cell 0 of whatever the
20481         row is, not sure if this is strictly correct, but it works for our
20482         purposes.
20483         
20484         * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
20485         bother doing anything.
20487 2006-11-07  Jonathan Pobst  <monkey@jpobst.com>
20489         * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
20490         early version of StatusStrip.  Not responsible for eaten
20491         application or firstborn children.
20493 2006-11-06  Chris Toshok  <toshok@ximian.com>
20495         * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
20496         call GetTabRect with a -1 index.  Fixes #79847.
20498 2006-11-06  Jackson Harper  <jackson@ximian.com>
20500         * TreeNodeCollection.cs: Update scrollbars after clearing.
20502 2006-11-06  Chris Toshok  <toshok@ximian.com>
20504         * NumericUpDown.cs: fix the ToString method for some unit test
20505         love.
20507 2006-11-06  Chris Toshok  <toshok@ximian.com>
20509         * PropertyGrid.cs:
20510         - set the initial SelectedGridItem if we can.
20512         - Exclude non-mergable properties only if we're merging > 1
20513         object.  Merging 1 object isn't really merging, obviously.
20515         - Handle PropertySort.NoSort just like Alphabetical, which is
20516         wrong of course, but at least gets things on the screen.
20517         
20518         * PropertyGridView.cs:
20519         - Add method "FindFirstItem" which finds the first property grid
20520         item, so we can select it by default.
20522         - make use of GridEntry.CanResetValue.
20524         - Don't call RedrawBelowItemOnExpansion here anymore, the
20525         individual GridEntry's will do that.
20527         - Remove the ITypeDescriptorContextImpl internal class.
20528         
20529         * GridEntry.cs:
20530         - this class needs to implement ITypeDescriptorContext, as it's
20531         what MS's PropertyDescriptorGridEntry does, which means we can
20532         remove the ITypeDescriptorContextImpl internal class from
20533         PropertyGrid.cs.  This fixes the crashing portion of bug #79829.
20535         - keep a reference to our PropertyGridView, and move the call to
20536         RedrawBelowItemOnExpansion here from PGV.  This means
20537         programmaticly setting Expanded actually does something visible.
20539         - add a CanResetValue() function which takes into account our
20540         possibly multiple "selected_objects" in the merged case.  Shifting
20541         PropertyGridView to use this method fixes another unreported
20542         crasher found running the test for #79829.
20544         - when Top or Bounds is updated, make sure the PropertyGridTextBox
20545         is updated to reflect this.
20547         * CategoryGridEntry.cs: the ctor takes the PGV now.
20548         
20549 2006-11-06  Jackson Harper  <jackson@ximian.com>
20551         * TextControl.cs: These are 1 based.
20552         * TextBoxBase.cs: When setting the selected text, don't change the
20553         selected text tags, this is done by ReplaceText, just position the
20554         cursor at the end of the new text.
20556 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
20558         * ListView.cs: Allow label edit only when, when LabelEdit is
20559           set to true.
20561 2006-11-06  Jackson Harper  <jackson@ximian.com>
20563         * TextControl.cs: If a suitable wrapping position isn't found,
20564         just wrap right in the middle of a word.
20566 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
20568         * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
20569           bug #79820.
20571 2006-11-06  Jackson Harper  <jackson@ximian.com>
20573         * TreeView.cs: Can't use the VisibleCount property when setting
20574         scrollbar heights, because this doesn't take into account whether
20575         or not the horz scrollbar just came visible.
20577 2006-11-05  Everaldo Canuto  <everaldo@simios.org>
20579         * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
20580         activated.  Fixes #79369, #79832.
20582 2006-11-05  Alexander Olk  <alex.olk@googlemail.com>
20584         * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
20585           had to remove support for links that point to a directory. FileInfo
20586           returns no usefull information (means, the directory they point to)
20587           for such links. Replaced some empty string ("") with String.Empty.
20589 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
20591         * TreeNodeCollection.cs: To match MS, in 1.0 profile throw 
20592         NullReferenceException when attempting to remove node that is not in
20593         collection. Throw NullReferenceException when null is passed to 
20594         Remove. Allow first element of the collection to be removed. Fixes
20595         bug #79831.  In GetEnumerator ().Current return null if positioned 
20596         before the first element of the collection. In GetEnumerator ().Reset,
20597         position before first element of the collection.
20599 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
20601         * PropertyGrid.cs: To match MS, remove default title and description
20602         for panel. Fixed tooltips for Categorized and Alphabetic toolbar
20603         buttons.
20605 2006-11-04  Chris Toshok  <toshok@ximian.com>
20607         * Theme.cs: add a Clamp method, just for kicks.
20609         * ThemeWin32Classic.cs: clamp all color components to [0..255].
20611 2006-11-04  Chris Toshok  <toshok@ximian.com>
20613         * Form.cs: if the form isn't visible, Close() does nothing.
20615 2006-11-03  Chris Toshok  <toshok@ximian.com>
20617         * Form.cs (Close): if the form is modal, don't Dispose of it, only
20618         Hide it.
20619         (WndProc): don't Dispose after handling the WM_CLOSE message.
20621         * Application.cs (RunLoop): toplevels is a list of Forms, so treat
20622         them as such, instead of using casts from Control to Form.  Also,
20623         don't Dispose of the modal dialog when we fall out of the loop -
20624         Close() it instead.
20626         fixes bug #79813.
20628 2006-11-03  Chris Toshok  <toshok@ximian.com>
20630         * Control.cs (Dispose): only go through the dispose thing if we're
20631         @disposing, and we haven't already been disposed.  Fixes bug
20632         #79814.
20634         * Form.cs: no reason to call "base.Dispose()" here instead of
20635         "Dispose()".
20637 2006-11-03  Mike Kestner  <mkestner@novell.com>
20639         * ComboBox.cs : use ToString instead of casts in AddItem for
20640         sorting functionality.  Fixes #79812.
20642 2006-11-03  Chris Toshok  <toshok@ximian.com>
20644         * Application.cs: pave the way for actually using the thread
20645         exception dialog.  it's ifdefed out at the moment.
20647 2006-11-03  Chris Toshok  <toshok@ximian.com>
20649         * ThreadExceptionDialog.cs: until we get a better layout, actually
20650         hide the details textbox and label when we shouldn't see them.
20652 2006-11-03  Jackson Harper  <jackson@ximian.com>
20654         * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
20655         multiline textboxes anymore.  This method also determines the
20656         width/height of a textboxes canvas area.
20657         - Sorta a revert of the last patch.  For multiline just position
20658         the controls, then bail.  This way the scrollbar width won't be
20659         altered.
20661 2006-11-03  Everaldo Canuto  <everaldo@simios.org>
20663         * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
20664         it dont need.  Fixes #79537.
20666 2006-11-02  Jackson Harper  <jackson@ximian.com>
20668         * X11Dnd.cs: We always allow copy, since XDND implies Copy.  Also
20669         send the status after firing the DndOver event.
20671 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20673         * TrackBar.cs: Now orientation only switches height / width if
20674         the control's handle is created (Win32 does it like this). Also 
20675         fixed a typo in ToString() for a test to pass, changed the 
20676         exception thrown in set_LargeChange and set_SmallChange to 
20677         match Win32 behaviour, and added TrackBar tests to the unit 
20678         tests.
20680 2006-11-02  Chris Toshok  <toshok@ximian.com>
20682         * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
20683         not _NET_WM_STATE_NO_TASKBAR.
20685 2006-11-02  Jackson Harper  <jackson@ximian.com>
20687         * TextControl.cs: Increment count by one, since in the update view
20688         count - 1 is used.
20690 2006-11-02  Jackson Harper  <jackson@ximian.com>
20692         * TextBoxBase.cs: Use client rectangle not bounds for checking if
20693         the mouse is in the client rectangle (duh).
20695 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20696         
20697         * TrackBar.cs: Fixed trackbar jumping around when clicking
20698         on it - the trackbar was not detecting correctly at which
20699         side of the thumb the click was done. (fixes #79718)
20701 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
20703         * ListBox.cs: scroll visible area when change SelectedIndex to
20704         a non visible area.  Fixes #79481.
20706 2006-11-01  Jackson Harper  <jackson@ximian.com>
20708         * TextControl.cs: When replacing the selection move the selection
20709         start/end/anchor to the end of the new text.
20711 2006-11-01  Jackson Harper  <jackson@ximian.com>
20713         * XplatUIWin32.cs: When setting the parent change the controls
20714         visibility to it's visibility flag, not to it's old parents
20715         visibility (.Visible walks the parent chain).
20717 2006-11-01  Chris Toshok  <toshok@ximian.com>
20719         * XplatUIX11.cs: revert the #79790 fix, as the simple.
20720         XSetTransientForHint fix breaks paint .net's tool windows.  more
20721         work needed for that one.
20723 2006-11-01  Chris Toshok  <toshok@ximian.com>
20725         * ScrollBar.cs: throw ArgumentException instead of Exception in
20726         LargeChange/SmallChange setters.  fixes unit tests.
20728 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
20730         * ContainerControl.cs: reverted rev.67183 (which was itself
20731         a reversion of rev.66853... eh).
20732         
20733         * Control.cs: Fixes Reflector hang by changing Focus() call
20734         to what it was before rev.66643 (calling Select() here sets 
20735         ActiveControl, which in some situations calls back Focus and 
20736         eventually does a stack overflow). Temp fix.    
20737         Changes to GetNextControl() to not look for children to select when
20738         parent cannot be selectable (so it looks for siblings instead)  
20739         
20740 2006-10-31  Mike Kestner  <mkestner@novell.com>
20742         * CheckedListBox.cs : off by one error in returned index from
20743         ObjectCollection.Add.  Fixes #79758.
20745 2006-10-31  Chris Toshok  <toshok@ximian.com>
20747         * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
20748         calls for the textbox/spinner, to keep from recursing to the point
20749         where we crash.  Fixes #79760.
20751 2006-10-31  Chris Toshok  <toshok@ximian.com>
20753         * ListControl.cs (set_SelectedValue): don't throw exceptions on
20754         null/"" value, just return.  matches ms's behavior and fixes some
20755         failing tests.
20757 2006-10-31  Chris Toshok  <toshok@ximian.com>
20759         * Control.cs (set_Capture): make a logic a little easier to
20760         follow.
20762         * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
20763         if it's being destroyed.  A necessary fix surely, but a bandaid
20764         also, to fix the stuck capture problem in bug #78413.
20766 2006-10-31  Chris Toshok  <toshok@ximian.com>
20768         * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
20769         convention of clearing hwnd.ClientRect when we set the
20770         width/height (so it'll be recalculated by Hwnd).
20772 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
20774         * ContainerControl.cs: reversed Contains check from
20775         ActiveControl due to hanging problems. This fix
20776         partly regresses #79667 (button does not have
20777         initial focus), so this might be a symptom for 
20778         a larger parenting problem (set_ActiveControl
20779         is being called but the child control does
20780         not have the parent set yet?)   
20781         
20782 2006-10-31  Mike Kestner  <mkestner@novell.com>
20784         * MenuAPI.cs : fix keynav when menu is click activated.
20786 2006-10-31  Jonathan Pobst  <monkey@jpobst.com>
20788         * ToolStrip*: Version 0.2.
20790         * MenuStrip.cs: Version 0.1.
20792         * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
20794 2006-10-30  Chris Toshok  <toshok@ximian.com>
20796         [ fixes the oversized notify icon issue in bug #79745 ]
20797         
20798         * NotifyIcon.cs: scale the icon down to the size we're given by
20799         the XplatUI layer (this would be faster if we did it once instead
20800         of whenever we paint..)  Also, remove the WM_NCPAINT handling,
20801         since it's never invoked.
20803         * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
20804         pixels high by default, so let's hardcode our systray icon to that
20805         size.  The SYSTEM_TRAY protocol should really have a way for
20806         client apps to query for the correct icon size.. but oh well.  A
20807         couple of patches to deal with the screwy client_window ==
20808         whole_window notifyicon stuff (we don't want to PerformNCCalc, for
20809         instance, and also make sure we don't XSelectInput twice).
20811 2006-10-30  Chris Toshok  <toshok@ximian.com>
20813         * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
20814         recreating forms.  Control recreation is the bane of my existence.
20815         Fix it in a way that keeps everyone happy.
20817 2006-10-30  Chris Toshok  <toshok@ximian.com>
20819         * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
20820         just non-CHILD ones.  otherwise sometimes scrollbars end up with
20821         client_windows not being resized to the proper size (ReportBuilder
20822         shows this extremely well).
20824 2006-10-30  Chris Toshok  <toshok@ximian.com>
20826         * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
20827         for non-WS_EX_APPWINDOW windows.  This is what keeps them from
20828         showing up in the gnome taskbar.  Fixes bug #79790.
20830 2006-10-30  Chris Toshok  <toshok@ximian.com>
20832         * ApplicationContext.cs: guard against a NRE.
20834         * Application.cs: null out the old MainForm for the context, so we
20835         don't try to use it again once it's disposed.  Fixes bug #79783.
20837 2006-10-30  Chris Toshok  <toshok@ximian.com>
20839         * DataGrid.cs (set_DataSource, set_DataMember): if we have a
20840         BindingContext, set the data source directly, otherwise do the
20841         lazy approach - the actual ListManager will be created when we get
20842         a BindingContext. Fixes bug #79700.
20844 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
20846         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
20847           XplatUIX11.cs: Remove old 2 parameter SetVisible.
20849         * Control.cs: Use the new 3 parameter SetVisible with activate = true.
20851 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
20853         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
20854         of SetVisible that allows a window to be shown, but not activated.
20855         This is needed on Windows for MenuStrip, and can probably be used
20856         with MainMenu and ComboBox to fix the focus stealing issues on
20857         Windows.
20859         * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
20861 2006-10-30  Alexander Olk  <alex.olk@googlemail.com>
20863         * PictureBox.cs: Fix the output of the ToString method.
20865 2006-10-29  Chris Toshok  <toshok@ximian.com>
20867         * Control.cs (get_TopLevelControl): fix bug #79781.
20869 2006-10-29  Chris Toshok  <toshok@ximian.com>
20871         * ListControl.cs (set_DataSource): throw Exception here, not
20872         ArgumentException, to match MS behavior.
20874 2006-10-29  Chris Toshok  <toshok@ximian.com>
20876         * Form.cs: remove the try-catch's around calls to GetWindowState.
20877         We can just check the return value.
20879         * XplatUIX11.cs: don't throw exceptions from GetWindowState.
20880         Instead return -1.
20882         * XplatUI.cs: Add note about additional return value for
20883         GetWindowState.
20885 2006-10-29  Chris Toshok  <toshok@ximian.com>
20887         * Control.cs (CreateHandle): when we create our handle, we also
20888         create the handles of our child controls.  Fixes one of the
20889         Control unit tests (CH11).
20891 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
20893         * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
20895 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
20897         * ThemeClearlooks.cs: A little speedup.
20899 2006-10-27  Chris Toshok  <toshok@ximian.com>
20901         * Control.cs: implement Control.FromChildHandle in a way that
20902         matches the docs (and fixes the failed test.)
20904 2006-10-27  Chris Toshok  <toshok@ximian.com>
20906         * DataGridTableStyle.cs: reproduce buggy MS behavior (with
20907         comments).
20909         * DataGrid.cs: implement ResetForeColor such that the tests
20910         succeed.
20911         
20912 2006-10-27  Chris Toshok  <toshok@ximian.com>
20914         * ToolBarButton.cs: setting text/tooltiptext to null results in it
20915         being set to "".  Fixes bug #79759.
20917 2006-10-27  Jackson Harper  <jackson@ximian.com>
20919         * TextControl.cs: We need to clear the entire selection area when
20920         setting the start, otherwise multiline selections are still
20921         visible.
20923 2006-10-26  Chris Toshok  <toshok@ximian.com>
20925         * PropertyGridView.cs: 
20927         - ifdef all the code specific to the double
20928         buffer case, and provide some alternatives in the non-doublebuffer
20929         code, which makes heavy use of XplatUI.ScrollWindow to move things
20930         around without having to invalidate (and cause flicker).  There
20931         are still some drawing problems in the non-doublebuffered case, so
20932         DOUBLEBUFFER is defined by default.
20934         - Fix the way dropdowns are handled.  now we explicitly watch for
20935         the events which might cause the dropdown to close, and break out
20936         of the nested event loop there.  This gets rid of all Capture
20937         code, at the expense of the Msg special casing.  Seems to work,
20938         though, and fixes bug #79743.
20940 2006-10-27  Rolf Bjarne Kvinge <RKvinge@novell.com>
20941         * Control.cs: SetIsRecreating now recreates implicitly added
20942         child controls as well. Finally fixes #79629. The flag passed to 
20943         SetIsRecreating has also been removed since it wasn't used.
20944         
20945 2006-10-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
20947         * PageSetupDialog.cs: Clean some code, fix some bits, 
20948         add some checks, and add a printer sub-dialog.
20950 2006-10-26  Chris Toshok  <toshok@ximian.com>
20952         * PropertyGrid.cs: make set_SelectedObject call
20953         set_SelectedObjects, and move the duplicate logic to the
20954         SelectedObjects setter.  Also, raise SelectedObjectsChanged.
20956         * PropertyGridView.cs: hide the textbox when we get a
20957         SelectedObjectsChanged event.
20959         Fixes bug #79748.
20961 2006-10-26  Chris Toshok  <toshok@ximian.com>
20963         * PropertyGridView.cs: deal with the type converter not supporting
20964         GetStandardValues() or GetStandardValues() returning null, which
20965         is does in the default case.  Fixes #79742.
20967 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
20969         * CheckedListBox.cs: nunit no longer crashes when selecting 
20970         Project/Edit menu option
20971         
20972 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
20974         * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
20975         is no menu selected. fixes #79739
20977 2006-10-25  Chris Toshok  <toshok@ximian.com>
20979         * PropertyGridView.cs: factor out the splitter invalidation code
20980         into the SplitterPercent setter, and for kicks implement the
20981         Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
20982         amount in either direction.
20984 2006-10-25  Chris Toshok  <toshok@ximian.com>
20986         * PropertyGridView.cs: do some cleanup of the brush used to draw
20987         text - read only fields should be grayed out.  not sure how to do
20988         this with the textbox, though.  but the textbox's should also be
20989         readonly now at least.  Also, hide/show the textbox when resizing
20990         the control.
20991         
20992         * CursorConverter.cs: use System.Reflection when getting the
20993         properties of Cursors, as TypeDescriptor.GetProperties isn't
20994         returning static properties.
20996 2006-10-25  Chris Toshok  <toshok@ximian.com>
20998         * PropertyGridView.cs: factor out the up/down handling, and reuse
20999         it for page up/down.  also add End/Home support.
21001 2006-10-25  Chris Toshok  <toshok@ximian.com>
21003         * PropertyGridView.cs:
21005         - ensure the selected grid item is visible in the scrolled area,
21006         fixes bug #79572.
21008         - fix Keys.Down handling when you're on the last item in the
21009         propertygrid.
21011 2006-10-25  Mike Kestner  <mkestner@novell.com>
21013         * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup 
21014         clicks too.  Fixes #79725.
21016 2006-10-24  Chris Toshok  <toshok@ximian.com>
21018         * PropertyGrid.cs: use property.Converter instead of
21019         TypeDescriptor.GetConverter(property.PropertyType), so we catch
21020         TypeConverters declared on the property as well as on the
21021         PropertyType.  Fixes bug #79678.
21023 2006-10-24  Alexander Olk  <alex.olk@googlemail.com>
21025         * MimeIcon.cs, Mime.cs:
21026           Fallback to the default platform handler if no shared mime info
21027           stuff exists (fixes #79693).
21029 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
21030         * ContainerControl.cs: Incorrect contains check in ActiveControl 
21031         from previous fix (duh).
21033 2006-10-20  Chris Toshok  <toshok@ximian.com>
21035         * PropertyGridView.cs: the dropdown should be MIN(number of items
21036         in list, 15).  Fixes #79551.
21038 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
21039         Fixes #79384, #79394, #79652, #79667
21040         * Application.cs: 
21041         
21042         - Modal windows are now destroyed in the proper order for windows
21043         
21044         * ContainerControl.cs:
21045         
21046         - ActiveControl setter has more conditions on when to return:
21047                 - if we're reselecting the active control, but it actually
21048                 didn't have focus (window hidden or some such), it runs
21049                 - if the active control being selected doesn't actually 
21050                 exist in the container, it returns
21051         
21052         * Form.cs
21053         
21054         - The ShowDialog now gets the current form as the owner when
21055         invoking without parameters, and correctly activates the owner 
21056         when returning
21057         
21058         * MessageBox.cs
21059         
21060         - MessageBox now catches the Escape key to exit
21062 2006-10-20  Chris Toshok  <toshok@ximian.com>
21064         * PropertyGridView.cs: fix a number of issues (bug #78565, and
21065         most of bug #79676):
21067         - you can navigate around the property grid with the arrow keys.
21069         - the dropdown is sized properly when the pg has a vertical
21070         scrollbar.
21072         - fix the indentation for subentries, and properly select the
21073         entire label rect.
21075         - fix the gray bar's drawing (only draw it to the last element,
21076         not for the height of the control.  Also make sure we draw that
21077         last horizontal grid line.
21079         - use the same mechanism the datagrid uses wrt the editing textbox
21080         when scrolling/resizing/etc.  Namely, we hide it first, do the
21081         operation, then show it again (if it's still visible).
21082         
21083         - aggressively remove a lot of unnecessary refreshes (and also
21084         calls to Invalidate(). call more limited variants, and only redraw
21085         what we need.)
21086         
21087         * PropertyGrid.cs:
21089         - when we're populating the merged collection, fill in the UI
21090         parent with either the passed in item, or the category item we
21091         create.
21093         - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
21095         * GridItem.cs: drop some fully qualified names.
21096         
21097         * GridEntry.cs: add a "UIParent", which is basically the parent
21098         treenode.
21100         * GridItemCollection.cs: add an IndexOf method.
21102 2006-10-20  Mike Kestner  <mkestner@novell.com>
21104         * MainMenu.cs : go back to Draw in OnMenuChanged.  Until we get
21105         a working win32 NC invalidation mechanism, we can't invalidate
21106         menus.  [Fixes #79705]
21108 2006-10-20  Mike Kestner  <mkestner@novell.com>
21110         * ListBox.cs : don't update the VScrollbar if the list is empty,
21111         just hide it.  [Fixes #79692]
21113 2006-10-20  Jackson Harper  <jackson@ximian.com>
21115         * RichTextBox.cs: Handle some special chars better, and don't skip
21116         the entire group when we encounter a special char that we don't
21117         handle correctly.
21119 2006-10-18  Chris Toshok  <toshok@ximian.com>
21121         * PropertyGridView.cs: address a number of issues from bug #79676,
21122         mostly of the cosmetic variety.
21124         - The highlight rectangle for indented items not extends all the
21125         way to the left.
21127         - Indented items aren't indented so much.
21129         - the dropdown is properly sized width-wise if the pg has a
21130         vertical scrollbar.
21132 2006-10-18  Chris Toshok  <toshok@ximian.com>
21134         * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
21135         systray stuff is rather convoluted to begin with.
21137         systray icons are a single window for some reason (that I haven't
21138         figured out yet), and for them, client_window == whole_window.
21139         Given the way the tests are structured elsewhere to determine
21140         which paints are pending (client vs. nc), that situation will
21141         always yield PAINT, not NCPAINT.  So, if we have a pending
21142         nc_expose and no pending expose, remove the hwnd from the paint
21143         queue, and also set nc_expose_pending to false, to keep us from
21144         blocking further expose's adding the hwnd to the paint queue.
21146         phew.  like i said, a rather convoluted change.  Fixes the
21147         notifyicon repaint issues in bug #79645.
21149 2006-10-18  Chris Toshok  <toshok@ximian.com>
21151         * Form.cs: when getting the backcolor of the form, don't get
21152         base.BackColor, as this allows parents to influence the background
21153         color.  This breaks mdi forms.  Instead, if the background_color
21154         is empty, return the default.
21156 2006-10-18  Chris Toshok  <toshok@ximian.com>
21158         * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
21159         to being private instead of internal static.
21161         * Control.cs: remove all the stupid ParentWaitingOnRecreation
21162         crap, it wasn't working for more deeply nested controls anyway,
21163         and we already have the is_recreating flag - use that instead.
21164         Before calling DestroyHandle in RecreateHandle, recurse through
21165         the control tree setting it to true.  this returns the recreate
21166         code to much of its original simplicity, while now guaranteeing we
21167         actually recreate everything we're supposed to.  This change gets
21168         fyireporting actually showing mdi children.
21170 2006-10-17  Chris Toshok  <toshok@ximian.com>
21172         * Form.cs: remove some debug spew, and collapse some duplicate
21173         code at the end of SetClientSizeCore.
21175         * XplatUIX11.cs: 
21176         - add some more debug spew here too wrt Destroy handling.
21177         - don't call hwnd.Dispose in DestroyWindow, it's effectively done
21178         in Control's handling of WM_DESTROY.
21179         - Remove the handling of zombie window DestroyNotifies from the
21180         event loop - we don't need it.  Now the only DestroyNotifies we
21181         actually handle are ones generated by X.
21182         - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
21183         match gtk's (functioning) handling of this. This keep metacity
21184         from leaving droppings in the form of wm borders with no window
21185         contents all over the place.
21187         * Control.cs:
21188         - add a bunch of debug spew wrt control recreation.
21189         - fix a bug where we weren't tracking Visible properly on
21190         recreated hwnds.
21191         - fixed the WM_PAINT double buffer handling to support re-entrant
21192         calls (yes, i know it's gross, but it's happening to us).
21194 2006-10-17  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
21195         * ThemeWin32Classic.cs: changed drawing of selected days
21196         to make them look better.
21198 2006-10-16  Chris Toshok  <toshok@ximian.com>
21200         * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
21201         drawing_stack.  Nuke the ClientDC/NonClientDC properties.
21203         * XplatUIX11.cs: move away from using hwnd.client_dc and
21204         hwnd.non_client_dc and on to a stack of dc's (and in window's
21205         case, PAINTSTRUCT's), so we can deal with nested Paint calls
21206         without puking or not disposing of Graphics objects.
21208         * XplatUIOSX.cs: same.
21210         * XplatUIWin32.cs: same.
21212 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
21214         * FileDialog.cs: Don't call on_directory_changed inside
21215           OnSelectedIndexChanged (it changes the SelectedIndex too).
21216           Instead move it to OnSelectionChangeCommitted.
21218 2006-10-13  Chris Toshok  <toshok@ximian.com>
21220         * XplatUIX11.cs: more Destroy work.  the current code does the
21221         following things, in order:
21223         1. Enumerates all handles of all controls at or below the one
21224         being destroyed, in pre-order.  As it is doing this, it marks the
21225         handles as zombie and clears all references to them.
21226         
21227         2. calls XDestroyWindow on the window passed in.
21229         3. SendMessage's WM_DESTROY to all he handles in the accumulated
21230         list.
21232 2006-10-13  Chris Toshok  <toshok@ximian.com>
21234         * XplatUIX11.cs: set hwnd.zombie to true before calling
21235         SendMessage (WM_DESTROY).  this keeps us from marking the new
21236         window a zombie, and also keeps us from calling sendmessage at
21237         all.
21239 2006-10-13  Jackson Harper  <jackson@ximian.com>
21241         * TextControl.cs: Do not show the caret and selection at the same
21242         time.  Reduces ugliness by 35%.
21244 2006-10-13  Chris Toshok  <toshok@ximian.com>
21246         * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
21247         zombie after we do the recursive call, so we actually do call
21248         SendMessage on the children controls.
21249         (GetMessage): if we find a pending paint event for a zombie hwnd,
21250         remove the hwnd from the paint queue, or else it will always be
21251         there (and we'll effectively loop infinitely)
21253 2006-10-13  Mike Kestner  <mkestner@novell.com>
21255         * MenuItem.cs : add Selected format under keynav too.
21256         Fixes #79528.
21258 2006-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
21260         * PropertyGrid.cs: Fixed some NRE's and small difference between our
21261         implementation and that of MS.
21263 2006-10-13  Chris Toshok  <toshok@ximian.com>
21265         * Control.cs (OnInvalidated) only futz with the invalid_region if
21266         the control is double buffered.  this fixes the apparent hang in
21267         the ListView unit tests.  Someone needs to make the
21268         BeginEndUpdateTest not call OnInvalidated 15004 times, though..
21270 2006-10-13  Chris Toshok  <toshok@ximian.com>
21272         * PropertyGridView.cs:
21274         - do a little refactoring so that only one place calls
21275         dropdown_form.Hide, and that is CloseDropDown.  make everywhere
21276         else call that.  Also make it Refresh, since there are redraw bugs
21277         otherwise (we should take a look at that...)
21279         - do a little more refactoring work to share the body of code
21280         involved with the drop down.  it was duplicated in the code
21281         dealing with the listbox handling and in the code dealing with the
21282         UITypeEditors.
21284         - add a Capture to the dropdown form's control once it's
21285         displayed, and add a MouseDown handler that checks to make sure
21286         the position is inside the control.  If it's not, close the
21287         dropdown.  This fixes #78190.
21289         - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
21290         if the value is different than the initial value.
21291         
21292 2006-10-13  Andreia Gaita  <shana.ufie@gmail.com>
21294         * Control.cs: see #78650
21295         - Fixed GetNextControl for several cases:
21296                 - Changed FindFlatForward to return 
21297                 correct sibling control when more than one
21298                 control has same TabIndex as the currently 
21299                 focused one.
21300                 - Changed FindFlatBackward to loop children
21301                 from last to first and apply same logic as in
21302                 FindFlatForward
21303                 - Changed FindControlForward to search for
21304                 children when control is not a container
21305                 but has children, or search for siblings if
21306                 control is a container...
21307                 - Changed FindControlBackward   to continue
21308                 searching for child controls when hitting 
21309                 Panel-like parents
21310                 
21311         - Fixed Focus method to update ActiveControl
21312         (FocusTest.FocusSetsActive failure)
21313         
21314         * TabControl.cs:
21315         - Focus rectangle now refreshes when gaining
21316         or losing focus
21317         - Removed grab for Tab key on IsInputKey that 
21318         was keeping tab navigation from working (#78650)
21320 2006-10-13  Chris Toshok  <toshok@ximian.com>
21322         * PropertyGridView.cs:
21323         - Rewrite SetPropertyValue to loop over SelectedGridItem's
21324         SelectedObjects.
21326         - Deal with GridItem.Value == null a few places.
21328         * PropertyGrid.cs: 
21329         - replace the PopulateGridItemCollection with a pair of methods
21330         which compute the intersection of all the properties in the
21331         SelectedObjects array.  Fixes #79615.
21333         - Throw ArgumentException from set_SelectedObjects if there's a
21334         null in the array.
21336         - Add GetTarget method which can be used to traverse up the
21337         GridItem.Parent chain.  It depends on the assumption that
21338         selected_objects for different GridEntries are always in the same
21339         order (a safe assumption).  Use this method and loop over all the
21340         selected objects in the entry when calling RemoveValueChanged and
21341         AddValueChanged.
21342         
21343         * GridEntry.cs: Make this handle multiple selected objects.
21344         .Value returns null if not all the selected objects share the same
21345         value.
21347 2006-10-12  Jonathan Pobst  <monkey@jpobst.com>
21348         * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
21349           ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
21350           ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
21351           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
21352           ToolStripTextBox.cs: Add accessibility, fix attributes/API and
21353         add additional functionality.
21355 2006-10-12  Mike Kestner  <mkestner@novell.com>
21357         * ErrorProvider.cs : new ToolTipWindow ctor sig.
21358         * HelpProvider.cs : new ToolTipWindow ctor sig.
21359         * ToolTip.cs : remove ToolTip param from Window sig since it is
21360         not used.
21361         * ToolBar.cs : add tooltip support.  Fixes #79565.
21363 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
21365         * ComboBox.cs: move the events in set_SelectedIndex to 
21366         after the call to HighlightIndex in order to avoid 
21367         possible recursion and subsequent problems with the call
21368         to HighlightIndex and include a range check in 
21369         set_HighlightIndex. Fixes #79588
21370         
21371 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
21373         * MonthCalendar.cs: When FirstDayOfWeek is default set firstday 
21374         to ui thread's settings instead of sunday. 
21375         * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
21377 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
21379         * DateTimePicker.cs
21380         * MonthCalendar.cs
21381         * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
21382         and implement missing functionality (selecting different parts 
21383         of the date and edit them individually with the keyboard).
21384         
21385 2006-10-11  Chris Toshok  <toshok@ximian.com>
21387         * Control.cs (OnInvalidated): fix NRE relating to last change.
21389 2006-10-11  Chris Toshok  <toshok@ximian.com>
21391         * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
21392         atoms in _NET_WM_STATE here if the window is maximized.  We need
21393         to do this because we're *replacing* the existing _NET_WM_STATE
21394         property, so those atoms will be lost otherwise, and any further
21395         call to GetWindowState will return Normal for a window which is
21396         actually maximized.  Fixes #79338.
21398 2006-10-11  Jackson Harper  <jackson@ximian.com>
21400         * TextControl.cs: Special case for setting selection end to
21401         selection start, we basically kill the anchor.
21402         - some todo comments.
21404 2006-10-11  Chris Toshok  <toshok@ximian.com>
21406         * Control.cs: switch to using an "invalid_region" to track which
21407         parts of the image buffer need updating.  This is more code than
21408         the simple fix from r66532.  That version just attempted to always
21409         fill the entire buffer on redraw, which turns out to be
21410         inefficient when invalidating small rectangles.  This version
21411         simply adds the invalid rectangle to the invalid region.  When we
21412         get any WM_PAINT message we see if it can be filled using the
21413         image buffer, and if it can't (if the paint event's clip rectangle
21414         is visible in the invalid region) we first fill the image buffer.
21415         So, the image buffer is still a cache, we just fill it lazily.
21417         * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
21418         need it any longer.
21420 2006-10-11  Chris Toshok  <toshok@ximian.com>
21422         * XplatUIX11.cs (SetWindowPos): we need to update both position as
21423         well as size after calling XMoveResizeWindow.  This keeps us from
21424         ignoring future SetWindowPos calls.  Fixes the disappearing
21425         DateTimePicker in the ToolBarDockExample from bug #72499.
21427 2006-10-11  Chris Toshok  <toshok@ximian.com>
21429         * TextBoxBase.cs: reorder things a bit when it comes to
21430         resizing-causing-recalculation.  we were recalculating the
21431         document when our position was changed, which shouldn't happen.
21432         We only care about size changes.  Clear up some more redundant
21433         recalculation calls while I'm at it.  This makes the toolbar dock
21434         example snappy when you're just dragging toolbars around (since it
21435         causes a relayout whenever you move one.)
21437 2006-10-11  Chris Toshok  <toshok@ximian.com>
21439         * ToolBarButton.cs (get_Rectangle): this only returns
21440         Rectangle.Empty if Visible == false, or Parent == null.
21441         Parent.Visible doesn't matter.
21443 2006-10-10  Chris Toshok  <toshok@ximian.com>
21445         * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
21446         by .net 1.1, so switch to an internal method instead.
21448 2006-10-10  Chris Toshok  <toshok@ximian.com>
21450         * Control.cs (WM_PAINT): when a control is double buffered we draw
21451         initially to the ImageBuffer and then copy from there.  But when a
21452         parent control which has child controls is double buffered, the
21453         initial drawing doesn't encompass the entire ClientRectangle of
21454         the parent control, so we end up with uninitialized bits (this is
21455         easily seen by dragging the top toolbar in
21456         wf-apps/ToolBarDockExample to the right, quickly).  The fix is to
21457         manually set the ClipRectangle of the paint_event (only the one we
21458         use to populate the ImageBuffer) to ClientRectangle.  Fixes more
21459         of the nastiness in bug #72499.
21461         * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
21462         which we use in Control.cs's WM_PAINT handling.
21464 2006-10-10  Jackson Harper  <jackson@ximian.com>
21466         * TextBoxBase.cs: Finish off the autoscrolling stuff.
21468 2006-10-10  Chris Toshok  <toshok@ximian.com>
21470         * Cursor.cs: Apply a slightly different patch to the one suggested
21471         in #79609.
21473 2006-10-10  Jackson Harper  <jackson@ximian.com>
21475         * MenuItem.cs: Make sure to put the mdi child in the hashtable,
21476         not the parent form.
21477         * TextControl.cs: use difference in old line count vs new count to
21478         calculate how many lines were added, this takes into account soft
21479         line breaks properly.
21481 2006-10-10  Chris Toshok  <toshok@ximian.com>
21483         * LinkLabel.cs: don't call MeasureCharacterRanges against a
21484         rectangle located at 0,0 and the size of the text.  Use
21485         ClientRectangle instead.  This fixes rendering of non-left aligned
21486         link labels.
21488 2006-10-10  Jackson Harper  <jackson@ximian.com>
21490         * TextBoxBase.cs: When we set the selection start position the
21491         caret.
21492         * TextControl.cs: Need to update the caret when we decrement it to
21493         zero.
21494         - Make sure that the selection_visible flag gets reset to false if
21495         the selection isn't visible.  Before this you could get it set to
21496         visible by changing the selection start, then changing the end to
21497         equal the start.
21499 2006-10-09  Jackson Harper  <jackson@ximian.com>
21501         * TreeView.cs: Don't update scrollbars when we aren't visible.
21502         * TreeNodeCollection.cs: Only need to update scrollbars if being
21503         added to an expanded visible node or the root node.
21505 2006-10-09  Chris Toshok  <toshok@ximian.com>
21507         * XplatUIX11.cs (SendMessage): fix NRE.
21509 2006-10-09  Jackson Harper  <jackson@ximian.com>
21511         * TextBoxBase.cs: Implement horizontal autoscrolling.
21512         * TextControl.cs: Add a movement types that allows moving forward
21513         and backwards without wrapping.
21515 2006-10-09  Mike Kestner  <mkestner@novell.com>
21517         * ListViewItem.cs : layout changes for wrapped LargeIcon labels
21518         with focus "expansion" of labels.  Fixes #79532 and then some.
21519         * ThemeWin32Classic.cs : add LineLimit to ListView label format
21520         when wrapping.
21522 2006-10-09  Jackson Harper  <jackson@ximian.com>
21524         * TextBoxBase.cs: Set the default max values to MaxValue since
21525         we use the scrollbar for autoscrolling and the default value is
21526         100.  If we don't do this the caret won't keep up with typing
21527         after about 18 characters.
21528         * TextControl.cs: Make sure the selection is offset by the
21529         viewport x.  This fixes selection when using auto scrolling.
21531 2006-10-07  Andreia Gaita <shana.ufie@gmail.com>
21532         
21533         * Form.cs: The active control should be selected after the 
21534         OnLoad so that any child control initialization that affects
21535         the selection is done. Fixes #79406
21537 2006-10-06  Chris Toshok  <toshok@ximian.com>
21539         * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
21540         to have no evil effects.
21542         - Stop selecting StructureNotifyMask on non-toplevel windows.
21544           The only way children should be resized is by using the SWF api,
21545           and we already send WM_WINDOWPOSCHANGED messages in those cases.
21546           Toplevel windows can be interacted with via the window manager,
21547           and so we keep the input mask there.
21549           The other event StructureNotifyMask gives us (that we care
21550           about) is DestroyNotify.  The code is already structured such
21551           that it assumes we won't be getting a DestroyNotify event for
21552           the window we pass to XDestroyWindow (which is what
21553           StructureNotifyMask is supposed to guarantee.)  So, that code
21554           shouldn't be affected by this either.
21556         - Stop selecting VisibilityChangeMask altogether.
21558           We weren't doing anything with the resulting events anyway.
21559         
21560         This vastly reduces the number of X requests and events we see
21561         when resizing/laying out a large ui.
21563 2006-10-06  Chris Toshok  <toshok@ximian.com>
21565         * ScrollableControl.cs (DisplayRectangle): we need to take into
21566         account the DockPadding regardless of whether or not auto_scroll
21567         == true.  rework this slightly to this effect, and fix bug #79606,
21568         and part of #72499 (you can now see the drag handles and drag
21569         toolbars around).
21571 2006-10-06  Gert Driesen  <drieseng@users.souceforge.net>
21573         * ListViewItem.cs: Collections of selected and checked items are now
21574         dynamically rebuilt. Whenever an item is (un)checked or (de)selected
21575         we mark the collection "dirty".
21576         * ListView.cs: Marked collections readonly. Modified UpdateSelection
21577         to only clear SelectedItems when a new item is selected and MultiSelect
21578         is enabled. CheckedItems and SelectedItems now subscribe to Changed
21579         event of ListViewItemCollection, and mark its list dirty whenever
21580         that event is fire. This allows us to return selected/checked items 
21581         in the same order as they are in the Items collection. This matches
21582         the MS behavior.
21584 2006-10-06  Chris Toshok  <toshok@ximian.com>
21586         * NotifyIcon.cs (HandleMouseUp): only show the context menu on
21587         right mouse clicks.  Fixes bug #79593.
21589 2006-10-06  Chris Toshok  <toshok@ximian.com>
21591         * Splitter.cs: doh, fix splitters that don't want to cancel the
21592         movement when you drag them.  Also, impose the limits on the
21593         values we send to the SplitterMovingEvent.  Fixes #79598.
21595 2006-10-06  Jackson Harper  <jackson@ximian.com>
21597         * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
21598         since we use this for auto scrolling also.
21600 2006-10-05  Chris Toshok  <toshok@ximian.com>
21602         * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus.  I'm
21603         beginning to think that most datagrid column types don't need this
21604         method.  Fixes bug #79392.
21606 2006-10-05  Chris Toshok  <toshok@ximian.com>
21608         * DataGrid.cs: move back to a more lazy scheme for creating the
21609         CurrencyManager, so we aren't updating it every time you set
21610         either DataSource or DataMember.  Also, don't call
21611         RecreateDataGridRows if the currency manager hasn't changed.
21613 2006-10-05  Chris Toshok  <toshok@ximian.com>
21615         * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
21616         emitted, SelectedIndex should already be updated.  Fixes bug
21617         #78929.
21619 2006-10-05  Jonathan Pobst  <monkey@jpobst.com>
21621         * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
21622           ToolStripTextBox.cs: Initial commit.
21623         * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
21625 2006-10-05  Jackson Harper  <jackson@ximian.com>
21627         * TabControl.cs: We need to invalidate the tab control area when
21628         new ones are added (duh).
21630 2006-10-03  Chris Toshok  <toshok@ximian.com>
21632         * Form.cs (ProcessDialogKey): if the focused control is in this
21633         form and is a button, call its PerformClick method here.  Fixes
21634         #79534.
21636 2006-10-04  Jackson Harper  <jackson@ximian.com>
21638         * TabPage.cs: Ignore setting of Visible, and add an internal
21639         method for setting the controls visibility.  TabPage's Visible
21640         property is a little strange on MS, this seems to make us
21641         compatible, and fixes cases where people set all the tab pages to
21642         visible.
21643         * TabControl.cs: Use the new internal setting on tab pages
21644         visibility.
21646 2006-10-03  Mike Kestner  <mkestner@novell.com>
21648         * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
21650 2006-10-03  Mike Kestner  <mkestner@novell.com>
21652         * ListView.cs : use is_visible instead of Visible to check if 
21653         scrollbars should be placed/sized.  Also some max_wrap_width
21654         love for LargeIcon view.  [Fixes #79533]
21656 2006-10-03  Atsushi Enomoto  <atsushi@ximian.com>
21658         * TextControl.cs :
21659           Make set_TextAlign() do actually update the align. Fixed #78403.
21661 2006-10-03  Chris Toshok  <toshok@ximian.com>
21663         * DataGrid.cs: fix a crash when switching datasources if the
21664         vertical scrollbar is at someplace other than Value = 0.  Also,
21665         reduce the number of recalculation passes we do in SetDataSource
21666         from 2 to 1.
21668 2006-10-03  Jackson Harper  <jackson@ximian.com>
21670         * TextBoxBase.cs: Move the if value the same bail check up, we
21671         don't want to empty the document if it is already empty, this
21672         seems to severly mess up the caret.  TODO: I should probably fix
21673         the empty statement to update teh caret somehow.
21675 2006-10-03  Chris Toshok  <toshok@ximian.com>
21677         * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
21678         incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
21679         reflection, an internal row type, properties on said type, etc.)
21680         will work with our datagrid.  Fixes #79531.
21682 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
21684         * FileDialog.cs: Don't crash if a path is not accessible
21685           (System.UnauthorizedAccessException). Fixes #79569.
21686         * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
21687           a ':' too. Return unknown icon for those paths/files.
21689 2006-10-03  Sebastien Pouliot  <sebastien@ximian.com>
21691         * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when 
21692         GetContainerControl returns null.
21694 2006-10-02  Chris Toshok  <toshok@ximian.com>
21696         * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
21697         call to XGetWindowAttributes instead of "handle".  fixes an X
21698         error using notifyicon after the NotifyIconWindow to Form base
21699         class switch.
21701 2006-10-02  Chris Toshok  <toshok@ximian.com>
21703         * XplatUIX11.cs (QueryPointer): new function, encapsulating the
21704         server grab and looping we need to do to get down to the most
21705         deeply nested child window.
21706         (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
21707         QueryPointer again after the WarpPointer so we can generate a
21708         proper (fake) MotionNotify event to be enqueued in the destination
21709         window's queue.
21710         (GetCursorPos): call QueryPointer.
21712         Fixes #79556.
21714 2006-10-02  Jackson Harper  <jackson@ximian.com>
21716         * NotifyIcon.cs: Derive the notify icon from a form, so things
21717         like FindForm work on it.
21718         - Swallow the WM_CONTEXTMENU message, since that is generated on
21719         mouse down, and context menu is a mouse up kinda guy.  I believe
21720         the correct fix here is probably to make the notify icon entirely
21721         NC area, but this seems to work fine for anyone not manipulating
21722         WndProc.
21724 2006-10-02  Jonathan Pobst  <monkey@jpobst.com>
21726         * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
21727           ToolStripItemCollection.cs, ToolStripLabel.cs,
21728           ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
21729           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
21730           Initial implementation.
21731         * TextRenderer.cs: Provide padding to MeasureText.
21733 2006-10-02  Sebastien Pouliot  <sebastien@ximian.com>
21735         * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
21736         of ButtonBaseAccessibleObject. Fix bug #79552.
21738 2006-10-02  Jackson Harper  <jackson@ximian.com>
21740         * MdiWindowManager.cs: When maximizing use the containers client
21741         rect, not it's bounds, so nc area is accounted correctly.
21742         - Use the parent form's size for the menu position, since the
21743         client isn't always the full form size.
21745 2006-10-01  Chris Toshok  <toshok@ximian.com>
21747         * ScrollableControl.cs: make sure neither right_edge or
21748         bottom_edge are < 0, since they're used as LargeChange for the
21749         horiz/vert scrollbars respectively.  Fixes #79539.
21751 2006-10-01  Chris Toshok  <toshok@ximian.com>
21753         * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
21754         the xplatuix11 code can cause us to destroy/recreate our handle.
21756         * XplatUIX11.cs
21757         (SystrayAdd):
21758         - this code can be invoked many times for the same Hwnd.  Make
21759           sure we only destroy the client window once (the first time this
21760           method is called).  This fixes bug #79544.
21761         - Remove the call to the improperly bound XSync.  why we had two
21762           bindings to this, I will never know, but this call resulted in
21763           events being discarded from the queue(!).
21764         - correct a misunderstanding of _XEMBED_INFO - the second atom is
21765           not our current state but the state we wish to be in.  So, 0 if
21766           we don't want to be mapped.  Change it to 1.
21767         (SystrayRemove): The XEMBED spec makes mention of the fact that
21768         gtk doesn't support the reparent of client windows away from the
21769         embedder.  Looking at gtksocket-x11.c seems to agree with this.
21770         The only avenue we have for removing systray icons is to destroy
21771         them.  We don't want the handle to go away for good, though, so
21772         call InternalRecreateHandle on the NotifyIconWindow.  Fixes
21773         #79545.
21774         
21775 2006-10-01  Chris Toshok  <toshok@ximian.com>
21777         * Form.cs (WndProc): inline the native_enabled variable usage into
21778         the cases in which it's used.  Fixes #79536.
21780 2006-09-29  Mike Kestner  <mkestner@novell.com>
21782         * ListView.cs : toggle the selection state for ctrl clicks in 
21783         multiselect mode. [Fixes #79417]
21785 2006-09-29  Mike Kestner  <mkestner@novell.com>
21787         * ListView.cs : kill CanMultiSelect and refactor the selection
21788         code to support multiselection in the absence of mod keys. Steal
21789         arrow/home/end keys by overriding InternalPreProcessMessage to
21790         restore regressed keynav behavior.
21791         [Fixes #79416]
21793 2006-09-29  Jackson Harper  <jackson@ximian.com>
21795         * MdiClient.cs: Repaint the titlebars when the active window is
21796         changed.
21798 2006-09-29  Chris Toshok  <toshok@ximian.com>
21800         * Application.cs: when entering a runloop with a modal, make sure
21801         the hwnd is enabled.  Fixes #79480.
21803 2006-09-29  Chris Toshok  <toshok@ximian.com>
21805         * DataGrid.cs (CurrentCell): if we try to navigate to the add row
21806         when ListManager.CanAddRows == false, bump us back one.
21808         * DataGridColumnStyle.cs (ParentReadOnly): remove the
21809         listmanager.CanAddRows check.  This makes ArrayLists uneditable
21810         using a datagrid, which is not right.
21811         (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
21812         is an IEditable, but call property_descriptor.SetValue regardless.
21813         fixes #79435.
21815 2006-09-29  Chris Toshok  <toshok@ximian.com>
21817         * DataGridBoolColumn.cs: we need to test equality in the face of
21818         possible null values (as is the case with the default NullValue).
21819         This patch keeps us from crashing in that case.
21821 2006-09-29  Jackson Harper  <jackson@ximian.com>
21823         * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
21824         here, since it will get called for every node collection in the
21825         tree. This is now done in the treeview once the sorting is
21826         finished.
21827         * TreeView.cs: Recalculate the visible order, and update the
21828         scrollbars after sorting, set the top nope to the root so that the
21829         recalc actually works.
21831 2006-09-29  Chris Toshok  <toshok@ximian.com>
21833         * LinkLabel.cs: more handling of the default link collection in
21834         the face of LinkArea manipulation.  The default link collection
21835         contains 1 element (start=0,length=-1).  If the user sets LinkArea
21836         to anything and the links collection is the default, clear it.
21837         Then only add the link if its nonempty.  Fixes #79518.
21839 2006-09-29  Chris Toshok  <toshok@ximian.com>
21841         * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
21842         piece correctly when we hit a '\n'.  Fixes #79517.
21844 2006-09-29  Chris Toshok  <toshok@ximian.com>
21846         * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
21847         change the binding of gdk_init_check to take two IntPtr's, and
21848         pass IntPtr.Zero for both of them.  Fixes #79520.
21850 2006-09-29  Mike Kestner  <mkestner@novell.com>
21852         * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
21853         [Fixes #78779]
21855 2006-09-28  Jackson Harper  <jackson@ximian.com>
21857         * XplatUIX11.cs: When translating NC messages make sure we go from
21858         whole window to screen, not client window to screen.
21859         * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
21860         method doesn't exist
21861         - Skip over controls that aren't forms when arranging.
21863 2006-09-28  Jackson Harper  <jackson@ximian.com>
21865         * XplatUIWin32.cs: Clip the rect to the parent window.
21866         * XplatUIStructs.cs: Add clipping modes struct.
21867         * InternalWindowManager.cs: New private method that factors title
21868         bar heights in when calculating the pos of an NC mouse message.
21869         - Use SendMessage to force a paint when the form's size is changed
21870         instead of painting the decorations immediately.
21871         - Don't let the NC button click messages get to DefWndProc,
21872         because they will attempt to handle windowing themself, and this
21873         messes up z-order (it will put them in front of the scrollbars).
21874         * XplatUIX11.cs: Make sure that we don't reset window managers if
21875         we already have one (ie the window is an MDI window).
21877 2006-09-28  Chris Toshok  <toshok@ximian.com>
21879         * MainMenu.cs: fix #79405 by way of a disgusting hack.  all the
21880         menu code really needs going over.
21882 2006-09-27  Chris Toshok  <toshok@ximian.com>
21884         * XplatUIX11.cs (SetWMStyles): more metacity wonderment.  turns
21885         out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
21886         window is maximizable.  So, we need to make sure that even if we
21887         clear the border/wm frame of those functions, they're still
21888         available (basically, we remove the decoration without removing
21889         the function).  Half the fix for #79338.
21891 2006-09-27  Chris Toshok  <toshok@ximian.com>
21893         * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
21894         Fixes bug #79515.
21896 2006-09-27  Chris Toshok  <toshok@ximian.com>
21898         * Splitter.cs: reorder things a bit so that we don't actually
21899         draw/move the splitter until after calling OnSplitterMoving.  This
21900         lets users cancel/disallow the movement by explicitly setting
21901         event.SplitX/SplitY.  Fixes #79372.
21903 2006-09-27  Jackson Harper  <jackson@ximian.com>
21905         * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
21906         because it is most likely on a window being destroyed, and that
21907         will give us an X11 error.
21909 2006-09-27  Chris Toshok  <toshok@ximian.com>
21911         * PropertyGridView.cs: half of the fix for #78190.  Clicking on
21912         the dropdown button now toggles between showing and hiding the
21913         dropdown.  Also, get rid of dropdown_form_showing and just use
21914         dropdown_form.Visible.  We still don't do a grab, but I'll leave
21915         that part to someone who has handled Capture-fu before.
21917 2006-09-27  Chris Toshok  <toshok@ximian.com>
21919         * DataGrid.cs: return false if alt isn't pressed when '0' is
21920         pressed.  this keeps the '0' key from being swallowed, and fixes
21921         bug #79350.
21923 2006-09-27  Chris Toshok  <toshok@ximian.com>
21925         * ComboBox.cs: use Invalidate when scrolling the dropdown list.
21926         Calling Refresh (in response to a scrollbar event) screws up the
21927         scrollbar painting.  Fixes bug #78923.
21929 2006-09-27  Chris Toshok  <toshok@ximian.com>
21931         * Theme.cs (SystemResPool): make the "if hashtable[key] == null
21932         then insert into hashtable" blocks threadsafe.
21934 2006-09-27  Chris Toshok  <toshok@ximian.com>
21936         * MessageBox.cs (CreateParams): the styles should be |'ed with our
21937         baseclass's, since otherwise the
21938         ControlBox/MinimizeBox/MaximizeBox assignments above have no
21939         effect.  This gets the close button back in messageboxes.
21941 2006-09-27  Chris Toshok  <toshok@ximian.com>
21943         * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
21944         flag, not just != 0.  this makes flags that are actually multiple
21945         bits (like WS_CAPTION) work.  fixes bug #79508.
21947 2006-09-27  Jordi Mas i Hernandez <jordimash@gmail.com>
21949         * PageSetupDialog.cs: add support for getting and settings the 
21950         paper size, source and orientation.
21952 2006-09-26  Chris Toshok  <toshok@ximian.com>
21954         * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
21955         and caption == "", we need to remove the resize handles as well as
21956         the title bar.
21958         * Control.cs (set_Text): turns out that setting Text on a form
21959         should change the WM styles on the window, since if ControlBox ==
21960         false, the only way to get a window border is to have a non-""
21961         Text property.  check winforms/forms/text.cs for an example.  so,
21962         call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
21963         update both window styles and title.  This fixes a lot of dialogs
21964         (including the preferences dialog in MonoCalendar.)
21966 2006-09-26  Chris Toshok  <toshok@ximian.com>
21968         * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
21969         control isn't a Form), call Win32ShowWindow to hide the window,
21970         but don't update the control Visible property.  When we reparent
21971         back to a parent control, call SetVisible in order for the
21972         window's visibility to be reinstated.
21974         * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
21975         the FosterParent.
21977         * Control.cs (ControlCollection.Remove): remove that value.Hide()
21978         call for good, since it breaks MonoCalendar (and other things I'm
21979         sure.) Also, set all_controls to null *after* the owner calls,
21980         which end up regenerating it.
21981         (ChangeParent): allow new_parent to be == null, passing
21982         IntPtr.Zero down to XplatUI.
21984         this fixes #79294 the right way.
21986 2006-09-26  Mike Kestner  <mkestner@novell.com>
21988         * GridEntry.cs : internal SetParent method.
21989         * PropertyGrid.cs : attach to property changed on the proper
21990         target if we have a hierarchical grid with subobjects. Setup
21991         GridItem.Parent for hierarchical items.
21992         * PropertyGridView.cs : Set value on the correct target for
21993         hierarchical grids. [Fixes #78903]
21995 2006-09-26  Chris Toshok  <toshok@ximian.com>
21997         * Control.cs (ChildNeedsRecreating): this should return true if
21998         either we're being recreated and the child is in our list, or our
21999         parent is waiting for our recreation.
22001 2006-09-26  Chris Toshok  <toshok@ximian.com>
22003         * Control.cs (ControlCollection.Remove): reinstate the
22004         value.Hide() call as suggested in bug #79294.
22006 2006-09-26  Sebastien Pouliot  <sebastien@ximian.com>
22008         * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
22009         coordinates (versus a relative move).
22011 2006-09-26  Chris Toshok  <toshok@ximian.com>
22013         * Control.cs: rework child recreation a little bit.  It turns out
22014         that we race between the DestroyNotify the WM_DESTROY message.  If
22015         the parent gets its DestroyNotify before the child gets the
22016         WM_DESTROY message, the child ends up not recreating (since the
22017         parent finishes its recreation on DestroyNotify, and the child
22018         checks ParentIsRecreating.)
22020         So, instead we store off a list of all the child controls which
22021         need to be recreated when the parent control starts to recreate
22022         itself.  Then, when child controls get their WM_DESTROY message we
22023         check to see if they're in the parent's pending recreation list,
22024         and if so, we recreate.  This removes all dependency on ordering
22025         from the code and fixes the initial MonoCalendar upgrade dialog.
22026         
22027 2006-09-26  Jackson Harper  <jackson@ximian.com>
22029         * TextControl.cs: Use the Line to get the length of the line,
22030         since soft line breaks can change the end line.
22032 2006-09-26  Chris Toshok  <toshok@ximian.com>
22034         * Control.cs (ControlCollection.AddImplicit): don't add the
22035         control again if it's already in one of our lists.  This keeps us
22036         from adding controls over and over again for comboboxes when their
22037         handle gets recreated (as the combobox adds implicit controls in
22038         OnHandleCreated).  Fixes the X11 errors in bug #79480.
22040 2006-09-26  Jackson Harper  <jackson@ximian.com>
22042         * TextControl.cs: When deleting characters make sure that any
22043         orphaned zero lengthed tags get deleted.
22044         - Fix ToString for zero lengthed tags.
22046 2006-09-25  Jackson Harper  <jackson@ximian.com>
22048         * TextControl.cs: When getting a tag at the location there can be
22049         multiple tags at the same spot, these are 0-lengthed tags that
22050         appear when extra formatting has been stuck in a location.  We
22051         need to pull out the last of these 0 lengthed tags.
22053 2006-09-25  Jackson Harper  <jackson@ximian.com>
22055         * TextControl.cs: Fix print out in debug method.
22056         * TextBoxBase.cs: When text is set bail if we are setting to the
22057         previous value.
22058         
22059 2006-09-24  Alexander Olk  <alex.olk@googlemail.com>
22061         * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
22062           It is now possible to change the selected index in a FontXXXListBox
22063           with the up and down arrow keys from the FontXXXTextBoxes.
22064           Also, send the FontXXXTextBox mouse wheel event to the corresponding
22065           FontXXXListBoxes to match ms.
22067 2006-09-22  Sebastien Pouliot  <sebastien@ximian.com>
22069         * SystemInformation.cs: Return a clone of the theme's MenuFont because
22070         anyone can dispose it, anytime. All other properties returns enums, 
22071         structs or basic types so they don't need such tricks.
22073 2006-09-22  Jackson Harper  <jackson@ximian.com>
22075         * XplatUI.cs:
22076         * XplatUIWin32.cs:
22077         * Clipboard.cs:
22078         * DataFormats.cs:
22079         * XplatUIOSX.cs:
22080         * XplatUIDriver.cs: Update interface to add a primary selection
22081         flag, so the driver can use the primary selection buffer if
22082         needed.
22083         * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
22085         * RichTextBox.cs: We need to supply the data object to paste now
22086         (so we can choose to supply CLIPBOARD or PRIMARY).
22087         * TextBoxBase.cs: Supply data object to paste (see above).
22088         - Middle click uses the primary selection data object.
22089         
22090 2006-09-21  Chris Toshok  <toshok@ximian.com>
22092         * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
22093         of SetWMStyles.  It's still a rat's nest and is largely
22094         order-dependent which I dislike immensely.  This also fixes the X
22095         button disappearing from toplevel forms.
22097 2006-09-21  Mike Kestner <mkestner@novell.com>
22099         * ListBox.cs: move Jordi's click/dblclick raising code to the
22100         mouse up handler.
22102 2006-09-21  Jordi Mas i Hernandez <jordimash@gmail.com>
22104         * ListBox.cs: Fixes 79450
22106 2006-09-21  Mike Kestner <mkestner@novell.com>
22108         * TreeView.cs: guard against disposed conditions in UpdateScrollbars
22109         to deal with people updating the TreeNodeCollection after the tree
22110         is disposed.  "Fixes" 79330.
22112 2006-09-20  Jackson Harper <jackson@ximian.com>
22114         * TextControl.cs: Push the cursor record onto the undo stack
22115         before the delete action. This fixes 78651.
22117 2006-09-20  Jonathan Chambers  <joncham@gmail.com>
22119         * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
22120         CreateParams. Fixes 79329.
22122 2006-09-19  Chris Toshok  <toshok@ximian.com>
22124         * XplatUIX11.cs: a couple of blanket code massage passes to clean
22125         things up a bit.  First, get rid of the NetAtoms array (and the NA
22126         enum), and just embed the atoms as static fields.  Also, add a
22127         couple of functions (StyleSet and ExStyleSet) to clean up all the
22128         bitmask testing of styles.
22130         * X11Structs.cs: remove the NA enum, not needed anymore.
22131         
22132 2006-09-19  Chris Toshok  <toshok@ximian.com>
22134         * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
22135         (mapping them to _NET_WM_WINDOW_TYPE_UTILITY).  and add a little
22136         added cleanup to get MessageBox titles appearing again, which were
22137         broken by my earlier fix for caption-less/ControlBox-less windows.
22139 2006-09-18  Jonathan Pobst <monkey@jpobst.com>
22141         * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
22142           ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
22143           ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
22144           ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
22145           ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
22146           ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
22147           ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
22148           ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
22149           ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
22150           ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
22151           ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
22152             Inital import.
22153         * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
22154           ToolStripButton.cs: Stubs needed for above.
22155         * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
22157 2006-09-15  Chris Toshok  <toshok@ximian.com>
22159         * XplatUIX11.cs:
22160         - make the MessageQueues hashtable Synchronized.
22161         
22162         - SendMessage: if the Hwnd is owned by a different thread, use the
22163         AsyncMethod stuff to dispatch the SendMessage on the hwnd's
22164         thread.  Fixes bug #79201.
22166 2006-09-15  Chris Toshok  <toshok@ximian.com>
22168         * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly.  If
22169         ControlBox == false, we disallow maximize/minimize/close.  If the
22170         form Caption is "" we also disallow move (and get rid of the Title
22171         decoration).  Unfortunately, regardless of how things are set,
22172         we're stuck with the Title and WM menu.
22174 2006-09-15  Chris Toshok  <toshok@ximian.com>
22176         * Application.cs: add locking around the static message_filters
22177         ArrayList, part of #79196.
22179 2006-09-15  Chris Toshok  <toshok@ximian.com>
22181         * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
22182         Form.ControlBox == false, the window has no titlebar nor resize
22183         handles.  fixes bug #79368.
22185 2006-09-15  Chris Toshok  <toshok@ximian.com>
22187         * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
22188         >= 0.  Fixes bug #79370.
22190 2006-09-15  Jonathan Pobst <monkey@jpobst.com>
22191         * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
22192         * Control.cs:
22193             Add properties: LayoutEngine, Margin, DefaultMargin.
22194             Add method: GetPreferredSize.
22195             Move layout logic from PerformLayout to layout engines. 
22197 2006-09-13  Chris Toshok  <toshok@ximian.com>
22199         * XplatUIX11.cs: more destroy work.  Jackson pointed out that my
22200         fix for #79326 broke #78718, so this change addresses that.
22202         - in SendWMDestroyMessages remove the call to
22203         CleanupCachedWindows, since we might be recreating the control and
22204         need to maintain the references to right Hwnd handles.  Also, set
22205         the zombie flag to true for each of the children in the hierarchy
22206         instead of calling hwnd.Dispose.  This will cause GetMessage to
22207         ignore all events for the window except for DestroyNotify.
22209         - In GetMessage, ignore messages except for DestroyNotify for
22210         zombie hwnds.
22211         
22212         * Control.cs: revert the is_recreating fix from the last
22213         ChangeLog.  It's definitely "right", but it breaks switching from
22214         an MDI form to a non-MDI form.  Will need to revisit that.
22216         * Hwnd.cs: add a zombie flag, which means "the
22217         client_window/whole_window handles are invalid, but we're waiting
22218         for the DestroyNotify event to come in for them".  Set the flag to
22219         false explicitly if setting WholeWindow/ClientWindow, and also
22220         when Disposing.
22221         
22222 2006-09-13  Chris Toshok  <toshok@ximian.com>
22224         * XplatUIX11.cs: rework window destruction slightly.
22226         - when destroying the windows associated with a control, we don't
22227         need 2 separate XDestroyWindow calls.  Just the one for the
22228         whole_window (or for client_window if whole_window is somehow
22229         IntPtr.Zero -- can this happen?) is enough.
22231         - reworked SendWMDestroyMessages slightly, so we always dispose
22232         the child control hwnd's after sending the messages.
22233         
22234         - refactored out the ActiveWindow/FocusWindow/Caret clearing from
22235         the two places it was used (one was even using hwnd.Handle and the
22236         other hwnd.client_window.  ugh), adding another call in
22237         SendWMDestroyMessages.  We need this new call because now the
22238         DestroyNotify events in the queue will be ignored for the child
22239         controls (as their hwnd's were disposed, and the window id's
22240         removed from the hashtable in SendWMDestroyMessages.) fun, eh?
22242         - this fixes bug #79326.
22244 2006-09-13  Chris Toshok  <toshok@ximian.com>
22246         * Control.cs: don't always set is_recreating to false at the end
22247         of RecreateHandle, since sometimes we're not done (and won't be
22248         until WndProc handles the WM_DESTROY message).  Also, set
22249         is_recreating to false in the WM_DESTROY handling code.  Part of
22250         the fix for bug #79326.
22252 2006-09-13  Miguel de Icaza  <miguel@novell.com>
22254         * X11DesktopColors.cs: Start the droppage of debugging messages.
22256         * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
22258 2006-09-13  Jonathan Pobst <monkey@jpobst.com>
22260         * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
22262 2006-09-12  Chris Toshok  <toshok@ximian.com>
22264         * DataGrid.cs (get_ListManager): if the list_manager is null, try
22265         to create it using SetDataSource.  Fixes bug #79151.
22267 2006-09-11  Chris Toshok  <toshok@ximian.com>
22269         * XEventQueue.cs: add a DispatchIdle property.
22271         * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
22272         either the queue is null, or the queue has DispatchIdle set to
22273         true.
22274         (DoEvents): set queue.DispatchIdle to false around the
22275         peek/translate/dispatch message loop in this method.  This keeps
22276         Application.Doevents from emitting idle events.  Part of the fix
22277         for #78823.
22279 2006-09-11  Chris Toshok  <toshok@ximian.com>
22281         * DataGrid.cs (set_DataSource): make this work for both the
22282         winforms/datagrid test and ReportBuilder.  It seems as though when
22283         we've created a ListManager (or maybe it's if we have a
22284         BindingContext?), when we set the DataSource it clears the
22285         DataMember to "".  otherwise we reuse the datamember.  Fixes bug
22286         #79333.
22288 2006-09-11  Chris Toshok  <toshok@ximian.com>
22290         * XplatUIX11.cs: deal with queue being null, which happens in all
22291         the Clipboard functions.  Fixes one of the two problems mentioned
22292         in #78612.
22294 2006-09-11  Chris Toshok  <toshok@ximian.com>
22296         * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
22297         button on various spots (including outside the menu) works closer
22298         to MS, and doesn't crash.  Fixes #79343.
22300 2006-09-11  Gert Driesen  <drieseng@users.sourceforge.net>
22302         * ListView.cs: Do not initialize item_sorter in init. To match MS,
22303         return null for ListViewItemSorter if View is SmallIcon or LargeIcon
22304         and the internal comparer is set. When a new ListViewItemSorter is set,
22305         sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
22306         was specified. No further processing is necessary if SortOrder is set
22307         to it's current value. If Sorting is modified to None, and View is
22308         neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
22309         (either custom or our internal ItemComparer) to null, on 1.0 profile
22310         only set item_sorter to null if its our internal IComparer. If Sorting
22311         is modified to Ascending or Descending, then use our internal IComparer
22312         if none is set, and if the current IComparer is our internal one then:
22313         on 2.0 profile always replace it with one for new Sorting, and on 1.0
22314         profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
22315         Enum.IsDefined to verify whether a valid View value is specified in
22316         its setter. Automatically sort listview items when listview is
22317         created. In Sort, do nothing if ListView is not yet created, or if
22318         no item_sorter is set (no Sorting was set, Sorting was explicitly set
22319         to None or ListViewItemSorter was set to null). Added Sort overload
22320         taking a bool to indicate whether the ListView should be redrawn when
22321         items are sorted (we use this in ListViewItemCollection to avoid double
22322         redraws). Modified our internal IComparer to take the sort order into
22323         account. In Add and AddRange methods of ListViewItemCollection, also
22324         call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
22325         view), but use overload with noredraw option to avoid double redraw.
22326         On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
22327         true when View is Tile, and do the same when attempting to set View to
22328         Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
22329         for selected/checked indices, as it involves overhead when sorting is
22330         done while these collections are not used all that often. Instead
22331         we'll build the indices on demand. Modified IList implementation of
22332         CheckedIndexCollection to use public methods if object is int.
22333         Modified CheckedListViewItemCollection to hide checked items if
22334         ListView.CheckBoxes is false. Removed LAMESPEC remark in 
22335         ListViewItemCollection as the .NET SDK docs have been fixed. Modified
22336         IList implementation in SelectedIndexCollection to use public methods
22337         if object is int. Modified SelectedListViewItemCollection to hide
22338         selected items if listview is not yet created.
22339         * ListViewItem.cs: CheckedIndices list no longer needs to be
22340         maintained separately (see ListView changes). Also clone font, fixes
22341         test failure.
22343 2006-09-11  Mike Kestner  <mkestner@novell.com>
22345         * ComboBox.cs: if we are updating the contents of the currently
22346         selected index, refresh the control or the textbox selection.
22347         [Fixes #79066]
22349 2006-09-11  Mike Kestner  <mkestner@novell.com>
22351         * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since 
22352         the 'specified' logic has been moved there.  This seems like a bug 
22353         in Control.cs, since our current SetBoundsCore completely ignores 
22354         the specified parameter.  Peter's commit seems to indicate that is 
22355         the way the MS control implementation works.  [Fixes #79325]
22357 2006-09-10  Jonathan Chambers  <joncham@gmail.com>
22359         * XplatUI.cs: Set default_class_name to be composed
22360         of current domain id. This allows MWF to be loaded in multiple
22361         domains on Win32.
22363 2006-09-09  Miguel de Icaza  <miguel@novell.com>
22365         * X11Keyboard.cs: If we are unable to obtain the input method, do
22366         not call CreateXic to create the input context.   Should fix
22367         #78944/79276.
22369 2006-09-08  Alexander Olk  <alex.olk@googlemail.com>
22371         * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
22372           Simplified gnome support by adding more pinvokes to get the
22373           icon for a file or mime type.
22375 2006-09-08  Jackson Harper  <jackson@ximian.com>
22377         * MenuAPI.cs: Deslect popup context menu items before closing the
22378         window, so that you don't see the previously selected item
22379         selected when you reopen the menu.
22380         * TextControl.cs: Update the cursor position even if we don't have
22381         focus.  This fixes typing in things like the ComboBox.  I'm not
22382         totally sure we should always set the visibility if we don't have
22383         focus, but couldn't find any corner cases where the cursor showed
22384         up when it shouldn't.
22386 2006-09-08  Chris Toshok  <toshok@ximian.com>
22388         * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
22389         our arrays are length 256.  & 0xff before indexing.  Fixes the
22390         crash in bug #78077.
22391         
22392 2006-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22394         * ThemeWin32Classic.cs: 
22395         * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
22396         is true. Handle that check box too.
22398 2006-09-07  Chris Toshok  <toshok@ximian.com>
22400         * MenuAPI.cs: move the PerformClick call to OnMouseUp.  Fixes bug
22401         79244.
22403 2006-09-07  Chris Toshok  <toshok@ximian.com>
22405         * Control.cs: in set_BackColor only do the work if
22406         background_color != value.
22408         * XplatUIX11.cs: move the clearing of invalid areas (both client
22409         and nc) to the same block of code where we set (nc_)expose_pending
22410         to false.  That is, move it from PaintEventEnd to PaintEventStart,
22411         so things that cause invalidates from within OnPaint will trigger
22412         another call to OnPaint.  Fixes bug #79262.
22414 2006-09-07  Alexander Olk  <alex.olk@googlemail.com>
22416         * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
22417         * FileDialog.cs: Fix typo
22419 2006-09-07  Jackson Harper  <jackson@ximian.com>
22421         * ThemeWin32Classic.cs:  oops, forgot to commit.  Draw the images
22422         for tab pages if they have any.
22424 2006-09-06  Mike Kestner  <mkestner@novell.com>
22426         * Splitter.cs: use the "current" rect when finishing drag handle
22427         to avoid an artifact demonstrated by resedit.exe.  [Fixes #79251]
22429 2006-09-06  Mike Kestner  <mkestner@novell.com>
22431         * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
22432         support offset splitters. [Fixes #79298]
22434 2006-09-06  Alexander Olk  <alex.olk@googlemail.com>
22436         * Mime.cs: Fixed a bug that could override the global mime type
22437           result.
22439 2006-09-05  Jackson Harper  <jackson@ximian.com>
22441         * TabControl.cs: Better calculation method for setting the slider
22442         pos. Prevents crashes on really wide tabs.
22443         - Draw Image on tab pages if an image list is used.
22445 2006-09-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22447         * MonthCalendar.cs: When Font changes, the Size should be
22448         updated to fit the new font's space requirements.
22450 2006-09-02  Alexander Olk  <alex.olk@googlemail.com>
22452         * ListBox.cs: If the items are cleared with Items.Clear set
22453           top_index to 0.
22455 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22457         * MonthCalendar.cs: Handle arrow keys as input keys. Also
22458         fire DateChanged event instead of DateSelected event when
22459         the date was changed by keyboard interaction.
22461 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22463         * DateTimePicker.cs: Handle DateChanged for the associated
22464         month_calendar control, and set month_calendar.Font from 
22465         OnFontChanged method, as well as resize the height of the
22466         control when needed. Make PreferredHeight proportional.
22468 2006-09-01  Chris Toshok  <toshok@ximian.com>
22470         * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
22471         properties.
22473         * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
22475 2006-09-01  Peter Dennis Bartok  <pbartok@novell.com> 
22477         * FileDialog.cs: Set ClientSize instead of window size, to allow space
22478           for decorations (Fixes #79219)
22480 2006-09-01  Mike Kestner  <mkestner@novell.com>
22482         * ComboBox.cs: first stab at sorting plus some selection handling
22483         fixes to bring us more in line with MS behavior.  Also switches back
22484         to index based selection.  Alternative patches for index-based 
22485         selection were provided by Jackson Harper, Carlos Alberto Cortez, 
22486         and latency@gmx.de on bug 78848.  I assume they were similar to this
22487         code I've had simmering in my tree forever.
22488         [Fixes #78848]
22490 2006-09-01  Chris Toshok  <toshok@ximian.com>
22492         * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
22493         when setting list position guard against ending up with a -1 index
22494         (the other part of the fix for #78812).  Should probably make sure
22495         we don't need the analogous fix in the ItemDeleted case.
22497         * DataGrid.cs:
22498         - in SetDataSource, work around the fact that the way
22499         OnBindingContextChanged is invoked will cause us to re-enter this
22500         method.  I'll remove the hack once I investigate
22501         OnBindingContextChanged.
22503         - fix the logic in set_DataSource and set_DataMember (basically
22504         what to do if the other of the two is null.)
22505         
22506         - in OnListManagerItemChanged, we need to take into account the
22507         edit row when deciding whether or not to call RecreateDataGridRows
22508         (part of the fix for #78812).
22510 2006-09-01  Jackson Harper  <jackson@ximian.com>
22512         * Splitter.cs: Don't do anything if there is no control to affect
22513         (prevents us from crashing in weird tet cases).
22514         * TreeView.cs: Bounding box for the mouse movement reverting
22515         focus/selection back to previously selected node.  This matches
22516         MS, and makes the tree a lot more useable.
22517         * GroupBox.cs: Instead of drawing over the lines of the groupbox,
22518         use clipping so they are not drawn.  This fixes when the control
22519         is set to have a transparent background, or if it was over an
22520         image.
22522 2006-09-01  Alexander Olk  <alex.olk@googlemail.com>
22524         * MimeIcon.cs: Improved handling for reading default icons when
22525           using gnome (2.16 made it necessary). Check and read svg icons
22526           first, then 48x48 and then 32x32 icons.
22528 2006-08-31  Chris Toshok  <toshok@ximian.com>
22530         * DataGridTextBoxColumn.cs: only hide the textbox if it's still
22531         visible.
22533         * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
22534         ProcessKeyPreview.  Fixes part of #77806.
22536         * DataGrid.cs: big patch.
22538         - revert the queueing up of DataSource/DataMember if inside
22539         BeginInit/EndInit calls.  That's not the way the datagrid achieves
22540         its delayed databinding.  Instead, call SetDataSource in
22541         OnBindingContextChanged.  This mimic's MS's behavior, and fixes
22542         #78811.
22544         - Also, it wasn't mentioned in #78811, but the test case exhibits
22545         behavior that was lacking in our datagrid implementation - Columns
22546         that have mapping names that don't exist in the datasource's
22547         properties aren't shown.  Yuck.  To fix this I added the bound
22548         field to the column style, and basically any calculation to figure
22549         out anything about columns uses a loop to find the bound columns.
22550         still need to investigate if I can cache an array of the bound
22551         columns or if the indices must be the same.
22553         - When setting CurrentCell, we no longer abort if the cell being
22554         edited was in the add row.  This fixes the other part of #77806.
22556         - The new code also fixes #78807.
22557         
22558         * ThemeWin32Classic.cs: perpetrate the same disgusting
22559         column.bound field hack, and only render bound fields.
22561 2006-08-31  Chris Toshok  <toshok@ximian.com>
22563         * DataGridColumnStyle.cs: add bound field.  this field is true if
22564         the datasource has a property corresponding to the mapping name.
22566         * DataGridTableStyle.cs: set the bound field on the column styles
22567         depending on whether or not we have a column for that property.
22569 2006-08-31  Peter Dennis Bartok  <pbartok@novell.com> 
22571         * Splitter.cs (SetBoundsCore): Don't ignore width/height of the 
22572           splitter control (fixes #79228)
22574 2006-08-31  Chris Toshok  <toshok@ximian.com>
22576         * DataGridColumnStyle.cs: we need to delay the assignment of
22577         property descriptor until the last possible moment due to the lazy
22578         databinding stuff in the datagrid.  Also, fix the exceptions
22579         thrown by CheckValidDataSource to match MS.
22581 2006-08-31  Jackson Harper  <jackson@ximian.com>
22583         * Form.cs: When activated select the active control, if there is
22584         no active control, we select the first control.
22585         * XplatUIX11.cs: If there is no focus control when we get a
22586         FocusIn event, find the toplevel form and activate it.  This
22587         occurs when you popup a window, it becomes the focus window, then
22588         you close that window, giving focus back to the main window.
22590 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22592         * MonthCalendar.cs: 
22593         * ThemeWin32Classic.cs: Cache Font in bold style, as well
22594         as StringFormat with Center alignments in MonthCalendar,
22595         instead of creating new ones when drawing the control. 
22596         Also, draw the month name in bold style.
22598 2006-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
22600         * Control.cs:
22601           - PerformLayout(): It would seem MS performs the fill even if the 
22602             control is not visible (part of #79218 fix)
22603           - ResetBackColor(): Use the setter to reset the color, to allow
22604             overriders to catch the change.
22605         * Form.cs:
22606           - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
22607           - CreateHandle(): dito (part of $79218 fix)
22608           - Don't set an icon if we have a dialog
22609         * ScrollableControl.cs:
22610           - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
22611           - ScrollIntoView(): No need to scroll if control is already visible
22612             (resolves fixme and fixes #79218)
22614 2006-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22616         * MonthCalendar.cs: Change proportions in SingleMonthSize
22617         to match the aspect of the original control.
22619 2006-08-29  Alexander Olk  <alex.olk@googlemail.com>
22621         * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
22622           get updated when they get maximized.
22624 2006-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
22626         * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
22628 2006-08-29  Chris Toshok  <toshok@ximian.com>
22630         * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
22632 2006-08-29  Jackson Harper  <jackson@ximian.com>
22634         * TreeView.cs: Need to track selected node and highlighted node,
22635         they aren't always the same thing, when the mouse is down on a
22636         node it is hilighted, but not selected yet.
22637         - Do the HideSelection stuff right
22638         - Need to focus on rbutton mouse down. And redraw selection when
22639         right click is mouse upped.
22641 2006-08-29  Mike Kestner  <mkestner@novell.com>
22643         * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
22644         when SubItems.Count < Columns.Count.  [Fixes #79167]
22646 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com> 
22648         * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
22650 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com>
22652         * XplatUIX11.cs: Preempt the roundtrip for getting the location back
22653           from X. Only send based on ConfigureNotify if we don't have the
22654           correct location in hwnd (if the window manager moved us)
22656 2006-08-28  Mike Kestner  <mkestner@novell.com>
22658         * ListView.cs: remove a TODO. 
22659         * ThemeWin32Classic.cs: implement HideSelection support for ListView.
22660         [Fixes ListView part of #79166]
22662 2006-08-28  Mike Kestner  <mkestner@novell.com>
22664         * ListView.cs: move wheel handler to parent since it is focused
22665         instead of the item_control now.  [Fixes #79177]
22667 2006-08-28  Mike Kestner  <mkestner@novell.com>
22669         * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
22670         when the control is focused. [Fixes #79171]
22672 2006-08-28  Mike Kestner  <mkestner@novell.com>
22674         * ListView.cs: size the item and header controls for empty and
22675         unscrollable views.
22676         * ThemeWin32Classic.cs: draw disabled backgrounds.
22677         [Fixes #79187]
22679 2006-08-28  Chris Toshok  <toshok@ximian.com>
22681         * Form.cs: remove unused "active_form" static field.
22683         * Hwnd.cs: lock around accesses to static windows collection.
22685         * Application.cs: lock threads in Exit ().
22687 2006-08-28  Chris Toshok  <toshok@ximian.com>
22689         * NativeWindow.cs: lock around accesses to window_collection.
22690         
22691 2006-08-28  Chris Toshok  <toshok@ximian.com>
22693         * Control.cs: err, fix this the right way, by locking on controls
22694         when using it.  not by making it synchronized.
22696 2006-08-28  Chris Toshok  <toshok@ximian.com>
22698         * Control.cs: make the static "controls" field synchronized, as it
22699         gets updated from multiple threads.
22701 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
22703         * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
22704           Prevent other threads from exiting when calling thread sets quit state.
22705         * XEventQueue.cs: Added PostQuitState property
22707 2006-08-27  Chris Toshok  <toshok@ximian.com>
22709         * AsyncMethodData.cs: add a slot for the window handle.
22711         * XplatUIX11.cs (SendAsyncMethod): send the event to the right
22712         window (the destination control's window, not the foster window).
22714         * Control.cs (BeginInvokeInternal): store the window's handle in
22715         the AsyncMethodData.
22716         
22718 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
22720         * XplatUIX11.cs:
22721           - PostQuitMessage: Removed resetting S.D display handle, we might have
22722             another loop started after calling PostQuitMessage (Fixes #79119)
22723           - Created destructor to reset S.D handle
22725 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com> 
22727         * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
22729 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
22731         * TextControl.cs (Insert): Update the caret position even if we don't
22732           have a handle yet, just don't call the driver in that case.
22733         * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
22734           to the end of the new selection text (Fixes #79184)
22736 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
22738         * Form.cs (Activate): Only activate if the handle is created)
22739         * Control.c:
22740           - Mark window as invisible when it's disposed
22741           - Check if window handle is created when setting window visible, 
22742             instead of relying just on the is_created variable
22743           - Check if object is disposed when creating the control (Fixes #79155)
22745 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
22747         * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
22748           when allowing layout again. Otherwise we re-generate the anchoring 
22749           distance to the border again and actually alter what the user wanted
22750           This is ugly, it'd be better if we used DisplayRectangle instead of
22751           ClientRectangle for Control.UpdateDistances, but that causes us to
22752           have other problems (initial anchoring positons would be wrong)
22753           (Fixes #78835)
22755 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
22757         * Control.cs:
22758           - The size and location setters shouldn't go directly to 
22759             SetBoundsCore, but to SetBounds, which triggers layout on the
22760             parent, then calls SetBoundsCore. (Related to fix for #78835)
22761           - SetBounds: Moved actual location update code into this function
22762             from SetBoundsCore, to match MS. Added call to PerformLayout if
22763             we have a parent (to trigger resizing of anchored parents if the 
22764             child size has changed (see testcase for #78835) 
22765         * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match 
22766           new control code
22767         * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
22769 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
22771         * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
22772           System.Drawing when a toplevel window gets closed; there might
22773           be other toplevel windows belonging to the same app (Fixes #78052)
22775 2006-08-26  Alexander Olk  <alex.olk@googlemail.com>
22777         * FileDialog.cs: After reading FileDialog settings from mwf_config
22778           use Desktop prefix only if a real folder doesn't exist anymore.
22779         * FontDialog.cs: Added char sets.
22780           It is now possible to select the font, size or style with the
22781           textboxes.
22783 2006-08-25  Kornél Pál  <kornelpal@gmail.com>
22785         * PrintPreviewDialog.cs: Use assembly name constants.
22787 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
22789         * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
22790           scrollbar from whacking it's buttons)
22792 2006-08-24  Chris Toshok  <toshok@ximian.com>
22794         * ScrollableControl.cs: fix #78271.  There's a lot of misc stuff
22795         in this patch (aggregating setting Left/Top/Width/Height to
22796         setting Bounds on the scrollbars), but the crux of the fix is in
22797         Recalculate, where we scroll by the remaining scroll_position if
22798         we're hiding a scrollbar.  The 2*$5 reward in the comment is
22799         serious.
22801 2006-08-24  Jackson Harper  <jackson@ximian.com>
22803         * MdiClient.cs:
22804         * MdiWindowManager.cs: If the form is made a non-mdi window we
22805         need to remove the form closed event so that closing forms works
22806         correctly.
22808 2006-08-24  Jackson Harper  <jackson@ximian.com>
22810         * Control.cs: Make IsRecreating internal so that the driver can
22811         check it
22812         - Temporarily remove the Hide when controls are removed, its
22813         making a whole bunch of things not work because visibility isn't
22814         getting reset elsewhere correctly
22815         * Form.cs: Need to do a full handle recreation when the mdi parent
22816         is set.
22817         * XplatUIX11.cs: If we are recreating handles don't dispose the
22818         HWNDs.  What was happening is the handles were being recreated in
22819         SendWMDestroyMessages, but then flow continued on in that method
22820         and destroyed the new handles.
22822 2006-08-23  Jackson Harper  <jackson@ximian.com>
22824         * Form.cs: MdiClient is always at the back of the bus
22825         * Control.cs: When the order of items in the collection is changed
22826         we need to reset the all_controls array
22827         - do the same sorta setup thats done when adding a control when a
22828         control is set on the collection.
22830 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
22832         * TextBoxBase.cs (get_Text): Return an empty array if our document
22833           is empty (fixes #79052)
22835 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
22837         * Control.cs: We should call IsInputChar on only on WM_CHAR but not
22838           on WM_SYSCHAR messages (fixes #79053)
22840 2006-08-23  Chris Toshok  <toshok@ximian.com>
22842         * DataGrid.cs: fix flickering when scrolling vertically.
22844 2006-08-23  Chris Toshok  <toshok@ximian.com>
22846         * DataGrid.cs (EndEdit): only invalidate the row header when we
22847         need to.
22849 2006-08-23  Chris Toshok  <toshok@ximian.com>
22851         * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
22852         methods.  fixes the flicker when scrolling around.
22854 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
22856         * FileDialog.cs: Making sure the control is created before we get a 
22857           chance to use it with BeginInvoke (Fixes #79096)
22859 2006-08-23  Chris Toshok  <toshok@ximian.com>
22861         * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
22862         width to use when painting the rows.
22864 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
22866         * TextBoxBase.cs:
22867           - Throw ArgumentException if a negative value is passed to SelectionLength
22868           - Update the selection end if start is moved. end needs to be always
22869             after start. (Fixes #79095)
22870           - Track selection length; MS keeps the selection length even if start
22871             is changed; reset on all other operations affection selection
22873 2006-08-22  Jackson Harper  <jackson@ximian.com>
22875         * TreeView.cs: Make sure both scrollbars get displayed and sized
22876         correctly when the other bar is visible.
22877         - Use the original clip rectangle for checking if the area between
22878         the two scrollbars is visible, not the viewport adjusted clipping
22879         rectangle.
22881 2006-08-22  Jackson Harper  <jackson@ximian.com>
22883         * Binding.cs: We don't use IsBinding because it requires the
22884         control to be created, which really shouldn't be necessary just to
22885         set a property on the control.
22887 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22889         * ComboBox.cs: Some CB.ObjectCollection methods must throw
22890         ArgumentNullReferenceException when the argument is null.
22892 2006-08-21  Jackson Harper  <jackson@ximian.com>
22894         * Timer.cs: Track the thread that the timer is started in (NOT
22895         CREATED), this way messages for it will only be triggered on its
22896         queue.
22897         * XEventQueue.cs: Track the timers here, this makes timers per
22898         thread, like MS.
22899         * XplatUIX11.cs: The timers are moved to the XEventQueue.
22901 2006-08-19  Chris Toshok  <toshok@ximian.com>
22903         * XplatUIX11.cs: after further communication with pdb, we get the
22904         best of both worlds.  SetZOrder working for un-Mapped windows, and
22905         no X errors for un-mapped windows.
22907 2006-08-19  Chris Toshok  <toshok@ximian.com>
22909         * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
22910         as it was causing pdn toolbars to not have the correct stacking.
22912 2006-08-18  Mike Kestner  <mkestner@novell.com> 
22914         * ListView.cs : guard against negative ClientArea.Width in scrollbar
22915         calculation.  Not sure why control should ever be setting a negative
22916         width though.  Fixes #78931.
22918 2006-08-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22920         * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
22921         null items in ObjectCollection class.
22922         * ListBox.cs.: Likewise.
22924 2006-08-18  Atsushi Enomoto  <atsushi@ximian.com>
22926         * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
22927           as the base method in ThemeWin32Classic should work fine.
22928           Fixed bug #78607.
22930 2006-08-18  Jackson Harper  <jackson@ximian.com>
22932         * Binding.cs: When validating if the value entered doesn't convert
22933         properly reset to the old value.
22934         * RadioButton.cs: Don't fire click when we get focus.
22936 2006-08-18  Jackson Harper  <jackson@ximian.com>
22938         * FileDialog.cs: Paint the selection on the directory combobox the
22939         same way as on MS. 
22941 2006-08-17  Jackson Harper  <jackson@ximian.com>
22943         * ErrorProvider.cs: Don't allow the error control to be selected.
22944         * Control.cs: Don't send the SetFocus messages, the control
22945         activation will do this, and if we do it blindly here validation
22946         does not work.
22948 2006-08-17  Jackson Harper  <jackson@ximian.com>
22950         * Control.cs:
22951         * ContainerControl.cs: Make validation events fire in the correct
22952         order.  TODO: For some reason the first validation event is not
22953         getting fired.
22955 2006-08-17  Mike Kestner  <mkestner@novell.com> 
22957         * ComboBox.cs : some null guarding for ComboListBox.Scroll.
22959 2006-08-17  Mike Kestner  <mkestner@novell.com> 
22961         * ComboBox.cs : implement scroll wheel support for popped-down
22962         state. Fixes #78945. 
22964 2006-08-17  Jackson Harper  <jackson@ximian.com>
22966         * TreeView.cs: Specify treeview actions (old patch that didn't get
22967         committed for some reason).
22968         - Don't let the mouse wheel scroll us too far.  Just want to make
22969         the bottom node visible, not scroll it all the ways to the top.
22971 2006-08-17  Jackson Harper  <jackson@ximian.com>
22973         * XplatUIX11.cs: Mouse wheel events go to the focused window.
22975 2006-08-17  Mike Kestner  <mkestner@novell.com> 
22977         * ComboBox.cs : don't do mouseover selection in simple mode.
22979 2006-08-16  Jackson Harper  <jackson@ximian.com>
22981         * Form.cs: Fire the closing events for all the mdi child windows
22982         when a window is closed.  If the cancel args are set to true, the
22983         main window still gets the event fired, but it doesn't not close.
22984         * MdiWindowManager.cs: Do this closing cleanup in a Closed
22985         handler, instead of when the button is clicked, so cancelling the
22986         close works correctly.
22987         * ComboBox.cs: Send the mouse down to the scrollbar.
22989 2006-08-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22991         * ListBox.cs: When passing 'null' to SelectedItem,
22992         set SelectedIndex to -1, to unselect items. This is the
22993         observed behaviour in .Net.
22995 2006-08-16  Peter Dennis Bartok  <pbartok@novell.com> 
22997         * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
22998           MS flags saying there won't be any. (fixes #78800)
22999         * Control.cs (HandleClick): Made virtual
23001 2006-08-16  Atsushi Enomoto  <atsushi@ximian.com>
23003         * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
23004           cultures. Fixed bug #78399.
23006 2006-08-16  Jackson Harper  <jackson@ximian.com>
23008         * Form.cs: Use the MdiClients MdiChildren property to access
23009         MdiChildren instead of creating the array from the child controls.
23010         * MdiClient.cs: Maintain a separate array of the mdi children, so
23011         that insertion order is maintained when the Z-order is changed.
23013 2006-08-16  Mike Kestner  <mkestner@novell.com> 
23015         * ListView.cs : add an ItemComparer and default to it for sorting.
23016         Fixes #79076, but sorting needs a complete overhaul to be compat with
23017         MS.
23019 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
23021         * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
23023 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
23025         * Hwnd.cs (Mapped): Properly traverse the tree
23027 2006-08-15  Chris Toshok  <toshok@ximian.com>
23029         * Binding.cs: fix PullData/SetPropertyValue.  We don't want to
23030         pass manager.Current.GetType() to ParseData.  It has to be the
23031         property type.  So, hold off doing the ParseData until we're in
23032         SetPropertyValue where we know the type.  This fixes the crash in
23033         #78821 but the textbox is still empty.
23035 2006-08-15  Chris Toshok  <toshok@ximian.com>
23037         * DataGrid.cs:
23038         - when we're scrolling, only call Edit() again if the
23039         current cell is still unobscured. Fixes bug #78927.
23040         - when handling mousedown on a cell, ensure the cell is visible
23041         before calling Edit.
23042         - remove the properties from DataGridRow, and remove the
23043         DataGridParentRow class altogether.
23044         
23046 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
23048         * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
23049           fire OnTextChanged by ourselves. There's no point calling base,
23050           we don't set the base value anywhere else. Fixes #78773.
23052 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23054         * ListBox.cs: Call CollectionChanged when modifying
23055         an item from Items indexer, to update the actual items
23056         in the list box.
23058 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23060         * PrintDialog.cs: Small fixes for focus and a pair of checks,
23061         to match .Net behaviour.
23063 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
23065         * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
23067 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
23069         * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
23071 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
23073         * MessageBox.cs: Prevent potential NRE exception.
23074         * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
23076 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
23078         * MessageBox.cs: Calculate the owner of a messagebox, also make
23079           it topmost. Fixes #78753
23081 2006-08-14  Chris Toshok  <toshok@ximian.com>
23083         * XplatUIX11.cs: A couple of fixes so that metacity will let us
23084         programmatically move windows.  first, set the PPosition hint as
23085         well as the USPosition hint.  Second include some code from pdb
23086         that sets the window type to NORMAL when we set the transient for
23087         hint.  This is because, in the absence of a window type, metacity
23088         thinks any window with TransientFor set is a dialog, and refuses
23089         to let us move it programmatically.  fascists.
23091 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
23093         * XplatUIX11.cs: When setting normal hints, take into consideration
23094           an different hints previously set so we don't delete them (fixes #78866)
23096 2006-08-12  Chris Toshok  <toshok@ximian.com>
23098         * ToolBarButton.cs: make Layout return a boolean, if something to
23099         do with the button's layout changed.
23101         * ToolBar.cs:
23102         - add another parameter to Redraw, @force, which all existing
23103           calls set to true.
23104         - make the Layout function return a boolean which is true if the
23105           layout has actually changed.  Redraw now uses this (and @force)
23106           to determine when to invalidate.  At present the only place
23107           where @force can be false is the call from OnResize, when
23108           background_image == null.  So, resizing a toolbar when the
23109           layout doesn't change results in no drawing.
23111 2006-08-12  Chris Toshok  <toshok@ximian.com>
23113         * ThemeWin32Classic.cs: fix the bottom right corner painting.  had
23114         the VScrollBar and HScrollbar reversed.  oops.
23116         * DataGrid.cs: fix the logic that assigns sizes to the implicit
23117         scrollbars.  we were assigning them twice (once in
23118         Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
23119         therefore causing two scrollbar resizes (and redraws?) to happen
23120         per grid resize.
23122 2006-08-12  Chris Toshok  <toshok@ximian.com>
23124         * ToolBarButton.cs: redraw the entire button if the theme tells us
23125         to.
23127         * Theme.cs: add ToolBarInvalidateEntireButton.
23129         * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
23130         buttons, just the border.
23132         * ThemeNice.cs: redraw the entire toolbar button since we need to
23133         draw the highlight image.
23135         * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
23136         we need to redraw the entire button (not just the border).
23138 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
23140         * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
23141           for vertical bars. Fixes the mismatches shown by #78513
23143 2006-08-11  Alexander Olk  <alex.olk@googlemail.com>
23145         * FileDialog.cs: If a saved/remembered path doesn't exist
23146           anymore, fall back to "Desktop".
23148 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
23150         * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
23151           parent. It's apparently legal to not have one
23152         * XplatUIX11.cs:
23153           - SetZOrder: Don't try to set Z-Order on an unmapped window
23154           - CreateWindow: 0,0 are legal coordinates for a window. don't move
23155             it unless the coordinates are negative
23157 2006-08-10  Mike Kestner  <mkestner@novell.com>
23159         * ListControl.cs: allow null for DataSource.  Clear DisplayMember
23160         when setting to null per msdn docs.  Fixes #78854.
23162 2006-08-10  Chris Toshok  <toshok@ximian.com>
23164         * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
23165         flickering by setting a clip rectangle on the Graphics when we
23166         need to redraw just a particular menuitem.  Also, rename "OnClick"
23167         to "OnMouseDown" to reflect what it actually is.
23168         
23169         * Form.cs: track the OnMouseDown change.
23171 2006-08-10  Peter Dennis Bartok  <pbartok@novell.com>
23173         * CommonDialog.cs: Properly inherit the CreateParams from the form
23174           and only change what we need. Fixes #78865
23176 2006-08-10  Chris Toshok  <toshok@ximian.com>
23178         * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
23179         flickering in flat mode (and most of the flickering in general) by
23180         only invalidating the button border (and not the entire rectangle)
23181         when the state changes.  A couple of cases still flicker:
23182         ToggleButtons, and the dropdown arrow case when the user mouse
23183         ups.
23185 2006-08-10  Alexander Olk  <alex.olk@googlemail.com>
23187         * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
23188           for german keyboards. Numlock state shouldn't affect the behaviour
23189           of the Del key. Fixes bug #78291.
23191 2006-08-10  Chris Toshok  <toshok@ximian.com>
23193         * ListControl.cs: remove the items.Clear line from BindDataItems,
23194         as this is the first thing done by both subclasses in their
23195         SetItemsCore overrides.  Also, add a ItemChanged handler, and when
23196         passed -1, refresh the list.  This gets databinding working when
23197         the datasource is set on the list before the datasource is
23198         populated (as in wf-apps/ReportBuilder.)
23200         * ComboBox.cs: remove the argument to BindDataItems.  This call
23201         should really go away, and be initiated by the ListControl code.
23203         * ListBox.cs: same.
23205 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
23207         * TextControl.cs (Document.ctor): Initialize caret so we don't crash
23208           if no data is in the document when the control is displayed
23210 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com> 
23212         * TextBoxBase.cs: Don't try moving the caret if we don't have a window
23213           yes (fixes #78806)
23214         * TextControl.cs: 
23215           - PositionCaret: Allow positioning of caret but don't call methods 
23216             requiring a handle if the window isn't created yet
23217           - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
23218           - owner_HandleCreated: Don't position the caret, just update it's 
23219             location. User might have already set a different position
23221 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
23223         * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
23224           windows. Screws up the returned coordinates for child windows. 
23225           Fixes #78825. I'm hoping this doesn't break something, since the
23226           code was explicitly put in 8 months ago, but no bug was attached.
23227           Menus still seem to work properly.
23229 2006-08-08  Chris Toshok  <toshok@ximian.com>
23231         * DataGrid.cs: make BeginInit/EndInit actually do what they're
23232         supposed to do - delay data binding until the EndInit call.  Also,
23233         make the table style collection's CollectionChangeAction.Refresh
23234         work properly.
23236         * GridTableStylesCollection.cs: raise a CollectionChangeEvent
23237         (with action = Refresh) when a consituent table's MappingName is
23238         changed.
23240 2006-08-08  Chris Toshok  <toshok@ximian.com>
23242         * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
23243         Invalidate, since changing the text can change the size of the all
23244         toolbar buttons.
23246 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
23248         * Form.cs (AddOwnedForm): Still need to add the form to our listif
23249           we don't have it yet
23251 2006-08-08  Chris Toshok  <toshok@ximian.com>
23253         * PrintControllerWithStatusDialog.cs: don't .Close() the status
23254         dialog, as this causes X errors later on, since we actually
23255         destroy the window.  Instead, .Hide() it.
23257 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
23259         * ComboBox.cs: Added focus reflection for popup window
23260         * XplatUIX11.cs: 
23261           - Removed transient setting for non-app windows for now, not sure it
23262             was needed
23263           - Fixed logic checking if we have captions when deciding 
23264             override_redirect, WS_CAPTION is two bits and a 0 check was not
23265             sufficient
23266           - Removed the WINDOW_TYPE stuff, it was unneeded and making things
23267             complicated
23268         * Form.cs: 
23269           - AddOwnedForm: Don't just add the form to the list, call the property
23270             to ensure the driver is informed about the ownership as well
23271           - CreateHandle: Set the TopMost status in the driver if we have an owner
23272         * XplatUI.cs: Fixed debug statement
23274 2006-08-08  Jonathan Pobst <monkey@jpobst.com>
23275         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
23276           GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
23277           ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs, 
23278           TrackBarRenderer.cs: Make constructor private.
23279         * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
23280         * ProfessionalColorTable.cs: Make properties virtual.
23282 2006-08-06  Duncan Mak  <duncan@novell.com>
23284         * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
23285         is not changing.
23287 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
23288         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
23289           GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
23290           ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
23291           TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
23292           Initial import of new 2.0 classes.
23294 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
23295         * Application.cs: Add 2.0 VisualStyles properties.
23297 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
23298         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
23299           XplatUIX11.cs: Create property to allow access to existing private
23300           variable "themes_enabled"
23302 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23304         * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
23305         file size, as otherwise our class libraries fail using windows. Fixes
23306         bug #78759.
23308 2006-08-04  Jackson Harper  <jackson@ximian.com>
23310         * Form.cs:
23311         * XplatUIX11.cs: Move the toolwindow window manager creation into
23312         the X11 driver, this way on win32 we can let windows create/handle
23313         the toolwindows.
23315 2006-08-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23317         * PrintDialog.cs: Remove some redundant checks, add some others,
23318         clean some code, and move the focus to the text boxes when the
23319         values are incorrect.
23321 2006-08-04  Alexander Olk  <alex.olk@googlemail.com>
23323         * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
23325 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
23327         * NumericUpDown.cs: Setting the Minimum and Maximum is now
23328           handled correctly. Fixes bug #79001.
23330 2006-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23332         * PrintDialog.cs: The "Copies" numeric up down must have
23333         set the Minimum property to 1; only if the value is bigger
23334         than 1, activate "Collate" check box. This is the behaviour of .Net.
23335         Also modify the Document elements only if it is not null.
23337 2006-08-03  Jackson Harper  <jackson@ximian.com>
23339         * TreeNodeCollection.cs: Fix copyto to use the correct nodes
23340         length. (We have a larger array then actual node count).
23341                 
23342 2006-08-03  Jackson Harper  <jackson@ximian.com>
23344         * ComboBox.cs: Don't show selection by default.
23345         - The SelectAll isn't needed here, since the focus code should do
23346         that
23347         - DDL style lists to manual selection drawing, so when they
23348         get/lose focus they have to invalidate.
23350 2006-08-03  Peter Dennis Bartok  <pbartok@novell.com>
23352         * TextBoxBase.cs: Don't always show all selections by default.
23354 2006-08-03  Jonathan Pobst  <monkey@jpobst.com>
23355         * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
23356           HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
23357           Fixed various typos.
23359 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
23361         * Control.cs: Removing the controls in a ControlCollection with
23362           Clear now hides the controls as expected. Fixes bug #78804. 
23364 2006-08-03  Jackson Harper  <jackson@ximian.com>
23366         * Control.cs: Revert previous focus patch, it breaks reflector.
23368 2006-08-03  Jackson Harper  <jackson@ximian.com>
23370         * ComboBox.cs: Cleanup selection and focus with the combobox.
23371         This also eliminates some duplicated keyboard code, since now
23372         everything is handled by the main class.
23373         - Make list selection work on mouse up instead of down, to match
23374         MS.
23376 2006-08-02  Jackson Harper  <jackson@ximian.com>
23378         * Control.cs: Setting focus needs to go through the whole
23379         selection mechanism.
23381 2006-08-02  Chris Toshok  <toshok@ximian.com>
23383         * PrintPreviewDialog.cs: change MinimumSize to use
23384         base.MinimumSize so it works.
23386 2006-08-02  Peter Dennis Bartok  <pbartok@novell.com>
23388         * TextControl.cs:
23389           - UpdateCaret: Added sanity check in case caret isn't defined yet
23390           - Line.Delete: Now updating selection and caret markers if we're
23391             transfering a node (Properly fixes #78323)
23392           - SetSelectionEnd: Added sanity check
23393         * TextBoxBase.cs: Removed broken attempt to fix #78323
23395 2006-08-01  Chris Toshok  <toshok@ximian.com>
23397         * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
23398         Close() call is handled in Form, not here.
23400 2006-08-01  Chris Toshok  <toshok@ximian.com>
23402         * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
23403         layout/rendering.
23405         * PrintPreviewDialog.cs: add scrollbars, and add an image cache
23406         for sizes < 100% zoom.  The code now aggressively attempts to keep
23407         from calling document.Print (), and tries not to use the scaling
23408         g.DrawImage whenever possible (it still does if you scale to >
23409         100%, since usually that involves huge images).
23411         * PrintPreviewControl.cs: hook up the close button.
23413 2006-08-01  Jonathan Pobst  <monkey@jpobst.com>
23414         * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
23415           ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
23416           ItemDragEventHandler.cs, LabelEditEventHandler.cs,
23417           LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
23418           MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
23419           PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
23420           SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
23421           Removed [Serializable] for 2.0 Event Handlers.
23423 2006-07-31  Jackson Harper  <jackson@ximian.com>
23425         * TextBoxBase.cs: Make ShowSelection invalidate when changed.
23426         * TextControl.cs: Uncomment out the body of this method.
23428 2006-07-31  Alexander Olk  <alex.olk@googlemail.com>
23430         * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
23431           standard cursors.
23433 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
23435         * TextBoxBase.cs: Added internal property ShowSelection to allow controls
23436           that embed TextBox and need selections visible even if textbox is not
23437           focused to enforce that behaviour.
23438         * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
23439           selection drawing
23441 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
23443         * TextControl.cs:
23444           - Added new SetSelectionStart/SetSelectionEnd overloads
23445           - Fixed viewport width assignment to be accurate
23446           - Adjusted alignment line shift calculations to allow cursor on right
23447             aligned lines to be always visible at the right border (like MS)
23448         * TextBoxBase.cs:
23449           - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
23450           - TextBoxBase_SizeChanged: recalculating canvas on size changes
23451           - CalculateScrollBars: Use ViewPort size instead of window size, to
23452             properly consider space occupied by the border and scrollbars 
23453             (Fixes #78661)
23454           - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll 
23455             calculations; no longer leaves artifacts
23456           - CaretMoved: Adjusted window scrolling to match MS and fixed several
23457             calculation bugs (Still missing right/center align calculations)
23459 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com> 
23461         * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
23462           use of both scroll rect and clip rect, as they do the same.
23464 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
23466         * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key 
23467           in the event handler (fixes #78912)
23469 2006-07-31  Chris Toshok  <toshok@ximian.com>
23471         * ThemeWin32Classic.cs: use grid.RowsCount here instead of
23472         grid.ListManager.Count, since grid.ListManager might be null.
23473         This of course begs the question "why are we drawing rows for a
23474         grid with no list manager (and therefor no rows)?"  Fixes the
23475         crash in bug #78929.
23477 2006-07-31  Chris Toshok  <toshok@ximian.com>
23479         * RelatedPropertyManager.cs: Don't always chain up to the parent
23480         ctor.  instead, call SetDataSource if the parent's position is !=
23481         -1.  Fixes the crash in #78822.
23483 2006-07-31  Chris Toshok  <toshok@ximian.com>
23485         * DataGrid.cs (get_ListManager): use field instead of property
23486         accessors for datasource and datamember.
23487         (RowsCount): make internal again.
23488         (OnMouseDown): end edits before resizing columns/rows.
23489         (OnMouseUp): restart edits after resizing columns/rows.
23491 2006-07-30  Peter Dennis Bartok  <pbartok@novell.com>
23493         * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
23494           This fixes the situation where the last set cursor is displayed
23495           whenever the mouse is over scrollbars.
23497 2006-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23499         * PrintDialog.cs: Fix the behaviour of PrinterSettings and
23500         Document properties, as well as initial values.
23502 2006-07-29  Peter Dennis Bartok  <pbartok@novell.com>
23504         * XplatUIWin32.cs (SetBorderStyle): Setting both border
23505           and ClientEdge results in a 3-pixel border, which is
23506           wrong.
23508 2006-07-28  Jackson Harper  <jackson@ximian.com>
23510         * TreeNodeCollection.cs: Fix the clear method.
23511         - Fix the Shrink also
23513 2006-07-27  Jackson Harper  <jackson@ximian.com>
23515         * TreeView.cs: Make sure the visible order is computed when we
23516         attempt to size the scrollbars (for trees that mess with the
23517         scrolling when they shouldn't.
23518         - Make sure to give the scrollbars valid values.
23520 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
23522         * XplatUIX11.cs: Move motion compression code to where it
23523           has less performance impact
23525 2006-07-26  Jackson Harper  <jackson@ximian.com>
23527         * UpDownBase.cs: When the control is selected make the child
23528         controls non selectable, so that a click on them won't do a
23529         focus/unfocus cycle.
23530         - Don't give focus to the text box when the spinner is selected.
23531         * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
23533 2006-07-26  Chris Toshok  <toshok@ximian.com>
23535         * ThemeWin32Classic.cs: add print preview rendering.  I'm not
23536         satisfied with this solution.  If the bitmaps are small, we should
23537         just cache them in the PrintPreviewDialog and draw them here.
23538         Also, the layout is broken for the 2-up and 3-up cases.
23540         * Theme.cs: add PrintPReviewControlPaint.
23542         * PrintPreviewDialog.cs: first pass implementation.
23544         * PrintPreviewControl.cs: first pass implementation.  No
23545         scrollbars yet.
23547         * PrintDialog.cs: only validate fields if that particular portion
23548         of the UI is enabled.  Also, set the document's controller to a
23549         PrintControllerWithStatusDialog wrapping the document's print
23550         controller.
23552         * PrintControllerWithStatusDialog.cs: if we're printing to a file,
23553         bring up a SaveFileDialog (i hope we don't want to match the
23554         behavior of the crappy windows file entry) and set the
23555         PrinterSettings.PrintFileName accordingly.
23557 2006-07-26  Jackson Harper  <jackson@ximian.com>
23559         * ContainerControl.cs: Add a field that disables auto selecting
23560         the next control in a container when the container is activated.
23561         * UpDownBase.cs: Don't select the text box when the up down is
23562         selected.
23564 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
23566         * XEventQueue.cs: Added methods for peeking (used for compression
23567           of successive events)
23568         * XplatUIX11.cs (GetMessage): We're now compressing consecutive
23569           mouse move events (fixes #78732)
23571 2006-07-25  Jackson Harper  <jackson@ximian.com>
23573         * UpDownBase.cs: Use an internal class for the textbox so that we
23574         can control focus.  the updown control should always have focus,
23575         if either the text area or the buttons are clicked.
23576         - Send the key messages to the textbox, since it never actually
23577         has focus
23578         - Activate and decativate the textbox caret.
23580 2006-07-24  Jackson Harper  <jackson@ximian.com>
23582         * Control.cs: Use the directed select when selecting a control,
23583         this way the container controls override will get called and the
23584         whole ActiveControl chain will get triggered.  TODO: probably need
23585         to make sure this gets done everywhere instead of the old
23586         Select(Control).
23587         * ContainerControl.cs: Implement the directed Select method to
23588         find and activate the correct child control.    
23589         
23590 2006-07-22  Mike Kestner  <mkestner@novell.com>
23592         * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
23593         menu handling code so that clicks without a grab work too.
23594         [Fixes #78914]
23596 2006-07-22  Alexander Olk  <alex.olk@googlemail.com>
23598         * FileDialog.cs: Enable the BackButton when dirstack has one element.
23599           Added some small optimizations.
23601 2006-07-21  Matt Hargett  <matt@use.net>
23603         * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
23605 2006-07-21  Peter Dennis Bartok  <pbartok@novell.com> 
23607         * Control.cs (GetNextControl): Fixes to make all of Jackson's unit 
23608           tests pass and match MS in some strange border cases.
23610 2006-07-21  Chris Toshok  <toshok@ximian.com>
23612         * ThemeWin32Classic.cs: handle drawing of the relation links and
23613         parent row buttons.
23615         * Theme.cs: change args to DataGridPaintParentRow.
23617         * DataGrid.cs: Don't use controls for the relation links and
23618         parent buttons, so we have to handle all their interactions in
23619         MouseMove, MouseDown, MouseUp, etc.  Also, store a lot more stuff
23620         when we're navigating through child tables, so we can reinstate
23621         selection, expanded state, current cell, etc.
23623 2006-07-20  Chris Toshok  <toshok@ximian.com>
23625         * ToolBar.cs: When we redraw a button, for whatever reason,
23626         there's no reason to redraw the entire toolbar.  Also, don't call
23627         Control.Refresh from within Redraw, as it's much heavier than
23628         Invalidate (which is really what we want).
23630 2006-07-20  Chris Toshok  <toshok@ximian.com>
23632         * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
23633         DataGridTextBoxColumn.cs, DataGridTextBox.cs,
23634         ThemeWin32Classic.cs, ListControl.cs: After staring at stack
23635         traces from within a debug IBindingList datasource
23636         (in mono/winforms/datagrid) for *days*, I've finally gotten things
23637         to work in a similar fashion.
23639 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23641         * ListBox.cs: Don't call Sort () when setting 
23642         the Sorted property to false (avoid an unnecessary sort).
23644 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23646         * ListControl.cs: DataSource should throw an ArgumentException
23647         instead of a normal exception when the argument is not of the 
23648         correct type.
23650 2006-07-20  Mike Kestner  <mkestner@novell.com>
23652         * Control.cs: add InternalPreProcessMessage to allow us to steal
23653         key events before MWF gets its paws on them.  Adapted from a
23654         suggestion by eno.
23655         * ToolBar.cs: add GotLostFocus handing for flat toolbars, with 
23656         up/down/left/right navigation. Override the new internal control
23657         method to steal the events since they never make it to WndProc.
23658         * ToolBarButton.cs: don't worry about pushed when setting hilight
23659         since the drawing code prefers pushed to hilight. Invalidate on 
23660         Hilight changes. Fixes #78547 and #78525.
23662 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
23664         * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
23665           the canvas size. Fixes #78868
23667 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com>
23669         * Splitter.cs: Track requested split position until first layout
23670           is performed. Fixes #78871
23672 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
23674         * Application.cs: Removed code that forces 1.x for the version
23675           number if the version started with 0. Not sure why that code was
23676           there and I couldn't find any bugs that indicated we needed it.
23677           Fixes #78869
23679 2006-07-20  Alexander Olk  <alex.olk@googlemail.com>
23681         * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
23682           ResetDefaults(), just write some output to the console until it's
23683           implemented. Fixes bug #78907 for now. Eliminated two warnings.
23685 2006-07-19  Jonathan Chambers  <joncham@gmail.com>
23687         * PropertyGridView.cs: set StartPosition of drop down forms
23688         so they appear in correct initial spot.  Fixes #78190.
23690 2006-07-19  Mike Kestner  <mkestner@novell.com>
23692         * ThemeWin32Classic.cs: use parent background color when drawing
23693         flat toolbars.  Restructure the conditionals to make sure non-flat
23694         non-Divider toolbars are filled too.  Fixes #78837.
23696 2006-07-19  Mike Kestner  <mkestner@novell.com>
23698         * ListBox.cs: Sort on collection changes even if the handle
23699         isn't created yet.  Fixes #78813.
23701 2006-07-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23703         * ListControl.cs: DisplayMember should never be null,
23704         and now we assign String.Empty when null is passed to it (this
23705         is the .Net way).
23707 2006-07-17  Mike Kestner  <mkestner@novell.com>
23709         * ListViewItem.cs: restructure Font and subitem Font handling 
23710         to hold a specific font and refer back to owner on null.
23711         Fixes #78761.
23713 2006-07-17  Mike Kestner  <mkestner@novell.com>
23715         * ToolBar.cs: bandaid for side-effect of previous patch which was
23716         discarding explicit heights for non-AutoSize toolbars.  Need to
23717         extend my format tester to deal with AutoSize=false. Fixes #78864.
23719 2006-07-15  Jackson Harper  <jackson@ximian.com>
23721         * LabelEditTextBox.cs:
23722         * TreeView.cs: Use a new LabelEdit class for node editing, this
23723         class automatically 'closes' itself when it gets the enter key or
23724         loses focus.
23725         - Use the client rectangle when setting the trees scrollbars, so
23726         border style is taken into account.
23727         
23728 2006-07-14  Jackson Harper  <jackson@ximian.com>
23730         * TreeNode.cs:
23731         * TreeView.cs: Make the editing work similar to MSs, firing the
23732         events correctly and ending edits correctly.
23734 2006-07-14  Mike Kestner  <mkestner@novell.com>
23736         * ToolBarButton.cs:
23737         * ToolBar.cs: layout restructuring and redraw enhancements to support
23738         formatting changes gracefully, like setting TextAlign, ImageList, 
23739         ButtonSize, and Appearance.  Handles explicit button sizing quirks
23740         of the MS controls.  Things like flat toolbars ignoring button size
23741         but becoming constant sized at the largest button's size.  Normal
23742         toolbars with an image set cannot be shrunk smaller than the image,
23743         but text can be clipped/ignored.
23744         * ThemeWin32Classic.cs: don't draw text if text_rect height or width
23745         is zero.  Seems like DrawString should be smart enough to not put
23746         anything on screen though. Also trim labels and ellipsize at the char
23747         boundary, not word.
23748         Fixes #78711 and #78483.
23750 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
23752         * FolderBrowserDialog.cs: Disable "New Folder" button and
23753           "New Folder" contextmenu menuitem if a folder like "My Computer"
23754           is selected.
23756 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
23758         * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
23759         * FolderBrowserDialog.cs:
23760           - Use MWFConfig to store and read size and position settings
23761           - Added code to create a new folder (button or context menu).
23762             Use TreeView labeledit to change the name of the new folder.
23764 2006-07-14  Jackson Harper  <jackson@ximian.com>
23766         * TreeView.cs: Raise the OnAfterLabelEdit event correctly.  Also,
23767         when the tree is scrolled we end editing.
23769 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
23771         * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
23772           Down arrows
23774 2006-07-14  Jonathan Pobst  <monkey@ipobst.com> 
23776         WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
23777         BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
23778         BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
23779         CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
23780         ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
23781         ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
23782         ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
23783         FormClosedEventHandler.cs, FormClosingEventArgs.cs,
23784         FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
23785         ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
23786         ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
23787         ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
23788         ListViewItemSelectionChangedEventHandler.cs,
23789         ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
23790         ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
23791         MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
23792         PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
23793         PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
23794         RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
23795         SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
23796         SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs, 
23797         TabControlCancelEventHandler.cs, TabControlEventArgs.cs, 
23798         TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
23799         TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
23800         ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
23801         ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
23802         TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
23803         TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
23804         TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
23805         WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
23806         WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
23807         WebBrowserNavigatingEventHandler.cs, 
23808         WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
23810 2006-07-14  Jonathan Pobst  <monkey@ipobst.com>
23812         MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
23813         RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
23814         SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
23815         TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
23816         ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
23817         ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
23818         ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
23819         ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
23820         ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
23821         ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
23822         ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
23823         ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
23824         TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
23825         WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
23826         ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
23827         AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
23828         BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
23829         ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
23830         FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
23831         HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
23832         ListViewItemStates.cs, MaskFormat.cs: Added
23834 2006-07-13  Jonathan Chambers  <joncham@gmail.com>
23836         * PropertyGridView.cs: Fix keyboard navigation of drop down.
23837         Patch from eno for bug 78558.
23838         
23839 2006-07-13  Jackson Harper  <jackson@ximian.com>
23841         * TreeView.cs: When an edit is finished make sure that the
23842         selected node is visible.
23843         - When setting the top/bottom use the scrollbars is_visible, so
23844         everything will be set correctly even if the tree isn't visible
23845         yet.
23847 2006-07-13  Jackson Harper  <jackson@ximian.com>
23849         * ComboBox.cs: Revert the item->index part of my previous patch.
23850         * TreeView.cs: Use LostFocus instead of Leave for detecting when
23851         the edit box has lost focus (duh).
23852         - Just make the edit box not visible when we get return, that will
23853         take the focus, which will call EndEdit
23854         * TreeNode.cs When we start editing, notify the treeview.
23856 2006-07-12  Jackson Harper  <jackson@ximian.com>
23858         * ComboBox.cs: Clear out old items before setting the item list.
23859         This prevents databound controls from having their items added
23860         twice.
23861         - Switch the combobox to use indices whereever possible instead of
23862         using Item's.  This allows usto navigate through lists that have
23863         more then one item with the same string value (ie a, b, b, a).
23864         - Scroll the listboxes scrollbar when a non visible item is
23865         highlighted
23866         - Allow keypress to cycle through all the possible values. For
23867         example if you have b1, b2, b3 and hold down the B key all the
23868         values will be cycled through.
23869         
23870 2006-07-12  Jackson Harper  <jackson@ximian.com>
23872         * TextBoxBase.cs:
23873         * ListView.cs: Don't need to override SETFOCUS anymore, we can do
23874         this using the internal methods.
23875         * Control.cs: Add OnGotFocusInternal.  A new method that allows
23876         controls to "override" OnGotFocus and change focus behavior if
23877         needed.
23878         - Same thing for LostFocus
23879         * ComboBox.cs: Pass off focus to the text control properly.
23881 2006-07-12  Alexander Olk  <alex.olk@googlemail.com>
23883         * FileDialog.cs: Added GetFoldersOnly to MWFVFS
23884         * FolderBrowserDialog.cs: Almost a complete rewrite.
23885           - Better support for Environment.Specialfolders
23886           - Added support for MWFVFS
23887           - Made setting SelectedPath work
23889 2006-07-12  Jackson Harper  <jackson@ximian.com>
23891         * Control.cs: Optimze getting all the controls.
23893 2006-07-11  Jackson Harper  <jackson@ximian.com>
23895         * ContainerControl.cs: Override SETFOCUS in the container control,
23896         so that it is not selected on mouse click.
23898 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com> 
23900         * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel. 
23901           Hopefully we will have a better way once all of focus is complete.
23903 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com>
23905         * ThemeWin32Classic.cs: Commented out some debug code and fixed
23906           a compile error with csc.
23908 2006-07-11  Jackson Harper  <jackson@ximian.com>
23910         * Control.cs: When hiding a control only select the next control
23911         if the current control was focused.
23912         - Don't handle enter/leave when setting/killing focus, this is
23913         done by the container control.
23914         - Remove is_selected, it's not needed anymore.
23915         - Add utility methods for selecting a child control, and for
23916         firing the Enter/Leave events.
23917         * ContainerControl.cs: When a control is activated fire the
23918         enter/leave events.
23919         - Don't wrap when processing the tab key, so that focus can be
23920         moved outside of the container.
23921         - Use the correct active control
23923 2006-07-11  Jackson Harper  <jackson@ximian.com>
23925         * ComboBox.cs: Remove some debug code that was blinding me.
23926         * UpDownBase.cs: These controls actually aren't implicit, they are
23927         visible to the user.
23929 2006-07-10  Chris Toshok  <toshok@ximian.com>
23931         * DataGrid.cs: move back to the is_adding boolean field.  god i
23932         hate this is_editing/is_adding/is_changing stuff.
23934 2006-07-10  Chris Toshok  <toshok@ximian.com>
23936         * DataGridTableStyle.cs: just check if the property type is bool.
23937         if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
23938         Don't use CanRenderType.
23940         * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
23941         if our text == NullText.  Remove CanRenderType.
23943         * DataGridBoolColumn.cs: nuke CanRenderType.
23945         * DataGrid.cs: reenable some code to end the current edit inside
23946         of set_CurrentCell.  This fixes the other 1.1.16 regression.
23947         Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
23948         Also, remove the visible_row_count arg from CalcRowHeaders, since
23949         we don't need to worry about the actual height of the area.
23951 2006-07-10  Chris Toshok  <toshok@ximian.com>
23953         * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
23954         mode, just return.
23956         * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
23957         the real sense of the IsInEditOrNavigateMode property (true =
23958         navigate, false = edit).  Also, update OnKeyPress to reflect this.
23960         * DataGridTableStyle.cs (CreateColumnsForTable): even if the
23961         column style exists, we still need to set its property descriptor
23962         to match up with our list manager.
23964 2006-07-10  Chris Toshok  <toshok@ximian.com>
23966         * ThemeWin32Classic.cs: implement the new row/header painting
23967         approach.  The parent row painting will likely go away and
23968         replaced with label controls, but the rest seems to work ok (and
23969         efficiently).
23971         * Theme.cs: change the way we draw datagrid rows.  we don't draw
23972         the row headers as a block now.  Instead we draw them in the
23973         normal draw-row loop.  Add some calls for drawing parent rows and
23974         relation rows.
23976         * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
23977         a default table style.  Set the defaults from ThemeEngine.Current,
23978         not SystemColors.  Fix lots of misc issues with property setters.
23980         * DataGrid.cs: move loads of style information out of this class
23981         as it's being duplicated with DataGridTableStyle.  keep track of a
23982         special DataGridTableStyle for the properties we used to mirror
23983         here.  Switch all the style properties to access this table style
23984         instead of instance fields of this class.  Also add a internal
23985         class to represent parent rows (more needs to be stored here, like
23986         the selection state from the parent table, as well as the
23987         expansion state.)  Also, for datasources with relations, do the
23988         right thing for collapse/expand, and add support for the
23989         navigation/parent row buttons.
23991         Lastly, fix the crash in the 1.1.16 build.
23993         * GridTableStylesCollection.cs: make the explicit interface
23994         implementations call the class's methods as opposed to duplicating
23995         them.
23997         * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
23998         0 so the text doesn't jump around when we move the cursor.
24000 2006-07-10  Jackson Harper  <jackson@ximian.com>
24002         * TextBoxBase.cs:
24003         * ListBox.cs: Match MS's ToString (this makes debugging focus
24004         stuff infinitely easier).
24006 2006-07-10  Jackson Harper  <jackson@ximian.com>
24008         * Control.cs (SelectNextControl): When checking the control's
24009         parent use this instead of ctrl.parent so that null can be passed
24010         to SelectNextControl. (I have unit tests for this).
24011         - Remove unused var.
24013 2006-07-10  Chris Toshok  <toshok@ximian.com>
24015         * CurrencyManager.cs: correct one regression, the removal of the
24016         finalType field.  Also, add a MonoTODO on CanAddRows, implement
24017         Refresh() correctly, and fix some event emission in
24018         ListChangedHandler.
24020 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
24022         * FileDialog.cs: Don't use brackets for new folders if they exist
24023           under *nix. Instead use -(number of existing folders +1).
24025 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
24027         * FileDialog.cs:
24028           - Fixed really nasty bug #78771
24029           - Don't block the whole GUI when reading directories with a lot of
24030             entries. Use an other thread instead and call BeginInvoke to
24031             update the ListView in MWFFileView
24033 2006-07-07  Chris Toshok  <toshok@ximian.com>
24035         * Control.cs (Dispose): release any Capture when disposing.
24037 2006-07-07  Chris Toshok  <toshok@ximian.com>
24039         * LinkLabel.cs (Select): if we chain up to the parent, set
24040         focused_index to -1 so we'll search for the first available link
24041         the next time the user tabs into us.  Also, if the direction is
24042         backward and focused_index == -1, start the search from the last
24043         element.
24045 2006-07-07  Chris Toshok  <toshok@ximian.com>
24047         * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
24048         is beyond the end of the text, don't do anything.
24049         (CreateLinkPieces): set our ControlStyles.Selectable based on
24050         whether or not we have any links.
24051         (Link.Invalidate): use a loop instead of foreach.
24052         (Link.set_Start): null out owner.sorted_links so it'll be
24053         recreated by CreateLinkPieces.
24055 2006-07-06  Chris Toshok  <toshok@ximian.com>
24057         * LinkLabel.cs: revert the SetStyle change.
24059 2006-07-06  Chris Toshok  <toshok@ximian.com>
24061         * LinkLabel.cs (.ctor): SetStyle Selectable to true.
24062         (OnEnableChanged): s/Refresh/Invalidate
24063         (OnGotFocus): if we have a focused index already, refocus it (so
24064         if we mouse out/in to the window it'll focus the right link).
24065         (OnKeyDown): move the tab handling out of here.
24066         (OnLostFocus): don't set focused_index to -1, so we can refocus it
24067         when we lose focus.
24068         (OnMouseDown): don't Capture here - Control handles it.  Also,
24069         focus the active link.
24070         (OnMouseUp): don't deal with Capture.
24071         (OnPaintBackgroundInternal): remove.
24072         (OnTextAlignChanged): CreateLinkPieces before calling the
24073         superclass's method.
24074         (OnTextChanged): call CreateLinkPieces before calling superclass's
24075         method.
24076         (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
24077         move around.
24078         (Select): implement this, moving the selection between different
24079         links, and call parent.SelectNextControl if we don't have another
24080         link to focus in the given direction.
24081         (CreateLinkPieces): call Invalidate instead of Refresh.
24082         
24083 2006-07-06  Chris Toshok  <toshok@ximian.com>
24085         * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
24086         new LinkLabel internals.
24088         * LinkLabel.cs: fairly major rewrite.  get rid of all the loops
24089         over pieces looking for active/focused/etc links.  also, deal with
24090         runs of text (and links) with embedded \n's in them, and use
24091         MeasureCharacterRanges instead of MeasureString to figure out the
24092         regions text occupies.  Lastly, do the usual s/Refresh/Invalidate
24093         two-step.
24095 2006-07-04  Jackson Harper  <jackson@ximian.com>
24097         * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
24098         XKB or key auto repeat, do it manually.  Without key auto repeat,
24099         when a key is held down we get key press, key release, key press,
24100         key release, ... with auto repeat we get key press, key press, key
24101         press ..., and then a release when the key is actually released.
24103 2006-07-03  Jackson Harper  <jackson@ximian.com>
24105         * TabControl.cs:
24106         * ThemeWin32Classic.cs: Tabs do not obey normal background color
24107         rules, they are always control color regardless of the background
24108         color.
24110 2006-07-02  Alexander Olk  <alex.olk@googlemail.com>
24112         * FileDialog.cs: Added internal class MWFConfig.
24113           Removed Registry support and replaced it with support for the new
24114           MWFConfig class. See MWFConfig comments for more information.
24116 2006-06-30  Alexander Olk  <alex.olk@googlemail.com>
24118         * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
24119           rectangle. Added some patches from eno from bug #78490 and fixed
24120           the arrow position for small up and down CPDrawScrollButtons.
24122 2006-06-30  Jackson Harper  <jackson@ximian.com>
24124         * InternalWindowManager.cs: Remove some debug code.
24125         * Form.cs: When an MdiParent is set to null, the window is
24126         "detatched" and becomes a normal window.
24127         * MdiClient.cs: Don't bring the new child form to the front until
24128         it is activated (setting it as active does this), this makes the
24129         previously active forms titlebar get redrawn as inactive.
24131 2006-06-29  Peter Dennis Bartok  <pbartok@novell.com>
24133         * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
24134           with later controls
24136 2006-06-29  Mike Kestner  <mkestner@novell.com>
24138         * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
24139         arrow in keynav state.  Fixes #78682.
24141 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
24143         * PrintDialog.cs: Reorder, relayout, remove extra code, set tab 
24144           order (fixes #78393)
24146 2006-06-28  Jonathan Pobst  <monkey@ipobst.com>
24148         * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs, 
24149           ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
24150           ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
24151           FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
24152           GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
24153           ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs, 
24154           PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
24155           Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
24156           TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
24157           ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
24158           enumerations (FlagsAttribute, SerializableAttribute, added/removed
24159           values)
24161 2006-06-28  Mike Kestner  <mkestner@novell.com>
24163         * ComboBox.cs: implement scroll wheel support. Fixes #78360.
24165 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
24167         * PropertyGrid.cs,
24168           PropertyGridTextBox.cs : explicitly set BackColor to differentiate
24169           item lines from other area (It also makes BackColor consistent and
24170           compatible with .NET). Fixed bug #78564.
24172 2006-06-28  Jonathan Chambers  <jonathan.chambers@ansys.com>
24174         * PropertyGrid.cs: refresh toolbar when PropertySort is set.
24175         Patch from Eno for #78555.
24177 2006-06-27  Chris Toshok  <toshok@ximian.com>
24179         * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
24181         * DataGridColumnStyle.cs: same.
24183         * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
24184         
24185         * DataGridDrawingLogic.cs: nuke.
24187 2006-06-27  Chris Toshok  <toshok@ximian.com>
24189         * DataGridTableStyle.cs: clean up the constructors, and build the
24190         list of child relations for this table.  I have no idea if this is
24191         where we should be doing it (it probably isn't), but since we're
24192         already iterating over the properties..
24194         * DataGrid.cs: add row resizing.  for now we add a DataGridRow
24195         struct and array for keeping track of row information, similar to
24196         what's shown in a hack on
24197         http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
24199         * Theme.cs: be consistent about the naming of DataGrid methods,
24200         prefering ColumnWidths and RowHeights over columnsWidths and
24201         RowsHeights.
24203         * ThemeWin32Classic.cs: same, and also add support for variable
24204         sized rows (and the +/- expansion icons for related rows).
24206 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
24208         * TextBoxBase.cs: Applied Eno's patch from #78660
24210 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
24212         * Form.cs (ScaleCore): We don't want to scale our form if it's
24213           state is minimized or maximized, but we still need to scale our
24214           child windows. Also, added try/finally block to ensure layout
24215           gets reset (Fixes #78697)
24217 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
24219         * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
24221 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
24223         * Form.cs: Fixed c+p error and added check to resize form if minimum
24224           size is bigger than current size (Fixes #78709)
24226 2006-06-26  Peter Dennis Bartok  <pbartok@novell.com> 
24228         * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
24230 2006-06-26  Mike Kestner  <mkestner@novell.com>
24232         * ComboBox.cs: only do Keypress handling in the combo when there  
24233         are items in the collection. Fixes #78710.
24235 2006-06-26  Chris Toshok  <toshok@ximian.com>
24237         * Binding.cs: make this work bi-directionally.  also, clear up
24238         other mixups between Push/Pull Data (e.g. we're supposed to pull
24239         data when validating).
24241         * BindingManagerBase.cs: trim some fully qualified collection
24242         types.
24244         * PropertyManager.cs (get_IsSuspended): oops, fix this check.
24246 2006-06-23  Chris Toshok  <toshok@ximian.com>
24248         * PropertyManager.cs: It appears (according to the unit tests)
24249         that PropertyManager doesn't use
24250         PropertyDescriptor.AddValueChanged to track propery value changes
24251         in its datasource, but uses the same scheme as Binding, where it
24252         looks for a <Property>Changed event and binds to it.
24254         Also, according to the docs, IsSuspended always returns false for
24255         a property manager with a non-null datasource.
24257 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com> 
24259         * Form.cs: (ShowDialog): If we're returning a forced cancel we still
24260           need to update the actual DialogResult. (Fixes #78613)
24262 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com>
24264         * Form.cs (ShowDialog): Release any captures before running the
24265           new message pump (fixes #78680)
24267 2006-06-22  Mike Kestner  <mkestner@novell.com>
24269         * ListView.cs: Layout column widths properly in details mode even 
24270         if HeaderStyle.None is set.  Fixes #78691.
24272 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com>
24274         * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
24276 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com> 
24278         * Control.cs (ContainsFocus): Using new driver method to get focused
24279           window, instead of trying to use internal tracking var, which can
24280           recursion issues (Fixes #78685)
24281         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
24282           XplatUIWin32.cs: Added GetFocus method to return focused window
24284 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24286         * ColorDialog.cs: when the mouse button is pressed inside the color
24287         matrix, don't let the cursor move out of it until the button is
24288         released, which is the behavior on windows. Changed 'colours' by
24289         'colors' to use the same word consistently.
24291 2006-06-21  Chris Toshok  <toshok@ximian.com>
24293         * DataGrid.cs: add in some basic navigation stuff (navigating to a
24294         child relation and back, using a stack).  Also, remove
24295         GetDataSource and the code that calls it - it's not needed.  Also,
24296         track CurrencyManager.ListName's removal.
24298 2006-06-21  Chris Toshok  <toshok@ximian.com>
24300         * CurrencyManager.cs: push some of the original type checking from
24301         BindingContext.CreateBindingManager to here, and remove some of
24302         the finalType stuff.  Need more tests to make sure I've got the
24303         ListName part right, and we might need more in SetDataSource.
24305         * PropertyManager.cs: add a ctor that takes just the datasource,
24306         and no property name.  Make SetDataSource work with a null
24307         property_name, and make Current return the data_source if the
24308         property descriptor is null.  this makes 'string foo = "hi";
24309         BindingContext[foo].Current' return "hi" as it should.
24311         * RelatedCurrencyManager.cs: make this code more generic - there's
24312         no reason the parent manager has to be CurrencyManager, and
24313         there's no reason to pass the DataRelation.  It suffices to use a
24314         BindingManagerBase and PropetyDescriptor.
24316         * RelatedPropertyManager.cs: make a similar change here.
24317         
24318         * BindingContext.cs: make CreateBindingManager the beautiful, tiny
24319         flower I knew it could be.
24321 2006-06-20  Chris Toshok  <toshok@ximian.com>
24323         * PropertyManager.cs: the PropertyChangedHandler is invoked when
24324         data in the source has changed and we need to update the control,
24325         so s/PullData/PushData.
24327         * CurrencyManager.cs: Refresh is meant to update the control from
24328         data in the datasource.  So, s/PullData/PushData.
24330         * BindingContext.cs: add more ugliness (we weren't handling the
24331         case where data_source = DataTable and data_member = column_name).
24333         * Binding.cs: fix PushData/PullData mixup.  Both are interpreted
24334         from the perspective of the datasource.  PullData pulls from the
24335         control, PushData pushes to the control.
24337 2006-06-20  Chris Toshok  <toshok@ximian.com>
24339         * BindingContext.cs: rewrite the CreateBindingManager code to
24340         handle navigation paths more or less properly.  This could
24341         definitely stand some more work, in particular to push the
24342         recursion up to the toplevel.  But that relies on fixes in other
24343         places (System.Data comes to mind).
24345         Also, move to a flat hashtable (and encode the twolevel nature of
24346         the dictionary into the hash key).  This lets us implement the
24347         IEnumerable.GetEnumerator method.
24349         * RelatedCurrencyManager.cs: new class.  Update our view based on
24350         our relation and our parent CurrencyManager's position.
24352         * CurrencyManager.cs: split out some logic from the ctor into
24353         SetView, so it can be called from the new RelatedCurrencyManager
24354         subclass.
24356         * RelatedPropertyManager.cs: new class.  Update our datasource
24357         based on the position of our parent CurrencyManager.
24359         * PropertyManager.cs: split out some logic from the ctor into
24360         SetDataSource, so it can be called from the new RelatedDataSource
24361         subclass.  Also, make the Current getter return the value
24362         of the PropertyDescriptor, not the data_source.
24364         * Binding.cs: no need to duplicate the string splitting code here.
24366 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
24368         * Control.cs:
24369           - set_Enabled: OnEnabledChanged is not called if the inherited state 
24370             of the control is not altered, even though  we might be changing the
24371             internal state of the control (#78458)
24372           - set_Enabled: (Re)Moved the enabling/disabling of the window to 
24373             OnEnabledChanged, to allow easy altering of any child window state
24374           - OnEnabledChanged: Added code to enable/disable driver window state
24375           - OnParentEnabledChanged: Instead of firing the event, call 
24376             OnEnabledChanged, which will fire the event and also a) set driver
24377             window state and pass the enabled state to any grandchildren (#78458)
24379 2006-06-19  Jackson Harper  <jackson@ximian.com>
24381         * InternalWindowManager.cs: We don't set the cursor explicitly
24382         thats done via the response to NCHITTESTs.
24383         - Don't need to adjust for titlebar heights anymore, the
24384         coordinates are coming in the correct coordinates now (see peters
24385         last patch).
24388 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
24390         * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
24391           being translated relative to whole window, instead of client window.
24392           That caused broken offsets on mouseclick (and caused gas for our
24393           InternalWindowManager)
24395 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
24397         * TextControl.cs:
24398           - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
24399           - Undo(): Added replay of cursor move on DeleteChars action; added
24400             calling Undo() again if a recorded cursor move is invalid (to
24401             ensure that some action is performed on Undo)
24402         * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
24404 2006-06-16  Jackson Harper  <jackson@ximian.com>
24406         * MdiClient.cs: Instead of just sizing maximized windows when
24407         there is a resize we also have to adjust the Y of minimized
24408         windows, so they stay pinned to the bottom of the mdi container.
24409         - Eliminate separate tracking of the active control, we can just
24410         get this from the controls collection.
24411         - Paint the decorations for the newly activated titlebar so we get
24412         a pretty blue bar.
24413         * InternalWindowManager.cs:
24414         * ThemeWin32Classic.cs: Minimized windows get all three buttons
24415         even if they are a tool window.
24416         
24417 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
24419         * TextControl.cs (Undo): Handle non-existent cursor locations in the
24420           undo buffer, these can happen when text was deleted and the cursor
24421           was recorded first. Since we will also have a recorded cursor
24422           after the delete this is not an issue. (Fixes #78651)
24424 2006-06-14  Peter Dennis Bartok  <pbartok@novell.com> 
24426         * AccessibleObject.cs: Remove dependence on Control.is_selected;
24427           instead properly track control states internally (allows us to
24428           remove is_selected from Control)
24430 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24432         * ImageListStreamer.cs: correctly generate the 1bpp mask for images
24433         whose width is not a multiple of 8.
24435 2006-06-13  Jackson Harper  <jackson@ximian.com>
24437         * MdiClient.cs:  Only maximize the next child if the current one
24438         is maximized.
24440 2006-06-13  Chris Toshok  <toshok@ximian.com>
24442         * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
24443         modified.  Also, guard against grid or grid_drawing being null in
24444         Invalidate.
24446         * DataGrid.cs: Reformat tons of getters/setters.  In the
24447         DataMember setter, just call SetNewDataSource instead of
24448         duplicating some of its functionality.  In SetNewDataSource, don't
24449         check ListManager for null, since the property getter creates the
24450         object if needed.
24452         * DataGridTableStyle.cs: don't set TableStyle or call
24453         SetDataGridInternal on the column here, it's done in
24454         GridColumnStylesCollection.Add.
24456         * GridColumnStylesCollection.cs: fix all the explicit interface
24457         implementations to just call our methods.  Nuke AddInternal() and
24458         move the body of it to Add().  Also, add a call to
24459         column.SetDataGridInternal to Add().
24461         * DataGridTextBoxColumn.cs (.ctors): call this() instead of
24462         base()+duplicate code.  Also, use the Format property instead of
24463         format to generate an Invalidate ala MS.  Lastly, create the
24464         textbox here, unconditionally.
24465         (set_Format): call Invalidate.
24466         (get_TextBox): no need to call EnsureTextBox.
24467         (Commit): remove the message box.
24468         (Edit) remove the call to EnsureTextBox.
24469         (EndEdit): call HideEditBox instead of ReleaseHostedControl.
24470         (EnterNullValue): no need to check textbox for null.
24471         (HideEditBox): no need to check textbox for null.
24472         (SetDataGridInColumn): add the textbox to the grid's controls.
24473         (EnsureTextBox): nuke.
24474         
24475 2006-06-13  Jackson Harper  <jackson@ximian.com>
24477         * MdiWindowManager.cs: Hook up to the maximized menus paint event
24478         and redraw the buttons when needed. Unhook when the window is
24479         unmaximized.
24480         * MainMenu.cs: Add an internal Paint event, the mdi window manager
24481         needs this so that it can redraw its buttons when the menu is
24482         repainted.
24483         * InternalWindowManager.cs:
24484         * Form.cs: The method order has changed for DrawMaximizedButtons,
24485         so that it can be a PaintEventHandler.
24486         
24487 2006-06-13  Jackson Harper  <jackson@ximian.com>
24489         * MdiClient.cs: When we close a maximized mdi window, the next mdi
24490         window is activated and maximized, even if it wasn't before.
24491         - When  a new window is activated repaint the decorations of the
24492         old one, so that it no longer has the Active "look" (the blue
24493         titlebar).
24494         * InternalWindowManager.cs: Open up CreateButtons to base classes
24495         so they can recreate the buttons on state changes.
24496         - If a window is maximized give it all three buttons
24497         * MdiWindowManager.cs: Create the titlebar buttons when the state
24498         is changed, this is needed because a toolwindow will not have all
24499         three buttons until it is maximized.
24501 2006-06-13  Atsushi Enomoto  <atsushi@ximian.com>
24503         * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
24504           Fixed bug #78609.
24506 2006-06-12  Jackson Harper  <jackson@ximian.com>
24508         * KeysConverter.cs: Make sure we handle the Ctrl special case
24509         if its the only key.
24510         
24511 2006-06-12  Jackson Harper  <jackson@ximian.com>
24513         * Theme.cs: Add a method to get the size of a managed window
24514         toolbar button.
24515         * InternalWindowManager.cs: Remove the ButtonSize property, this
24516         should be retrieved from the theme.
24517         * MdiWindowManager.cs: Get the button size from the theme
24518         * ThemeWin32Classic.cs: Make the method to get the managed window
24519         titlebar button size public.
24520         - Handle the different button sizes of maximized toolwindows
24521         (should match any maximized window).
24522         - Get the titlebar height from the theme, not the WM (which gets
24523         it from the theme).
24525 2006-06-12  Jackson Harper  <jackson@ximian.com>
24527         * InternalWindowManager.cs: Handle NC Double Clicks, passing the
24528         event down to the mdi window manager.
24529         - Expose some extra stuff to base classes
24530         - Make sure to end the Capture on an NC Mouse up, so that we can
24531         get double clicks properly, and the sizing doens't stick.
24532         - When doing PointToClient contain it in the workable desktop
24533         area, this prevents windows from changing size when the cursor is
24534         pulled outside of the working area while sizing.
24535         * MdiWindowManager.cs: When we get a double click maximize the
24536         window.
24537         - Reset the cursor after handling mode changes.
24539 2006-06-12  Peter Dennis Bartok  <pbartok@novell.com> 
24541         * XplatUIX11.cs (WorkingArea): Read the actual workarea for the 
24542           current desktop, instead of just assuming a 0, 0 origin. This
24543           is needed for our internal window manager, to know the top
24544           margin of the desktop
24546 2006-06-12  Chris Toshok  <toshok@ximian.com>
24548         * DataGrid.cs (set_CurrentCell): concede focus as we move around.
24549         we need this to get rid of the selected background in the bool
24550         column.
24551         (CancelEditing): move the ConcedeFocus call to above the Abort
24552         call.  Also, set is_changing to false and invalidate the row
24553         header if we were changing before.
24554         (ProcessKeyPreviewInternal): remove, since noone outside this
24555         class calls it anymore.  Roll the code into ProcessKeyPreview.
24556         (EndEdit): remove the internal version.
24557         (InvalidateCurrentRowHeader): make private.
24559         * DataGridBoolColumn.cs: simplify this class a bunch.  remove the
24560         Keys.Escape handling (and with it the last call to
24561         DataGrid.EndEdit from outside the class.)
24564 2006-06-12  Chris Toshok  <toshok@ximian.com>
24566         * DataGridTextBox.cs (.ctor): isedit defaults to false.
24567         (OnKeyPress): set isedit to true.
24568         (ProcessKeyMessage): remove Keys.Enter handling from here.  it's
24569         already handled by the grid.
24571         * DataGrid.cs (set_CurrentCell): more work here.  it's still not
24572         right.  ugh.
24573         (set_DataSource): SetDataSource always returns true, so stop
24574         putting it in an if statement.
24575         (EndEdit): get rid of some {}'s
24576         (ProcessGridKey): return true in case Keys.Escape.
24577         (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
24578         (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
24579         PositionChanged, stopped connecting to CurrentChanged.
24580         (GetDataSource): simplify this a bunch.
24581         (SetDataSource): change return type from bool to void.
24582         (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
24583         to this, and make sure we don't set ListManager.Position inside
24584         set_CurrentCell.
24585         (OnListManagerItemChanged): if we're passed an actual index,
24586         redraw that row.
24588         * CurrencyManager.cs (set_Position): don't call PullData here.
24590 2006-06-09  Jackson Harper  <jackson@ximian.com>
24592         * TreeNode.cs:  Recalculate the visible order before doing the
24593         Expand/Collapse Below calls, because those calls generate an
24594         expose.
24595         - Reduce calls to the TreeView property, which is mildly expensive
24596         by using a local var.
24597         * Form.cs: Layout the MDI child windows when creating the parent
24598         form.
24599         - Don't use the internal constructor anymore
24600         * MdiClient.cs: use the parent form width/height (if available)
24601         when laying out the child windows, we do this because the
24602         mdiclient isn't docked yet when the initial layout is done.
24603         - Don't need an internal constructor anymore.
24605 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24607         * FileDialog.cs: handle access errors when trying to create a folder
24608         or changing to a directory. No need to initialize out parameters.
24610 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
24612         * FileDialog.cs: Append a number when creating a new folder if the
24613           folder already exists (use parenthesis instead of square brackets)
24615 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
24617         * FileDialog.cs:
24618           - Disabled registry support for windows and added better registry
24619             error checking for other systems (need to investigate why it
24620             works perfectly on my system)
24621           - If a folder already exist show an error MessageBox instead of
24622             trying to create an indexed name.
24623           - Fixed a non intentional typo.
24625 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24627         * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
24629 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
24631         * FileDialog.cs: When creating a new folder don't crash if the
24632           folder already exists.
24634 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
24636         * FileDialog.cs: Allmost a complete rewrite.
24637           - added a "virtual" file system that handles the differences
24638             between unix and windows file systems (especially the directory
24639             structure). Moved most of the directory and file handling code
24640             into the vfs.
24641             Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
24642             UnixFileSystem and FSEntry.
24643           - Recently used folder/directory, size, location and used file names
24644             (file name ComboBox) are now stored in the registry and get read
24645             before the dialog shows up (fixes part 6 of bug #78446).
24646           - Creation of new folders/directories is now possible (context menu
24647             or ToolBar). Added TextEntryDialog for this that fills in the gap
24648             until ListView.LabelEdit works.
24649           - Fixed cursor handling (bug #78527) and focus handling for
24650             PopupButtonPanel
24651           - Various "Search in" ComboBox enhancements. The content of the
24652             dropdown listbox now almost matches ms.
24653           - Changed the behaviour when the user switches to SpecialFolder
24654             Recent to show the ListView in View.Details.
24655           - Beside using the ToolBar to change the View property of the
24656             file ListView it is now possible to use the context menu too.
24658 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
24660         * ComboBox.cs: Don't create a new ObjectCollection when an item
24661           gets inserted. Just insert the item in the existing object_items
24662           ArrayList.
24664 2006-06-08  Jackson Harper  <jackson@ximian.com>
24666         * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
24667         that the treeview and root node checks are done also, this fixes a
24668         regression i caused in the unit tests.
24670 2006-06-07  Wade Berrier <wberrier@novell.com> 
24672         * RichTextBox.cs: More ISO8859-1 -> unicode
24674 2006-06-07  Mike Kestner  <mkestner@novell.com>
24676         * ComboBox.cs : use items to hold highlight/selection so that
24677         collection insertions don't require synchronization.
24679 2006-06-07  Jackson Harper  <jackson@ximian.com>
24681         * InternalWindowManager.cs: Simplify (and FIX) the window sizing
24682         routine.  We now always keep the sized edge at the cursor instead
24683         of computing movement and adjusting rects.  There is one buglet
24684         with this method though when the cursor is moved over area that
24685         the window can not expand too (such as the toolbars on the desktop).
24687 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24689         * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
24690         here. Fixes crash on startup in AlbumSurfer.
24692 2006-06-07  Peter Dennis Bartok  <pbartok@novell.com> 
24694         * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
24695           values
24697 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24699         * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
24700         statement to avoid calling XNextEvent which will block if another thread
24701         took the event that we were expecting. Fixes bug #78605.
24703 2006-06-07  Mike Kestner  <mkestner@novell.com>
24705         * ListView.cs : isolated checkbox clicking from the selection logic.
24706         Toggle check state on item doubleclicks.  Really fixes #78454 part2.
24708 2006-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24710         * Form.cs: Check that the value passed to Form.DialogResult
24711         is a valid enum value.
24713 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24715         * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
24716         Computer'. Clicking it in the network view goes to 'My Computer'.
24717         Added CIFS filesystem type. Display the mount point of filesystems.
24718         Avoid duplicate mount points (happens for me with CIFS);
24720 2006-06-06  Jackson Harper  <jackson@ximian.com>
24722         * InternalWindowManager.cs: Draw the maximized windows buttons
24723         when resizing.
24725 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24727         * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
24728         all other dialogs. Fixes bug #78585.
24730 2006-06-06  Mike Kestner  <mkestner@novell.com>
24732         * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
24733         Only invalidate checkbox on checkstate changes to avoid flicker.
24734         * ListBox.cs : avoid unselect/select when clicking selected item.
24735         avoid reselection flicker for already multiselected items.
24736         Fixes #78382.
24738 2006-06-06  Jackson Harper  <jackson@ximian.com>
24740         * MdiWindowManager.cs: When the window is closed do an NCRecalc on
24741         the parent form so that the menu is removed if needed.
24743 2006-06-06  Mike Kestner  <mkestner@novell.com>
24745         * ListBox.cs : add ScrollWindow call to UpdateTopItem.  fix
24746         Prev/Next/PrevPage/NextPage/Home/End index calculation.  Fixes #78559.
24748 2006-06-06  Mike Kestner  <mkestner@novell.com>
24750         * CheckedListBox.cs : rebuild check collection on Add.  Fixes #78426.
24753 2006-06-06  Jackson Harper  <jackson@ximian.com>
24755         * Control.cs: Use the property (instead of the field) to get the
24756         default cursor so it is instantiated correctly.
24757         * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
24758         resizes so we need to manually repaint the window decorations here.
24759         - Set the titlebar button locations as soon as they are created,
24760         otherwise they are not set correctly on win32.
24761         
24762 2006-06-06  Chris Toshok  <toshok@ximian.com>
24764         * CurrencyManager.cs (set_Position): call PullData before
24765         OnCurrentChanged.
24766         (AddNew): after calling IBindingList.AddNew, update our
24767         listposition, and call OnCurrentChanged/OnPositionChanged (without
24768         calling PullData).
24769         (OnCurrentChanged): remove the call to PullData from here.
24770         (OnItemChanged): remove the call to PushData from here.
24771         (OnPositionChanged): change the test from == null to != null to
24772         match the other methods.
24773         (ListChangedHandler): the grossest part of the patch.  Implement
24774         this such that it passes the unit tests in CurrencyManagerTest and
24775         the output more or less matches that of MS's implementation.
24777 2006-06-06  Mike Kestner  <mkestner@novell.com>
24779         * ListView.cs : only update check state on single click.
24780         * ThemeWin32Classic.cs : fix focus drawing for details view without
24781         fullrowselect.  Fixes #78454.
24782         * XplatUIX11.cs : fix for double click emission.
24784 2006-06-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
24786         * PropertyGridView.cs : Applied Atsushi's patch to fix
24787         font dialog bug  (#78197).
24789 2006-06-05  Jackson Harper  <jackson@ximian.com>
24791         * TreeNode.cs: Compute the next node for expanding/collapsing
24792         correctly. We now factor in nodes without a NextNode
24793         correctly. (Fixes somes cases in nunit-gui).
24794         * InternalWindowManager.cs: Set the bounds when updating the
24795         virtual position of a tool window.
24796         
24797 2006-06-05  Chris Toshok  <toshok@ximian.com>
24799         * DataGrid.cs: rename cached_currencymgr to list_manager.
24800         (set_CurrentCell): move SetCurrentCell code here, and clean it up
24801         some.
24802         (CurrentRow, CurrentColumn): single accessors so we can make the
24803         cursor movement code a lot easier to understand.
24804         (CurrentRowIndex): implement this in terms of CurrentRow.
24805         (BeginEdit): clean this up a bit.
24806         (CancelEditing): sort out the is_editing/is_changing/is_adding
24807         stuff a little.
24808         (EndEdit): minor changes.
24809         (OnKeyDown): add a comment about a (most likely) unnecessary
24810         check.
24811         (OnMouseDown): cancel editing when we click on a row header.  And
24812         use the CurrentRow setter, not CurrentCell.
24813         (ProcessDialogKey): directly call ProcessGridKey.
24814         (UpdateSelectionAfterCursorMove): factor out this common block of
24815         code (it's used everywhere that we move the cursor by updating row
24816         or column).
24817         (ProcessGridKey): pretty substantial overhaul.  Use the
24818         CurrentRow/CurrentColumn properties to make the code a lot more
24819         readable.  Only use the CurrentCell property when we have to
24820         modify both row and column at once.  Tab behavior is still broken,
24821         and Delete is untested.
24822         (Select): if we have no selected rows, set selection_start to
24823         @row.
24824         (EditCurrentCell): rename EditCell this.  It was only ever invoked
24825         with CurrentCell as the arg, so drop the arg and rename it.
24827         * DataGridColumnStyle.cs: clean up the constructors a little, and
24828         drop CommonConstructor().
24830         * DataGridTextBox.cs (.ctor): set accepts_return to true so we
24831         actually get notified when the user hits it.
24832         (ProcessKeyMessage): *substantially* simplify this method.
24833         There's no reason (that I can see) for the textbox to be making
24834         calls into the datagrid at all.  Remove all of them but the ones
24835         for Enter handling.  those will take some more work.
24837         * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
24838         calling HideEditBox.
24839         (HideEditBox): if we have an active textbox, render it invisible
24840         without causing a re-layout of the datagrid.
24842 2006-06-05  Mike Kestner  <mkestner@novell.com>
24844         * ListView.cs : fix NRE crasher when focuseditem is cleared by
24845         collection changes by resetting it to Items[0].  Fixes #78587.
24847 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24849         * MessageBox.cs: if the height of the text is larger than the icon_size,
24850         use that. Fixes bug #78575.
24852 2006-06-05  Jackson Harper  <jackson@ximian.com>
24854         * TreeView.cs: Fix line drawing when scrolling.  To do this each
24855         node is basically responsible for drawing its entire horizontal
24856         area.  When drawing a node it draws its parent node lines if
24857         needed.
24858         - Adjust the clip area to the viewport rectangle
24859         - Fix Left/Right key handling to match MS. (It expand/collapses
24860         and moves to parents/first child but does not move selection to
24861         sibling nodes).
24862         - Fix SetTop to work with new bound calculation code
24863         - When scrollbars are no longer needed we need to reset scrolling
24864         vars and recalculate the visible order so the redraw is correct
24865         * TreeNode.cs: We can't expand/collapse nodes with no children.
24867 2006-06-03  John Luke  <john.luke@gmail.com> 
24869         * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
24870         so the colors work without dev packages
24871         
24872 2006-06-02  Peter Dennis Bartok  <pbartok@novell.com> 
24874         * Control.cs 
24875           - Select: Implemented to just use activate. Seems to match MS 
24876             behaviour closest. Documented to only do actual control walking 
24877             based on it's parameters if in a container control so I moved 
24878             the code there.
24879           - Removed selection check logic from our internal Select() method
24880         * ContainerControl.cs:
24881           - Select: Moved selection logic from Control here, since MS documents
24882             that containers obey the bool arguments. No longer calling base
24884 2006-06-02  Jackson Harper  <jackson@ximian.com>
24886         * TreeView.cs: If the selected node isn't changed when we get
24887         focus update the previously selected node so that we see the
24888         selection box.
24890 2006-06-02  Mike Kestner  <mkestner@novell.com>
24892         * ComboBox.cs: restructure grab and general mouse event handling.
24893         Make the composite control raise mouse events like it was a single
24894         control for leaves/enters/motion/up/down events.  fix dropdown list
24895         coordinate mangling and refactor it into the scrollbar subclass to
24896         reduce code duplication.  Fixes #78282 #78361 and #78457.
24898 2006-06-02  Mike Kestner  <mkestner@novell.com>
24900         * ScrollBar.cs: remove Capture setting/clearing, as it happens
24901         automatically in the Control.WndProc.
24903 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24905         * FileDialog.cs: fix crash when running SharpChess, which sets the
24906         FilterIndex to 2 with only one Filter.
24908 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24910         * ToolBar.cs: add SizeSpecified property.
24911         * ToolBarButton.cs: when the ButtonSize is calculated by the container,
24912         try to figure out our real size, otherwise fallback to what the
24913         container says.
24915 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
24917         * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
24918         * Control.cs (WndProc): MS always calls the DefWndProc to pass
24919           up the event
24921 2006-06-01  Mike Kestner  <mkestner@novell.com>
24923         * ListView.cs: revamp the focus management in ListView.  It still
24924         causes churn of LostFocus/GotFocus emissions on clicks, but it's
24925         better than not handling focus at all.  Will revisit when pdb feels
24926         the general focus handling is solid.  Fixes #78526.
24928 2006-06-01  Jackson Harper  <jackson@ximian.com>
24930         * TreeView.cs: Set the default border style in the constructor.
24931         - Move painting to use OnPaintInternal instead of capturing
24932         WM_PAINT, this is the correct way of doing things
24933         - UpdateBelow shouldn't invalidate the scrollbar area
24934         - Cap the top on update below in case the node was above the top
24935         of the viewport rectangle.
24936         - ExpandBelow and Collapse below need to obey Begin/End Update.
24937         * TreeNode.cs: Make is_expanded internal so the treenode
24938         collection can change it without firing the whole event chain.
24939         * TreeNodeCollection.cs: When clearing all the child nodes make
24940         sure to recalc the visible order.
24941         - Improve algo for remove the top node
24943 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
24945         * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
24946           SendMessage directly calling window procedures, which in turn might
24947           call SetFocus()
24949 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com>
24951         * Control.cs: Don't handle WM_SETFOCUS if the same window already
24952           has focus (works around X11 sending a FocusIn after our SetFocus)
24953         * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
24955 2006-06-01  Alexander Olk  <alex.olk@googlemail.com>
24957         * Mime.cs: Fix for the NET_2_0 build.
24958           NameValueCollection needs StringComparer now.
24960 2006-05-31  Chris Toshok  <toshok@ximian.com>
24962         * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
24963         return (via an out parameter) the starting X of the column.
24964         (UpdateVisibleColumn): track change to FromPixelToColumn.
24965         (HitTest): add a ColumnResize case here.
24966         (DrawResizeLine): new function, probably poorly named.
24968         * DataGrid.cs (.ctor): get rid of cached_currencymgr_events.  We
24969         only need to keep one reference.
24970         (set_ListManager): same.
24971         (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
24972         Also, add support for HitTestType.ColumnResize.
24973         (OnMouseMove): add column resize behavior here, and change the
24974         cursor to the correct one as we move around the datagrid.
24975         (OnMouseUp): terminate the column resize if we're resizing.
24976         (ProcessGridKey): from the MS docs, Alt-0 enters the null value
24977         for the current cell.
24978         (ConnectListManagerEvents): use cached_currencymgr.
24979         (DisconnectListManagerEvents): fill this in, using
24980         cached_currencymgr.
24981         (SetCurrentCell): remove cached_currencymgr_events handling.
24982         (SetDataMember): only call DisconnectListManagerEvents if
24983         cached_currencymgr is != null.
24984         (SetDataSource): same.
24985         (OnListManagerCurrentChanged): cached_currencymgr_events ->
24986         cached_currencymgr.
24988 2006-05-31  Jackson Harper  <jackson@ximian.com>
24990         * BindingManagerBase.cs: Remove somedebug code that creeped into
24991         SVN.
24992         * TreeNode.cs: We get the indent level dynamically right now, so
24993         don't track it as a member.
24994         * TreeNodeCollection.cs: Make sure all nodes added to the list
24995         have parents, treeviews/topnodes setup properly.
24996         - Don't attempt to track indent level.
24998 2006-05-30  Jackson Harper  <jackson@ximian.com>
25000         * BindingContext.cs: Create the currency manager tables here.
25001         This allows us to more easily create null tables (when bad data
25002         members are used), and more easily create related currency
25003         managers.
25004         * CurrencyManager.cs: All the table creation stuff is done by the
25005         binding context now.
25006         - Current should throw an exception if listposition is -1.
25007         - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
25008         been bound yet.
25010 2006-05-30  Mike Kestner  <mkestner@novell.com>
25012         * ListView.cs: allow reexpansion of zero-width column headers.
25013         Fixes #78528.
25015 2006-05-28  Chris Toshok  <toshok@ximian.com>
25017         * CurrencyManager.cs (get_Current): after the late binding
25018         listposition = -1 fix, we need to guard against it here and return
25019         null, otherwise we raise an exception (which is swallowed
25020         elsewhere, and breaks datagrid databinding.)
25022 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
25024         * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
25025           than WM_SYSKEY, don't throw if get something unexpected (#78507)
25027 2006-05-26  Jackson Harper  <jackson@ximian.com>
25029         * ControlPaint.cs:
25030         * ThemeWin32Classic.cs: For color comparisons just use the ARGB
25031         values, it's faster and it's all we care about (we don't care if
25032         the names aren't equal).
25033         * KeyboardLayouts.cs: Eliminate some dead code.
25034         - Lazy init things
25035         * X11Keyboard.cs: Lazy init keyboard detection.
25036         - Cleanup access modifiers a little.
25038 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
25040         * XplatUIX11.cs: Once again, attempting to get layout just right.
25042 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com> 
25044         * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
25045           the sizes of each link section, that will result in sizes that
25046           match DrawString's layout (Fixes #78391)
25048 2006-05-27  Alexander Olk  <alex.olk@googlemail.com>
25050         * FileDialog.cs: If AddExtension property is true autocomplete the
25051           extensions in SaveFileDialog correctly. Fixes bug #78453.
25052           Set MyNetwork and MyComputer to "C:\" for windows. This should
25053           fix part 8 of bug #78446 for now.
25055 2006-05-26  Chris Toshok  <toshok@ximian.com>
25057         * DataGrid.cs (ColumnStartedEditing): fill these in.  for now just
25058         invalidate the current row header if we need to, but presumably
25059         we'll invalidate the row corrsponding to the bounds or
25060         editingControl.
25061         (GridHScrolled): switch back to this method, as it's part of the
25062         public api.  *sigh*.
25063         (GridVScrolled): same.
25064         (OnMouseWheel): hack up something that more or less works.  Call
25065         GridHScrolled/GridVScrolled directly, instead of duplicating much
25066         of their code here.
25067         (EnsureCellVisibility): reinstate a bunch of this code, since we
25068         can't just set the scrollbar Value and expect to do all the work
25069         in the ValueChanged handler.  Also, Call Update() after scrolling
25070         in one direction so the other XplatX11.ScrollWindow call has the
25071         proper stuff in the proper places.
25072         (EditCell): set is_editing to true before calling .Edit.
25074         * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
25075         don't bother comparing first.
25076         (OnKeyPress): call grid.ColumnStartedEditing before calling
25077         base.OnKeyPress.  this will set is_changing and invalidate the row
25078         header if necessary.
25079         (ProcessKeyMessage): for WM_CHAR messages, call
25080         ProcessKeyEventArgs directly.  swallow anything other than WM_CHAR
25081         and WM_KEYDOWN.
25082         
25083         * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
25084         it's done in the DataGrid.
25085         (NextState): call grid.ColumnStartedEditing, which takes care of
25086         invalidating the row header (and setting is_changing).
25088         * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
25089         here.  it's done in the DataGrid.
25091 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25093         * Control.cs: allow changing the cursor when the mouse position is
25094         out of bounds but Capture is set.
25095         * LinkLabel.cs: handle the case when the mouse button is pressed on the
25096         linklabel but released somewhere else.
25098 2006-05-25  Jackson Harper  <jackson@ximian.com>
25100         * TreeView.cs: When we get focus if there is no selected node make
25101         it the top node
25102         - Remove some uneeded setup code from Draw.
25103         * TreeNodeCollection.cs: If the tree doesn't have a top node when
25104         a new node is inserted make the new node the top.
25105         * XplatUIX11.cs:
25106         * Timer.cs: Use Utc time so that no local time zone stuff needs to
25107         be used (should be faster).
25108         
25109 2006-05-25  Chris Toshok  <toshok@ximian.com>
25111         * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
25112         problem with the last commit.
25114 2006-05-25  Chris Toshok  <toshok@ximian.com>
25116         * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
25117         need the invalidate call here, while scrolling right-to-left via
25118         the left arrow key (i.e. moving the editing cell while scrolling).
25120         * DataGrid.cs (.ctor): remove the initialization of
25121         ctrl_pressed/shift_pressed.  We no longer track them using key
25122         up/down handlers, but by using Control.ModifierKeys.  Also, switch
25123         to using ValueChanged handlers on the scrollbars instead of
25124         Scrolled event handlers.  This simplifies a bunch of the scrolling
25125         code.
25126         (GridHValueChanged): rename from GridHScrolled, and change it to
25127         work with the new event args.
25128         (GridVValueChanged): same.
25129         (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
25130         (OnMouseWheel): actually scroll the datagrid.  Don't change the
25131         selected cell.
25132         (ProcessGridKey): correct all the keyboard navigation stuff I
25133         could find.  Ctrl up/down/left/right/home/end work now.
25134         (EnsureCellVisibility): correct method name spelling.  Also,
25135         simplify this a touch by not explicitly calling the
25136         ScrollToRow/ScrollToColumnInPixels methods.  We just set the
25137         scrollbar value.
25138         (OnKeyUpDG): no need for this method now.
25139         
25140 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25142         * LinkLabel.cs: display the OverrideCursor when hovering the label.
25143         Fixes bug #78392.
25145 2006-05-25  Chris Toshok  <toshok@ximian.com>
25147         * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
25148         r61019.
25150 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
25152         * Application.cs: Moved setting of is_modal and closing to before
25153           we create the control, to allow the event handlers called as a
25154           result of creation affect closing. Also removed Gonzalo's previous
25155           change to setting DialogResult, the behaviour has been moved to 
25156           Form.ShowDialog()
25157         * Form.cs: 
25158           - ShowDialog(): Removed explicit creation of the form, let RunLoop
25159             handle it instead
25160           - ShowDialog(): If no dialog result is set, we need to return Cancel
25161           - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
25162             the close is cancelled
25164 2006-05-25  Jackson Harper  <jackson@ximian.com>
25166         * StatusBar.cs: We only need to update the sizes of the other
25167         panels when we have auto size contents.  Also we are only updating
25168         the contents of the panel, not the borders, so compensate for the
25169         border width (TODO: get this width from the theme somehow).
25170         * TreeView.cs: Scrollable is true by default
25171         - Use invalidate instead of refresh where needed
25172         - Factor the scrollable value into scrollbar updating
25173         - Update the scrollbars if the Scrollable property is altered
25174         - Update the selected node if its ImageIndex is changed
25175         - Handle null nodes in UpdateNode (mainly so we don't have to
25176         check if selected is null when updating it
25177         - Fix VisibleCount to use the ViewportRectangle so that scrollbars
25178         are factored into the visible count
25179         - Use VisibleCount for clarity in the code
25180         - When the font is changed we need to recurse through all the
25181         nodes and invalidate their sizes
25182         
25183 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25185         * Application.cs: set the DialogResult to fixed when the main form is
25186         hidden or destroyed while being modal.
25188 2006-05-25  Miguel de Icaza  <miguel@novell.com>
25190         * Theme.cs: Use Tangoified messagebox icons. 
25192         (GetSizedResourceImage): Also cope with width = 0 and do not
25193         trigger a warning in that case (0 means "give me your icon from
25194         the resouce, no special size needed).
25196 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
25198         * Application.cs: Leave runloop if the the main modal form is 
25199           hidden (fixes #78484)
25201 2006-05-25  Atsushi Enomoto  <atsushi@ximian.com>
25203         * BindingContext.cs : reject null datasource in Contains() and
25204           Item[].
25205         * CurrencyManager.cs : check data_member validity when data_source
25206           is dataset. When it is late binding, the initial position is -1.
25208 2006-05-24  Jackson Harper  <jackson@ximian.com>
25210         * TreeNodeCollection.cs: Dont't recalculate the visible order on
25211         inserted nodes that aren't visible.  This changes the
25212         max_visible_order which confuses scrollbar settings.
25213         - Use the enumerator to get the prev node instead of duplicating
25214         code.
25215         * TreeView.cs: Use new method for setting scrollbar values
25216         - Don't set the bounds every time the scrollbar is updated
25217         - When updating below the root node use an invalidate instead of a
25218         refresh to prevent the child controls (scrollbars) from being
25219         refreshed. (UpdateBelow still needs to be reworked anyways).
25220         - Reenable SetBottom now that visible orders are set correctly,
25221         added some debug code incase we ever get bad values there again.
25222         - Set the scrollbar max to 2 less then the max value, this
25223         compensates for the max value being one above the node count, and
25224         for scrollbars adding one extra "notch".
25225         - When drawing image nodes if there is an imagelist we draw the
25226         first image in the list if the supplied image index is out of the
25227         image list's bounds.
25228         
25229 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
25231         * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when 
25232           we receive a size change from the WM (Fixes #78503)
25234 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com>
25236         * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip 
25237           rectangle (Fixes #78501)
25239 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
25241         * ButtonBase.cs: 
25242           - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button 
25243             as a bitfield.
25244           - Fixed MouseMove to no longer switch pressed state unless the left
25245             mouse button is pressed. Atsushi provided the original patch (#78485)
25246           
25247 2006-05-24  Jackson Harper  <jackson@ximian.com>
25249         * ScrollBar.cs: New internal methods that allow us to change a
25250         couple values on the scrollbar (the most common case is maximum
25251         and large change) without getting multiple invalidates.
25253 2006-05-24  Chris Toshok  <toshok@ximian.com>
25255         * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
25256         (Edit): save off the original state in oldState, and set
25257         grid.is_editing to true.
25258         (OnKeyDown): abort editing if escape is pressed.  also, call
25259         NextState if space is pressed.
25260         (OnMouseDown): call NextState.
25261         (NextState): factor out shared code from OnKeyDown and OnMouseDown
25262         here.  Also, only invalidate the row header once (on the initial
25263         is_changing switch) to save on redraws.
25265 2006-05-24  Chris Toshok  <toshok@ximian.com>
25267         * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
25268         if the value in the cell is different than it was before.  This
25269         keeps us from triggering a layout when we move around a datarid
25270         with a highlighted cell.
25271         (Edit): suspend layout when creating/positining the text box, and
25272         resume passing false so we don't ever actually re-layout.
25273         (ReleaseHostedControl): same.
25274         (EnsureTextBox): reformat slightly, and set WordWrap to false.
25276         * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
25277         control-key sequences should go to the datagrid - remove that
25278         lock.  Also, modify the conditions under which we move between
25279         cells when moving the cursor within a cell, and remove the "this"
25280         and "base" from field accesses.  We weren't even consistent, given
25281         they all were in the base class.
25283 2006-05-24  Atsushi Enomoto  <atsushi@ximian.com>
25285         * Binding.cs : (.ctor)
25286           An obvious NRE fix for BindingTest.CtorNullTest().
25288 2006-05-23  Chris Toshok  <toshok@ximian.com>
25290         * TextBoxBase.cs (get_Text): don't add a trailing newline, add
25291         them between lines.  This fixes some quirks editing cells in the
25292         datagrid.
25294 2006-05-23  Jackson Harper  <jackson@ximian.com>
25296         * TreeView.cs: Use begin/end update when doing expand/collapse all
25297         so that we don't get flicker on the scrollbar.
25299 2006-05-23  Jackson Harper  <jackson@ximian.com>
25301         * TreeNode.cs: Bounds are computed 'on the fly' now.  This allows
25302         treenode calculations to be independant of the painting code. To
25303         do this nodes track a visible order which is calculated by the
25304         treeview.
25305         - Call new methods for expanding/collapsing nodes.  These methods
25306         use scrollwindow so we don't have to update everything below the
25307         node.
25308         * TreeView.cs: Refactored drawing and scrolling code.  We don't
25309         need to update nodes when drawing anymore or calculate scrollbar
25310         stuff.
25311         - Added new methods for expanding/collapsing nodes. These methods
25312         use ScrollWindow so as to not have to redraw all the nodes below.
25313         * TreeNodeCollection.cs: Recalc visible order and scrollbars when
25314         we add/remove nodes or sort.
25315         - Handle removing the selected and the top node properly.
25317 2006-05-23  Chris Toshok  <toshok@ximian.com>
25319         * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
25320         maybe this should actually happen in the datagrid code?
25321         (EndEdit): no need to invalidate anything, given that
25322         ReleaseHostedControl causes the datagrid to relayout, which
25323         invalidates everything anyway.
25325         * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
25326         in SetCurrentCell).
25327         (set_SelectionBackColor): call InvalidateSelection instead of
25328         Refresh.
25329         (set_SelectionForeColor): same.
25330         (BeginEdit): Flesh this out a bit.
25331         (CancelEditing): only do any of this if we're editing/adding.
25332         (EndEdit): same.
25333         (OnMouseDown): there's no need to cancel editing here, it's done
25334         in SetCurrentCell.
25335         (SetCurrentCell): only invalidate the current row header if it's a
25336         different row than the new one.
25337         (ShiftSelection): fix this to work like MS does.
25338         (ResetSelection): factor out the invalidation of selected_rows to
25339         InvalidateSelection.
25340         (SetDataSource): cancel any editing that's going on.
25342         * DataGridColumnStyle.cs
25343         (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
25344         call the non-interface version.
25346         * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
25347         header rectangle with the clip rectangle so we don't redraw the
25348         entire header for just a small area.  Gets rid of the last flicker
25349         when horizontally scrolling.
25350         (DataGridPaintRow): same.
25352 2006-05-23  Mike Kestner  <mkestner@novell.com>
25354         * ListViewItem.cs: remove size for line hack from LargeIcon layout.
25355         * ThemeWin32Classic.cs: don't draw line.  it's really the top of a
25356         poorly placed checkbox on the MS control.  Fixes Alex's unfiled
25357         Critical bug report.
25359 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
25361         * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
25362           and this fixes #78493
25364 2006-05-23  Miguel de Icaza  <miguel@novell.com>
25366         * Theme.cs (GetSizedResourceImage): Scale images if the proper
25367         size is not found.  
25368         
25369         * FileDialog.cs: Do not change the background for the side bar as
25370         it wont work nicely with the theme, and also reduces the artifacts
25371         in rendering the icons (which I want to fix too).
25373         * MimeIcon.cs (ResourceImageLoader): Load images from assembly
25374         resources, not resgen resources. 
25376         (PlatformDefaultHandler): Pull images using the new API.
25378 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
25380         * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
25381           a reference to the hwnd and will not remove it unless there are
25382           no pending exposures (fixes #78341)
25383         * XplatUI.cs: Improved debug
25385 2006-05-23  Atsushi Enomoto  <atsushi@ximian.com>
25387         * MenuAPI.cs : don't handle OnClick event when it was not the left
25388           button. Fixed bug #78487.
25390 2006-05-23  Mike Kestner  <mkestner@novell.com>
25392         * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
25393         prefer submenus to the top menu for item lookup, to avoid popping down
25394         top-row items.
25396 2006-05-23  Alexander Olk  <alex.olk@googlemail.com>
25398         * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
25399           Graphics.FillRectangle as the visual results are really bad (even
25400           on win). We now draw perfect arrows (and perfect shadows when the
25401           scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
25402           Pen.DashPattern to draw the dots of each line.
25404 2006-05-22  Alexander Olk  <alex.olk@googlemail.com>
25406         * FileDialog.cs: Update the filename combobox when navigating through
25407           the ListView with the cursor keys. Fixes part 7 of bug #78446.
25409 2006-05-22  Mike Kestner  <mkestner@novell.com>
25411         * ListView.cs: raise SelectedIndexChanged on keyboard selection.
25412         Fixes #78463.
25414 2006-05-22  Mike Kestner  <mkestner@novell.com>
25416         * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
25417         requests. Fix a misspelled parameter and a copy paste exception error
25418         in Select.
25420 2006-05-22  Peter Dennis Bartok  <pbartok@novell.com> 
25422         * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
25423           to get the same width/height (5/13) on X11 as the default font has on
25424           win32. This means that our DefaultFont emSize is smaller than the 
25425           the MS SWF equivalent (even thought the width/height stays the same)
25427 2006-05-20  Jackson Harper  <jackson@ximian.com>
25429         * MdiClient.cs:
25430         * MdiWindowManager.cs:
25431         * InternalWindowManager.cs: Make sure to use the border width from
25432         the theme.
25434 2006-05-20  Jordi Mas i Hernandez <jordimash@gmail.com>
25436         * PrintDialog.cs: Implements printer details
25438 2006-05-19  Alexander Olk  <alex.olk@googlemail.com>
25440         * FileDialog.cs: Added focus handling for PopupButtonPanel.
25441           Fixes part 1 and 2 of bug #78446
25443 2006-05-19  Peter Dennis Bartok  <pbartok@novell.com> 
25445         * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
25446           instead of sticking to the first ever calculated value
25448 2006-05-19  Mike Kestner  <mkestner@novell.com>
25450         * ComboBox.cs: fix mouse motion selection to use MousePosition and
25451         PointToClient, since Capture is set. Fixes #78344.
25453 2006-05-19  Mike Kestner  <mkestner@novell.com>
25455         * ListView.cs: match MS behavior in Details view where items are not
25456         drawn if Columns.Count == 0. 
25457         * ThemeWin32Classic.cs: only highlight ListView selection if focused.
25458         Use a separate pen to draw the check, since changing the width affects
25459         the box as well.  Fixes #78454.
25461 2006-05-18  Miguel de Icaza  <miguel@novell.com>
25463         * ListView.cs: ArgumentOutOfRangeException, single versions of the
25464         exception should throw the name of the invalid argument.
25466         * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
25467         there are no files listed. 
25469 2006-05-18  Jackson Harper  <jackson@ximian.com>
25471         * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
25472         up.
25474 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
25476         * Control.cs: Brought back our old UpdateZOrder method as a private
25477           function and switched our calls from UpdateZOrder to the new one.
25478           This fixes the Paint.Net canvas disappearing bug.
25480 2006-05-18  Jackson Harper  <jackson@ximian.com>
25482         * Theme.cs:
25483         * ThemeWin32Classic.cs:
25484         * InternalWindowManager.cs: Move the drawing into the theme,
25485         expose everything the theme should need from the window manager.
25487 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
25489         * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value 
25490           from the call to NativeWindow to avoid walking up the parent chain
25491           further than needed (speeds up setting cursors and avoids setting
25492           the wrong cursor if a parent has another cursor defined)
25493         * Cursor.cs: When loading an icon as cursor, MS uses the center of
25494           the icon as hotspot, not what's contained as hotspot in the icon
25495           file. This fixes the perceived drawing offset seen with Paint.Net
25496         
25497 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
25499         * XplatUIX11.cs: 
25500           - Store the calculated rectangle in Hwnd object and use it when 
25501             setting the client size
25502           - Force Toolwindows to always be type Dock, to ensure they're on top
25504 2006-05-18  Mike Kestner  <mkestner@novell.com>
25506         * ComboBox.cs: first pass at ComboBox rework.  Layout is more
25507         consistent with MS positioning.  IntegralHeight, ItemHeight, Sizing.
25508         Correctly initialize textcontrol and ListBox on DropDownStyle changes. 
25509         Substantial refactoring to remove confusing nested classes. Coding
25510         standard and Get+Set->property refactorings.  Shift to index based
25511         highlighting in ComboListBox instead of constantly using IndexOf and
25512         Items[]. Add invalidations on resize for DropDownList to fix ugliness
25513         in FileDialog growth.  Draw borders manually since Simple mode needs
25514         to look like two independent controls.  Make listbox border
25515         conditional to DropDownStyle.  Improved OwnerDraw support.
25517 2006-05-18  Sebastien Pouliot  <sebastien@ximian.com>
25519         * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor. 
25520         Don't set the disposed graphics to null, so we can throw the "right"
25521         exception if the graphics is reused later (added a flag to avoid 
25522         double disposing). Some behaviours are different under 2.0 and are
25523         filled under bug #78448.
25525 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
25527         * Control.cs: When double-buffering is enabled, we need to reset
25528           our graphics context between paint calls. Otherwise, any 
25529           transformations and other alterations on the context will 
25530           become cumulative (#77734)
25532 2006-05-18  Mike Kestner  <mkestner@novell.com>
25534         * ListView.cs: do focused item selection like MS on clicks. 
25535         Rework focus handling for ItemControl so LostFocus invalidates as
25536         well.
25537         * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
25538         the ListView ItemControl has focus.
25540 2006-05-17  Peter Dennis Bartok  <pbartok@novell.com>
25542         * XplatUIX11.cs: If client_window ends up being width or height zero
25543           due to border settings, move it off window inside whole_window (#78433)
25545 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
25547         * Mime.cs: Shrink the mime file cache correctly.
25549 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
25551         * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
25553 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
25555         * XplatUIX11.cs (AddExpose): More sanity checks
25557 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
25559         * XplatUIX11.cs:
25560           - AddExpose: Don't add expose ranges outside the size of our
25561             window
25562           - Cast opacity values to Int32 to avoid crashes with certain
25563             values
25564           - Added disabled code paths that protect against illegal cross-
25565             thread painting (Developers.exe)
25567 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
25569         * ProgressBar.cs: Invalidate the control when it's resized
25570           since block size is based on control size. (#78388)
25572 2006-05-16  Miguel de Icaza  <miguel@novell.com>
25574         * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
25575         of setting the incoming argument to the "reset" value, we set the
25576         this.datamember to string.empty (before we were invalidating the
25577         incoming data).   
25579         Fixes 78420
25581 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
25583         * Form.cs: Only apply transparency settings after the form
25584           is created. (Fixes #77800)
25586 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
25588         * ApplicationContext.cs: Grab the HandleDestroyed event so
25589           we know when to fire OnMainFormClosed 
25591 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
25593         * Application.cs: Introduced sub-class to allow tracking of
25594           threads and centralized triggering of the event mess for
25595           ThreadExit, AppExit, etc..  (#76156)
25597 2006-05-16  Alexander Olk  <alex.olk@googlemail.com>
25599         * MimeIcon.cs:
25600           - Do not return a null icon index value for a mime subclass.
25601             Instead try the main mime type class too.
25602           - Seems that some newer distributions don't have a link to some
25603             gnome default icons anymore. So check the default gnome dir too.
25604           
25606 2006-05-16  Jackson Harper  <jackson@ximian.com>
25608         * MdiClient.cs: Don't paint the parent background image if we have
25609         our own background image.
25611 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
25613         * Control.cs:
25614           - PerformLayout: Do not shrink space filled by DockStyle.Fill
25615             controls, all filled controls are supposed to overlap (#78080)
25616           - UpdateZOrder is supposed to update the control's z-order in the
25617             parent's z-order chain. Fixed to behave like that
25618           - BringToFront: Removed obsolete code
25619           - SendToBack: Simplyfied
25620           - SetChildIndex: Trigger layout calculations when Z-order changes
25621             since layout is done by z-order
25623 2006-05-16  Chris Toshok  <toshok@ximian.com>
25625         [ fixes bug #78410 ]
25626         * DataGrid.cs (set_AlternatingBackColor): use
25627         grid_drawing.InvalidateCells instead of Refresh().
25628         (set_BackColor): call grid_drawing.InvalidateCells.
25629         (set_BackgroundColor): use Invalidate instead of Refresh.
25631         * DataGridDrawingLogic.cs (InvalidateCells): new function, just
25632         invalidate the cell area.
25634 2006-05-15  Chris Toshok  <toshok@ximian.com>
25636         [ fixes bug #78011 ]
25637         * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
25638         on to DataGridPaintRow.
25639         (DataGridPaintRow): take a clip argument, and only draw the cells
25640         which intersect it.  same with the not_usedarea.
25642         * Theme.cs (DataGridPaintRow) add @clip parameter.
25644         * DataGrid.cs (ScrollToColumnInPixels): simplify, use
25645         XplatUI.ScrollWindow.
25646         (ScrollToRow): same.
25648         * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
25649         with last column which was causing a gray swath to appear with the
25650         XplatUI.ScrollWindow code.
25652 2006-05-15  Chris Toshok  <toshok@ximian.com>
25654         * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
25655         use XplatUI.ScrollWindow.
25656         (VerticalScrollEvent): use XplatUI.ScrollWindow.
25658 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com> 
25660         * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
25662 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
25664         * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
25665           file since there are no equivalent X11 cursors
25667 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
25669         * MonthCalendar.cs : DateTimePicker should reflect selected date
25670           on mouse*up*, not mouse*down*. Fixed originally reported part of
25671           bug #76474.
25673 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
25675         * TabControl.cs : When argument index is equal or more than tab
25676           count, just ignore. Fixed bug #78395.
25678 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
25680         * Control.cs: Dispose all child controls when control is diposed (#78394)
25682 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
25684         * ColorDialog.cs: Finally it is possible to select the color with
25685           the text boxes
25687 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
25689         * PrintDialog.cs: Fix typo
25691 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
25693         * PrintDialog.cs: PrintDialog is not resizable
25694         * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
25695           color. Made some ToolBar drawing methods protected virtual.
25697 2006-05-13  Jordi Mas i Hernandez <jordimash@gmail.com>
25699         * PrintDialog.cs: Implementation of the PrintDialog
25701 2006-05-12  Chris Toshok  <toshok@ximian.com>
25703         * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
25704         thumb, instead use MoveThumb.  This has the side effect of making
25705         most of the other thumb moving machinery use MoveThumb as well.
25706         (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
25707         need to actually invalidate the rectangle where the new thumb will
25708         go.
25709         (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
25710         We force an Update() after, so it's not as fast as it could be,
25711         but at least there's zero flicker and no droppings.
25712         (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
25713         (UpdateThumbPos): add another argument (dirty), which says whether
25714         or not to calculate/add dirty regions which we later invalidate.
25715         For cases where we know we're going to use MoveThumb, we pass
25716         false for this.  Otherwise, pass true.
25718 2006-05-12  Jackson Harper  <jackson@ximian.com>
25720         * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
25721         the status bar.
25722         
25723 2006-05-12  Peter Dennis Bartok  <pbartok@novell.com>
25725         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
25726           and GetClipRegion methods and UserClipWontExposeParent property.
25727         * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
25728           overriding UserClipWontExposeParent property, setting to false, since
25729           Win32 handles the required expose messages to draw our clipped parent
25730           areas internally
25731         * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
25732           PaintEventStart to set the user clip region if set.
25733         * Control.cs: 
25734           - Now internally tracking the Region for the control since we need to
25735             store it if the handle is not yet created and only set it when it
25736             becomes created. Before setting the region forced handle creation
25737           - Added code to draw the parents underneath a user-clipped region
25738         * Hwnd.cs: Added UserClip property
25740 2006-05-12  Chris Toshok  <toshok@ximian.com>
25742         * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
25743         (set_Maximum): same.
25744         (set_Minimum): same.
25745         (set_SmallChange): same.
25746         (OnMouseUpSB): remove the call to refresh when releasing the
25747         thumb.  We shouldn't need it.
25748         
25749 2006-05-12  Miguel de Icaza  <miguel@novell.com>
25751         * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
25752         AutoSize set to None, we do not need to relayout everything, we
25753         just need to invalidate the current region.
25755         (Draw): Do not draw the entire ClientArea, just redraw the
25756         clip area being passed.
25758         * MdiClient.cs: Make MdiClient constructor with the Form argument
25759         internal. 
25761 2006-05-12  Jackson Harper  <jackson@ximian.com>
25763         * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
25764         parents background image,  but strangely not their own.
25765         - (DrawStatusBarPanel): Take into account horizontal alignment
25766         when drawing the strings and icons.
25768 2006-05-12  Mike Kestner  <mkestner@novell.com>
25770         * ListBox.cs: avoid invalidations for focus when the collection is
25771         empty. 
25773 2006-05-12  Chris Toshok  <toshok@ximian.com>
25775         * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
25776         invalidate the entire thumb area.  Call InvalidateDirty which
25777         limits the redraw to the thumb itself and surrounding pixels.
25779         * XplatUIX11.cs (ScrollWindow): optimize copying.
25780         
25781 2006-05-12  Chris Toshok  <toshok@ximian.com>
25783         * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
25784         Figure out the positioning/layout in a single pass instead of
25785         multiple recursive invocations.  Speeds up the initial display of
25786         the data grid.  Also, make many things private that were
25787         originally public but unused outside this class.
25789 2006-05-11  Jackson Harper  <jackson@ximian.com>
25791         * MdiClient.cs: Improved layout code.
25793 2006-05-11  Jonathan Chambers  <jonathan.chambers@ansys.com>
25795         * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
25796           not SelectedObject.
25798 2006-05-11  Chris Toshok  <toshok@ximian.com>
25800         * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
25801         union of that will always be {0,0,width,height}.
25803 2006-05-11  Jackson Harper  <jackson@ximian.com>
25805         * Form.cs: Match MS's DefaultSize for forms (they must have
25806         changed the size in sp2).
25808 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
25810         * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
25812 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
25814         * TextControl.cs : Fixed bug #78109. This incorrect position
25815           comparison caused crash on automatic line split.
25816         * TextBoxBase.cs : reduce duplicate code.
25818 2006-05-10  Jackson Harper  <jackson@ximian.com>
25820         * MdiClient.cs: Active form is only sent to the back when using
25821         the Next form functionality, when a form is clicked the current
25822         active shouldn't be sent to the back.
25823         - Layout the mdi windows when the container is first made visible.
25824         * Form.cs: Give the MdiClient a ref to the containing form when we
25825         create it.
25826         
25827 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
25829         * LinkLabel.cs : link_font could be uninitialized, so populate one
25830           before actual use. Fixed bug #78340.
25832 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
25834         * XplatUIX11.cs : clipboard format native value is IntPtr.
25835           Fixed bug #78283.
25837 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
25839         * Control.cs: 
25840           - Instead of showing context menus directly we send WM_CONTEXTMENU, 
25841             which is passed up the parent chain by DefWndProc
25842           - We now handle WM_CONTEXTMENU to display any menu, or pass it 
25843             to DefWndProc (#77956)
25844         * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
25846 2006-05-10  Jackson Harper  <jackson@ximian.com>
25848         * MdiClient.cs: We need to remove the controls from the mdi
25849         collection, when we close the window.
25850         * MdiWindowManager.cs: Special handling of closing mdi windows.
25851         * InternalWindowManager.cs: Make the close method virtual so the
25852         mdi window manager can handle it specially.
25854 2006-05-10  Jordi Mas i Hernandez <jordimash@gmail.com>
25856         * DataGrid.cs:
25857           - Recalculate grid when the data source has changed
25858           - Matches styles provided by user from all data sources types
25859         * DataGridTableStyle.cs: For columns that provided by the user set the
25860         with the preferred value is there was unassigned.
25861         * CurrencyManager.cs: throw OnItemChanged event
25863 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com> 
25865         * PictureBox.cs: Don't animate until handle is created. Start animation
25866           when handle is created.
25868 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
25870         * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
25871           current codebase.
25872         * XEventQueue.cs: We don't need to provide the extra info
25874 2006-05-10  Jackson Harper  <jackson@ximian.com>
25876         * MdiClient.cs: If the mdi clients parent form has a background
25877         image set, we draw that background image for the mdi area's
25878         background.
25880 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
25882         * TextBoxBase.cs: Set IBeam cursor (#78347)
25884 2006-05-10  Mike Kestner  <mkestner@novell.com>
25886         * ToolBar.cs: fix some text padding issues with ButtonSize
25887         calculation. Update the default size to match MS documentation.
25888         * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
25889         button size. Fixes #78296.
25891 2006-05-10  Mike Kestner  <mkestner@novell.com>
25893         * ListBox.cs: use is_visible for scrollbar positioning in case the
25894         control isn't on screen yet.  Fix off by one with Right vs Width
25895         usage.  Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
25896         
25897 2006-05-10  Jackson Harper  <jackson@ximian.com>
25899         * X11Dnd.cs: Drop to a control with another control on top of it.
25900         * ToolBar.cs: Work on a copy of the buttons list, so that it can
25901         be modified in click handlers. TODO: Look for similar problems in
25902         other controls.
25904 2006-05-09  Jackson Harper  <jackson@ximian.com>
25906         * Form.cs: Window managers need the old window state when setting
25907         window state now.
25908         * InternalWindowManager.cs: Allow the base mdi window manager to
25909         handle more of the MDI only stuff (like maximize buttons).
25910         * MdiWindowManager.cs: Fix some snafus in changing the window
25911         state.  Add all the menu functionality, for both popup and
25912         maximized menus.
25913         * MdiClient.cs: When a new form is selected the currently
25914         activated form is sent to the back, this matches MS.
25915         - Implement a new method to activate the next mdi child window.
25917 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com>
25919         * Control.cs: 
25920           - Added new InternalCapture method to allow controls to prevent
25921             the capture behaviour on the click handlers
25922           - Switched to use InternalCapture
25923         * ComboBox.cs:
25924           - Using InternalCapture to prevent mouse captures from being released
25925             on mouse button release (Fixes #78100)
25926         * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
25927           returns Form borders if a caption is present. (Fixes #78310)
25929 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com> 
25931         * TreeNode.cs: Changed serialization .ctor to not require every field
25932           to be present. (#78265)
25933         * OwnerDrawPropertyBag.cs: Added serialization .ctor
25935 2006-05-05  Alexander Olk  <alex.olk@googlemail.com>
25937         * MimeIcon.cs: for is faster than foreach for strings.
25939 2006-05-05  Mike Kestner  <mkestner@novell.com>
25941         * CheckedListBox.cs: update check handling code to not use selected.
25942         * ListBox.cs: rewrite of mouse selection handling to correspond to MS
25943         behavior for visual feedback, motion response, shift/ctrl handling,
25944         and properly deal with all 4 selection modes. Updates to bounds
25945         handling logic.  Add scroll wheel support. [Fixes #77842]
25947 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
25949         * ListView.cs:
25950           - Moved adding of Implicit controls into .ctor. That way, subsequent
25951             creation of the controls will not cause them to think they are 
25952             toplevel windows (fixes #78200 header problem)
25953           - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
25954           - Switched visibility setting of header control to use internal field
25955             to avoid triggering handle creation
25956           - Now checking if handle is created before causing a refresh when items
25957             are added (This makes us now match handle creation time with MS)
25958         * Splitter.cs: Removed loading of private splitter cursor, switched to
25959           Cursors version now that that is loading the right ones
25960         * Cursors.cs: Load proper splitter cursors from resources
25961         * Cursor.cs: Added second method of loading resource cursors for the 
25962           VS.Net users amongst us
25964 2006-05-05  Mike Kestner  <mkestner@novell.com>
25966         * ListView.cs: give header_control a minimum size based on the
25967         ListView size.
25969 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
25971         * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
25972           window seems to do that with metacity, so set that type. (#78120)
25974 2006-05-05  Mike Kestner  <mkestner@novell.com>
25976         * ListViewItem.cs: fix Details mode checkbox layout bug.
25977         * ThemeWin32Classic.cs: draw a ListView column header for unused space
25978         at the end of the header, if it exists. [Fixes for #78200]
25980 2006-05-04  Jackson Harper  <jackson@ximian.com>
25982         * MdiClient.cs: Add a helper property to get the container form.
25983         * MdiWindowManager.cs: We have to make sure to use the menu origin
25984         when drawing the icons and buttons, this fixes maximized window
25985         icons/buttons on win32.
25986         * InternalWindowManager.cs: Reset the restore captions when a
25987         window goes from Maximized to Minimized and vice versa. Move the
25988         DrawMaximizedButtons into the MdiWindowManager source, tool
25989         windows can't be maximized. NOTE: This could use a little
25990         refactoring if time ever permits.
25991         
25992 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
25994         * TextBox.cs: Add MWFCategoryAttributes
25995         * TextBoxBase.cs: Add MWFCategoryAttributes
25996         * Form.cs: Add MWFCategoryAttributes
25998 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
26000         * Control.cs: Add MWFCategoryAttributes
26001         * ScrollableControl.cs: Add MWFCategoryAttributes
26003 2006-05-03  Alexander Olk  <alex.olk@googlemail.com>
26005         * ThemeWin32Classic.cs: Draw the ToolBar top border only if
26006           Divider is true. Fix a little glitch in PropertyToolBar
26007           drawing code
26009 2006-05-02  Peter Dennis Bartok  <pbartok@novell.com> 
26011         * Control.cs:
26012           - Dispose: Call base.Dispose, this causes the disposed event
26013             to be fired (and probably other, more important stuff)
26014           - SetVisibleCore: Set is_visible to true after creating the
26015             window so that the window still gets created invisible (if
26016             WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
26017             to generate a WM_ACTIVE message
26018         * Form.cs: Call Dispose when we want to destroy the window, instead of
26019           just destroying the handle (Dispose will do that for us)
26020         * XplatUIX11.cs:
26021           - RootWindow also needs a queue, so we can properly process the
26022             property change events from RootWindow (like Activate)
26023           - Generatic synthetic WM_ACTIVE message when the active window is
26024             being destroyed
26026 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
26028         * LinkLabel.cs: Trigger a recalc of our label dimensions when
26029           bounds are changed
26031 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com>
26033         * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
26034           for determining width and height (image might not be assigned if
26035           we're drawing an imagelist)
26037 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
26039         * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
26040         * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
26041           height from system
26042         * Theme.cs: No longer returns hardcoded menu height, instead calls
26043           new driver method
26044         * Form.cs (OnLoad): Scaling happens before triggering Load events 
26045           on MS (# 78257)
26047 2006-05-01  Mike Kestner  <mkestner@novell.com>
26049         * MenuItem.cs: fix NRE for text == null.  Fixes #78250.
26051 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com> 
26053         * TextBoxBase.cs: Removed Fixme
26054         * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
26056 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com>
26058         * XplatUIX11.cs:
26059           - ScrollWindow: We were passing hwnd.ClientRectangle which returns
26060             the rectangle relative to the parent, considering borders. We
26061             don't really want that.
26062           - ScrollWindow: Fixed warning to be more understandable
26063         * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
26064           scrollbars and scroll only the visible area
26065         * RichTextBox.cs: Removed debug output
26067 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
26069         * NumericUpDown.cs (Text): Just use base
26070         * UpDownBase.cs: Ensure txtView is created before using it
26072 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
26074         * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
26075           casting to IntPtr to avoid 64bit overflow errors
26077 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
26079         * Control.cs:
26080           - AllowDrop: Don't force handle creation.
26081           - CreateHandle: Added call to tell driver if we're allowed to drop
26083 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
26085         * FileDialog.cs: Remember the last directory not only for the
26086           current instance but also for new FileDialog instances.
26088 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
26089         
26090         * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
26091           broke sending async messages
26093 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
26095         * XplatUIX11.cs:
26096           - ScrollWindow: Fixed method. We finally generate expose events again
26097             for scrolled areas. This was causing 'garbage' when scrolling
26098             textbox and other controls that used ScrollWindow
26099           - Switched from using the regular queue for paint events to the MS 
26100             model of 'generating' paint events when the queue is empty.
26101             We use the new XQueueEvent.Paint subclass to store which windows
26102             need painting.
26103           - AddExpose now takes the x/y/width/height of the exposed area
26104             and inserts the window into the paint queue if not already there
26105           - InvalidateWholeWindow: Switched to use new AddExpose method
26106           - UpdateMessageQueue: Added which queue to monitor for paint events
26107           - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
26108             the unlikely case nothing above handles it. We reset the expose
26109             pending states to get them off the queue.
26110           - GetMessage: Now pulls a paint event if no other events are in the
26111             queue
26112           - Invalidate: Switched to new AddExpose method
26113           - PeekMessage: Updated to understand pending paint events
26114           - UpdateWindow: Fixed logic bug. We were only updating if the window
26115             didn't need updating. Also switched to sending WM_PAINT directly,
26116             like MS does.
26117         * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
26118           and random access Remove(). The random access is needed to handle
26119           UpdateWindow() where a WM_PAINT is sent directly without accessing
26120           the queue.
26121         * ScrollBar.cs: Added Update() calls to cause immediate updates to
26122           allow for better feedback when scrolling. Scrollbars are small and
26123           the immediate update should make it 'feel' more responsive without
26124           slowing things down. ScrollBar still needs it's invaliate logic
26125           updated to not always invalidate the whole bar on certain changes.
26127 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26129         * Control.cs:
26130         (BackColor): if the control does not support a transparent background,
26131         return the default backcolor when the parent backcolor is transparent.
26133 2006-04-28  Peter Dennis Bartok  <pbartok@novell.com>
26135         * Application.cs: Updated to new StartLoop/GetMessage API
26136         * RichTextBox.cs: Provide some output on RTF parsing errors
26137         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
26138           new queue_id argument to GetMessage and PeekMessage to allow faster
26139           handling of per-thread queues in drivers.
26140         * Hwnd.cs: Added Queue tracking and property
26141         * MenuAPI.cs: Updated to new StartLoop/GetMessage API
26142         * XEventQueue.cs: Added thread trackingA
26143         * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
26144         * XplatUIX11.cs:
26145           - Implemented new per-thread queue
26146           - GetMessage: Fixed return/break behaviour on several cases. We were
26147             returning stale messages in some cases, instead of just processing
26148             the next message
26150 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
26152         * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
26154 2006-04-27  Peter Dennis Bartok  <pbartok@novell.com>
26156         * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
26157           fixed off-by-one comparisons between Width/Height and Right/Bottom.
26159 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
26161         * PropertyGridView.cs: Fix drop down width.
26163 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
26165         * ThemeWin32Classic.cs: Peter thinks that three additional lines are
26166           a mess in DrawToolBar, so I removed one of them.
26168 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
26170         * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
26171           needed (clip). Otherwise we get artifacts.
26173 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
26175         * FixedSizeTextBox.cs: Added constructor to allow specifying which
26176           dimension is fixed
26177         * UpDownBase.cs: Set the spinner control to be fixed height vertical,
26178           and switched FixedSizeTextBox to only be fixed vertical (#78116)
26179         * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
26180           if it matches the scale base font (avoids unneeded scaling)
26182 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
26184         * X11DesktopColors.cs: One gtk_init_check should be enough
26186 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com> 
26188         * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
26189           match MS behaviour
26191 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
26193         * TextBoxBase.cs: 
26194           - Generate OnTextChanged for Backspace even if we're only deleting
26195             the current selection
26196           - When setting the Text property, only select all text if the
26197             control does not have focus when it is being set. Otherwise
26198             just place the cursor at the beginning of the control
26200 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
26202         * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
26203           Added a little helper to draw PropertyGrid ToolBar with a different
26204           border and a different BackColor.
26205         * PropertyGrid.cs: Some background parts didn't get painted with the
26206           correct background color. Added a class that helps us to draw the
26207           correct border for PropertyGridView and a class that helps us to
26208           draw ToolBars with a different backcolor
26209         * PropertyGridView.cs: Draw PlusMinus with the correct colors.
26211 2006-04-25  Jonathan Chambers  <jonathan.chambers@ansys.com>
26213         * PropertyGrid.cs: Bug 78196, font size, and splitter location.
26214         * PropertyGridView.cs: Bug 78196, font size, and splitter location.
26216 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
26218         * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
26219           into the palette entries. Also, since we're working on a copy
26220           we needed to copy the palette back onto the bitmap.
26221         * Cursor.cs: Same fix as XplatUIWin32.cs.
26223 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com>
26225         * ImageListStreamer.cs: Need to read the var (or we're off)
26227 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
26229         * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs, 
26230           XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
26231           TextBoxBase.cs: Unused var fixes
26232         * AxHost.cs: Small 2.0 fix
26233         * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms 
26234           as it seems that is what at least Metacity expects. This will make
26235           icons show up on 64bit platforms. We still have some 64bit size
26236           issues, though, since the startup app window size still won't match.
26238 2006-04-25  Mike Kestner  <mkestner@novell.com>
26240         * *.cs: cleanup newly reported exception var unused warnings.
26242 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
26244         * ThemeWin32Classic.cs: Button image alignment now matches exactly
26245           ms
26247 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
26249         * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
26250           image. The image position is always the same, no matter if the
26251           button is pressed or not.
26253 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
26255         * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
26256           selection and set the correct filename for SaveFileDialog.
26257           Patch by Emery Conrad.
26259 2006-04-24  Mike Kestner  <mkestner@novell.com>
26261         * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
26262         check for item.X outside the ClientRect instead of item.Y. Fixes
26263         #78151.
26265 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26267         * ImageListStreamer.cs: some images store a wrong grow factor, so don't
26268         trust that value blindly and do some sanity check. Fixes bug #77814.
26270 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26272         * ImageListStreamer.cs: save the mask as a 1bpp image.
26274 2006-04-21  Mike Kestner  <mkestner@novell.com>
26276         * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
26277         pass Checked and Indeterminate to the Theme Engine. Improve
26278         encapsulation with ListBox.
26279         * ListBox.cs: Keep a StringFormat instead of calculating it every item
26280         draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
26281         nested types.  Move all CheckState functionality to CheckedListBox.
26282         Make IntegralHeight work like MS.  Rewrite of Layout engine.  Fix
26283         OwnerDrawVariable layout/rendering.  Fix multicolumn rendering.  Fix
26284         ScrollAlwaysVisible handling. Refactor "selected" collections to use a
26285         single base list. Fix scrollbar sizing and placement to mirror MS.
26286         * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
26287         used.
26288         * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
26289         for CheckedListBox by using new DrawItemState info.  Center the
26290         checkboxes on the items. Use new StringFormat property.
26292 2006-04-18  Jackson Harper  <jackson@ximian.com>
26294         * Form.cs: MdiChildren don't do default locations the same way as
26295         regular forms.  This prevents a crash when trying to position the
26296         mdi windows.
26298 2006-04-17  Jonathan Chambers  <jonathan.chambers@ansys.com>
26300         * PropertyGridTextBox.cs: Formatting, copyright
26301         * PropertiesTab.cs: Formatting
26302         * PropertyGrid.cs: Formatting
26303         * PropertyGridView.cs: Formatting, fix drop down, enabled double 
26304           click toggling of values
26305           
26306 2006-04-17  Peter Dennis Bartok  <pbartok@novell.com> 
26308         * KeyPressEventArgs: Added 2.0 only setter for KeyChar
26309         * Control.cs (.ctor): verify_thread_handle is static, don't reset
26310           every time a control is created
26311         * Application.cs: Removed obsolete EnableRTLMirroring method
26313 2006-04-18  Gert Driesen  <drieseng@users.sourceforge.net>
26315         * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
26316         SelectedIndex to -1. Fixes bug #78121.
26318 2006-04-17  Jackson Harper  <jackson@ximian.com>
26320         * Binding.cs: Handle null values for Current and BindingContext.
26321         This occurs when binding is a little delayed.
26322         * CurrencyManager.cs: return null for Current when there are no
26323         items in the list.
26324         - Hookup to the listchanged event on the DataView and update
26325         bindings when the list is changed.  This fixes late binding of
26326         controls.
26328 2006-04-17  Jackson Harper  <jackson@ximian.com>
26330         * X11Dnd.cs:
26331         * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
26332         Ringenbach.
26334 2006-04-15  Alexander Olk  <alex.olk@googlemail.com>
26336         * ThemeWin32Classic.cs: Draw disabled combo button in the correct
26337           place
26338         * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
26339           with the correct ButtonState
26341 2006-04-14  Peter Dennis Bartok  <pbartok@novell.com>
26343         * XplatUIX11.cs: Improved distinguishing between window types to
26344           tell the WM a type closer to what the app wants (Fixes #78107)
26346 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
26348         * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
26349           GrabHandle
26351 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
26353         * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
26354           drawing code to reflect the size grip changes
26356 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26358         * ImageListStreamer.cs: fix handling of the mask that follows the main
26359         bitmap when deserializing and serialize it properly. The generated mask
26360         should better be a 1bpp image, but I'll do that later.
26362 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
26364         * FileDialog.cs: Show something in the DirComboBox on *nix if the
26365           path doesn't fit into some of our Current.Places
26367 2006-04-13  Jackson Harper  <jackson@ximian.com>
26369         * ComboBox.cs: Use borders instead of drawing our own decorations,
26370         try to obey correct rules for heights.
26371         * Theme.cs:
26372         * ThemeNice.cs:
26373         * ThemeClearLooks.cs:
26374         * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
26375         this is now handled by borders.
26376         - Remove unused DrawListBoxDecorationSize method.
26377         
26378 2006-04-13  Mike Kestner  <mkestner@novell.com>
26380         * MenuAPI.cs: null guarding for the disbled click check fixes crash
26381         reported by Alex.
26383 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
26385         * ThemeWin32Classic.cs: 
26386           - Fixed CPDrawStringDisabled
26387           - Corrected drawing of disabled menu items
26388           - Fixed drawing of disabled radio buttons (bug #78095)
26389           - Draw check in a disabled CheckBox with color ControlDark 
26391 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
26393         * Form.cs: Use the provided width when calculating the menu size;
26394           when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
26395           and ClientSize.Width won't be updated yet
26396         * Application.cs: Use Visible instead of Show() to make form visible,
26397           this way we create the handle later and menusize is considered
26399 2006-04-12  Mike Kestner  <mkestner@novell.com>
26401         * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
26402         reporting.
26404 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
26406         * TextBox.cs: Implemented context menu
26408 2006-04-12  Mike Kestner  <mkestner@novell.com>
26410         * ListView.cs: implement box selection. fixes #77838.
26411         * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
26413 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
26415         * XplatUIX11.cs: Added setting of window type when transient window
26416           is created (metacity would move it otherwise)
26417         * X11Structs.cs: Added WINDOW_TYPE atoms
26418         * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
26419           background (the control is Opaque but still wants transparent
26420           backgrounds)
26422 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
26424         * Control.cs: Added OnPaintBackgroundInternal to allow controls
26425           that set Opaque but don't mean it (like all ButtonBase-derived
26426           controls) to still draw their background
26427         * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
26428           the background
26430 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
26432         * Control.cs (PaintControlBackground): Set the graphics object
26433           on our PaintEvent to null to prevent it from being disposed
26434           when the PaintEvent gets disposed
26436 2006-04-12  Alexander Olk  <alex.olk@googlemail.com>
26438         * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
26439         * ThemeNice.cs, ThemeClearlooks.cs: fix typo
26441 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
26443         * Control.cs: 
26444           - Added transparency check to BackColor property. Transparent
26445             backgrounds are only allowed if the control styles permit it
26446           - Added recursive painting of parent control background and
26447             foreground if a control with a transparent backcolor is drawn
26448             (Thanks to Tim Ringenback for providing his 'hack' as a base
26449              for this patch) Fixes #77985 and #78026.
26450           - Added Opaque style check before calling OnPaintBackground, no
26451             need to draw the background if the control is opaque
26452           - Removed ControlAccessibleObject owner variable (inherited from
26453             base, no need to define again)
26454           - Added some documentation links explaining the drawing events
26455             and styles
26457 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
26459         * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
26460           that the affected control is the located at the left border of our
26461           parent (Fixes #77936)
26463 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
26465         * TextBoxBase.cs: When rendering disabled or readonly controls,
26466           draw the background with 'Control' instead of 'Window' color as
26467           long as the user hasn't specifically set a color
26469 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
26471         * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
26472           since that won't be updated if the user types text (only if it's
26473           programatically set)
26475 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
26477         * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
26478           layout changes do to app-triggered resizes will have the proper
26479           display rectangle for layout
26481 2006-04-11  Alexander Olk  <alex.olk@googlemail.com>
26483         * ThemeWin32Classic.cs:
26484           - Make use of the SystemBrushes and SystemPens wherever possible
26485           - Corrected some highlight colors
26486           - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
26487             drawing
26488         * Theme.cs: Added Empty field to CPColor struct
26490 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
26492         * ScrollabeControl.cs: We need to consider whether or not a scrollbar
26493           is displayed when calculating the display rectangle. Thanks to Mike
26494           for teaching me the err of my ways.
26496 2006-04-10  Peter Dennis Bartok  <pbartok@novell.com>
26498         * ScrollableControl.cs:
26499           - Rewrote DisplayRectangle code, now returning the proper x/y coords 
26500             (instead of 0,0) and we now return the real width/height instead of
26501             just the clientrectangle, adjusted for padding. The rectangle is
26502             now cached and created by the new CalculateDisplayRectangle method.
26503           - Created new CalculateDisplayRectange method, which basically does
26504             what get_DisplayRectangle() did originally, but now using the 
26505             right edge instead of DisplayRectangle to determine the size of
26506             our scrollbars
26507           - get_Canvas(): Fixed it to properly calculate canvas for 
26508             right/bottom controls which seem to be placed to the right/bottom
26509             of any controls that have a fixed location
26510           - Removed TODO that's taken care of
26511           - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
26512             and SetDisplayRectLocation according to new MSDN2 docs
26513           - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
26514             event when that is called, this is added for compatibility
26515           - ScrollControlIntoView(): Implemented.
26516           - Switched scrollbars to be implicit, they shouldn't be selectable
26517         * ContainerControl: Now that ScrollControlIntoView is implemented, we 
26518           call it when the active control is set/changed
26519         * ScrollBar.cs: Added support for generating Win32 scrollbar messages
26520         * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
26521           implicit_control variable (used for native Win32 message generation)
26522         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new 
26523           HorizontalScrollBarHeight and VerticalScrollBarWidth properties
26524         * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
26525         * XplatUIStructs.cs: Added ScrollBarCommands enum
26527 2006-04-10  Jackson Harper  <jackson@ximian.com>
26529         * ButtonBase.cs:
26530         * CheckedListBox.cs:
26531         * ComboBox.cs:
26532         * DataGrid.cs:
26533         * DataGridView.cs:
26534         * Form.cs:
26535         * GroupBox.cs:
26536         * ListBox.cs:
26537         * PrintPreviewControl.cs:
26538         * ProgressBar.cs:
26539         * PropertyGrid.cs:
26540         * Splitter.cs:
26541         * StatusBar.cs:
26542         * TrackBar.cs:
26543         * UpDownBase.cs: Fixup base event overrides.
26544         
26545 2006-04-06  Mike Kestner  <mkestner@novell.com>
26547         * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
26548         all user-initiated value changes to min <= value <= max-thumbsz+1.
26549         (set_Value): check for vert/horiz when calculating new thumb position.
26550         (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
26551         like MS does.
26552         (OnMouseMoveSB): refactor the thumb dragging code and refine
26553         invalidation logic to reduce flicker.
26554         (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
26555         (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
26556         (UpdateThumbPosition): small code readability cleanup
26558 2006-04-10  Alexander Olk  <alex.olk@googlemail.com>
26560         * ThemeNice.cs: Small UI polishing. Draw borders a little bit
26561           different
26563 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
26565         * ThemeNice.cs: Use a better graphics effect when a button is pressed
26567 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
26569         * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
26570         * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
26571           This dramatically reduces the number of Pen.Dispose calls. 
26572           Where possible call ResPool methods only once instead of calling it
26573           over and over again (for example for the same color).
26575 2006-04-06  Mike Kestner  <mkestner@novell.com>
26577         * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
26578         Also remove an unused private field on the collection. Fixes #77972.
26580 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
26582         * ThemeNice.cs: Added ToolBar drawing code
26584 2006-04-06  Mike Kestner  <mkestner@novell.com>
26586         * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
26587         I'm assuming that means we need to look up the toplevel for the
26588         provided control. Fixes the crash trace in #77911 but exposes another
26589         crash in some strange reflection usage in NDocGui.
26591 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
26593         * ThemeNice.cs: Gave it a little silver touch and added Images
26594           method
26595         * FontDialog.cs: FontDialog is not resizable
26596         * FileDialg.cs: Added SizeGripStyle.Show
26598 2006-04-05  Jackson Harper  <jackson@ximian.com>
26600         * KeyboardLayouts.cs: Remove warning.
26602 2006-04-05  Jackson Harper  <jackson@ximian.com>
26604         * Control.cs: Enable OnPaintInternal so we can use it for drawing
26605         all of our controls instead of Paint +=.
26606         * ListBox.cs:
26607         * ListView.cs:
26608         * MenuAPI.cs:
26609         * MessageBox.cs:
26610         * NotifyIcon.cs:
26611         * ProgressBar.cs:
26612         * ScrollBar.cs:
26613         * Splitter.cs:
26614         * StatusBar.cs:
26615         * TabControl.cs:
26616         * TextBoxBase.cs:
26617         * ToolBar.cs:
26618         * TrackBar.cs:
26619         * UpDownBase.cs:
26620         * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
26621         use OnPaintInternal. Remove Width/Height and Visible checks in
26622         paint handler, this is done at a higher level now.
26623         * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
26624         * PaintEventArgs.cs: Add a handled flag so controls that don't
26625         want anymore painting after OnPaintInternal can make sure OnPaint
26626         isn't called.
26628 2006-04-05  Mike Kestner  <mkestner@novell.com>
26630         * Form.cs: fix the menu WndProc hacks to respect the native enabled
26631         state of the form, so that we don't process events when Modal dialogs
26632         are up. Fixes #77922.
26634 2006-04-05  Alexander Olk  <alex.olk@googlemail.com>
26636         * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
26637           checking is done.
26639 2006-04-05  Mike Kestner  <mkestner@novell.com>
26641         * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
26643 2006-04-05  Mike Kestner  <mkestner@novell.com>
26645         * ListView.cs (HeaderMouseMove): null guarding for the over column
26646         when setting up the drag_to_index.  Fixes #78015.
26648 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com>
26650         * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
26651           in the taskbar. Transient windows seem to accomplish that.
26653 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com> 
26655         * Form.cs:
26656           - Re-enabled CreateParams.X/Y code for FormStartPosition
26657           - Added code for manual placement when creating the Control
26658           - Incomplete patch to treat MDI forms differently when
26659             setting the ClientSizeCore. (Still need to figure out handling
26660             x/y coords there)
26661         * XplatUIX11.cs:
26662           - When we're explicitly setting the X/Y position of a non-Child
26663             window, let the WM know. Metacity really wants this.
26665 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
26667         * ThemeNice.cs: Added CPDrawButton
26669 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
26671         * ThemeNice.cs: Changed the color for focused buttons and activated
26672           the arrows for small scroll buttons.
26674 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
26676         * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
26677           anymore. Changed some method modifiers to protected (virtual)
26678         * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
26679           changes
26680         * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
26681           Updated drawing of menus, buttons and progressbars; added
26682           CPDrawBorder3D 
26684 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26686         * ImageListStreamer.cs: implemented serialization/deserialization
26687         of the images.
26689 2006-04-03  Alexander Olk  <alex.olk@googlemail.com>
26691         * ThemeWin32Classic.cs:
26692           - Removed all the DrawFrameControl stuff; CPDrawButton,
26693             CPDrawCheckBox and CPDrawRadioButton are now handled directly
26694             inside the methods
26695           - Updated and corrected the drawing code of CPDrawButton,
26696             CPDrawCheckBox and CPDrawRadioButton to better match ms
26697           - Updated theme checkbox and radiobutton code to use the CP*
26698             methods
26700 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
26702         * XplatUIX11.cs: Enable clipping again now that the libgdiplus
26703           bug is fixed
26705 2006-03-31  Jackson Harper  <jackson@ximian.com>
26707         * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
26708         sometimes.
26709         * UpDownBase.cs: Don't CreateGraphics manually, use a
26710         Refresh. Ideally we would invalidate the correct areas here.
26712 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
26714         * XplatUIX11.cs: 
26715           - We now track the mapping state of windows. If a window (or 
26716             one of it's parents) is not mapped we no longer permit
26717             WM_PAINT messages to be generated since we'd otherwise get 
26718             lots of BadMatch X errors. Jackson did all the work figuring
26719             out the problem.
26720           - Destroying the caret if the window it's contained in is 
26721             destroyed. Can't use regular DestroyCaret method since it
26722             might fall into a drawing function (trying to remove the
26723             caret) and with that generate new BadMatch errors. Again,
26724             Jackson tracked this down.
26725           - Changed DestroyChildWindows to SendWMDestroyMessages, we now
26726             make sure we send the messages to all windows. (The old code
26727             would send the WM_DESTROY to the window, and then all child
26728             windows would be 'gone' because the WM_DESTROY handle lookup
26729             would no longer find the destroyed window)
26730         * Hwnd.cs: Added Mapping property to track mapping state of hwnd
26731         * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
26733 2006-03-31  Jackson Harper  <jackson@ximian.com>
26735         * ScrollableControl.cs: Dont recalc if we are not visible.
26737 2006-03-31  Mike Kestner  <mkestner@novell.com>
26739         * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
26740         the visibility branch.
26742 2006-03-31  Jackson Harper  <jackson@ximian.com>
26744         * ScrollBar.cs: Cap values when incrementing/decrementing.
26746 2006-03-31  Mike Kestner  <mkestner@novell.com>
26748         * MenuAPI.cs: setup menu.tracker for popup/context menus.
26749         * ToolTip.cs: guard against timer expirations with no active control.
26750         Not sure why it happened.
26752 2006-03-31  Mike Kestner  <mkestner@novell.com>
26754         * ThemeWin32Classic.cs: add some horizontal padding space for the tip
26755         text.
26756         * ToolTip.cs: Position the tooltip based on where the cursor is at
26757         popup time, not at MouseEnter time.  Add a Down state so that we don't
26758         redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
26759         positioning offset. Lookup DisplaySize at positioning time, since it
26760         can theoretically change during invocation.
26761         * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
26762         * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
26764 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
26766         * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
26767           Fixes behaviour when the Text property of the box is String.Empty
26769 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com>
26771         * XplatUIX11.cs: Only send mouseleave for our client windows, not
26772           for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
26773           a window)
26775 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
26777         * FileDialog.cs: Visual enhancement for the popup buttons in 
26778           PopupButtonPanel
26780 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
26782         * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
26783           code
26785 2006-03-30  Alexander Olk  <alex.olk@googlemail.com>
26787         * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
26788           highlighted menu items to match ms
26790 2006-03-30  Peter Dennis Bartok  <pbartok@novell.com> 
26792         * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
26794 2006-03-30  Mike Kestner  <mkestner@novell.com>
26796         * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
26797         * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
26798         go active to account for HotLight to Selected transition.
26799         * MenuItem.cs: add internal Selected prop. Fill out the Status
26800         property by calculating it from item info. Add HotLight,
26801         NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
26803 2006-03-30  Mike Kestner  <mkestner@novell.com>
26805         * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
26807 2006-03-29  Jackson Harper  <jackson@ximian.com>
26809         * Form.cs: Implement TODO.
26811 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com> 
26813         * PrintPreviewDialog.cs: Implemented missing methods and events; still
26814           missing proper dialog setup in the constructor
26816 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com>
26818         * ProgressBar.cs: Added 2.0 Style property that apps seem to use
26819         * Control.cs:
26820           - Implemented CheckForIllegalCrossThreadCalls, removed TODO
26821           - Fixed ResetBindings and removed TODO
26822           - Added check for cross-thread calls to get_Handle()
26823           - Added Marshaller attribute for set_Font to satisfy class status
26824         * FontDialog.cs: Removed TODOs that seemed implemented
26825         * UpDownBase.cs: Removed unneeded TODO and Fixme
26826         * MessageBox.cs: Implemented support for Default button and removed TODO
26827         * FileDialog.cs: Removed obsolete TODO
26828         * DomainUpDown.cs: Removed obsolete TODO
26829         * ButtonBase.cs: Removed obsolete TODO
26830         * XplatUIWin32.cs: Removed obsolete TODO
26831         * Form.cs:
26832           - Removed obsolete TODO
26833           - Calling CheckAcceptButton when the acceptbutton is changed to allow
26834             internal status updates
26835           - Making sure the active control is selected when the control is created
26836         * CurrencyManager.cs: Removed obsolete TODO
26838 2006-03-29  Mike Kestner  <mkestner@novell.com>
26840         * *.cs: fix remaining corcompare issues for 1.1 API with the exception
26841         of PrintPreviewDialog and RichTextBox.
26843 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
26845         * Theme.cs: Added a little helper to SystemResPool to get the Dark,
26846           DarkDark, Light and LightLight colors for a specific color
26847         * ThemeWin32Classic.cs:
26848           - Use Button drawing code to draw RadioButtons and CheckBoxes with
26849             Appearance = Button 
26850           - Make use of the new ResPool helper CPColor
26851           - Draw ProgressBar and StatusBar with correct 3D borders
26853 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
26855         * ColorDialog.cs: Return selected color. Fixes bug #77940.
26857 2006-03-28  Mike Kestner  <mkestner@novell.com>
26859         * ListView.cs: fix Icon layout to plan for scrollbar widths when
26860         calculating col/row counts.
26862 2006-03-28  Mike Kestner  <mkestner@novell.com>
26864         * ColumnHeader.cs:
26865         * ListView.cs:
26866         * ListViewItem.cs:
26867         * Menu.cs: 
26868         switch to explicit interface method implementation for some methods
26869         corcompare identifies as inconsistent with MS.
26871 2006-03-28  Mike Kestner  <mkestner@novell.com>
26873         * MainMenu.cs: 
26874         * Menu.cs:
26875         add a few missing methods from the class status output.
26877 2006-03-28  Alexander Olk  <alex.olk@googlemail.com>
26879         * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
26880           correct.
26882 2006-03-28  Mike Kestner  <mkestner@novell.com>
26884         * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
26886 2006-03-27  Mike Kestner  <mkestner@novell.com>
26888         * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
26889         the Hilight state to adapt to Alex's CPDrawBorder3D changes.
26891 2006-03-27  Alexander Olk  <alex.olk@googlemail.com>
26893         * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
26895 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
26897         * ThemeWin32Classic.cs:
26898           - GroupBox: Inserted a little gap between the text and the lines
26899             on the right side
26900           - Made the code in CPDrawBorder3D more readable
26901           - Corrected the drawing location of the up and down arrows in 
26902             CPDrawScrollButton
26904 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
26906         * ControlPaint.cs: Corrected line widths in DrawBorder for
26907           ButtonBorderStyle Inset and Outset
26909 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
26911         * ThemeWin32Classic.cs:
26912           - Rewrote the totally broken CPDrawBorder3D method. That was
26913             one of the main problems for the terrific ThemeWin32Classic
26914             look
26915           - Updated and corrected Button drawing
26916           - Correct the dimensions of the SizeGrip to match ms ones
26917           - Removed a small drawing glitch in DrawComboBoxEditDecorations
26918         * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
26919           Border3DStyle.Sunken to match ms.
26921 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
26923         * ThemeWin32Classic.cs: First small part of the "de-uglify
26924           ThemeWin32Classic" effort, SizeGrip
26926 2006-03-24  Jackson Harper  <jackson@ximian.com>
26928         * XplatUIX11.cs: Give a max idle time of one second, this matches
26929         MS and forces an Idle event every second when there are no other
26930         events in the queue.
26932 2006-03-24  Mike Kestner  <mkestner@novell.com>
26934         * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
26935         * ListView.Item.cs: fix layout issues with null image lists and images
26936         smaller than checkbox size.
26937         * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
26938         mode like MS does.  It's weird, but consistent.  ;-)
26939         Fixes #77890.
26941 2006-03-24  Mike Kestner  <mkestner@novell.com>
26943         * ListView.cs: Scroll wheel support for the item control.  Fixes
26944         #77839.
26946 2006-03-23  Jackson Harper  <jackson@ximian.com>
26948         * ScrollableControl.cs: Special case negative sized areas, not
26949         zero.
26950         * MonthCalendar.cs: Save the rect of the clicked date so we can
26951         use it for invalidation.
26952         - Try to cut down on the number of invalidates
26953         - Invalidate the rect the mouse is over and was over when moving
26954         the mouse, so we get the focus box following the cursor.
26956 2006-03-23  Mike Kestner  <mkestner@novell.com>
26958         * ThemeWin32Classic.cs: fix FullRowSelect selection background and
26959         focus rectangle drawing. Fixes #77835.
26961 2006-03-23  Mike Kestner  <mkestner@novell.com>
26963         * XplatUIX11.cs: rework the fix for #77828 by changing the order of
26964         the if and else if and reverting back to the original == check on the
26965         None conditional.
26967 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
26969         * FontDialog.cs: Update the example panel if the selected index of
26970           the fontListBox changes.
26972 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
26974         * FileDialog.cs: Make FileDialog remember which directory it was in
26975           last in the same execution.
26977 2006-03-22  Mike Kestner  <mkestner@novell.com>
26979         * FileDialog.cs: make the DropDownMenu on the toolbar display
26980         RadioChecks since they are mutually exclusive and that's what MS does.
26982 2006-03-22  Mike Kestner  <mkestner@novell.com>
26984         * Theme.cs: add Color param to CPDrawMenuGlyph.
26985         * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
26986         checks and radio marks and arrows are visible on highlighted items.
26987         * ControlPaint.cs: update to use new Theme signature.
26989 2006-03-22  Mike Kestner  <mkestner@novell.com>
26991         * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
26992         is active. Fixes #77870.
26994 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
26996         * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
26997           to be focused/selected after startup
26999 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
27001         * ColorDialog.cs: 
27002           - Corrected behaviour of Color, AllowFullOpen, FullOpen,
27003             CustomColors and ShowHelp properties
27004           - Some internal rewrites to get better results when using the
27005             ColorMatrix
27007 2006-03-22  Mike Kestner  <mkestner@novell.com>
27009         * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
27010         HoverSelection.  Fixes #77836.
27012 2006-03-22  Mike Kestner  <mkestner@novell.com>
27014         * FileDialog.cs: bugfixes for the toolbar.  Use PushButtons instead of
27015         ToggleButtons.  (De)Sensitize the Back button around a stack count of
27016         1, not 0.  Update ButtonSize based on a pixel count of the win32
27017         control.  Adjust the toolbar size/location for new button size.
27019 2006-03-22  Jackson Harper  <jackson@ximian.com>
27021         * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
27022         true.
27023         * ScrollBar.cs: When doing increments and decrements we need to
27024         set the Value property so that ValueChanged gets raised. A
27025         possible optimization here would be to make an internal SetValue
27026         that doesn't invalidate immediately.
27027         * ToolTip.cs: Tooltips get added to their container (when
27028         supplied) so they get disposed when the container is disposed.
27029         - Don't create tooltips for String.Empty. This prevents all these
27030         little 2-3 pixel windows from showing up when running nunit-gui
27031         and driving me mad.
27032         * Form.cs: Don't set topmost when setting the owner if the handles
27033         haven't been created yet.  The topmost set will happen when the
27034         handles are created.
27036 2006-03-22  Peter Dennis Bartok  <pbartok@novell.com> 
27038         * XplatUIX11.cs:
27039           - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
27040           - SetVisible: Sending WINDOWPOSCHANGED for all controls when made 
27041             visible (to allow them to recalculate their sizes)
27043 2006-03-21  Mike Kestner  <mkestner@novell.com>
27045         * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
27046         methods. Removed a ton of redundant code.  Still not really happy with
27047         the border rendering, but I think that's mainly because of the
27048         ControlDarkDark being black instead of a dark grey. Depending on how 
27049         close we want to be, we might want to revisit those color choices.
27050         Among the new features added during the refactor were DropDownArrow
27051         pressed rendering, Disabled image rendering.  Proper flat appearance
27052         boundary rendering.  Removed the Divider and Wrapping dividers since I
27053         can't figure out any combination of themes and conditions to make the
27054         MS control draw a horizontal line on a toolbar despite what the
27055         Divider property docs indicate.
27056         * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
27057         conditions and incorrect layout.  Updated to coding standard.
27058         * ToolBarButton.cs: refactored layout and positioning code from
27059         ToolBar to here.  Invalidate wherever possible instead of forcing
27060         redraws of the whole toolbar. 
27061         (Known remaining issues: explicit ButtonSize smaller than provided
27062         images.)
27064 2006-03-21  Mike Kestner  <mkestner@novell.com>
27066         * ContextMenu.cs (Show): use the position parameter instead of just
27067         showing at the MousePosition.
27069 2006-03-21  Jackson Harper  <jackson@ximian.com>
27071         * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
27072         control handle this.
27073         * TreeNodeCollection.cs: If we are clearing the root node we need
27074         to reset top_node so calcs can still happen.
27075         * ThemeWin32Classic.cs: This is a Flags so we need to check
27076         properly.
27077         
27078 2006-03-21  Jackson Harper  <jackson@ximian.com>
27080         * DataGrid.cs: Create columns when the binding context has been
27081         changed.
27082         * X11Structs.cs: Keysyms are uints.
27083         - Add size to fix build.
27085 2006-03-21  Peter Dennis Bartok  <pbartok@novell.com> 
27087         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
27088           XplatUIOSX.cs: 
27089           - Added ResetMouseHover method to allow controls to retrigger
27090             hovering if they need it more than once
27091           - Implemented MouseHoverTime and MouseHoverSize properties
27092         * Timer.cs: Start() must reset the interval
27093         * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
27094           properties
27096 2006-03-21  Jackson Harper  <jackson@ximian.com>
27098         * X11Keyboard.cs: improved layout detection. Move the nonchar
27099         tables into this file.
27100         * KeyboardLayouts.cs: Move the tables into resource files.
27102 2006-03-21  Mike Kestner  <mkestner@novell.com>
27104         * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
27106 2006-03-21  Alexander Olk  <alex.olk@googlemail.com>
27108         * Mime.cs: Various speed optimizations. Looking up mime types
27109           is now 2 times faster than before
27111 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com> 
27113         * CreateParams.cs: Added internal menu field
27114         * Control.cs: 
27115           - Switched call order for UpdateBounds; now we always call
27116             the one that also takes ClientSize, and we're calculating the 
27117             client size via driver method in the others. The previous
27118             method of tracking client size by difference wasn't working
27119             for forms where even the starting client size wouldn't match
27120             the overall form size (due to borders) (Part of fix for #77729)
27121           - CreateParams(): Do not use parent.Handle unless the handle is
27122             already created. Causes havoc with Nexxia and throws off our
27123             creation of controls
27124         * XplatUIX11.cs:
27125           - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
27126           - Switched handling of ConfigureNotify over to new PerformNCCalc 
27127             method (consolidates code)
27128           - Changed RequestNCRecalc to use new PerformNCCalc method
27129           - Added calls to RequestNCRecalc when menus and borders are changed
27130             to allow app to set NC size. (Part of fix for #77729) This matches
27131             when MS send a WM_NCRECALC on Win32 windows.
27132           - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
27133             (Part of fix for #77729). This matches what MS does, they also
27134             send that message when the form is made visible.
27135           - XException.GetMessage: Improved usability of X errors by including
27136             a translation of the window into Hwnd and Control class
27137           - Improved debug info for window creation, reparenting and destruction
27138           - Created helper method WindowIsMapped() [Currently not used]
27139         * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
27140         * Form.cs:
27141           - CreateParams: Now setting our menu on the new internal menu field
27142           - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
27143             avoid calculating the same property twice
27144         * Hwnd.cs:
27145           - Improved usability of ToString() for debugging purposes
27146           - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
27147             determine the height of the menu, instead of just the font. This
27148             required to also create a graphics context and to keep a bmp 
27149             around (for performance reasons)
27151 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com>
27153         * MenuAPI.cs: Added OnMouseUp method
27154         * Form.cs:
27155           - Now remembering the requested client size, avoids size errors
27156           - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
27157             instead of base if the menu is active. This is required due to
27158             control now capturing and releasing on down/up and it would
27159             prematurely release our menu capture
27161 2006-03-17  Jackson Harper  <jackson@ximian.com>
27163         * KeyboardLayouts.cs: Add the czech layouts.
27165 2006-03-16  Jackson Harper  <jackson@ximian.com>
27167         * Control.cs: Use the viewport space when sizing not the controls
27168         client size, so things like ScrollableControl that effect the
27169         viewport size (when scrollbars are added) are computed correctly.
27170         * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
27171         of ManagerEntrys.
27172         - Handle creating BindingManagers for null data sources.
27173         * DataGrid.cs: Bind the cached_currencymgr_events to the real data
27174         source, otherwise when rows are added they are added to the 'fake'
27175         datasource and we will crash when trying to set the position in
27176         those rows.
27177         - Use Implicit scrollbars on the datagrid so they arent
27178         selectable.
27179         
27180 2006-03-16  Jackson Harper  <jackson@ximian.com>
27182         * Binding.cs:
27183         * InternalWindowManager.cs:
27184         * MdiWindowManager.cs:
27185         * X11Keyboard.cs: I really want Mike to love me again (fix
27186         compiler warnings).
27188 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com>
27190         * DataGrid.cs:
27191           - OnMouseDown: Switch to editing mode when clicking on the cell
27192                          even if we're clicking on the cell that's currently 
27193                          selected
27194           - ProcessGridKey: Left/Right now wrap like MS.Net does
27195           - ProcessGridKey: Tab now knows to add a new row when tab is
27196                             pressed in the cell of the last column of the 
27197                             last row
27198           - ProcessGridKey: Enter now adds another row  if pressed in the last
27199                             row and selectes the new row, same column cell
27200           - ProcessGridKey: Home/End navigate columns, not rows, like 
27201                             originally implemented
27202           - Broke ProcessKeyPreview code out into an extra Internal method
27203             so it can be called from the edit code
27204         * DataGridTextBox.cs (ProcessKeyMessage):
27205           - Switched to accept Tab keypresses
27206           - Added F2 handling to allow jumping to the end of the edited cell
27207           - Added logic to allow moving caret left/right inside edited cell
27208             and making the edited cell jump when the caret hits cell borders
27209           - Tab and Enter are now passed to the datagrid after being handled
27210         * TextBoxBase.cs:
27211           - Removed capture code now that Control handles it
27212           - set_SelectionStart now ensures caret is visible
27214 2006-03-16  Jackson Harper  <jackson@ximian.com>
27216         * TrackBar.cs: Debackwards the increment/decrement for handling
27217         mouse clicks on the bar with vertical trackbars.
27218         * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
27219         bottom to match MS.
27221 2006-03-16  Mike Kestner  <mkestner@novell.com>
27223         * ListView.cs: make shift/ctrl keyboard and mouse selection 
27224         consistent with the MS control. Fix a bug in
27225         SelectedListViewItemCollection.Clear that was pissing me off for the
27226         better part of a day because the collection was being altered
27227         underneath us as we walked the list.
27229 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com> 
27231         * Control.cs: Not sure how we could miss this so long, but it seems
27232           that MS.Net has Capture set all the way from before calling 
27233           OnMouseDown through sending the mouse events until after
27234           OnMouseUp. This will fix DataGrid's selection being set to end
27235           at the location of the MouseUp.
27237 2006-03-15  Jackson Harper  <jackson@ximian.com>
27239         * BindingContext.cs: Check the binding after its added so that it
27240           can initialize the binding managers and hookup to events.
27241         * Binding.cs: Data members seem to sometimes include rows/cols in
27242           the format Row.Column we now take this into account.
27243           - Hookup to the position changed event so we can update the
27244           control when the position has changed in the data set.
27245         * CurrencyManager.cs: Take into account the row/col naming
27246           convention when creating dataset tables.
27247         * BindingContext.cs: Using a newer better way of storing
27248           datasource/datamember pairs.  Hopefully this better matches MS for
27249           looking up binding managers.
27252 2006-03-15  Jackson Harper  <jackson@ximian.com>
27254         * BindingContext.cs: The currency manager needs the data member
27255         name, if the member is a data set we use the name to find the
27256         correct table.
27257         * CurrencyManager.cs: When creating the list prefer an IList over
27258         an IListSource.
27259         - Attempt to create a DataTable from a DataSet (TODO: might need
27260         some better error checking here, although MS doesn't seem to have much)
27261         - If we have a DataTable create a view and use it as our list.
27263 2006-03-15  Mike Kestner  <mkestner@novell.com>
27265         * ListView.cs: keep a matrix of the icon mode layout to facilitate
27266         keyboard navigation. Support Up/Down/Left/Right selection correctly
27267         for all 4 View modes.
27268         * ListViewItem.cs: add internal row/col fields for icon layouts.
27270 2006-03-15  Jackson Harper  <jackson@ximian.com>
27272         * TabControl.cs: Redraw the tabs when we resize so their newly
27273         calculated sizes are drawn on screen.
27274         * X11Keyboard.cs: Begginnings of XIM support.  We also now support
27275         composite characters.
27276         * XplatUIX11.cs: Keyboard driver needs to know about focus changes
27277         - filter events so that composite characters can be created
27278         patches by peter
27279         * X11Structs.cs: Add XIMProperties enum.
27281 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
27283         * Control.cs (BringToFront, SendToBack): Don't use window or handle
27284           unless it's created
27286 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
27288         * Control.cs (PerformLayout): We don't need to consider visiblity
27289           for anchoring, only for docking. This fixes 'whacky' alignment
27290           in listbox and other controls that use implicit scrollbars after
27291           the previous PerformLayout patch
27292         * ListBox.cs: Switched to use implicit scrollbars
27293           
27294 2006-03-14  Mike Kestner  <mkestner@novell.com>
27296         * ToolBar.cs: 
27297         * VScrollBar.cs:
27298         - chain up the "new event" overrides to base and use
27299         OnEvent to raise them.  Part of fix for bug #76509.
27301 2006-03-14  Alexander Olk  <alex.olk@googlemail.com>
27303         * FileDialog.cs: Do not select an item in the parent directory
27304           on backspace
27306 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
27308         * Control.cs (PerformLayout): It would seem that we considered
27309           invisible windows for our layout. Not quite the right thing
27310           to do. Now we don't any longer, thereby fixing bug #76889.
27312 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
27314         * Control.cs (CanFocus): I goofed. A control can have focus 
27315           even though it's not selectable. Made it match MS docs.
27317 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
27319         * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
27320           center by default (fixes #76895)
27321         * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced 
27322           all uses of Border3DSides.All with the explicit ORd together
27323           Left|Right|Top|Bottom because I assume that nobody was aware 
27324           that All also implies a center fill. Most places I checked had
27325           a fill right above.
27326         * ProgressBarStyle.cs: Added
27328 2006-03-13  Mike Kestner  <mkestner@novell.com>
27330         * ListView.cs: fix breakage in drag shadow header positioning 
27331         from Peter's csc compilation fix.
27333 2006-03-13  Mike Kestner  <mkestner@novell.com>
27335         * ListView.cs: fix NRE produced by backspacing twice in a focused
27336         FileDialog.
27338 2006-03-13  Mike Kestner  <mkestner@novell.com>
27340         * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
27342 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
27344         * Hwnd.cs: Added fixed_size field to track windows whose size cannot
27345           be changed
27346         * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
27347           the allowed size before making programmatic size changes
27349 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com> 
27351         * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are 
27352           set, metacity is broken and will still use the emty sizes in 
27353           the struct. (Fix for #77089)
27355 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
27357         * XplatUIStructs.cs: Split WindowStyles into WindowStyles and 
27358           WindowExStyles and marked both enums as Flags
27359         * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
27360           NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
27361           to match WindowStyles split
27362         * XplatUIX11.cs:
27363           - SetWMStyles: Added cehck to not apply WM attributes to Child windows
27364           - Updated to match WindowStyles split
27365         * XplatUIWin32.cs:
27366           - Fixed FosterParent creation, was using ExStyle on the Style field
27367             (This should help with Popup focus issues)
27368           - Updated to match WindowStyles split
27370 2006-03-13  Jackson Harper  <jackson@ximian.com>
27372         * MdiWindowManager.cs: Use the system menu height. Fixes some
27373         strange sizing issues.
27375 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
27377         * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
27378         * TextBoxBase.cs:
27379           - Scroll to caret after inserting text (#77672)
27380           - Make scroll range one pixel higher, fixes off-by-one error (and
27381             makes underlines visible on the last line)
27383 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com> 
27385         * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
27386           the keyboard state from being stuck with keys in 'pressed' state when
27387           focus is switched away via keyboard
27388         * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
27389           reset the keyboard if no X11 KeyUp events are expected to come
27390         * X11Structs.cs: Switched type of Visible to bool to match driver
27392 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
27394         * TextControl.cs:
27395           - Switched caret to be just 1 pixel wide, matches MS and looks less
27396             clunky
27397           - Moved caret display 1 pixel down from the top of the control
27398             to improve view
27399           - InsertCharAtCharet: Update the selection start if moving the caret
27400             (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
27401           - No longer always creating the caret when the caret methods are
27402             called. Only the actual ShowCaret/HideCaret will do that now
27403           - Only setting caret visible if the owner control has focus
27404           - UpdateView: Added invalidation-shortcut logic for center and right 
27405             aligned text. Previously we'd update all according to the left
27406             logic which caused drawing errors. Also fixed height of invalidated
27407             areas, now properly invalidating the whole area (was off-by-one)
27408           - owner_HandleCreated: Always generate the document when the
27409             handle is created; this ensures that 
27410         * TextBoxBase.cs:
27411           - Fixed situation where caret would disappear under the right
27412             window border, also improved scrolling behaviour on left-
27413             aligned textboxes
27414           - Fixed right-aligned textboxes to have a border to the
27415             right instead of the caret being under the right border
27416         * XplatUIX11.cs:
27417           - Switched from 'nested' to simple visible/not visible tracking 
27418             for caret (part of fix for #77671)
27419           - No longer passing through translated FocusIn/FocusOut messages
27420             since we were notifying too often and the wrong windows. Instead
27421             we just notify our focussed window of receiving or loosing focus
27422         * XplatUIWin32.cs: Switched from 'nested' show/hide 
27423           counting for caret to simple visible yes/no behaviour (part of 
27424           fix for #77671)
27426 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
27428         * Mime.cs: Remove debug code...
27430 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
27432         * MimeGenerated.cs: Removed
27433         * Mime.cs: Mime now reads the mime data (magic, globs, aliases
27434           and subclasses) from /usr/(local/)share/mime and
27435           $HOME/.local/share/mime.
27437 2006-03-10  Jackson Harper  <jackson@ximian.com>
27439         * MdiWindowManager.cs: Recalc the NC area when a window is
27440         maximized/restored so that the menu area is drawn on forms that
27441         don't have a menu.
27443 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
27445         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
27446           XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
27447           us to force a WM_NCCALCRESIZE message being sent. This is needed
27448           for MDI maximizing.
27450 2006-03-10  Jackson Harper  <jackson@ximian.com>
27452         * Form.cs: We need to use the ActiveMenu when calculating menu
27453         height.
27454         - Fix nullref when the window manager hasn't been created yet.
27455         * Control.cs: Fix nullref when we try to bring a control to the
27456         front that has no parent.
27457         * MdiWindowManager.cs: Use the MaximizedMenu for calculating
27458         height.
27459         - Add a dummy item to the maximized menu so it always has the
27460         correct height. Otherwise when there are no menus we don't get our
27461         icon and buttons.
27462         
27464 2006-03-10  Jackson Harper  <jackson@ximian.com>
27466         * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
27467         stuff.
27468         * Form.cs: Make the window_state internal so the window managers
27469         can track it.
27470         - When an MDI child is maximized let its window manager create the
27471         main menu (so it can add its icon).
27472         - Notify the window managers of state changes
27473         - Let the window manager paint its buttons and handle button
27474         clicks on the menu when it is maximized.
27475         * InternalWindowManager.cs: Move the prev_bounds into the mdi
27476         window manager, since tool windows don't use it, only mdi windows.
27477         - Tell the main form that we don't want it to handle NCPAINT
27478         itself to avoid extra painting.
27479         - Handle clicks on a maximized windows menu.
27480         - Handle window state changes
27481         - Handle minimize/maximize clicks correctly by setting the window state.
27482         * MdiWindowManager.cs: Add an icon menu that (the menu you get
27483         when clicking on the forms icon).
27484         - New method to create a forms maximized menu. This is its normal
27485         menu + an icon.
27486         - Handle window state changes.
27487         - Handle sizing of maximized windows.  Maximized windows are just
27488         drawn bigger then the parent visible area. All controls are still
27489         there, they are just outside the visible area (this matches windows).
27490         * MdiClient.cs: No scrollbars when a child window is maximized.
27491         - Let the children windows figure out how big they should be when
27492         sizing maximized windows.
27493         - Implement a version of ArrangeIconicWindows somewhat similar to
27494         Windows version.  There are some little differences, but I don't
27495         think any app will rely on the layout of minimized mdi windows.
27497 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
27499         * Padding.cs: Several fixes to allow compiling with csc 2.0
27501 2006-03-09  Jackson Harper  <jackson@ximian.com>
27503         * Menu.cs:
27504         * MenuItem.cs: Cheap hack so we can add items to the list without
27505         the events being raised.  This allows adding mdi items during
27506         drawing. TODO: Should probably find a better time to add the items.
27508 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
27510         * ThemeWin32Classic.cs:
27511           - CheckBox_DrawText: Added logic to not wrap if not enough space
27512             is available (Fix for bug #77727)
27513           - RadioButton_DrawText: Added logic not to wrap if not enough
27514             space is available (Fix for bug #77727). Also removed some
27515             duplicate code, DrawString always drawing the regular text
27516             before hitting the if statement.
27518 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com> 
27520         * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
27522 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
27524         * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
27525         * ContainerControl.cs: Partial implementation of some 2.0 scaling
27526           methods. Moved the new 2.0 properties into alphabetical order with
27527           other properties and added MonoTODO tags
27529 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
27531         * AutoScaleMode.cs: Added. Fix build.
27533 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
27535         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
27536           XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
27537           and was requiring premature handle creation for calls from above
27538         * Form.cs, Control.cs: Removed handle arguments from calls to
27539           CalculateClientRect()
27541 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
27543         * ListView.cs (HeaderMouseMove): Fix csc compilation. 
27544           drag_column.column_rect is MarshalByRef and can't be used that way
27546 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
27548         * AxHost.cs: Added deserialization constructor for 
27549           AxHost+State (fixes 77743)
27551 2006-03-09  Mike Kestner  <mkestner@novell.com>
27553         * ListView.cs: 
27554         - Added column drag reordering for details view.
27555         - fixed behavior when mouse is dragged off column and
27556         AllowColumnReorder is false.
27557         * ColumnHeader.cs: clone the format too in Clone.
27558         * Theme.cs: add DrawListViewHeaderDragDetails method.
27559         * ThemeWin32Classic.cs:
27560         - impl new method for drawing drag column shadows and targets.
27561         - support column offset for details mode in DrawListViewItem.
27563 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
27565         * TextControl.cs: Reset the char_count when the document is cleared
27566           (Fixes bug reported on mono-winforms mailing list)
27568 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
27570         * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
27571           of calling base we simply process the key ourselves, since both
27572           DefWindowProc and the handled method would set m.Result. 
27573           (Fixes #77732)
27575 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
27577         * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
27578           method also moves the window; instead implemented a copy of
27579           Control.ScaleCore (Part of fix for #77456)
27580         * TextBoxBase.cs: 
27581           - Created new CreateGraphicsInternal method to allow providing
27582             a graphics context when no handle is created without triggering
27583             handle creation. (Part of fix for #77456)
27584           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
27585         * TextControl.cs: 
27586           - Switched Constructor to require TextBoxBase instead of Control (to
27587             allow uncast access to CreateGraphicsInternal)
27588           - Safeguarded use of owner.Handle property. No longer accessing it
27589             unless the handle is already created.
27590           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
27591           - Now triggering a recalc when owning control becomes visible
27592         * TextBox.cs, RichTextBox.cs: Switched to use new internal 
27593           TextBoxBase.CreateGraphicsInternal() method to avoid triggering
27594           premature handle creation (Part of fix for #77456)
27595         * Control.cs:
27596           - We now only destroy our double-buffering buffers when the
27597             control is resized or disposed, but not when visibility
27598             changes. (The code even re-created them twice every time)
27599           - Now requiring a redraw of the buffer on visibility changes
27600             (fixes bug 77654 part 2)
27601           - Not passing OnParentVisibleChanged up unless the control
27602             is visible
27603           - CanFocus: Fixed to match MS documentation
27604           - Focus: Fixed to return actual focus state and to check if
27605             setting focus is legal before setting it
27607 2006-03-08  Peter Dennis Bartok  <pbartok@novell.com>
27609         * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
27610           when to draw focus rectangle by looking at parent focus and
27611           selected state instead. This fixes TabPages on Linux sometimes
27612           having none or multiple focus rectangles.
27613         * XplatUIX11.cs (SetFocus): 
27614           - Don't set the focus if the same window already has focus
27615           - Use SendMessage instead of PostMessage (like it's Win32
27616             equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
27617             to match MS behaviour
27618         * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
27619           are not selectable.
27621 2006-03-07  Jackson Harper  <jackson@ximian.com>
27623         * PictureBox.cs: Revert line I accidently committed last week.
27625 2006-03-07  Peter Dennis Bartok  <pbartok@novell.com>
27627         * Control.cs: 
27628           - Added new IsRecreating and ParentIsRecreating properties to
27629             allow testing if RecreateHandle has been called on ourselves
27630             or one of our parents
27631           - WndProc(WM_DESTROY): If our control handle is being recreated
27632             we immediately need to create the handle when receiving the
27633             destroy, that way our child windows find a valid parent handle
27634             when they themselves are being recreated upon WM_DESTROY receipt
27635             (fix for bug #77654 part 1)
27636         * XplatUIX11.cs:
27637           - DestroyWindow: WM_DESTROY must be sent to our own window before
27638             notifying any child windows. MS documents that child windows
27639             are still valid when WM_DESTROY is received. (Control now relies on
27640             this behaviour)
27641           - Added some fine-grain debug options
27643 2006-03-06  Jackson Harper  <jackson@ximian.com>
27645         * MdiClient.cs: Redid scrolling logic a bit to create a virtual
27646         box and base calculations off this.
27647         * MdiChildContext.cs:
27648         * MdiWindowManager.cs: Don't need to ensure scrollbars here
27649         anymore.
27650         
27651 2006-03-06  Peter Dennis Bartok  <pbartok@novell.com>
27653         * Splitter.cs: In situations where the affected control is added
27654           to the parent's control list after the splitter, we would not
27655           populate affected. Now we try populating it on mousedown, if
27656           it's not already set, and force it to be re-set whenever our
27657           parent changes.
27659 2006-03-03  Matt Hargett  <matt@use.net>
27661         * Control.cs: implement Control.Padding
27662         * Padding.cs: -Padding.All returns -1 when constructing with the
27663         implicit default ctor
27664         -Padding.ToString() matches MS.NET
27665         * ContainerControl.cs: implement
27666         ContainerControl.AutoScaleDimensions
27667         * ListControl.cs: implement ListControl.FormattingEnabled
27668         * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
27669         * ButtonBase.cs:
27670         * TabPage.cs: Implement UseVisualStyleBackColor.
27671         * PictureBox.cs: Implement PictureBox.InitialImage.
27673 2006-03-03  Mike Kestner  <mkestner@novell.com>
27675         * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
27676         event declarations to proxy to base event.
27677         * ListViewItem.cs: update to use ItemControl.
27678         * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
27679         * ThemeWin32Classic.cs: update to new ListView theme API and fix
27680         column header label rendering for 0 width columns.
27682 2006-03-03  Peter Dennis Bartok  <pbartok@novell.com>
27684         * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
27685           that causes the control to be created. Fixes #77476.
27687 2006-03-02  Jackson Harper  <jackson@ximian.com>
27689         * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
27690         expose_pending.
27692 2006-03-02  Peter Dennis Bartok  <pbartok@novell.com>
27694         * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
27695           passed in for the EventArgs (fixes #77690)
27697 2006-03-01  Jackson Harper  <jackson@ximian.com>
27699         * ScrollBar.cs: Refresh afterbeing resized.
27701 2006-02-28  Mike Kestner  <mkestner@novell.com>
27703         * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
27704         Clean up a tracker compile warning.
27705         * MenuItem.cs: add internal PerformPopup method.
27706         [Fixes #77457]
27708 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
27710         * TextBoxBase.cs (set_Text): Recalculate the document (causing an
27711           implicit expose) when the text is set to null
27713 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com>
27715         * RichTextBox.cs (FlushText): When newline is true, we always
27716           need to split the line, even if no text is on it and we may
27717           never eat newlines. (Fixes #77669)
27719 2006-02-28  Mike Kestner  <mkestner@novell.com>
27721         * ListView.cs: Add UpdateSelection internal method. Remove SelectItem 
27722         and set Selected instead.
27723         * ListViewItem.cs: Call owner.UpdateSelection to manipulate the 
27724         collections.
27726 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
27728         * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
27730 2006-02-28  Alexander Olk  <alex.olk@googlemail.com>
27732         * FontDialog.cs:
27733           - Got rid of the panel. All controls are now directly added to
27734             the dialog form
27735           - It is now possible to set a font with the Font property
27736           - MinSize and MaxSize property do now what they should
27737           - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
27738           - Searching and selecting a font with the font textbox works now,
27739             the same applies to the style and size textbox
27740           - Draw the correct 3D border in the example panel
27741           - Fixed a little mem leak (unused fonts didn't get disposed)
27742           - Many other internal updates/rewrites...
27743           - Fix typo
27745 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
27747         * TextControl.cs: 
27748           - InsertRTFFromStream: Added 'number of characters inserted' argument
27749           - set_SelectedRTF: Now using the number of characters to calculate
27750             the new location for the selection and cursor (x/y cannot be used
27751             due to potentially already wrapped text)
27753 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com>
27755         * TextControl.cs: Added property and implemented means to allow 
27756           disabling recalculation of a document (can be used to speed up
27757           multiple inserts and is needed to make RTF inserts predictable, see
27758           bug #77659)
27759         * RichTextBox.cs: Using the new NoRecalc property of Document to
27760           keep x/y insert locations predictable. Also makes it faster inserting
27761           large chunks of RTF
27763 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
27765         * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
27766           it's easier for a child control to handle the other messages without
27767           having to duplicate the special functionality
27768         * TextBoxBase.cs
27769           - WndProc: Removed calling base handler for WM_KEYDOWN and added 
27770             code to handle processing the key ourselves, in order to get 
27771             access to the result of KeyEventArgs.Handled. We now only call 
27772             ProcessKey if they key hasn't been handled already. Fixes #77526.
27773           - set_Text: If null or empty string is given, just clear the 
27774             document. Fixes part of #77526
27776 2006-02-27  Jackson Harper  <jackson@ximian.com>
27778         * SizeGrip.cs: Paint the background color before painting the grip
27779         so things look right.
27780         * MdiClient.cs: Add the sizegrip when both scrollbars are used.
27782 2006-02-27  Mike Kestner  <mkestner@novell.com>
27784         * ListView.cs:
27785           - Restructure layout and invalidation model to remove a ton of
27786           flicker from the control and speed up performance in general.
27787           - Add manual column resize, flickers like crazy, but I already have
27788           some ideas on how I'll fix that. (#76822)
27789           - Merge the three Icon-based views into a single layout method.
27790           - Move item selection interaction logic from the item since 
27791           interaction with the collections is more appropriate to the view.
27792           - Deselection on non-item clicks.
27793         * ListViewItem.cs:
27794           - Encapsulate most of the layout. Add some internal props to trigger
27795           layout.  Move to a model where Items invalidate themselves instead
27796           of just invalidating the whole control every time something changes.
27797           - Invalidate on Text/Caption changes.
27798           - switch to an offset based layout model to avoid having to absolute
27799           position every element on item moves.
27800           - correct checkbox layout to conform to MS layout.
27801         * ThemeWin32Classic.cs:
27802           - refactor some column header drawing code.
27803           - fix string justification for column headers (#76821)
27804           - make SmallIcon labels top justified for compat with MS impl.
27805         * ThemeClearlooks.cs:
27806           - adjust to new ListViewItem internal checkbox bounds api.
27808 2006-02-27  Jackson Harper  <jackson@ximian.com>
27810         * Control.cs:  Change where implicit controls fall in the zorder.
27811         They are now on top of all children.
27812         - Synced AddImplicit code with Add
27813         - Removed unused enumerator.
27814         * SizeGrip.cs: Remove the TODO as its been TODONE.
27816 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com> 
27818         * TextControl.cs(Insert): Combine the last lines unless the insertion
27819           string ends with \n\n, otherwise we leave one line too many (Fixes
27820           something I noticed with the testapp for #77526; the bug itself was
27821           already fixed in the previous checkin)
27823 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com>
27825         * RichTextBox.cs:
27826           - SelectionColor and SelectionFont methods no longer set absolute
27827             styles. Instead, the keep font or color respectively (This 
27828             resolves a long-standing FIXME in the code)
27829           - When flushing RTF text, the insert code now considers text trailing
27830             behind the insertion point (Fixes the bug where when replacing
27831             the selected text via SelectedRTF the remainder of the line behind 
27832             the selection would stay on the first insertion line)
27833         * TextBoxBase.cs:
27834           - AppendText now updates the selection points after inserting text
27835           - AppendText now ensures that the last tag (sometimes 0-length) of
27836             the document is used for the style information (Fixes part of 
27837             bug #77220)
27838         * TextControl.cs:
27839           - Created new FontDefiniton class to allow describing partial style
27840             changes
27841           - StreamLine() now takes a lines argument, to allow it to decide
27842             whether an encountered zero-length tag is the last in the document
27843             (which must be kept to not loose the font/color contained in it,
27844             for later appends)
27845           - Created Combine() and Split() methods for Marker structs, to 
27846             support marker updates due to reformatted documents (soft line
27847             wraps)
27848           - Implemented Document.CaretTag setter
27849           - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
27850             of the last line (Not the cause, but also exposed by bug #77220)
27851           - Added LineTag argument to InsertString method, to allow callers
27852             to force a certain tag to be used (required to force use of the
27853             trailing zero-length tag of a document)
27854           - Now updating markers in Combine(), to avoid stale tag markers
27855           - Added some method descriptions to aid maintenance
27856           - Implemented new FormatText concept, allowing additive/subtractive
27857             formatting by only specifying the components that are to be 
27858             changed. This was needed for resolving the RTB.SelectedColor/
27859             RTB.SelectedFont fixmes
27860           - Added Break() support method to allow breaking up linetags (used
27861             for partial formatting)
27862           - Added GenerateTextFormat() method. It is used for partial 
27863             formatting and allows to generate a full font/color from given
27864             attributes and an existing tag.
27866 2006-02-26  Jackson Harper  <jackson@ximian.com>
27868         * XplatUIX11.cs:  Use the correct caption height.
27869         - Translate hittest coordinates to screen coords to match MS.
27870         * XplatUIWin32.cs: When we create MDI windows we need to reset
27871         some of the style flags, so we get a nice blank window, and can
27872         draw all the decorations ourselves.
27873         - Set a clipping rectangle on the non client paint event, the
27874         window manager drawing code needs one.
27875         * Form.cs: The window manager needs to know when the window state
27876         has been updated.
27877         * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
27878         don't need to factor in border and title sizes in these
27879         methods. TODO: Remove the args and fix the call points.
27880         * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
27881         properly.
27882         - Let the driver set the cursors.
27883         - Improve active window handling
27884         - Correct sizes for title bars and buttons.
27885         - Match MS drawing better
27886         * MdiWindowManager.cs: We don't need to handle border style
27887         updates specially anymore.
27888         - Check for scrollbars when windows are done moving
27889         - Handle Active properly.
27890         * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
27891         correctly. I am spewing the exception though, so we don't hide the
27892         bugs.
27893         
27894 2006-02-26  Pedro Martinez Julia  <pedromj@gmail.com>
27896         * DataGridViewRowPostPaintEventArgs.cs,
27897           DataGridViewCellPaintingEventArgs.cs,
27898           DataGridViewRowCollection.cs,
27899           DataGridViewRowPrePaintEventArgs.cs,
27900           DataGridViewCell.cs: Clear a few warnings and implement a few
27901           exceptions that should be thrown.
27903 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
27905         * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
27906           'inheriting' our parent's (non-default) cursor. (Part of
27907            the fix for #77479)
27909 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com> 
27911         * XplatUIX11.cs: Fixed cast to make csc happy
27913 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
27915         * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
27916           it's for the client area (part of fix for #77479 and needed
27917           for MDI window cursor handling)
27918         * XplatUIX11.cs
27919           - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
27920             the appropriate default cursors and also passing the message
27921             up the parent chain 
27922           - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
27923             for non-client areas
27925 2006-02-15  Jackson Harper  <jackson@ximian.com>
27927         * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
27928         is a real MDI window
27930 2006-02-14  Alexander Olk  <alex.olk@googlemail.com>
27932         * X11DesktopColors.cs: Instead of checking the desktop session
27933           string for "KDE" check if it starts with "KDE"
27935 2006-02-10  Jackson Harper  <jackson@ximian.com>
27937         * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
27938         systems).
27940 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
27942         * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
27943           errors
27944         * ColorDialog.cs:
27945           - Got rid of the panel. All controls are now directly added to
27946             the dialog form
27947           - Changed to mono coding style
27949 2006-02-10  Jackson Harper  <jackson@ximian.com>
27951         * InternalWindowManager.cs: We don't need the set visibility to
27952         false hack anymore now that peter has written beautiful shutdown
27953         code.
27955 2006-02-10  Peter Dennis Bartok  <pbartok@novell.com>
27957         * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
27958           where already explicitly destroyed
27960 2006-02-10  Jackson Harper  <jackson@ximian.com>
27962         * MdiClient.cs: Handle the case where windows are too high or to
27963         the left and we need scrollbars.
27965 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
27967         * MimeIcon.cs: Added some icons
27968         * FileDialog.cs:
27969           - Fixed bug #77477
27970           - Got rid of the panel. All controls are now directly added to
27971             the dialog form
27972           - Changed to mono coding style
27973           - On Linux "My Computer" and "My Network" will now show some
27974             more usefull information. A new class, MasterMount, gathers
27975             this information from /proc/mount. Updated MWFFileView to make
27976             use of this information
27977           - Fixed a bug that caused FileDialog to crash when
27978             ".recently_used" file had a zero size
27979           - FilterIndex does now what it should
27980           - Some Refactoring
27981         * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
27982             FileDialog changes
27984 2006-02-09  Jackson Harper  <jackson@ximian.com>
27986         * ComboBox.cs: Don't touch if null.
27988 2006-02-09  Peter Dennis Bartok  <pbartok@novell.com>
27990         * Cursor.cs: 64bit safeness fix
27991         * XplatUIX11.cs: Removed several unneeded and one moronic cast.
27993 2006-02-09  Jackson Harper  <jackson@ximian.com>
27995         * Form.cs: If a form is made into an MDI form update the styles so
27996         all the props can get set correctly.
27997         - Kill the mdi_container when we dont need it anymore.
27998         * InternalWindowManager.cs: Add missing NOT
28000 2006-02-08  Jackson Harper  <jackson@ximian.com>
28002         * InternalWindowManager.cs: Respek clipping when drawing MDi
28003         decorations.
28005 2006-02-08  Jackson Harper  <jackson@ximian.com>
28007         * Hwnd.cs: Add bits to track non client expose events.
28008         * XplatUIX11.cs: Track non client expose events on the hwnd. This
28009         gives us a proper invalid rect and will allow for some nice
28010         optimizations with NC client drawing
28011         - MDI windows are children windows, so move their style handling
28012         into the child window block.
28013         * InternalWindowManager.cs: Remove a state reset that was
28014         getting invoked at the wrong time. Fixes managed windows getting
28015         into a 'stuck' captured state.
28017 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
28019         * TextControl.cs (Document.ctor): Now initializing 
28020           selection_anchor. Fixes #77493
28022 2006-02-07  Jackson Harper  <jackson@ximian.com>
28024         * TrackBar.cs: The increment/decrements were backwards.
28026 2006-02-07  Mike Kestner  <mkestner@novell.com>
28028         * Theme*.cs : remove ThemeEngine.Current usage as it just points back
28029         to the instance itself.
28031 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
28033         * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
28034           on ulongs and pointers, the size differs between 32bit and 64bit
28035           systems. 
28037 2006-02-07  Mike Kestner  <mkestner@novell.com>
28039         * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
28040         for 64 bit platforms to work around a metacity bug. 
28042 2006-02-07  Jackson Harper  <jackson@ximian.com>
28044         * TrackBar.cs: Process the input keys we need, and hookup to
28045         KeyDown instead of using WndProc, so we get key messages.
28047 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com>
28049         * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
28050           machine we're on. 
28051         * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
28052           we need to translate the XdndVersion atoms array before sending it
28054 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com> 
28056         * XplatUIX11.cs: 
28057           - The preceeding 64bit fixes had a bug: ChangeProperty expects the
28058             number of bits for the property, not the number of bytes. The
28059             change to provide IntPtr.Size broke 32bit. (64bit was also wrong
28060             but would not crash since it specified 8 bits instead of 4 bits)
28061           - More 64bit fixes: Switched all atoms from int to IntPtr (they are
28062             defined as XID -> long in the C headers)
28063           - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms 
28064             references since those are now IntPtr to begin with
28065           - Switched all Atom.XXX 'int' casts to IntPtr casts
28066           - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
28067           - Fixed XInternAtom signature for 64bit, now returns an IntPtr
28068           - Added XChangeActivePointerGrab DllImport (for X11DnD)
28069         * X11Structs.cs:
28070           - Changed 'int' type for Atoms in XEvent structures to IntPtr
28071           - Changed atom in HoverStruct to be IntPtr
28072         * X11DnD.cs:
28073           - Removed local DllImports, switched code to use those from XplatUIX11
28074           - Removed/fixed casts related to the switch of Atom to be a IntPtr
28076 2006-02-06  Mike Kestner  <mkestner@novell.com>
28078         * XplatUIX11.cs : many more 64 bit pinvoke changes.  I've audited all the 
28079         method signatures in the import region.  There may still be some
28080         lingering struct marshaling issues, as I didn't drill down into those.
28081         Yet.
28083 2006-02-06  Jackson Harper  <jackson@ximian.com>
28085         * ComboBox.cs: Dont manually set the top_item, this is computed
28086         when the scrollbar position is set.
28088 2006-02-06  Mike Kestner  <mkestner@novell.com>
28090         * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
28091         startup crashes on amd64.  There's other fixes needed.  All pinvoke
28092         usage of Atom needs to be mapped to IntPtr for example.  And there are
28093         likely other int/long issues to be addressed.
28095 2006-02-04  Alexander Olk  <alex.olk@googlemail.com>
28097         * FileDialog.cs: One more...
28099 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
28101         * FileDialog.cs: Next try
28103 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
28105         * FileDialog.cs: First part of fix for #77464
28107 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
28109         * ButtonBase.cs, ContainerControl.cs, Forms.cs,
28110           ThemeWin32Classic.cs: Fix for #77458. Correct handling of
28111           AcceptButton border drawing.
28113 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com> 
28115         * Form.cs: Moved positioning of form after auto scaling is applied,
28116           otherwise it would possibly use wrong form size.
28118 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com>
28120         * Control.cs (RecreateHandle): No need to re-create any child
28121           controls, the child windows will get destroyed automatically by
28122           the windowing system or driver, and re-created when the handle
28123           is being accessed the first time. Fixes #77456
28124         * Form.cs: No longer setting the form to closing if the handle is 
28125           being recreated. This seems like the right thing to do, don't
28126           have a bug or testcase for this, though.
28128 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
28130         * FileDialog.cs: Suspend/Resume layouting when changing sizes of
28131           controls to avoid unwanted side effects
28133 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com> 
28135         * Control.cs: 
28136           - ScaleCore needs to scale the bounds, not the ClientSize of the 
28137             control. Fixes #77416.
28138           - DefaultSize is 0,0 for control
28139         * TextBoxBase.cs: 
28140           - DefaultSize is 100, 20
28141           - SetBoundsCore: Now enforcing the height, no matter if the provided
28142             height is more or less than the preferred one, as long as AutoSize
28143             is on
28144         * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
28146 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
28148         * Control.cs:
28149           - ResumeLayout: Fixed logic when to call PerformLayout, we may not
28150             call unless both performLayout is true *and* we have a pending
28151             layout change
28152           - ResumeLayout: MS does not completely nest Suspend and Resume,
28153             they bottom out at 0, fixed our code to match that.
28154           - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
28155             SetBoundsCore, we were updating even when we shouldn't. This fixes
28156             swf-anchors mis-anchoring when resizing the app fast and lots.
28157           - UpdateDistances: Now only setting the left and top distance if 
28158             we have a parent and are not suspended, this is based on
28159             a suggestion by Don Edvaldson in bug #77355.
28160           - OnVisibleChanged: Fixed logic when to create the control. We may
28161             not create the control if we have no parent or if it's not visible;
28162             switched to using Visible property instead of is_visible field 
28163             since the property also considers parent states. This fixes a bug
28164             when starting Paint.Net
28166 2006-02-02  Jackson Harper  <jackson@ximian.com>
28168         * Form.cs: If the forms handle hasn't been created yet don't call
28169         into xplatui to make it top most, just set the topmost flag on the
28170         form in CreateParams
28171         * XplatUIX11.cs: Handle WS_EX_TOPMOST.
28173 2006-02-01  Jackson Harper  <jackson@ximian.com>
28175         * ScrollableControl.cs: Refactored the Recalculate method a
28176         little, this wasn't handling all the variants of bottom and right
28177         bars needed to be added and added/removed based on their
28178         counterparts being added/removed (which changes the drawable
28179         size). Also we special case client widths and heights of 0 and
28180         don't add the scrollbar for those.
28182 2006-02-01  Peter Dennis Bartok  <pbartok@novell.com>
28184         * XplatUIX11.cs: 
28185           - Added method to get AbsoluteGeometry(); currently unused, but might
28186             be used in the future, if we try again to figure out toplevel
28187             coordinates with some more crappy window managers
28188           - Added FrameExtents() method to retrieve the WM set decoration size
28189           - Tried to fix up AddConfigureNotify and handling of ReparentNotify 
28190             to deal with at least KDE, FVWM and metacity (Fixes #77092)
28191         * Hwnd.cs: 
28192           - Added whacky_wm tracking var for metacity
28193           - Added logic to have default menu height if the actual menu height
28194             has not yet been calculated (part of fix for #77426)
28195         * Form.cs: Keep track whether client size has been set and re-set 
28196           it if a menu is added/removed afterwards (Fixes #77426)
28198 2006-01-31  Jackson Harper  <jackson@ximian.com>
28200         * Control.cs: When a new Site is set on the component attempt to
28201         pull the AmbientProperties from it.
28203 2006-01-31  Peter Dennis Bartok  <pbartok@novell.com>
28205         * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
28206           in the background of the owning form. Fixes #77332
28208 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
28210         * MimeIcon.cs: Fix for #77409
28212 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
28214         * XplatUIX11GTK.cs: Initial import
28216 2006-01-31  Jordi Mas i Hernandez <jordimash@gmail.com>
28218         * FixedSizeTextBox: fixes class signature
28220 2006-01-30  Jackson Harper  <jackson@ximian.com>
28222         * FixedSizeTextBox.cs: New internal class that represents a
28223         textBox that will not be scaled.
28224         * TreeView.cs:
28225         * ComboBox.cs:
28226         * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
28227         standard TextBox.
28228                 
28229 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com> 
28231         * XplatUIX11.cs: Retrieve default screen number instead of
28232           assuming 0. Attempted fix for #77318
28234 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com>
28236         * XplatUIWin32.cs: 
28237           - GetWindowPos: When a window is parented by FosterParent, use 
28238             the desktop instead of FosterParent as the base to get coordinates
28239           - CreateWindow: Don't make FosterParent the parent window for Popups
28240             if we don't want a taskbar entry, Popups automatically don't get one
28241         * Hwnd.cs: Need to call remove to actually remove the key from the
28242           hash table
28244 2006-01-30  Mike Kestner  <mkestner@novell.com>
28246         * MenuAPI.cs: adjust MainMenu item popup location to y=0.
28248 2006-01-30  Jackson Harper  <jackson@ximian.com>
28250         * TreeView.cs:
28251         * TreeNode.cs: Raise events no matter how the treenode is
28252         checked. Patch by Don Edvalson.
28254 2006-01-30  Jackson Harper  <jackson@ximian.com>
28256         * TreeNode.cs: Signature fix.
28258 2006-01-29  Alexander Olk  <alex.olk@googlemail.com>
28260         * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
28262 2006-01-20  Mike Kestner  <mkestner@novell.com>
28264         * Form.cs: Add ActiveTracker property to do Captures and perform mouse
28265         event forwarding when menus are active.
28266         * MenuAPI.cs: kill the GrabControl hack.  Use Form.ActiveTracker.
28267         Most of the patch is pdb's with a little rework.
28269 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
28271         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs: 
28272           Removed GetMenuDC and ReleaseMenuDC methods; replaced
28273           by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
28274         * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
28275         * InternalWindowManager.cs: Added use of PaintEventStart/End to
28276           handling of WM_NCPAINT message, now passing the PaintEventArgs to
28277           the PaintWindowDecorations method
28278         * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
28279         * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
28280         * MenuAPI.cs: Made tracker window invisible
28281         * XplatUIWin32.cs:
28282           - Removed GetMenuDC and ReleaseMenuDC methods
28283           - Implemented the client=false path for PaintEventStart and
28284             PaintEventEnd
28286 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
28288         * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
28289         * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
28290           styles
28291         * Form.cs: 
28292           - MaximizeBox, MinimizeBox: Recreate the handle when setting
28293             the style
28294           - CreateParams: Reworked the styles to match MS look'n'feel,
28295             removed automatic setting of MinimizeBox, MaximizeBox, etc. via
28296             the WS_OVERLAPPEDWINDOW style. This fixes #76823.
28298 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
28300         * XplatUIX11.cs(GetWindowState): Now throwing an exception when the 
28301           window is not mapped, since otherwise every form that's being 
28302           created is considered minimized, which is wrong.
28303         * Form.cs: Catching the exception and returning our internal value
28304           instead
28306 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
28308         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
28309           SetWindowMinMax() to have means to tell the driver about the minimum,
28310           maximum and maximized state window sizes. (Part of the fix for #76485)
28311         * Form.cs:
28312           - Implemented tracking of minimum and maximum window size, now calling
28313             new SetWindowMinMax() driver method to tell the driver (Part of the
28314             fix for #76485)
28315           - Finished handling of WM_GETMINMAXINFO method, now setting all values
28316             (Completes fix for #76485)
28317           - Calling new SetWindowMinMax driver method when the handle for a 
28318             form is created, to make sure the driver knows about it even if
28319             the values have been set before the window was created
28320           - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
28321             to avoid messing up our anchoring calculations (partial fix
28322             for #77355)
28323         * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
28324         * XplatUIX11.cs:
28325           - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
28326           - Improved GetWindowState() to detect 'Minimized' state on Metacity 
28327             (and presumably other freedesktop.org compliant WMs). Left the
28328             assumption unmapped=minimized, needed for SetVisible to work.
28329           - Now setting the window state when creating windows
28330           - Fixed SetVisible to consider/set the window state when mapping
28331             a Form. We cannot set the state before it's mapped, and we cannot
28332             use Form.WindowState once it's mapped (since it would ask the
28333             driver and get 'normal'. Therefore, we grab the state before
28334             mapping, map, and then set state.
28335           - Implmemented SetWindowMinMax method; Metacity does not seem to
28336             honor the ZoomHints, though.
28337         * XplatUIWin32.cs:
28338           - Removed MINMAXINFO (moved to XplatUIStructs)
28339           - Added SetWindowMinMax stub (on Win32 the only way to set that
28340             information is in response to the WM_GETMINMAXINFO message, which
28341             is handled in Form.cs)
28342           - Added logic to SetVisible to set the proper window state when a 
28343             form is made visible (fixes #75720)
28345 2006-01-26  Jackson Harper  <jackson@ximian.com>
28347         * Control.cs (BeginInvoke): Automagically handle EventHandlers the
28348         same way we handle them with Invoke.
28350 2006-01-25  Peter Dennis Bartok  <pbartok@novell.com> 
28352         * Form.cs:
28353           - Added tracking of window state so CreateParams can return
28354             the appropriate style
28355           - Moved setting of WS_CAPTION style in CreateParams to allow
28356             styles without caption
28357         * DataGridTextBoxColumn.cs: We are now also creating the TextBox 
28358           control if the TextBox property is accessed. Fixes #77345
28359         * Control.cs:
28360           - get_Created: now uses is_disposed and is_created to determine
28361             return value (suggested by Jackson)
28362           - CreateHandle: No longer exits if the handle is being recreated
28363           - RecreateHandle: If the handle is not yet created call the 
28364             appropriate method to create either control or handle. If the
28365             control is already created CreateHandle will simply exit instead
28366             of just creating the handle
28367         * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
28368           now SendMessage WM_DESTROY directly to the control when DestroyWindow
28369           is called.
28370         * XplatUIX11.cs: 
28371           - When DestroyWindow is called, instead of waiting for the 
28372             DestroyNotification from X11, we directly post it to the WndProc
28373             and immediately dispose the hwnd object.
28374             Same applies to DestroyChildWindows, and this obsoletes the
28375             expose_pending tracking. Contrary to Win32 behaviour we destroy our
28376             child windows before our own, to avoid X11 errors.
28377           - Removed the direct sending of WM_PAINT on UpdateWindow
28378         * XplatUIWin32.cs:
28379           - Reworked DoEvents and GetMessage to allow access to internal queue
28380             even when trying non-blocking access to the queue.  Fixes #77335. 
28381             Based on a patch suggestion by Don Edvalson. The new private
28382             GetMessage can now also be used as a backend for a PeekMessage
28383             frontend version.
28384         * XplatUI.cs: Improved debug output for CreateWindow
28386 2006-01-25  Jackson Harper  <jackson@ximian.com>
28388         * Help.cs: Allow param to be null. Patch by Don Edvalson.
28390 2006-01-24  Jackson Harper  <jackson@ximian.com>
28392         * ComboBox.cs: Clamp the max value set for the vertical scrollbar
28393         when we have a MaxDropItems lower then the selected index.
28395 2006-01-24  Jackson Harper  <jackson@ximian.com>
28397         * Control.cs: Don't allow selection of non visible controls, allow
28398         selection of controls without parents.
28400 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
28402         * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
28403         * DataGridDrawingLogic.cs: Add editing row only when is necessary
28405 2006-01-23  Jackson Harper  <jackson@ximian.com>
28407         * UpDownBase.cs: Make the textbox handle all the selection and
28408         tabbing. This fixes tabing to updown controls.
28410 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
28412         * TextBoxBase.cs: fixes exception thown the object was null
28414 2006-01-23  Jackson Harper  <jackson@ximian.com>
28416         * ButtonBase.cs: Just use the base CreateParams. They set
28417         visibility and enabled correctly.
28418         * ComboBox.cs:
28419         * TrackBar.cs:
28420         * MonthCalendar.cs: Lets let the base set as much of the
28421         createparams as possible so we don't have duplicate code all over
28422         the place.
28424 2006-01-22  Alexander Olk  <alex.olk@googlemail.com>
28426         * ThemeGtk.cs: Added TrackBar and some experimental code to
28427           get double buffering back
28429 2006-01-21  Jordi Mas i Hernandez <jordimash@gmail.com>
28431         * DataGrid.cs: Allows row number set internally higher than the last
28432         when creating a new row. Restores the editing functionality.
28434 2006-01-20  Mike Kestner  <mkestner@novell.com>
28436         * MimeIcon.cs: delay Image creation until the icons are accessed
28437         instead of creating 190 scaled images on GnomeHandler startup.
28439 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com> 
28441         * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
28442           first call base before processing the event. Fixes #77279
28444 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com>
28446         * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
28447           that the stride for the GDI bitmap would match the stride of
28448           a DIB or a Cursor.
28450 2006-01-19  Alexander Olk  <alex.olk@googlemail.com>
28452         * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
28454 2006-01-19  Jackson Harper  <jackson@ximian.com>
28456         * ComboBox.cs: Hookup the text controls keydown event so we get
28457         those when the text control has the focus.
28459 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
28461         * Label.cs: Now using the base events instead of defining new ones;
28462           this allows us to just call the base properties without having to
28463           duplicate all base property logic 
28465 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
28467         * Label.cs: A label by default is not a tabstop (Fixes one of our
28468           failing nunit tests)
28470 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
28472         * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
28473         * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
28475 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
28477         * Cursor.cs: Reimplemented creating cursor bitmaps without using
28478           the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
28479           This fixes #77218
28480         * XplatUIWin32.cs: 
28481           - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream) 
28482             constructor creates images that can't be saved. Part of the fix
28483             for #76103
28484           - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
28485           - SetWindowState: Switched ShowWindow flags (part of an upcoming 
28486             bug fix for handling window state in forms properly)
28488 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
28490         * ThemeGtk.cs: Simplify ScrollBar drawing
28492 2006-01-18  Jackson Harper  <jackson@ximian.com>
28494         * Splitter.cs: Set the default dock style for the splitter control
28495         in the constructor.
28497 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
28499         * ThemeGtk.cs: Corrected StateType and ShadowType for
28500           gtk_paint_box
28502 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
28504         * Control.cs: Make use of Theme.DoubleBufferingSupported
28505         * ThemeGtk.cs:
28506           - Added drawing for flat style buttons
28507           - Added ScrollBar drawing
28509 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
28511         * ThemeClearlooks.cs: Removed some unneeded code.
28512         * ThemeGtk.cs: First part of ThemeGtk enhancements.
28514 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
28516         * LinkLabel.cs: We need to update the hover drawing when
28517           leaving the control as well.
28519 2006-01-18  Jordi Mas i Hernandez <jordimash@gmail.com>
28521         * DataGrid.cs: Clicking on non empty areas in the columns
28522            area was giving an exception
28524 2006-01-17  Jackson Harper  <jackson@ximian.com>
28526         * ThemeWin32Classic.cs:
28527         * ListView.cs: Do not draw/clip the headers when the header style
28528         is None.
28530 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
28532         * DataGrid.cs: Fixes 77260
28533         
28534 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
28536         * DataGrid.cs: Clicking on a column on a empty grid was giving
28537           an exception
28539 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
28541         * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
28542           or any keypress will crash the grid.
28544 2006-01-17  Mike Kestner  <mkestner@novell.com>
28546         * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
28547         * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for 
28548         invisible/previously-visible items.
28549         [Fixes #76909]
28551 2006-01-17  Alexander Olk  <alex.olk@googlemail.com>
28553         * ThemeClearlooks.cs:
28554         - Added CL_Draw_Button method; now other theme controls that are 
28555           not derived from button or do not have a button can draw buttons
28556           too
28557         - Updated ComboBox drawing
28558         - Beautified RadioButton drawing
28559         - Corrected drawing of bottom and left tabs
28560         - Beautified DateTimePicker and MonthCalendar
28561         - Added CPDrawButton and CPDrawRadioButton
28563 2006-01-16  Jackson Harper  <jackson@ximian.com>
28565         * ComboBox.cs: Set the initial value of the scrollbar to the
28566         current index. Reduce the numbers of refreshs and IndexOfs called.
28568 2006-01-14  Alexander Olk  <alex.olk@googlemail.com>
28570         * FileDialog.cs: When the file listview is focused hitting the
28571           backspace key moves the fileview to the parent directory
28573 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
28575         * Form.cs: 
28576           - Added RecreateHandle call when changing taskbar visibility to 
28577             trigger reparenting in Win32 driver (Fixes #75719)
28578           - If a window has minimize or maximize buttons, it cannot have
28579             a help button
28580         * XplatUIWin32.cs:
28581           - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
28582             the toplevel form with FosterParent (A toolwindow not on the
28583             taskbar) (Fixes #75719)
28584           - Made FosterParent a toolwindow
28586 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
28588         * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
28590 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
28592         * ToolTip.cs: If SetToolTip is called from a control and the mouse
28593           is currently over that control, make sure that tooltip_window.Text
28594           gets updated
28596 2006-01-13  Mike Kestner  <mkestner@novell.com>
28598         * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
28600 2006-01-13  Jackson Harper  <jackson@ximian.com>
28602         * TreeView.cs: On MS GetNodeAt never actually factors in the X
28603         value passed.  Also redraw the selected node when we recieve
28604         focus, so tabbing between trees works correctly.
28606 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
28608         * MimeIcon.cs: GnomeHandler: older gnome versions don't have
28609           ~/.gconf/%gconf-tree.xml, so use
28610           .gconf/desktop/gnome/interface/%gconf.xml
28612 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
28614         * TextControl.cs: Draw text in gray if control is disabled
28616 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
28618         * TreeView.cs: Draw the focus rectangle outside the highlight, to
28619           make sure it's always visible. Fixes #76680.
28621 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
28623         * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
28625 2006-01-13  Jonathan Chambers  <jonathan.chambers@ansys.com>
28627         * PageSetupDialog.cs: Added.
28628         * PrintDialog.cs: Attributes.
28629         * PrintPreviewControl.cs: Updates.
28630         * PrintPreviewDialog.cs: Updates.
28631         
28632 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
28634         * Control.cs: Undid my selection check fix, since it's not needed
28635         * TextBoxBase.cs:
28636           - Now considering the presence of hscroll/vscroll when sizing
28637             vscroll/hscroll respectively. Fixed bug #77077
28638           - Added Left/Up/Down/Right to IsInputKey list to prevent
28639             ContainerControl from stealing them. This fixes what I broke
28640             with my last checkin.
28642 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com> 
28644         * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
28645           I finally understand how the property can be set without a setter :-)
28647 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
28649         * Application.cs:
28650           - Switched RunLoop to use static Message.Create to create a 
28651             Message object
28652           - Added PreProcessMessage call in runloop for keyboard events; this
28653             is part of the fix for #77219, I overlooked this originally in the
28654             MSDN doc for PreProcessMessage
28655         * Control.cs:
28656           - Removed call to PreProcessMessage from handling of keyboard 
28657             messages; it's supposed to be done in the message pump
28658           - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
28659             per MSDN documentation.
28660           - IsInputChar: All chars are input chars by default; removed the 
28661             parent calling chain, MS does not document that
28662           - PreProcessMessage: If IsInputChar is true, we want to return false
28663             to allow dispatching of the message
28664           - When selecting the next control, now also check that we're not
28665             selecting ourselves again and therefore return a false positive.
28666         * TextBoxBase.cs:
28667           - Tried to match return values for IsInputKey and ProcessDialogKey
28668             to what MS returns; moved processing of our special keys outside
28669             ProcessDialogKey since MS does not seem to return true on those.
28670           - Moved code that previously was in ProcessDialogKey into new private
28671             ProcessKey method, which gets called upon receipt of WM_KEYDOWN
28672           - Reworked handling of WM_CHAR to not have to duplicate code from
28673             Control.cs anymore, instead we simply call down to base.
28674            
28675 2006-01-12  Jackson Harper  <jackson@ximian.com>
28677         * ComboBox.cs: We always need to refresh the text area when
28678         EndUpdate is called. Fixes the combobox in the file dialog.
28679         * Control.cs: Don't create the creator_thread until the controls
28680         handle is created.  Also in InvokeRequired we check if the
28681         creator_thread is null. This gives the effect of InvokeRequired
28682         returning true if the controls handle is not created yet, and
28683         matches MS.
28685 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
28687         * XplatUI.cs:
28688           - Added StartLoop() driver method. This is used to allow drivers to
28689             prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
28690             loop for a particular thread
28691           - Added EndLoop() driver method. This is called once the message
28692             pump for the thread is shut down
28693           - Added SupportsTransparency method to allow the driver to indicate
28694             opacity support for windows
28695         * Form.cs:
28696           - Removed TODO attribute, completed AllowTransparency property
28697           - Added documented logic to Opacity
28698         * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
28699           ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
28700           versions of CompatibleTextRendering
28701         * X11Structs.cs: Added opacity atom to our atom enumeration
28702         * Hwnd.cs: Added opacity tracking (we need to track since the opacity
28703           of a form might be set before it's reparented by the WM, and we need
28704           the opacity value without calling up to Form)
28705         * XplatUIDriver.cs: Added StartLoop(), EndLoop() and 
28706           SupportsTransparency() driver methods
28707         * Application.cs: Now calling StartLoop and EndLoop driver methods
28708         * XplatUIX11.cs:
28709           - Added opacity atom registration
28710           - Added StartLoop()/EndLoop() methods. They're empty right now but
28711             will need to get implemented when we switch to a per-thread queue
28712           - Implemented SupportsTransparency() method
28713           - Implemented SetWindowTransparency() method
28714           - Added support for setting the opacity value when a window is
28715             reparented (since the opacity needs to be set on the WM frame)
28716         * XplatUIOSX.cs, XplatUIWin32.cs:
28717           - Added SupportsTransparency(), StartLoop() and EndLoop() methods
28719 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
28721         * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
28723 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
28725         * FileDialog.cs: Added ToolTip for MWFFileView
28726         * MimeIcon.cs: Rewrote GnomeHandler.
28727           - Get currently used gnome icon theme from
28728             ($HOME)/.gconf/%gconf-tree.xml
28729           - Make use of inherited icon themes
28730           - Support SVG icon themes like Tango via librsvg
28732 2006-01-12  Miguel de Icaza  <miguel@novell.com>
28734         Revert's Jackson's revert which broke 2.0 builds.   Fix both
28735         builds. 
28736         
28737         * Application.cs: Move the use_compatible_text_rendering outside
28738         the NET_2_0 define.  If we ever need to use the
28739         use_compatible_text_rendering on the individual controls they will
28740         access the variable from the common shared code paths.
28742 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
28744         * XplatUI.cs:
28745           - Added more granular debug options
28746           - Added method to print both window text and id
28747           - Switched debug output to use new Window() debug method
28748           - Added IsEnabled() driver method
28749           - Added EnableWindow() driver method
28750         * Form.cs:
28751           - Removed end_modal; no longer needed, new loop handles termination
28752             via 'closing' variable
28753           - If form is modal, setting DialogResult will now initiate loop
28754             termination via 'closing' variable
28755           - Added support for is_enabled/WS_DISABLED to CreateParams
28756           - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
28757             does all the work
28758           - Removed code that's now in RunLoop from ShowDialog()
28759           - Added various documented sanity checks to ShowDialog()
28760           - Added handling of WM_DESTROY message; we set 'closing' on getting
28761             the message to indicate the message pump to terminate
28762           - Added handling of new internal WM_CLOSE_INTERNAL message - it's
28763             send by the Application.ExitThread method. (We send the message
28764             to destroy the window after all other events have been
28765             processed through the queue, instead of destroying the handle 
28766             directly)
28767           - Moved code from Close() method to WM_CLOSE handler; added logic
28768             to only send close-related events if the form is not displayed
28769             modal
28770         * Splitter.cs (..ctor): Fixed typo in resource name
28771         * Control.cs:
28772           - DrawBackgroundImage: Explicitly selecting the wrap mode for the
28773             brush now
28774           - set_Cursor: Now only setting calling into XplatUI if the handle for
28775             the control is already created; this avoids implict handle creation
28776             or crashes if it's not created
28777           - set_Enabled: Now setting the enabled state via the new driver method
28778             instead of just tracking it
28779           - CreateParams: Added logic to set WS_DISABLED based on enabled state
28780           - CreateControl: Reordered event firing and method calls to more
28781             closely fire events in the order MS does. Now setting the
28782             enabled state in the driver when creating the control.
28783           - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
28784             match MS order
28785         * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
28786           MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED 
28787         * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
28788         * Hwnd.cs:
28789           - Added tracking of window enabled state (get_Enabled/set_Enabled)
28790           - Added EnabledHwnd property to easily allow a driver to find the
28791             handle of the first enabled window in the parent chain (this is
28792             used by drivers to pass up input events of disabled windows)
28793         * XplatUIDriver.cs: Added IsEnabled() method
28794         * Application.cs:
28795           - Removed crude and obsolete exiting tracking variable
28796           - Removed internal ModalRun(); replaced by RunLoop()
28797           - Implemented private CloseForms() method to allow closing all 
28798             windows owned by a particular (or all) threads
28799           - Exit() now properly closes all windows without forcing the message
28800             pump to quit
28801           - Removed obsolete InternalExit() method
28802           - Changed Run() methods to use new RunLoop() message pump
28803           - Implemented new RunLoop() method for both modal and non-modal forms
28804         * CommonDialog.cs:
28805           - get_CreateParams: Added setting of WS_DISABLED
28806           - Simplified ShowDialog(); now all the work is done in RunLoop(),
28807             invoked via Form.ShowDialog()
28808         * NativeWindow.cs: We don't remove the window from the collection when
28809           the handle is destroyed; there might still be messages for it in the
28810           queue (mainly the resulting WM_DESTROY); instead it will be removed
28811           when Control calls InvalidateHandle in the WM_DESTROY handler
28812         * XplatUIX11.cs:
28813           - CreateWindow: Added logic to handle the WS_DISABLED window style
28814           - EnableWindow: Implemented based on Hwnd.Enabled
28815           - GetMessage: Reset PostQuitState so the method can be called again
28816           - Implemented support for disabled windows (passing messages to the
28817             first enabled parent) in handling all input messages
28818           - Added optimizations for handling Expose events
28819           - Implemeted new driver method IsEnabled()
28820           - Now always resetting paint pending tracking vars when we start paint
28821           - Re-implemented UpdateWindow via just sending a WM_PAINT message
28822         * XplatUIOSX.cs: Added IsEnabled method stub
28823         * XplatUIWin32.cs: Implemented new IsEnabled() method
28825 2006-01-11  Jackson Harper  <jackson@ximian.com>
28827         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
28828         LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
28829         variables a little.
28830         * ColorDialog.cs: Clear out the old form before adding the new
28831         panel.  
28833 2006-01-11  Jackson Harper  <jackson@ximian.com>
28835         * X11Dnd.cs: Make sure to add all the text formats when adding
28836         strings to the data object.
28837         * TreeNodeCollection.cs: When adding to a sorted tree we need to
28838         do some redrawing too.  Also change the UpdateNode to an
28839         UpdateBelow so the newly added node gets painted.
28840         
28841 2006-01-11  Miguel de Icaza  <miguel@novell.com>
28843         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
28844         LinkLabel.cs, PropertyGrid.cs: Implement the
28845         UseCompatibleTextRendering property for 2.x
28847         * Application.cs (SetCompatibleTextRenderingDefault): Add. 
28849 2006-01-11  Jackson Harper  <jackson@ximian.com>
28851         * TreeView.cs: Use the property for setting the selected node so
28852         the correct events get raised.
28853         * TreeNode.cs: Update the tree when the fore/back colours of a
28854         node are set.
28856 2006-01-10  Jackson Harper  <jackson@ximian.com>
28858         * TreeView.cs: Allow setting SelectedNode to null.
28860 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
28862         * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
28864 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
28866         * PrintControllerWithStatusDialog.cs: Update page number in dialog.
28868 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
28870         * PrintDialog.cs: Added attributes and set default property values.
28872 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
28874         * PrintControllerWithStatusDialog.cs: 
28875         Added PrintControllerWithStatusDialog.
28877 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
28879         * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
28880         XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
28882 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
28884         * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
28886 2006-01-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
28888         * ComboBox.cs: Added KeyDown event handler for processing arrow keys
28889         and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
28891 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
28893         * MimeIcon.cs: Added internal class SVGUtil.
28895 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
28897         * FileDialog.cs: Don't crash if there are two files with the
28898           same name but different locations.
28900 2006-01-08  John BouAntoun  <jba-mono@optusnet.com.au>
28902         * MonthCalendar.cs: Fixed annoying rendering bug when selecting
28903         dates across multiple month grids. Used to not highlight entire 
28904         month, but does now.
28905         
28906 2006-01-06  Jackson Harper  <jackson@ximian.com>
28908         * MonthCalendar.cs: Removed DoEvents call to prevent a running
28909         message loop. Change timer intervals to numbers that seem more
28910         natural.
28912 2006-01-06  John BouAntoun  <jba-mono@optusnet.com.au>
28914         * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
28915           object for location info since screen object is now implemented.
28917 2006-01-05  Jackson Harper  <jackson@ximian.com>
28919         * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
28920         * AsyncMethodResult.cs: We no longer use a WeakReference for the
28921         AsyncMethodResult, this is because we ALWAYS want the
28922         ManualResetEvent to get set.
28923         * Control.cs: When disposing use an async invoke to call shutdown
28924         code, so that thigns don't block on the finalizer thread.  Also
28925         check if we even have a message loop before trying to send
28926         messages, if we don't then don't bother sending messages.
28927         - No more weak references for async methods
28928         * XplatUIDriver.cs: No more weak references for async methods.
28930 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
28932         * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
28933           returns two FontFamily with the same name
28935 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
28937         * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of 
28938           drawing disabled text. Instead using the ColorGrayText color
28940 2006-01-04  Jackson Harper  <jackson@ximian.com>
28942         * TreeNode.cs: redraw the node when its image index is changed.
28944 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
28946         * RichTextBox.cs: Same fix as last, just for SelectionColor. This
28947           time I checked there are no others like it.
28949 2006-01-04  Jackson Harper  <jackson@ximian.com>
28951         * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
28952         this gives the behavoir I was looking for.
28953         * Control.cs: Special case Invoking EventHandlers, this matches MS
28954         and fixes part of bug #76326.
28956 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
28958         * ThemeClearlooks.cs, FileDialog.cs:
28959           - Reflect the latest Theme class changes
28960           - Remove Mono.Unix.Syscall.time in FileDialg and replace it 
28961             with DateTime
28962             
28963 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
28965         * Theme.cs: Cache UI resource images and resize them if needed
28967 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
28969         * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
28970           is called. This fixes the crash in Nexxia when setting the font
28971           attributes in the chat. [However, RTF needs a look-over to make sure
28972           that all SelectionXXX methods handle the special case that selection
28973           is empty and therefore the change must be applied to all text starting
28974           at the cursor/selection start]
28976 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com> 
28978         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
28979           XplatUIOSX.cs: Added SendMessage and PostMessage methods
28980         * X11Keyboard.cs: Switched to new way of calling PostMessage
28982 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
28984         * Theme.cs: Added theme interface for images to allow the theme to
28985           control what images are used for things like FileDialog, MessageBox
28986           icons, etc.
28987         * MessageBox.cs: Now uses the new Theme icon/image interfaces
28989 2006-01-03  Alexander Olk  <alex.olk@googlemail.com>
28991         * FileDialog.cs:
28992           - Removed some dead code
28993           - Opening a recently used file does work now
28994           - Small UI enhancements
28995           - Refactoring
28997 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
28999         * FileDialog.cs: Forgot too add __MonoCS__
29001 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
29003         * FileDialog.cs: We are able to read recently used files now let's
29004           go on and write them.
29006 2006-01-01  Alexander Olk  <alex.olk@googlemail.com>
29008         * FileDialog.cs: Breathe some life into "last open"/"recently used"
29009           button
29010         * MimeIcon.cs: Do a check for the top level media type also
29012 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
29014         * ThemeClearlooks.cs:
29015           - Added CPDrawStringDisabled
29016           - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
29017             some chars if the text doesn't fit into text_rect
29018           - DrawListViewItem: If View = View.LargeIcon center the image;
29019             rewrote the drawing of ListViewItem.Text if View = 
29020             View.LargeIcon
29022 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
29024         * MimeIcon.cs: Use default KDE icon theme if there is no
29025           "48x48" directory for the current icon theme, fixes #77114
29026         * Mime.cs: Disable not working and actually not used code. 
29027         * ThemeWin32Classic.cs:
29028           - Replace "new SolidBrush" in GetControlBackBrush and
29029             GetControlForeBrush with ResPool.GetSolidBrush
29030           - Changed DrawListViewItem from private to protected virtual
29031         * FileDialog.cs:
29032           - Added form.MaximizeBox = true
29033           - Don't throw an exception if there is a broken symbolic link
29035 2005-12-23  Jackson Harper  <jackson@ximian.com>
29037         * TabControl.cs: Give the panels focus, keyboard navigation is
29038         fixed so this works correctly now.
29039         - We need these key events also.
29040         * ToolBar.cs: Remove some of the poor mans double buffering.
29041         
29042 2005-12-24  Alexander Olk  <alex.olk@googlemail.com>
29044         * ComboBox.cs: The internal TextBox now returns the focus.
29046 2005-12-23  Jackson Harper  <jackson@ximian.com>
29048         * ThemeWin32Classic.cs:  Draw the text for all tab appearances.
29050 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
29052         * Control.cs: Removed debug code
29053         * XplatUIX11.cs: Changed DestroyChildWindows to also consider
29054           implicit children
29056 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com> 
29058         * Control.cs: When creating the control, update the Z-order after
29059           all it's children are created, too. (Fixes nexxia not showing
29060           picturebox bug)
29062 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
29064         * Control.cs: Do not update the anchoring distances if layout is
29065           suspended, instead do it once layout is resumed
29067 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com> 
29069         * Control.cs: 
29070           - After many hours of debugging, for both Jackson and
29071             myself, it turns out that it helps to set the parent of a control
29072             if you want to actually see it onscreen. In the spirit of that
29073             discovery, we're now setting the parent of the control and
29074             it's children when the control's handle is created. This fix
29075             will make Lutz Roeder's Reflector run happily. 
29076           - now just creating the handle instead of the whole control when
29077             getting a graphics context for the control.
29079 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
29081         * ScrollableControl.cs: When calculating the canvas, don't consider
29082           the scrollbar widths. Instead, predict if horizontal scrollbar
29083           will affect canvas when deciding on vertical display and vice versa.
29085 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
29087         * RichTextBox.cs: Set default RTF font for documents that don't
29088           have a font table (Fixes #77076)
29090 2005-12-22  Jackson Harper  <jackson@ximian.com>
29092         * TextBoxBase.cs: It's difficult to do, but you can have an empty
29093         clipboard. This prevents a NullRef in that case.
29094         * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
29095         clipboard. PRIMARY is for the currently selected text only. (We
29096         should implement PRIMARY at some point.
29098 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
29100         * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
29101           a Unicode function with a structure that was defined in Ansi way.
29102           This fixes #76942.
29104 2005-12-21  Jackson Harper  <jackson@ximian.com>
29106         * StatusBar.cs: Statusbar handles its fore/back colours on it's
29107         on. Because thats how it rolls. (and this avoids it using ambient
29108         colours).
29109         * ThemeWin32Classic.cs: Use the proper back color for filling.
29110         * Menu.cs: Use the system menu bar color for drawing menu
29111         bars. Using the window back color will bring ambient colours into
29112         the picture.
29114 2005-12-21  Alexander Olk  <alex.olk@googlemail.com>
29116         * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
29117           Bitmaps were created and not disposed.
29119 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
29121         * Control.cs (CreateControl): Don't do anything if the control is
29122           already created, otherwise we'd fire the OnCreated event more than
29123           once
29125 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
29127         * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
29128           will always match. Instead return -1. Fixes #76464.
29130 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
29132         * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
29133           neither the beginning nor the end of the line (Fixes bug #76479)
29135 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
29137         * Control.cs:
29138           - ControlNativeWindow.ControlFromHandle(): Now handling situation
29139             where handle is invalid
29140           - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
29141             instead of slower linear search
29142         * NativeWindow.cs: Don't remove the window from the hashtable until
29143           after the driver has destroyed it (since the driver might use
29144           Control.FromHandle to lookup the control object
29145         * Hwnd.cs: Added DestroyPending property to track if a window is 
29146           already destroyed as far as the driver is concerned and only hasn't
29147           yet notified the control
29148         * XplatUIX11.cs:
29149           - Activate(): Check if the window is still valid before using the 
29150             handle
29151           - Implemented DestroyChildWindow() method to mark child windows as
29152             destroyed when a window is destroyed. This prevents situations 
29153             where we might call an X method based on queued events for a
29154             window that already has been destroyed but we haven't yet pulled
29155             the destroy method from the queue.
29156           - Added a call to the new DestroyChildWindow() method to the drivers
29157             DestroyWindow code. Also now marking the destroyed window itself
29158             as pending
29160 2005-12-20  Jackson Harper  <jackson@ximian.com>
29162         * StatusBar.cs:
29163         * StatusBarPanel.cs: Don't calculate panel sizes on draw
29164         anymore. Just do them when needed, also track the rects of panels
29165         so that we can optimize refreshing more in the future.
29167 2005-12-20  Alexander Olk  <alex.olk@googlemail.com>
29169         * ColorDialog.cs: Fixed focus drawing in small color controls
29171 2005-12-19  Jackson Harper  <jackson@ximian.com>
29173         * InternalWindowManager.cs:
29174         * MdiWindowManager.cs: Cleanup some coordinate system changes so
29175         moving windows works properly.
29177 2005-12-19  Peter Dennis Bartok  <pbartok@novell.com> 
29179         * Control.cs: 
29180           - Removed call to InitLayout() from SetBoundsCore(); doc says
29181             it's only called when a control is added to a container
29182           - Split InitLayout logic, moved to separate UpdateDistances() method
29183             since we need to perform those calculations more often than just
29184             when adding the control to a container. (Needed to fix #77022)
29185           - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
29186           - Reduced the OnBindingContextChanged events count, don't send them
29187             unless the control is created, we still aren't totally matching
29188             MS, but I can't quite figure out some of their rules
29190 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
29192         * ThemeClearlooks.cs: Corrected distance between ProgressBar
29193           stripes
29195 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
29197         * ThemeClearlooks.cs:
29198           - Updated ProgressBar drawing
29199           - Corrected drawing of ScrollBars and scroll buttons
29200           - Some temporary fixes for minor pixel artefacts
29202 2005-12-18  Peter Dennis Bartok  <pbartok@novell.com> 
29204         * Control.cs:
29205           - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
29206             cause events to be sent in the same order as MS does.
29207           - Added ChangeParent() method to trigger various OnXXXChanged events
29208             that need to be fired when a parent changes (This is a reworking
29209             of the patch from r54254, with the X11 errors fixed)
29210           - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
29211             since on MS we get OnLayoutChanged events when calling Clear()
29212           - Changed Enabled property to consider parent state as well, if a
29213             parent is not enabled, the control will not be either
29214           - Changed Parent property to simply call Controls.Add() since that
29215             now does all the work required, this way we avoid code duplication
29216           - Threw in a few OnBindingsContextChanged calls to try and match
29217             when MS sends them. We seem to send a few too many, though.
29218           - Added call to CreateControl when adding the control to a parent.
29219             We were never calling CreateControl. Still needs some work, in
29220             some places we treat HandleCreated and ControlCreated as equal, 
29221             which is wrong
29222           - Removed obsolete commented out code from UpdateZOrder()
29224 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
29226         * ThemeClearlooks.cs: Updated TrackBar drawing.
29228 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
29230         * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
29232 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
29234         * FileDialog.cs: Add the Help button and the open readonly
29235           checkbox only if needed
29237 2005-12-16  Jackson Harper  <jackson@ximian.com>
29239         * Control.cs: Make sure we have an active menu before trying to
29240         process commands on it. Prevents menu-less forms from crashing
29241         when Alt is pressed.
29242         * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
29243         Dieter Bremes.
29244         * RichTextBox.cs: Expand statement to help out gmcs and fix the
29245         2.0 build.
29247 2005-12-16  Jackson Harper  <jackson@ximian.com>
29249         * InternalWindowManager.cs: Don't translate tool windows screen
29250         coordinates. This fixes windows 'bouncing' around when being moved.
29252 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
29254         * TextBoxBase.cs:
29255           - MaxLength now treats 2^31-1 equal to unlimited length (this is
29256             not quite MS compatible, MS uses that number only for single line
29257             and 2^32-1 for multi-line, but I figure it won't hurt keeping
29258             the limit at 2GB)
29259           - Now enforcing the MaxLength limit when entering characters
29260           - Added argument to internal Paste() method to track if it's called
29261             from programatically or via keyboard, since keyboard driven pastes
29262             need to enforce max-length
29263           - Added logic to Paste to only paste as many chars as MaxLength 
29264             allows
29265         * RichTextBox.cs: Updated to use new obey argument for internal Paste()
29266         * TextControl.cs:
29267           - Added Length property to return number of characters in document
29268           - Added private CharCount property which only tracks actual chars
29269             in the document (no linefeeds) and fires event when CharCount
29270             changes
29271           - Added tracking of character count to all methods that alter it
29272           - Added LengthChanged event to allow applications to subscribe
29273             to any changes to the document
29275 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
29277         * TextBox.cs: 
29278           - Removed local password_char field (moved to TextBoxBase)
29279           - Now setting the document's password var when password is
29280             set
29281         * TextBoxBase.cs:
29282           - Added password_char field (needed here so MultiLine can
29283             access it)
29284           - Added logic to MultiLine property setter to set the document's
29285             variable when password display is allowed
29286           - Removed debug code and made some debug code conditional
29287         * TextControl.cs:
29288           - Added RecalculatePasswordLine() method to handle special password
29289             char only lines
29290           - Added PasswordChar property, also added related tracking vars
29291           - Draw() method now uses local text var for grabbing text to draw,
29292             this var is set to line.text unless we're doing password display,
29293             then it is set to the pre-generated all-password-chars line
29294           - Added calling RecalculatePasswordLine() method for password lines
29296 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
29298         * Hwnd.cs: 
29299           - Added Reparented property to allow tracking of Window Manager
29300             reparenting actions (which affect X/Y calculations of toplevel 
29301             windows)
29302           - Made ToString() print window handles in hex
29303         * XplatUIX11.cs:
29304           - AddConfigureNotify(): Now uses reparented state off Hwnd to
29305             determine if X/Y needs offsetting
29306           - AddConfigureNotify(): Fixed offset calculations
29307           - Now adds ReparentNotify messages into the queue
29308           - Now processes ReparentNotify messages and causes a 
29309             WM_WINDOWPOSCHANGED message to be sent upstream if a window
29310             is reparented (as most likely it's X/Y coordinates are changed
29311             due to that)
29313 2005-12-14  Jackson Harper  <jackson@ximian.com>
29315         * XplatUIX11.cs: Tool windows still need to respek focus.
29317 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
29319         * Control.cs: Undid 54254 (causing XConfigure errors) so we can
29320           have a working release
29322 2005-12-13  Jackson Harper  <jackson@ximian.com>
29324         * Form.cs: Update styles after setting the border style regardless
29325         of whether or not the window is using a window manager.
29327 2005-12-13  Jackson Harper  <jackson@ximian.com>
29329         * Form.cs: We now hook into an internal window manager instead of just an
29330         MDI subsystem, this is so we can have properly behaving tool windows.
29331         * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
29332         * InternalWindowManager.cs: New internal class that acts as a
29333         window manager for tool windows and as a base for mdi windows.
29334         * MdiWindowManager.cs: New class that acts as a window manager for
29335         mdi windows.
29337 2005-12-12  Jackson Harper  <jackson@ximian.com>
29339         * Control.cs: Updates so we match behavoir for for implicit
29340         controls. Fixes explosions in MDI.
29342 2005-12-12  Jackson Harper  <jackson@ximian.com>
29344         * Control.cs: Implement Invalidate (Region).
29346 2005-12-12  Peter Dennis Bartok  <pbartok@novell.com> 
29348         * Control.cs: 
29349           - Changed handling of Controls.Add/Controls.Remove to fire (almost) 
29350             the same events as MS does. MS fires events for each property 
29351             except, for unknown reasons, Cursor, when the control is reparented. 
29352             I can't seem to totally match add/remove since MS also fires some 
29353             VisibleChanged events, which makes no sense. Consolidated the
29354             parenting code into a separate method so it can be called from
29355             both Add and Remove. set_Parent no longer needs any special logic
29356             as it calls the parent's add method which implicitly fires
29357             all events
29358           - Removed some obsolete code and debug output
29359           - Enabled state is inherited from parents, if this is enabled
29361 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com> 
29363         * Form.cs: Removed commented out code
29365 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com>
29367         * Control.cs:
29368           - Added internal version of Invoke, with additional argument 
29369             indicating if we're calling it from a Dispose() handler. That
29370             way we can avoid BeginInvoke throwing an exception if we're
29371             calling for an already destroyed window.
29372           - Added a dispose argument to BeginInvokeInternal, and made the
29373             check if a valid window handle chain exists conditional on
29374             it not being a dispose call
29375           - Removed code in DestroyHandle to destroy our children. Since we
29376             now handle the WM_DESTROY message we will catch all our children
29377             being destroyed.
29378           - Now calling OnHandleDestroyed from our new WM_DESTROY handler
29379         * Form.cs:
29380           - Added a field to track the application context of the form.
29381           - No need to set closing variable as response to WM_CLOSE, instead
29382             we destroy the window. We also call PostQuitMessage if the form
29383             has an application context (which makes it the main app form,
29384             which, when closed terminates the app)
29385         * XplatUI.cs:
29386           - Dropped Exit() method, it's naming was confusing
29387           - Added PostQuitMessage() which causes GetMessage to return false
29388             once the message queue is empty
29389         * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added 
29390           PostQuitMessage()
29391         * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
29392           no longer a valid XplatUI method, but left it in since it's used
29393           internally. Added empty PostQuitMessage() method.
29394         * MenuAPI.cs: Replaced call to Exit() with call to
29395           PostQuitMessage, even though this is probably no longer needed.
29396         * Hwnd.cs: Added 'pretty' ToString() to support debugging.
29397         * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
29398         * Application.cs:
29399           - Replaced call to XplatUI.Exit() with PostQuitMessage()
29400           - Removed old debug code that would call XplatUI for exception
29401             display, enabled standard exception handling (Still not enabled
29402             though, until NativeWindow's ExternalExceptionHandler define
29403             is removed
29404         * NativeWindow.cs:
29405           - Added internal method to allow control to update NativeWindow
29406             after a window has been destroyed
29407           - Added handling of already destroyed windows when calling i
29408             DestroyWindow
29409           - Added removal of handle from list on ReleaseHandle
29410         * XplatUIX11.cs:
29411           - Dropped GetMessageResult var and related code
29412           - Added PostQuitState to field to track if PostQuitMessage has been
29413             called
29414           - Dropped Exit() method
29415           - Added PostQuitMessage() method
29416           - GetMessage now will return false if PostQuitState is set and no
29417             more messages are in the queue.
29418           - Expose handler will no longer generate WM_PAINT messages if we are
29419             in PostQuitState since it's very likely any windows have already
29420             been destroyed, and since Hwnd won't get updated until we have
29421             processed the DestroyNotify we'd be causing X errors.
29422         
29423 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
29425         * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
29426           Thanks to Mike for pointing out the err of my ways.
29428 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
29430         * Control.cs(PreProcessMessage): Moved menu handling back, but
29431           after all other key handling, to match MS (who handles Menu in
29432           DefWndProc)
29433         * Menu.cs (WndProc): Removed my brainfart
29435 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
29437         * Control.cs(PreProcessMessage): Removed special menu handling 
29438         * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
29440 2005-12-07  Mike Kestner  <mkestner@novell.com>
29442         * Control.cs : special case SYSKEYUP so that we can adjust keynav
29443         state according in tracker.
29444         * Menu.cs : promote tracker field to base class and provide a tracker
29445         lookup capability.  Add/Remove shortcuts dynamically if the top menu
29446         has a tracker. Unparent items that are removed from the collection.
29447         * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
29448         * Theme*.cs: add always_show_hotkeys field to support configurability
29449         of mnemonic display.  win32 doesn't show mnemonics until Alt is
29450         pressed.
29452 2005-12-07  Jackson Harper  <jackson@ximian.com>
29454         * MdiChildContext.cs: Use Control.ResetCursor.
29455         * Control.cs: ResetCursor needs to set the property so that the
29456         correct XplatUI call gets made.
29458 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
29460         * Control.cs: More fixes to make our key events match MS. We
29461           were not setting the modifier state on KeyData, and we were
29462           not generating any events when Alt was pressed with a key
29463           since handling of WM_SYSxxx was missing for the OnKey methods.
29465 2005-12-07  Jackson Harper  <jackson@ximian.com>
29467         * MdiChildContext.cs: reenable the sizing code.
29468         - When the mouse leaves a window reset its cursor.
29470 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
29472         * ThemeClearlooks.cs: Reflect latest Hwnd changes
29474 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
29476         * Hwnd.cs: Now using the theme 3d bordersize to calculate
29477           widths of Fixed3D borders
29479 2005-12-07  Jackson Harper  <jackson@ximian.com>
29481         * MdiClient.cs: Fix warnings. Earn Mike's love.
29483 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
29485         * ThemeClearlooks.cs:
29486           - Adjusted mouse over button color
29487           - Added first parts of CheckBox drawing
29488           - Added correct color for selected text background
29489           - Fixed ComboBox drawing
29490           - Added CPDrawBorder3D and CPDrawBorder
29492 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
29494         * XplatUIX11.cs: Added call to XBell for AudibleAlert
29496 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com> 
29498         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
29499           XplatUIOSX.cs: Added AudibleAlert() method to have a means to
29500           alert users via sound. We could add an enum arg with different
29501           types of alerts in the future
29503 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
29505         * Control.cs: Fix behaviour problems pointed out by Mike
29507 2005-12-05  Mike Kestner  <mkestner@novell.com>
29509         * StatusBarPanel.cs: add Invalidate method and hook it into all the
29510         prop setters.  Calls parent.Refresh for now, but could be maybe be
29511         optimized with an internal method on StatusBar at some point.
29512         [Fixes #76513]
29514 2005-12-05  Peter Dennis Bartok  <pbartok@novell.com> 
29516         * RichTextBox.cs: Implemented get_SelectionColor
29518 2005-12-05  Alexander Olk  <alex.olk@googlemail.com>
29520         * ThemeClearlooks.cs:
29521           - Removed dead code
29522           - Draw black button border only if button is Form.AcceptButton
29523           - Draw correct button color for pressed RadioButton if the mouse 
29524             has entered the button
29525           - Updated ProgressBar drawing!
29526           - Updated CPDrawSizeGrip drawing
29527           - Updated StatusBarPanel drawing
29529 2005-12-05  Mike Kestner  <mkestner@novell.com>
29531         * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
29532         * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
29534 2005-12-04  Alexander Olk  <alex.olk@googlemail.com>
29536         * ThemeClearlooks.cs: Initial check-in, activate with
29537           export MONO_THEME=clearlooks
29538         * ThemeEngine.cs: Added ThemeClearlooks
29540 2005-12-03  Mike Kestner  <mkestner@novell.com>
29542         * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
29543         [Fixes #76897]
29545 2005-12-02  Jackson Harper  <jackson@ximian.com>
29547         * Form.cs: If the child form has no menu the default main menu is
29548         used as the active menu.
29550 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com> 
29552         * ListBox.cs: Check if any items exist before trying to resolve 
29553           coordinates into items
29555 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
29557         * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
29558           as the second color for the background hatch
29560 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
29562         * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
29563         * RichTextBox.cs: FormatText position arguments are 1-based, now making
29564           sure that what we pass to FormatText is always 1-based. Fixes #76885
29566 2005-11-29  Miguel de Icaza  <miguel@novell.com>
29568         * NumericUpDown.cs (EndInit): When we are done initializing,
29569         reflect any updates on the UI.
29571 2005-12-02  Jackson Harper  <jackson@ximian.com>
29573         * ImplicitHScrollBar.cs:
29574         * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
29575         their container controls.
29576         * TreeView.cs: Use the new implicit scrollbars.
29578 2005-12-02  Jackson Harper  <jackson@ximian.com>
29580         * TreeView.cs: Make top_node internal so the TreeNodeCollections
29581         can play with it.
29582         * TreeNodeCollection.cs: If we remove the topnode we need to
29583         update topnode to the next node in line.
29584         - When clearing nodes go through the same process as removing
29585         them, so they get depareneted and checked if they are top node.
29587 2005-12-01  Jackson Harper  <jackson@ximian.com>
29589         * TreeView.cs: When imagelists are used the image area is
29590         selectable as well as the text.
29591         - If there are no selected nodes select the first one.
29592         * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
29593         so don't do it more then we need to.
29595 2005-12-01  Jackson Harper  <jackson@ximian.com>
29597         * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
29598         that arrows can be scaled.
29600 2005-12-01  Jackson Harper  <jackson@ximian.com>
29602         * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
29603         fail. Patch by Dieter Bremes
29605 2005-11-30  Jackson Harper  <jackson@ximian.com>
29607         * Form.cs: Property is 2.0 only
29608         * PrintDialog.cs: Signature fix.
29610 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
29612         * TextControl.cs: 
29613           - No longer artificially moves text 2 pixels down (now that we have
29614             borders this is no longer needed)
29615           - Added calcs for left, hanging and right indent
29617 2005-11-23  Mike Kestner  <mkestner@novell.com>
29619         * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
29621 2005-11-30  Jackson Harper  <jackson@ximian.com>
29623         * MdiChildContext.cs: Set the cloned menus forms, as these don't
29624         get cloned as part of CloneMenu ().
29625         * Menu.cs: Make sure the parent of the items get set correctly
29626         when they are added.  And the owners are notified of the changes.
29627         * Form.cs: Create an ActiveMenu property, so that when MDI is used
29628         we can change the menu being displayed/handled by the form without
29629         changing the menu assosciated with the form.
29630         - Don't let Mdi children draw/handle menus.
29631         
29632 2005-11-30  Jackson Harper  <jackson@ximian.com>
29634         * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
29635         a MenuChanged event. Just to make the API a little more
29636         consistent.
29637         * MainMenu.cs:
29638         * MenuItem.cs: Use the new OnMenuChanged
29639         * MdiChildContext.cs: Handle menu merging.
29640         * Form.cs: Implement MergedMenu.
29641         
29642 2005-11-30  Jackson Harper  <jackson@ximian.com>
29644         * Menu.cs: We were misusing Add. Add goes behind the specified
29645         index according to the docs, and does not replace the specified
29646         index. So I added an Insert method.
29648 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
29650         * TextBoxBase.cs:  Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
29651           Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
29652           is for Jackson
29653         * RichTextBox.cs: Added calls to base for DnD events
29655 2005-11-28  Peter Dennis Bartok  <pbartok@novell.com>
29657         * TextControl.cs:
29658           - Fixed drag-selection related crash; style fixes
29659           - Implemented undo class
29660             o Implemented method to capture document state for specified
29661               range in document tree
29662             o Implemented method to restore captured document state
29663             o Implemented cursor tracking
29664             o Implemented basic undo stack
29665           - Added undo cursor tracking to methods altering cursor location
29666           - Added undo tracking to selection deletion (still missing
29667             other text-altering hookups)
29668         * RichTextBox.cs:
29669           - Added SelectionLength property
29670           - Implemented CanPaste()
29671           - Implemented Paste()
29672           - Added missing protected methods
29673           - Fixed RTF->Document conversion; now uses font index 0 and color 
29674             index 0 as the default font for the parsed text
29675           - Fixed RTF<->Document font size translation
29676           - Fixed RTF generation, now properly handles cross-tag boundaries
29677             for single line selection
29678           - No longer always appends blank line to generated RTF
29679           - Removed TODOs
29680           - Added missing attributes
29681           - Hooked up undo-related methods
29682         * TextBoxBase.cs:
29683           - Implemented Copy()
29684           - Implemented Paste()
29685           - Implemented Cut()
29686           - Fixed caret mis-behaviour on backspace across line-boundaries
29688 2005-11-29  Jackson Harper  <jackson@ximian.com>
29690         * MdiClient.cs: Add a method for activating mdi children. Very
29691         basic right now. I imagine someday it might need more girth.
29692         * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
29693         children windows names are added to the menu item.
29694         * ThemeWin32Classic.cs: Draw the arrow if the item is an
29695         mdilist. This happens regardless of whether or not there are any
29696         mdi windows to see in the list, and according to my tests happens
29697         before the items are even added. Also happens if there isn't even
29698         an mdi client to get windows from.
29700 2005-11-29  Alexander Olk  <alex.olk@googlemail.com>
29702         * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
29703         * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
29705 2005-11-29  Jordi Mas i Hernandez <jordimash@gmail.com>
29707         * DataGridTableStyle.cs:
29708           - Create always the styles for the missing columns even if they are
29709             provided by the user (not default table style)
29710         * DataGrid.cs:
29711           - Fixes bug 76770
29712           - Fixes SetDataBinding (always re-attach source)
29713           - Fixes SetNewDataSource (only clear styles if they are not for 
29714             this source)
29715          -  Expands OnTableStylesCollectionChanged to handle style refresh 
29716             and remove properly
29718 2005-11-29  Jackson Harper  <jackson@ximian.com>
29720         * FileDialog.cs: Implement missing bits, remove some dead
29721         code.
29722         * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
29723         creation of the panel so that the options set on the dialog are
29724         seen when the panel is created.
29725         * TreeView.cs: raise a click when items are clicked.
29726         
29727 2005-11-29  Jackson Harper  <jackson@ximian.com>
29729         * MdiClient.cs: Pass some signature methods through to base.
29731 2005-11-28  Jackson Harper  <jackson@ximian.com>
29733         * ListView.cs: Raise the click event when items are clicked.
29735 2005-11-28  Jackson Harper  <jackson@ximian.com>
29737         * MdiClient.cs: Make this algorithm even more beautiful.  And fix
29738         a nullref.
29740 2005-11-27  Alexander Olk  <alex.olk@googlemail.com>
29742         * ThemeNice.cs: - Removed 1 pixel bitmaps
29743           - Use SmoothingMode.AntiAlias where it makes sense
29744             (ScrollButton arrow for example)
29745           - Enhanced Button focus drawing
29746           - Fixed ComboBox drawing (no artefacts anymore, focus
29747             rectangle is back again, reduced size of ComboButton, etc.)
29748           - Fixed RadioButton focus drawing for Appearence.Button
29749           - Slight ScrollButton redesign
29750           - Some LinearGradientBrush size fixes
29751           - GroupBoxes have now rounded edges
29752           - Fixed StatusBar drawing
29754 2005-11-25  Alexander Olk  <alex.olk@googlemail.com>
29756         * ThemeNice.cs: - Remove dead code
29757           - use correct background colors for menus, etc.
29758           - Fake pixel drawing with 1 pixel bitmaps
29760 2005-11-24  Jackson Harper  <jackson@ximian.com>
29762         * MdiClient.cs: Size the scrollbars when resizing the window.
29763         - Resize the maximized windows when the client is resized
29764         * Form.cs: Make the child context available
29765         
29766 2005-11-23  Jackson Harper  <jackson@ximian.com>
29768         * MdiChildContext.cs: Don't size windows if they are maximized.
29770 2005-11-23  Mike Kestner  <mkestner@novell.com>
29772         * ContextMenu.cs: use MenuTracker.
29773         * Control.cs: remove menu handle usage.
29774         * Form.cs: remove menu handle usage.
29775         * Hwnd.cs: remove menu handle usage.
29776         * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
29777         motion and clicks to the new Tracker handlers.
29778         * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
29779         and handle usage.
29780         * MenuAPI.cs: refactored to combine popup and menubar event handling.
29781         Killed the MENU and MENUITEM data types and associated collections
29782         since we now keep the info on Menu and MenuItem. Expanded TRACKER into
29783         MenuTracker class that exposes the leftovers from the old MenuAPI
29784         static methods. Restructured Capture handling so that only one grab is
29785         done for the entire menu hierarchy instead of handing off grabs to
29786         submenus. Tracker now has an invisible control to Capture when active.
29787         * MenuItem.cs: add sizing accessors, kill Create
29788         and handle usage.
29789         * Theme.cs: remove menu handle and MENU(ITEM) usage.
29790         * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
29791         MENU(ITEM). remove menu handle usage, use Menu directly.
29792         * XplatUIDriver.cs: remove menu handle usage.
29793         * XplatUIOSX.cs: remove menu handle usage.
29794         * XplatUIWin32.cs: remove menu handle usage.
29795         * XplatUIX11.cs: remove menu handle usage.
29797 2005-11-22  Jackson Harper  <jackson@ximian.com>
29799         * Hwnd.cs: Don't compute the menu size for
29800         DefaultClientRectangle.
29801         - Reenable menu sizes being computed for GetClienRectangle.
29802         * Form.cs: Remove comment of trechery
29803         
29804 2005-11-22  Jackson Harper  <jackson@ximian.com>
29806         * Hwnd.cs: The adjustments for the menu bar are made when it is
29807         attached to the form.
29809 2005-11-19  Jackson Harper  <jackson@ximian.com>
29811         * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
29812         (just like on windows).
29814 2005-11-19  Jackson Harper  <jackson@ximian.com>
29816         * MdiChildContext.cs: Handle all the buttons ourselves. We can't
29817         use real buttons anymore because they are in non client area. The
29818         one TODO here is that I need to somehow invalidate a section of
29819         the non client area.
29821 2005-11-18  Jackson Harper  <jackson@ximian.com>
29823         * Control.cs: Put the enum check back in now that MDI doesnt have
29824         to use this to set border styles.
29825         * Form.cs: Only set mdi child windows borders if the handle has
29826         been created.
29827         * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
29828         this directly on to the driver.
29829         - Get the move start position before adjusting for the titlebar
29830         height, this fixes the windows "skipping" when they are first
29831         moved.
29833 2005-11-18  Jackson Harper  <jackson@ximian.com>
29835         * XplatUIX11.cs: Just compute the mdi borders separately as they
29836         don't totally match up with normal form borders.
29838 2005-11-18  Jackson Harper  <jackson@ximian.com>
29840         * Control.cs: Set WS_ styles for borders, so that the driver does
29841         not have to retrieve the control instance to figure out what kind
29842         of borders it should have.
29843         * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
29844         driver can know its an mdi child easily.
29845         * XplatUIX11.cs: Get the border styles and whether the window is
29846         MDI from the Styles and ExStyles params instead of having to get a
29847         control. This prevents a chicken and egg problem.       
29849 2005-11-18  Jackson Harper  <jackson@ximian.com>
29851         * MdiClient.cs: Fix typo so scrollbars show up correctly.
29853 2005-11-18  Jackson Harper  <jackson@ximian.com>
29855         * MdiClient.cs: Calculate when to add and remove scrollbars
29856         correctly.
29857         * MdiChildContext.cs: Adjust the y position to take the titlebar
29858         into account.
29859         - No height for FormBorderStyle.None
29861 2005-11-18  Jackson Harper  <jackson@ximian.com>
29863         * Control.cs: Allow non enum values to be used for
29864         InternalBorderStyle.  MDI does this to set a special border style.
29865         - New utility methods for converting points to/from client coords
29866         - Add the newly created control to the Controls collection before
29867         updating its style. This way UpdateStyle can walk the control
29868         heirarchy to find the control if needed.
29869         so I don't need to create a new Point object all the time.
29870         * Form.cs: Let MDI windows handle their border styles.
29871         - Set styles on MDI windows so the correct title style is derived.
29872         * MdiChildContext.cs: Move all the painting and window handling
29873         into the non client area.
29874         - Use correct sizing and put correct buttons on frames based on
29875         the FormBorderStyle.
29876         - Notify the mdi client about scrolling
29877         - Need to handle the buttons ourselves now, because they are all
29878         in non client areas and we can't add controls there.
29879         * MdiClient.cs: Halfway to scrolling, this implementation is
29880         somewhat broken though, we need to check to make sure other
29881         windows aren't causing scrolling before removing the bars. Also
29882         the bars need to be drawn on top, maybe I can switch implicit
29883         controls to be on top.
29884         * Hwnd.cs: caption_height and tool_caption_height are now
29885         properties of an hwnd, this way they can be set by the driver
29886         based on the type of window they are.  In X11 the window manager
29887         handles the decorations so caption_height is zero unless its an
29888         MDI window.
29889         - Add 3 pixel borders for MDI windows (0xFFFF).
29890         - Get rid of some code duplication, have DefaultClientRectanle
29891         just call GetClientRectangle.
29892         * XplatUIX11.cs: Pass caption_height and tool_caption_height to
29893         Hwnd now.
29894         - Set border styles differently for mdi windows.
29895         * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
29896         Hwnd now.
29897         
29898 2005-11-15  Mike Kestner  <mkestner@novell.com>
29900         * Menu.cs: when adding an item to the collection, if item is already 
29901         parented, remove it from the parent.
29903 2005-11-13  Alexander Olk  <alex.olk@googlemail.com>
29905         * X11DesktopColors.cs: Added KDE support
29907 2005-11-11  Peter Dennis Bartok  <pbartok@novell.com>
29909         * XplatUIWin32.cs: 
29910           - Clipboard methods now can translate Rtf format
29911           - No longer removes clipboard contents whenever a new format is added
29912             to allow placing multiple formats on the clipboard
29913         * Clipboard.cs: Clipboard now supports getting a IDataObject and
29914           will place all formats contained in it onto the clipboard. Also
29915           now cleans the clipboard before placing a new object onto it
29916         * RichTextBox.cs:
29917           - Implemented set_Rtf
29918           - Implemented set_SelectedRtf
29919           - Created InsertRTFFromStream() method to allow single code base
29920             for all properties and methods that insert RTF into document
29921           - Removed debug output
29922         * TextControl.cs:
29923           - Fixed Delete(int) to fix up line numbers
29924           - Fixed ReplaceSelection to combine start and end line
29925           - Fixed serious DeleteChars bug that would leave the document tree
29926             broken
29927           - Improved DumpTree with several logic checks to detect broken
29928             document trees
29929           - Removed debug lines
29930           - Fixed Caret.WordForward/WordBack moving code, now always also 
29931             updates caret.tag (fixes crash when word-selecting across tag
29932             boundaries via keyboard)
29933           - Added Insert() method for inserting multiline text into documents
29934           - Fixed DeleteChars() calculation errors that would cause a broken
29935             tag chain with multiple tag lines
29936           - DeleteChars() no longer crashes on multi-tag lines if not all tags
29937           - Split() no longer moves caret if split is at caret location
29938           - ReplaceSelection() now updates the cursor and re-displays it
29939           - ReplaceSelection() now uses new Insert() method to avoid code
29940             duplication
29941           - FormatText() can now handle formatting partial lines
29942         * TextBoxBase.cs:
29943           - Append now uses new TextControl.Insert() method (this avoids 
29944             duplicate code)
29945           - Implemented Ctrl-X (Cut) (
29946           - Implemented Ctrl-C (Copy)
29947           - Implemented Ctrl-V (Paste) (Still some bugs related to screen 
29948             regeneration when pasting text; roundtripping Copy&Paste within
29949             edit control still fails due to some calculation bugs in GenerateRTF)
29950           - The Delete key will now remove the current selection if it is visible
29951         * TextBox.cs: Removed debug lines
29952         * XplatUI.cs: Trigger initialization of DataFormats (which requires the
29953           driver to be initialized and can't therefore be done via a static ctor)
29955 2005-11-10  Peter Dennis Bartok  <pbartok@novell.com>
29957         * TextControl.cs: Added backend code for finding char arrays and strings
29958         * TextBoxBase.cs:
29959           - Added mouse wheel scroll support
29960           - Added support for VScroll and HScroll events
29961         * RichTextBox.cs:
29962           - Implemented all seven Find() variants
29963           - Implemented GetCharFromPosition()
29964           - Implemented GetCharIndexFromPosition()
29965           - Implemented GetLineFromIndex()
29966           - Implemented GetPositionFromCharIndex();
29967           - Implemented SaveFile for PlainText and UnicodeText
29968           - Fixed set_Font, now setting a new font applies that font to
29969             the whole document
29970           - Implemented generic Document to RTF converter
29971           - Implemented SaveFile for RichText format (still missing unicode
29972             conversion for non-ansi chars)
29973           - Implemented get_Rtf
29974           - Implemented get_SelectedRtf
29976 2005-11-09  Peter Dennis Bartok  <pbartok@novell.com>
29978         * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
29979           to allow any captures to be released before triggering OnClick. This
29980           way a click handler may capture the mouse without interference.
29981         * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
29982           This way we send them even though X may not allow a grab (if the window
29983           isn't visible, for example)
29985 2005-11-08  Pedro Martinez Julia <pedromj@gmail.com>
29987         * DataGridViewRowEventArgs.cs: DataGridView implementation
29988         * DataGridViewElement.cs: DataGridView implementation
29989         * DataGridViewComboBoxCell.cs: DataGridView implementation
29990         * DataGridViewDataErrorContexts.cs: DataGridView implementation
29991         * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
29992         * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
29993         * ImageLayout.cs: DataGridView implementation
29994         * DataGridViewComboBoxColumn.cs: DataGridView implementation
29995         * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
29996         * DataGridViewSelectionMode.cs: DataGridView implementation
29997         * IDataGridViewEditingControl.cs: DataGridView implementation
29998         * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
29999         * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
30000         * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
30001         * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
30002         * DataGridViewColumnSortMode.cs: DataGridView implementation
30003         * DataGridView.cs: DataGridView implementation
30004         * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
30005         * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
30006         * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
30007         * Padding.cs: DataGridView implementation
30008         * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
30009         * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
30010         * DataGridViewRowEventHandler.cs: DataGridView implementation
30011         * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
30012         * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
30013         * DataGridViewButtonCell.cs: DataGridView implementation
30014         * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
30015         * DataGridViewEditMode.cs: DataGridView implementation
30016         * DataGridViewCellValueEventArgs.cs: DataGridView implementation
30017         * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
30018         * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
30019         * DataGridViewCheckBoxColumn.cs: DataGridView implementation
30020         * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
30021         * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
30022         * DataGridViewCellEventHandler.cs: DataGridView implementation
30023         * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
30024         * DataGridViewCellStyleConverter.cs: DataGridView implementation
30025         * DataGridViewSelectedRowCollection.cs: DataGridView implementation
30026         * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
30027         * DataGridViewColumnEventArgs.cs: DataGridView implementation
30028         * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
30029         * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
30030         * QuestionEventArgs.cs: DataGridView implementation
30031         * IDataGridViewEditingCell.cs: DataGridView implementation
30032         * DataGridViewTriState.cs: DataGridView implementation
30033         * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
30034         * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
30035         * DataGridViewColumnCollection.cs: DataGridView implementation
30036         * DataGridViewCellValueEventHandler.cs: DataGridView implementation
30037         * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
30038         * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
30039         * DataGridViewColumn.cs: DataGridView implementation
30040         * DataGridViewCellBorderStyle.cs: DataGridView implementation
30041         * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
30042         * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
30043         * DataGridViewRow.cs: DataGridView implementation
30044         * DataGridViewImageCellLayout.cs: DataGridView implementation
30045         * DataGridViewImageCell.cs: DataGridView implementation
30046         * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
30047         * DataGridViewCheckBoxCell.cs: DataGridView implementation
30048         * DataGridViewHeaderCell.cs: DataGridView implementation
30049         * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
30050         * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
30051         * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
30052         * DataGridViewTextBoxColumn.cs: DataGridView implementation
30053         * QuestionEventHandler.cs: DataGridView implementation
30054         * DataGridViewCellStyleScopes.cs: DataGridView implementation
30055         * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
30056         * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
30057         * DataGridViewCell.cs: DataGridView implementation
30058         * DataGridViewCellEventArgs.cs: DataGridView implementation
30059         * DataGridViewClipboardCopyMode.cs: DataGridView implementation
30060         * DataGridViewCellStyle.cs: DataGridView implementation
30061         * DataGridViewColumnHeaderCell.cs: DataGridView implementation
30062         * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
30063         * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
30064         * TextFormatFlags.cs: DataGridView implementation
30065         * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
30066         * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
30067         * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
30068         * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
30069         * DataGridViewButtonColumn.cs: DataGridView implementation
30070         * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
30071         * HandledMouseEventArgs.cs: DataGridView implementation
30072         * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
30073         * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
30074         * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
30075         * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
30076         * DataGridViewRowCollection.cs: DataGridView implementation
30077         * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
30078         * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
30079         * DataGridViewHitTestType.cs: DataGridView implementation
30080         * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
30081         * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
30082         * DataGridViewColumnEventHandler.cs: DataGridView implementation
30083         * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
30084         * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
30085         * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
30086         * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
30087         * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
30088         * DataGridViewContentAlignment.cs: DataGridView implementation
30089         * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
30090         * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
30091         * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
30092         * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
30093         * DataGridViewPaintParts.cs: DataGridView implementation
30094         * DataGridViewCellCollection.cs: DataGridView implementation
30095         * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
30096         * DataGridViewImageColumn.cs: DataGridView implementation
30097         * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
30098         * DataGridViewElementStates.cs: DataGridView implementation
30099         * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
30100         * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
30101         * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
30102         * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
30103         * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
30104         * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
30105         * DataGridViewRowHeaderCell.cs: DataGridView implementation
30106         * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
30107         * DataGridViewTextBoxCell.cs: DataGridView implementation
30108         * DataGridViewBand.cs: DataGridView implementation
30109         * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
30110         * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
30111         * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
30112         * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
30113         * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
30114         * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
30115         * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
30116         * DataGridViewSelectedCellCollection.cs: DataGridView implementation
30117         * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
30118         * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
30119         * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
30121 2005-11-08  Peter Dennis Bartok  <pbartok@novell.com>
30123         * ThemeWin32Classic.cs: 
30124           - Draw the outside focus rectangle around buttons
30125           - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
30126             doesn't use end caps for every dash of a line anymore. This
30127             workaround ignores the forecolor.
30129 2005-11-08  Kornél Pál  <kornelpal@hotmail.com>
30131         * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
30132           endian safe.
30134 2005-11-07  Jackson Harper  <jackson@ximian.com>
30136         * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
30138 2005-11-07  Jackson Harper  <jackson@ximian.com>
30140         * ScrollableControl.cs: Calculate the maximum and change vars
30141         (more) correctly so that scrollbars appear as a sensible size.
30143 2005-11-04  Jackson Harper  <jackson@ximian.com>
30145         * TreeNodeCollection.cs: Refresh when nodes are cleared from the
30146         collection.
30147         * TreeView.cs: When the tree is sorted null out the top_node so
30148         that it is recalculated.
30149         - Use dotted lines instead of dashed lines to match MS better.
30151 2005-11-04  Jordi Mas i Hernandez <jordimash@gmail.com>
30153         * ListView.cs: 
30154           - Implements key search for items. Useful when browsing files with FileDialog
30155           - When changing view mode or when clear the items reset scrollbar positions
30157 2005-11-04  Jackson Harper  <jackson@ximian.com>
30159         * CurrencyManager.cs: Implement the MetaDataChanged event, the
30160         Reset method, and the CheckEmpty. CheckEmpty is just a total guess
30161         as to what the method may do as there is no real way of creating a
30162         derived CurrencyManager and calling the method. 
30164 2005-11-03  Jackson Harper  <jackson@ximian.com>
30166         * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
30167         * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
30168         method which seems to just be used internally to refresh the tabs.
30170 2005-11-03  Jackson Harper  <jackson@ximian.com>
30172         * TabControl.cs: Implement the remove method. Fix some broken
30173         comments.
30175 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
30177         * DateTimePicker.cs:
30178           - Added missing DateTimePickerAccessibleObject class
30179           - Added missing events
30180           - Added OnFontChanged method
30181         * Form.cs: Added missing attributes
30182         * TreeView.cs: Added missing attributes
30184 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com> 
30186         * GridItemCollection.cs: Fix signatures
30188 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
30190         * XplatUI.cs: Updated build rev/date
30191         * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs, 
30192           DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
30193         * Application.cs: Trigger context-specific ExitThread events
30195 2005-11-03  Jackson Harper  <jackson@ximian.com>
30197         * Menu.cs:
30198         * MainMenu.cs:
30199         * GridTableStylesCollection.cs:
30200         * Timer.cs:
30201         * TabPage.cs:
30202         * HelpProvider.cs:
30203         * StatusBar.cs:
30204         * MonthCalendar.cs: Signature fixes
30206 2005-11-03  Jackson Harper  <jackson@ximian.com>
30208         * TreeNodeCollection.cs: Remove should not be virtual.
30209         * TreeView.cs: Implement the last of the missing methods.
30211 2005-11-03  Jackson Harper  <jackson@ximian.com>
30213         * TreeNodeConverter.cs: Implement to get off my class-status back.
30215 2005-11-03  Jackson Harper  <jackson@ximian.com>
30217         * TreeView.cs: Hookup the bits for drag and drop.
30218         * TreeNode.cs: Don't cache the tree_view or index anymore, now
30219         that nodes can be moved from tree to tree easily this just causes
30220         all sorts of problems.
30221         * TreeNodeCollection: Don't need to give treenodes an index and
30222         treeview anymore when they are added, these are computed on the
30223         fly. Also make sure to remove a node before its added.
30225 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
30227         * TextControl.cs:
30228           - Added CaretSelection enum
30229           - Added comparison methods to Marker struct, makes selection code
30230             more readable
30231           - Added SelectionStart and SelectionEnd as 'moveable' location for
30232             the CaretDirection enum and handler
30233           - Added selection_prev variable to track optimized invalidation for
30234             word and line selection
30235           - Added SelectionVisible property (returns true if there is a valid 
30236             selection)
30237           - Switched CaretHasFocus to only display the caret if there is no
30238             visible selection
30239           - Avoiding StringBuilder.ToString to retrieve a single char, instead
30240             using the direct character index; should be much faster
30241           - Added various conditional debug statements
30242           - Fixed invalidation calculation for selection ranges
30243           - Added ExpandSelection() method to support word and line selection
30244           - Switched SetSelectionToCaret to use new Marker compare overloads
30245           - Added central IsWordSeparator() method to determine word 
30246             separators/whitespace and FindWordSeparator() to streamline common
30247             usage of IsWordSeparator()
30248         * TextBoxBase.cs:
30249           - Removed unneeded grabbed variable, it was just mirroring
30250             Control.Capture
30251           - No longer firing OnTextChanged event when Text setter is called,
30252             since the base will fire the event for us
30253           - Added handling of Ctrl-Up/Down selection
30254           - Added handling of Shift-Cursorkey selection
30255           - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
30256             words
30257           - Added handling of Shift and Ctrl-Shift-Home/End selection
30258           - Removed some debug output
30259           - Added handling for single/double/tripple-click to place caret/
30260             select word/select line respectively (Fixes bug #76031)
30261           - Added support for drag expansion of word/line selection
30262         * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
30263           current selection
30265 2005-11-02  Jackson Harper  <jackson@ximian.com>
30267         * X11Dnd.cs: If the drag is going to and from a MWF window just
30268         copy the data instead of sending it out through the X Selection
30269         mechanism.
30271 2005-11-02  Jackson Harper  <jackson@ximian.com>
30273         * X11Dnd.cs:
30274         * XplatUIX11.cs: When in a drag we don't want motion notify
30275         messages to get passed on to the other controls. This prevents
30276         mouse move messages from showing up in the drag source.
30278 2005-11-02  Jackson Harper  <jackson@ximian.com>
30280         * X11Dnd.cs: Remove unneeded call to XAllowEvents.  Make sure that
30281         the correct button is release to end a drag.
30282         * XplatUIX11.cs: Make the button state internal so the drag system
30283         can access it.  Dragging needs to know about all button releases,
30284         not just left button.
30286 2005-11-02  Miguel de Icaza  <miguel@novell.com>
30288         * Form.cs (Icon): If the icon is null, reset the icon to the
30289         default value. 
30291         * Cursor.cs: When writing the AND-mask bitmap do not include the
30292         number of colors, but hardcode those to two (black and white),
30293         fixes the loading of color cursors (Paint Dot Net).
30295         * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
30296         turn off autoscaling.
30298         * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
30300 2005-11-02  Jackson Harper  <jackson@ximian.com>
30302         * X11Dnd.cs: Make sure to send a status message if the pointer
30303         enters a control that can not accept a drop, otherwise the cursor
30304         isn't updated correctly. Also tried to compress the lines of code
30305         a bit.
30307 2005-11-02  Jackson Harper  <jackson@ximian.com>
30309         * X11Dnd.cs: Change cursors based on drag action. Also attempt to
30310         set actions correctly.  This isn't perfect as XDND and win32 have
30311         some differences on how you allow actions. I'll clear this up by
30312         adding a path for drag from MWF to MWF windows.
30313         * XplatUIX11.cs: Hook into the dnd system.
30315 2005-11-02  Jordi Mas i Hernandez <jmas@softcatala.org>
30317         * ListView.cs: Fixes scroll bar visibility. Hide them if they were
30318         previously shown but they are no longer need it. Very obvious when 
30319         browsing files with FileDialog.
30321 2005-11-01  Peter Dennis Bartok  <pbartok@novell.com>
30323         * Control.cs: We always need to call OnPaintBackground. We pretty much
30324           ignore AllPaintingInWmPaint and always do the painting there, whether 
30325           it's set or not, since we always ignore the WM_ERASEBKGND message 
30326           (which we don't generate on X11). This fixes #76616.
30327         * Panel.cs: Removed unneeded background painting. This happens properly
30328           in Control.cs already
30330 2005-10-31  Mike Kestner  <mkestner@novell.com>
30332         * Menu.cs: Add items to collection before setting their index.
30333         * MenuItem.cs : add range checking with ArgumentException like MS.
30334         [Fixes #76510]
30336 2005-10-31  Jackson Harper  <jackson@ximian.com>
30338         * ListBox.cs: Invalidate if the area is visible at all not just
30339         contained in the visible rect. Fixes unselection of semi visible
30340         items.
30342 2005-10-31  Jackson Harper  <jackson@ximian.com>
30344         * Control.cs: Consistently name the dnd methods. Make them
30345         internal so we can override them to match some MS behavoir
30346         internally.
30347         * Win32DnD.cs: Use the new consistent names.
30349 2005-10-31  Jackson Harper  <jackson@ximian.com>
30351         * TreeView.cs: Don't draw the selected node when we lose focus.
30353 2005-10-31  Jackson Harper  <jackson@ximian.com>
30355         * X11Dnd.cs: We still need to reset the state even though a full
30356         reset isn't being done, otherwise status's still get sent all over
30357         the place.
30359 2005-10-31  Jackson Harper  <jackson@ximian.com>
30361         * Control.cs: Make the dnd_aware flag internal so the dnd
30362         subsystem can check it. Catch exceptions thrown in dnd handlers to
30363         match MS behavoir.
30364         * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
30365         * X11Dnd.cs: Handle null data in the converters. Set the XDND
30366         version when sending a XdndEnter. Use the control/hwnd dnd_aware
30367         flags to reduce the number of dnd enters/status's sent.
30369 2005-10-31  Jackson Harper  <jackson@ximian.com>
30371         * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
30373 2005-10-31  Jordi Mas i Hernandez <jordi@ximian.com>
30375         * PictureBox.cs: Fixes 76512
30377 2005-10-28  Jackson Harper  <jackson@ximian.com>
30379         * X11Dnd.cs: Early implementation to support winforms being a drag
30380         source for data on X11. Also restructured the converters so they
30381         can go both ways now.
30382         * XplatUIX11.cs: Tie ins to the the Dnd stuff.
30383         
30384 2005-10-27  Peter Dennis Bartok  <pbartok@novell.com>
30386         * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
30387           clipboard requests
30389 2005-10-27  Jackson Harper  <jackson@ximian.com>
30391         * TreeNode.cs: Implement serialization so my DnD examples will work.
30393 2005-10-24  Kornél Pál  <kornelpal@hotmail.com>
30395         * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
30396           TreeView.cs: Don't dispose objects that are not owned.
30397           
30398 2005-10-24  Peter Dennis Bartok  <pbartok@novell.com>
30400         * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
30401           should retrieve the current cursor and report that, but XplatUI
30402           doesn't (yet) have an interface for that (and I'm not sure I even
30403           can, on X11)
30404         * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
30405           until any message loop processing is done (and the WM_SETCURSOR
30406           replaces the cursor to the proper one)
30407         * XplatUIX11.cs: 
30408           - Fixed override behaviour, we can't set the cursor globally on X11, 
30409             just for our windows.
30410           - Invalidating the System.Drawing X11 display handle when we are
30411             shutting down
30412         * Control.cs: Fix to make csc happy
30414 2005-10-23  Peter Dennis Bartok  <pbartok@novell.com>
30416         * TextBoxBase.cs: 
30417           - get_Text: Add last line (without trailing newline) to returned
30418             value (Fixes 76212)
30419           - get_TextLength: Count last line in returned length
30420           - ToString: Call Text property instead of duplicating code
30422 2005-10-23  Kornél Pál  <kornelpal@hotmail.com>
30424         * ImageList.cs: Dispose ImageAttributes objects.
30426 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
30428         * ImageList.cs: Use attribute constructors with less arguments where
30429           possible.
30431 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
30433         * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
30434           Use typeof instead of strings when assembly is referenced. Added
30435           some more comments.
30437 2005-10-21  Jackson Harper  <jackson@ximian.com>
30439         * ListView.cs: Raise a double click event. Also tried to somewhat
30440         fix when the selectedindexchanged event is raised. Its still
30441         broken though.
30443 2005-10-21  Jackson Harper  <jackson@ximian.com>
30445         * TreeView.cs: New method to invalidate the plus minus area of a
30446         node without invalidating the whole node (maybe this can be used
30447         in some more places).
30448         * TreeNodeCollection.cs: When adding to an empty node we need to
30449         invalidate its plus minus area so the little block shows up.
30450         
30451 2005-10-21  Jackson Harper  <jackson@ximian.com>
30453         * TreeView.cs: Make sure that when we invalidate a node the bounds
30454         are big enough to cover the selected box and the focus
30455         rectangle. Use a different colour for the lines connecting nodes
30456         so they show up with all themes.
30458 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
30460         * NativeWindow.cs: Don't call anything that could call into the driver,
30461           we might be on a different thread.
30463 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com> 
30465         * Control.cs(Dispose): Since Dispose might run on a different thread,
30466           make sure that we call methods that could call into the driver via
30467           invoke, to avoid thread issues
30469 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
30471         * XplatUI.cs: Removed finalizer
30472         * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
30473           not allowing to be called on the finalizer thread.
30475 2005-10-21  Kornél Pál  <kornelpal@hotmail.com>
30477         * ImageList.cs:
30478           - Reverted r51889 and r51891.
30479           - Added ImageListItem class that stores unmodified image items and image
30480             properties required to create list images until handle is created.
30481           - Added AddItem and moved image creation logic to AddItemInternal.
30482           - Added CreateHandle method that creates images based on unmodified items.
30483           - Added DestroyHandle that changes state to store unmodified items.
30484           - Add and AddStrip methods no more create handle.
30485           - ReduceColorDepth has no return value.
30486           - Dispose destroys handle.
30487           - Modified other methods to reflect the above changes.
30488           - Implemented key support.
30489           - Added profile 2.0 members and attributes.
30490           - Added private Reset and ShouldSerialize methods that provide the same
30491             behavior as MS.NET but the Visual Studio .NET designer seems to ignore
30492             them as they are private.
30493           - Added some more comments about implementation details.
30495 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
30497         * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
30499 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
30501         * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
30503 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
30505         * DataGridDrawingLogic.cs: Fixes column hit calcultation
30506         * DataGridColumnStyle.cs: Remove debug message
30508 2005-10-20  Jackson Harper  <jackson@ximian.com>
30510         * TreeView.cs: We can always get input keys regardless of whether
30511         or not editing is enabled. They are used for navigation.
30513 2005-10-20  Jackson Harper  <jackson@ximian.com>
30515         * TreeNode.cs: Use the viewport rect for determining if a node
30516         needs to be moved for visibility. Don't use Begin/End edit. This
30517         calls a full refresh when its done.
30518         * TreeView.cs: New SetBottom works correctly.  Make the viewport
30519         rect property internal so the treenodes can see it. When clicking
30520         on a node we need to ensure that its visible because it might just
30521         be partly visible when clicked.
30523 2005-10-20  Jackson Harper  <jackson@ximian.com>
30525         * TreeNodeCollection.cs: Remove debug code.
30527 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
30529         * Datagrid.cs: Implements column sorting in Datagrid
30530         * DataGridColumnStyle.cs: Implements column sorting in Datagrid
30532 2005-10-20  Jackson Harper  <jackson@ximian.com>
30534         * TreeNodeCollection.cs: Remove items properly. Update the correct
30535         area after removing them.
30537 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
30539         * Datagrid.cs: Should not call base.OnPaintBackground
30541 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
30543         * XplatUIX11.cs (GetMessage):
30544           - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
30545             window instead of client window
30546           - Now properly calculates NC_xBUTTONUP message coordinates
30547           - ScreenToMenu now properly calculates it's coordinates of whole 
30548             window, since menus are in the whole window, not in the client
30549             window
30550           - Added WholeToScreen coordinate translation method
30552 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com> 
30554         * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
30555           want to return a message, loop back to the beginning of the function
30556           and grab the next real message to process instead.
30558 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
30560         * Splitter.cs: Properly set limits if no filler control is used
30562 2005-10-19  Jackson Harper  <jackson@ximian.com>
30564         * ColorDialog.cs: Don't show the help button if it is not enabled
30565         instead of disabling it (this is what MS does). Don't create the
30566         panel until the dialog is run, otherwise the vars (such as
30567         ShowHelp) are not set yet.
30569 2005-10-19  Jackson Harper  <jackson@ximian.com>
30571         * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
30572         are reduced when adding nodes.
30573         * TreeNode.cs:
30574         * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
30575         tree.
30576         
30577 2005-10-19  Jackson Harper  <jackson@ximian.com>
30579         * FolderBrowserDialog.cs: End editing our treeview so the window
30580         actually gets refreshed.
30582 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
30584         * Control.cs: Fixed logic flip on when to call OnPaintBackground. 
30585           Obsoleted handling of WM_ERASEBKGND, now always draws our background
30586           inside of WM_PAINT
30588 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
30590         * MenuAPI.cs: Returns after Hidding window
30591         * XplatUIX11.cs: Added TODO found while debugging menu issues
30593 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
30595         * XplatUIX11.cs: Do not re-map the whole window when it's size
30596           becomes non-zero unless it's supposed to be actually visible
30598 2005-10-18  Jackson Harper  <jackson@ximian.com>
30600         * TreeView.cs: We don't need to keep a count anymore.
30601         * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
30602         use the Grow method.
30604 2005-10-18  Jackson Harper  <jackson@ximian.com>
30606         * TreeNodeCollection.cs: Insert is not supported on arrays, so
30607         implement it manually here.
30609 2005-10-18  Jackson Harper  <jackson@ximian.com>
30611         * ImageList.cs: Dont kill the list when the colour depth is
30612         changed, just change the colour depth of all the images.
30613         - Same goes for setting the image size. Just resize them all
30614         instead of killing the list softly.
30616 2005-10-18  Jackson Harper  <jackson@ximian.com>
30618         * Control.cs: Don't invalidate empty rectangles.
30620 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
30622         * ListViewItem.cs:
30623           - Adds checked item to the Checked/Item lists (where empty before)
30624           - Do not add items to the Selected lists if they are already present
30625         * ListView.cs:
30626           - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
30627           - When deleting items make sure that we delete them for the Selected
30628           and Checked list also.
30630 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
30632         * Label.cs: Dispose objects no longer used
30633         * ThemeWin32Classic.cs: Dispose objects no longer used
30635 2005-10-18  Jackson Harper  <jackson@ximian.com>
30637         * TabControl.cs: Don't refresh the whole control when the tabs are
30638         scrolled, we just need to refresh the tab area.
30640 2005-10-17  Jackson Harper  <jackson@ximian.com>
30642         * XplatUIX11.cs: Compress code a little bit. Only calculate the
30643         after handle when we need it.
30645 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
30647         * Control.cs: When the parent size changes, recalculate anchor 
30648           positions. Partial fix for #76462
30650 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
30652         * ThemeWin32Classic.cs: Make sure the picturebox has it's background 
30653           drawn. Fixes #76462
30655 2005-10-17  Jackson Harper  <jackson@ximian.com>
30657         * MonthCalendar.cs: Don't create the numeric up down until our
30658         handle is created. Otherwise our handle is created in the
30659         constructor and we don't know if we are a WS_CHILD or WS_POPUP
30660         yet.
30662 2005-10-17  Jackson Harper  <jackson@ximian.com>
30664         * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
30665         correctly.
30667 2005-10-17  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
30668         * TreeNode.cs : small logical fix (was using local var instead of field)
30669         
30670 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
30672         * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
30674 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
30676         * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
30678 2005-10-16  Peter Dennis Bartok  <pbartok@novell.com> 
30680         * Control.cs: 
30681           - Re-implemented anchoring code. My first version was really broken.
30682             This fixes bug #76033. Unlike the previous implementation we will
30683             no longer have round errors since all numbers are calculated from
30684             scratch every time. Removed various anchor-related obsolete vars.
30685           - InitLayout no longer causes layout event firing and layout to be 
30686             performed
30688 2005-10-16  Jackson Harper  <jackson@ximian.com>
30690         * Hwnd.cs: Compute invalid area correctly (fixes my last commit
30691         which was broken).
30693 2005-10-16  Jackson Harper  <jackson@ximian.com>
30695         * TabControl.cs: Remove debug code.
30697 2005-10-16  Jackson Harper  <jackson@ximian.com>
30699         * XEventQueue.cs: Increase the default queue size (very simple
30700         apps needed to grow the queue).
30701         * Hwnd.cs: No finalizer so we don't need to suppress
30702         finalization. Compute the invalid area manually so a new rectangle
30703         does not newto be created.
30704         * ScrollableControl.cs: Don't set any params (otherwise visibility
30705         isn't set correctly).
30706         * MdiChildContext.cs: New constructor takes the mdi parent so it
30707         doesn't have to be computed and avoids a crash on windows. Draw
30708         the window icon properly, and allow the text to be seen.
30709         * Form.cs: Use new MdiChildContext constructor. Make sure the
30710         child context isn't null in wndproc.
30711         * TabControl.cs: Don't set focus, this is muddling keyboard
30712         behavoir. Expand the tab rows when a window size increase will
30713         allow extra tabs to be seen. Don't allow tabs smaller than the
30714         width of a window to be scrolled out of view.
30715         * TreeNode.cs:
30716         * TreeView.cs: Use measure string to calculate a nodes width, the
30717         width is cached and only updated when the text or the font is
30718         changed. Don't check for expand/collapse clicks on the first level
30719         nodes if root lines are disabled.
30720         
30721 2005-10-16  Ritvik Mayank  <mritvik@novell.com>
30723         * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
30725 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
30727         * DataGridBoolColumn.cs: fixes warning
30729 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
30731         * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
30732         to match more to match more precisely the MS Net behavior
30734 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
30736         * Hwnd.cs: Added field to track if window is mapped
30737         * XplatUIX11.cs: 
30738           - Unmap windows if they become 0-size, re-map when 
30739             they are >0 again; fixes #76035
30740           - Re-set our error handler after initializing X11Desktop
30741             to override any error handlers Gtk or whatever was called
30742             may have set.
30744 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
30746         * CheckedListBox.cs: Removed unused vars
30747         * ListView.cs: Fixed signatures
30748         * RichTextBox.cs: Removed unused vars
30749         * TextBoxBase.cs: Removed unused vars
30750         * XplatUIWin32.cs: Removed unused vars
30751         * XplatUIX11.cs: Removed unused vars
30752         * XplatUI.cs: Updated version and date to latest published
30754 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
30756         * Cursor.cs: Added private .ctor to work around a bug in
30757           resourceset (Thanks to Geoff Norton for the help on this)
30758         * SplitterEventArgs.cs: Made fields accessible so we don't
30759           waste boatloads of objects and can reuse the same one
30760           in Splitter
30761         * XplatUIWin32.cs(DrawReversibleLine): Now also considers
30762           any captions and borders when generating screen coordinates
30763         * Splitter.cs: Reimplemented control, now fully complete, uses
30764           rubberband drawing, supports and obeys all properties, has
30765           proper cursors
30767 2005-10-13  Miguel de Icaza  <miguel@novell.com>
30769         * Form.cs (Form): Setup default values for autoscale and
30770         autoscale_base_size;  Make these instance variables, not static
30771         variables. 
30773         (OnLoad): on the first load, adjust the size of the form.
30775 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
30777         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added 
30778           width argument to DrawReversibleRectangle()
30779         * XplatUIWin32.cs, XplatUIX11.cs: 
30780           - Implemented width for DrawReversibleRectangle()
30781           - Added logic to DrawReversibleRectangle that recognizes a zero
30782             width or height and only draws a line in that situation
30783         
30784 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com> 
30786         * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
30787         * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
30788         * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
30789           method (it uses our FosterParent window to get a graphics context)
30791 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com>
30793         * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground 
30794           and SetWindowBackground methods
30795         * Control.cs:
30796           - Setting proper ControlStyles
30797           - We no longer call XplatUI.SetWindowBackground and XplatUI.
30798             EraseWindowBackground, instead we draw the window background
30799             ourselves in PaintControlBackground. This behaviour is
30800             required to match MS, where, when OnPaintBackground is not
30801             called, the background is not drawn.
30802           - Removed unneeded Refresh() in set_Text
30803         * Hwnd.cs: Dropped the ErasePending support. No longer needed
30804         * XplatUIX11.cs:
30805           - Created DeriveStyles method to translate from CreateParams to
30806             FormBorderStyle and TitleStyle, also handles BorderStyle (which
30807             matches FormBorderStyle enum values)
30808           - Consolidated SetHwndStyles and CalculateWindowRect border/title
30809             style calculations into single DeriveStyles method
30810           - Fixed CreateWindow to (finally) use Gravity. This prevents X11
30811             from redrawing the whole window on any resize or expose.
30812           - Fixed CreateWindow usage of SetWindowValuemask. Before not
30813             all styles were applied to our whole/client window appropriately
30814           - Removed EraseWindowBackground() and SetWindowBackground() methods
30815           - Removed handling of WM_ERASEBKGND message from DefWndProc, we
30816             no longer clear/redraw the background through X
30817           - Removed handling of erase_pending bit, we have no use for it (or
30818             so it seems)
30819         * XplatUIOSX.cs:
30820           - Removed generation and handling of WM_ERASEBKGND message
30821           - Removed EraseWindowBackground() and SetWindowBackground() methods
30822           - Removed handling of hwnd.ErasePending flag
30823         * XplatUIWin32.cs:
30824           - Removed EraseWindowBackground() and SetWindowBackground() methods
30825           - We no longer call EraseWindowBackground on PaintEventStart, we 
30826             ignore the fErase flag, erasing is handled in Control in the
30827             background handler
30828         * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
30829           LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
30830           TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs, 
30831           CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs, 
30832           DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, 
30833           TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
30834           DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
30836 2005-10-12  Jonathan Chambers <jonathan.chambers@ansys.com>
30838         * PropertyGrids.cs: Get sub properties
30839         * PropertyGridView.cs: Fix drawing code
30841 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
30843         * ListBox.cs: Fixes 76383
30845 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
30847         * DataGridTextBoxColumn.cs: Sets location and size before attachment
30848         * ThemeWin32Classic.cs: Fixes border drawing and calculations
30849         * DataGridDrawingLogic.cs: Fixes border drawing and calculations
30852 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
30854         * ComboBox.cs: Fixes border drawing
30856 2005-10-10  Miguel de Icaza  <miguel@novell.com>
30858         * MimeIcon.cs: Ignore errors if the file can not be read.
30860 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
30862         * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
30863          - Fixed border calculations
30864          - Fixed horizontal scrolling in single column listboxes
30865          - Fixed drawing issues
30867 2005-10-10  Peter Dennis Bartok  <pbartok@novell.com>
30869         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to 
30870           FormBorderStyle enum
30871         * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added 
30872           code to determine FormBorderStyles from CreateParams
30873         * Form.cs:
30874           - Fixed bug where we'd set the wrong window styles if we were
30875             not creating an MDI window
30876           - Added call to XplatUI.SetBorderStyle when form borders are set
30877         * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
30878         * Hwnd.cs:
30879           - Removed obsolete edge style
30880           - Switched from BorderStyle to FormBorderStyle
30881         
30882 2005-10-10  Jackson Harper  <jackson@ximian.com>
30884         * Form.cs: Use the property to get the window handle instead of
30885         accessing it directly. Prevents a null reference exception.
30887 2005-10-10  Jackson Harper  <jackson@ximian.com>
30889         * TreeView.cs: Don't adjust the rect given to DrawString now that
30890         our libgdiplus draws correctly.
30892 2005-10-08  Jackson Harper  <jackson@ximian.com>
30894         * TreeView.cs: Don't try to find the clicked on node if there are
30895         no nodes in the tree.
30897 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
30899         * RichTextBox.cs:
30901           restore
30903 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
30905         * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
30906           ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
30907           ErrorProvider.cs:
30908           Use ResPool for brushes and dispose System.Drawing objects that
30909           are not used anymore.
30911 2005-10-07  Jackson Harper  <jackson@ximian.com>
30913         * MdiChildContext.cs: Use the new borders instead of drawing them
30914         ourselves.
30916 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
30918         * Calling UpdateBounds after changing the window's BorderStyle 
30919         since the style can change the ClientSize
30921 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
30923         * Control.cs: Made PaintControlBackground virtual
30924         * Panel.cs: Overriding PaintControlBackground instead of using paint
30925           event; paint event method was interfering with 'real' users of the
30926           event.
30928 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
30930         * ThemeWin32Classic.cs: remove border drawing since it is handled
30931         by the base control class now and was causing double border drawing.
30933 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
30935         * Panel.cs: Redraw our background on paint. Not a pretty solution,
30936           but it does seem to match MS behaviour. This fixes bug #75324
30938 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
30940         * XplatUIX11.cs: A better DrawReversibleRectangle version, however
30941           somewhat hackish looking
30943 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
30945         * TextBoxBase.cs:
30946           - We now accept Enter even if AcceptEnter is false, if the containing
30947             form does not have an AcceptButton configured (fixes bug #76355)
30948           - Calculations are now fixed to no longer use Width/Height, but
30949             ClientSize.Width/Height, since we now support borders (this was
30950             a result of fixing borders and therefore bug #76166)
30951           - We no longer show the horizontal scrollbar if TextBox.WordWrap is 
30952             true (fixes bug #76354)
30953         
30954 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
30956         * Control.cs: 
30957           - Defaulting BorderStyle and setting it in XplatUI when our window 
30958             is created
30959           - Added enum check to InternalBorderStyle setter
30960         * XplatUIX11.cs: 
30961           - Added drawing of window borders
30962           - Now properly calculates WM decorations offset for toplevel 
30963             windows (fixes bug #74763)
30964         * XplatUIWin32.cs: 
30965           - Implemented BorderStyles for windows (we're letting win32 draw 
30966             the border for us)
30967           - Fixed the signature for SetWindowLong
30968         * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
30969           ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for 
30970           setting borders
30971         * UpDownBase.cs: Remove drawing of borders, this is handled by
30972           the driver, outside the client area
30973         * ListView.cs: Removed bogus border calculations. The control should
30974           be oblivious to borders, since those are not part of the client
30975           area. 
30976         * X11DesktopColors.cs: Commented out (currently) unneeded variables
30977         * ThemeWin32Classic.cs: Removed border calculations from ListView 
30978           drawing code
30980 2005-10-06  Jackson Harper  <jackson@ximian.com>
30982         * MdiChildContext.cs: Clear out the old virtual position remove
30983         all the unneeded calls to CreateGraphics.
30985 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
30987         * TextControl.cs: Use proper color for highlighted text; fixes #76350
30989 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
30991         * Form.cs: 
30992           - Added loading and setting of our new default icon
30993           - Only set icon if window is already created
30995 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
30997         * Label.cs:
30998           - Do not explicitly set the foreground and background colors, to
30999             allow inheriting from parents (fixes #76302)
31000           - Use Control's InternalBorderStyle property to deal with borders
31002 2005-10-06  Jackson Harper  <jackson@ximian.com>
31004         * MdiChildContext.cs: Use the new xplatui function to draw a
31005         reversible rect.
31007 2005-10-06  Jackson Harper  <jackson@ximian.com>
31009         * Form.cs: Add the parent before creating the child context cause
31010         we need the parent when setting up the child.
31012 2005-10-06  Jackson Harper  <jackson@ximian.com>
31014         * FolderBrowserDialog.cs: redo the tree population code so a
31015         second thread isn't used. Should be a lot faster and more stable
31016         now.
31018 2005-10-05  Jackson Harper  <jackson@ximian.com>
31020         * TreeView.cs: There are no expand/collapse boxes if the node has
31021         no children.
31023 2005-10-05  Jackson Harper  <jackson@ximian.com>
31025         * X11DesktopColors.cs: Get menu colours for the gtk theme.
31027 2005-10-05  Alexander Olk  <alex.olk@googlemail.com>
31029         * FileDialog.cs: Fix InitialDirectory
31031 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
31033         * ComboBox.cs:
31034                 - Fixes changing between styles
31035                 - Fixes simple mode
31036                 - Fixes last item crashing when navigating with keyboard
31038 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
31040         * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
31042 2005-10-05  Jackson Harper  <jackson@ximian.com>
31044         * TreeView.cs: If updating the root node do a full refresh.
31045         * TreeNode.cs: The root node should be expanded by default. Also
31046         added a utility prop to tell if we are the root node.
31047         * TreeNodeCollection.cs: Only refresh if the node we are being
31048         added to is expanded. Also added a comment on a potential
31049         optimization.
31050         
31051 2005-10-04  Peter Dennis Bartok  <pbartok@novell.com>
31053         * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize() 
31054           in dispose method. Fixes #76330
31056 2005-10-04  Jordi Mas i Hernandez <jordi@ximian.com>
31058         * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
31060                 - Implements vertical and horizontal scrolling using XplatUI
31061                 - Fixes keyboard navagation
31062                 - Fixes EnsureVisible
31063                 - Drawing fixes
31064                 - Handles and draws focus properly
31067 2005-10-04  Kornél Pál  <kornelpal@hotmail.com>
31069         * ImageList.cs: Use upper case initials for internal fields. ImageStream:
31070           Create handle. NET_2_0: Destroy handle when value is null.
31072 2005-10-03  Jackson Harper  <jackson@ximian.com>
31074         * ScrollBar.cs: My last scrollbar patch was broken. This is a
31075         revert and a new patch to prevent the thumb from refreshing so
31076         much.
31078 2005-10-02  Jackson Harper  <jackson@ximian.com>
31080         * ScrollBar.cs: Don't update position if it hasn't actually
31081         changed. This occurs when you hold down the increment/decrement
31082         buttons and the thumb gets to the max/min.
31084 2005-10-01  Jackson Harper  <jackson@ximian.com>
31086         * Form.cs:
31087         * MdiChildContext.cs:
31088         * MdiClient.cs: Implement ActiveMdiChild in Form.
31090 2005-10-01  Jordi Mas i Hernandez <jordi@ximian.com>
31092         * ComboBox.cs: Include ComboBoxEdit flag for the edit item
31094 2005-10-01  Peter Dennis Bartok  <pbartok@novell.com>
31096         * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
31097           be found
31099 2005-09-30  Jackson Harper  <jackson@ximian.com>
31101         * ListBox.cs: Don't do a full refresh unless some data has
31102         actually changed.
31104 2005-09-30  Jackson Harper  <jackson@ximian.com>
31106         * TreeView.cs: Make sure that the checkboxes size is factored in
31107         even when not visible.
31109 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
31111         * FileDialog.cs: Fix Jordi's build break
31113 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
31115         * FileDialog.cs: 
31116                 - Use standard the Windows colours for the combobox as espected
31117                 - Dispose objects that use resouces when no longer need them
31119 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
31121         * X11DesktopColors.cs: Initial incomplete implementation
31122         * XplatUIX11.cs: Added call to initialize X11DesktopColors
31124 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com>
31126         * Theme.cs: 
31127           - Switched Theme color names to match the names defined in 
31128             System.Drawing.KnownColors. Life's hard enough, no need to make 
31129             it harder.
31130           - Added setters to all theme color properties so themes can set
31131             their color schemes. The setters also propagate the color changes
31132             to System.Drawing.KnownColors via reflection
31133         * ControlPaint.cs,  Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
31134           ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
31135           DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
31136           use the new, more logical theme color names
31137         * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
31138           post-NT colors
31139         * ThemeWin32Classic.cs:
31140           - Removed code to set the old classic Windows colors. Instead it
31141             now relies on the colors returned by System.Drawing.KnownColors
31142             which will be either modern static colors (Unix) or colors
31143             read from the user's configuration (Win32)
31144           - Updated to use the new, more logical theme color names
31145           - Switched DataGrid drawing code to use only Theme colors instead of
31146             a mix of System.Drawing.KnownColors and Theme colors
31147           - DrawFrameControl(): Removed code that fills the button area, the
31148             fill would overwrite any previous fill done by a control. This
31149             fixes bug #75338 
31150           - Added DrawReversibleRectangle() stub
31151         * ScrollableControl.cs: Set visible state to false when scrollbars
31152           are removed (pdn fix)
31153         * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added 
31154           DrawReversibleRectangle() method to allow drawing primitive 
31155           'rubber bands'
31156         * XplatUIX11.cs: Implemented DrawReversibleRectangle()
31158 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
31160         * ImageList.cs: Add(Icon): Create handle.
31162 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
31164         * ListView.cs:
31165         * ThemeWin32Classic.cs:
31166                 - Fixes detail mode
31167                 - Sets clippings
31168                 - Issues with drawing
31170 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
31172         * ImageList.cs: Moved RecreateHandle back to ImageList as event
31173           source has to be the ImageList.
31175 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
31177         * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
31179 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
31181         * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
31183 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
31185         * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
31187 2005-09-29  Jonathan Chambers <jonathan.chambers@ansys.com>
31188         * GridItem.cs: Fixed TODOs
31189         * GridItemCollection.cs: Added ICollection interface
31191 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
31193         * ImageList.cs: Resize icons when needed.
31195 2005-09-29  Jordi Mas i Hernandez <jordi@ximian.com>
31197         * ListViewItem.cs
31198                 - Fixes GetBounds and returns on screen rects
31199         * ListView.cs:
31200                 - Fixes vertical and horzintal scrolling of items
31201         * ThemeWin32Classic.cs:
31202                 - Fixes drawing
31203                 
31204 2005-09-29  Raja R Harinath  <harinath@gmail.com>
31206         * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
31208 2005-09-29  Kornél Pál  <kornelpal@hotmail.com>
31210         * ImageList.cs: Added comments about handle creation. Moved Handle,
31211           HandleCreated and OnRecreateHandle implementations to ImageCollection.
31212           Handle is created in Add methods.
31214 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
31215          
31216         * DataGridDrawingLogic.cs: 
31217                 - Takes rows into account on Colum calculations
31218                 - Returns the column when clickig
31219         * DataGrid.cs:
31220                 - Fixes default HitTestInfo values
31221                 - Fixes HitTestInfo.ToString
31222                 - Fixes ResetBackColor          
31223         
31224 2005-09-28  Jackson Harper  <jackson@ximian.com>
31226         * MdiChildContext.cs: Obey rules for fixed sized windows (no
31227         sizing or cursor changes). Also added some temp code to draw the
31228         titlebars text (Makes dev a little easier).
31230 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
31232         * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
31234 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
31235          
31236         * ListBox.cs: Fixes bug 76253
31238 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
31240         * ImageList.cs: Added comments about the current implementation. Added
31241           ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
31242           Format32bppArgb to preserve transparency and can use Graphics.FromImage
31243           while using the specified ColorDepth. ReduceColorDepth uses unsafe code
31244           with Bitmap.LockBits for better performance. Revised the whole file to
31245           match MS.NET behaviour and provide better performance. Non-public
31246           interface members are calling public members even when they throw
31247           NotSupportedException for better maintainability. Moved ColorDepth,
31248           ImageSize, ImageStream and TransparentColor implementations to
31249           ImageCollection for better performance as these properties are not used
31250           by ImageList.
31251         * ImageListStreamer.cs: Added a new internal constructor that takes an
31252           ImageList.ImageCollection and serializes Images based on
31253           ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
31254           match ImageList property name.
31256 2005-09-28  Kazuki Oikawa <kazuki@panicode.com>
31258         * ListBox.cs: Fixes IndexFromPoint for last item
31260 2005-09-27  Jackson Harper  <jackson@ximian.com>
31262         * Form.cs: Set the position of new mdi children correctly.
31264 2005-09-27  Jackson Harper  <jackson@ximian.com>
31266         * MdiClient.cs: New mdi children need to be added to the back of
31267         the controls collection so the zorder is set correctly. Also add a
31268         count of all the child windows that have been created.
31270 2005-09-27  Jackson Harper  <jackson@ximian.com>
31272         * Form.cs (CreateParams): Setup MDI forms correctly.
31274 2005-09-27  Jackson Harper  <jackson@ximian.com>
31276         * MdiChildContext.cs:
31277         * MonthCalendar.cs:
31278         * UpDownBase.cs:
31279         * ListBox.cs:
31280         * ListView.cs:
31281         * TextBoxBase.cs:
31282         * TreeView.cs:
31283         * ScrollableControl.cs:
31284         * ComboBox.cs: Add implicit controls using the new implict control
31285         functionality in ControlCollection. Also try to block multiple
31286         control add in a suspend/resume layout to save some cycles.
31287         
31288 2005-09-27  Jackson Harper  <jackson@ximian.com>
31290         * Control.cs: Add functionality to the controls collection to add
31291         'implicit controls' these are controls that are created by the
31292         containing control but should not be exposed to the user. Such as
31293         scrollbars in the treeview.
31294         * Form.cs: The list var of the ControlsCollection is no longer
31295         available because of the potential of implicit controls getting
31296         ignored by someone accessing the list directly.
31298 2005-09-26  Peter Dennis Bartok  <pbartok@novell.com>
31300         * Control.cs: Fixed SetChildIndex; it no longer causes a child to
31301           loose it's parent. (Fixed bug introduced in r49103 when we added
31302           setting the child parent to null on Remove)
31304 2005-09-26  Gert Driesen  <drieseng@users.sourceforge.net>
31306         * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
31307         * Splitter.cs: Added missing attributes for BorderStyle property.
31308         * TextBoxBase.cs: Marked Calculate* methods internal.
31309         * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
31310         MS.NET.
31312 2005-09-26  Jordi Mas i Hernandez <jordi@ximian.com>
31313          
31314         * ListBox.cs: Fixes navigation to the last item in multicolumn lists
31316 2005-09-25  Jackson Harper  <jackson@ximian.com>
31318         * TreeView.cs: Update the node bounds correctly regardless of
31319         whether the node is visible.
31321 2005-09-25  Jackson Harper  <jackson@ximian.com>
31323         * ImageList.cs: Don't dispose the image after it is added to the
31324         image list. Only reformat images that need to be resized.
31326 2005-09-25  Jackson Harper  <jackson@ximian.com>
31328         * ImageList.cs: Don't set the format when changing the image.
31330 2005-09-25  Jackson Harper  <jackson@ximian.com>
31332         * TreeView.cs: We can't just assume the node has a font. Use the
31333         treeviews font if no node font is available.
31335 2005-09-25  Jackson Harper  <jackson@ximian.com>
31337         * TreeView.cs: Allow the scrollbars to be reset with negative
31338         values.
31339         - Don't add scrollbars to negative sized windows.
31341 2005-09-23  Jackson Harper  <jackson@ximian.com>
31343         * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
31344         old Mono.Posix. Also remove some stray code that shouldn't have
31345         been committed.
31347 2005-09-23  Jackson Harper  <jackson@ximian.com>
31349         * TreeView.cs: Attempt at proper sizing of the horizontal
31350         scrollbar. Also don't resize the scrollbars unless they are
31351         visible.
31353 2005-09-23  Jackson Harper  <jackson@ximian.com>
31355         * TreeView.cs: We don't need to expand the invalid area when the
31356         selection changes, as this is all drawn in the node's bounding
31357         box. The area needs to be expanded (previous typo was contracting
31358         it) when the focus rect moves.
31360 2005-09-23  Jackson Harper  <jackson@ximian.com>
31362         * TreeView.cs: Display the selection box under the correct
31363         circumstances. We were rendering white text with no selection box
31364         before.
31366 2005-09-23  Peter Dennis Bartok  <pbartok@novell.com>
31368         * TextControl.cs(Split): Now updates selection start/end if it points 
31369           into a line that's being split. Fixes a FIXME and bug #75258
31371 2005-09-23  Jackson Harper  <jackson@ximian.com>
31373         * Binding.cs:
31374         * ListControl.cs: Don't use the path when retrieving binding
31375         managers from the binding context. My bat sense tells me that the
31376         path is only used on insertion.
31378 2005-09-22  Jackson Harper  <jackson@ximian.com>
31380         * Splitter.cs: Set the cursor an easier way. (Thanks peter).
31382 2005-09-22  Jackson Harper  <jackson@ximian.com>
31384         * Splitter.cs: There are special cursors used for splitting.
31385         * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
31387 2005-09-22  Jackson Harper  <jackson@ximian.com>
31389         * Splitter.cs: Change the cursor appropriately when the splitter
31390         is moused over, so the user actually knows there is a splitter
31391         there.
31393 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
31395        * Label.cs : Fix ToString method to give same output as MS.NET
31397 2005-09-22  Jackson Harper  <jackson@ximian.com>
31399         * TreeView.cs: Create the scrollbars when the handle is created
31400         and add them right away, just make them invisble. Also account for
31401         the window being shrunk vertically to the point that the vert
31402         scrollbar needs to be added.
31403         - Remove some 0.5 adjustments to get around anti aliasing issues.
31404         
31405 2005-09-22  Jordi Mas i Hernandez <jordi@ximian.com>
31406          
31407         * MainMenu.cs: Fixes default value
31408         * MenuItem.cs: Fixes default value
31410 2005-09-22  Kazuki Oikawa  <kazuki@panicode.com>
31412         * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
31414 2005-09-21  Jackson Harper  <jackson@ximian.com>
31416         * Control.cs: Don't try to set the border style on the window if
31417         it hasn't been created. When the window is created the border
31418         style will be used.
31420 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
31422         * Control.cs (Update): Don't call XplatUI if we don't have a
31423           window handle yet
31425 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
31427         * ContainerControl.cs: Instead of throwing an exception, print
31428           a one-time warning about Validate not being implemented
31429         * XplatUIWin32.cs: Removed debug output
31431 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
31433         * Control.cs: Only set XplatUI background if we expect the windowing
31434           system to handle the background. This stops controls that draw their
31435           own background from flickering
31437         * XplatUIX11.cs: Support custom visuals and colormaps for window 
31438           creation. This allows, amongst other things, using MWF X11 windows 
31439           with OpenGL.
31441 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
31443         * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
31444           CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
31445           GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
31446           SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
31447           TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
31448           IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
31449           KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
31450           RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
31451           ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
31452           ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
31453           GridColumnStylesCollection.cs, 
31454           IDataGridColumnStyleEditingNotificationService.cs,
31455           PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
31456           MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
31457           GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs, 
31458           TreeNodeCollection.cs, AmbientProperties.cs, 
31459           RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
31460           DataObject.cs, ErrorProvider.cs, Splitter.cs,
31461           DataGridLineStyle.cs, Shortcut.cs, Control.cs,
31462           FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
31463           BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
31464           IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
31465           FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
31466           IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
31467           NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
31468           PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
31469           SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
31470           FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
31471           DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
31472           ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
31473           RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
31474           MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
31475           ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
31476           CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
31477           MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
31478           NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
31479           ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
31480           SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
31481           Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
31482           RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
31483           DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
31484           ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
31485           PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
31486           DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
31487           ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
31488           AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
31489           RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
31490           CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
31491           SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
31492           Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
31493           SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
31494           ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
31495           TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
31497 2005-09-21  Jackson Harper  <jackson@ximian.com>
31499         * TreeNode.cs: Call Before/After Expand not Collapse when
31500         expanding.
31502 2005-09-20  Jackson Harper  <jackson@ximian.com>
31503         
31504         * XplatUIX11.cs: Use the more hand looking hand (in most themes).
31506 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
31507          
31508         * ListViewItem.cs:
31509                 - Fixes bug 76120
31510                 - Fixes proper storing of subitems
31511                 - Fixes not updated items
31513 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com>
31515         * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
31516           things if our window handle isn't created yet. Also disabled 
31517           debug for TextBoxBase
31519 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com> 
31521         * MenuAPI.cs: Remove filtering of events to allow menu usage
31523 2005-09-20  Miguel de Icaza  <miguel@novell.com>
31525         * Cursor.cs: Allow null to be passed to Cursor.Current.
31527 2005-09-20  Alexander Olk  <alex.olk@googlemail.com>
31529         * ThemeWin32Classic.cs:
31530           - Change some private methods/fields to protected virtual so that 
31531             they can be accessed and overriden in derived classes
31532           - First refactoring of some methods. Derived themes now don't 
31533             need to duplicate the complete code from ThemeWin32Classic
31534         * ThemeNice.cs:
31535           - Added nice StatusBar
31536           - Derive from ThemeWin32Classic and not Theme
31537           - Removed duplicate ThemeWin32Classic code
31539 2005-09-20  Miguel de Icaza  <miguel@novell.com>
31541         * Control.cs (ControlCollection.Add): If the value null is passed
31542         the control is ignored. 
31544         Optimize this loop.
31546 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com> 
31548         * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
31549           PostQuitMessage state.
31550         * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
31552 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com>
31554         * Application.cs: Our constructor will never get called, move 
31555           initialization to fields; fixes bug #75933
31557 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
31559         * FileDialog.cs :
31560                 - Allow files to be selected properly using file name
31561                 combo box.
31562                 - Add ability to change diretory (absolute / relative)
31563                 using file name combo box.
31565 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
31566          
31567         * ListBox.cs: 
31568                 - Fixes Multicolumn listboxes item wrong calculations
31569                 - Allows to click when only one item is in the listbox
31570                 - Fixes crash when no items using keyboard navigation
31572 2005-09-16  Alexander Olk  <alex.olk@googlemail.com>
31574         * ComboBox.cs: Reverted almost everything from the latest patch which
31575           broke ComboBox
31577 2005-09-16  Kazuki Oikawa <kazuki@panicode.com>
31578         
31579         * ToolTip.cs:
31580                 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
31581         * ComboBox.cs:
31582                 - When DropDownStyle is Simple, it does not show scrollbar 
31583                 to the last item of the list.
31584                 - When DropDownStyle is Simple, it crashed when the list was 
31585                 scrolled down with the down cursor key.
31586                 - Fixed a bug that when DropDownStyle is DropDownList, the 
31587                 selected item was not shown.
31588                 - The position of the selected item was not preserved when 
31589                 the next dropdown happened.
31590         * ThemeWin32Classic.cs:
31591                 - Items were wrapped at the right end.
31592         * CheckedListBox.cs:
31593                 - Fixed Add method
31594         * ListBox.cs:
31595                 - Items should be fully shown.
31596                 - When resizing and vertical scrollbar disappeared, the item 
31597                 of index 0 should be on the top of the list.
31598                 - GetItemRectangle should consider the size of ver. scrollbar
31599         * StatusBar.cs:
31600                 - SizingGrip area should not be allocated when it is not 
31601                 displayed.
31602                 - Now it reflects MinWidth of the containing panel and 
31603                 fixed a crash that happens when its width becomes so small.
31605 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
31607         * CheckedListBox.cs: Fixes bug 76028
31608         * ListBox.cs: Fixes bug 76028
31610 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
31612         * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
31613         * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
31615 2005-09-12  Jordi Mas i Hernandez <jordi@ximian.com>
31617         * XplatUIX11.cs: fixes System.NullReferenceException in some situations
31619 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
31621         * IRootGridEntry.cs: Changed namespace to PropertyGridInternal 
31623 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
31625         * IRootGridEntry.cs: Added
31626         * PropertyGridCommands.cs: Added
31627         * PropertiesTab.cs: Added missing methods and property
31628         * PropertyGridView.cs: Made class internal
31629         * PropertyGridTextBox.cs: Made class internal
31631 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
31633         * MimeIcon.cs: Try to check some other environment variables
31634           if "DESKTOP_SESSION" returns "default"
31636 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
31638         * ThemeNice.cs: Corrected background colors (e.g. menus)
31639         * ColorDialog.cs: Use correct background colors for controls
31641 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
31643         * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
31645 2005-09-08  Peter Dennis Bartok  <pbartok@novell.com>
31647         * RichTextBox.cs: Added initial implementation
31648         * lang.cs: Removed. Was accidentally checked in long time ago
31649         * TODO: Removed. Contents were obsolete
31651 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
31652                                                                                 
31653         * PropertiesTab.cs : Added
31655 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
31656                                                                                 
31657         * PropertyGrid.cs : Update
31658         * PropertyGridView.cs : Update
31659         * System.Windows.Forms.resx : Added images and strings
31661 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com> 
31663         * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
31665 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com>
31667         * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
31668           a busy loop right after the Ungrab the X11 display is otherwise 
31669           blocked
31671 2005-09-06  Jordi Mas i Hernandez <jordi@ximian.com>
31673         * ThemeWin32Classic.cs: Optimise the use of clipping
31675 2005-09-05  Jordi Mas i Hernandez <jordi@ximian.com>
31677         * DataGrid.cs: fixes recursion bug
31679 2005-09-03  Alexander Olk  <alex.olk@googlemail.com>
31681         * ThemeNice.cs: 
31682           - Draw RadioButton and CheckBox Buttons with DrawButtonBase
31683           - Cleanup
31685 2005-09-02  Alexander Olk  <alex.olk@googlemail.com>
31687         * ThemeNice.cs: Draw nice ProgressBars
31689 2005-09-01  Miguel de Icaza  <miguel@novell.com>
31691         * VScrollBar.cs: Another buglet found by Aaron's tool. 
31693         * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
31694         bug finder.
31696 2005-08-30  Alexander Olk  <alex.olk@googlemail.com>
31698         * ThemeNice.cs:
31699           - Added nicer menu drawing
31700           - Updated DrawTab
31701           - some refactoring
31703 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
31705         * CreateParams.cs (ToString): Made output match MS
31706         * Control.cs (Text): Don't set Text or Focus via XplatUI unless 
31707             handle is already created (to avoid forcing window creation)
31708         * XplatUIX11.cs: Set window text to caption after creating window,
31709           in case Text was set before window was created
31710         * Form.cs: Use this.Text instead of a static string as caption
31712 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
31714         * NotifyIcon.cs: Don't set the window to visible; this screws
31715           up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
31716           OnPaint without a bitmap)
31717         * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't 
31718           happen very often anyway; we could add the check to the WM_PAINT 
31719           event generation code
31721 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
31723         * NotifyIcon.cs: Fill the icon area with a background color, to 
31724           avoid 'residue' when transparent icons are drawn
31725         * XplatUIX11.cs:
31726           - Handle whole_window == client_window when destroying windows
31727           - SystrayAdd(): Set client_window to whole_window value to
31728             get mouse and other events passed to NotifyIcon
31730 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
31732         * Form.cs: Set proper default for Opacity property
31733         * NotifyIcon.cs:
31734           - ShowSystray(): Don't bother creating telling the OS
31735             about the systray item if no icon is provided
31736           - Now handles WM_NCPAINT message to deal with whole/client window
31737             split
31738           - Create window as visible to not get caught by Expose optimization
31739         * Hwnd.cs: Removed debug message
31740         * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
31741           StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched 
31742             PaintEventStart/End to use new client argument
31743         * TextBoxBase.cs:
31744           - Commented out debug messages
31745           - Switched PaintEventStart/End to use new client argument
31746         * XplatUI.cs: Added client window bool to PaintEventStart()/
31747           PaintEventEnd() calls, to support drawing in non-client areas
31748         * XplatUIDriver.cs: 
31749           - Added client window bool to PaintEventStart()/PaintEventEnd() 
31750             calls, to support drawing in non-client areas
31751           - Added conditional compile to allow using MWF BeginInvoke 
31752             on MS runtime
31753         * XplatUIX11.cs:
31754           - Added some conditional debug output
31755           - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
31756             whole/client window split
31757           - Implemented handling of client argument to PaintEventStart()/End()
31758         * Control.cs:
31759           - Throw exception if BeginInvoke() is called and the window handle
31760             or one of the window's parent handles is not created
31761           - Added conditional compile to allow using MWF BeginInvoke on
31762             MS runtime
31763           - get_Parent(): Only sets parent if handle is created. This avoids
31764             forcing window handle creation when parent is set.
31765           - Now fires Layout and Parent changed events in proper order
31766           - Switched to use Handle instead of window.Handle for Z-Order setting,
31767             the get_Parent() patch above causes us to possibly get null for 'window'
31768           - Implemented handling of client argument to PaintEventStart()/End()
31769           - Now reports back to windows that WM_SETCURSOR was handled (to avoid
31770             default handling)
31771           - Now sends a Refresh() to all child windows when Refresh() is called
31773 2005-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
31775         * Form.cs: Added (non-functional) Opacity property
31776         * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
31778 2005-08-29  Alexander Olk  <xenomorph2@onlinehome.de>
31779         * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
31780           use export MONO_THEME=nice to activate it.
31781           Currently supported controls:
31782           - Button
31783           - ComboBox
31784           - ScrollBar
31785           - TabControl (TabAlignment.Top only, other will follow)
31786         * ThemeEngine.cs: Add theme nice
31787         * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
31788           if enabled
31790 2005-08-25  Jonathan Chambers  <jonathan.chambers@ansys.com> 
31792         * Splitter.cs: Resize docked control and its neighbor.
31794 2005-08-24  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
31795         -- Making Windows with Menus layout correctly --
31796         * Form.cs : The first leg of the fix
31797                 Menu setter - adjust Client Size as needed to make space for the menu
31798                 SetClientSizeCore - doesn't call base version to be able to pass the 
31799                         menu handle to XplatUI.CalculateWindowRect
31800         * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
31801         * XplatUIX11.cs: The critical second leg of the fix
31802                 GetWindowPos needs to use a recalculated client_rect
31803                 so that resizing the window doesn't break layout of child controls. 
31804                 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
31805                 Lots of \t\n killed
31807 2005-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
31809         * Label.cs: Now properly recalculates width and height on Font and Text
31810           changes if AutoSize is set
31812 2005-08-19  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
31813         * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
31815 2005-08-19  Jordi Mas i Hernandez <jordi@ximian.com>
31817         * ImageList.cs: Makes ToString method compatible with MS
31819 2005-08-18  Jordi Mas i Hernandez <jordi@ximian.com>
31821         * MenuAPI.cs: fixes bug 75716
31823 2005-08-11 Umadevi S <sumadevi@novell.com>
31824         * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
31826 2005-08-11 Umadevi S <sumadevi@novell.com>
31827         * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
31829 2005-08-10  Umadevi S <sumadevi@novell.com>
31830         * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
31832 2005-08-07  Jordi Mas i Hernandez <jordi@ximian.com>
31834         * Menu.cs: fixes bug 75700
31835         * MenuAPI.cs: fixes navigation issues
31837 2005-08-09  Umadevi S <sumadevi@novell.com>
31838         * CheckedListBox.cs - simple fix for GetItemChecked.
31840 2005-08-08  Jordi Mas i Hernandez <jordi@ximian.com>
31842         * ComboBox.cs: Serveral fixes
31843         * ListBox.cs: Serveral fixes
31845 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
31847         * ComboBox.cs: Fixes FindString methods and GetItemHeight
31848         * ListBox.cs: Fixes FindString methods
31850 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
31852         * DataGrid.cs: fixes bugs exposed by new tests
31854 2005-08-04  Peter Dennis Bartok  <pbartok@novell.com> 
31856         * Mime.cs: Compile Mono assembly references only if compiling
31857           with Mono (Allows to build with VS.Net again)
31859 2005-07-28  Marek Safar  <marek.safar@seznam.cz>
31861         * Control.cs (PaintControlBackground): Draw background image
31862         corrrectly.
31863         (CheckForIllegalCrossThreadCalls): Stubbed.
31864         
31865         * Form.cs (OnCreateControl): Center when should be centered.
31866         
31867         * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
31869 2005-07-19  Jordi Mas i Hernandez <jordi@ximian.com>
31871         * Binding.cs: Binding to properties should be case unsensitive
31873 2005-07-18 vlindos@nucleusys.com
31875         * DataGrid.cs: fixes setmember order
31877 2005-07-07  Alexander Olk  <xenomorph2@onlinehome.de>
31879         * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
31880         * FileDialog.cs: FileDialog is now resizable and uses the new
31881           MimeIconEngine
31883 2005-07-06  Jordi Mas i Hernandez <jordi@ximian.com>
31885         * DataGridTextBoxColumn.cs: default value
31886         * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
31887         * GridTableStylesCollection.cs: fixes checking MappingName
31888         * DataGridDrawingLogic.cs: fixes drawing logic issues
31889         * DataSourceHelper.cs: rewritten to make compatible with more data sources
31890         * DataGrid.cs: fixes    
31892 2005-07-06  Alexander Olk  <xenomorph2@onlinehome.de>
31894         * MimeGenerated.cs: Use case sensitive comparer for
31895           NameValueCollections
31897 2005-07-01  Jordi Mas i Hernandez <jordi@ximian.com>
31899         * DataGridTextBoxColumn.cs: bug fixes, code refactoring 
31900         * ThemeWin32Classic.cs: bug fixes, code refactoring
31901         * DataGridDrawingLogic.cs:  bug fixes, code refactoring
31902         * DataGrid.cs: bug fixes, code refactoring
31903         * DataGridTextBox.cs: bug fixes, code refactoring
31904         * DataGridColumnStyle.cs:  bug fixes, code refactoring
31905         * Theme.cs:  bug fixes, code refactoring
31907 2005-07-01  Peter Bartok  <pbartok@novell.com> 
31909         * TextControl.cs: Quick fix for the reported crash on ColorDialog
31910           and other text box usage
31912 2005-07-01  Jackson Harper  <jackson@ximian.com>
31914         * TabControl.cs: Make sure the bottom of the tab covers the pages
31915         border.
31917 2005-06-30  Peter Bartok  <pbartok@novell.com> 
31919         * Form.cs (ShowDialog): Assign owner of the dialog
31920         * TextBoxBase.cs: Always refresh caret size when deleting, caret
31921           might have been moved to a tag with different height
31923 2005-06-30  Jackson Harper  <jackson@ximian.com>
31925         * Form.cs: Don't create an infinite loop when setting focus
31926         * MenuItem.cs: Don't dirty the parents if we don't have any
31928 2005-06-29  Ben Maurer  <bmaurer@ximian.com>
31930         * LibSupport.cs: Rename
31932 2005-06-29  Peter Bartok  <pbartok@novell.com>
31934         * TextBoxBase.cs: Re-align caret after deleting a character
31935         * TextControl.cs:
31936           - DeleteChars(): Ensure that tag covers the provided position
31937           - StreamLine(): Drop reference for dropped tag
31939 2005-06-29  Peter Bartok  <pbartok@novell.com> 
31941         * TextControl.cs: 
31942           - Selections now work properly, anchoring at the initial location
31943             and properly extending in either direction (SetSelectionToCaret(),
31944             SetSelectionStart() and SetSelectionEnd())
31945           - No longer redraws the whole control on selection change, now
31946             calculates delta between previous and new selection and only
31947             invalidates/redraws that area
31948           - Fixed FindPos() math off-by-one errors
31949           - Changed DeleteChars() to verify the provided tag covers the
31950             provided position, selections may have a tag that doesn't cover
31951             the position if the selection is at a tag border
31952           - Fixed off-by-one errors in DeleteChars()
31953           - Added missing streamlining check in DeleteChars() to remove
31954             zero-length tags
31955           - Implemented Invalidate() method, now properly calculates exposures
31956             between two given lines/positions
31957           - Implemented SetSelection()
31958           - Obsoleted and removed FixupSelection()
31959           - Improved RecalculateDocument() logic, removing code duplication
31961 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
31963         * LibSupport.cs: changes to match different input/output arguments.
31965 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
31967         * LibSupport.cs: added libsupport.so init routine.
31969 2005-06-29  Jordi Mas i Hernandez <jordi@ximian.com>
31970         
31971         * ControlBindingsCollection.cs
31972                 - Throws an exception on null datasource when adding
31973                 - Checks for duplicated bindings when adding
31975 2005-06-28  Jackson Harper  <jackson@ximian.com>
31977         * TreeView.cs (OnKeyDown): Support left and right properly
31978         (navigates as well as expanding and collapsing.
31979         - Add support for Multiply, this expands all the selected nodes
31980         children.
31981         - Fix some tabbing.
31983 2005-06-28  Jackson Harper  <jackson@ximian.com>
31985         * TreeView.cs: Implement keyboard navigation, currently supports,
31986         LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
31987         support for toggling checkboxes with the space bar.
31989 2005-06-28  Jackson Harper  <jackson@ximian.com>
31991         * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
31992         tree.
31994 2005-06-28  Jackson Harper  <jackson@ximian.com>
31996         * TreeView.cs: Add missing event.
31998 2005-06-27  Peter Bartok  <pbartok@novell.com> 
32000         * TextControl.cs:
32001           - Made line ending size configurable (now allows for counting 
32002             lineendings as \n or \r\n)
32003           - Added margin to viewport to keep caret visible on right side
32004           - Fixed translation routines for line/pos to documentpos to consider
32005             cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
32006           - Fixed some line-endings to be unix style
32007           - Fixed Document.FormatText to perform it's calculations 1-based
32008           - Added descriptions for a few methods that might otherwise get 
32009             used wrong
32010           - Added NOTE section with some basic conventions to remember at 
32011             the top of the file
32012           - Major fixup for RichTextBox selection drawing:
32013             * Fixed crashes when multiple tags on a single line were selected
32014             * fixed selection box drawing not overlaying text
32015             * fixed bogus offset calculation for tags not starting at index 1
32016             * Switched behaviour from using multiple Substrings of a 
32017               StringBuilder.ToString() to using multiple 
32018               StringBuilder.ToString(start, length) statements, hoping this is
32019               faster (kept original version commented out in the code, in case
32020               original version was faster)
32021         * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if 
32022           alignment != Left
32023         * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
32024           call it as well
32026 2005-06-27  Jackson Harper  <jackson@ximian.com>
32028         * TabControl.cs: Move to the left and right with the arrow
32029         keys. These keys don't cycle beyond first and last like
32030         tab. Refresh all the tabs when scrolling them to the left or
32031         right.
32033 2005-06-27  Jackson Harper  <jackson@ximian.com>
32035         * TabControl.cs:
32036           - ToString: Added method
32037           - CreateParams: Remove TODO and comment
32038           - OnKeyDown: Cycle through bounds properly.
32039           - SelectedIndex: Scroll to the right or left if we need to
32040           display the newly selected tab.
32042 2005-06-23  Jackson Harper  <jackson@ximian.com>
32044         * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
32045         set.
32047 2005-06-23  Jackson Harper  <jackson@ximian.com>
32049         * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
32050         CTRL-SHIFT-TAB, and HOME, END are there any others?
32052 2005-06-23  Jackson Harper  <jackson@ximian.com>
32054         * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
32056 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
32057         
32058         * DataGridTextBoxColumn.cs: fixes and enhancements
32059         * ThemeWin32Classic.cs: fixes and enhancements
32060         * DataGridBoolColumn.cs:  fixes and enhancements
32061         * DataGridDrawingLogic.cs:  fixes and enhancements
32062         * CurrencyManager.cs: fixes and enhancements
32063         * DataGrid.cs: fixes and enhancements
32064         * DataGridColumnStyle.cs:  fixes and enhancements
32066 2005-06-22  Jackson Harper  <jackson@ximian.com>
32068         * TabControl.cs: Add some missing methods that just call into the
32069         base. Make the TabPageCollection's IList interface behave in the
32070         same manner as the MS implementation.
32072 2005-06-22  Peter Bartok  <pbartok@novell.com> 
32074         * TextControl.cs: Added sanity check
32075         * TextBoxBase.cs: 
32076           - Fixed wrapping behaviour, don't set wrap on single line controls
32077             (this fixes the breakage of colordialog introduced in an earlier
32078              checkin)
32079           - Added rudimentary support for autoscrolling right-aligned controls
32080             (still needs fixing, also, center alignment scroll is missing)
32082 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
32083         
32084         * ScrollBar.cs: Fixes thumbpos on Maximum values
32086 2005-06-21  Jonathan Chambers <jonathan.chambers@ansys.com>
32087         
32088         * PropertyGridView.cs: Pass context information to UITypeEditors 
32090 2005-06-21  Peter Bartok  <pbartok@novell.com> 
32092         * TextBoxBase.cs:
32093           - Now calling PositionCaret with absolute space coordinates
32094           - Enabled vertical scrolling
32095           - Better tracking of scrollbar changes, tied into WidthChange
32096             event
32097           - Improved cursor tracking
32098           - Removed debug output
32099         * TextControl.cs:
32100           - PositionCaret coordinates are now works in absolute space, not 
32101             the canvas
32102           - Improved tracking of document size
32103           - Added events for width and height changes
32105 2005-06-21  Peter Bartok  <pbartok@novell.com>
32107         * Form.cs: Set focus to active control when form is activated
32108         * TextControl.cs: 
32109           - Added word-wrap functionality to RecalculateLine() 
32110           - Added some short function descriptions for VS.Net to aid in
32111             writing dependent controls
32112           - Added Caret property, returning the current coords of the caret
32113           - Added ViewPortWidth and ViewPortHeight properties
32114           - Added Wrap property
32115           - Added CaretMoved event
32116           - Removed some old debug code
32117           - Split() can now create soft splits
32118           - Added PreviousTag()/NextTag() to allow walking "tag-lists"
32119           - Added method to format existing text
32120           - Fixed size/alignment calculations to use viewport
32121           - RecalculateDocument now can handle changing line-numbers while
32122             calculating lines
32124         * TextBox.cs:
32125           - Added some wrap logic, we don't wrap if alignment is not left
32126           - Added casts for scrollbar var, base class switched types to
32127             also support RichTextBoxA
32128           - Implemented handling of scrollbar visibility flags
32130         * TextBoxBase.cs:
32131           - Switched scrollbars type to RichTextBoxScrollBars to support
32132             RichTextBox
32133           - Added tracking of canvas width/height
32134           - Switched scrollbars to be not selectable (to keep focus on text)
32135           - Added central CalculateDocument() method to handle all redraw
32136             requirements
32137           - Added ReadOnly support
32138           - Added WordWrap support
32139           - Fixed handling of Enter key (we now treat it as a DialogKey)
32140           - Fixed caret positioning when h or v scroll is not zero
32141           - Fixed placing/generation of vertical scrollbar
32142           - Added CalculateScrollBars() method to allow updating scrollbar
32143             limits and visibility
32144           - Fixed handling of horizontal scroll
32145           - Added handling of vertical scroll
32146           - Implemented auto-'jump' when caret moves to close to a left or
32147             right border and there is text to be scrolled into view (currently
32148             there's the potential for a stack overflow, until a bug in
32149             scrollbar is fixed)
32151 2005-06-21  Geoff Norton  <gnorton@customerdna.com>
32152         
32153         * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
32155 2005-06-19  Alexander Olk  <xenomorph2@onlinehome.de>
32157         * Mime.cs:
32158         - added inodes.
32159         - return application/x-zerosize for files with size zero
32160           (if no extension pattern matches).
32161         - check matches collection for strings too.
32162         - return only the first mime type if the name value
32163           collection has more than one mime type.
32165 2005-06-18  Jonathan Chambers <jonathan.chambers@ansys.com>
32166         
32167         * PropertyGrid.cs: Cleaned up some TODOs
32168         * PropertyGridView.cs: Added support for UITypeEditors
32170 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
32171         
32172         * DataGrid.cs: clears cached value
32174 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
32176         * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
32177         * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
32178         * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
32179         * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
32180         
32181 2005-06-16  Jordi Mas i Hernandez <jordi@ximian.com>
32183         * ThemeWin32Classic.cs: fixes colour
32185 2005-06-15  Peter Bartok  <pbartok@novell.com>
32187         * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
32188         * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
32189         * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
32190         * Control.cs: Added some MWFCategory and MWFDescription attributes
32191         * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
32193 2005-06-15  Alexander Olk  <xenomorph2@onlinehome.de>
32195         * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
32196         usage
32198 2005-06-14  Jordi Mas i Hernandez <jordi@ximian.com>
32200         * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
32201         * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
32202         * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
32203         * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
32204         * DataGrid.cs: default datagrid settings for Default Styles, fixes
32205         * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
32207 2005-06-13  Jackson Harper  <jackson@ximian.com>
32209         * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
32210         isn't printed when the user enables dropping. (X11 does accept
32211         drops).
32212         
32213 2005-06-13  Jackson Harper  <jackson@ximian.com>
32215         * TreeView.cs: Remove some TODOS.
32217 2005-06-13  Jackson Harper  <jackson@ximian.com>
32219         * Form.cs: Hook into the mdi framework.
32220         * MdiClient.cs: Use the base control collections add method so
32221         parents get setup correctly. Set the default back colour and dock
32222         style.
32223         * MdiChildContext.cs: New class, this bad actor handles an
32224         instance of an MDI window. Right now there is only basic
32225         support. You can drag, close, and resize windows. Minimize and
32226         Maximize are partially implemented.
32228 2005-06-13  Jackson Harper  <jackson@ximian.com>
32230         * XplatUIX11.cs: Mash numbers together properly, otherwise we get
32231         freaky when both vals are negative. NOTE: There are probably other
32232         places in XplatUIX11 that this needs to be done.
32234 2005-06-13  Jordi Mas i Hernandez <jordi@ximian.com>
32236         * DataGrid.cs: implement missing methods, move KeyboardNavigation
32237         * DataGridColumnStyle.cs: fixes signature
32239 2005-06-12  Jackson Harper  <jackson@ximian.com>
32241         * XplatUIX11.cs: Use sizing cursors similar to the ones on
32242         windows.
32244 2005-06-11  Jackson Harper  <jackson@ximian.com>
32246         * StatusBarPanel.cs: Signature cleanups. Implement
32247         BeginInit/EndInit.
32249 2005-06-10  Jordi Mas i Hernandez <jordi@ximian.com>
32251         * DataGridTextBoxColumn.cs: Honors aligment
32252         * GridColumnStylesCollection.cs: Contains is case unsensitive
32253         * GridTableStylesCollection.cs: several fixes
32254         * DataGridTableStyle.cs: default column creation
32255         * DataGridDrawingLogic.cs: fixes
32256         * CurrencyManager.cs: ListName property
32257         * DataGrid.cs: multiple styles support
32258         * DataGridColumnStyle.cs: fixes
32259         
32261 2005-06-10  Peter Bartok  <pbartok@novell.com>
32263         * Control.cs(Select): Moved SetFocus call to avoid potential
32264           loops if controls change the active control when getting focus
32265         * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
32266           the up/down buttons
32268 2005-06-10  Matthias Felgner  <matthiasf@voelcker.ocm>
32270         * ImageListConverter.cs: Implemented
32272 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
32274         * MonthCalendar.cs: Wired in NumericUpDown control for year
32276 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
32278         * MonthCalendar.cs: Removed MonoTodo attributes on Click and
32279           DoubleClick events, since they are not meant to be fired.
32281 2005-06-09  Peter Bartok  <pbartok@novell.com>
32283         * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
32284           Jonathan's standalone controls into MWF, implemented missing
32285           events, attributes and methods; added xxxAccessible classes
32286         * AccessibleObject.cs: Made fields internal so other classes
32287           can change them if needed
32289 2005-06-09  Jonathan Gilbert  <2a5gjx302@sneakemail.com>
32291         * UpDownBase.cs: Complete implementation
32292         * NumericUpDown.cs: Complete implementation
32293         * DomainUpDown.cs: Complete implementation
32295 2005-06-09  Jordi Mas i Hernandez <jordi@ximian.com>
32297         * DataGridTextBoxColumn.cs: drawing fixes
32298         * DataGridCell.cs: fixes ToString method to match MSNet
32299         * DataGridTableStyle.cs: fixes
32300         * DataGridBoolColumn.cs: fixes, drawing
32301         * DataGridDrawingLogic.cs: fixes, new methods
32302         * DataGridTextBox.cs: Keyboard and fixes
32303         * DataGrid.cs:
32304                 - Keyboard navigation
32305                 - Scrolling fixes
32306                 - Row selection (single, multiple, deletion, etc)
32307                 - Lots of fixes
32308         
32309 2005-06-07  Jackson Harper  <jackson@ximian.com>
32311         * ThemeWin32Classic.cs: Clear the background area when drawing
32312         buttons.
32314 2005-06-06  Peter Bartok  <pbartok@novell.com>
32316         * ImageListStreamer.cs: Fixed signature for GetData
32317         * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
32318         * ComboBox.cs:
32319           - Added missing ChildAccessibleObject class
32320           - Added missing OnXXXFocus overrides, switched to using those
32321             instead of the event handler
32322         * Control.cs:
32323           - Added Parent property for ControlAccessibleObject
32324           - Fixed signatures
32325           - Fixed attributes
32326           - Added ResetBindings()
32327         * ListBindingConverter.cs: Implemented some methods
32328         * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
32329         * ImageList.cs: Implemented basic handle scheme, removed TODOs
32330         * ContainerControl.cs: Fixed signature, now subscribing to the
32331           ControlRemoved event instead of overriding the handler, LAMESPEC
32332         * CurrencyManager.cs: Added missing attribute
32333         * MonthCalendar.cs: Added missing properties
32335 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
32337         * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
32338         
32339 2005-06-06  Gaurav Vaish and Ankit Jain
32341         * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
32342         * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
32343         
32344 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
32346         * Control.cs: fixes CreateParams Width / Height.
32348 2005-06-05  Peter Bartok  <pbartok@novell.com>
32350         * Win32DnD.cs: Removed compilation warnings
32352 2005-06-05  Peter Bartok  <pbartok@novell.com>
32354         * Control.cs (CreateParams): Since we don't know if one of the
32355           properties we use is overridden, lets make sure if we fail accessing
32356           we continue with a backup plan
32358 2005-06-05  Peter Bartok  <pbartok@novell.com>
32360         * Win32DnD.cs:
32361           - Removed debug output
32362           - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
32363             struct
32364           - Plugged resource leak
32365         * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
32366           MS size
32368 2005-06-05  Peter Bartok  <pbartok@novell.com>
32370         * XplatUIWin32.cs: Removed DnD code
32371         * Win32DnD.cs: Implemented drop source and drop target functionality
32373 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
32375         * UpDownBase.cs: remove duplicate addition of event, enable some code
32376         that was commented out.
32377         * NumericUpDown.cs: added missing attributes and Hexadecimal property.
32378         Validate input when a key is pressed. It works fine now for every
32379         combination of Hexadecimal. Only missing some drawing love when sharing
32380         space with other controls.
32382 2005-06-04  Peter Bartok  <pbartok@novell.com>
32384         * Control.cs:
32385           - We need to pass a window for DragDrop, so enable callback events
32386           - Added DnD callback events when being a DragSource
32387         * XplatUI.cs (StartDrag): Added window handle argument
32388         * XplatUIDriver.cs (StartDrag): Added window handle argument
32389         * QueryContinueDragEventArgs: Made fields internally accessible so
32390           drivers can set them
32391         * GiveFeedbackEventArgs: Made fields internally accessible so drivers
32392           can set them
32394 2005-06-03  Jordi Mas i Hernandez <jordi@ximian.com>
32396         * DataGridTextBoxColumn.cs: column text editing
32397         * DataGridTableStyle.cs: Respect columns styles created by the user
32398         * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
32399         * DataGridBoolColumn.cs: bool column editing
32400         * DataGrid.cs: fixes to scrolling, properties, etc
32401         * DataGridTextBox.cs: handle keyboard
32402         * DataGridColumnStyle.cs: fixes
32404 2005-06-02  Jackson Harper  <jackson@ximian.com>
32406         * ImageListStreamer.cs: Somewhat broken implementation of
32407         GetObjectData. The RLE needs some work to match MS properly.
32409 2005-06-02  Jackson Harper  <jackson@ximian.com>
32411         * X11Dnd.cs: Attempting to keep at least one file in MWF
32412         monostyled.
32414 2005-06-02  Peter Bartok  <pbartok@novell.com>
32416         * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
32417           that way
32419 2005-06-02  Peter Bartok  <pbartok@novell.com>
32421         * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
32422         * XplatUI.cs: Added DoDragDrop() method
32423         * XplatUIDriver.cs: Added DoDragDrop() method
32425 2005-06-02  Jackson Harper  <jackson@ximian.com>
32427         * Splitter.cs: Implement BorderStyle.
32429 2005-06-02  Jackson Harper  <jackson@ximian.com>
32431         * XplatUIX11.cs: Tie into the X11Dnd subsystem.
32432         * X11Dnd.cs: New file. A subsystem that handles drag and drop on
32433         X11 using XDND.
32435 2005-06-02  Peter Bartok  <pbartok@novell.com>
32437         * DataObject.cs:
32438           - Added Data setter
32439           - Fixed broken insertion code for SetData, now also
32440             overwrites any existing entry of the same format name
32441         * Hwnd.cs: Added list of pointers that automatically gets
32442           freed when the window is disposed
32443         * XplatUI.cs: Call driver initialization method when loading
32444           a driver
32445         * Control.cs:
32446           - OnDragLeave takes EventArgs, not DragEventArgs
32447           - Added setting of WS_EX_ACCEPTFILES style when dropping is
32448             supported
32449           - Forces style update when drop state changes
32450         * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
32451           not perfect since we cannot (yet) call the IDataObject.GetData()
32452           method, we keep getting 0x80004005 error, dunno why)
32454 2005-06-02  Peter Bartok  <pbartok@novell.com>
32456         * DragEventArgs.cs: Make fields internal so we can cache the
32457           object and re-set the fields from XplatUI
32459 2005-06-02  Jackson Harper  <jackson@ximian.com>
32461         * Control.cs: Add some internal methods so the DnD subsystem can
32462         raise DnD events. Also call into the driver when AllowDrop is set.
32463         * XplatUI.cs:
32464         * XplatUIDriver.cs: New method for setting whether or not a window
32465         is allowed to accept drag and drop messages.
32466                 
32467 2005-06-01  Jordi Mas i Hernandez <jordi@ximian.com>
32468         
32469         * ScrollBar.cs: Make sure that values sent in Scroll events
32470         are always between Maximum and Minimum.
32472 2005-06-01  Marek Safar  <marek.safar@seznam.cz>
32474         * Menu.cs: Call MenuChanged when menuitem visibility has been
32475         changed.
32476         * MenuItem.cs: Rebuild menu when item is (not) visible.
32477         * MainMenu.cs: MainMenu has special MenuChanged.
32478         * Theme.cs: Caption and FrameBorderSize are not fixed.
32479         * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
32480         * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
32481         * XplatUIX11.cs,
32482         * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
32483         * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
32485 2005-05-30  Jackson Harper  <jackson@ximian.com>
32487         * DataFormat.cs: We can't statically initialize this stuff because
32488         it calls into the xplatui and could create a loop. So we lazy init
32489         it.
32491 2005-05-28  Jackson Harper  <jackson@ximian.com>
32493         * Control.cs: Proper implementation of Product(Name/Version).
32495 2005-05-27  Jackson Harper  <jackson@ximian.com>
32497         * DataObject.cs: Dont crash if no data is found.
32499 2005-05-26  Rafael Teixeira  <rafaelteixeirabr@hotmail.com>
32500         * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
32501                 as per status page, guessing it should be set to true
32503 2005-05-26  Jordi Mas i Hernandez <jordi@ximian.com>
32505         * DataGridTextBoxColumn.cs: Draws text and basic text formatting
32506         * DataGridTableStyle.cs: set proper formatting text, def header text
32507         * ThemeWin32Classic.cs: new themable paramaters
32508         * DataGridBoolColumn.cs: paint check box, get data, fixes
32509         * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
32510         * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
32511         * DataGridColumnStyle.cs: fixes
32512         * Theme.cs: new themable paramaters
32513                 
32514 2005-05-26  Peter Bartok  <pbartok@novell.com>
32516         * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
32518 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
32519         * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
32521 2005-05-24  Peter Bartok  <pbartok@novell.com>
32523         * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
32524           Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
32525           Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
32526           FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
32527           NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
32528           ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
32529           DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
32530           AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
32531           DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
32532           StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
32533           missing attributes, etc
32534         * DataGridPreferredColumnWidthTypeConverter.cs: Added
32536 2005-05-24  Peter Bartok  <pbartok@novell.com>
32538         * Help.cs: Added, implemented trivial functions, throws up MessageBox
32539           when user tries to get help
32540         * DataObject.cs, DataFormats.cs, LinkArea.cs,
32541           SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
32542           to suppress warnings
32543         * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
32544           avoid unreachable code warning
32546 2005-05-20  Peter Bartok  <pbartok@novell.com>
32548         * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
32550 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
32552         * DataGridTextBoxColumn.cs: Basic painting methods
32553         * DataGridTableStyle.cs: Set table style in the column
32554         * ThemeWin32Classic.cs: Use Theme for colors
32555         * DataGridDrawingLogic.cs: Implement more drawing
32556         * DataGrid.cs: drawing, theming, enhacements, fixes
32557         * DataGridColumnStyle.cs: fixes, drawing
32558         * Theme.cs: theming for Datagrid
32560 2005-05-20  Peter Bartok  <pbartok@novell.com>
32562         * Cursor.cs: Implemented GetObjectData() method
32564 2005-05-20  Peter Bartok  <pbartok@novell.com>
32566         * Cursors.cs: Added setting of cursor name
32567         * Cursor.cs:
32568           - Implemented constructors
32569           - Implemented Draw and DrawStretched
32570           - Implemented Current property
32571           - Implemented == and != operators
32572           - Implemented Dispose()
32573           - Implemented ToString
32574           - Added missing attributes
32575         * XplatUIX11.cs:
32576           - Added missing reset for OverrideCursor when DoEvents is called
32577           - Fixed creation of cursor, logic was wrong
32578         * XplatUIWin32.cs:
32579           - Added missing reset for OverrideCursor when DoEvents is called
32580           - Fixed creation of cursor, bit arrays were swapped
32581         * Clipboard.cs: Removed obsolete MonoTODO attribute
32583 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
32585         * ComboBox.cs: fixes OnSelectedItemChanged
32586         * ControlBindingsCollection.cs: fixes item range check
32588 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
32590         * UpDownBase.cs:
32591                 - Calc preferred height properly
32592                 - Implement missing properties
32593                 
32594         * NumericUpDown.cs: Implement missing events
32596 2005-05-19  Jackson Harper  <jackson@ximian.com>
32598         * TabControl.cs: New method that resizes the tab pages before
32599         redrawing them. This as needed as the control is double buffered
32600         and sizing will not be recalculated unless ResizeTabPages is
32601         called.
32602         * TabPage.cs: Set base.Text instead of Text in the constructor so
32603         that UpdateOwner does not get called. Use the new Redraw method of
32604         TabControl instead of Refresh so the sizing is recalculated.
32605         * ThemeWin32Classic.cs: Draw the text for button tabs.
32607 2005-05-19  Jackson Harper  <jackson@ximian.com>
32609         * Control.cs: Paint control background images. Fix typo where
32610         PaintControlBackground was not getting called correctly.
32612 2005-05-19  Peter Bartok  <pbartok@novell.com>
32614         * ScrollableControl.cs (DisplayRectangle): Undid my last change until
32615           I can investigate, apparently I broke FileDialog
32617 2005-05-19  Marek Safar  <marek.safar@seznam.cz>
32619         * AxHost.cs: Some simple properties.
32620         * Control.cs: window must be accessible after ctor.
32621         * Form.cs: Added TransparencyKey property.
32622         * TextBoxBase.cs: Implemented Clear. Text property can be null.
32623         * XplatUIWin32.cs: SetBorderStyle implemented.
32625 2005-05-18  Peter Bartok  <pbartok@novell.com>
32627         * DataObject.cs: Entries are not global but particular to the
32628           DataObject, now it behaves that way
32629         * XplatUIWin32.cs: Implemented Clipboard methods
32630         * Clipboard.cs: Implemented
32631         * ScrollableControl.cs (DisplayRectangle): Fixed calculation
32632         * XplatUIOSX.cs: Updated to final clipboard prototypes
32633         * XplatUIX11.cs: Implemented Clipboard methods
32634         * XplatUIDriver.cs: Updated to final clipboard prototypes
32635         * XplatUIStructs.cs:
32636           - Added BITMAPINFOHEADER struct
32637           - Added ClipboardFormats enum
32638         * X11Structs.cs:
32639           - Added ClipboardStruct
32640           - Added Atom enum items for clipboard types
32641           - Fixed atom types for Selection event structures
32642         * DataFormats.cs:
32643           - Added internal properties and methods for drivers to enumerate
32644             all known formats
32645           - Switched initialization method to allow drivers to assign their
32646             own IDs even for the MS predefined clipboard IDs
32647         * XplatUI.cs: Updated to final clipboard interface
32649 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
32650         * PropertyGridView.cs: Fixed compiler warnings.
32652 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
32653         * PropertyGrid.cs: Added some event calls
32654         * PropertyGridView.cs: Change drawing code to use double buffering
32655         * PropertyGridTextBox.cs: Changed Text property name
32656         * GridItem.cs: Added Bounds property.
32657         * GridEntry.cs: Added Bounds property.
32659 2005-05-17  Lluis Sanchez Gual  <lluis@novell.com>
32661         * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
32662         since GetType() may not return the correct type if the object is
32663         a remoting proxy.
32665 2005-05-17  Jordi Mas i Hernandez <jordi@ximian.com>
32667         * TreeNodeCollection.cs: fixes get/set item ranges
32668         
32669 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
32671         * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
32672                 
32673 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
32675         * ComboBox.cs: Fix item range comparation
32676         * ListView.cs: Fix item range comparation
32678 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
32680         * FontDialog.cs:
32681           - Clear example panel when OnPaint is called
32682           - Better solution for displaying the example panel text
32683           - Select default indexes in the ListBoxes
32685 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
32687         * XplatUIOSX.cs: Avoid painting into invisible views.  Fixes #74926
32689 2005-05-11  Peter Bartok  <pbartok@novell.com>
32691         * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
32692         * SelectionRangeConverter.cs: Implemented
32693         * PropertyGrid.cs: Fixed attribute value
32694         * Control.cs:
32695           - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
32696           - Added Sebastien Pouliot's CAS Stack Propagation fixes
32697         * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
32698           that's common to all drivers. First methods to go there are
32699           Sebastien Pouliot's CAS Stack Propagation helper methods
32700         * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
32701           Sebastien Pouliot for CAS Stack Propagation
32703 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
32705         * OSXStructs.cs:
32706           XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
32708 2005-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
32710         * DataGridTextBoxColumn.cs: fixed some members
32711         * GridColumnStylesCollection.cs: indexed column is case insensitive
32712         * DataGridTableStyle.cs: fixes
32713         * ThemeWin32Classic.cs: add new theme parameter
32714         * Theme.cs: add new theme parameter
32715         * DataGridDrawingLogic.cs: Datagrid's drawing logic
32716         * DataGrid.cs: fixes, new internal properties, etc.
32717         * DataGridColumnStyle.cs: allows to set grid value
32718         *
32720 2005-05-10  Peter Bartok  <pbartok@novell.com>
32722         * AccessibleObject.cs:
32723           - Removed MonoTODO attribute on help, method is correct
32724           - Fixed Bounds property
32725         * AxHost.cs: Moved MonoTODO
32726         * ButtonBase.cs: Now setting AccessibleObject properties
32727         * RadioButton.cs: Setting proper AccessibleObject role
32728         * CheckBox.cs: Setting proper AccessibleObject role
32729         * ControlBindingsCollection.cs: Added properties, methods and attributes
32730         * DataFormats.cs: Fixed awkward internal API, and changed to enable
32731           userdefined DataFormats.Format items as well
32732         * ListControl.cs: Removed data_member from the public eye
32733         * OpenFileDialog.cs:
32734           - Made class sealed
32735           - Added missing attributes
32736         * SaveFileDialog.cs: Added missing attributes
32737         * ImageListStreamer.cs: Fixed code that caused warnings
32738         * LinkLabel.cs: Removed unreachable code
32739         * TreeView.cs: Fixed code that caused warnings
32740         * PropertyGridView.cs: Fixed code that caused warnings
32741         * GridColumnStylesCollection.cs: Added missing attributes
32742         * GridTableStylesCollection: Added missing attribute
32743         * PropertyManager: Added .ctor
32744         * SecurityIDType: Added
32745         * DataObject.cs: Implemented class
32746         * LinkArea.cs: Added missing attribute
32748 2005-05-11  Jordi Mas i Hernandez <jordi@ximian.com>
32750         * RadioButton.cs: call base method to allow to fire OnClick event
32751         * UpDownBase.cs: OnMouseUp call base method
32752         * CheckedListBox.cs: call base method before returning
32753         * TrackBar.cs: call base method before returning
32754         
32756 2005-05-10  Peter Bartok  <pbartok@novell.com>
32758         * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
32759           for messages
32761 2005-05-10  Peter Bartok  <pbartok@novell.com>
32763         * DataFormats.cs: Implemented
32764         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
32765           XplatUIX11.cs: Added Clipboard APIs
32766         * XplatUIWin32.cs: Implemented Clipboard APIs
32767         * FolderBrowserDialog.cs: Added missing event, attributes
32769 2005-05-10  Jordi Mas i Hernandez <jordi@ximian.com>
32771         * CheckBox.cs: call base method to allow to fire OnClick event
32773 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
32775         * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
32777 2005-05-06  Peter Bartok  <pbartok@novell.com>
32779         * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
32780         * Screen.cs: Implemented
32781         * HelpNavigator.cs: Added
32782         * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
32783           property
32784         * HelpProvider.cs: Implemented all we can do until we have a CHM
32785           help library (which means that "What's This" does work now)
32787 2005-05-06  Jackson Harper  <jackson@ximian.com>
32789         * XplatUIX11.cs: Fix waking up the main loop.
32790                 
32791 2005-05-05  Peter Bartok  <pbartok@novell.com>
32793         * XplatUI.cs: Updated revision
32794         * Form.cs: Removed enless loop
32795         * GroupBox.cs (OnPaint): Added call to base.OnPaint()
32796         * Label.cs (OnPaint): Added call to base.OnPaint()
32797         * ToolTip.cs: Made ToolTipWindow reusable for other controls
32798         * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
32799         * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
32800         * AxHost.cs: Added
32801         * ButtonBase.cs: Moved base.OnPaint() call to end of method
32802         * ThemeWin32Classic.cs: Replaced references to ToolTip with references
32803           to ToolTip.ToolTipWindow for drawing and size methods; this allows
32804           reuse of ToolTipWindow by other controls
32805         * SizeGrip.cs: Moved base.OnPaint() call to end of method
32806         * XplatUIX11.cs: Now clipping drawing area (experimental)
32807         * PictureBox.cs: Moved base.OnPaint() call to end of method
32808         * Theme.cs: Fixed ToolTip abstracts to match new format
32809         * ErrorProvider.cs: Implemented
32811 2005-05-05  Jordi Mas i Hernandez <jordi@ximian.com>
32813         * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
32814         * LinkLabel.cs:
32815                 - Adds cursors
32816                 - Handles focus
32817                 - Implements LinkBehavior
32818                 - Fixes many issues
32820 2005-05-03  Jackson Harper  <jackson@ximian.com>
32822         * ListView.cs: Calculate the scrollbar positioning on resize and
32823         paint, so they get put in the correct place.
32825 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
32827         * ColorDialogs.cs: The small color panels are now handled by
32828           SmallColorControl. This fixes drawing of the focus rectangle
32829           and adds a 3D border.
32831 2005-05-03  Peter Bartok  <pbartok@novell.com>
32833         * Control.cs: Modified version of Jonathan Chamber's fix for
32834           double-buffering
32836 2005-05-03  Jackson Harper  <jackson@ximian.com>
32838         * ListView.cs: Remove redraw variable. Control now handles whether
32839         or not a redraw needs to be done, and will only raise the paint
32840         event if redrawing is needed.
32842 2005-05-03  Jackson Harper  <jackson@ximian.com>
32844         * Splitter.cs: No decorations for the splitter form. Cache the
32845         hatch brush.
32847 2005-05-03  Jackson Harper  <jackson@ximian.com>
32849         * TreeView.cs: Use dashed lines to connect nodes. Use the
32850         ControlPaint method for drawing the focus rect instead of doing
32851         that in treeview.
32853 2005-05-02  Peter Bartok  <pbartok@novell.com>
32855         * LinkLabel.cs: Fixed the fixes from r43566 and 43521
32857 2005-04-29  Jackson Harper  <jackson@ximian.com>
32859         * ThemeWin32Classic.cs: Don't clear the GC that will clear the
32860         entire image buffer. Just clear the clipping rectangle.
32862 2005-04-29  Jackson Harper  <jackson@ximian.com>
32864         * ThemeWin32Classic.cs: Don't draw list view items that are
32865         outside the clipping rectangle.
32867 2005-04-29  Jordi Mas i Hernandez <jordi@ximian.com>
32869         * ListBox.cs: added horizontal item scroll
32871 2005-04-29  Jackson Harper  <jackson@ximian.com>
32873         * ThemeWin32Classic.cs: Remove some old debug code that was
32874         causing flicker with the new double buffering code.
32876 2005-04-29  John BouAntoun  <jba-mono@optusnet.com.au>
32878         * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
32879         behave like combobox and comboboxlist (still not sure if this is
32880         correct though).
32882 2005-04-28  Jackson Harper  <jackson@ximian.com>
32884         * ThemeWin32Classic.cs: Don't fill the middle of progress
32885         bars. This fills areas outside of the clip bounds that don't need
32886         to be filled.
32888 2005-04-28  Jackson Harper  <jackson@ximian.com>
32890         * Control.cs: Don't expose functionality to touch the image buffers.
32891         * ProgressBar.cs:
32892         * ListView.cs: We do not need to (and no longer can) manipulate
32893         the image buffers directly. All of this is handled by Control.
32895 2005-04-28  Peter Bartok  <pbartok@novell.com>
32897         * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
32898           RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
32899           RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
32901 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
32903         * Combobox:
32904                 - Adjust control's height for non-simple comboboxes (bug fix)
32905                 - Remove dead code
32906         * MenuAPI.cs: remove unused var
32907         * ScrollBar.cs: remove unsed var
32908                  
32909         * ListBox.cs: unselect items when clearing
32911 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
32913         * ListControl.cs: honors OnPositionChanged and default Selected Item
32914         * ListBox.cs: unselect items when clearing
32916 2005-04-27  Jackson Harper  <jackson@ximian.com>
32918         * X11Keyboard.cs: Initialize a default keyboard and give a warning
32919         if a "correct" keyboard is not found. This will make us not crash,
32920         but might give some users bad keyboard layouts...seems to be the
32921         same thing rewind does.
32923 2005-04-27  Jackson Harper  <jackson@ximian.com>
32925         * BindingManagerBase.cs: Attach the current/position changed
32926         handlers to their respective events.
32928 2005-04-27  Jackson Harper  <jackson@ximian.com>
32930         * Control.cs: Make sure that the first WM_PAINT does a full draw,
32931         not just a blit.
32932         * ThemeWin32Classic.cs: Don't fill the background for picture
32933         boxes. This could overright user drawing.
32934         * ComboBox.cs: Just fill the clipping rect not the entire client
32935         rect when drawing the background. This prevents pieces of the
32936         image buffer from getting overwritten and is theoretically faster.
32938 2005-04-26  Jordi Mas i Hernandez <jordi@ximian.com>
32940         * ComboBox.cs: Databinding support fixes, fire missing events
32941         * ListControl.cs: implement missing methods and properties, fixes
32942         * ThemeWin32Classic.cs: Databiding support on Drawing
32943         * CheckedListBox.cs: Databinding support fixes, fire missing events
32944         * ListBox.cs: Databinding support fixes, fire missing events
32945         
32946 2005-04-25  Peter Bartok  <pbartok@novell.com>
32948         * LinkLabel.cs: Length of LinkArea is not allowed to be negative
32950 2005-04-25  Jackson Harper  <jackson@ximian.com>
32952         * TreeView.cs: Use the horizontal scrollbars height not width when
32953         determining how much of the client area is available.
32955 2005-04-25  Jackson Harper  <jackson@ximian.com>
32957         * Control.cs: Double buffering is handled differently now. As per
32958         the spec, the extra buffer is created in the WM_PAINT message and
32959         passed down to the control's drawing code.
32960         * GroupBox.cs:
32961         * Label.cs:
32962         * CheckBox.cs:
32963         * ProgressBar.cs:
32964         * RadioButton.cs:
32965         * ColorDialog.cs:
32966         * ComboBox.cs:
32967         * PropertyGridView.cs:
32968         * UpDownBase.cs:
32969         * MessageBox.cs:
32970         * MenuAPI.cs:
32971         * ListView.cs:
32972         * ButtonBase.cs:
32973         * SizeGrip.cs:
32974         * ScrollBar.cs:
32975         * ListBox.cs:
32976         * TrackBar.cs:
32977         * ToolBar.cs:
32978         * PictureBox.cs:
32979         * DateTimePicker.cs:
32980         * StatusBar.cs:
32981         * TreeView.cs: Update to new double buffering system.
32982         * MonthCalendar.cs: Uncomment block, as Capture is now
32983         working. Update to new double buffering
32984         * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
32985         * PaintEventArgs.cs: New internal method allows us to set the
32986         graphics object. This is used for double buffering.
32987         * ThemeWin32Classic.cs: Give the picture box drawing code a clip
32988         rectangle. The internal paint_area var has been removed from
32989         StatusBar. The clipping rect should be used instead.
32990         * Theme.cs: Give the PictureBox drawing method a clipping rect.
32991         * TabPage.cs: The RefreshTabs method was removed, so just call the
32992         tab controls Refresh method now.
32993         * TabControl.cs: Update to new double buffering. Make sure the
32994         handle is created before sizing the tab pages, otherwise we will
32995         get stuck in a loop.
32997 2005-04-24  Borja Sanchez Zamorano <borsanza@gmail.com>
32999         * LinkLabel.cs: Fix typo, bug #74719; patch
33000           from Borja Sanchez Zamorano
33002 2005-04-22  Jackson Harper  <jackson@ximian.com>
33004         * TreeNode.cs: Implement Handle stuff.
33005         * TreeView.cs: Utility methods so nodes can get/lookup by handle.
33007 2005-04-22  Jordi Mas i Hernandez <jordi@ximian.com>
33009         * DataGridTextBoxColumn.cs: call base constructors, fixes
33010         * GridColumnStylesCollection.cs: missing events, methods, and functionality
33011         * GridTableStylesCollection.cs: fixes, check duplicate mapping names
33012         * DataGridTableStyle.cs: implements create default column styles
33013         * DataGridBoolColumn.cs: which types can handle
33014         * DataGrid.cs: missing methods, fixes, new functionality
33015         * DataGridColumnStyle.cs: fixes
33017 2005-04-20  Alexander Olk  <xenomorph2@onlinehome.de>
33018         * FolderBrowserDialog.cs:
33019         - Use a thread to fill the TreeView
33020         - Adjusted some sizes
33022 2005-04-19  Peter Bartok  <pbartok@novell.com>
33024         * LinkLabel.cs: (Re-)create the pieces when setting the Text
33025           property. Fixes #74360.
33027 2005-04-19  Jackson Harper  <jackson@ximian.com>
33029         * XEventQueue.cs: Lock when getting the lockqueue size.
33030         * PictureBox.cs: Call base OnPaint
33031         
33032 2005-04-19  Peter Bartok  <pbartok@novell.com>
33034         * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
33035           messages were no longer being processed (this broke BeginInvoke)
33037           
33038 2005-04-18  Jackson Harper  <jackson@ximian.com>
33040         * TreeView.cs: buglet that caused node images to get drawn
33041         regardless of whether or not they were in the clipping rectangle.
33043 2005-04-18  Jackson Harper  <jackson@ximian.com>
33045         * CurrencyManager.cs: There are four rules for GetItemProperties:
33046         - If the type is an array use the element type of the array
33047         - If the type is a typed list, use the type
33048         - If the list contains an Item property that is not an object, use
33049         that property
33050         - use the first element of the list if there are any elements in
33051         the list.
33052         
33053 2005-04-17  Jackson Harper  <jackson@ximian.oom>
33055         * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
33056         click. This handles offsets for scrolling properly and reduces
33057         memory. Also fixed GetNode to not offset now that TopNode works
33058         properly.
33059         * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
33060         
33061 2005-04-17  Jackson Harper  <jackson@ximian.com>
33063         * CursorConverter.cs: Initial implementation.
33065 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
33067         * ListControl.cs: work towards complex data binding support on ListControl
33068         * CurrencyManager.cs: work towards complex data binding support on ListControl
33069         * ListBox.cs: work towards complex data binding support on ListControl
33072 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
33074         * GridTableStylesCollection.cs: fixes name and constructor
33075         * DataGridTableStyle.cs: fixes
33076         * DataGridBoolColumn.cs: fixes names and constructors
33077         * DataGrid.cs: define methods and properties. Some init implementations
33078         * DataGridCell.cs: define methods and properties. Some init implementations
33079         * GridTablesFactory.cs: Define methods and properties
33081 2005-04-15  Geoff Norton  <gnorton@customerdna.com>
33083         * XplatUIOSX.cs:  Handle proper mouse tracking even if the current
33084         graphics port changes.  We still want the coordinates in global screen
33085         coordinates.
33087 2005-04-14  Jackson Harper  <jackson@ximian.com>
33089         * TreeView.cs: Handle clicks when plus minus is disabled. Don't
33090         check plus minus or checkbox clicks unless those features are enabled.
33092 2005-04-14  Jackson Harper  <jackson@ximian.com>
33094         * TreeView.cs: Add methods for setting the top and bottom visible
33095         nodes. TreeNode::EnsureVisible uses these methods.
33096         * TreeNode.cs: Implement EnsureVisible
33098 2005-04-13  Jordi Mas i Hernandez <jordi@ximian.com>
33100         * Form.cs: Pospone menu assignation if the window has not been created yet
33101         * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
33102         size and position
33104 2005-04-12  Jackson Harper  <jackson@ximian.com>
33106         * TreeView.cs: Set the TopNode properly when scrolling
33107         occurs. This has the added benifit of reducing the amount of
33108         walking that needs to be done when drawing. Also removed an old
33109         misleading TODO.
33110         * OpenTreeNodeEnumerator.cs: Fix moving backwards.
33111         
33112 2005-04-11  Jordi Mas i Hernandez <jordi@ximian.com>
33114         * Timer.cs: fixes interval setting when the timer is already enabled
33115         
33116 2005-04-10  Alexander Olk  <xenomorph2@onlinehome.de>
33118         * FolderBrowserDialog.cs: First approach
33120 2005-04-09  Peter Bartok  <pbartok@novell.com>
33122         * FolderBrowserDialog: Added
33124 2005-04-07  Jordi Mas i Hernandez <jordi@ximian.com>
33126         * LinkLabel.cs: move drawing code into the theme
33127         * ThemeWin32Classic.cs: drawing code and painting background bugfix
33128         * Theme.cs: define DrawLinkLabel method
33130 2005-04-05  Jackson Harper  <jackson@ximian.com>
33132         * BindingContext.cs: Use weak references so these bad actors don't
33133         stay alive longer then they need to.
33135 2005-04-05  Jackson Harper  <jackson@ximian.com>
33137         * ListControl.cs: Basic implementation of complex databinding.
33138         * ComboBox.cs:
33139         * ListBox.cs: Add calls to ListControl databinding methods.
33141 2005-04-05  Alexander Olk  <xenomorph2@onlinehome.de>
33143         * FileDialog.cs:
33144           - Don't change PopupButtonState to Normal when the
33145             PopupButton gets pressed several times.
33146           - Renamed ButtonPanel to PopupButtonPanel
33148 2005-04-05  Jordi Mas i Hernandez <jordi@ximian.com>
33150         * ColorDialog.cs: Use cached objects instead of creating them
33151         * LinkLabel.cs: Use cached objects instead of creating them
33152         * Splitter.cs: Use cached objects instead of creating them
33153         * FontDialog.cs: Use cached objects instead of creating them
33154         * PropertyGridView.cs: Use cached objects instead of creating them
33155         * MessageBox.cs: Use cached objects instead of creating them
33156         * FileDialog.cs: Use cached objects instead of creating them
33157         * ThemeWin32Classic.cs: Use cached objects instead of creating them
33158         * TreeView.cs: Use cached objects instead of creating them
33159         
33160 2005-04-04  Jordi Mas i Hernandez <jordi@ximian.com>
33162         * Control.cs: use Equals to compare the font since no == op
33163         * ScrollBar.cs: use Equals to compare the font since no == op
33165 2005-04-04  Alexander Olk  <xenomorph2@onlinehome.de>
33167         * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
33169 2005-04-01  Jackson Harper  <jackson@ximian.com>
33171         * Binding.cs: Implement IsBinding.
33172         * BindingManagerBase.cs:
33173         * PropertyManager.cs:
33174         * CurrencyManager.cs: Add IsSuspended property.
33176 2005-04-01  Jackson Harper  <jackson@ximian.com>
33178         * Binding.cs: Had some IsAssignableFrom calls backwards.
33180 2005-04-01  Jackson Harper  <jackson@ximian.com>
33182         * Binding.cs: Handle null data members when pulling data.
33183         * PropertyManager.cs: Handle the data member being a property that
33184         does not exist.
33186 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
33188         * DataGridTextBoxColumn.cs: fixes signature
33189         * DataGrid.cs: calls right constructor
33191 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
33193         * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
33194         * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
33195         * GridTableStylesCollection.cs: implements GridTableStylesCollection
33196         * DataGridTableStyle.cs: implements DataGridTableStyle
33197         * DataGridBoolColumn.cs: implements DataGridBoolColumn
33198         * DataGridTextBox.cs: implements DataGridTextBox
33199         * DataGridColumnStyle.cs: implements DataGridColumnStyle
33201 2005-03-31  Alexander Olk  <xenomorph2@onlinehome.de>
33203         * FileDialog.cs: Added simple PopupButton class for ButtonPanel
33205 2005-03-29  Peter Bartok  <pbartok@novell.com>
33207         * Application.cs:
33208           - Properly implemented CompanyName property
33209           - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
33210             returns a path that includes CompanyName, ProductName and
33211             Version (fixes bug #70330)
33213 2005-03-29  Stefan Buehler  <sbuehler@gmx.ch>
33215         * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
33216           fixes bug #72588.
33218 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
33220         * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
33221         
33222           - Added ReadOnly CheckBox
33223           - Further refactoring: moved some code from Open-/SaveFileDialog
33224             to FileDialog
33226 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
33228         * OpenFileDialog.cs: Fixed CheckFileExists
33229         * FileDialog.cs:
33230           Moved FileView and DirComboBox outside FileDialog class.
33231           They can now be used outside FileDialog
33233 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
33235         * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
33236         * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
33238 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
33240         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
33241           - Added missing CreatePrompt property in SaveDialog
33242           - Overall SaveDialog handling should be better now
33243           - Added non standard ShowHiddenFiles property
33244           - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
33245           - Added InitialDirectory and RestoreDirectory support
33247 2005-03-26  Alexander Olk  <xenomorph2@onlinehome.de>
33249         * FileDialog.cs: Made dirComboBox usable
33251 2005-03-24  Alexander Olk  <xenomorph2@onlinehome.de>
33253         * FileDialog.cs: Added Filter support (case sensitiv)
33255 2005-03-24  Jackson Harper  <jackson@ximian.com>
33257         * TabControl.cs: Need a couple more pixels for the lines.
33259 2005-03-23  Jackson Harper  <jackson@ximian.com>
33261         * TabControl.cs: Give the tab page focus when it is selected.
33263 2005-03-23  Jackson Harper  <jackson@ximian.com>
33265         * TabControl.cs: Account for the drawing of tabs borders when
33266         invalidating. If the slider was clicked dont do click detection on
33267         the tabs.
33269 2005-03-23  Jackson Harper  <jackson@ximian.com>
33271         * TabControl.cs: Fix typo, emilinates an unneeded expose event.
33273 2005-03-22  Jonathan Chambers  <jonathan.chambers@ansys.com>
33275         * CategoryGridEntry.cs: Added
33276         * GridItem.cs: Added helper properties
33277         * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
33278         * GridEntry.cs: Updated code for collection
33279         * PropertyGrid.cs: Cleaned up some formatting
33280         * PropertyGridView.cs: Added drop down functionality for enums.
33281         * GridItemCollection.cs: Added enumerator logic
33282         * PropertyGridEntry.cs: Added
33284 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
33286         * FileDialog.cs:
33287           - Removed unnecessary commented code
33288           - Fixed handling for entering the filename manually in the combobox
33290 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
33292         * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
33294 2005-03-18  Peter Bartok  <pbartok@novell.com>
33296         * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
33297           them being touching the border
33299 2005-03-18  Peter Bartok  <pbartok@novell.com>
33301         * TextControl.cs: Quick hack to center text better
33303 2005-03-18  Peter Bartok  <pbartok@novell.com>
33305         * ControlPaint.cs:
33306           - Don't throw NotImplemented exceptions, just print a notice once
33307             instead (requested by Miguel). This makes running existing SWF
33308             apps a bit easier
33309         * Control.cs:
33310           - Commented out Drag'N'Drop XplatUI call (no driver support yet)
33311           - Added context menu trigger on right click
33312         * Panel.cs: Trigger invalidate on resize
33313         * StatusBar.cs:
33314           - Removed old double-buffer drawing
33315           - Added ResizeRedraw style to force proper update of statusbar
33316         * ListView.cs:
33317           - Removed debug output
33318         * ThemeWin32Classic.cs:
33319           - Fixed drawing of status bar, now draws Text property if there
33320             are no defined panels
33322 2005-03-18  Jackson Harper  <jackson@ximian.com>
33324         * ImageList.cs: When the image stream is set pull all the images
33325         from it.
33326         * ImageListStreamer.cs: Implement reading image list streams.
33328 2005-03-18  Peter Bartok  <pbartok@novell.com>
33330         * ThemeWin32Classic.cs (DrawPictureBox):
33331           - Fixed calculations for centered drawing
33332           - Fixed drawing for normal mode, not scaling the image on normal
33334 2005-03-18  Peter Bartok  <pbartok@novell.com>
33336         * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
33337           textbox
33338         * FileDialog.cs:
33339           - Made Open/Save button the accept button for FileDialog
33340           - Tied the cancel button to the IButtonControl cancel button
33341           - Save/Open now properly builds the pathname
33342           - Now handles user-entered text
33343           - Preventing crash on right-click if no item is selected
33344           - Fixed Text property, now uses contents of textbox
33345           - Fixed SelectedText property, now just returns the text part that
33346             is selected in the text box
33348 2005-03-18  Jackson Harper  <jackson@ximian.com>
33350         * ThemeWin32Classic.cs: Use the proper func for drawing the focus
33351         rect, make sure to de-adjust the interior rect after drawing the
33352         tab text.
33354 2005-03-18  Peter Bartok  <pbartok@novell.com>
33356         * MenuAPI.cs: Remove menu *before* executing selected action to
33357           prevent the menu from 'hanging around'
33358           
33359 2005-03-17  Geoff Norton  <gnorton@customerdna.com>
33361         * XplatUIOSX.cs: Implemented WorkingArea property
33363 2005-03-17  Peter Bartok  <pbartok@novell.com>
33365         * XplatUIX11.cs: Fixed menu coord calculations
33366         * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
33367           for calculating offsets
33369 2005-03-17  Peter Bartok  <pbartok@novell.com>
33371         * Hwnd.cs: Do not consider menu presence for default client
33372           rectangle location/size
33373         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
33374           XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
33375           translation functions
33376         * FileDialog.cs: Fixed (what I presume is a) typo
33378 2005-03-17  Jonathan Gilbert  <logic@deltaq.org>
33380         * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
33381           X access (avoids X-Async errors)
33383 2005-03-16  Jackson Harper  <jackson@ximian.com>
33385         * TabControl.cs: Raise the SelectedIndexChanged event.
33387 2005-03-16  Alexander Olk  <xenomorph2@onlinehome.de>
33389         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
33390           - Removed vertical ToolBar and replaced it with a custom panel
33391             (desktop and home button already work)
33392           - Added Help button (some controls get resized or relocated then)
33393           - Draw correct text depending on Open or Save.
33394           - Fixed some typos...
33396 2005-03-16  Jordi Mas i Hernandez <jordi@ximian.com>
33398         * ScrollBar.cs:
33399           - Only change Maximum and Minimum when need it (bug fix)
33401 2005-03-15  Peter Bartok  <pbartok@novell.com>
33403         * Form.cs: Use Handle for icon, to trigger creation if
33404           the window does not yet exist
33405         * Control.cs:
33406           - CanSelect: Slight performance improvement
33407           - Focus(): Preventing possible recursion
33408           - Invalidate(): Removed ControlStyle based clear flag setting
33409           - WM_PAINT: fixed logic for calling OnPaintBackground
33410           - WM_ERASEBKGND: Fixed logic, added call to new driver method
33411             EraseWindowBackground if the control doesn't paint background
33412         * XplatUIWin32.cs:
33413           - Moved EraseWindowBackground() method to internal methods
33414           - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
33415             is sent via SendMessage on BeginPaint call on Win32
33416         * XplatUIX11.cs:
33417           - Added EraseWindowBackground() method
33418           - No longer sends WM_ERASEBKGND on .Expose, but on call to
33419             PaintEventStart, which more closely matches Win32 behaviour
33420           - Fixed Invalidate() call, now updates new ErasePending Hwnd property
33421           - Fixed SetFocus() to properly deal with client and whole windows
33422         * Hwnd.cs: Added ErasePending property
33423         * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
33424         * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
33426 2005-03-12  Geoff Norton  <gnorton@customerdna.com>
33428         * XplatUIOSX.cs:
33429           - Fix hard loop when timers exist.
33430           - Fix bugs with middle and right click for 3 button mice.
33432 2005-03-11  Peter Bartok  <pbartok@novell.com>
33434         * XplatUIX11.cs:
33435           - get_WorkingArea: Need to call X directly, GetWindowPos only
33436             returns cached data now
33437           - Added sanity check to GetWindowPos hwnd usage
33439 2005-03-11  Jackson Harper  <jackson@ximian.com>
33441         * BindingManagerBase.cs: This method isn't used anymore as
33442         PullData now updates the data in the control.
33444 2005-03-11  Jordi Mas i Hernandez <jordi@ximian.com>
33446         * Form.cs: fixes menu drawing on X11
33447         * MenuAPI.cs:  fixes menu drawing on X11
33449 2005-03-11  Peter Bartok  <pbartok@novell.com>
33451         * Control.cs: Changed OnCreateControl behaviour based on a suggestion
33452           from Jonathan Gilbert; should fix bug #73606
33453         * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
33454           in Screen coordinates. Thanks, Jordi.
33455         * Form.cs: Added missing attribute
33457 2005-03-11  Peter Bartok  <pbartok@novell.com>
33459         * Form.cs:
33460           - Rudimentary Mdi support
33461           - Removed outdated FormParent code
33462           - Implemented lots of missing properties and methods, still missing
33463             transparency support
33464           - Added missing attributes
33465           - Implemented support for MaximumBounds
33466           - Added firing of various events
33467         * XplatUI.cs: Added SetIcon() method
33468         * XplatUIDriver.cs: Added SetIcon() abstract
33469         * XplatUIOSX.cs: Stubbed out SetIcon() method
33470         * XplatUIX11.cs:
33471           - Implemented SetIcon() support
33472           - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
33473           - Switched to unix line endings
33474         * XplatUIWin32.cs:
33475           - Made POINT internal so for can access it as part of MINMAX
33476           - Implemented SetIcon() support
33477           - Implemented support for CLIENTCREATESTRUCT (but might have to drop
33478             native Mdi support again, might have to go managed)
33479         * Control.cs: Now fires the StyleChanged event
33480         * MdiClient.cs: Added; still mostly empty
33482 2005-03-10  Peter Bartok  <pbartok@novell.com>
33484         * SaveFileDialog.cs: Added emtpy file
33486 2005-03-08  Peter Bartok  <pbartok@novell.com>
33488         * Control.cs: Fixed bug #73190; now invokes CreateControl (which
33489           in turn triggers OnCreateContro) when creating a handle for the
33490           first time.
33491         * TextControl.cs: Fixed endless loop in certain cases when
33492           replacing the current selection
33494 2005-03-08  Jordi Mas i Hernandez <jordi@ximian.com>
33496         * ScrollBar.cs:
33497           - Honors NewValue changes in Scroll events allowing apps to change it
33498           - Adds First and Last Scroll events
33499           - Fixes Thumb events
33501 2005-03-07  Peter Bartok  <pbartok@novell.com>
33503         * Hwnd.cs: Added DefaultClientRectangle property
33504         * XplatUI.cs: Now using the X11 driver Where() method, which provides
33505           more detailed debug information
33506         * XplatUIX11.cs:
33507           - Fixed size-change feedback loop, where we would pull an old size
33508             off the queue and mistakenly change our window's size to an
33509             earlier value
33510           - Now compressing ConfigureNotify events, to reduce looping and
33511             redraw issues
33512         * TextBoxBase.cs: Preventing crash when no text is set and ToString()
33513           is called
33515 2005-03-07  Jackson Harper  <jackson@ximian.com>
33517         * Binding.cs: Push data pushes from data -> property. Check if the
33518         property is readonly when attempting to set it.
33520 2005-03-07  Jackson Harper  <jackson@ximian.com>
33522         * Binding.cs: Format and parse data correctly. Use ASsignableFrom
33523         instead of IsSubclassOf. Pulling data now sets the value on the
33524         control.
33525         * PropertyManager.cs:
33526         * CurrencyManager.cs: Just need to pull data when updating now,
33527         because PullData will set the value on the control.
33529 2005-03-04  Jackson Harper  <jackson@ximian.com>
33531         * Binding.cs: Implement data type parsing and converting on pulled
33532         data. TODO: Are there more ways the data can be converted?
33534 2005-03-04  Jackson Harper  <jackson@ximian.com>
33536         * Binding.cs: Support <Property>IsNull checks. Also bind to the
33537         controls Validating method so we can repull the data when the
33538         control loses focus.
33540 2005-03-03  Jordi Mas i Hernandez <jordi@ximian.com>
33542         * ColumnHeader.cs:
33543           - Fixes null string format
33544           
33545         * ListView.cs:
33546           - Adds enum type checks
33547           - Fixes redrawing and recalc need after changing some properties
33548           - Fixes on focus_item set after the event
33549           - Fixes adding columns after the control has been created
33550           
33551         * ThemeWin32Classic.cs:
33552           - Fixes CheckBox focus rectangle
33553           - Fixes ColumnHeader drawing
33556 2005-03-03  Jackson Harper  <jackson@ximian.com>
33558         * Binding.cs: Bind to <Property>Changed events so we can detect
33559         when properties are changed and update the data.
33561 2005-03-02  Jordi Mas i Hernandez <jordi@ximian.com>
33563         * ImageList.cs:
33564           - Changes 32-bit pixel format to Format32bppArgb to allow transparency
33565           - Fixes ImageList constructor with ImageList container
33566           - Fixes image scaling (wrong parameters at DrawImage)
33568 2005-02-02  Jackson Harper  <jackson@ximian.com>
33570         * Binding.cs: Make property searches case-insensitive. Eliminate
33571         some duplicated code.
33573 2005-03-01  Jordi Mas i Hernandez <jordi@ximian.com>
33575         * ComboBox.cs:
33576                 - Handle focus event
33577                 - Fix scrollbar events
33578                 - Discard highlighted item if remove it
33579                 - Fixes SelectedItem with strings
33581 2005-03-01  Peter Bartok  <pbartok@novell.com>
33583         * Control.cs:
33584           - Fixed Visible property, now follows (once again) parent chain
33585             to return false if any control in the chain is visible=false
33586           - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
33587           - Fixed several places where is_visible instead of Visible was used
33588           - Implemented FIXME related to focus selection when setting focused
33589             control to be invisible
33591         * XplatUIWin32.cs: Now using proper method to find out if window is
33592           visible. Thanks to Jordi for pointing it out
33594 2005-02-28  Jordi Mas i Hernandez <jordi@ximian.com>
33596         * ComboBox.cs: show/hide scrollbar instead of creating it
33598 2005-02-27  Jackson Harper  <jackson@ximian.com>
33600         * CurrencyManager.cs: Add PositionChanged stuff.
33602 2005-02-27  Peter Bartok  <pbartok@novell.com>
33604         * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
33605         * XplatUIOSX.cs: Added GetMenuOrigin() stub
33606         * XplatUIWin32.cs: Implemented GetMenuOrigin()
33607         * XplatUIX11.cs:
33608           - Implemented GetMenuDC()
33609           - Implemented GetMenuOrigin()
33610           - Implemented ReleaseMenuDC()
33611           - Implemented generation of WM_NCPAINT message
33612           - Implemented generation and handling of WM_NCCALCSIZE message
33613         * Form.cs: Added debug helper message for Jordi's menu work
33614         * Hwnd.cs:
33615           - Modified ClientRect property; added setter, fixed getter to handle
33616             setting of ClientRect
33617           - Added MenuOrigin property
33619 2005-02-26  Peter Bartok  <pbartok@novell.com>
33621         * XplatUIX11.cs:
33622           - Destroys the caret if a window that's being destroyed contains it
33623           - Ignores expose events coming from the X11 queue for windows that
33624             already are destroyed
33625           - Now uses the proper variable for handling DestroyNotify, before we
33626             marked the wrong window as destroyed
33627           - Improved/added some debug output
33629 2005-02-26  Peter Bartok  <pbartok@novell.com>
33631         * X11Keyboard.cs: Fixes to work on 64bit systems
33633 2005-02-26  Peter Bartok  <pbartok@novell.com>
33635         * Control.cs:
33636           - Now calling OnHandleDestroyed from DestroyHandle()
33637             instead of Dispose()
33638           - Removed bogus call to controls.Remove() from DestroyHandle()
33640 2005-02-26  Peter Bartok  <pbartok@novell.com>
33642         * Control.cs: Properly destroy child windows when our handle is
33643           destroyed
33645 2005-02-25  Peter Bartok  <pbartok@novell.com>
33647         * XplatUI.cs:
33648           - Added 'DriverDebug' define to allow tracing XplatUI API calls
33649           - Alphabetized Static Methods and Subclasses
33651         * XplatUIX11.cs:
33652           - Added XException class to allow custom handling of X11 exceptions
33653           - Created custom X11 error handler, tied into XException class
33654           - Added support for MONO_XEXCEPTIONS env var to allow the user
33655             to either throw an exception on X errors or continue running
33656             after displaying the error
33657           - Added handling of DestroyNotify message
33658           - Added handler for CreateNotify message (still disabled)
33659           - Improved (tried to at least) Where method to provide file and lineno
33660         * X11Structs.cs:
33661           - Added XErrorHandler delegate
33662           - Added XRequest enumeration (to suppor translation of errors)
33664 2005-02-25  Jackson Harper  <jackson@ximian.com>
33666         * PropertyManager.cs: Implement editing features
33667         * CurrencyManager.cs:
33668         * Binding.cs: First attempt at UpdateIsBinding
33669         * BindingManagerBase.cs: Call UpdateIsBinding before
33670         pushing/pulling data.
33672 2005-02-25  Jordi Mas i Hernandez <jordi@ximian.com>
33674         * MenuAPI.cs: Respect disabled items
33675         * ThemeWin32Classic.cs
33676                 - Caches ImageAttributes creation for DrawImageDisabled
33677                 - Fixes vertical menu line drawing
33678                 - Draws disabled arrows in disable menu items
33680 2005-02-24  Peter Bartok  <pbartok@novell.com>
33682         * Hwnd.cs:
33683           - Added UserData property to allow associating arbitrary objects
33684             with the handle
33685           - Fixed leak; now removing Hwnd references from static windows array
33686         * XplatUIWin32.cs:
33687           - Fixed Graphics leak in PaintEventEnd
33688           - Removed usage of HandleData, switched over to Hwnd class
33689         * HandleData.cs: Removed, obsoleted by Hwnd.cs
33691 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
33693         * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
33694         * ScrollBar.cs: Fixes bug
33695         * TrackBar.cs: removes death code, clipping, mimize refreshes,
33696          keyboard navigation enhancements
33698 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
33700         * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
33701         * GroupBox.cs: Add control styles
33702         * Label.cs: Add control styles
33703         * UpDownBase.cs: Add control styles
33704         * ListBox.cs: Add control styles
33705         * XplatUIWin32.cs: Fixes wrong parameter order
33708 2005-02-23  Chris Bacon  <chris.bacon@docobo.co.uk>
33710         * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
33712 2005-02-23  Jackson Harper  <jackson@ximian.com>
33714         * PropertyManager.cs: Implement property binding. This doesn't
33715         seem to work yet though as (I think) there are some bugs in
33716         System.ComponentModel.PropertyDescriptor.
33717         * BindingContext.cs: Use new PropertyManager constructor.
33719 2005-02-23  Jordi Mas i Hernandez <jordi@ximian.com>
33721         * ProgressBar.cs: use clip region in ProgressBar
33722         * ThemeWin32Classic.cs: use clip region in ProgressBar
33724 2004-02-22  Jackson Harper  <jackson@ximian.com>
33726         * BindingsCollection.cs: Remove some debug code.
33728 2005-02-22  Jackson Harper  <jackson@ximian.com>
33730         * BindingContext.cs:
33731         * ControlBindingsCollection.cs:
33732         * CurrencyManager.cs:
33733         * Binding.cs:
33734         * BindingManagerBase.cs: Initial implementation
33735         * BindingsCollection.cs: Add an internal contains method that the
33736         BindingManagerBase uses to ensure bindings aren't added twice to
33737         the collection.
33738         * PropertyManager.cs: Stubbed out.
33739         * Control.cs:
33740         * ContainerControl.cs: Hook up databinding
33741         
33742 2005-02-22  Geoff Norton  <gnorton@customerdna.com>
33744         * XplatUIOSX.cs:
33745           OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
33746           Fixed Invalidate/Update chain.
33747           Fixed tons of other minor bugs (this is almost a complete rewrite).
33749 2005-02-22  Jordi Mas i Hernandez <jordi@ximian.com>
33751         * ComboBox.cs: do subcontrol creation when the control is created
33753 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
33755         * Label.cs: fixes image drawing (image and imagelist)
33756         * ThemeWin32Classic.cs: cache brushes
33757         
33758 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
33760         * Form.cs: Move menu drawing code to Theme class
33761         * ComboBox.cs: Move ComboBox drawing code to Theme class
33762         * MenuItem.cs: Move menu drawing code to Theme class
33763         * MenuAPI.cs: Move menu drawing code to Theme class
33764         * ThemeWin32Classic.cs: New methods
33765         * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
33766         * ListBox.cs: Move Listbox drawing code to Theme class
33767         * Theme.cs: New methods
33769 2005-02-20  Peter Bartok  <pbartok@novell.com>
33771         * Control.cs:
33772           - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
33773             only process mnemonics on those)
33774           - Fixed event sequence for key handling; first calling
33775             ProcessKeyEventArgs now
33776         * TextBoxBase.cs:
33777           - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
33778             for processing non-character keys
33779           - Fixed WM_CHAR to generate proper event sequence before processing
33780         * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
33781           generation
33783 2005-02-19  Peter Bartok  <pbartok@novell.com>
33785         * UserControl.cs: Added TextChanged event; added attributes
33786         * SizeGrip.cs: Implemented resizing and optional display of grip
33787         * Form.cs: Fixed attribute
33788         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
33789           Changed meaning of ScrollWindow bool argument; instead of the
33790           clear attribute (which will be true usually anyway), it gives the
33791           option of moving child controls as well.
33792         * XplatUIX11.cs:
33793           - Changed to match new ScrollWindow argument
33794           - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
33795             now handles the implicit parent window a WM puts around us
33796         * ScrollableControl.cs: Implemented (not the prettiest, but it seems
33797           to work)
33798         * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
33799         * TreeView.cs: Adjusted to new ScrollWindow arguments
33801 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
33803         * Form.cs: Menu integration with non-client area
33804         * MenuItem.cs: Menu integration with non-client area
33805         * MenuAPI.cs: Menu integration with non-client area
33807 2005-02-18  Peter Bartok  <pbartok@novell.com>
33809         * MethodInvoker.cs: Added
33810         * MdiLayout.cs: Added
33811         * SendKeys.cs: Started implementation
33812         * ErrorIconAlignment.cs: Added
33814 2005-02-18  Peter Bartok  <pbartok@novell.com>
33816         * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
33817         * Form.cs: Added handling for Menu-related Non-client messages
33819 2005-02-17  Peter Bartok  <pbartok@novell.com>
33821         * UpDownBase.cs: Fixed typo, compilation errors
33822         * DomainUpDown.cs: Fixed attribute value
33824 2005-02-16  Miguel de Icaza  <miguel@novell.com>
33826         * UpDownBase.cs: Attach entry events.
33827         Propagate events.
33828         Add ForeColor property, Focused, InterceptArrowKeys (interception
33829         does not work yet).
33831 2005-02-17  Jordi Mas i Hernandez <jordi@ximian.com>
33833         * Form.cs:
33834                 - Redraw non client are on Setmenu
33835                 - Calc proper menu starting point
33837 2005-02-17  Peter Bartok  <pbartok@novell.com>
33839         * Application.cs: Fixed message_filter check
33841 2005-02-17  Peter Bartok  <pbartok@novell.com>
33843         * Application.cs: Now calls registered message filters
33844         * DockStyle.cs: Fixed attribute
33845         * Form.cs: Fixed attribute
33846         * Menu.cs: Fixed attribute
33847         * ToolTip.cs: Fixed attribute
33848         * TreeNode.cs: Added missing attributes and arranged in regions
33849         * PropertyGrid.cs: Fixed signatures
33850         * TreeNodeCollection.cs: Added attributes
33851         * Splitter.cs: Added missing attributes; arranged into regions
33852         * TabPage.cs: Added missing attributes; arranged into regions
33853         * TextBoxBase.cs: Added missing attributes
33854         * TextBox.cs: Added missing attributes
33855         * ArrangeDirection.cs: Added missing attributes
33856         * TreeNodeConverter.cs: Added stub (needed for TreeNode)
33857         * ToolBarButton.cs: Fixed attributes
33858         * AnchorStyles.cs: Fixed attribute
33859         * TrackBar.cs: Fixed attributes
33860         * TabControl.cs: Added missing attributes and arranged into regions
33861         * ToolBar.cs: Fixed attribute
33862         * StatusBar.cs: Fixed signature, organized into regions and added
33863           attributes
33864         * StatusBarPanel.cs: Fixed attributes
33865         * ContentsResizedEventArgs.cs: Implemented
33866         * ContentsResizedEventHandler.cs: Implemented
33867         * DateBoldEventArgs.cs: Implemented
33868         * DateBoldEventHandler.cs: Implemented
33869         * UpDownEventArgs.cs: Implemented
33870         * UpDownEventHandler.cs: Implemented
33871         
33872 2005-02-16  Jordi Mas i Hernandez <jordi@ximian.com>
33874         * Form.cs: first Menu NC refactoring
33875         * MenuAPI.cs: first Menu NC refactoring
33876         
33877 2005-02-16  Peter Bartok  <pbartok@novell.com>
33879         * ImeMode.cs: Added missing attributes
33880         * Menu.cs: Fixed attribute
33881         * GroupBox.cs: Fixed attribute
33882         * Label.cs: Fixed attribute
33883         * ColorDialog.cs (RunDialog): Removed TODO attribute
33884         * ComboBox.cs: Fixed attributes
33885         * ListControl.cs: Added missing attributes
33886         * PropertyGrid.cs: Fixed attributes
33887         * Control.cs: Fixed attributes
33888         * ListViewItem.cs: Added TypeConverter attribute
33889         * NotifyIcon.cs: Fixed attributes
33890         * ListView.cs: Fixed attributes
33891         * ButtonBase.cs: Fixed attribute
33892         * ImageList.cs: Added missing attributes
33893         * ContainerControl.cs: Fixed signature
33894         * CheckedListBox.cs: Fixed attribute; added missing attributes
33895         * Panel.cs: Fixed attributes
33896         * PropertyTabChangedEventArgs.cs: Added missing attribute
33897         * PropertyValueChangedEventArgs.cs: Added missing attribute
33898         * Binding.cs: Fixed attribute
33899         * ListViewItemConverter: Implemented ListViewSubItemConverter class
33900         * ListBox.cs: Fixed attribute; added missing attributes;
33901         * ScrollableControl.cs: Added missing attributes
33902         * PictureBox.cs: Added missing attributes; implemented missing property
33903         * DateTimePicker.cs: Added missing attributes
33904         * Theme.cs (ToolWindowCaptionHeight): Fixed type
33905         * MonthCalendar.cs: Fixed attributes
33906         * StatusBarPanel.cs: Added missing attributes
33907         * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
33909 2005-02-16  Peter Bartok  <pbartok@novell.com>
33911         * TextBoxBase.cs: The previous method to enforce height yet remember
33912           the requested high was less than ideal, this is an attempt to do
33913           it better.
33914         * Control.cs: Added comment about possible problem
33915         * Copyright: Updated format
33916         * GridItemType.cs: Fixed swapped values
33918 2005-02-15  Jackson Harper  <jackson@ximian.com>
33920         * BaseCollection.cs: Use property so we never access an
33921         uninitialized list. Also initialize the list in the property.
33923 2005-02-15  Peter Bartok  <pbartok@novell.com>
33925         * GroupBox.cs (ProcessMnemonic): Implemented
33926         * Label.cs (ProcessMnemonic): Implemented
33927         * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
33928           hotkeys
33930 2005-02-15  Peter Bartok  <pbartok@novell.com>
33932         * RadioButton.cs (ProcessMnemonic): Implemented
33933         * CheckBox.cs (ProcessMnemonic): Implemented
33934         * Control.cs:
33935           - Added handling of WM_SYSxxx keyboard messages to support mnemonic
33936             handling
33937           - Added internal method to allow calling ProcessMnemonic from other
33938             controls
33939         * ContainerControl.cs:
33940           - Started support for handling validation chain handling
33941           - Implemented ProcessMnemonic support
33942           - Added Select() call to Active, to make sure the active control
33943             receives focus
33944         * Form.cs: Setting toplevel flag for Forms (this was lost in the
33945           FormParent rewrite)
33946         * ThemeWin32Classic.cs:
33947           - DrawCheckBox(): Fixed stringformat to show hotkeys
33948           - DrawRadioButton(): Fixed stringformat to show hotkeys
33949         * CommonDialog.cs: Removed WndProc override, not needed
33951 2005-02-14  Peter Bartok  <pbartok@novell.com>
33953         * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
33954           missed those in the rewrite
33956 2005-02-14  Miguel de Icaza  <miguel@novell.com>
33958         * NumericUpDown.cs (Increment, ToString): Add.
33959         (DecimalPlaces): implement.
33960         
33961         Add attributes.
33962         
33963         * UpDownBase.cs: Add the designer attributes.
33965 2005-02-13  Peter Bartok  <pbartok@novell.com>
33967         * Panel.cs: Removed border_style, now in Control
33968         * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
33969           ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
33971 2005-02-13  Peter Bartok  <pbartok@novell.com>
33973         * MouseButtons.cs: Added missing attributes
33974         * XplatUIStructs.cs: Added enumeration for title styles
33975         * LeftRightAlignment.cs: Added missing attributes
33976         * Hwnd.cs: Switched to use client_window as handle (slower, but makes
33977           it compatible with Graphics.FromHwnd()
33978         * SelectedGridItemChangedEventArgs.cs: Fixed property type
33979         * Keys.cs: Added missing attributes
33980         * SelectionRange.cs: Added missing attributes
33981         * SelectionRangeConverter.cs: Added
33982         * XplatUI.cs:
33983           - Introduced SetBorderStyle, SetMenu, GetMenuDC and
33984             ReleaseMenuDC methods
33985           - Renamed ReleaseWindow to UngrabWindow
33986           - Added proper startup notice to allow version identification
33987         * Form.cs:
33988           - Added missing attributes
33989           - Removed FormParent concept
33990         * Label.cs: Removed border_style field, now in Control
33991         * RadioButton.cs: Now properly selects RadioButton when focus is
33992           received
33993         * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
33994         * Control.cs:
33995           - Added missing attributes
33996           - Added borderstyle handling
33997           - Removed FormParent concept support
33998           - Fixed calls to XplatUI to match changed APIs
33999           - Fixed bug that would case us to use disposed Graphics objects
34000           - Removed unneeded internal methods
34001           - PerformLayout(): Fixed to handle DockStyle.Fill properly
34002           - SelectNextControl(): Fixed to properly check common parents
34003         * TextBoxBase.cs: Removed border_style field (now in Control)
34004         * MessageBox.cs:
34005           - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
34006             fixed calculations for form size
34007           - Added support for localized strings and icons
34008           - Improved form size calculations, added border
34009         * ListView.cs: Removed border_style field (now in Control)
34010         * X11Structs.cs: Moved several structs from X11 driver here
34011         * X11Keyboard.cs: Changed debug message
34012         * Application.cs: Removed FormParent concept support
34013         * CommonDialog.cs:
34014           - Resetting end_modal flag
34015           - Removed FormParent concept support
34016         * NativeWindow.cs: Removed FormParent concept support
34017         * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
34018           Client area and Non-Client whole window to allow support for WM_NC
34019           messages
34020         * XplatUIOSX.cs: Updated to match latest driver spec; added exception
34021           prevent using it until it supports Hwnd as per Geoff Norton's request
34022         * ToolBar.cs: Fixed drawing, was not doing proper drawing
34023         * PictureBox.cs: Removed border_style field, now in Control
34024         * XplatUIWin32.cs: Added new driver methods
34026 2005-02-12  Peter Bartok  <pbartok@novell.com>
34028         * OpacityConverter.cs: Implemented
34029         * Hwnd.cs: Internal class to support drivers that need to emulate
34030           client area/non-client area window behaviour
34032 2005-02-11  Peter Bartok  <pbartok@novell.com>
34034         * KeysConverter.cs: Implemented
34036 2005-02-11  Jordi Mas i Hernandez <jordi@ximian.com>
34038         * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
34039         * LinkLabel: Added missing attributes
34040         * MainMenu.cs: fixes ToString
34041         * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
34042         * ListBox.cs: fixes event position
34043         * TrackBar.cs: adds missing attributes and events
34044         
34045 2005-02-10  Jordi Mas i Hernandez <jordi@ximian.com>
34047         * MenuItem.cs: Use SystemInformation and bug fixes
34048         * MenuAPI.cs: Use SystemInformation and bug fixes
34050 2005-02-09  Jackson Harper  <jackson@ximian.com>
34052         * X11Keyboard.cs: We ignore some keys, but still need to set/reset
34053         their keystate otherwise things like VK_MENU get stuck "on".
34055 2005-02-09  Kazuki Oikawa <kazuki@panicode.com>
34057         * ListBox.cs: Fixes AddRange bug
34058         
34059 2005-02-09  Jordi Mas i Hernandez <jordi@ximian.com>
34061         * ProgressBar.cs
34062                 - Add missing attributes
34063                 - Add missing method
34064                 
34065         * CheckedListBox.cs: Added missing attributes
34066                 - Add missing attributes
34067                 - Remove extra method
34068         
34069         * ComboBox.cs: Added missing attributes
34070         * VScrollBar.cs: Added missing attributes
34071         * ScrollBar.cs:  Added missing attributes
34072         * ListBox.cs: Fixes signature, add missing consts
34073         * LinkArea.cs:   Added missing attributes
34074         
34076 2005-02-08  Peter Bartok  <pbartok@novell.com>
34078         * Menu.cs: Added missing attributes
34079         * MainMenu.cs: Added missing attributes
34080         * GroupBox.cs: Added missing attributes
34081         * Label.cs: Added missing attributes
34082         * CheckBox.cs: Implemented CheckBoxAccessibleObject class
34083         * ColorDialog.cs:
34084           - Added Instance and Options properties
34085           - Added missing attributes
34086         * Cursor.cs: Made Serializable
34087         * NotifyIcon: Added missing attributes
34088         * MenuItem.cs: Added missing attributes
34089         * TextBoxBase.cs: Implemented AppendText() and Select() methods
34090         * Panel.cs: Added Missing attributes
34091         * MonthCalendar.cs: Fixed CreateParams
34093 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
34094         
34095         * LinkLabel.cs:
34096                 - Fixes signature
34097                 - Fixes issues with links
34098                 - Adds the class attributes
34100 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
34101         
34102         * ComboBox.cs:
34103                 - Fixes button when no items available in dropdown
34104                 - Fixes repainting problems
34105                 - Adds the class attributes
34106                 
34107 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
34109         * XplatUIOSX.cs: Detect the menu bar and title bar height from
34110         the current theme.  Cache these on startup.
34112 2005-02-07  Jackson Harper  <jackson@ximian.com>
34114         * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
34115         the scrollbar buttons when they are depressed.
34117 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
34119         * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
34120         Get the display size from the main displayid.  We currently dont
34121         support multiple display configurations.
34123 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
34125         * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
34127 2005-02-07  Miguel de Icaza  <miguel@novell.com>
34129         * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
34131 2005-02-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
34133         * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
34135 2005-02-04  Jackson Harper  <jackson@ximian.com>
34137         * ThemeWin32Classic.cs: Respect the clipping rect when
34138         drawing. Only fill the intersection of clips and rects so there
34139         isn't a lot of large fills.
34140         * ScrollBar.cs: Pass the correct clipping rect to the theme
34141         engine. Remove some debug code.
34143 2005-02-05  John BouAntoun  <jba-mono@optusnet.com.au>
34144         
34145         * DateTimePicker.cs:
34146                 - Fixed crash on DateTime.Parse, use Constructor instead
34148 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
34149         
34150         * MenuItem.cs:
34151         * MenuAPI.cs:
34152                 - Owner draw support (MeasureItem and DrawItem)
34154 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
34155         
34156         *  Menu.cs:
34157                 - Implements FindMergePosition and MergeMenu functions (very poor documented)
34158                 - Fixes MenuItems.Add range
34159         * MenuItem.cs:
34160                 - MergeMenu and Clone and CloneMenu functions
34162 2005-02-03  Jackson Harper  <jackson@ximian.com>
34164         * ScrollBar.cs: Make abstract
34165         * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
34166         is abstract.
34168 2005-02-03  Jackson Harper  <jackson@ximian.com>
34170         * ScrollBar.cs: First part of my scrollbar fixups. This removes
34171         all the unneeded refreshes and uses invalidates with properly
34172         computed rects.
34174 2005-02-03  Peter Bartok  <pbartok@novell.com>
34176         * ComponentModel.cs: Added
34177         * IDataGridEditingService.cs: Added
34178         * Timer.cs: Added missing attributes
34179         * ToolTip.cs: Added missing attributes
34181 2005-02-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
34183         * PropertyGridView.cs: Added. Patch by Jonathan Chambers
34185 2005-02-03  Peter Bartok  <pbartok@novell.com>
34187         * ListBox.cs: Added missing attributes
34189 2005-02-03  Jordi Mas i Hernandez <jordi@ximian.com>
34190         
34191         * ListBox.cs:
34192                 - Fixes font height after font change
34193                 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
34194                 
34195 2005-02-02  Peter Bartok  <pbartok@novell.com>
34197         * HandleData.cs: Introduced static methods to allow class
34198           to be more self-contained and track it's own HandleData objects
34199         * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
34200           HandleData to use new static methods
34202 2005-02-02  Jordi Mas i Hernandez <jordi@ximian.com>
34204         * Combobox.cs:
34205                 - Fixes default size and PreferredHeight
34206                 - Missing events
34207                 - ObjectCollection.Insert implementation
34208                 
34209         * ListControl.cs
34210                 - Fixes signature
34211         * ListBox.cs:
34212                 - Several fixes
34213                 - ObjectCollection.Insert implementation
34214                 - No selection after clean
34215                 - Small fixes
34217 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
34219         * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
34221 2005-02-01  Jordi Mas i Hernandez <jordi@ximian.com>
34223         * Combobox.cs:
34224                 - Caches ItemHeight calculation for OwnerDrawVariable
34225                 - Handles dropdown properly
34226                 - Fixes several minor bugs
34228 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
34230         * ListBox.cs:
34231                 - Fixes 71946 and 71950
34232                 - Fixes changing Multicolumn on the fly
34233                 - Fixes keyboard navigation on Multicolumn listboxes
34235 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
34236         
34237         * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
34238         crash reporter log.
34240 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
34242         * XplatUIOSX.cs: Allow applications to actually exit.
34244 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
34246         * XplatUIOSX.cs: SetWindowStyle implemented.  Reposition views in
34247         their parent at creation time rather than lazily later.  Fixes a major
34248         regression we were experiencing.
34250 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
34252         * ThemeWin32Classic.cs: more date time picker painting fixes
34253         * DateTimePicker.cs: more monthcalendar drop down fixes
34254         * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
34256 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
34258         * ScrollBar.cs:
34259                 - When moving the thumb going outside the control should stop the moving
34260                 - Adds the firing of missing events
34261                 - Fixes no button show if Size is not specified
34262                 - End / Home keys for keyboard navigation
34264 2005-01-30  Peter Bartok  <pbartok@novell.com>
34266         * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
34267           sanity check to prevent theoretical loop
34268         * XplatUIWin32.cs (SetVisible): Removed debug output
34269         * XplatUIX11.cs (SystrayChange): Added sanity check
34270         * ScrollableControl.cs (OnVisibleChanged): Now calls base method
34271         * Control.cs (OnVisibleChanged): Added workaround for ParentForm
34272           behaviour, valid until the X11 client window rewrite is done
34273         * TextBox.cs (ctor): Setting proper default foreground and background
34274           colors
34276 2005-01-30      John BouAntoun  <jba-mono@optusnet.com.au>
34278         * Theme: Added DrawDateTimePicker to interface
34279         * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
34280         * DateTimePicker.cs: Created (still needs keys and painting code)
34281         * DateTimePickerFormat.cs: added
34282         * MonthCalendar.cs: fixed CreateParams for popup window mode
34283           
34284 2005-01-29  Peter Bartok  <pbartok@novell.com>
34286         * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
34287           this should also the calculations for ligher/darker
34288         * Theme.cs: Fixed defaults for ScrollBar widths/heights
34290 2005-01-29  Peter Bartok  <pbartok@novell.com>
34292         * ArrangeDirection.cs: Added
34293         * ArrangeStartingPositon.cs: Added
34294         * SystemInformation.cs: Implemented
34295         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
34296           XplatUIX11.cs, Theme.cs: Added/implemented new static properties
34297           used by SystemInformation class
34298         * X11Strucs.cs: Added XSizeHints structure
34299         * MenuAPI.cs:
34300           - Fixed CreateParams to make sure the menu window is always visible
34301           - TrackPopupMenu: Added check to make sure we don't draw the
34302             menu offscreen
34304 2005-01-29  Peter Bartok  <pbartok@novell.com>
34306         * HandleData.cs: Added method for altering invalid area
34307         * TextBoxBase.cs: Implemented TextLength
34309 2005-01-28  Peter Bartok  <pbartok@novell.com>
34311         * XplatUIX11.cs: Improvement over last patch, not sending
34312           the WM_PAINT directly anymore, instead we scroll any pending
34313           exposed areas and let the system pick out the WM_PAINT later
34315 2005-01-28  Peter Bartok  <pbartok@novell.com>
34317         * SWF.csproj: Deleted, no longer used. Instead,
34318           Managed.Windows.Forms/SWF.csproj should be used
34319         * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
34320           directly, to avoid a potential race condition with the next
34321           scroll
34323 2005-01-28  Peter Bartok  <pbartok@novell.com>
34325         * XplatUI.cs: Made class internal
34327 2005-01-28  Jordi Mas i Hernandez <jordi@ximian.com>
34329         * CheckedListBox.cs:
34330                 - Draw focus
34331                 - Fixed Drawing
34332                 - Missing methods and events
34334 2005-01-27  Peter Bartok  <pbartok@novell.com>
34336         * Application.cs (Run): Don't use form if we don't have one
34338 2005-01-27  Peter Bartok  <pbartok@novell.com>
34340         * TextBoxBase.cs (get_Lines): Fixed index off by one error
34342 2005-01-27  Peter Bartok  <pbartok@novell.com>
34344         * GridEntry.cs: Added; Patch by Jonathan S. Chambers
34345         * GridItem.cs: Added; Patch by Jonathan S. Chambers
34346         * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
34347         * GridItemType.cs: Added; Patch by Jonathan S. Chambers
34348         * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
34349         * PropertySort.cs: Added; Patch by Jonathan S. Chambers
34350         * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
34351         * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
34352         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
34353         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
34354         * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
34355         * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
34357 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
34359         * Combobox.cs:
34360                 - Draw focus on Simple Combobox
34361                 - Fixes drawing issues
34362                 - fixes 71834
34364 2005-01-27  Peter Bartok  <pbartok@novell.com>
34366         * Form.cs:
34367           - Place window in default location, instead of hardcoded 0/0
34368           - Send initial LocationChanged event
34369         * Control.cs:
34370           - UpdateBounds after creation to find out where the WM placed us
34371           - Make sure that if the ParentForm changes location the Form
34372             is notified
34373         * XplatUIX11.cs: XGetGeometry will not return the coords relative
34374             to the root, but to whatever the WM placed around us.
34375             Translate to root coordinates before returning toplevel
34376             coordinates
34377         * XplatUIWin32.cs: Removed debug output
34378         * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
34379           flag to GetWindowPos, to allow translation of coordinates on X11
34381 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
34383         * ListBox.cs: connect LostFocus Event
34385 2005-01-27  Peter Bartok  <pbartok@novell.com>
34387         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
34388           XplatUIX11.cs: Extended the Systray API
34389         * Form.cs: Removed debug output
34390         * Application.cs: Fixed focus assignment, always need to call
34391           XplatUI.Activate() since Form.Activate() has rules that may
34392           prevent activation
34393         * NotifyIcon.cs: Should be complete now
34394         * ToolTip.cs: Worked around possible timer bug
34396 2005-01-27  Jackson Harper  <jackson@ximian.com>
34398         * TabControl.cs:
34399         - Only invalidate the effected tabs when the
34400         selected index changes. This reduces drawing and gets rid of some
34401         flicker.
34402         - Only refresh if the tabs need to be shifted, otherwise only
34403         invalidate the slider button.
34404         - On windows the tabs are not filled to right if the slider is
34405         visible.
34406         
34407 2005-01-27  Jackson Harper  <jackson@ximian.com>
34409         * TabControl.cs: Only refresh on mouseup if we are showing the
34410         slider. Also only invalidate the button whose state has changed.
34412 2005-01-26  Peter Bartok  <pbartok@novell.com>
34414         * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
34415         * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
34416           and SystrayRemove() methods
34417         * XplatUIOSX.cs: Stubbed Systray methods
34418         * XplatUIX11.cs:
34419           - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
34420             methods
34421           - Fixed broken XChangeProperty calls (marshalling messed up things)
34422         * X11Structs.cs: Added enums and structs required for Size hinting
34423         * NotifyIcon.cs: Added & implemented
34425 2005-01-26  Jackson Harper  <jackson@ximian.com>
34427         * TabControl.cs: Space vertically layed out tabs properly.
34429 2005-01-26  Peter Bartok  <pbartok@novell.com>
34431         * Form.cs (CreateClientParams): Always set the location to 0,0
34432           since we're a child window.
34434         * Control.cs (SetVisibleCore): Always explicitly setting the location
34435           of a toplevel window, apparently X11 doesn't like to move windows
34436           while they're not mapped.
34438 2005-01-26  Jackson Harper  <jackson@ximian.com>
34440         * TabControl.cs: Implement FillToRight size mode with vertically
34441         rendered tabs.
34443 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
34445         * ControlPaint.cs, ThemeWin32Classic.cs
34446                 - Fixes DrawFocusRectangle
34448 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
34450         * MenuAPI.cs:
34451                 - MenuBar tracking only starts when item is first clicked
34452                 - Fixes menu hidding for multiple subitems
34453                 - Unselect item in MenuBar when item Executed
34454                 - Fixes bug 71495
34456 2005-01-25  Jordi Mas i Hernandez <jordi@ximian.com>
34458         * ListControl.cs:
34459                 - IsInputKey for ListBox
34460         * ListBox.cs:
34461                 - Focus item
34462                 - Shift and Control item selection
34463                 - Implement SelectionMode.MultiExtended
34464                 - Fixes RightToLeft
34465         * ComboBox.cs:
34466                 - IsInputKey implemented
34467                 - Do not generate OnTextChangedEdit on internal txt changes
34468                 
34469 2005-01-23  Peter Bartok  <pbartok@novell.com>
34471         * AccessibleObject.cs: Partially implemented Select()
34472         * MonthCalendar.cs: Added missing attributes and events
34473         * Form.cs: Fixed CreateParams behaviour, now controls derived from
34474           form can properly override CreateParams.
34475         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
34476           XplatUIX11.cs: Dropped RefreshWindow method, not needed if
34477           Control performs Invalidate & Update
34478         * NativeWindow (CreateHandle): Added special handling for Form
34479           and Form.FormParent classes to allow overriding of From.CreateParams
34480         * Control.cs:
34481           - ControlNativeWindow: Renamed 'control' variable to more intuitive
34482             name 'owner'
34483           - ControlNativeWindow: Added Owner property
34484           - Removed usage of Refresh() on property changes, changed into
34485             Invalidate(), we need to wait until the queue is processed for
34486             updates, direct calls might cause problems if not all vars for
34487             Paint are initialized
34488           - Added call to UpdateStyles() when creating the window, to set any
34489             styles that CreateWindow might have ignored.
34490           - Added support for Form CreateParent overrides to UpdateStyles()
34491         * MessageBox.cs: Removed no longer needed FormParent override stuff,
34492           CreateParams are now properly overridable
34493         * CommonDialog.cs: Removed no longer needed FormParent override stuff,
34494           CreateParams are now properly overridable
34496 2005-01-23  Miguel de Icaza  <miguel@ximian.com>
34498         * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
34499         OnTextBoxChanged.
34501         Capture LostFocus and OnTextBoxChanged.  The later introduces a
34502         recursive invocation that I have not figured out yet.
34504         Reset the timer when not using (it was accumulating).
34507         (OnTextBoxChanged): Set UserEdit to true here to track whether the
34508         user has made changes that require validation.
34510         Reset changing to avoid loops.
34512 2005-01-22  Miguel de Icaza  <miguel@ximian.com>
34514         * NumericUpDown.cs: Display value at startup.
34516         * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
34517         ValidateEditText.
34519         * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
34520         filled in.  Added some basic parsing of text.
34522         Still missing the OnXXX method overrides, and figuring out the
34523         events that must be emitted.
34525         * UpDownBase.cs: Handle UserEdit on the Text property.
34526         
34527 2005-01-22  Jordi Mas i Hernandez <jordi@ximian.com>
34529         * ComboBox.cs:
34530           - Fixes IntegralHeight
34531           - ToString method
34533 2005-01-21  Jackson Harper  <jackson@ximian.com>
34535         * TabControl.cs: Set the SelectedIndex property when SelectedTab
34536         is set so that the page visibility is updated and the tabs are
34537         sized correctly.
34539 2005-01-21  Jackson Harper  <jackson@ximian.com>
34541         * TabControl.cs: Use cliping rectangle for blitting. Give the
34542         theme the clipping rect so we can do clipping while
34543         drawing. Remove some debug code.
34545 2005-01-21  Jackson Harper  <jackson@ximian.com>
34547         * TabPage.cs: Add a new method so tab pages can force the tab
34548         control to recalculate the tab page sizes.
34549         * TabControl.cs: UpdateOwner needs to make the tab control recalc
34550         sizes.
34552 2005-01-20  Jackson Harper  <jackson@ximian.com>
34554         * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
34556 2005-01-20  Jackson Harper  <jackson@ximian.com>
34558         * TreeView.cs: Set the bounds for nodes properly. They were
34559         getting screwed up when checkboxes were not enabled, but images
34560         were.
34562 2005-01-20  Jordi Mas i Hernandez <jordi@ximian.com>
34564         * ListBox.cs:
34565                 - Owner draw support
34566                 - Fixes
34567                 
34568 2005-01-20  Jackson Harper  <jackson@ximian.com>
34570         * XplatUIStructs.cs: More misc keys
34571         * X11Keyboard.cs: Ignore some control keys.
34573 2005-01-20  Jackson Harper  <jackson@ximian.com>
34575         * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
34576         * X11Keyboard.cs: Set the AltGr mask when we get a key event.
34578 2005-01-19  Peter Bartok  <pbartok@novell.com>
34580         * Control.cs: Un-selecting the control when it is loosing focus
34582 2005-01-19  Jackson Harper  <jackson@ximian.com>
34584         * TreeView.cs: Hook up to the text controls leave event so we can
34585         end editing when the users clicks outside the text box.
34586         
34587 2005-01-19  Jackson Harper  <jackson@ximian.com>
34589         * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
34590         get set in the conversion array.
34592 2005-01-19  Peter Bartok  <pbartok@novell.com>
34594         * Application.cs (ModalRun): Added a call to CreateControl to ensure
34595           focus is properly set
34596         * Button.cs:
34597           - Added missing attributes
34598           - removed styles, those are already set in the base class
34599         * ButtonBase.cs:
34600           - Added missing attributes
34601           - Added clip window styles
34602         * CheckBox.cs: Added missing attributes
34603         * CommonDialog.cs:
34604           - FormParentWindow.CreateParams: Added required clip styles
34605         * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
34606           also filters modifier keys
34607         * MessageBox.cs:
34608           - Added assignment of Accept and Cancel button to enable Enter
34609             and Esc keys in MessageBox dialogs
34610           - FormParentWindow.CreateParams: Added required clip styles
34611         * RadioButton.cs: Added missing attributes
34612         * TextControl.cs: No longer draws selection if control does not
34613           have focus
34614         * TextBoxBase.cs:
34615           - Now draws simple rectangle around test area to make it obvious
34616             there's a control. This is a hack until we properly support borders
34617           - A few simple fixes to support selections better, now erases selected
34618             text when typing, and resets selection when using movement keys
34620 2005-01-19  Miguel de Icaza  <miguel@ximian.com>
34622         * UpDownBase.cs: Added some new properties.
34624         * DomainUpDown.cs: Implement a lot to get my test working.
34626 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
34628         * XplatUIOSX.cs: Fix a minor bug to bring the close box back
34630 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
34632         * OSXStructs (WindowAttributes): Fixed csc complaints
34634 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
34636         * XplayUIOSX.cs:
34637           OSXStructs.cs: Initial refactor to move enums and consts into
34638           OSXStructs and use them in the driver for greater readability.
34640 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
34642         * XplatUIOSX.cs: Initial support for Standard Cursors.
34643         * OSXStructs.cs: Move our structs here; added ThemeCursor enum
34645 2005-01-19  Jordi Mas i Hernandez <jordi@ximian.com>
34647         * ComboBox.cs: ability to change style when the ctrl is already
34648         created, missing methods and events, bug fixes, signature fixes
34650 2005-01-19  Peter Bartok  <pbartok@novell.com>
34652         * Cursors.cs (ctor): Added ctor to fix signature
34654 2005-01-18  Peter Bartok  <pbartok@novell.com>
34656         * Button.cs: Implemented DoubleClick event
34657         * ButtonBase.cs:
34658           - Fixed keyboard handling to behave like MS, where the press of
34659             Spacebar is equivalent to a mousedown, and the key release is
34660             equivalent to mouseup. Now a spacebar push will give the same
34661             visual feedback like a mouse click.
34662           - Added missing attributes
34663           - Added ImeModeChanged event
34664           - Added support for generating DoubleClick event for derived classes
34665         * CheckBox.cs:
34666           - Implemented DoubleClick event
34667           - Added missing attributes
34668         * CommonDialog.cs: Added missing attribute
34669         * ContextMenu.cs: Added missing attributes
34670         * RadioButton.cs:
34671           - AutoChecked buttons do not allow to be unselected when clicked
34672             (otherwise we might end up with no selected buttons in a group)
34673           - Added missing attributes
34674           - Implemented DoubleClickEvent
34675         * ThreadExceptionDialog.cs: Enabled TextBox code
34677 2005-01-18  Peter Bartok  <pbartok@novell.com>
34679         * Form.cs: Removed debug output
34680         * Button.cs: Added support for DoubleClick method
34682 2005-01-18  Peter Bartok  <pbartok@novell.com>
34684         * Form.cs:
34685           - Added method to parent window that allows triggering size
34686             calculations when a menu is added/removed
34687           - set_Menu: Cleaned up mess from early days of Form and Control,
34688             now properly triggers a recalc when a menu is added/removed
34689           - Added case to select form itself as focused form if no child
34690             controls exist
34691           - Added PerformLayout call when showing dialog, to ensure properly
34692             placed controls
34693         * Control.cs:
34694           - Select(): Made internal so Form can access it
34695           - Focus(): Only call Xplat layer if required (avoids loop), and sets
34696             status
34697         * Application.cs (Run): Removed hack and calls PerformLayout instead
34698           to trigger calculation when Form becomes visible
34700 2005-01-18  Jordi Mas i Hernandez <jordi@ximian.com>
34702         * ComboBox.cs: fixes for ownerdraw
34704 2005-01-18  Peter Bartok  <pbartok@novell.com>
34706         * TextControl.cs:
34707           - Sentinel is no longer static, each Document gets it's own, this
34708             avoids locking or alternatively overwrite problems when more
34709             than one text control is used simultaneously.
34710           - Switched to use Hilight and HilightText brushes for text selection
34712         * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
34714 2005-01-18  Peter Bartok  <pbartok@novell.com>
34716         * Control.cs:
34717           - Hooked up the following events:
34718                 o ControlAdded
34719                 o ControlRemoved
34720                 o HandleDestroyed
34721                 o ImeModeChanged
34722                 o ParentChanged
34723                 o TabStopChanged
34724                 o Invalidated
34725                 o SystemColorsChanged
34726                 o ParentFontChanged
34727                 o Move
34728           - Removed debug output
34729           - Added a call to the current theme's ResetDefaults when a color change
34730             is detected
34731         * Form.cs: Now setting the proper ImeMode
34732         * Theme.cs: Defined a method to force recreation of cached resources
34733           and rereading of system defaults (ResetDefaults())
34734         * ThemeWin32Classic.cs: Added ResetDefaults() stub
34736 2005-01-17  Peter Bartok  <pbartok@novell.com>
34738         * Control.cs: Added missing attributes
34740 2005-01-17  Jackson Harper  <jackson@ximian.com>
34742         * TreeNode.cs: Implement editing. Add missing properties selected
34743         and visible.
34744         * TreeView.cs: Implement node editing. Also some fixes to use
34745         Invalidate (invalid area) instead of Refresh when selecting.
34747 2005-01-17  Peter Bartok  <pbartok@novell.com>
34749         * Control.cs:
34750           - Implemented InvokeGotFocus() method
34751           - Implemented InvokeLostFocus() method
34752           - Implemented InvokePaint() method
34753           - Implemented InvokePaintBackground() method
34754           - Implemented InvokeClick() method
34755           - Implemented FindForm() method
34756           - Implemented RectangleToClient() method
34757           - Implemented ClientToRectangle() method
34758           - Implemented ResetBackColor() method
34759           - Implemented ResetCursor() method
34760           - Implemented ResetFont() method
34761           - Implemented ResteForeColor() method
34762           - Implemented ResetImeMode() method
34763           - Implemented ResetLeftToRight() method
34764           - Implemented ResetText() method
34765           - Implemented Scale() methods
34766           - Implemented ScaleCore() method
34767           - Implemented Update() method
34768           - Removed unused variables
34769           - Stubbed AccessibilityNotifyClients and
34770             ControlAccessibleObject.NotifyClients() methods (dunno what to do
34771             with those yet)
34772           - Now setting proper default for RightToLeft property
34773           - Fixed bug in SetClientSizeCore that would cause windows to get
34774             really big
34775           - Now sending Click/DoubleClick events
34776           - Now selecting controls when left mouse button is clicked on
34777             selectable control
34778         * AccessibleEvents.cs: Added
34779         * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
34780         * XplatUIOSX.cs: Stubbed UpdateWindow() method
34781         * XplatUIWin32.cs: Implemented UpdateWindow() method
34782         * XplatUIX11.cs: Implemented UpdateWindow() method
34783         * Form.cs: Removed stray semicolon causing CS0162 warning
34784         * ThemeWin32Classic.cs: Fixed unused variable warnings
34785         * ScrollableControl.cs: Now calls base method for ScaleCore
34786         * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
34787           style to avoid interference with internal click handler (which is
34788           different than standard Control click handling)
34789         * RadioButton.cs:
34790           - Now unchecks all sibling radio buttons when control is
34791             selected (Fixes #68756)
34792           - Removed internal tabstop variable, using the one inherited from
34793             Control
34795 2005-01-17  Jackson Harper  <jackson@ximian.com>
34797         * NavigateEventArgs.cs: Fix base type.
34798         * LinkLabel.cs: Sig fix
34799         
34800 2005-01-17  Jackson Harper  <jackson@ximian.com>
34802         * TreeView.cs: Only invalidate the effected nodes bounds when
34803         selecting nodes.
34805 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
34807         * XplatUIWin32.cs: fixes Win32 marshaling
34808         * XplatUIX11.cs: fixes method signature
34810 2005-01-17  Peter Bartok  <pbartok@novell.com>
34812         * XplatUIX11.cs: Clean up resources when we no longer need them
34814 2005-01-17  Peter Bartok  <pbartok@novell.com>
34816         * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
34817           OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
34818           and DestroyCursor() methods.
34819         * Cursor.cs: Partially implemented, now supports standard cursors;
34820           still contains some debug code
34821         * Cursors.cs: Implemented class
34822         * Control.cs:
34823           - WndProc(): Added handling of WM_SETCURSOR message, setting the
34824             appropriate cursor
34825           - Implemented Cursor property
34826           - Replaced break; with return; more straightforwar and possibly
34827             faster
34828           - Now properly setting the result for WM_HELP
34829         * X11Structs.cs: Added CursorFontShape enum
34830         * XplatUIStructs.cs:
34831           - Added StdCursor enum (to support DefineStdCursor() method)
34832           - Added HitTest enum (to support sending WM_SETCURSOR message)
34833         * XplatUIX11.cs:
34834           - Now sends the WM_SETCURSOR message
34835           - Implemented new cursor methods
34836         * XplatUIOSX.cs: Stubbed new cursor methods
34837         * XplatUIWin32.cs:
34838           - Implemented new cursor methods
34839           - Added GetSystemMetrics function and associated enumeration
34841 2005-01-15  Peter Bartok  <pbartok@novell.com>
34843         * Control.cs:
34844           - WndProc(): Now handles EnableNotifyMessage
34845           - SelectNextControl(): Fixed bug where if no child or sibling
34846             controls exist we looped endlessly
34848 2005-01-14  Jackson Harper  <jackson@ximian.com>
34850         * TreeView.cs: Recalculate the tab pages when a new one is added
34851         so that the proper bounding rects are created.
34853 2005-01-14  Jackson Harper  <jackson@ximian.com>
34855         * TreeView.cs: Draw a gray box instead of a grip in the lower
34856         right hand corner when there are both horizontal and vertical
34857         scroll bars.
34859 2005-01-14  Jackson Harper  <jackson@ximian.com>
34861         * Control.cs: When erasing backgrounds use FromHwnd instead of
34862         FromHdc when there is a NULL wparam. This occurs on the X driver.
34863         * XplatUIX11.cs: Set the wparam to NULL.
34865 2005-01-13  Jackson Harper  <jackson@ximian.com>
34867         * PictureBox.cs: Implement missing methods (except ToString, need
34868         to test that on windows) and events. When visibility is changed we
34869         need to redraw the image because the buffers are killed. When size
34870         is changed refresh if the sizemode needs it.
34872 2005-01-13  Peter Bartok  <pbartok@novell.com>
34874         * Control.cs (SelectNextControl): Was using wrong method to select
34875           a control
34877 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
34879         * ComboBox.cs: fixes dropstyle
34881 2005-01-13  Peter Bartok  <pbartok@novell.com>
34883         * Form.cs:
34884           - Implemented Select() override
34885           - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
34886           - Now sets keyboard focus on startup
34887         * Control.cs (SelectNextControl): Now properly handles directed=true
34888         * TextBoxBase.cs:
34889           - WndProc: Now passes tab key on to base if AcceptTabChar=false
34890           - Added (really bad) focus rectangle (mostly for testing)
34891         * TextBox.cs: Added code to handle getting/loosing focus and invalidating
34892           to enforce redraw on focus changes
34893         * ContainerControl.cs:
34894           - Fixed detection of Shift-Tab key presses
34895           - Fixed traversal with arrow keys
34896         * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
34897           gonna keep this or if it's complete yet
34898         
34899 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
34901         * ComboBox.cs: missing properties, fixes
34903 2005-01-13  Peter Bartok  <pbartok@novell.com>
34905         * Panel.cs (ctor): Setting Selectable window style to off
34906         * Splitter.cs (ctor): Setting Selectable window style to off
34907         * GroupBox.cs (ctor): Setting Selectable window style to off
34908         * Label.cs (ctor): Setting Selectable window style to off
34910 2005-01-12  Miguel de Icaza  <miguel@ximian.com>
34912         * UpDownBase.cs (InitTimer): If the timer has been already
34913         created, enable it.
34915         Use a TextBox instead of a Label.
34917 2005-01-12  Jackson Harper  <jackson@ximian.com>
34919         * TreeView.cs: Refresh the tree after sorting the nodes. Always
34920         draw the connecting node lines (when ShowLines is true).
34921         * TreeNode.cs: The nodes index can now be updated. This is used
34922         when a node collection is sorted.
34923         * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
34924         insert or an existing unsorted node collection can be sorted.
34925         
34926 2005-01-12  Peter Bartok  <pbartok@novell.com>
34928         * ContainerControl.cs: Implemented ProcessDialogKeys()
34930 2005-01-12  Peter Bartok  <pbartok@novell.com>
34932         * Control.cs:
34933           - Implemented SelectNextControl() method
34934           - Several focus related bug fixes
34935           - Fixed Docking calculations to match MS documentation and
34936             behaviour
34938 2005-01-12  Jordi Mas i Hernandez <jordi@ximian.com>
34940         * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
34941         bug fixes
34943 2005-01-12  Peter Bartok  <pbartok@novell.com>
34945         * Control.cs:
34946           - Fixed broken Contains() method
34947           - Implemented GetNextControl() method. Finally. This is the pre-
34948             requisite for focus handling.
34950 2005-01-12  Peter Bartok  <pbartok@novell.com>
34952         * OSXStrucs.cs: Added
34954 2005-01-12  Peter Bartok  <pbartok@novell.com>
34956         * XplatUIWin32.cs:
34957           - Removed PeekMessageFlags
34958           - Implemented SetWindowStyle() method
34959         * XplatUIStructs.cs: Added PeekMessageFlags
34960         * X11Structs: Added missing border_width field to XWindowChanges struct
34961         * XplatUIX11.cs:
34962           - PeekMessage: Now throws exception if flags which are not yet
34963             supported are passed
34964           - Implemented SetWindowStyle() method
34965           - Fixed SetZOrder to handle AfterHwnd properly
34966         * XplatUI.cs: Added SetWindowStyle() method
34967         * XplatUIDriver.cs: Added SetWindowStyle() abstract
34968         * Control.cs:
34969           - Implemented UpdateStyles() method
34970           - Implemented UpdateZOrder() method
34971         * XplatUIOSX.cs: Added SetWindowStyle() stub
34973 2005-01-12  Geoff Norton  <gnorton@customerdna.com>
34975         * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
34976         button mouse).
34979 2005-01-11  Jackson Harper  <jackson@ximian.com>
34981         * TreeView.cs: Still need to draw lines to siblings even if out of
34982         the current node is out of the clip.
34984 2005-01-11  Jackson Harper  <jackson@ximian.com>
34986         * TreeView.cs: When setting the hbar/vbar/grip position use
34987         SetBounds so that perform layout is only called once. Also suspend
34988         and resume layout so layout is only done once for all controls.
34989         - Removed some debug fluff
34990         * SizeGrip.cs: Call base implmentation in overriding methods.
34991         - When visibility is changed the drawing buffers are killed so we
34992         need to redraw.
34994 2005-01-11  Jackson Harper  <jackson@ximian.com>
34996         * TreeView.cs: Calculate the open node count while drawing. This
34997         saves us an entire tree traversal for every paint operation. Use
34998         a member var for the open node count so less vars are passed around.
35000 2005-01-11  John BouAntoun  <jba-mono@optusnet.com.au>
35002         * MonthCalendar.cs:
35003         - fixed selection to use mousemove, not mouse polling on timer
35004         * ThemeWin32Classic.cs
35005         - removed redundant unused variable "no_more_content"
35006         
35007 2005-01-11  Peter Bartok  <pbartok@novell.com>
35009         * XplatUIX11.cs (DoEvents): Needs to return when no more events
35010           are pending, so it now calls PeekMessage instead of GetMessage;
35011           implemented a incomplete version of PeekMessage
35012         
35013 2005-01-11  Peter Bartok  <pbartok@novell.com>
35015         * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
35016           I18n issues
35017         * TextBoxBase.cs: Added sending of TextChanged event
35019 2005-01-10  Jackson Harper  <jackson@ximian.com>
35021         * TreeView.cs: Try not to draw outside the clipping rectangle on
35022         each node element.
35024 2005-01-10  Jordi Mas i Hernandez <jordi@ximian.com>
35026         * ComboBox.cs: keyboard navigation, item navigation, bug fixes
35028 2005-01-10  Jackson Harper  <jackson@ximian.com>
35030         * TreeView.cs:
35031         - Implement fast scrolling. Now only the newly
35032         exposed nodes are drawn and the old image is moved using the
35033         XplatUI::ScrollWindow method.
35034         - Factor in height of nodes when calculating whether or not the
35035         node is in the clipping rect.
35037 2005-01-10  Jackson Harper  <jackson@ximian.com>
35039         * TreeNodeCollection.cs: Refresh the tree when a new node is added.
35041 2005-01-10  Peter Bartok  <pbartok@novell.com>
35043         * Application.cs: Added temporary hack to resolve all our resize
35044           required issues on startup. This will get fixed properly at
35045           some point in the future
35047 2005-01-10  Jackson Harper  <jackson@ximian.com>
35049         * SizeGrip.cs: New internal class that is used as a sizing
35050         grip control...hence the name.
35052 2005-01-10  Peter Bartok  <pbartok@novell.com>
35054         * Control.cs: Implemented proper TabIndex handling, now assigning
35055           a tabindex when a control is added to a container
35056         * GroupBox.cs (ctor): Now sets the Container style bit, required
35057           for Control.GetNextControl()
35059 2005-01-09  Jackson Harper  <jackson@ximian.com>
35061         * TextBoxBase.cs: Clear window when scrolling (fixes build).
35063 2005-01-09  Peter Bartok <pbartok@novell.com>
35065         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
35066           XplatUIX11.cs: Added ability to control ScrollWindow expose and
35067           an overload for ScrollWindow to allow only scrolling a rectangle
35069 2005-01-09  Peter Bartok <pbartok@novell.com>
35071         * Form.cs:
35072           - Implemented SetDesktopBounds method
35073           - Implemented SetDesktopLocation method
35075 2005-01-08  Jackson Harper  <jackson@ximian.com>
35077         * TreeView.cs: Only set the vbar's Maximum and LargeChange when
35078         the node count has changed, this removes to VScroll::Refresh calls
35079         when drawing.
35081 2005-01-08  Geoff Norton  <gnorton@customerdna.com>
35083         * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
35085 2005-01-07  Jackson Harper  <jackson@ximian.com>
35087         * TreeNode.cs: Just update the single node when it is
35088         checked. Don't refresh after toggling, the Expand/Collapse already
35089         handles this.
35090         * TreeView.cs: Respect clipping a little more when drawing. Try
35091         not to redraw things that don't need to be redrawn. Just hide the
35092         scrollbars when they are no longer needed instead of removing
35093         them, so they don't have to be created again and again.
35094         
35095 2005-01-07  Geoff Norton  <gnorton@customerdna.com>
35097         * XplatUIOSX.cs (SetCaretPos):  We need to translate the view
35098         coordinates to window space to place the caret properly, FIXED.
35099         Implement GetWindowState & SetWindowState
35101 2005-01-06  Peter Bartok <pbartok@novell.com>
35103         * Form.cs:
35104           - Implemented ClientSize property
35105           - Implemented DesktopBounds property
35106           - Implemented DesktopLocation property
35107           - Implemented IsRestrictedWindow property
35108           - Implemented Size property
35109           - Implemented TopLevel property
35110           - Implemented FormWindowState property
35111         * Control.cs:
35112           - Implemented GetTopLevel() method
35113           - Implemented SetTopLevel() method
35114         * X11Structs.cs (Atom):
35115           - Added AnyPropertyType definition
35116           - Added MapState definiton and updated XWindowAttribute struct
35117         * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
35118         * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
35119         * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
35120         * XplatUIWin32.cs:
35121           - Implemented GetWindowState() and SetWindowState() methods
35122           - Fixed Win32GetWindowLong return type
35123         * XplatUIX11.cs:
35124           - Introduced central function for sending NET_WM messages
35125           - Implemented GetWindowState() and SetWindowState() methods
35126         * TextBoxBase.cs (set_Lines):
35127           - Now uses Foreground color for text added via Text property (Duh!)
35128           - Added code to remember programmatically requested size (fixes
35129             behaviour when Multiline is set after Size)
35130           - Added AutoSize logic
35132 2005-01-06  Jackson Harper  <jackson@ximian.com>
35134         * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
35136 2005-01-06  Jackson Harper  <jackson@ximian.com>
35138         * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
35139         set to less then 0.
35141 2005-01-06  Jackson Harper  <jackson@ximian.com>
35143         * ScrollableControl.cs: Lazy init the scrollbars.
35144         
35145 2005-01-06  Jackson Harper  <jackson@ximian.com>
35147         * Theme.cs: Speed up getting pens and solid brushes, by using
35148         their ARGB as a hash instead of tostring and not calling Contains.
35150 2005-01-06  Peter Bartok <pbartok@novell.com>
35152         * Form.cs:
35153           - Implemented OnActivated and OnDeactivate event trigger
35154           - Implemented Activate() method
35155           - Fixed ShowDialog() to activate the form that was active before
35156             the dialog was shown
35157         * XplatUIX11.cs:
35158           - Added global active_window var that tracks the currently active
35159             X11 window
35160           - Now always grabs Property changes from the root window to always
35161             catch changes on the active window property
35162           - Added code to PropertyNotify handler to send Active/Inactive
35163             messages when state changes. This puts X11 and Win32 en par on
35164             WM_ACTIVATE notifications (except for double notifications when
35165             the user clicks away from our modal window to another one of our
35166             windows)
35168 2005-01-05  Jackson Harper  <jackson@ximian.com>
35170         * ImageList.cs: Implment ctor
35172 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
35174         * XplatUIOSX.cs: Implement Activate/SetTopmost
35176 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
35178         * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
35180 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
35182         * XplatUIOSX.cs: Implement GetActive/SetFocus.
35184 2005-01-05  Peter Bartok <pbartok@novell.com>
35186         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
35187           XplatUIOSX.cs: Added GetActive method to return the currently
35188           active window for the application (or null, if none is active)
35189         * Form.cs:
35190           - Implemented ActiveForm
35191           - Commented out owner assignment for modal dialogs (causes problems
35192             on Win32, since the owner will be disabled)
35193           - Reworked some Active/Focus handling (still incomplete)
35194         * CommonDialog.cs: Commented out owner assignment for modal dialogs
35195           (causes problems on Win32, since the owner will be disabled)
35196         * IWin32Window: Added ComVisible attribute
35198 2005-01-05  Peter Bartok <pbartok@novell.com>
35200         * ToolTip.cs (WndProc): Enable setting focus now that we have the
35201           required XplatUI functions.
35203 2005-01-05  Peter Bartok <pbartok@novell.com>
35205         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
35206           XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
35207           to implement focus and activation handling; still incomplete and
35208           with debug output
35210 2005-01-04  Peter Bartok <pbartok@novell.com>
35212         * TextBoxBase.cs: Changed access level for Document property to
35213           match switch to internal for TextControl
35215 2005-01-04  Peter Bartok <pbartok@novell.com>
35217         * AccessibleObject: Added ComVisible attribute
35219 2005-01-04  Jackson Harper  <jackson@ximian.com>
35221         * X11Keyboard.cs: Remove unneeded var.
35223 2005-01-04  Jackson Harper  <jackson@ximian.com>
35225         * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
35226         but PAINT.
35227         * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
35228         ClientMessage. This makes apps exit cleanly (more often).
35229         
35230 2005-01-04  Jackson Harper  <jackson@ximian.com>
35232         * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
35233         handling focus, return correct colors and fonts,
35234         * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
35235         handle selection, horizontal scrolling, and mouse interaction.
35237 2005-01-04  Peter Bartok <pbartok@novell.com>
35239         * ICommandExecutor.cs: Added
35240         * IDataGridColumnStyleEditingNotificationService.cs: Added
35241         * IFeatureSupport.cs: Added
35242         * IFileReaderService.cs: Added
35243         * IDataObject.cs: Added ComVisible attribute
35244         * AmbientProperties.cs: Added
35245         * BaseCollection.cs: Added missing attributes
35246         * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
35247         * BaseCollection.cs: Added missing attributes
35248         * Binding.cs: Added TypeConverter attribute
35249         * BindingContext.cs: Added DefaultEvent attribute
35250         * BindingsCollection.cs: Added DefaultEvent attribute
35251         * Button.cs: Added DefaultValue attribute
35252         * DragEventArgs.cs: Added ComVisible attribute
35253         * GiveFeedbackEventArgs.cs: Added ComVisible attribute
35254         * KeyEventArgs.cs: Added ComVisible attribute
35255         * KeyPressEventArgs.cs: Added ComVisible attribute
35256         * MouseEventArgs.cs: Added ComVisible attribute
35257         * NavigateEventArgs.cs: Added
35258         * NavigateEventHandler.cs: Added
35259         * FeatureSupport.cs: Added
35260         * OSFeature.cs: Added
35261         * Theme.cs: Added abstract Version property to support OSFeature
35262         * ThemeWin32Classic.cs: Added Version property to
35263           support OSFeature.Themes
35264         * ProgressBar.cs: Removed OnPaintBackground override, not required since
35265           the proper styles to avoid background drawing are set, also doesn't
35266           match MS signature
35267         * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
35268         * QueryContinueDragEventArgs.cs: Added ComVisible attribute
35269         * ScrollEventArgs.cs: Added ComVisible attribute
35270         * SplitterEventArgs.cs: Added ComVisible attribute
35271         * AccessibleSelection.cs: Added Flags attribute
35272         * Appearance.cs: Added ComVisible attribute
35273         * Border3DSide.cs: Added ComVisible attribute
35274         * Border3DStyle.cs: Added ComVisible attribute
35275         * BorderStyle.cs: Added ComVisible attribute
35276         * DragAction.cs: Added ComVisible attribute
35277         * ErrorBlinkStyle.cs: Added
35278         * ScrollEventType.cs: Added ComVisible attribute
35279         * AnchorStyles.cs: Added Editor attribute
35280         * DockStyle.cs: Added Editor attribute
35281         * HorizontalAlignment.cs: Added ComVisible attribute
35282         * HelpEventArgs.cs: Added ComVisible attribute
35283         * PaintEventArgs.cs: Added IDisposable
35285 2005-01-04  Peter Bartok <pbartok@novell.com>
35287         * TextControl.cs: Switched Line, LineTag and Document classes to
35288           internal
35290 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
35292         * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
35293         Simple mode, fixes, IntegralHeight, etc.
35295 2005-01-04  Peter Bartok <pbartok@novell.com>
35297         * TextBoxBase.cs: Using proper font variable now
35299 2005-01-04  Peter Bartok <pbartok@novell.com>
35301         * Form.cs (ShowDialog): Set parent to owner, if provided
35302         * GroupBox.cs: Removed unused vars
35303         * TextControl.cs:
35304           - Added GetHashCode() for Document and LineTag classes
35305           - Removed unused variables
35306           - Added CharIndexToLineTag() and LineTagToCharIndex() methods
35307             to allow translation between continuous char position and line/pos
35308         * CheckBox.cs: Removed vars that are provided by base class
35309         * RadioButton.cs: Removed vars that are provided by base class, added
35310           new keyword where required
35311         * LinkLabel.cs: Added new keyword where required
35312         * Control.cs (WndProc): Removed unused variable
35313         * TextBoxBase.cs:
35314           - Finished SelectionLength property
35315           - Implemented SelectionStart property
35316           - Implemented Text property
35317           - Removed unused vars
35318         * MessageBox.cs: Added new keyword where required
35319         * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
35320           WndProc signature
35321         * MenuAPI.cs: Added new keyword where required
35322         * ButtonBase.cs: Removed vars that are provided by base class, added
35323           new keyword where required
35324         * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
35325           argument to double, to allow compiling with csc 2.0 (Atsushi ran
35326           into this)
35327         * Application.cs (Run): Now triggers the ThreadExit event
35328         * CommonDialog.cs: Added new keyword where required; now properly sets
35329           parent (owner) for dialog
35330         * XplatUIX11.cs: Commented out unused vars
35331         * StatusBar.cs: Fixed signature for Text property
35332         * TabPage.cs: Undid Jordi's removal of unused var, now using the var
35334 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
35336         * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
35337         TrackBar.cs, MonthCalendar.cs: remove unused vars
35339 2005-01-03  Jackson Harper  <jackson@ximian.com>
35341         * ThemeWin32Classic.cs:
35342         * X11Keyboard.cs: Remove unused vars.
35344 2005-01-03  Peter Bartok  <pbartok@novell.com>
35346         * TextBox.cs:
35347           - set_Text: Tied into TextControl
35348           - set_TextAlignment: Tied into TextControl
35349         * TextControl.cs:
35350           - Added alignment properties and implemented alignment handling
35351             and drawing (still has a bug, not generating proper expose events)
35352           - Added new Line() constructor to allow passing the line alignment
35353           - Fixed selection setting, properly handling end<start now
35354           - Added aligment considerations to RecalculateDocument()
35355         * TextBoxBase.cs:
35356           - Now properly enforces control height for single line controls
35357           - Added support for CharacterCasing
35358           - Added IsInputKey override
35359           - Fixed Keys.Enter logic
35360           - Added SetBoundsCore override
35361           - Fixed mouse selection handling
35363 2005-01-03  Jackson Harper  <jackson@ximian.com>
35365         * TreeView.cs:
35366           - Collapse and uncheck all nodes when CheckBoxes is disabled.
35367           - Checkboxes are always aligned to the bottom of the node,
35368           regardless of item height.
35369           - Use the node bounds to draw the text so we can center it when
35370           the item height is greater then the font height.
35371           - Node::Bounds are only the text part of the node.
35372         * TreeNode.cs: New method to combine collapsing and unchecking all
35373           nodes recursively.
35375 2005-01-02  Jackson Harper  <jackson@ximian.com>
35377         * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
35378         * TreeNode.cs: Add a bounding box for the checkbox, refresh the
35379         tree when a check is changed. TODO: Only refresh the checked node.
35381 2004-12-30  Jackson Harper  <jackson@ximian.com>
35383         * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
35384         * TreeNode.cs: When collapsing make sure to never collapse the
35385         root node.
35387 2004-12-29  Jackson Harper  <jackson@ximian.com>
35389         * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
35390         
35391 2004-12-28  Zoltan Varga  <vargaz@freemail.hu>
35393         * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
35395 2004-12-28  Peter Bartok  <pbartok@novell.com>
35397         * MessageBox.cs (get_CreateParams): Don't use owner var if it's
35398           not yet assigned
35400 2004-12-28  Peter Bartok  <pbartok@novell.com>
35402         * Control.cs (WndProc): Added WM_HELP handler, now generates
35403           HelpRequested event
35404         * Form.cs: Added HelpButton property and required support code
35405         * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
35407 2004-12-28  Peter Bartok  <pbartok@novell.com>
35409         * CommonDialog.cs:
35410           - Made DialogForm.owner variable internal
35411           - Added check to ensure owner form is set before setting
35412             owner properties in CreateParams
35414 2004-12-28  Geoff Norton  <gnorton@customerdna.com>
35416         * XplatUIOSX.cs: Implement mouse hovering.  Fix QDPoint struct to avoid
35417           swizzling.  Implement ClientToScreen and ScreenToClient.  Implement
35418           GetCursorPos.  Fix major visibility issues.  Rework the windowing
35419           system to support borderless/titleless windows (implements menus).
35420           Fix GetWindowPos.  Implement initial background color support for
35421           views.
35423 2004-12-28  Peter Bartok  <pbartok@novell.com>
35425         * Form.cs (get_CreateParams): Make sure we have an owner before using
35426           the owner variable. Implement proper default if no owner exists
35428 2004-12-28  Peter Bartok  <pbartok@novell.com>
35430         * In preparation for making Managed.Windows.Forms the default build target
35431           for System.Windows.Forms, the following stubbed files were added.
35432           Dialogs are currently being implemented by contributors and are only
35433           short-term place holders.
35434         * ColorDialog.cs: Initial check-in (minmal stub)
35435         * DataGrid.cs: Initial check-in (minimal stub)
35436         * DataGridLineStyle.cs: Initial check-in (minimal stub)
35437         * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
35438         * DataGridTableStyle.cs: Initial check-in (minimal stub)
35439         * FontDialog.cs: Initial check-in (minimal stub)
35440         * FileDialog.cs: Initial check-in (minimal stub)
35441         * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
35442         * GridTableStylesCollection.cs: Initial check-in (minimal stub)
35443         * OpenFileDialog: Initial check-in (minimal stub)
35444         * IComponentEditorPageSite.cs: Initial check-in
35445         * Splitter.cs: Initial check-in (for Jackson)
35446         * SplitterEventArgs.cs: Initial check-in (for Jackson)
35447         * SplitterEventHandler.cs: Initial check-in (for Jackson)
35448         * TextBox.cs: Initial check-in; still needs some wiring to
35449           TextControl backend
35450         * Form.cs: Implemented ControlBox property
35451         * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
35452         * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
35453         * TextControl.cs: Added selection functionality; added todo header
35454         * TextBoxBase.cs:
35455           - Implemented Lines property
35456           - Implemented TextHeight property
35457           - Implemented SelectedText property
35458           - Implemented SelectionLength property
35459           - Implemented SelectAll method
35460           - Implemented ToString method
35461           - Removed and cleaned up some debug code
35462           - Implemented (still buggy) mouse text selection
35464 2004-12-27  Jordi Mas i Hernandez <jordi@ximian.com>
35466         * ComboBox.cs: Complete DropDownList implementation, fixes.
35468 2004-12-26  Jordi Mas i Hernandez <jordi@ximian.com>
35470         * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
35471         * ComboBoxStyle.cs: ComboBoxStyle enum
35472         * ComboBox.cs: Initial work on ComboBox control
35474 2004-12-21  Peter Bartok  <pbartok@novell.com>
35476         * Control.cs (ctor, CreateParams): Moved setting of is_visible
35477           forward so that anything that creates a window gets the default,
35478           also no longer uses Visible property in CreateParams to avoid
35479           walking up the parent chain and possibly get the wrong visible
35480           status. Fixed IsVisible to no longer walk up to the parent.
35482 2004-12-21  Peter Bartok  <pbartok@novell.com>
35484         * Form.cs (ShowDialog): Unset modality for the proper window
35486 2004-12-20  Peter Bartok  <pbartok@novell.com>
35488         * CommonDialog.cs: Initial check-in
35490 2004-12-20  Peter Bartok  <pbartok@novell.com>
35492         * Control.cs (Visible): Now uses the parent window instead of the
35493           client area window for the property
35495         * Form.cs
35496           - ShowDialog(): Now uses the proper window for modality
35497           - The default visibility state for the form parent is now false. This
35498             will prevent the user from seeing all the changes to the form and
35499             its controls before the application hits Application.Run()
35500           - Removed some stale commented out code
35502         * NativeWindow.cs:
35503           - Added FindWindow() method to have a method to check for existence
35504             of a window handle
35505           - Added ability to override default exception handling (for example
35506             when debugging with VS.Net; to do this the ExternalExceptionHandler
35507             define must be set
35508           - Removed some useless debug output
35510         * XplatUIX11.cs:
35511           - Removed r37929 (SetModal patch from Ashwin Bharambe), was
35512             not working as expected
35513           - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
35514             property to allow switching back to the modal window if focus is
35515             given to another one of our windows (Application Modal)
35516           - Now only sets override_redirect if we create a window
35517             without WS_CAPTION
35518           - Moved EventMask selection before mapping of newly created window
35519             so we can catch the map event as well
35520           - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
35521           - Added various Atom related DllImports
35522           - Implemented Exit() method
35523           - .ctor() : No longer shows window if WS_VISIBLE is not defined
35524             in the CreateParams
35526         * MessageBox.cs: Now properly deals with the FormParent window by
35527           providing an override the FormParent CreateParams property to
35528           set as POPUP instead of OVERLAPPED window.
35530 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
35532         * XplatUIOSX.cs: Implement DestroyWindow.  Implement ScrollWindow
35533         Minor code cleanup.
35535 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
35536         
35537         * XplatUIOSX.cs (SetModal): Implement this method on OSX.
35539 2004-12-18  Peter Bartok  <pbartok@novell.com>
35541         * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
35542           implementing SetModal() method
35544 2004-12-18  Peter Bartok  <pbartok@novell.com>
35546         * X11Structs.cs (XGCValues): Fixed type of function element
35547         * XplatUI.cs: Added ScrollWindow() method
35548         * XplatUIDriver.cs: Added ScrollWindow() abstract
35549         * XplatUIWin32.cs: Implemented ScrollWindow() method
35550         * XplatUIX11.cs: Implemented ScrollWindow() method
35551         * XplatUIOSX.cs: Stubbed out ScrollWindow() method
35553 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
35555         * XplatUIOSX.cs:  Fix cursor to use an Invert instead of drawing it
35556         Some more keyboard support (INCOMPLETE)
35558 2004-12-17  Peter Bartok  <pbartok@novell.com>
35560         * TextControl.cs:
35561         - Added color attribute to line tags.
35562         - Added color argument to all functions dealing with tags
35563         - Added color argument support to various functions
35564         - Fixed miss-calculation of baseline/shift in certain circumstances
35566         * TextBoxBase.cs: Added new color option to test code
35568 2004-12-17  Jackson Harper  <jackson@ximian.com>
35570         * TreeNode.cs:
35571         * MonthCalendar.cs: Signature fixes
35573 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
35575         * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
35576         keyboard event moved it.  Create a new graphics context for each paint resolves this
35578 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
35580         * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
35581         Make caret exist and go blink blink.  Initial keyboard support.
35582         Fix exception handler, Add Invalidate support.  Change way RefreshWindow
35583         works.
35585 2004-12-17  Jackson Harper  <jackson@ximian.com>
35587         * XplatUIStructs.cs: Updated set of virtual keycodes.
35588         * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
35590 2004-12-17  Jackson Harper  <jackson@ximian.com>
35592         * XplatUIX11.cs: Prune old keyboard code.
35594 2004-12-17  Jackson Harper  <jackson@ximian.com>
35596         * XplatUIX11.cs: When generating mouse wparams get the modifier
35597         keys from the ModifierKeys property.
35599 2004-12-17  Jackson Harper  <jackson@ximian.com>
35601         * X11Keyboard.cs: Send up/down input when generating
35602         messages. Remove some unused vars.
35604 2004-12-17  Jackson Harper  <jackson@ximian.com>
35606         * TabControl.cs:
35607         * TreeView.cs: get rid of warnings.
35609 2004-12-17  Jackson Harper  <jackson@ximian.com>
35611         * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
35613 2004-12-17  Jordi Mas i Hernandez <jordi@ximian.com>
35615         * ListBox.cs: bug fixes, changes for CheckedListBox.cs
35616           CheckedListBox.cs: Implementation
35618 2004-12-17  Peter Bartok  <pbartok@novell.com>
35620         * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
35622 2004-12-16  Peter Bartok  <pbartok@novell.com>
35624         * TextControl.cs:
35625           - InsertCharAtCaret(): Fixed start pos fixup
35626           - CaretLine_get: No longer derives the line from the tag, the tag
35627             could be stale if lines in the document have been added or deleted
35628           - RebalanceAfterDelete(): Fixed bug in balancing code
35629           - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
35630           - Line.Streamline(): Now can also elminate leading empty tags
35631           - DumpTree(): Added a few more tests and prevented exception on
35632             uninitialized data
35633           - Added Debug section for Combining lines
35634           - Delete(): Now copies all remaining properties of a line
35635           
35636         * TextBoxBase.cs:
35637           - Left mousebutton now sets the caret (and middle button still acts
35638             as formatting tester, which must go away soon)
35639           - Added Debug section for Deleting/Combining lines
35640           - Fixed calculations for UpdateView after Combining lines
35642 2004-12-16  Peter Bartok  <pbartok@novell.com>
35644         * TextControl.cs: Now properly aligns text on a baseline, using the
35645           new XplatUI.GetFontMetrics() method. Simplified several calculations
35646         * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
35647           defined
35649 2004-12-16  Peter Bartok  <pbartok@novell.com>
35651         * XplatUI.cs: Added GetFontMetrics() method
35652         * XplatUIDriver.cs: Added GetFontMetrics() abstract
35653         * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
35654           into libgdiplus, our private GetFontMetrics function
35655         * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
35656         * XplatUIWin32.cs: Implemented GetFontMetrics() method
35658 2004-12-16  Jackson Harper  <jackson@ximain.com>
35660         * XplatUIStruct.cs: Add enum for dead keys
35661         * X11Keyboard.cs: Map and unmap dead keys.
35663 2004-12-16  Jackson Harper  <jackson@ximian.com>
35665         * X11Keyboard.cs: Detect and use the num lock mask.
35667 2004-12-16  Peter Bartok  <pbartok@novell.com>
35669         * Control.cs (CreateGraphics): Added check to make sure the
35670           handle of the window exists before calling Graphics.FromHwnd()
35672 2004-12-16  Peter Bartok  <pbartok@novell.com>
35674         * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
35675           contains a lot of code that's not supposed to be there for the
35676           real thing, but required for developing/testing the textbox
35677           backend.
35679 2004-12-16  Peter Bartok  <pbartok@novell.com>
35681         * TextControl.cs:
35682         - Fixed Streamline method
35683         - Added FindTag method to Line
35684         - Added DumpTree method for debugging
35685         - Added DecrementLines() method for deleting lines
35686         - Fixed UpdateView to update the cursor to end-of-line on single-line
35687           updates
35688         - Added PositionCaret() method
35689         - Fixed MoveCaret(LineDown) to move into the last line, too
35690         - Added InsertChar overload
35691         - Fixed InsertChar tag offset calculations
35692         - Added DeleteChar() method
35693         - Added Combine() method for folding lines
35694         - Fixed Delete() method, no longer allocates wasted Line object and
35695           now copies all properties when swapping nodes
35696         - Delete() method now updates document line counter
35698 2004-12-15  Jackson Harper  <jackson@ximian.com>
35700         * XplatUIX11.cs: Get the modifier keys from the keyboard driver
35701         * X11Keyboard.cs: Expose the currently selected modifier keys
35702         through a property.
35704 2004-12-15  Peter Bartok  <pbartok@novell.com>
35706         * TextControl.cs: Initial check-in. Still incomplete
35708 2004-12-15  Jackson Harper  <jackson@ximian.com>
35710         * TreeNode.cs:
35711         * TreeView.cs: Fix build on csc (second time today ;-))
35713 2004-12-15  Jackson Harper  <jackson@ximian.com>
35715         * TreeView.cs: Store the treenodes plus/minus box bounds when it
35716         is calculated and use this for click testing.
35717         * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
35719 2004-12-15  Jackson Harper  <jackson@ximian.com>
35721         * TreeView.cs: Pass the nodes image index to the image list when
35722         drawing that image.
35724 2004-12-15  Jackson Harper  <jackson@ximian.com>
35726         * X11Keyboard.cs: Set messages hwnd.
35727         * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
35728         post_message calls.
35730 2004-12-15  Jackson Harper  <jackson@ximian.com>
35732         * X11Keyboard.cs: Fix to compile with csc.
35733         
35734 2004-12-15  Jackson Harper  <jackson@ximian.com>
35736         * X11Structs.cs: Add key mask values
35737         * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
35738         * X11Keyboard.cs: New file - Extrapolates and interpolates key
35739         down/up foo into WM_CHAR foo
35740         * KeyboardLayouts.cs: Common keyboard layouts
35741         * XplatUIX11.cs: Add the keyboard driver. Add functionality to
35742         post messages into the main queue.
35744 2004-12-13  Jordi Mas i Hernandez <jordi@ximian.com>
35746         * Button.cs: implement ProcessMnemonic
35747         * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
35748           brushes everytime
35749         * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
35750         * ButtonBase.cs: Show HotkeyPrefix (not the &)
35752 2004-12-12  John BouAntoun  <jba-mon@optusnet.com.au>
35753         
35754         * MonthCalendar.cs: Implemented click-hold for next/previous month
35755           and date selection
35756           
35757 2004-12-11  Peter Bartok  <pbartok@novell.com>
35759         * X11Structs.cs:
35760           - Added XKeyboardState (moved from XplatUIX11.cs)
35761           - Added XCreateGC related enums and structures
35762           - Added GXFunction for XSetFunction
35764         * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
35766         * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
35767           CaretVisible() calls
35769         * ToolTip.cs: Added code to prevent stealing focus from app windows
35771         * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
35772           DestroyCaret, SetCaretPos and CaretVisible)
35774         * XplatUIX11.cs:
35775           - Added implementation for caret functions
35776           - Moved hover variables into a struct, to make it a bit easier
35777             on the eyes and to debug
35778           - Removed XKeyboardState (moved to XplatUIX11.cs)
35779           - Moved Keyboard properties into the properties region
35781         * Control.cs (get_Region): Control.CreateGraphics is the appropriate
35782           call to get a graphics context for our control
35784         * XplatUIOSX.cs: Added empty overrides for the new caret functions
35786         * TreeView.cs: Fixed bug. No matter what color was set it would always
35787           return SystemColors.Window
35789         * XplatUIWin32.cs: Implemented caret overrides
35791 2004-12-10  Jordi Mas i Hernandez <jordi@ximian.com>
35793         * ListBox.cs: fire events, implement missing methods and properties,
35794         sorting.
35796 2004-12-10  John BouAntoun <jba-mono@optusnet.com.au>
35798         * MonthCalendar.cs: invalidation bug fixing
35799         * ThemeWin32Classic.cs: paint fixing
35801 2004-12-09  Geoff Norton  <gnorton@customerdna.com>
35803         * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
35804         prepare the CGContextRef there now.
35806 2004-12-09  John BouAntoun <jba-mono@optusnet.com.au>
35808         * MonthCalendar.cs:
35809           - optimisationL only invalidate areas that have changed
35810         * ThemeWin32Classic.cs:
35811           - only paint parts that intersect with clip_area
35813 2004-12-09  Peter Bartok  <pbartok@novell.com>
35815         * Application.cs: Undid changes from r37004 which cause problems
35816         on X11
35818 2004-12-09  Ravindra  <rkumar@novell.com>
35820         * ToolBar.cs: Added support for displaying ContextMenu
35821         attached to a button on ToolBar.
35822         * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
35823         property.
35825 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
35827         * Label.cs: autosize works in text change and removes unnecessary
35828         invalidate
35830 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
35832         * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
35833         remove warnings
35835 2004-12-08  Geoff Norton  <gnorton@customerdna.com>
35837         * XplatUIOSX.cs: Added mouse move/click/grab support
35838         Remove some debugging WriteLines not needed anymore.
35839         Add window resizing/positioning.
35840         Fix visibility on reparenting.
35842 2004-12-08  Peter Bartok  <pbartok@novell.com>
35844         * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
35846 2004-12-07  Geoff Norton  <gnorton@customerdna.com>
35848         * XplatUIOSX.cs: Initial checkin
35849         * XplatUI.cs: Use the Quartz driver if the environment is set to use it
35851 2004-12-03  Ravindra <rkumar@novell.com>
35853         * ListView.cs: Added some keybindings and fixed scrolling.
35854         ScrollBars listen to ValueChanged event instead of Scroll
35855         Event. This would let us take care of all changes being
35856         done in the scrollbars' values programmatically or manually.
35857         * ListView.cs (CanMultiselect): Added a check for shift key.
35858         * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
35859         * ListViewItem.cs (Clone): Fixed. We need to make a copy
35860         of ListViewSubItemCollection as well.
35862 2004-12-06  Peter Bartok <pbartok@novell.com>
35864         * Control.cs (Parent): Added check and exception to prevent
35865         circular parenting
35867 2004-12-03  Jordi Mas i Hernandez <jordi@ximian.com>
35869         * ListBox.cs: implemented clipping, selection single and multiple,
35870         bug fixing
35872 2004-12-03  Ravindra <rkumar@novell.com>
35874         * ListView.cs (ListView_KeyDown):
35875         * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
35876         when CTRL key is pressed.
35877         * ListViewItem.cs (Selected): Fixed setting the property.
35879 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
35881         * Application.cs (OnThreadException): Use ThreadExceptionDialog.
35883         * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
35884         MinimizeBox, ShowInTaskbar, TopMost properties.
35886         * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
35887         will be implemented).
35889 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
35891         * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
35893         * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
35894         tests.
35895         
35896         * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
35897         
35898         * TreeView.cs: BackColor is Colors.Window.
35900 2004-12-01  Jackson Harper  <jackson@ximian.com>
35902         * TreeView.cs: When resizing the tree if the user is making it
35903         smaller we don't get expose events, so we need to handle adding
35904         the horizontal scrollbar in the size changed handler as well as
35905         the expose handler.
35907 2004-12-02  Jordi Mas i Hernandez <jordi@ximian.com>
35909         * DrawItemState.cs: fixes wrong enum values
35911 2004-12-01  Jackson Harper  <jackson@ximian.com>
35913         * TreeView.cs: Resize the hbar as well as the vbar on resize.
35915 2004-12-01  Jackson Harper  <jackson@ximian.com>
35917         * NodeLabelEditEventArgs.cs:
35918         * NodeLabelEditEventHandler.cs:
35919         * OpenTreeNodeEnumerator.cs:
35920         * TreeNode.cs:
35921         * TreeNodeCollection.cs:
35922         * TreeView.cs:
35923         * TreeViewAction.cs:
35924         * TreeViewCancelEventArgs.cs:
35925         * TreeViewCancelEventHandler.cs:
35926         * TreeViewEventArgs.cs:
35927         * TreeViewEventHandler.cs: Initial implementation.
35929 2004-12-01  Ravindra <rkumar@novell.com>
35931         * ListView.cs (CalculateListView): Fixed scrolling related
35932         calculations. Also, removed some debug statements from other
35933         places.
35934         * ListViewItem.cs: Changed access to 'selected' instance variable
35935         from private to internal.
35936         * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
35938 2004-12-01  Jordi Mas i Hernandez <jordi@ximian.com>
35940         * ThemeWin32Classic.cs: remove cache of brush and pens for
35941         specific controls and use the global system, fixes scrollbutton
35942         bugs (for small sizes, disabled, etc)
35943         
35944         * ScrollBar.cs: does not show the thumb for very small controls
35945         (as MS) and allow smaller buttons that the regular size
35947 2004-12-01  Miguel de Icaza  <miguel@ximian.com>
35949         * UpDownBase.cs: Add abstract methods for the interface.
35950         Add new virtual methods (need to be hooked up to TextEntry when it
35951         exists).
35952         Add override methods for most features.
35953         Computes the size, forces the height of the text entry.
35955         * NumericUpDown.cs: Put here the current testing code.
35957         * Set eol-style property on all files that do not have mixed line
35958         endings, to minimize the future problems.  There are still a few
35959         files with mixed endings, and someone should choose whether they
35960         want to move it or not.
35962 2004-11-30  Jordi Mas i Hernandez <jordi@ximian.com>
35964         * MonthCalendar.cs, ListView.cs: use Theme colours instead of
35965         System.Colors
35966         
35967 2004-11-30  Ravindra <rkumar@novell.com>
35969         * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
35970         drawing and replaced use of SystemColors by theme colors.
35971         * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
35972         * ListView.cs (ListViewItemCollection.Add): Throw exception when
35973         same ListViewItem is being added more than once.
35975 2004-11-30  John BouAntoun <jba-mono@optusnet.com.au>
35977         * MonthCalendar.cs:
35978           - ControlStyles love to make the control not flicker
35979           
35980 2004-11-30  Peter Bartok  <pbartok@novell.com>
35982         * CharacterCasing.cs: Added
35984 2004-11-29  Peter Bartok  <pbartok@novell.com>
35986         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
35987           TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
35988           I am removing these files as they conflict with already completed
35989           work. While it is fantastic to get contributions to MWF, I
35990           respectfully ask that everyone please coordinate their contributions
35991           through mono-winforms-list or #mono-winforms at this time. We're
35992           explicitly avoiding stubbing and don't want controls that don't have
35993           their basic functionality implemented in svn. Please also see
35994           http://www.mono-project.com/contributing/winforms.html
35997 2004-11-29  Marek Safar  <marek.safar@seznam.cz>
35999         * Application.cs (ModalRun): Don't hang after exit.
36001         * Theme.cs: New TreeViewDefaultSize property.
36003         * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
36004         with less hardcoded SystemColors constant.
36005         Implemented TreeViewDefaultSize.
36007         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
36008         TreeViewAction.cs, TreeViewEventArgs.cs: New files.
36011 2004-11-29  John BouAntoun <jba-mono@optusnet.com.au>
36013         * MonthCalendar.cs:
36014           - Fix NextMonthDate and PrevMonthDate click moving calendar
36016 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
36018         * MonthCalendar.cs:
36019           - Fix usage of ScrollChange Property when scrolling months
36021 2004-11-26  Jordi Mas i Hernandez <jordi@ximian.com>
36023         * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
36024          - Fixes menu destroying
36025          - Support adding and removing items on already created menus
36027 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
36029         * MonthCalendar.cs:
36030           - Re-worked all bolded dates handling to match win32
36031         * ThemeWin32Classic.cs:
36032           - Fixed rendering with bolded dates
36034 2004-11-25  Jordi Mas i Hernandez <jordi@ximian.com>
36036         * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
36037         - Horizontal scroolbar
36038         - Multicolumn
36039         - Fixes
36042 2004-11-25  John BouAntoun <jba-mono@optusnet.com.au>
36044         * MonthCalendar.cs:
36045           - Fix Usage of MaxSelectionCount from SelectionRange
36046           - Fixed Shift + Cursor Selection
36047           - Fixed Shift + (Pg up/Pg dn, Home/End) selection
36048           - Fixed normal cursor selection to be compat with win32
36049           - Fixed Shift + Mouse Click selection
36051 2004-11-24  Peter Bartok <pbartok@novell.com>
36053         * XplatUI.cs (DispatchMessage): Switched to return IntPtr
36054         * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
36055         * XplatUIX11.cs:
36056           - CreatedKeyBoardMsg now updates keystate with Alt key
36057           - Added workaround for timer crash to CheckTimers, Jackson will
36058             develop a proper fix and check in later
36059           - Implemented DispatchMessage
36060           - Removed calling the native window proc from GetMessage (call
36061             now moved to DispatchMessage)
36063         * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
36064           the keydata (Fixes bug #69831)
36066         * XplatUIWin32.cs:
36067           - (DispatchMessage): Switched to return IntPtr
36068           - Added DllImport for SetFocus
36070 2004-11-24  Ravindra <rkumar@novell.com>
36072         * ThemeWin32Classic.cs: Fixed ListView border and checkbox
36073         background drawing.
36074         * ListViewItem.cs: Fixed various properties, calculations
36075         and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
36076         * ListView.cs: Fixed calculations, BackColor, ForeColor properties
36077         and some internal properties. Fixed MouseDown handler and Paint
36078         method.
36080 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
36082         * MonthCalendar.cs: Add TitleMonth ContextMenu handling
36084 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
36086         * ContainerControl.cs: correct accidental check in of local changes
36088 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
36090         * ThemeWin32Classic.cs:
36091                 - Fixed Drawing Last month in grid (sometimes not showing)
36092         * MonthCalendar.cs:
36093                 - Fixed title width calculation bug (makeing title small)
36095 2004-11-23  Peter Bartok <pbartok@novell.com>
36097         * XplatUIX11.cs:
36098           - Added generation of WM_MOUSEHOVER event
36099           - Added missing assignment of async_method atom
36100           - Fixed WM_ERASEBKGND; now only redraws the exposed area
36102 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
36104         * ThemeWin32Classic.cs:
36105                 - Fixed Drawing of today circle when showtodaycircle not set
36106                 - fixed drawing of first and last month in the grid (gay dates)
36107         * MonthCalendar.cs:
36108                 - Fixed Drawing of today circle
36109                 - Fixed drawing of grady dates
36110                 - Fixed HitTest for today link when ShowToday set to false
36111                 - Fixed DefaultSize to obey ShowToday
36113 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
36115         * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
36116         * System.Windows.Forms/Theme.cs
36117         * MonthCalendar.cs: added for MonthCalendar
36118         * SelectionRange.cs: added for MonthCalendar
36119         * Day.cs: added for MonthCalendar: added for MonthCalendar
36120         * DateRangeEventArgs.cs: added for MonthCalendar
36121         * DateRangeEventHandler.cs: added for MonthCalendar
36123 2004-11-22  Ravindra <rkumar@novell.com>
36125         * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
36126         property.
36128 2004-11-22  Miguel de Icaza  <miguel@ximian.com>
36130         * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
36131         event handler.
36132         
36133         * NumericUpDown.cs: Added new implementation.
36134         * UpDownBase.cs: Added new implementation.
36136         * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
36137         implementations.
36138         
36139         * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
36140         implementations.
36142         * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
36143         methods.
36145 2004-11-21  Miguel de Icaza  <miguel@ximian.com>
36147         * Timer.cs  (Dispose): Should call the base dispose when
36148         overriding.
36150 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
36152         * ScrollBar.cs: updates thumb position when max, min or increment
36153         is changed
36155 2004-11-21  Ravindra <rkumar@novell.com>
36157         * ListView.cs: Implemented item selection, activation and
36158         column header style. Fixed properties to do a redraw, if
36159         required. Added support for MouseHover, DoubleClick, KeyDown
36160         and KeyUp event handling and some minor fixes.
36161         * ListViewItem.cs: Fixed constructor.
36162         * ThemeWin32Classic.cs: Improved drawing for ListView.
36164 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
36166         * ThemeWin32Classic.cs: initial listbox drawing code
36167         * DrawMode.cs: new enumerator
36168         * ListControl.cs: stubbed class
36169         * ListBox.cs: initial implementation
36170         * Theme.cs: new methods definitions
36171         * SelectionMode.cs: new enumerator
36173 2004-11-17  Peter Bartok  <pbartok@novell.com>
36175         * XplatUIWin32.cs: Added double-click events to the class style
36176         * Control.cs (WndProc):
36177           - Added handling of click-count to MouseDown/ MouseUp events.
36178           - Added handling of middle and right mouse buttons
36179           - Removed old debug code
36181 2004-11-17  Jackson Harper  <jackson@ximian.com>
36183         * XplatUIX11.cs: Use the new Mono.Unix namespace.
36185 2004-11-17  Ravindra <rkumar@novell.com>
36187         * ListView.cs: Added event handling for MouseMove/Up/Down.
36188         * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
36189         * ThemeWin32Classic.cs: We need to clear the graphics context and
36190         draw column header in a proper state.
36193 2004-11-17  Jordi Mas i Hernandez <jordi@ximian.com>
36195         *  Menu.cs: fixes signature
36197 2004-11-16  Peter Bartok  <pbartok@novell.com>
36199         * XplatUIX11.cs (GetMessage): Implemented generation of
36200           double click mouse messages
36202 2004-11-12  Jordi Mas i Hernandez <jordi@ximian.com>
36204         *  Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
36205         not by menu
36207 2004-11-11  Peter Bartok  <pbartok@novell.com>
36209         * HandleData.cs: Added Visible property
36210         * XplatUIX11.cs (IsVisible): Now uses Visible property from
36211           HandleData
36212         * XplatUIX11.cs: Removed old debug leftovers
36213         * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
36214         * Control.cs (WndProc): Removed old debug leftovers,
36215           streamlined handling of WM_WINDOWPOSCHANGED, removed un-
36216           needed WM_SIZE handling
36218 2004-11-11  Jackson Harper  <jackson@ximian.com>
36220         * OwnerDrawPropertyBag.cs:
36221         * TreeViewImageIndexConverter.cs: Initial implementation
36223 2004-11-10  Jackson Harper  <jackson@ximian.com>
36225         * ThemeWin32Classic.cs:
36226         * TabControl.cs: instead of moving tabs by the slider pos just
36227         start drawing at the tab that is offset by the slider. This way
36228         scrolling always moves by exactly one tab.
36230 2004-11-10  Jackson Harper  <jackson@ximian.com>
36232         * TabControl.cs: You can only scroll left when the slider has
36233         already ben moved right.
36234         
36235 2004-11-10  Jackson Harper  <jackson@ximian.com>
36237         * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
36238         the clip area.
36239         
36240 2004-11-10  Jackson Harper  <jackson@ximian.com>
36242         * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
36243         clip area.
36244         
36245 2004-11-09  Jackson Harper  <jackson@ximian.com>
36247         * TabControl.cs (CalcXPos): New helper method so we can determine
36248         the proper place to start drawing vertical tabs.
36249         * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
36250         
36251 2004-11-09  Jackson Harper  <jackson@ximian.com>
36253         * TabControl.cs: Calculate sizing and rects for left aligned tabs.
36254         * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
36255         and Bottom, left and right are illegal values for this and
36256         multiline is enabled when the alignment is set to left or right.
36257         (DrawTab): Each alignment block should draw the text itself now
36258         because Left requires special love. Also add rendering for Left
36259         aligned tabs.
36260         
36261 2004-11-09  Jordi Mas i Hernandez <jordi@ximian.com>
36263         *  Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
36264         does not destroy the windows, removes debugging messages
36266 2004-11-09  jba  <jba-mono@optusnet.com.au>
36268         * ThemeWin32Classic.cs
36269         (DrawButtonBase): Fix verticle text rect clipping in windows
36270         (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
36271         rendering and incorrect text rect clipping
36272         (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
36273         rendering and incorrect text rect clipping
36274         
36275 2004-11-08  Jackson Harper  <jackson@ximian.com>
36277         * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
36278         bottom when they are bottom aligned so the bottoms of the tabs get
36279         displayed.
36280         * TabControl.cs (DropRow): Move rows up instead of down when the
36281         tab control is bottom aligned.
36283 2004-11-08 13:59  pbartok
36285         * XplatUIX11.cs:
36286           - Added handling for various window styles
36287           - Added handling for popup windows
36288           - Added SetTopmost handling
36290 2004-11-08 13:55  pbartok
36292         * XplatUIWin32.cs:
36293           - Added argument to SetTopmost method
36294           - Fixed broken ClientToScreen function
36296 2004-11-08 13:53  pbartok
36298         * XplatUIStructs.cs:
36299           - Added missing WS_EX styles
36301 2004-11-08 13:53  pbartok
36303         * XplatUI.cs, XplatUIDriver.cs:
36304           - Added argument to SetTopmost
36306 2004-11-08 13:52  pbartok
36308         * X11Structs.cs:
36309           - Added XSetWindowAttributes structure
36310           - Improved XWindowAttributes structure
36311           - Added SetWindowValuemask enum
36312           - Added window creation arguments enum
36313           - Added gravity enum
36314           - Added Motif hints structure
36315           - Added various Motif flags and enums
36316           - Added PropertyMode enum for property functions
36318 2004-11-08 13:50  pbartok
36320         * Form.cs:
36321           - Fixed arguments for updated SetTopmost method
36323 2004-11-08 13:49  pbartok
36325         * ToolTip.cs:
36326           - Fixed arguments for updated SetTopmost function
36327           - Fixed usage of PointToClient
36329 2004-11-08 13:44  pbartok
36331         * MenuAPI.cs:
36332           - Added Clipping of children and siblings
36334 2004-11-08 13:41  pbartok
36336         * MainMenu.cs:
36337           - Removed SetMenuBarWindow call. We do this in Form.cs
36339 2004-11-08 13:40  jackson
36341         * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
36342           scrolling jimmi in the correct location with bottom aligned tabs
36344 2004-11-08 13:36  pbartok
36346         * ContainerControl.cs:
36347           - Implemented BindingContext
36348           - Implemented ParentForm
36350 2004-11-08 12:46  jackson
36352         * TabControl.cs: Put bottom rendered tabs in the right location
36354 2004-11-08 07:15  jordi
36356         * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
36357           removes dead code
36359 2004-11-05 17:30  jackson
36361         * TabControl.cs: When selected tabs are expanded make sure they
36362           don't go beyond the edges of the tab control
36364 2004-11-05 14:57  jackson
36366         * TabControl.cs: Reset show_slider so if the control is resized to
36367           a size where it is no longer needed it's not displayed anymore
36369 2004-11-05 13:16  jackson
36371         * TabControl.cs: Make tab pages non visible when added to the
36372           control
36374 2004-11-05 12:42  jackson
36376         * TabControl.cs: Implement SizeMode.FillToRight
36378 2004-11-05 12:16  jackson
36380         * Control.cs: Do not call CreateHandle if the handle is already
36381           created
36383 2004-11-05 11:46  jackson
36385         * TabControl.cs: Remove superflous call to CalcTabRows
36387 2004-11-05 09:07  jackson
36389         * XplatUIX11.cs: Update for Mono.Posix changes
36391 2004-11-05 07:00  ravindra
36393         * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
36394           scrolling.
36396 2004-11-04 22:47  jba
36398         * ThemeWin32Classic.cs:
36399           - Fix Button rendering for FlatStyle = Flat or Popup
36400           - Fix RadioButton and CheckBox rendering when Appearance = Button
36401             (normal and flatstyle).
36402           - Correct outer rectangle color when drawing focus rectangle
36403           - Adjust button bounds to be 1 px smaller when focused
36404           - Make button not draw sunken 3d border when pushed (windows compat)
36405           - Fix CPDrawBorder3D to not make bottom right hand corner rounded
36406           - Offset the text in RadioButton and Checkbox when being rendered as
36407           a button.
36408           - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
36409           radiobuttons
36410           - Fixed disabled rendering for colored flatstyle radiobuttons (both)
36411           - Fixed disabled text rendering for normally rendered radiobuttons
36413 2004-11-04 10:26  jackson
36415         * TabControl.cs: Recalculate tab rows when resizing
36417 2004-11-04 07:47  jordi
36419         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
36420           collection completion, drawing issues, missing features
36422 2004-11-04 05:03  ravindra
36424         * ScrollBar.cs:
36425                 - We need to recalculate the Thumb area when
36426                 LargeChange/maximum/minimum values are changed.
36427           - We set the 'pos' in UpdatePos() method to minimum, if it's less
36428                 than minimum. This is required to handle the case if large_change is
36429                 more than max, and use LargeChange property instead of large_change
36430                 variable.
36431           - We return max+1 when large_change is more than max, like MS does.
36433 2004-11-04 04:29  ravindra
36435         * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
36436                 - Changed default value signatures (prefixed all with ListView).
36437                 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
36438                 ListView.
36439           - Fixed calculations for ListViewItem and implemented Clone()
36440           method.
36442 2004-11-04 04:26  ravindra
36444         * Theme.cs, ThemeWin32Classic.cs:
36445                 - Changed default ListView values signatures (prefixed all with
36446                 ListView).
36447           - Fixed default size values for VScrollBar and HScrollBar.
36448                 - Fixed DrawListViewItem method.
36450 2004-11-04 04:05  ravindra
36452         * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
36454 2004-11-04 04:04  ravindra
36456         * ImageList.cs: Implemented the missing overload for Draw method.
36458 2004-11-03 19:29  jackson
36460         * TabControl.cs: Handle dropping rows on selection properly
36462 2004-11-03 11:59  jackson
36464         * TabControl.cs: remove debug code
36466 2004-11-03 11:52  jackson
36468         * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
36469           the scrolly widgerywoo
36471 2004-11-02 13:52  jackson
36473         * TabControl.cs: Resize the tab pages and tabs when the tab control
36474           is resized
36476 2004-11-02 13:40  jackson
36478         * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
36479           selected tab to the bottom
36481 2004-11-02 13:39  jackson
36483         * TabPage.cs: Store the tab pages row
36485 2004-11-02 12:33  jordi
36487         * MenuItem.cs: fixes handle creation
36489 2004-11-02 11:42  jackson
36491         * TabControl.cs: signature fix
36493 2004-11-02 08:56  jackson
36495         * TabControl.cs: Calculate whether the tab is on an edge properly.
36496           Remove top secret debugging code
36498 2004-11-01 19:57  jackson
36500         * TabControl.cs: Add click handling, and proper sizing
36502 2004-11-01 19:47  jackson
36504         * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
36505           tab controls
36507 2004-11-01 19:39  jackson
36509         * TabPage.cs: add internal property to store the bounds of a tab
36510           page
36512 2004-10-30 04:23  ravindra
36514         * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
36515           values.
36517 2004-10-30 04:21  ravindra
36519         * ListView.cs, ListViewItem.cs: Added support for scrolling and
36520           fixed calculations.
36522 2004-10-30 03:06  pbartok
36524         * XplatUIX11.cs:
36525           - Removed extension of DllImported libs
36527 2004-10-29 09:55  jordi
36529         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
36530           navigation, itemcollection completion, menu fixes
36532 2004-10-27 22:58  pbartok
36534         * XplatUIX11.cs:
36535           - Now throws a nice error message when no X display could be opened
36537 2004-10-26 13:51  jordi
36539         * ListView.cs: removes warning
36541 2004-10-26 03:55  ravindra
36543         * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
36544           ThemeWin32Classic.cs: Some formatting for my last checkins.
36546 2004-10-26 03:36  ravindra
36548         * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
36549           control and default values.
36551 2004-10-26 03:35  ravindra
36553         * Theme.cs: Added some default values for ListView control.
36555 2004-10-26 03:33  ravindra
36557         * ToolBar.cs: ToolBar should use the user specified button size, if
36558           there is any. Added a size_specified flag for the same.
36560 2004-10-26 03:33  ravindra
36562         * ColumnHeader.cs: Added some internal members and calculations for
36563           ColumnHeader.
36565 2004-10-26 03:32  ravindra
36567         * ListViewItem.cs: Calculations for ListViewItem.
36569 2004-10-26 03:31  ravindra
36571         * ListView.cs: Added some internal members and calculations for
36572           ListView.
36574 2004-10-22 13:31  jordi
36576         * MenuAPI.cs: speedup menus drawing
36578 2004-10-22 13:16  jackson
36580         * XplatUIX11.cs: Make sure to update exposed regions when adding an
36581           expose event
36583 2004-10-22 11:49  jackson
36585         * Control.cs: oops
36587 2004-10-22 11:41  jackson
36589         * Control.cs: Check to see if the window should have its background
36590           repainted by X when drawing.
36592 2004-10-22 11:31  jackson
36594         * XplatUIX11.cs: When invalidating areas only use XClearArea if
36595           clear is true, this way we do not get flicker from X repainting the
36596           background
36598 2004-10-22 11:28  jackson
36600         * XEventQueue.cs: Queue properly
36602 2004-10-21 09:38  jackson
36604         * XEventQueue.cs: Fix access modifier
36606 2004-10-21 09:36  jackson
36608         * XEventQueue.cs: Don't loose messages
36610 2004-10-21 09:22  jackson
36612         * XEventQueue.cs: Don't loose messages
36614 2004-10-20 04:15  jordi
36616         * BootMode.cs: enum need it by SystemInfo
36618 2004-10-19 21:58  pbartok
36620         * XplatUIWin32.cs:
36621           - Small sanity check
36623 2004-10-19 21:56  pbartok
36625         * Form.cs:
36626           - Added private FormParentWindow class which acts as the container
36627             for our form and as the non-client area where menus are drawn
36628           - Added/Moved required tie-ins to Jordi's menus
36629           - Fixed/Implemented the FormStartPosition functionality
36631 2004-10-19 21:52  pbartok
36633         * Control.cs:
36634           - Removed unneeded locals
36635           - Added code to all size and location properties to understand and
36636             deal with the parent container of Form
36638 2004-10-19 21:33  pbartok
36640         * Application.cs:
36641           - Fixed to deal with new Form subclasses for menus
36643 2004-10-19 17:48  jackson
36645         * XEventQueue.cs: commit correct version of file
36647 2004-10-19 16:50  jackson
36649         * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
36651 2004-10-19 16:15  jordi
36653         * MenuAPI.cs: MenuBarCalcSize returns the height
36655 2004-10-19 08:31  pbartok
36657         * Control.cs:
36658           - Added missing call to PreProcessMessage before calling OnXXXKey
36659           methods
36661 2004-10-19 00:04  ravindra
36663         * ToolTip.cs: Fixed constructor.
36665 2004-10-18 09:31  jordi
36667         * MenuAPI.cs: menuitems in menubars do not have shortcuts
36669 2004-10-18 09:26  jordi
36671         * MenuItem.cs: fixes MenuItem class signature
36673 2004-10-18 08:56  jordi
36675         * MenuAPI.cs: prevents windows from showing in the taskbar
36677 2004-10-18 00:28  ravindra
36679         * ToolTip.cs: Suppressed a warning message.
36681 2004-10-18 00:27  ravindra
36683         * Control.cs: Default value of visible property must be true.
36685 2004-10-17 23:19  pbartok
36687         * ToolTip.cs:
36688           - Complete implementation
36690 2004-10-17 23:19  pbartok
36692         * XplatUIX11.cs:
36693           - Added EnableWindow method
36694           - Added SetModal stub
36695           - Added generation of WM_ACTIVATE message (still needs testing)
36696           - Added SetTopMost stub
36697           - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
36699 2004-10-17 23:17  pbartok
36701         * XplatUIWin32.cs:
36702           - Removed VirtualKeys to XplatUIStructs
36703           - Implemented SetTopMost method
36704           - Implemented EnableWindow method
36705           - Bugfix in ScreenToClient()
36706           - Bugfixes in ClientToScreen()
36708 2004-10-17 22:51  pbartok
36710         * XplatUIStructs.cs:
36711           - Added WS_EX styles to WindowStyles enumeration
36713 2004-10-17 22:50  pbartok
36715         * XplatUI.cs, XplatUIDriver.cs:
36716           - Added method for enabling/disabling windows
36717           - Added method for setting window modality
36718           - Added method for setting topmost window
36720 2004-10-17 22:49  pbartok
36722         * ThemeWin32Classic.cs:
36723           - Added ToolTip drawing code
36725 2004-10-17 22:49  pbartok
36727         * Theme.cs:
36728           - Added ToolTip abstracts
36730 2004-10-17 22:47  pbartok
36732         * Form.cs:
36733           - Fixed Form.ControlCollection to handle owner relations
36734           - Added Owner/OwnedForms handling
36735           - Implemented Z-Ordering for owned forms
36736           - Removed unneeded private overload of ShowDialog
36737           - Fixed ShowDialog, added the X11 incarnation of modal handling (or
36738             so I hope)
36739           - Fixed Close(), had wrong default
36740           - Added firing of OnLoad event
36741           - Added some commented out debug code for Ownership handling
36743 2004-10-17 22:16  pbartok
36745         * Control.cs:
36746           - Fixed/implemented flat list of controls
36748 2004-10-17 22:14  pbartok
36750         * Application.cs:
36751           - Added code to simulate modal dialogs on Win32
36753 2004-10-17 16:11  jordi
36755         * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
36756           mouse event
36758 2004-10-17 13:39  jordi
36760         * MenuAPI.cs: menu drawing fixes
36762 2004-10-15 09:10  ravindra
36764         * StructFormat.cs: General Enum.
36766 2004-10-15 09:09  ravindra
36768         * SizeGripStyle.cs: Enum for Form.
36770 2004-10-15 09:08  ravindra
36772         * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
36773           in Theme for ListView.
36775 2004-10-15 09:06  ravindra
36777         * ColumnHeader.cs: Flushing some formatting changes.
36779 2004-10-15 09:05  ravindra
36781         * ListViewItem.cs: Implemented GetBounds method and fixed coding
36782           style.
36784 2004-10-15 09:03  ravindra
36786         * ListView.cs: Implemented Paint method and fixed coding style.
36788 2004-10-15 07:34  jordi
36790         * MenuAPI.cs: fix for X11
36792 2004-10-15 07:32  ravindra
36794         * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
36795                 - Renamed Paint() method to Draw() for clarity. Also, moved
36796                 DrawImage() to OnPaint().
36798 2004-10-15 07:25  ravindra
36800         * CheckBox.cs, RadioButton.cs:
36801                 - Removed Redraw (), we get it from ButtonBase.
36802                 - Implemented Paint (), to do class specific painting.
36804 2004-10-15 07:16  ravindra
36806         * ButtonBase.cs:
36807                 - Redraw () is not virtual now.
36808                 - Added an internal virtual method Paint (), so that
36809                 derived classes can do their painting on their own.
36810                 - Modified OnPaint () to call Paint ().
36812 2004-10-15 06:43  jordi
36814         * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
36815           MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
36817 2004-10-15 00:30  ravindra
36819         * MessageBox.cs:
36820                 - MessageBox on windows does not have min/max buttons.
36821                 This change in CreateParams fixes this on Windows. We
36822                 still need to implement this windowstyle behavior in
36823                 our X11 driver.
36825 2004-10-14 05:14  ravindra
36827         * ToolBar.cs:
36828                 - Changed Redraw () to do a Refresh () always.
36829                 - Fixed the MouseMove event handling when mouse is pressed,
36830                 ie drag event handling.
36831                 - Replaced the usage of ToolBarButton.Pressed property to
36832                 ToolBarButton.pressed internal variable.
36834 2004-10-14 05:10  ravindra
36836         * ToolBarButton.cs:
36837                 - Added an internal member 'inside' to handle mouse move
36838                 with mouse pressed ie mouse drag event.
36839                 - Changed 'Pressed' property to return true only when
36840                 'inside' and 'pressed' are both true.
36841                 - Some coding style love.
36843 2004-10-14 00:17  ravindra
36845         * Form.cs: Fixed class signature. ShowDialog (Control) is not a
36846           public method.
36848 2004-10-14 00:15  ravindra
36850         * ButtonBase.cs: Redraw () related improvements.
36852 2004-10-14 00:14  ravindra
36854         * MessageBox.cs: Moved InitFormSize () out of Paint method and
36855           removed unnecessary calls to Button.Show () method.
36857 2004-10-13 17:50  pbartok
36859         * XplatUIX11.cs:
36860           - Formatting fix
36861           - Removed destroying of window until we solve the problem of X
36862             destroying the window before us on shutdown
36864 2004-10-13 16:32  pbartok
36866         * ButtonBase.cs:
36867           - Now Redraws on MouseUp for FlatStyle Flat and Popup
36869 2004-10-13 14:18  pbartok
36871         * XplatUIX11.cs:
36872           - Added code to destroy the X window
36874 2004-10-13 14:18  pbartok
36876         * XplatUIWin32.cs:
36877           - Added code to destroy a window
36879 2004-10-13 14:12  pbartok
36881         * ButtonBase.cs:
36882           - Added the Redraw on Resize that got dropped in the last rev
36884 2004-10-13 09:06  pbartok
36886         * ThemeWin32Classic.cs:
36887           - Path from John BouAntoun:
36888             * Fix check rendering (centre correctly for normal style, offset
36889               correctly for FlatStyle).
36890             * Fix border color usage (use backcolor) for FlatStyle.Popup
36891             * Use checkbox.Capture instead of checkbox.is_pressed when
36892               rendering flatstyle states.
36894 2004-10-12 21:48  pbartok
36896         * ThemeWin32Classic.cs:
36897           - Removed all occurences of SystemColors and replaced them with the
36898             matching theme color
36900 2004-10-12 21:41  pbartok
36902         * ThemeWin32Classic.cs:
36903           - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
36904             him using the function for flatstyle drawing
36905           - Changed functions to use the new version of CPDrawBorder3D
36907 2004-10-12 21:15  pbartok
36909         * ControlPaint.cs:
36910           - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
36911             match MS documentation. They need to return defined colors if the
36912             passed color matches the configured control color. Thanks to John
36913             BouAntoun for pointing this out.
36915 2004-10-12 20:57  pbartok
36917         * Control.cs:
36918           - Fix from John BouAntoun: Raise ForeColorChanged event when text
36919             color is changed
36921 2004-10-12 20:46  pbartok
36923         * CheckBox.cs:
36924           - Fix from John BouAntoun: Now properly sets the Appearance property
36926 2004-10-12 20:45  pbartok
36928         * ThemeWin32Classic.cs:
36929           - Fixes from John BouAntoun: now handles forecolors and backcolors
36930             for flatstyle rendered controls much better; It also fixes normal
36931             checkbox rendering when pushed or disabled.
36933 2004-10-08 02:50  jordi
36935         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
36936           work
36938 2004-10-07 08:56  jordi
36940         * ThemeWin32Classic.cs: Removes deletion of cached brushes
36942 2004-10-06 03:59  jordi
36944         * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
36945           XplatUIWin32.cs: removes warnings from compilation
36947 2004-10-05 12:23  jackson
36949         * RadioButton.cs: Fix ctor
36951 2004-10-05 11:10  pbartok
36953         * MessageBox.cs:
36954           - Partial implementation by Benjamin Dasnois
36956 2004-10-05 10:15  jackson
36958         * ThemeWin32Classic.cs: Improve rendering of the radio button patch
36959           by John BouAntoun
36961 2004-10-05 03:07  ravindra
36963         * ToolBar.cs:
36964                 - Removed a private method, Draw ().
36965                 - Fixed the ButtonDropDown event handling.
36966                 - Fixed MouseMove event handling.
36968 2004-10-05 03:04  ravindra
36970         * ThemeWin32Classic.cs:
36971                 - Added DrawListView method and ListViewDefaultSize property.
36972                 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
36973                 - Changed DOS style CRLF to Unix format (dos2unix).
36975 2004-10-05 03:03  ravindra
36977         * Theme.cs:
36978                 - Added DrawListView method and ListViewDefaultSize property.
36980 2004-10-05 02:42  ravindra
36982         * ToolBarButton.cs: Added an internal member dd_pressed to handle
36983           clicks on DropDown arrow.
36985 2004-10-04 22:56  jackson
36987         * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
36988           ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
36989           Control handle the buffers, derived classes should not have to
36990           CreateBuffers themselves.
36992 2004-10-04 21:20  jackson
36994         * StatusBar.cs: The control handles resizing the buffers now.
36996 2004-10-04 21:18  jackson
36998         * Control.cs: When resizing the buffers should be invalidated. This
36999           should be handled in Control not in derived classes.
37001 2004-10-04 14:45  jackson
37003         * TabPage.cs: oops
37005 2004-10-04 02:14  pbartok
37007         * LeftRightAlignment.cs:
37008           - Initial check-in
37010 2004-10-04 01:09  jordi
37012         * ThemeWin32Classic.cs: fixes right button position causing right
37013           button not showing on horizontal scrollbars
37015 2004-10-02 13:12  pbartok
37017         * XplatUIX11.cs:
37018           - Simplified the Invalidate method by using an X call instead of
37019             generating the expose ourselves
37020           - Added an expose when the window background is changed
37021           - Implemented ClientToScreen method
37023 2004-10-02 13:08  pbartok
37025         * XplatUIWin32.cs:
37026           - Added Win32EnableWindow method (test for implementing modal
37027           dialogs)
37028           - Added ClientToScreen method and imports
37030 2004-10-02 13:07  pbartok
37032         * XplatUI.cs, XplatUIDriver.cs:
37033           - Added ClientToScreen coordinate translation method
37035 2004-10-02 13:06  pbartok
37037         * KeyPressEventArgs.cs:
37038           - Fixed access level for constructor
37040 2004-10-02 13:06  pbartok
37042         * NativeWindow.cs:
37043           - Changed access level for the window_collection hash table
37045 2004-10-02 13:05  pbartok
37047         * Form.cs:
37048           - Added KeyPreview property
37049           - Added Menu property (still incomplete, pending Jordi's menu work)
37050           - Implemented ProcessCmdKey
37051           - Implemented ProcessDialogKey
37052           - Implemented ProcessKeyPreview
37054 2004-10-02 13:02  pbartok
37056         * Control.cs:
37057           - Added private method to get the Control object from the window
37058           handle
37059           - Implemented ContextMenu property
37060           - Implemented PointToScreen
37061           - Implemented PreProcessMessage
37062           - Implemented IsInputChar
37063           - Implemented IsInputKey
37064           - Implemented ProcessCmdKey
37065           - Completed ProcessKeyEventArgs
37066           - Fixed message loop to call the proper chain of functions on key
37067           events
37068           - Implemented ProcessDialogChar
37069           - Implemented ProcessDialogKey
37070           - Implemented ProcessKeyMessage
37071           - Implemented ProcessKeyPreview
37072           - Added RaiseDragEvent stub (MS internal method)
37073           - Added RaiseKeyEvent stub (MS internal method)
37074           - Added RaiseMouseEvent stub (MS Internal method)
37075           - Added RaisePaintEvent stub (MS Internal method)
37076           - Added ResetMouseEventArgs stub (MS Internal method)
37077           - Implemented RtlTranslateAlignment
37078           - Implemented RtlTranslateContent
37079           - Implemented RtlTranslateHorizontal
37080           - Implemented RtlTranslateLeftRight
37081           - Added generation of KeyPress event
37083 2004-10-02 05:57  ravindra
37085         * ListViewItem.cs: Added attributes.
37087 2004-10-02 05:32  ravindra
37089         * ListView.cs: Added attributes.
37091 2004-10-01 11:53  jackson
37093         * Form.cs: Implement the Close method so work on MessageBox can
37094           continue.
37096 2004-09-30 14:06  pbartok
37098         * XplatUIX11.cs:
37099           - Bug fixes
37101 2004-09-30 11:34  jackson
37103         * RadioButton.cs: Fix typo. Patch by John BouAntoun.
37105 2004-09-30 07:26  ravindra
37107         * ListViewItemConverter.cs: Converter for ListViewItem.
37109 2004-09-30 07:26  ravindra
37111         * SortOrder.cs: Enum for ListView control.
37113 2004-09-30 07:25  ravindra
37115         * ColumnHeader.cs: Supporting class for ListView control.
37117 2004-09-30 07:24  ravindra
37119         * ListView.cs, ListViewItem.cs: Initial implementation.
37121 2004-09-30 07:20  ravindra
37123         * ItemActivation.cs: Enum for ListView Control.
37125 2004-09-29 20:29  pbartok
37127         * XplatUIX11.cs:
37128           - Added lookup of pixel value for background color; tries to get a
37129             color 'close' to the requested color, it avoids having to create a
37130             colormap.  Depending on the display this could mean the used color
37131             is slightly off the desired color. Might have to change it to a more
37132             resource intensive colormap approach, but it will work as a
37133           workaround to avoid red screens.
37135 2004-09-29 14:27  jackson
37137         * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
37139 2004-09-28 12:44  pbartok
37141         * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
37142           HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
37143           ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
37144           Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
37145           TrackBar.cs, VScrollBar.cs:
37146           - Streamlined Theme interfaces:
37147             * Each DrawXXX method for a control now is passed the object for
37148               the control to be drawn in order to allow accessing any state the
37149               theme might require
37151             * ControlPaint methods for the theme now have a CP prefix to avoid
37152               name clashes with the Draw methods for controls
37154             * Every control now retrieves it's DefaultSize from the current
37155             theme
37157 2004-09-28 12:17  jackson
37159         * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
37160           drawing
37162 2004-09-24 14:57  jackson
37164         * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
37165           Gives us a nice little performance boost.
37167 2004-09-24 12:02  jackson
37169         * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
37170           TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
37171           Control and supporting classes. Initial checkin
37173 2004-09-23 13:08  jackson
37175         * Form.cs: Temp build fixage
37177 2004-09-23 01:39  ravindra
37179         * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
37180           ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
37181           ItemDragEventArgs.cs, ItemDragEventHandler.cs,
37182           LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
37183           EventHandlers needed by ListView Control.
37185 2004-09-22 14:12  pbartok
37187         * ScrollableControl.cs:
37188           - Implemented DockPadding property
37189           - Implemented AutoScroll property
37190           - Implemented AutoScrollMargin property
37191           - Implemented AutoScrollMinSize property
37192           - Implemented AutoScrollPosition property
37193           - Implemented DisplayRectangle property (still incomplete)
37194           - Implemented CreateParams property
37195           - Implemented HScroll property
37196           - Implemented VScroll property
37197           - Implemented OnVisibleChanged property
37199 2004-09-22 14:09  pbartok
37201         * Form.cs:
37202           - Added Form.ControllCollection class
37203           - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
37204             RemoveOwnedForm (still incomplete, missing on-top and common
37205             minimize/maximize behaviour)
37206           - Added StartPosition property (still incomplete, does not use when
37207             creating the form)
37208           - Added ShowDialog() methods (still incomplete, missing forcing the
37209             dialog modal)
37211 2004-09-22 14:05  pbartok
37213         * Application.cs:
37214           - Added message loop for modal dialogs
37216 2004-09-22 14:02  pbartok
37218         * GroupBox.cs:
37219           - Fixed wrong types for events
37221 2004-09-22 14:00  pbartok
37223         * Shortcut.cs, FormWindowState.cs:
37224           - Fixed wrong values
37226 2004-09-22 12:01  jackson
37228         * Control.cs: Text is never null
37230 2004-09-20 22:14  pbartok
37232         * XplatUIWin32.cs:
37233           - Fixed accessibility level for Idle handler
37235 2004-09-20 18:54  jackson
37237         * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
37238           XplatUIX11.cs: New message loop that uses poll so we don't get a
37239           busy loop
37241 2004-09-17 10:43  pbartok
37243         * ScrollBar.cs:
37244           - Fixed behaviour of arrow buttons. Now properly behaves like
37245             Buttons (and like Microsoft's scrollbar arrow buttons)
37247 2004-09-17 10:14  pbartok
37249         * ScrollBar.cs:
37250           - Added missing release of keyboard/mouse capture
37252 2004-09-17 06:18  jordi
37254         * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
37255           Theme.cs: Very early menu support
37257 2004-09-16 17:45  pbartok
37259         * XplatUIWin32.cs:
37260           - Fixed sending a window to the front
37261           - Added overload for SetWindowPos to avoid casting
37263 2004-09-16 17:44  pbartok
37265         * Control.cs:
37266           - Added SendToBack and BringToFront methods
37268 2004-09-16 07:00  ravindra
37270         * Copyright: Added Novell URL.
37272 2004-09-16 07:00  ravindra
37274         * ToolBar.cs: Invalidate should be done before redrawing.
37276 2004-09-15 21:19  ravindra
37278         * ColumnHeaderStyle.cs: Enum for ListView Control.
37280 2004-09-15 21:18  ravindra
37282         * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
37283           ListView Control.
37285 2004-09-13 18:26  jackson
37287         * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
37288           properly
37290 2004-09-13 18:13  jackson
37292         * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
37293           a second thread and post messages into the main threads message
37294           queue. This makes timing much more consistent. Both win2K and XP
37295           have a minimum timer value of 15 milliseconds, so we now do this
37296           too.
37298 2004-09-13 15:18  pbartok
37300         * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
37301           XplatUIX11.cs:
37302           - Added Z-Ordering methods
37304 2004-09-13 10:56  pbartok
37306         * Form.cs:
37307           - Fixed #region names
37308           - Moved properties and methods into their proper #regions
37310 2004-09-13 10:51  pbartok
37312         * Form.cs:
37313           - Added Accept and CancelButton properties
37314           - Added ProcessDialogKey() method
37316 2004-09-13 08:18  pbartok
37318         * IWindowTarget.cs:
37319           - Initial check-in
37321 2004-09-10 21:50  pbartok
37323         * Control.cs:
37324           - Added DoDragDrop() [incomplete]
37325           - Properly implemented 'Visible' handling
37326           - Added SetVisibleCore()
37327           - Implemented FindChildAtPoint()
37328           - Implemented GetContainerControl()
37329           - Implemented Hide()
37331 2004-09-10 19:28  pbartok
37333         * Control.cs:
37334           - Moved methods into their appropriate #regions
37335           - Reordered methods within regions alphabetically
37337 2004-09-10 18:57  pbartok
37339         * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
37340           - Added method to retrieve text from window
37342 2004-09-10 18:56  pbartok
37344         * Control.cs:
37345           - Moved some internal functions into the internal region
37346           - Implemented FontHeight
37347           - Implemented RenderRightToLeft
37348           - Implemented ResizeRedraw
37349           - Implemented ShowFocusCues
37350           - Implemented ShowKeyboardCues
37351           - Implemented FromChildHandle
37352           - Implemented FromHandle
37353           - Implemented IsMnemonic
37354           - Implemented ReflectMessage
37355           - All public and protected Static Methods are now complete
37357 2004-09-10 16:54  pbartok
37359         * Control.cs:
37360           - Implemented remaining missing public instance properties
37361           - Alphabetized some out of order properties
37363 2004-09-10 05:51  ravindra
37365         * PictureBox.cs: Added a check for null image.
37367 2004-09-10 00:59  jordi
37369         * GroupBox.cs: remove cvs tag
37371 2004-09-09 05:25  ravindra
37373         * ToolBar.cs: Make redraw accessible from ToolBarButton.
37375 2004-09-09 05:23  ravindra
37377         * ToolBarButton.cs: Changes in ToolBarButton need to make it's
37378           parent redraw.
37380 2004-09-09 02:28  pbartok
37382         * ThemeWin32Classic.cs:
37383           - Improve disabled string look
37385 2004-09-09 01:15  jordi
37387         * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
37388           args and handler
37390 2004-09-08 23:56  ravindra
37392         * ItemBoundsPortion.cs: It's enum, not a class!
37394 2004-09-08 23:47  ravindra
37396         * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
37397           Enums for Form.
37399 2004-09-08 21:13  ravindra
37401         * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
37402           ListView control.
37404 2004-09-08 21:03  ravindra
37406         * ThemeWin32Classic.cs: PictureBox would not draw a null image to
37407           avoid crash.
37409 2004-09-08 21:01  ravindra
37411         * ScrollableControl.cs: Removed unreachable code.
37413 2004-09-08 06:45  jordi
37415         * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
37417 2004-09-08 01:00  jackson
37419         * XplatUIX11.cs: Only run the timers when updating the message
37420           queue. This effectively gives X messages a higher priority then
37421           timer messages. Timers still need love though
37423 2004-09-07 14:01  jackson
37425         * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
37426           this for us and the handle is no longer valid.
37428 2004-09-07 13:59  jackson
37430         * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
37431           loop that manages to not crash. TODO: Add poll and cleanup timers
37433 2004-09-07 11:12  jordi
37435         * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
37437 2004-09-07 03:40  jordi
37439         * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
37440           fixes, methods, multiple links
37442 2004-09-06 06:55  jordi
37444         * Control.cs: Caches ClientRectangle rectangle value
37446 2004-09-05 02:03  jordi
37448         * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
37449           certain situations
37451 2004-09-04 11:10  jordi
37453         * Label.cs: Refresh when font changed
37455 2004-09-02 16:24  pbartok
37457         * Control.cs:
37458           - Added sanity check to creation of double buffer bitmap
37460 2004-09-02 16:24  pbartok
37462         * ButtonBase.cs:
37463           - Fixed selection of text color
37464           - Fixed handling of resize event; now properly recreates double
37465             buffering bitmap
37466           - Added missing assignment of TextAlignment
37467           - Added proper default for TextAlignment
37469 2004-09-02 14:26  pbartok
37471         * RadioButton.cs:
37472           - Added missing RadioButton.RadioButtonAccessibleObject class
37474 2004-09-02 14:26  pbartok
37476         * Control.cs:
37477           - Added missing Control.ControlAccessibleObject class
37478           - Started to implement Select()ion mechanisms, still very incomplete
37480 2004-09-02 14:25  pbartok
37482         * AccessibleObject.cs:
37483           - Added missing methods
37485 2004-09-02 14:23  pbartok
37487         * AccessibleNavigation.cs, AccessibleSelection.cs:
37488           - Initial check-in
37490 2004-09-02 10:32  jordi
37492         * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
37493           pool for pens, brushes, and hatchbruses
37495 2004-09-01 15:30  jackson
37497         * StatusBar.cs: Fix typo
37499 2004-09-01 14:44  pbartok
37501         * RadioButton.cs:
37502           - Fixed state
37504 2004-09-01 14:39  pbartok
37506         * Button.cs, RadioButton.cs:
37507           - Functional initial check-in
37509 2004-09-01 14:01  pbartok
37511         * CheckBox.cs:
37512           - Added missing default
37513           - Added missing region mark
37515 2004-09-01 09:10  jordi
37517         * Label.cs: fixes method signatures, new methods, events, fixes
37518           autosize
37520 2004-09-01 07:19  jordi
37522         * Control.cs: Init string variables with an empty object
37524 2004-09-01 04:20  jordi
37526         * Control.cs: fires OnFontChanged event
37528 2004-08-31 20:07  pbartok
37530         * ButtonBase.cs:
37531           - Enabled display of strings
37533 2004-08-31 20:05  pbartok
37535         * Form.cs:
37536           - Added (partial) implementation of DialogResult; rest needs to be
37537             implemented when the modal loop code is done
37539 2004-08-31 19:55  pbartok
37541         * CheckBox.cs:
37542           - Fixed to match the removal of the needs_redraw concept
37544 2004-08-31 19:55  pbartok
37546         * ButtonBase.cs:
37547           - Removed the rather odd split between 'needs redraw' and redrawing
37548           - Now handles the events that require regeneration (ambient
37549             properties and size)
37551 2004-08-31 19:41  pbartok
37553         * Control.cs:
37554           - Added firing of BackColorChanged event
37555           - Added TopLevelControl property
37556           - Fixed handling of WM_ERASEBKGRND message
37558 2004-08-31 12:49  pbartok
37560         * ButtonBase.cs:
37561           - Removed debug
37562           - Minor fixes
37564 2004-08-31 12:48  pbartok
37566         * CheckBox.cs:
37567           - Finished (famous last words)
37569 2004-08-31 04:35  jordi
37571         * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
37572           scrolling bugs, adds new methods
37574 2004-08-30 14:42  pbartok
37576         * CheckBox.cs:
37577           - Implemented CheckBox drawing code
37579 2004-08-30 14:42  pbartok
37581         * ButtonBase.cs:
37582           - Made Redraw() and CheckRedraw() virtual
37583           - Improved mouse up/down/move logic to properly track buttons
37585 2004-08-30 09:44  pbartok
37587         * CheckBox.cs:
37588           - Updated to fix broken build. Not complete yet.
37590 2004-08-30 09:28  pbartok
37592         * CheckState.cs:
37593           - Initial checkin
37595 2004-08-30 09:17  pbartok
37597         * Appearance.cs:
37598           - Initial check-in
37600 2004-08-27 16:12  ravindra
37602         * ToolBarButton.cs: Added TypeConverter attribute.
37604 2004-08-27 16:07  ravindra
37606         * ImageIndexConverter.cs: Implemented.
37608 2004-08-27 14:17  pbartok
37610         * Control.cs:
37611           - Removed unneeded stack vars
37612           - First attempt to fix sizing issues when layout is suspended
37614 2004-08-25 15:35  jordi
37616         * ScrollBar.cs: more fixes to scrollbar
37618 2004-08-25 14:04  ravindra
37620         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
37621           Added the missing divider code and grip for ToolBar Control.
37623 2004-08-25 13:20  pbartok
37625         * Control.cs:
37626           - Control now properly passes the ambient background color to child
37627             controls
37629 2004-08-25 13:20  jordi
37631         * ScrollBar.cs: small bug fix regarding bar position
37633 2004-08-25 12:33  pbartok
37635         * Timer.cs:
37636           - Now only calls SetTimer or KillTimer if the enabled state has
37637           changed
37639 2004-08-25 12:33  pbartok
37641         * XplatUIWin32.cs:
37642           - Fixed timer handling, now seems to work
37643           - Improved error message for window creation
37645 2004-08-25 12:32  pbartok
37647         * Control.cs:
37648           - Fixed generation of MouseUp message
37650 2004-08-25 12:29  jordi
37652         * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
37653           and fixes for progressbar
37655 2004-08-24 18:43  ravindra
37657         * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
37658           in ToolBar control.
37660 2004-08-24 17:15  pbartok
37662         * Panel.cs:
37663           - Added #region
37664           - Added missing events
37665           - Alphabetized
37667 2004-08-24 17:14  pbartok
37669         * StatusBar.cs, PictureBox.cs:
37670           - Now uses Control's CreateParams
37672 2004-08-24 16:36  pbartok
37674         * XplatUIX11.cs:
37675           - Fixed background color handling
37676           - Fixed sending of enter/leave events on a grab
37678 2004-08-24 16:35  pbartok
37680         * X11Structs.cs:
37681           - Refined definitions for CrossingEvent
37683 2004-08-24 12:37  jordi
37685         * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
37686           formmating, methods signature, and adds missing events
37688 2004-08-24 12:24  jordi
37690         * Control.cs: fire OnEnabledChanged event
37692 2004-08-24 11:17  pbartok
37694         * XplatUIWin32.cs:
37695           - Implemented SetTimer() and KillTimer()
37697 2004-08-24 11:16  pbartok
37699         * XplatUIX11.cs:
37700           - Now uses Remove instead of Add to kill the timer
37702 2004-08-24 10:16  jackson
37704         * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
37705           picture boxes in the theme now. Draw picture box borders and obey
37706           sizing modes
37708 2004-08-24 05:49  jackson
37710         * Timer.cs: Remove top secret debugging code
37712 2004-08-24 05:34  jackson
37714         * PictureBox.cs: Temp hack to make picture boxes draw their full
37715           image
37717 2004-08-24 05:29  jackson
37719         * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
37720           XplatUIX11.cs: Move timers to the driver level. On X they are
37721           queued by the driver and checked on idle.
37723 2004-08-24 01:07  jackson
37725         * XplatUIX11.cs: Use a queue for async messages instead of passing
37726           them as ClientMessages since that was totally broken. Also simply
37727           check for events and return an idle message if none are found. This
37728           gives us an idle handler, and prevents deadlocking when no messages
37729           are in the queue.
37731 2004-08-23 18:19  ravindra
37733         * XplatUIWin32.cs: Removed the unwanted destructor.
37735 2004-08-23 17:27  pbartok
37737         * ButtonBase.cs:
37738           - Finishing touches. Works now, just needs some optimizations.
37740 2004-08-23 16:53  jordi
37742         * ScrollBar.cs: small fix
37744 2004-08-23 16:45  pbartok
37746         * Application.cs:
37747           - Removed debug output
37748           - Simplifications
37750 2004-08-23 16:43  jordi
37752         * ScrollBar.cs: [no log message]
37754 2004-08-23 16:10  pbartok
37756         * Form.cs:
37757           - Fixed handling of WM_CLOSE message
37758           - Removed debug output
37760 2004-08-23 16:09  pbartok
37762         * Application.cs:
37763           - Added handling of Idle event
37764           - Added handling of form closing
37765           - Fixed reporting of MessageLoop property
37766           - Removed some unneeded code, should provide a bit of a speedup
37768 2004-08-23 15:22  pbartok
37770         * Control.cs:
37771           - Added InitLayout() method
37772           - Added code to properly perform layout when Anchor or Dock property
37773             is changed
37774           - Changed 'interpretation' of ResumeLayout. MS seems to have a
37775             LAMESPEC, tried to do it in a way that makes sense
37777 2004-08-23 14:10  jordi
37779         * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
37780           properties and methods
37782 2004-08-23 13:55  pbartok
37784         * Control.cs:
37785           - Properly fixed Jordi's last fix
37786           - Now uses Cursor's Position property instead of calling XplatUI
37787           directly
37789 2004-08-23 13:44  jordi
37791         * PaintEventHandler.cs: Adding missing attribute
37793 2004-08-23 13:39  pbartok
37795         * Cursor.cs:
37796           - Implemented Position property
37798 2004-08-23 13:39  pbartok
37800         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
37801           - Added method to move mouse cursor
37803 2004-08-23 13:39  pbartok
37805         * XplatUIX11.cs:
37806           - Fixed setting of background color
37807           - Added method to move mouse cursor
37809 2004-08-23 13:16  jordi
37811         * Control.cs: avoids null exception
37813 2004-08-22 17:46  jackson
37815         * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
37816           PictureBox
37818 2004-08-22 17:40  jackson
37820         * XplatUIX11.cs: Add some missing locks
37822 2004-08-22 15:10  pbartok
37824         * Control.cs, Form.cs:
37825           - Removed OverlappedWindow style from Control, instead it's default
37826             now is child
37827           - Made form windows OverlappedWindow by default
37829 2004-08-22 13:34  jackson
37831         * ScrollBar.cs: Update the position through the Value property so
37832           the OnValueChanged event is raised.
37834 2004-08-22 12:04  pbartok
37836         * SWF.csproj:
37837           - Added Cursor.cs and UserControl.cs
37839 2004-08-22 12:03  pbartok
37841         * Cursor.cs:
37842           - Started implementation, not usable yet
37844 2004-08-22 12:00  pbartok
37846         * UserControl.cs:
37847           - Implemented UserControl (complete)
37849 2004-08-21 19:20  ravindra
37851         * ToolBar.cs: Correcting the formatting mess of VS.NET.
37853 2004-08-21 18:49  ravindra
37855         * ToolBar.cs: Probably this completes the missing attributes in
37856           toolbar control.
37858 2004-08-21 18:03  ravindra
37860         * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
37861           Fixed toolbar control signatures.
37863 2004-08-21 16:32  pbartok
37865         * LinkLabel.cs:
37866           - Signature Fixes
37868 2004-08-21 16:30  pbartok
37870         * Label.cs:
37871           - Signature fixes
37873 2004-08-21 16:19  pbartok
37875         * Control.cs, Label.cs:
37876           - Signature fixes
37878 2004-08-21 15:57  pbartok
37880         * ButtonBase.cs:
37881           - Added loads of debug output for development
37882           - Fixed typo in method name
37884 2004-08-21 15:52  pbartok
37886         * ToolBarButtonClickEventArgs.cs:
37887           - Added missing base class
37889 2004-08-21 14:53  pbartok
37891         * Control.cs:
37892           - Updated to match new GrabWindow signature
37894 2004-08-21 14:51  pbartok
37896         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
37897           - Added method to get default display size
37899 2004-08-21 14:23  pbartok
37901         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
37902           - Added method to query current grab state
37903           - Added argument to allow confining a grab to a window
37905 2004-08-21 14:22  pbartok
37907         * Keys.cs:
37908           - Added [Flags] attribute so that modifiers can be used in bitwise
37909           ops
37911 2004-08-21 14:21  pbartok
37913         * TrackBar.cs, ScrollBar.cs:
37914           - Replaced direct XplatUI calls with their Control counterpart
37916 2004-08-21 13:32  pbartok
37918         * Control.cs:
37919           - Implemented Created property
37921 2004-08-21 13:28  pbartok
37923         * Control.cs:
37924           - Implemented ContainsFocus
37926 2004-08-21 13:26  pbartok
37928         * Control.cs:
37929           - Implemented CausesValidation
37931 2004-08-21 13:21  pbartok
37933         * Control.cs:
37934           - Implemented CanFocus
37935           - Implemented CanSelect
37936           - Implemented Capture
37938 2004-08-21 12:35  pbartok
37940         * XplatUIWin32.cs:
37941           - Fixed bug with Async message handling
37942           - Implemented getting the ModifierKeys
37944 2004-08-21 12:32  jackson
37946         * AsyncMethodResult.cs: Make sure we have the mutex before we
37947           release it. Fixes BeginInvoke on windows
37949 2004-08-21 11:31  pbartok
37951         * XplatUIWin32.cs, XplatUIX11.cs:
37952           - Drivers now return proper mouse state
37954 2004-08-21 10:54  jackson
37956         * Control.cs: Implement EndInvoke
37958 2004-08-21 10:48  jackson
37960         * Timer.cs: Remove unneeded finalizer
37962 2004-08-20 19:52  ravindra
37964         * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
37965           in mouse event handling in the ToolBar control.
37967 2004-08-20 19:50  ravindra
37969         * ImageList.cs: Changed draw method to use the arguments passed in
37970           to draw the image.
37972 2004-08-20 18:58  pbartok
37974         * XplatUIStructs.cs:
37975           - Added private message for async communication
37977 2004-08-20 17:38  ravindra
37979         * Control.cs: Made RightToLeft property virtual and removed a
37980           Console.WriteLine.
37982 2004-08-20 14:39  jordi
37984         * ThemeGtk.cs: use style_attach
37986 2004-08-20 14:39  pbartok
37988         * XplatUIWin32.cs:
37989           - Added jackson's Async code from X11 to Win32
37991 2004-08-20 14:09  pbartok
37993         * SWF.csproj:
37994           - Added all new files
37996 2004-08-20 14:09  pbartok
37998         * Control.cs:
37999           - Added call to set window background color
38001 2004-08-20 14:03  pbartok
38003         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
38004           - Added method for setting the window background
38006 2004-08-20 14:02  pbartok
38008         * XplatUIWin32.cs:
38009           - Added method for setting the background color
38010           - Added handling for erasing the window background
38012 2004-08-20 13:45  jordi
38014         * TrackBar.cs: fixes timer, new properties and methods
38016 2004-08-20 13:34  jackson
38018         * ScrollBar.cs: Use the SWF timer so callbacks are run in the
38019           correct thread
38021 2004-08-20 13:22  jackson
38023         * Timer.cs: Timer Tick events are now handed through Controls Async
38024           mechanism so the callbacks are executed in the same thread as X
38026 2004-08-20 13:19  jackson
38028         * XplatUIDriver.cs: Expose functionality to send async messages
38029           through the driver
38031 2004-08-20 13:18  jackson
38033         * Control.cs: Implement Begininvoke
38035 2004-08-20 13:14  jackson
38037         * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
38038           messages through the driver
38040 2004-08-20 13:12  jackson
38042         * XplatUIX11.cs: Lock before all X operations. Also added Async
38043           method functionality through XSendEvent
38045 2004-08-20 13:11  jackson
38047         * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
38048           This will screw up on 64 bit systems)
38050 2004-08-20 13:10  jackson
38052         * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
38053           Async messages through X/Win32
38055 2004-08-19 19:39  pbartok
38057         * XplatUIX11.cs:
38058           - Updated code to match new HandleData.DeviceContext type
38060 2004-08-19 19:38  pbartok
38062         * HandleData.cs:
38063           - Made DeviceContext a generic object to allow usage from various
38064           drivers
38065           - Added support for queueing Windows messages
38067 2004-08-19 19:37  pbartok
38069         * XplatUIWin32.cs:
38070           - Added generation of MouseEnter, MouseLeave and MouseHover events
38071           - Added cleanup on EndPaint
38073 2004-08-19 19:17  pbartok
38075         * Control.cs:
38076           - Added handling of WM_MOUSEHOVER
38077           - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
38078           code
38080 2004-08-19 18:55  jordi
38082         * ThemeGtk.cs: fixes button order
38084 2004-08-19 18:12  jordi
38086         * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
38088 2004-08-19 17:09  pbartok
38090         * Control.cs:
38091           - Added Right property
38092           - Added RightToLeft property
38094 2004-08-19 16:27  jordi
38096         * ThemeGtk.cs: experimental GTK theme support
38098 2004-08-19 16:26  jordi
38100         * ITheme.cs, Theme.cs: move themes from an interface to a class
38102 2004-08-19 16:25  jordi
38104         * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
38105           theme enhancaments
38107 2004-08-19 16:04  pbartok
38109         * XplatUIX11.cs:
38110           - Added colormap basics
38111           - Added a way to re-initialize with a different display handle
38112           - Fixed setting of the window background color
38113           - Added various X11 imports related to colors and colormaps
38115 2004-08-19 15:51  pbartok
38117         * X11Structs.cs:
38118           - Removed packing hints (Paolo suggested this a while back)
38119           - fixed colormap type
38120           - Added default Atom types
38121           - Added Screen and color structs and enums
38123 2004-08-19 15:39  pbartok
38125         * ImageList.cs:
38126           - Added missing Draw() method
38127           - Added missing RecreateHandle event
38129 2004-08-19 15:30  pbartok
38131         * Form.cs:
38132           - Added handling of WM_CLOSE
38134 2004-08-18 13:16  jordi
38136         * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
38137           a table
38139 2004-08-18 09:56  jordi
38141         * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
38143 2004-08-17 15:31  ravindra
38145         * SWF.csproj: Updated project.
38147 2004-08-17 15:25  pbartok
38149         * Control.cs:
38150           - Drawing improvement; don't call UpdateBounds if we are not visible
38151             (or have been minimized)
38153 2004-08-17 15:24  pbartok
38155         * XplatUIWin32.cs:
38156           - Finished IsVisible
38157           - Added Win32GetWindowPlacement
38159 2004-08-17 15:08  jackson
38161         * Panel.cs: Initial checkin of the Panel
38163 2004-08-17 14:25  pbartok
38165         * Control.cs:
38166           - Fixed broken handling of default window sizes
38168 2004-08-17 13:29  jackson
38170         * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
38171           has a large startup time.
38173 2004-08-17 10:25  jackson
38175         * HandleData.cs: union areas properly
38177 2004-08-17 10:12  jackson
38179         * HandleData.cs: union areas properly
38181 2004-08-16 20:00  ravindra
38183         * ToolBar.cs, ToolBarButton.cs: Added attributes.
38185 2004-08-16 18:48  ravindra
38187         * ToolBar.cs: Added attributes.
38189 2004-08-16 17:17  ravindra
38191         * SWF.csproj: Updated project.
38193 2004-08-16 17:16  jackson
38195         * XplatUIX11.cs: Check for more expose events before sending a
38196           WM_PAINT so they can all be grouped together. This makes dragging a
38197           window across another window redraw in a sane way.
38199 2004-08-16 15:47  pbartok
38201         * Control.cs:
38202           - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
38203             support OnMouseEnter/Leave()
38204           - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
38205             exposure handling
38207 2004-08-16 15:46  pbartok
38209         * XplatUIStructs.cs, XplatUIX11.cs:
38210           - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
38211           OnMouseEnter/Leave()
38213 2004-08-16 15:34  jackson
38215         * XplatUIX11.cs: Group multiple expose events in HandleData, make
38216           sure messages get the message field set to WM_NULL if they are not
38217           handled.
38219 2004-08-16 15:24  jackson
38221         * HandleData.cs: HandleData is used for storing message information
38222           for window handles
38224 2004-08-15 17:23  ravindra
38226         * ColorDepth.cs: Added attribute.
38228 2004-08-15 17:23  ravindra
38230         * SWF.csproj: Updated project for ToolBar Control.
38232 2004-08-15 17:20  ravindra
38234         * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
38235           control and also dos2unix format.
38237 2004-08-15 17:13  ravindra
38239         * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
38240           ToolBarButtonClickEventArgs.cs,
38241           ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
38242           ToolBarTextAlign.cs: First Implementation of ToolBar control.
38244 2004-08-15 15:31  pbartok
38246         * ButtonBase.cs:
38247           - First (mostly) working version
38249 2004-08-13 16:15  pbartok
38251         * Control.cs:
38252           - Fixed Anchor default
38254 2004-08-13 15:43  pbartok
38256         * Control.cs:
38257           - Changed GetCursorPos signature
38259 2004-08-13 15:42  pbartok
38261         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
38262           - Changed signature for GetCursorPos
38264 2004-08-13 15:25  pbartok
38266         * XplatUIX11.cs:
38267           - Cleanup
38268           - Fixed resizing/exposure handling
38270 2004-08-13 15:22  jordi
38272         * ThemeWin32Classic.cs: removes redundant code and fixes issues
38273           with tickposition
38275 2004-08-13 14:55  jordi
38277         * TrackBar.cs: change from wndproc to events
38279 2004-08-13 13:00  jordi
38281         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
38282           XplatUIX11.cs: implements PointToClient (ScreenToClient)
38284 2004-08-13 12:53  pbartok
38286         * XplatUIWin32.cs:
38287           - Changed GetWindowPos to also provide client area size
38288           - Fixed broken prototypes for several win32 functions
38290 2004-08-13 12:53  pbartok
38292         * XplatUI.cs, XplatUIDriver.cs:
38293           - Changed GetWindowPos to also provide client area size
38295 2004-08-13 12:52  pbartok
38297         * XplatUIX11.cs:
38298           - Added generation of WM_POSCHANGED
38299           - Changed GetWindowPos to also provide client area size
38301 2004-08-13 12:52  pbartok
38303         * Control.cs:
38304           - Added Dispose() and destructor
38305           - Fixed resizing and bounds calculation
38306           - Fixed Layout
38307           - Added memory savings for invisible windows
38309 2004-08-13 12:46  jordi
38311         * TrackBar.cs: adds timer and grap window
38313 2004-08-13 10:25  jackson
38315         * Timer.cs: SWF Timer
38317 2004-08-12 16:59  pbartok
38319         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38320           - Implemented method to get current mouse position
38322 2004-08-12 14:29  jordi
38324         * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
38325           enhancement, fix mouse problems, highli thumb, etc
38327 2004-08-12 13:31  pbartok
38329         * Control.cs:
38330           - Fixed Anchoring bugs
38332 2004-08-12 13:01  jackson
38334         * StatusBar.cs: Don't forget things
38336 2004-08-12 12:54  jackson
38338         * ThemeWin32Classic.cs: Handle owner draw status bars
38340 2004-08-12 12:54  jackson
38342         * StatusBar.cs: Implement missing properties, events, and methods.
38343           Handle mouse clicking
38345 2004-08-12 10:19  jackson
38347         * StatusBarPanelClickEventArgs.cs,
38348           StatusBarPanelClickEventHandler.cs: Classes for handling status
38349           bar panel click events
38351 2004-08-12 10:10  jackson
38353         * Control.cs: Add missing properties
38355 2004-08-12 09:46  pbartok
38357         * BindingsManagerBase.cs:
38358           - Name changed to BindingManagerBase.cs
38360 2004-08-12 09:25  jordi
38362         * ScrollableControl.cs: calls ctrlbase instead of exeception
38364 2004-08-11 16:28  pbartok
38366         * InputLanguageChangingEventArgs.cs:
38367           - Never check in before compiling. Fixes the last check-in
38369 2004-08-11 16:26  pbartok
38371         * InputLanguageChangingEventArgs.cs:
38372           - More signature fixes
38374 2004-08-11 16:20  pbartok
38376         * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
38377           Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
38378           ImageListStreamer.cs, InputLanguage.cs,
38379           InputLanguageChangedEventArgs.cs,
38380           InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
38381           LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
38382           ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
38383           XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38384           - Signature fixes
38386 2004-08-11 16:16  pbartok
38388         * Application.cs:
38389           - Fixed Signature
38390           - Added .Net 1.1 method
38392 2004-08-11 15:25  pbartok
38394         * SWF.csproj:
38395           - Fixed BindingManagerBase.cs filename
38397 2004-08-11 15:22  pbartok
38399         * BindingManagerBase.cs:
38400           - Was checked in with wrong filename
38402 2004-08-11 14:50  pbartok
38404         * SWF.csproj:
38405           - Updated
38407 2004-08-11 13:41  jordi
38409         * XplatUIWin32.cs: Fixes ClientRect
38411 2004-08-11 13:19  pbartok
38413         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
38414           XplatUIX11.cs:
38415           - We had SetWindowPos and MoveWindow to set window positions and
38416             size, removed MoveWindow. We have GetWindowPos, so it made sense to
38417             keep SetWindowPos as matching counterpart
38418           - Added some X11 sanity checking
38420 2004-08-11 12:59  pbartok
38422         * Control.cs:
38423           - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
38424             (It seems that SetBounds is just a front for SetBoundsCore and
38425              SetBoundsCore updates the underlying window system and
38426              UpdateBounds is responsible for updating the variables associated
38427              with the Control and sending the events)
38428           - Major cleanup of Size handling; we now have two sizes, client_size
38429             and bounds. Bounds defines the window with decorations, client_size
38430             without them.
38432 2004-08-11 12:55  pbartok
38434         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38435           - Added method to calculate difference between decorated window and
38436             raw client area
38438 2004-08-11 12:54  pbartok
38440         * Label.cs:
38441           - Forcing redraw on resize
38443 2004-08-11 11:43  pbartok
38445         * ImageList.cs:
38446           - Removed disposing of the actual images when the list is disposed
38448 2004-08-11 09:13  pbartok
38450         * Control.cs:
38451           - Now properly reparents windows
38453 2004-08-11 08:37  pbartok
38455         * Control.cs:
38456           - Duh!
38458 2004-08-11 07:47  pbartok
38460         * Control.cs:
38461           - Rewrote the collection stuff. Might not be as fast now, not
38462             keeping the number of children around and accessible directly, but
38463             it's more straightforward
38465 2004-08-11 07:44  pbartok
38467         * AccessibleObject.cs:
38468           - Fixed to match ControlCollection rewrite
38470 2004-08-11 07:43  pbartok
38472         * ImageList.cs:
38473           - Added missing creation of the collection list
38475 2004-08-10 20:08  jackson
38477         * StatusBar.cs: Get the paint message from WndProc
38479 2004-08-10 19:31  jackson
38481         * ThemeWin32Classic.cs: Create Brushes as little as possible
38483 2004-08-10 19:20  jackson
38485         * UICues.cs: Add Flags attribute
38487 2004-08-10 19:19  jackson
38489         * StatusBarPanel.cs: Signature cleanup
38491 2004-08-10 19:10  jackson
38493         * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
38494           Initial implementation of status bar item drawing
38496 2004-08-10 17:27  jordi
38498         * TrackBar.cs: add missing methods, properties, and restructure to
38499           hide extra ones
38501 2004-08-10 16:24  jackson
38503         * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
38504           ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
38505           attribute
38507 2004-08-10 13:21  jordi
38509         * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
38510           enhancements and standarize on win colors defaults
38512 2004-08-10 12:52  jackson
38514         * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
38515           ThemeWin32Classic.cs: Implement DrawItem functionality
38517 2004-08-10 12:47  jordi
38519         * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
38521 2004-08-10 12:32  jordi
38523         * Control.cs: throw ontextchange event
38525 2004-08-10 11:43  pbartok
38527         * Control.cs:
38528           - Added more to the still unfinished Dock/Anchor layout code
38530 2004-08-10 11:39  pbartok
38532         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
38533           - Added GetWindowPos method
38535 2004-08-10 11:36  pbartok
38537         * XplatUIWin32.cs:
38538           - Implemented several methods
38540 2004-08-10 09:47  jackson
38542         * TrackBar.cs: Allow control to handle buffering
38544 2004-08-10 09:41  jackson
38546         * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
38548 2004-08-10 09:24  jackson
38550         * Label.cs, LinkLabel.cs: Let Control handle buffering.
38552 2004-08-10 09:09  jackson
38554         * StatusBar.cs: Let Control handle all the buffering.
38556 2004-08-10 09:08  jackson
38558         * Control.cs: Control will now handle the buffering code, so each
38559           control does not have to implement this.
38561 2004-08-10 08:34  jackson
38563         * XplatUIDriver.cs: Use default colors from the theme
38565 2004-08-09 17:12  pbartok
38567         * ImageList.cs:
38568           - Fixed several bugs Ravindra pointed out
38570 2004-08-09 16:11  pbartok
38572         * Control.cs:
38573           - Added incomplete dock layout code
38574           - Added support for mouse wheel
38576 2004-08-09 16:09  pbartok
38578         * XplatUIX11.cs:
38579           - Added handling for middle and right mousebutton
38580           - Added handling for mouse wheel
38581           - Added handling for key state and mouse state and position
38582           - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
38583           messages
38585 2004-08-09 15:40  jackson
38587         * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
38588           StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
38589           checkin
38591 2004-08-09 15:37  jackson
38593         * StatusBar.cs: Initial implementation of StatusBar
38595 2004-08-09 15:36  jackson
38597         * ITheme.cs: Add support for drawing status bar and getting status
38598           bar item sizes
38600 2004-08-09 15:35  pbartok
38602         * MouseButtons.cs:
38603           - Fixed values
38605 2004-08-09 15:34  jackson
38607         * ThemeWin32Classic.cs: Add support for drawing status bar and get
38608           status bar item sizes
38610 2004-08-09 15:21  jackson
38612         * ThemeWin32Classic.cs: Use known colors for default control
38613           colours
38615 2004-08-09 15:12  jackson
38617         * ThemeWin32Classic.cs: Make the default font static, it is static
38618           in control so this doesn't change functionality and creating fonts
38619           is sloooooow.
38621 2004-08-09 14:56  pbartok
38623         * X11Structs.cs:
38624           - Added GrabMode enum
38626 2004-08-09 14:55  pbartok
38628         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38629           - Removed Run method, was only required for initial development
38631 2004-08-09 14:51  pbartok
38633         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38634           - Implemented GrabWindow/ReleaseWindow methods to allow pointer
38635           capture
38637 2004-08-09 13:48  pbartok
38639         * XplatUIX11.cs:
38640           - Fixed default sizing for child windows
38642 2004-08-09 12:56  pbartok
38644         * XplatUIX11.cs:
38645           - Added generation of WM_DESTROY message
38646           - Added handling of window manager induced shutdown
38648 2004-08-09 11:31  jackson
38650         * ThemeWin32Classic.cs: New names for control properties
38652 2004-08-09 11:25  jackson
38654         * Control.cs: Use new color names
38656 2004-08-09 11:02  jackson
38658         * XplatUI.cs: Get default window properties from the theme
38660 2004-08-09 11:01  jackson
38662         * ITheme.cs: The theme engine now controls default window
38663           properties
38665 2004-08-09 11:00  jackson
38667         * ThemeWin32Classic.cs: Add default window color properties
38669 2004-08-09 10:17  jackson
38671         * ThemeWin32Classic.cs: Use correct default back color
38673 2004-08-09 10:05  jackson
38675         * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
38676           the theme now.
38678 2004-08-09 09:56  jackson
38680         * XplatUI.cs: Remove defaults, these are handled by the theme now.
38682 2004-08-09 09:54  jackson
38684         * Control.cs: Get default properties from the theme.
38686 2004-08-09 09:53  jackson
38688         * ITheme.cs: Themes now handle default control properties
38690 2004-08-09 09:53  jackson
38692         * ThemeWin32Classic.cs: Themes now handle default control
38693           properties so coloring will be consistent
38695 2004-08-08 16:54  jordi
38697         * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
38699 2004-08-08 15:08  jordi
38701         * XplatUIX11.cs: fixes keyboard crash
38703 2004-08-08 13:47  jordi
38705         * Label.cs: add cvs header info
38707 2004-08-08 12:09  jackson
38709         * ThemeWin32Classic.cs: Add pen_buttonface
38711 2004-08-08 11:52  jordi
38713         * Label.cs, LinkLabel.cs: [no log message]
38715 2004-08-08 11:34  jordi
38717         * ThemeWin32Classic.cs: Use Windows Standard Colours
38719 2004-08-07 17:32  jordi
38721         * TrackBar.cs: throw exceptions of invalid enums values
38723 2004-08-07 17:31  jordi
38725         * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
38726           draw method name
38728 2004-08-07 16:56  jackson
38730         * HorizontalAlignment.cs: Initial checkin
38732 2004-08-07 13:16  jordi
38734         * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
38735           methods
38737 2004-08-07 13:05  jordi
38739         * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
38740           GetSysColor defines
38742 2004-08-06 18:01  pbartok
38744         * ThemeWin32Classic.cs:
38745           - Fixed some rounding issues with float/int
38747 2004-08-06 18:00  jackson
38749         * DockStyle.cs, AnchorStyles.cs:
38751                   Add flags and serializable attributes.
38753 2004-08-06 17:46  pbartok
38755         * XplatUIX11.cs:
38756           - Implemented GetParent
38758 2004-08-06 17:18  pbartok
38760         * TrackBar.cs:
38761           - Fixed some rounding issues with float/int
38763 2004-08-06 17:17  pbartok
38765         * X11Structs.cs, XplatUIX11.cs:
38766           - Fixed Refresh and Invalidate
38768 2004-08-06 15:30  pbartok
38770         * Control.cs, X11Structs.cs, XplatUIX11.cs:
38771           - Fixed recursive loop when resizing
38772           - Improved/fixed redrawing on expose messages
38774 2004-08-06 09:53  jordi
38776         * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
38777           keyboard navigation
38779 2004-08-06 08:02  pbartok
38781         * X11Structs.cs, XplatUIX11.cs:
38782           - Fixed reparenting
38783           - Fixed window border creation
38785 2004-08-05 15:38  pbartok
38787         * XplatUIX11.cs:
38788           - Attempted fix for reparenting problems
38790 2004-08-04 15:14  pbartok
38792         * Control.cs:
38793           - Fixed Invalidation bug (calculated wrong client area)
38794           - Added ClientSize setter
38796 2004-08-04 15:13  pbartok
38798         * Form.cs:
38799           - Added AutoScale properties
38801 2004-08-04 15:13  pbartok
38803         * SWF.csproj:
38804           - Added latest files
38806 2004-08-04 14:11  pbartok
38808         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
38809           XplatUIX11.cs:
38810           - Added Invalidate handling
38812 2004-08-03 17:09  jordi
38814         * XplatUIDriver.cs: fixes spelling mistake
38816 2004-07-27 09:53  jordi
38818         * TrackBar.cs: fixes trackbar events, def classname, methods
38819           signature
38821 2004-07-27 09:29  jordi
38823         * ScrollBar.cs: fixes scrollbar events
38825 2004-07-27 04:38  jordi
38827         * Control.cs: changes to be able to run winforms samples
38829 2004-07-26 11:42  jordi
38831         * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
38832           ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
38834 2004-07-26 05:41  jordi
38836         * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
38837           MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
38838           implementation
38840 2004-07-22 09:22  jordi
38842         * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
38843           check link overlapping, implement events, and fixes
38845 2004-07-21 10:28  jordi
38847         * DialogResult.cs, IButtonControl.cs: fixes comments filenames
38849 2004-07-21 10:19  jordi
38851         * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
38852           LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
38853           LinkLabelLinkClickedEventArgs.cs,
38854           LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
38855           XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
38856           implementation
38858 2004-07-19 13:09  jordi
38860         * Control.cs, Label.cs: label control re-written: added missing
38861           functionlity, events, and properties
38863 2004-07-19 10:49  jordi
38865         * Control.cs: fixes SetBounds logic
38867 2004-07-19 01:29  jordi
38869         * Control.cs: Call RefreshWindow only if the window has created
38871 2004-07-15 14:05  pbartok
38873         * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
38874           - Implemented ImageList and ImageList.ImageCollection classes
38875           - Added ColorDepth enumeration
38876           - Updated SWF VS.Net project
38878 2004-07-15 11:06  jordi
38880         * XplatUIStructs.cs: added MsgButons enum
38882 2004-07-15 11:03  jordi
38884         * Control.cs: added basic mouse handeling events
38886 2004-07-15 03:38  jordi
38888         * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
38889           Vertical TrackBar control implementation
38891 2004-07-13 09:33  jordi
38893         * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
38895 2004-07-13 09:31  jordi
38897         * Control.cs, Form.cs: commit: new properties and fixes form size
38898           problems
38900 2004-07-09 14:13  miguel
38902         * ProgressBar.cs: Spelling
38904 2004-07-09 11:25  pbartok
38906         * ProgressBar.cs:
38907           - Removed usage of Rectangle for drawing. Miguel pointed out it's
38908           faster
38910 2004-07-09 11:17  miguel
38912         * ProgressBar.cs: 2004-07-09  Miguel de Icaza  <miguel@ximian.com>
38914                 * ProgressBar.cs: Fixed spelling for `block'
38916                 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
38917                 style guidelines.
38919                 Avoid using the += on rect.X, that exposed a bug in the compiler.
38921 2004-07-08 23:21  pbartok
38923         * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
38924           AnchorStyles.cs, Application.cs, ApplicationContext.cs,
38925           BaseCollection.cs, Binding.cs, BindingContext.cs,
38926           BindingMemberInfo.cs, BindingsCollection.cs,
38927           BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
38928           BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
38929           ButtonState.cs, CaptionButton.cs, CheckBox.cs,
38930           ContainerControl.cs, Control.cs, ControlEventArgs.cs,
38931           ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
38932           ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
38933           CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
38934           DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
38935           FrameStyle.cs, GiveFeedbackEventArgs.cs,
38936           GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
38937           HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
38938           IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
38939           InputLanguageChangedEventArgs.cs,
38940           InputLanguageChangedEventHandler.cs,
38941           InputLanguageChangingEventArgs.cs,
38942           InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
38943           InvalidateEventArgs.cs, InvalidateEventHandler.cs,
38944           KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
38945           KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
38946           LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
38947           MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
38948           PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
38949           QueryAccessibilityHelpEventArgs.cs,
38950           QueryAccessibilityHelpEventHandler.cs,
38951           QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
38952           RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
38953           ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
38954           ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
38955           TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
38956           UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
38957           XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
38958           XplatUIX11.cs, lang.cs:
38959           - Initial check-in