* BindingSourceTest.cs: New Filter/RemoveFilter tests.
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
1 2008-04-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2
3         * BindingSource.cs: Some corrections to Filter property, as well as
4         setting it for our list when resetting it.
5
6 2008-04-29  Jonathan Pobst  <monkey@jpobst.com>
7
8         * ScrollBar.cs: Don't let dragging the thumb grip set the value greater
9         than the maximum.  Fixes reopened bug #384182.
10
11 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
12
13         * ToolStripDropDown.cs: Fix offscreen position for DropDown itens.
14         Fixes remaining issues of #367490.
15
16 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
17
18         * ToolStripDropDown.cs: Screen.Bound dont return right value then use 
19         SystemInformation.WorkingArea to get max_screen value.
20
21 2008-04-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22
23         * BindingSource.cs: Implement Filter and RemoveFilter.
24
25 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
26
27         * MenuAPI.cs: Prevent sub-menu positon to be less than zero.
28
29 2008-04-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
30
31         * X11Dnd.cs: When trying to convert data and we know we started the
32         dnd loop, don't try to use the cached data if the loop is not running,
33         which means that the data has been resetted.
34         Fixes #378191.
35
36 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
37
38         * MenuAPI.cs: Force first menu subitem to show from left to right to mimic
39         win32 behavior.
40
41 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
42
43         * MenuAPI.cs: Check the screen limits before show sub-menus and prevent
44         it to drawn off screen edge. Fixes bug #367490.
45
46 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
47
48         * MenuAPI.cs: In PopupWindow.RefreshItems uses a temp point var to store
49         menu position to have only one assignment of Location var.
50
51 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
52
53         * MenuAPI.cs: Implement the right key for sub-menus. Thanks Ernesto Carrea
54         for this patch. Fixes bug #384115.
55
56 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
57
58         * ScrollBar.cs: If SmallChange is larger than LargeChange, make them
59         the same.  If LargeChange is zero, set a minimum size for the scroll
60         thumb grip.  [Fixes bug #384182]
61
62 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
63
64         * TextBoxTextRenderer.cs: Don't turn &A into a prefix for textboxen.
65         [Fixes bug #384181]
66
67 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
68
69         * ListBox.cs: Math.Min should be Math.Max.  [Fixes bug #384183]
70
71 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
72
73         * ThemeVisualStyles.cs: Added partial support for ScrollBar (based on the
74         patch from Ernesto).
75
76 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
77
78         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawComboButton.
79
80 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
81
82         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawButton.
83
84 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
85
86         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawRadioButton.
87
88 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
89
90         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawScrollButton.
91
92 2008-04-27  George Giolfan  <georgegiolfan@yahoo.com>
93
94         * ThemeVisualStyles.cs: Added support for ButtonBase.UseVisualStyleBackColor.
95
96 2008-04-27  Andreia Gaita <avidigal@novell.com> 
97
98         * HtmlWindow.cs, HtmlHistory.cs: Throw on DomHistory getter (it's
99           supposed to return a reference to an mshtml interface, which we
100           don't support).
101         * HtmlElement.cs: Throw on DomElement getter (it's supposed to return a
102           reference to an mshtml interface, which we don't support). Code
103           formatting cleanup.
104         * HtmlDocument.cs: Add DefaultEncoding getter implementation. Throw on
105           DomDocument getter (it's supposed to return a reference to an
106           mshtml interface, which we don't support). Code formatting cleanup.
107
108 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
109
110         * ListView.cs: Ouch, forgot to commit.
111
112 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
113
114         * ListView.cs: 
115         * ThemeWin32Classic.cs: Fire the -until now- forgotten CacheVirtualItems event.
116
117 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
118
119         * ListView.cs: When calculating box selection for virtual mode, don't
120         look for intersection with item's text, but item bounds, since that
121         would mean read ListViewItem's text for _every_ item, and that's
122         something we just can't do in virtual mode (items are only requested
123         when drawn).
124
125 2008-04-26  George Giolfan  <georgegiolfan@yahoo.com>
126
127         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCaptionButton and
128         partial support for managed windows (based on the patch from Ernesto).
129
130 2008-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
131
132         * ListView.cs: When doing a key search use FindItemWithText method
133         instead of doing the search by ourselves, this way we avoid
134         duplicating the code and also we handle the special case for virtual
135         mode. To achieve that make our private overload of FindItemWithText
136         internal and also have a 'roundtrip' parameter.
137
138 2008-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
139
140         * ListView.cs: When doing the layout don't request the
141         ListViewItem instance if we are in virtual mode (since we can't request it
142         until the item is actully drawn).
143
144 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
145
146         * ThemeVisualStyles.cs: Added support for ProgressBar (based on the patch 
147         from Ernesto).
148
149 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
150
151         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCheckBox (based on 
152         the patch from Ernesto).
153
154 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
155
156         * ThemeEngine.cs: Added code to select ThemeVisualStyles.
157         * ThemeVisualStyles.cs: Added.
158
159 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
160
161         * IDeviceContext.cs: Added a missing using.
162
163 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
164
165         * ButtonBase.cs: Made IsDefault protected internal.
166         * ButtonRenderer.cs: Made GetPushButtonRenderer(PushButtonState) internal.
167
168 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
169
170         * Application.cs: Included VisualStyles-related members in the 1.1 profile.
171         * ButtonRenderer.cs, CheckBoxRenderer.cs, Padding.cs, PaddingConverter.cs,
172         RadioButtonRenderer.cs: Included in the 1.1 profile.
173         * IDeviceContext.cs: Added.
174         * TextRenderer.cs: Included a member in the 1.1 profile.
175
176 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
177
178         * ThemeWin32Classic.cs: Added ShouldPaintFocusRectangle(ButtonBase).
179
180 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
181
182         * ErrorProvider.cs: Make the error icons come after the control
183         they refer to.  It isn't the way the MS does it, but its better
184         than what we were doing.  See bug #368587.
185
186 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
187
188         * InputLanguage.cs, InputLanguageCollection.cs: Apply patch
189         from Eric Albright that lazy loads the input language as ensures
190         everything gets properly initialized.  Fixes bug #373871.
191
192 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
193
194         * ToolStrip.cs: Don't use ToolStripControlHosts when figuring up
195         implicit mnemonics.  [Fixes bug #383000]
196
197 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
198
199         * X11Dnd.cs: When canceling the operation, automatically restore the
200         default cursor - normally the default cursor is restored when the
201         mouse buttons are released, but we should be able to restore it even
202         if the buttons are still pressed (for example, when pressing ESC to
203         cancel).
204         Fixes #381894.
205
206 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
207
208         * X11Dnd.cs: When starting a new drad and drop operation, set control
209         field to null, just as the other fields, to avoid calling any
210         operation on a previous control. Also, when calling DndLeave on a
211         control, set it to null, thus we don't fire that event multiple times
212         for that control.
213         Fixes #209264.
214
215 2008-04-23  Geoff Norton  <gnorton@novell.com>
216
217         * XplatUICarbon.cs: Ensure that we have a valid hwnd before accessing
218         the whole_window object.  Fixes #377084.
219
220 2008-04-23  Andreia Gaita <avidigal@novell.com> 
221
222         * HtmlElement.cs: Implement RaiseEvent (event injection into the
223           embedded browser)
224
225 2008-04-23  Jonathan Pobst  <monkey@jpobst.com>
226
227         * DataGridViewColumnHeaderCell.cs: Implement some NIEX stuffs.
228
229 2008-04-23  Andreia Gaita <avidigal@novell.com> 
230
231         * HtmlElement.cs, HtmlDocument.cs: Implement javscript method
232           invocation
233
234 2008-04-23  Andreia Gaita <avidigal@novell.com> 
235
236         * HtmlElement.cs, HtmlDocument.cs: Implement custom event handler
237           attaching/detaching
238
239 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
240
241         * X11Dnd.cs: When the drop was cancelled, or could just not be
242         performed, return DragDropEffect.None always (match .net).
243
244 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
245
246         * DataGridViewRowHeaderCell.cs: Fill in some NIEX stuff.
247
248 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
249
250         * DataGridViewRowCollection.cs: Revert something I didn't mean to commit.
251
252 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
253
254         * DataGridView.cs: Add support for error icon tool tips.
255         * DataGridViewCell.cs: ErrorIconBounds needs to call GetErrorIconBounds.
256         * DataGridViewRowHeaderCell.cs: Need internal way to get ErrorIconBounds.
257
258 2008-04-22  Ivan N. Zlatev  <contact@i-nz.net>
259
260         * X11Structs.cs: Add mouse button masks enum.
261         * XplatUIX11.cs, Hwnd.cs: Send WM_ENTERSIZEMOVE and 
262         WM_EXITSIZEMOVE only once at the beginning and at the end of the 
263         form resize/move operation instead of for each step of it.
264         [Fixes bug #346529 for the x11 backend]
265
266 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
267
268         * DataGridView*: Implement support for drawing error icons.
269
270 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
271
272         * TreeView.cs: Make vbar and hbar internal.
273         * TreeNode.cs: If collapsing the node removes one of the TreeView's
274         scrollbars, invalidate the whole thing.
275         [Fixes bug #382001]
276
277 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
278
279         * TreeView.cs: Calling Sort() sets Sorted = true.
280         * TreeNodeCollection.cs: Try to find the owner TreeView to determine
281         if the nodes need to be sorted.
282         [Fixes bug #382028]
283
284 2008-04-21  Ivan N. Zlatev  <contact@i-nz.net>
285
286         * Form.cs: Fire SizeChanged for both when the form is minimized and 
287         restored.
288         * XplatUIX11.cs: Instead of tracking minimization on UnmapNotify track it 
289         on PropertyNotify of _NET_WM_STATE. Much much cleaner.
290
291 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
292
293         * ComboBox.cs: If the combobox is disabled, draw a disabled
294         background before painting anything else.
295         [Fixes bug #381729]
296
297 2008-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
298
299         * X11Dnd.cs: Wehn the drag and drop operation is cancelled don't
300         forget to send a Leave event to the target window - just as .net does
301         when cancelling dnd operations.
302
303 2008-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
304
305         * X11Dnd.cs: Stop tracking messages as part of the dnd operation as
306         soon as possible - this happens when we send the drop message to the
307         target window. This way we avoid firing any DragOver _after_ drop finished.
308         Fixes #378179.
309
310 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
311
312         * XplatUIX11.cs: Send WM_WINDOWPOSCHANGED when a toplevel is minimized.
313         * Form.cs: Handle form minimization as a special state, where size doesn't 
314         change, but we have to fire SizeChanged.
315         [Fixes bug #325122 for the win32 and x11 backends]
316
317 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
318
319         * XplatUIX11.cs: Win32 doesn't send WM_(KILL|SET)FOCUS 
320         if the handle is disabled.
321         [Fixes bug #371751]
322
323 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
324
325         * XplatUIX11.cs: Enable Maximize/Minimize/Close ability (not decorations) 
326         for forms with FormBorderStyle.None.
327         [Fixes bug #349571]
328
329 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
330
331         * XplatUIX11.cs: Implement support for WM_ENTERSIZEMOVE and 
332         WM_EXITSIZEMOVE.
333         [Fixes bug #346529 for the X11 backend]
334
335 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
336
337         * XplatUIX11.cs: 
338           - Send a mouse Enter message after say dragging the mouse with a 
339           button down and then release it in another client.
340           - Reset the cursor to prevent X11 from remembering it and setting it 
341           before the control gets WM_SETCURSOR.
342           - Qeueue a mouse move after a mouse enter like win32.
343           [Fixes bug #323234]
344
345 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
346
347         * XplatUIX11.cs: Implement limited support for WM_SYSCOMMAND. 
348         It's sent when the form gets moved, resized, closed.
349         * XplatUIStructs.cs: Add SystemCommands enum for WM_SYSCOMMAND.
350         [Fixes bug #359193 for X11]
351
352 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
353
354         * Form.cs: Add a ValidateChildren for the 1.1 profile. Fixes 
355         the build.
356
357 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
358
359         * ListView.cs: Move CalculateDetailsGroupItemsCount to the NET_2_0 
360         group. Fixes the 1.1 build.
361
362 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
363
364         * ListView.cs: Use display indexes for selection in Details view, as
365         well as do the proper layout based on display indexes for that view
366         too.
367
368 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
369
370         * ListView.cs: Focused item information is now stored as a display
371         index, and display indexes are used all over the place for selection,
372         instead of ListViewItem.Index values, which doesn't give us enough
373         information to modify the selection in groups mode, and was broken.
374
375 2008-04-18  Ivan N. Zlatev  <contact@i-nz.net>
376
377         * Control.cs: Do not fire MouseDown if validation of the control has 
378         failed.
379         * Form.cs: Validate the form before closing.
380         [Fixes bugs #330501 and #353310]
381
382 2008-04-18  Andreia Gaita <avidigal@novell.com> 
383
384         * WebBrowserBase.cs: Added WndProc, DrawToBitmap,
385           CreateWebBrowserSiteBase implementations
386         * HtmlElement.cs: Add missing OuterHTML, OuterText setters, stubbed
387           Style and TabIndex setters
388
389 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
390
391         * ListViewGroup.cs: When returning the actual item count, return the
392         proper count for default group.
393         Fix the tests.
394
395 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
396
397         * ListView.cs:
398         * ListViewGroup.cs: When calculating groups layout, get the actual
399         number of items per group, since groups added to the group BUT not
400         added to the ListView are just ignored, and can cause some nasty
401         exceptions because of the lack of synchronization. Also for
402         ListViewGroup don't use lazy initialization for items, since we 
403         the common scenario is to use it always - and it helps us to  refactor
404         and clean the .ctor overloads.
405
406 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
407
408         * ListView.cs: When adding an item to a ListViewItemCollection
409         belonging to a group (ListViewGroup.Items), don't generate a redraw if
410         the added item hasn't beeen previously added to the ListView instance
411         refered by the group, since it will be ignored. This should avoid some 
412         really nasty flickering.
413
414 2008-04-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
415
416         * ListView.cs: When accessing an item in a specific display
417         position, use the helper method GetItemAtDisplayIndex, instead of
418         direct access to the reordered_items_indices array. When doing layout
419         for groups set the correct Items index for the display position (since
420         in groups mode items don't have the same position as in Items
421         collection).
422         * ListViewGroup.cs: Add a field to store the starting item number,
423         which is later used when calculating the layout.
424
425         Fixes #360805.
426
427 2008-04-17  Gert Driesen  <drieseng@users.sourceforge.net>
428
429         * Application.cs: Fixed ProductVersion to fallback to the assembly
430         version. Fixes regression for bug #325413.
431
432 2008-04-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
433
434         * ListView.cs: New helper method to retrieve an item in a _specific
435         display_ position (the items can be displayed in a different order
436         than one of Items collection).
437         * ThemeWin32Classic.cs: When drawing, instead of iterating over Items
438         collection, use ListView.GetItemAtDisplayIndex, to get an item in a
439         specific display position (again remember that items can be sorted
440         different than Items).
441
442 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
443
444         * DataGridViewColumnCollection.cs: Create a cached copy of our sorted
445         list and update it when the collection changes.  We were recreating
446         this several times per row paint and for every pixel the mouse moved
447         across the grid.
448         * DataGridViewColumn.cs: Regenerate cached sorted list when DisplayIndex
449         changes.
450
451 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
452
453         * DataGridViewColumnCollection.cs: Convert our internal sorted columns
454         list to use generics.
455         * DataGridView.cs, DataGridViewRow.cs: Use generic sorted column list
456         and remove unneccessay casts.
457
458 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
459
460         * DataGridViewBand.cs: Add internal way to set displayed variable.
461         * DataGridViewRow.cs: Don't paint cells in non-displayed columns.
462         * DataGridView.cs: Make sure we always keep track of Displayed
463         rows and columns, and only draw things that are displayed.
464
465 2008-04-16  Atsushi Enomoto  <atsushi@ximian.com>
466
467         * X11Keyboard.cs, XplatUIX11.cs : manage key state regardless of
468           whether the key events are filtered or not. Introduced
469           PreFilter() process for this purpose. This fixes atokx3/iiimx
470           shift state issue.
471
472 2008-04-16  Andreia Gaita <avidigal@novell.com> 
473
474         * HtmlHistory.cs: Implement Length property
475
476 2008-04-15  Jonathan Pobst  <monkey@jpobst.com>
477
478         * DataGridView.cs: Call EndEdit when a sort is performed so we take
479         away the edit textbox.  Refactor to reuse column sort code.
480
481 2008-04-12  Everaldo Canuto  <ecanuto@novell.com>
482
483         * MenuAPI.cs: Remove the code that save and restore capture status of 
484         grab_control, this fixes some Menu and Context menu bugs but maybe it can
485         cause some others, I cant figure the possible problems of this patch but
486         right now remove the code looks to be better than keep it. This patch fixes
487         bugs #357638, #378721 and #379570.
488
489 2008-04-12  Andreia Gaita <avidigal@novell.com> 
490
491         * HtmlDocument.cs, HtmlElement.cs, HtmlHistory.cs, WebBrowser.cs:
492         Implement OuterHtml, OuterText, Enabled, Scroll*, *Rectangle properties,
493         add missing properties and event handlers.
494         
495 2008-04-14  Jonathan Pobst  <monkey@jpobst.com>
496
497         * ListBox.cs: Make sure the LargeChange we are setting is at least
498         zero, to prevent an IOORE.  [Fixes bug #379531]
499
500 2008-04-13  Andy Hume <andyhume32@yahoo.co.uk>
501
502         * ComboBox.cs: Support item navigation by entering text.  Firstly, 
503         in DropDownList mode, for each key-press select the next item 
504         starting with that letter.
505         For other modes, when no item selected, on arrow-up/-down and open 
506         drop-down select the first item matching the text in the textbox.
507
508 2008-04-14  Atsushi Enomoto  <atsushi@ximian.com>
509
510         * X11Keyboard.cs : Control.FromHandle() could return null
511           in MoveCurrentCaretPos().
512
513 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
514
515         * ListView.cs: When changing the size in VirtualMode, also Reset the
516         selection.
517         * ListViewItem.cs: Don't call SelectedIndexCollection.Reset when
518         changing selection info for VirtualMode.
519         Fixes #372618.
520
521 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
522
523         * ThemeWin32Classic.cs: When drawing ListViewItem instancesin Details
524         view, don't use LineLimit for the first item - use NoWrap *always*
525         instead, since ListView.LabelWrap is not used for this view.
526         Fixes #378054.
527
528 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
529
530         * Binding.cs: Call UpdateIsBinding when setting control - probably
531         Binding is already usable and we don't need to wait to check the
532         IsBinding state. Also for 1.1 profile use IsHandleCreated instead of
533         Created, just like 2.0 does.
534         * CurrencyManager.cs: I'm so lame - the previous check was wrong.
535
536 2008-04-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
537
538         * Binding.cs: Just realized we don't need to have a handler for
539         BindingContextChanged, since this info should be now consumed directly
540         in the BindingManagerBase. And also, the manager.IsBindingSuspended
541         state info is checked directly, instead of caching it.
542
543         * CurrencyManager.cs: IsSuspended should return always false if Count
544         == 0.
545
546 2008-04-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
547
548         * Binding.cs: When calling PushData, return if manager.Count == 0,
549         since we just don't have data to be read. Also, when setting the
550         Control for binding, hook up some events to refresh the IsBinding
551         state when BindingContext change or control gets created; use
552         Control.IsHandleCreated instead of Control.Created check to set
553         IsBinding state - we *actually* need to modify IsBinding when control
554         is created, but we don't have any Created event, only HandleCreated.
555         Fixes part of #349364.
556
557 2008-04-11  Geoff Norton  <gnorton@novell.com>
558
559         * XplatUICarbon.cs: Expose Caret to the Carbon layer.  Guard against
560         warping a null Caret.
561
562 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
563
564         * DataGridView.cs: Implement row/column autosizing methods. Implement
565         autosorting.
566         * DataGridViewColumnHeaderCell.cs: Add painting of the sort glyph.
567         * DataGridViewRowCollection.cs: Add an internal sorting method.
568
569 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
570
571         * ThemeWin32Classic.cs: Apply patch from Ernesto to cache an expensive
572         value in ListView drawing code.
573
574 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
575
576         * FileDialog.cs: Only call FileOk when Ok is clicked, not when Cancel
577         is clicked.  Respect the user setting Cancel in FileOk.
578
579 2008-04-11  Geoff Norton  <gnorton@novell.com>
580
581         * ListView.cs: Avoid setting and resetting control Width/Heights and
582         calculate the final value and set it once.  Prevents a feedback loop
583         on the mac.
584
585 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
586
587         * TreeView.cs: Clamp setting the scrollbar value using SafeValueSet.
588         [Fixes bug #378869]
589
590 2008-04-10  Atsushi Enomoto  <atsushi@ximian.com>
591
592         * X11Keyboard.cs, X11Structs.cs : make over-the-spot mode default.
593           Add some on-the-spot code, but it seems we don't need it.
594
595 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
596
597         * Form.cs: Add method for DataGridView to trigger focus cues
598         even when it handles the tab keypress.
599
600 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
601
602         * DataGridView.cs: More keyboard handling, tab, esc.
603         * DataGridViewTextBoxEditingControl.cs: Don't request arrow keys
604         when at the beginning or end of the text in the text box.
605
606 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
607
608         * DataGridViewCell.cs: Guard against an NRE causing a test to fail.
609
610 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
611
612         * DataGridView.cs: Some fixups for showing and adding the edit control.
613         * DataGridViewButtonColumn.cs: Implement ToString.
614         * DataGridViewCell.cs: Size and position the control simultaneously.
615         * DataGridViewTextBoxCell.cs: Use base to position control.
616
617 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
618
619         * DataGridViewCell.cs: Fix up some formatting and painting code.
620         * DataGridViewImageCell.cs: Implement some NIEX methods.
621
622 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
623
624         * ToolStripItemCollection.cs: What moving an item from one owner
625         to another, remove from source owner before adding to destination.
626         [Fixes bug #378109]
627
628 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
629
630         * PictureBox.cs: Call Load when ImageLocation is set.
631         [Fixes bug #378308]
632
633 2008-04-09  Atsushi Enomoto  <atsushi@ximian.com>
634
635         * X11Keyboard.cs, XplatUIX11.cs :
636           Implement over-the-spot mode (with some odd offsets).
637           - set preedit position when caret is set.
638           - Wrap XMoveResizeWindow() to move preedit position.
639
640 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
641
642         * X11keyboard.cs: Fix last patch, maxval must be less not greater than
643         array lenght.
644
645 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
646
647         * KeyboardLayouts.cs: Uses GENERATING_RESOURCES to make VKeyTableIndex
648         and ScanTableIndex public, it fix compilations errors when compiling
649         WinForms to generate keyboard layout resources.
650
651 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
652
653         * X11keyboard.cs: Prevent keyboard errors when vitual table theres 
654         different element count than scan table. It prevents some errors in non
655         standard keyboards.
656
657 2008-04-08  Jonathan Pobst  <monkey@jpobst.com>
658
659         * DataGridViewHeaderCell.cs: Implement some NIEX methods.
660
661 2008-04-08  Jonathan Pobst  <monkey@jpobst.com>
662
663         * DataGridView.cs: Call OnContentClick.
664         * DataGridViewCell.cs: Do a null check on ValueType instead
665         of valueType.
666         * DataGridViewCheckBoxCell.cs: Implement.
667
668 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
669
670         * X11Keyboard.cs : Do not cast IntPtr to int. Use long.
671
672 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
673
674         * X11Keyboard.cs : Check XGetIMValues() return value in
675           case it does not return input styles in some environment.
676
677 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
678
679         * X11Keyboard.cs : sizeof(IntPtr) != 4 on amd64.
680
681 2008-04-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
682
683         * BindingContext.cs: Stub UpdateBinding method.
684
685 2008-04-07  Atsushi Enomoto  <atsushi@ximian.com>
686
687         * X11Structs.cs : added couple of structs for XIM support.
688         * X11Keyboard.cs :
689           Release XIM in case it failed to create XIC. 
690           Use consts for XNblah string.
691           Add support for IM style customization and XIC creation
692           for preedit-position and preedit-callback.
693           Right now use MONO_WINFORMS_XIM_STYLE environment variable
694           (list of: over-the-spot | on-the-spot | root). Only root
695           mode works so far.
696
697           (redoing r99172 with fix.)
698
699 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
700
701         * TreeView.cs: Center the checkbox a little better.
702
703 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
704
705         * ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs, ThemeWin32Classic.cs:
706         Apply very nice patch from Ernesto Carrea that simplifies our
707         scrollbar drawing.  [From bug #376146]
708
709 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
710
711         * TreeView.cs: Correct the location of the root node checkbox when
712         ShowRootLines = false.  Don't draw the root lines for the root node
713         when ShowRootLines = false.  [Fixes bug #377535]
714
715 2008-04-06  Gert Driesen  <drieseng@users.sourceforge.net>
716
717         * WebBrowserBase.cs: Added missing attributes and fixed attributes.
718         Fixed line endings.
719         * WebBrowser.cs: Added missing attributes and fixed attributes. Fixed
720         line endings.
721         * MaskedTextBox.cs: Added missing attribute. Code formatting.
722         * PageSetupDialog.cs: Added missing attribute. Code formatting.
723         * HtmlWindowCollection.cs: Code formatting. Fixed line endings.
724         * ImeMode.cs: Added missing field.
725         * HtmlWindow.cs: Code formatting. Fixed line endings.
726         * HtmlElement.cs: Code formatting. Fixed line endings. Fixed compiler
727         warnings.
728         * HtmlHistory.cs: Code formatting. Fixed line endings.
729         * HtmlDocument.cs: Code formatting. Fixed line endings.
730         * ToolStripPanel.cs: Added missing IList implementation.
731         * HtmlElementCollection.cs: Code formatting. Fixed line endings.
732
733 2008-04-06  Gert Driesen  <drieseng@users.sourceforge.net>
734
735         * BindingContext.cs: Changed argument names to fix corcompare errors.
736         * DataGridView.cs: Removed extra explicit interface implementation
737         of IDropTarget. Code formatting.
738         * FlowLayoutPanel.cs: Changed argument names to fix corcompare errors.
739         * ComboBox.cs: Changed argument names to fix corcompare errors.
740         * DataGridTextBoxColumn.cs: Changed argument names to fix corcompare
741         errors.
742         * GridColumnStylesCollection.cs: Changed argument names to fix
743         corcompare errors. Removed extra tabs.
744         * GridTableStylesCollection.cs: Changed argument names to fix corcompare
745         errors.
746         * Control.cs: Changed argument names to fix corcompare errors. Code
747         formatting. Removed extra explicit IList implementation.
748         * TextBox.cs: Changed argument names to fix corcompare errors. Code
749         formatting. Use string.Empty instead of "".
750         * GridItemCollection.cs: Changed argument names to fix corcompare
751         errors. Code formatting.
752         * DataGridViewTopLeftHeaderCell.cs: Changed argument names to fix
753         corcompare errors. Code formatting.
754         * ImageList.cs: Changed argument names to fix corcompare errors.
755         * ToolStripItem.cs: Changed argument names to fix corcompare errors.
756         * DataGridViewRowCollection.cs: Changed argument names to fix
757         corcompare errors. Code formatting.
758         * TableLayoutPanel.cs: Changed argument names to fix corcompare errors.
759         * DataGridViewSelectedCellCollection.cs: Changed argument names to
760         fix corcompare errors. Code formatting.
761         * DataGridViewComboBoxCell.cs: Changed argument names to fix
762         corcompare errors. Code formatting.
763         * LinkLabel.cs: Changed argument names to fix corcompare errors.
764         * TreeNode.cs: Changed argument names to fix corcompare errors. Code
765         formatting.
766         * PropertyGrid.cs: Changed argument names to fix corcompare errors.
767         Code formatting.
768         * BindingSource.cs: Changed argument names to fix corcompare errors.
769         Removed extra explicit interface implementations.
770         * DataGridViewSelectedRowCollection.cs: Changed argument names to
771         fix corcompare errors. Code formatting.
772         * ToolStripItemCollection.cs: Removed extra explicit interface
773         implementation of IList.ReadOnly.
774         * DataGridViewColumnCollection.cs: Changed argument names to fix
775         corcompare errors. Code formatting.
776         * DataGridViewRow.cs: Rename converter to match MS. Code formatting.
777         * ListView.cs:  Changed argument names to fix corcompare errors.
778         * DataGridViewHeaderCell.cs: Changed argument names to fix corcompare
779         errors.
780         * DataGridBoolColumn.cs: Changed argument names to fix corcompare
781         errors.
782         * ListBindingHelper.cs: Changed argument names to fix corcompare
783         errors.
784         * DataGridViewSelectedColumnCollection.cs: Changed argument names to
785         fix corcompare errors. Code formatting.
786         * ToolStripPanel.cs: Removed extra explicit implementation of
787         IDropTarget interface.
788         * ListBox.cs: Changed argument names to fix corcompare errors. Code
789         formatting. Removed extra tabs and spaces.
790         * DataGridViewCellCollection.cs: Changed argument names to fix
791         corcompare errors.
792         * Help.cs: Changed argument names to fix corcompare errors. Code
793         formatting.
794         * TabControl.cs: Changed argument names to fix corcompare errors.
795         * DataGridColumnStyle.cs: Changed argument names to fix corcompare
796         errors.
797         * TableLayoutSettings.cs: Changed argument names to fix corcompare
798         errors.
799
800 2008-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
801
802         * ListBindingHelper.cs: When returning properties, only return those
803         that are browsable. Also, don't do a linear search of the properties,
804         but use the indexer of the PropertyDescriptorCollection class.
805
806 2008-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
807
808         * BindingSource.cs: Implement GetRelatedCurrencyManager by adding a
809         Dictionary containing the related (child) currency managers. Also,
810         when setting DataSource, add datasource to our List if it is not a list.
811
812 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
813
814         * PropertyGridTextBox.cs: Fix background color of the buttons.
815         * PropertyGridView.cs: Make the entry less jumpy.
816
817 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
818
819         * PropertyGrid.cs: Fix unused variable warnings.
820
821 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
822
823         * PropertyGridView.cs: Fix expansion via [+] misbehavior on 
824         double-click. It expanded it once in the mouse down and then 
825         again in the double-click handler.
826
827 2008-04-04  Ivan N. Zlatev  <contact@i-nz.net>
828         
829         * GridEntry.cs: ICustomTypeDescriptor support for PropertyOwner, 
830         TypeConverter and UITypeEditors.
831
832 2008-04-04  Ivan N. Zlatev  <contact@i-nz.net>
833
834         * Control.cs: Visibility should be set synchronously, 
835         so we must also redraw once it is and not rely on layouting or 
836         other code to repaint.
837         [Fixes bug #339898]
838
839 2008-04-04  Jonathan Pobst  <monkey@jpobst.com>
840
841         * DataGridViewCell.cs: Respect DataGridView.GridColor.
842
843 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
844
845         * Control.cs: Invalidate when the alpha channel is less than 255,
846         not only when control is transparent.
847
848 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
849
850         * DataGridViewRowPrePaintEventArgs.cs, DataGridViewRowPostPaintEventArgs.cs:
851         Implement some painting convenience methods that threw NIEX.
852
853 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
854
855         * DataGridView.cs: Call CellMouse[Enter|Move|Leave] properly.
856         * DataGridViewLinkCell.cs: Implement.
857
858 2008-04-03  Ivan N. Zlatev  <contact@i-nz.net>
859
860         * GridEntry.cs: Report the conversion exception error description.
861         [Fixes bug #375792]
862
863 2008-04-03  Ivan N. Zlatev  <contact@i-nz.net>
864
865         * PropertyGridView.cs: Do not scroll to item on resize.
866         [Fixes bug #375789]
867
868 2008-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
869
870         * BindingContext.cs: When retrieving a BindingManagerBase, if the
871         dataSource parameter is ICurrencyManagerProvider, then return
872         ICurrencyManagerProvider.CurrencyManager/GetRelatedCurrencyManager
873         instead of creating a new one.
874
875 2008-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
876
877         * BindingSource.cs: Implement support for Type instances as
878         DataSource.
879
880 2008-04-02  Jonathan Pobst  <monkey@jpobst.com>
881
882         * DataGridView.cs: Minor cleanups and call CellMouseUp.
883         * DataGridViewCell.cs: Make some painting routines internally virtual.
884         * DataGridViewButtonCell.cs: Implement.
885
886 2008-04-02  Jonathan Pobst  <monkey@jpobst.com>
887
888         * Control.cs: We always need to invalidate our children with
889         transparent backgrounds when we are invalidated.
890         [Fixes bug #376081]
891
892 2008-04-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
893
894         * BindingSource.cs: EndEdit and CancelEdit should call EndCurrentEdit
895         and CancelCurrentEdit on CurrencyManager respectively. Implement
896         support for ICancelAddNew too.
897
898 2008-04-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
899
900         * CurrencyManager.cs: When calling EndCurrentEdit/CancelCurrentEdit,
901         call EndNew/CancelNew if list is ICancelAddNew.
902
903 2008-04-01  Jonathan Pobst  <monkey@jpobst.com>
904
905         * DataGridView.cs: Guard against an exception while painting
906         if there are no rows.
907
908 2008-04-01  Jonathan Pobst  <monkey@jpobst.com>
909
910         * DataGridView.cs: Implement a bunch of keyboard commands.
911
912 2008-03-31  Jonathan Pobst  <monkey@jpobst.com>
913
914         * ToolBar.cs: Don't do our painting if UserPaint is set.  If UserPaint
915         isn't set, don't call OnPaint.  [Fixes bug #375300]
916
917 2008-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
918
919         * BindingSource.cs: IsBindingSuspended, ResumeBinding and
920         SuspendBinding depend on CurrencyManager. Implement RemoveCurrent,
921         hookup the remaining events related to CurrencyManager, and fire
922         OnListChanged also for the Clear () method.
923
924 2008-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
925
926         * BindingSource.cs: Use Current and Position implementations in
927         CurrencyManager instead of using our own routines, since we need 
928         to be in synch with it. Count should NEVER return a -1 value, and 
929         also report ListChanged events for both simple IList data 
930         sources (manually) as well for IBindingList ones (by hooking up an
931         event handler for it).
932
933 2008-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
934
935         * BindingSource.cs: Make one .ctor call the another, to avoid
936         duplicate code. Add the CurrencyManager property, and also for AddNew
937         throw the proper exceptions and show better error messages.
938
939 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
940
941         * ComboBox.cs: Only adjust selectedindex if Handle has been
942         created.  Fixes failing test.
943
944 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
945
946         * ComboBox.cs: Adjust selectedindex if we insert a new item
947         above the current selectedindex in a sorted ComboBox.
948         [Fixes bug #374654]
949
950 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
951
952         * ComboBox.cs: Support PageUp/PageDown when dropdown is closed.
953         [Fixes bug #374712]
954
955 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
956
957         * DataGridViewTextBoxCell.cs: Implement stuffs.
958
959 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
960
961         * TreeView.cs: Create the scrollbars even earlier to be
962         double dog certain they are created before they are accessed.
963
964 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
965
966         * XplatUIX11.cs: Remove a no-op line that csc was choking on.
967
968 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
969
970         * ScrollBar.cs: Create an internal safe Value setter so we
971         won't crash if we try to set a value outside the min and max.
972         * TextBoxBase.cs: Use safe value setter to guard against a
973         potential NRE that is being reported by Reflector.
974
975 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
976
977         * TreeView.cs: Create the scrollbars earlier in the constructor
978         to attempt to guard against an NRE in SetTop in Reflector.
979
980 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
981
982         * DataGridView.cs, DataGridViewCell.cs, DataGridViewCell.cs,
983         DataGridViewRowCollection.cs: Do not scroll column and row headers,
984         show messagebox on data format error, use column display index
985         correctly, make sure HitTest supports new layout stuff,
986         make sure scrollbars support new layout stuff.
987
988 2008-03-27  Atsushi Enomoto  <atsushi@ximian.com>
989
990         * XplatUIX11.cs : Patch by Doug Rintoul.
991           For some IM engines, keypress events need to delay call
992           to XPending() and XNextEvent() in the loop so that it
993           does not mess the orders in XIM commit callback.
994           Some KeyRelease events such as shift keys need to be
995           processed both in the IM engine and winforms driver
996           itself since winforms holds its own state check.
997
998           For details, see: http://lists.ximian.com/pipermail/mono-winforms-list/2008-March/003279.html
999
1000 2008-03-27  Atsushi Enomoto  <atsushi@ximian.com>
1001
1002         * X11Keyboard.cs, XplatUIX11.cs :
1003           add primitive support for XIM input support (preedit-
1004           nothing and status-nothing). It requires precise event
1005           capturing (XSelectInput/"filterEvents") and different
1006           call to XFilterEvent against root window.
1007           Get composed string and send dummy WM_IME_COMPOSITION.
1008           Free XIM and XIC instances in finalizer.
1009
1010           (This first patch does not include suggested changes
1011            by Doug Rintoul. It will follow.)
1012
1013 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
1014
1015         * DataGridView.cs: When binding to a property, if the property
1016         doesn't have a setter, set the column to readonly.
1017         [Fixes bug #343965]
1018
1019 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
1020
1021         * ComboBox.cs: Guard against NRE if an arrow key is hit while
1022         we aren't dropped down.  Support Home/End in DropDownList mode.
1023         [Fixes bug #371990]
1024
1025 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
1026
1027         * TreeNodeCollection.cs: Don't increment count until we've
1028         saved our index to return.
1029         [Fixes bug #373603]
1030
1031 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
1032
1033         * Label.cs: Add padding to the label's AutoSize calculation.
1034         [Fixes bug #373792]
1035
1036 2008-03-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1037
1038         * ListBindingHelper.cs: Actually implement GetListName method.
1039
1040 2008-03-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1041
1042         * BindingSource.cs: Throw the propert expceptions for some methods, as
1043         well as detect the list item type for Add method if DataSource is null.
1044
1045 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
1046
1047         * DataGridViewCell.cs: I don't know why I commented this out,
1048         putting it back for now.
1049
1050 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
1051
1052         * DataGridViewCell.cs: Remove storage for owning column, just
1053         use column index.
1054         * DataGridViewColumn.cs: Make getter for HeaderTextSet.
1055         * DataGridViewColumnHeaderCell.cs: If the header text has been
1056         explicitly set, return it.
1057         [Fixes bug #325979]
1058
1059 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
1060
1061         * DataGridViewRowCollection.cs: Disable row sharing when
1062         using data binding.  Its a great feature, but lets work on
1063         getting DGV usable first before we worry about optimizations.
1064
1065 2008-03-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1066
1067         * BindingSource.cs: When resetting our internal list, compute list
1068         item type information to be used for indirect list access. Also
1069         implement/tune some properties and methods related to the list access
1070         too.
1071         * ListBindingHelper.cs: Add a stub for GetListName method, used from
1072         BindingSource.
1073
1074 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
1075
1076         * DataGridView.cs: If RowCount is increased while ColumnCount
1077         is zero, add a column.  [Fixes bug #331649]
1078
1079 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
1080
1081         * DataGridViewRowCollection.cs: When adding new rows for
1082         databinding, make sure they are place before the add row.
1083         [Fixes bug #343961]
1084
1085 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
1086
1087         * DataGridViewRow.cs: Draw cells in column DisplayIndex order
1088         instead of Index order.
1089
1090 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
1091
1092         * DataGridView.cs: If columns are added by increasing ColumnCount,
1093         they need to be DataGridViewTextBoxColumns, not DataGridViewColumn.
1094         [Fixes bug #325588]
1095
1096 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
1097
1098         * DataGridView.cs: Turn off and on the "new row" when 
1099         AllowUserToAddRows is toggled.  When the handle is created,
1100         set current cell and selected cell/row/col.
1101
1102 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
1103
1104         * ComboBox.cs: When navigating the drop down by keyboard, we
1105         need to scroll the list box if our selection moves out of the
1106         currently shown items.  [Fixes bug #371990]
1107
1108 2008-03-24  Luke Page <luke.a.page@gmail.com>
1109
1110         * RichTextBox.cs: Handles visible rtf tag and no longer shows the text
1111         on the control. Also now handles unicode compatibility characters and
1112         stores the unicode compatibility length on the stack. Fixes Bugs
1113         #355198 and #366436.
1114
1115 2008-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1116
1117         * BindingSource..cs: Take into account DataMember when re-creating the
1118         List property, and also create a specific kind of list as needed.
1119
1120 2008-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1121
1122         * ListBindingHelper.cs: Add a new case for GetList () method - when we
1123         get an empty IEnumerable, try to detect whether the datamember is
1124         valid or not for that type, if true, return null, and throw exception
1125         otherwise.
1126
1127 2008-03-22  Jonathan Pobst  <monkey@jpobst.com>
1128
1129         * ComboBox.cs: Alt-Down should drop down the list, Esc should
1130         retract it.  [Fixes bug #371989]
1131
1132 2008-03-22  Ivan N. Zlatev  <contact@i-nz.net>
1133
1134         * PropertyGrid.cs: Initialize the sorting button as pushed.
1135
1136 2008-03-22  Ivan N. Zlatev  <contact@i-nz.net>
1137
1138         * PropertyGrid.cs: 
1139          - Visually select the PropertyTab.
1140          - Filter Properties by Attributes properly.
1141
1142 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
1143
1144         * MenuItem.cs: Remove menu item from parent when disposed.
1145         [Fixes bug #372845]
1146
1147 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
1148
1149         * ToolBar.cs: Don't reset layout_type if Dock = None.
1150
1151 2008-03-21  Andreia Gaita <avidigal@novell.com> 
1152
1153         * UserControl.cs: Select the first available control when we get focus.
1154           Fixes #372616
1155
1156 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
1157
1158         * DataGridViewCell.cs, DataGridViewTextBoxCell.cs: Don't paint
1159         the content if we are in edit mode.  [Fixes bug #343964]
1160
1161 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
1162
1163         * DataGridViewCell.cs: Fix border painting for column headers.
1164
1165 2008-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1166
1167         * BindingSource.cs: When setting or resetting data source,
1168         use ListBindingHelper.GetList () method, since it will get the list in
1169         case datasource is IListSource.
1170
1171 2008-03-20  Jonathan Pobst  <monkey@jpobst.com>
1172
1173         * DataGridViewCell.cs: Implement lots more stuffs.
1174
1175 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
1176
1177         * PropertyGridView.cs, GridEntry.cs: Implement support for 
1178         UITypeEditor.IsDropDownResizable.
1179
1180 2008-03-20  Jonathan Pobst  <monkey@jpobst.com>
1181
1182         * DataGridViewCell.cs: Remove unused variables, improve how
1183         several of the property getters work.
1184         * DataGridViewRow.cs: Don't call setSize on a cell, cell should
1185         get its size from the parent row/col.
1186
1187 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
1188
1189         * PropertyGrid.cs: Ensure PropertiesTab is visible even if the 
1190         user alters manually the PropertyTabs collection via the 
1191         PropertyTabs property.
1192
1193 2008-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1194
1195         * ListBindingHelper.cs: Implement -previously- ignored cases. We have
1196         new tests for them to be sure to be compatible with .net.
1197
1198 2008-03-20  Andreia Gaita <avidigal@novell.com> 
1199
1200         * WebBrowserBase.cs: Fix attributes, add events
1201         * WebBrowser.cs: Fix Padding signature
1202
1203 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
1204
1205         * PropertyGrid.cs, PropertyGridView.cs: Implement PropertyTab support.
1206
1207 2008-03-19  Jonathan Pobst  <monkey@jpobst.com>
1208
1209         * DataGridView.cs, DataGridViewCell.cs, DataGridViewCellStyle.cs,
1210         DataGridViewLinkCell.cs, DataGridViewRow.cs, DataGridViewRowHeaderCell.cs,
1211         DataGridViewTextBoxCell.cs: Changes so that DataGridViewCell
1212         passes the new suite of tests for it.
1213
1214 2008-03-18  Andreia Gaita <avidigal@novell.com> 
1215
1216         * WebBrowser.cs: Add missing attributes, missing Padding and
1217           DefaultSize properties, remove extraneous getters
1218
1219 2008-03-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1220
1221         * ListBindingHelper.cs: Implement a pair of GetListItemProperties
1222         method overloads.
1223
1224 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
1225
1226         * ComboBox.cs: Move resetting the selected index to keypress
1227         instead of textchanged.  Changing the text programmatically
1228         should not trigger resetting the selected index.  Fixes test.
1229
1230 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
1231
1232         * ComboBox.cs: When the user types into the textbox, reset
1233         the selected index to -1.  [Fixes bug #371672]
1234
1235 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
1236
1237         * FileDialog.cs: Support Control-A for selecting everything
1238         in an OpenFileDialog.  [Fixes bug #371564]
1239
1240 2008-03-15  Jonathan Pobst  <monkey@jpobst.com>
1241
1242         * DataGridView.cs: When row/column visible/height properties
1243         change, invalidate.  Take the NIEX out of InvalidateRow/Column
1244         etc.  We don't support them yet, but we can just invalidate
1245         everything until we do support them.  (Added MonoTODO).  Set
1246         proper control styles.
1247         * DataGridViewRow.cs: Don't call PaintHeader if row headers
1248         are turned off. 
1249
1250 2008-03-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1251
1252         * ListBindingHelper.cs: Implement 2.0 GetListItemType methods.
1253
1254 2008-03-14  Jonathan Pobst  <monkey@jpobst.com>
1255
1256         * DataGridViewRow.cs: Only paint the white background in
1257         cell bounds, the row bounds extends past the cells if the 
1258         grid width isn't as wide as the DGV.
1259
1260 2008-03-14  Jonathan Pobst  <monkey@jpobst.com>
1261
1262         * DataGridView*: Completely revamp the drawing to match the
1263         public API.  Our grids now look better, and call all the
1264         appropriate methods and event to allow users to override
1265         the painting and do their own.
1266
1267 2008-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1268
1269         * ListBindingHelper.cs: Implement 2.0 GetList methods.
1270
1271 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
1272
1273         * DataGridView.cs: Implement BorderStyle.
1274
1275 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
1276
1277         * FileDialog.cs: Apply patch from Andy Hume: Any time we
1278         are comparing attributes, make sure we only look at the
1279         one we are interested.  These calls were failing if there
1280         were more than one attribute.
1281         [Fixes bug #370385]
1282
1283 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
1284
1285         * DataGridColumnStyle.cs: Hide ctor from 1.1 profile.
1286
1287 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
1288
1289         * PageSetupDialog.cs: Stub EnableMetric.
1290         * PrintControllerWithStatusDialog.cs: Implement IsPreview.
1291         * PrintPreviewDialog.cs: Add ProcessDialogKey,
1292         ProcessTabKey.
1293
1294 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
1295
1296         * MonthCalendar.cs: Remove unused variable.
1297
1298 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
1299
1300         * DataGridView*.cs: corcompare stuffs.
1301
1302 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
1303
1304         * MonthCalendar.cs: Remove an incorrect invalidate optimization.
1305         The savings aren't worth the extra code to fix the optimization.
1306         [Fixes bug #368585]
1307
1308 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
1309
1310         * ToolBar.cs: Always call base.Dock in the Dock override so that
1311         Control's layout_type gets reset correctly.
1312         [Fixes bug #368882]
1313
1314 2008-03-11  Ivan N. Zlatev  <contact@i-nz.net>
1315
1316         * X11Dnd.cs: End DnD operation also for the middle mouse button.
1317
1318 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
1319
1320         * ContainerControl.cs: We can't do MenuStrip implicit mnemonics
1321         at the same time we do explicit ones, because we have to give all
1322         other controls on the container a chance to handle explicit ones
1323         first.  If no one has an explicit mnemonic, then we can let the
1324         MenuStrip have a shot at implicit mnemonics.
1325         * MenuStrip.cs: Create an implicit mnemonic function.
1326         * ToolStrip.cs: When processing explicit mnemonics, don't do implicit
1327         mnemonics for MenuStrips.
1328         [Fixes bug #368493]
1329
1330 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
1331
1332         * AxHost.cs, Binding.cs, DataGridView.cs, DataGridViewCell.cs,
1333         DataGridColumnStyle.cs: corcompare stuffs.
1334
1335 2008-03-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1336
1337         * FileDialog.cs: Don't add any ColumnHeader to Columns if view is not
1338         Details - This is needed after we added the bits to use any available
1339         column also for List and SmallIcon view. 
1340
1341 2008-03-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1342
1343         * ListBox.cs: Fire SelectedIndexChanged and SelectedValueChanged events
1344         at the proper place, not only when changing SelectedIndex and changing
1345         the selection using keys/mouse, as .net does.
1346
1347 2008-03-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1348
1349         * ControlBindingsCollection.cs: Implement last 2.0
1350         DefaultDataSourceUpdateMode property. Also fix a wrong instruction
1351         in the new 2.0 Add methods.
1352
1353 2008-03-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1354
1355         * ListBox.cs: When calling SelectedIndexCollection.Clear,
1356         return if no items are previously selected - this is done to avoid 
1357         firing OnSelectedIndexChanged without need to do so. Also,
1358         when creating handle ensure that the focused item is visible (as
1359         .net does).
1360
1361 2008-03-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1362
1363         * ListBox.cs: Rewrote/refactored most of selection code. We require
1364         the following things in selection: a) keep selection sorted (both
1365         indices and items), b) SelectedIndices automatically detect the
1366         selection mode, c) SelectedIndex should be the first selected item
1367         index, d) Need to Focus/adjust scroll bar when selecting a new item,
1368         not only for SelectedIndex, which is specially important in Multi*
1369         selection modes. To achieve this we are moving the selection core to
1370         SelectedIndexCollection and make depend all selection modifications on
1371         it.
1372         Fixes #366438.
1373
1374 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
1375
1376         * ToolStrip.cs: Enable implicit mnemonics for drop down
1377         menu strips.  [Fixes part of bug #367692]
1378
1379 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
1380
1381         corcompare - fix parameter names [stragglers].
1382         Binding.cs, BindingsCollection.cs, GridColumnStylesCollection.cs,
1383         HelpEventHandler.cs, Label.cs, ListView.cs, Message.cs,
1384         TabControl.cs.
1385
1386 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
1387
1388         Control.cs: Don't call ProcessMenuKey on WM_SYSKEYUP if there
1389         was a mnemonic pressed as well as Alt.  Also, if nothing handles a
1390         mnemonic, let the ToolStripManager have it even if it doesn't
1391         have a matching mnemonic.
1392         [Fixes bug #367499]
1393
1394 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
1395
1396         corcompare - fix warning about implicit implementation
1397         * ToolStrip.cs: Add IToolStripData interface.
1398         * IToolStripData.cs: Add.
1399
1400 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
1401
1402         corcompare - fix warning about implicit implementation
1403         * Control.cs, ToolStripPanelRow.cs: Add IBounds interface.
1404         * IBounds.cs: Add.
1405
1406 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
1407
1408         corcompare - fix parameter names [N-Z].
1409         LinkArea.cs, NativeWindow.cs, NotifyIcon.cs, PageSetupDialog.cs,
1410         Panel.cs, PrintDialog.cs, PrintPreviewControl.cs, PropertyGrid.cs,
1411         PropertyManager.cs, RichTextBox.cs,
1412         ScrollBar.cs, SelectionRange.cs, SplitContainer.cs, StatusBar.cs,
1413         StatusBarDrawItemEventArgs.cs, StatusBarPanelClickEventArgs.cs,
1414         StatusStrip.cs, TabControl.cs, TableLayoutColumnStyleCollection.cs,
1415         TableLayoutRowStyleCollection.cs, TableLayoutStyleCollection.cs,
1416         TextBoxBase.cs, ThreadExceptionDialog.cs, ToolStrip.cs,
1417         ToolStripContentPanel.cs, ToolStripDropDown.cs,
1418         ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
1419         ToolStripPanel.cs, ToolStripSeparator.cs,
1420         TreeNode.cs, TreeView.cs, TreeViewHitTestInfo.cs,
1421         UICuesEventHandler.cs, UpDownBase.cs.
1422
1423 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
1424
1425         corcompare - fix parameter names [G-M].
1426         GridColumnStylesCollection.cs, GridItemCollection.cs,
1427         GridTableStylesCollection.cs, GroupBox.cs, Help.cs,
1428         HelpProvider.cs, ImageListStreamer.cs, InputLanguageCollection.cs,
1429         Label.cs, LayoutEngine.cs, LinkClickedEventArgs.cs,
1430         LinkLabel.cs, ListBox.cs, ListView.cs, ListViewGroupCollection.cs,
1431         ListViewItem.cs, Menu.cs, MenuItem.cs, MenuStrip.cs, MouseEventArgs.cs.
1432
1433 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
1434
1435         corcompare - fix parameter names [A-F].
1436         Control.cs, DataGridBoolColumn.cs, DataGridColumnStyle.cs,
1437         DataGridTextBoxColumn.cs, DataGridViewButtonCell.cs,
1438         DataGridViewCellCollection.cs, DataGridViewCellParsingEventArgs.cs,
1439         DataGridViewCheckBoxCell.cs, DataGridViewColumnDesignTimeVisibleAttribute.cs,
1440         DataGridViewComboBoxCell.cs, DataGridViewHeaderCell.cs,
1441         DataGridViewImageCell.cs, DataObject.cs, DomainUpDown.cs,
1442         DrawItemEventArgs.cs, FolderBrowserDialog.cs, FontDialog.cs, Form.cs.
1443
1444 2008-03-03  Ivan N. Zlatev  <contact@i-nz.net>
1445
1446         * GridEntry.cs: Do not convert not only if the types match, 
1447         but also if the property type is assigneable from the value's
1448         type.
1449         [Fixes bug #366566]
1450
1451 2008-03-03  Ivan N. Zlatev  <contact@i-nz.net>
1452
1453         * PropertyGridView.cs: 
1454          - Subscribe to the listbox only once and not everytime.
1455          - Update the textbox even if SetValue fails.
1456          - Close the listbox before calling TrySetValue just in case.
1457          [Fixes bug #366569]
1458
1459 2008-03-03  Jonathan Pobst  <monkey@jpobst.com>
1460
1461         * Control.cs: Hide ICollection.CopyTo from the 1.1 profile.
1462
1463 2008-03-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1464
1465         * ListView.cs: Implement support for custom column width based on
1466         Columns collection (we were previously using this collection only
1467         with Details view).
1468         Fixes #364484.
1469
1470 2008-03-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1471
1472         * ListViewItem.cs: For Tile view, always set bounds for the first
1473         subitem (which is the main one), and also don't let Width be larger
1474         than ListView.TileSize.Width. Improve code readibility also.
1475         * ThemeWin32Classic.cs: When painting the ListViewItem instances
1476         in Tile view, _always_ use the NoWrap flag.
1477         Fixes #360798.
1478
1479 2008-02-29  Ivan N. Zlatev  <contact@i-nz.net>
1480
1481         * PropertyGrid.cs: Check for null PropertyDescriptor.Name just 
1482         in case.
1483         * GridEntry.cs: For MS compitability make all child properties 
1484         readonly if the parent is readonly. Ugh.
1485         [Fixes bug #365945 and #365944]
1486
1487 2008-02-29  Andreia Gaita <avidigal@novell.com> 
1488
1489         * HtmlHistory.cs: Fix sigs for Forward and Back to navigate by index
1490           relative to the history
1491
1492 2008-02-29  Andreia Gaita <avidigal@novell.com>
1493
1494         * HtmlElement.cs: More handlers for mouse and key events
1495
1496 2008-02-28  Andreia Gaita <avidigal@novell.com>
1497
1498         * WebBrowserBase.cs: MouseClick sig changed.
1499         * HtmlHistory.cs: Implement history navigation
1500         * HtmlElement.cs: Add event handlers, and connect them.
1501
1502 2008-02-28  Ivan N. Zlatev  <contact@i-nz.net>
1503
1504         * GridEntry.cs: 
1505          - Use PropertyDescriptor.DisplayName instead of .Name for Label,
1506            so that DisplayNameAttribute doesn't get ignored.
1507          - Check for ParenthesizeNameAttribute and parenthesize the Label.
1508          - Add support for PasswordPropertyTextAttribute
1509         * PropertyGridView.cs: Check if an entry is a password.
1510         [Fixes bugs #365589, #365586, #365588]
1511
1512 2008-02-28  Andreia Gaita <avidigal@novell.com>
1513
1514         * PropertyGridView.cs: Revert the message filtering change, as we
1515         need it to block after all. Remove block parameter, unnecessary.
1516
1517 2008-02-27  Jonathan Pobst  <monkey@jpobst.com>
1518
1519         * UserControl.cs: Better implementation of GetPreferredSize.
1520         First step to fixing bug #361441.
1521
1522 2008-02-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1523
1524         * Binding.cs: Actually implement data binding support for 
1525         classes implementing IBindableComponent.
1526         * ControlBindingsCollection.cs: Likewise.
1527
1528 2008-02-26  Andreia Gaita  <avidigal@novell.com>
1529
1530         * PropertyGridView.cs: Use a message filter to check when to 
1531         close the dropdown
1532
1533 2008-02-26  Andreia Gaita  <avidigal@novell.com>
1534
1535         * Application.cs: Change the message_filters loop so a filter 
1536         can be removed while looping.
1537
1538 2008-02-26  Ivan N. Zlatev  <contact@i-nz.net>
1539
1540         * GridEntry.cs: Optimization in ToggleValue so that it caches
1541         the current value.
1542         * PropertyGridView.cs: An optimization so that the property isn't 
1543         re-read twice for each StandardValue added to the drop-down menu.
1544         Patch by Andy Hume <andyhume32@yahoo.co.uk> under the MIT/X11
1545         license.
1546         [Fixes bug #362755]
1547
1548 2008-02-26  Jonathan Pobst  <monkey@jpobst.com>
1549
1550         * Application.cs: Apply patch from Justin Cherniak to match
1551         MS better for ProductName, ProductVersion, and CompanyName.
1552         [Fixes bug #361709]
1553
1554 2008-02-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1555
1556         * Binding.cs: Actually implement 2.0 NullValue property. Also
1557         when changing the formatting related properties, only update the state
1558         if formatting_enabled is true (we don't mind otherwise).
1559
1560 2008-02-25  Jonathan Pobst  <monkey@jpobst.com>
1561
1562         * ToolStrip.cs: Don't raise ItemClicked for disabled items.
1563         [Fixes bug #364486]
1564
1565 2008-02-25  Ivan N. Zlatev  <contact@i-nz.net>
1566
1567         * GridEntry.cs: Use the PropertyDescriptor.PropertyType instead 
1568         of GetType on the current value as it uses reflection to 
1569         determine the type. This fixes the case where the new value is 
1570         null. 
1571
1572 2008-02-25  Ivan N. Zlatev  <contact@i-nz.net>
1573
1574         * PropertyGridView.cs: Limit mousewheel scrolling to not scroll
1575         past the view.
1576
1577 2008-02-24  Luke Page  <luke.a.page@gmail.com>
1578
1579         * Line.cs, TextControl.cs: Implement offset x and y so that a
1580         document doesn't have to begin  at (0,0) on the viewpoint.
1581         * TextBox.cs, TextBoxBase.cs: RightToLeft switches the scroll
1582         bars and switches the text alignment (and therefore is now
1583         implemented for textbox). Fixes #321383.
1584
1585 2008-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1586
1587         * Binding.cs: Actually implement 2.0 FormatString and FormatInfo
1588         properties. Also when changing FormattingEnabled update the control
1589         property -as .Net does-.
1590
1591 2008-02-22  Carlos Alberto Cortez <calberto.cortez@Å‹mail.com>
1592
1593         * ControlBindingsCollection.cs: Add the missing 2.0 Add overloads.
1594         * Binding.cs: Add stubs for the overloads of the Add method in
1595         CBCollection.
1596
1597 2008-02-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1598
1599         * Binding.cs: PullData () returns a false value if we got an exception.
1600         Also when validating the control and we get an error, instead of
1601         setting the value of the previous one, cancel the event (tested in 1.1
1602         and 2.0).
1603
1604 2008-02-22  Jonathan Pobst  <monkey@jpobst.com>
1605
1606         * TreeView.cs: Make selected_node and highlighted_node internal.
1607         * TreeNodeCollection.cs: Reset selected_node and highlighted_node
1608         to null when Nodes.Clear is called.
1609         [Fixes bug #363884]
1610
1611 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
1612
1613         * FontDialog.cs: Ensure that when the Font is set in code,
1614         all the gui pieces are updated accordingly.
1615         [Fixes bug #361020]
1616
1617 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
1618
1619         * TextRenderer.cs: Respect proposed size for MeasureString.
1620         * ThemeWin32Classics.cs: If our CheckBox/RadioButton isn't
1621         autosize, use a proposed width to force wrapping for long text.
1622         [Fixes bug #360981]
1623
1624 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
1625
1626         * TreeView.cs: Factor in checkboxes = false and state images in
1627         to HitTest.  [Fixes bug #363360]
1628
1629 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
1630
1631         * ThemeWin32Classic.cs: Only look at the Date part of a DateTime
1632         when drawing the selected range.
1633         [Fixes bug #363648]
1634
1635 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
1636
1637         * ToolStripContainer.cs: Add SupportsTransparentBackColor and
1638         ResizeRedraw control styles.
1639         [Fixes bug #363555]
1640
1641 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
1642
1643         * TreeView.cs: StateImages are basically custom checkboxes, so
1644         factor their size the same as real checkboxes when determining
1645         what got clicked.
1646         [Fixes bug #363367]
1647
1648 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
1649
1650         * MessageBox.cs: Make the message box wider if the form caption
1651         is longer than the text in the form.
1652         [Fixes bug #361137]
1653
1654 2008-02-20  Ivan N. Zlatev  <contact@i-nz.net>
1655
1656         * PropertyGridView.cs: Fix a NRE when closing the drop down form.
1657
1658 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
1659
1660         * TreeNode.cs: Guard against an NRE when the parent's
1661         StateImageList hasn't been set.
1662         [Fixes bug #363353]
1663
1664 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
1665
1666         * SplitContainer.cs: Add SupportsTransparentBackColor and
1667         OptimizedDoubleBuffering control styles.
1668         [Fixes bug #363303]
1669
1670 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
1671
1672         * Application.cs: For the app data paths and the registry key paths,
1673         ensure they are created before returning them to the user.
1674         [Fixes bug #361709]
1675
1676 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
1677
1678         * Application.cs: Guard against an NRE in CompanyName and
1679         ProductName.
1680
1681 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
1682
1683         * Application.cs: For CompanyName, ProductName, and ProductVersion,
1684         make sure we handle all three cases correctly: attribute is present,
1685         attribute is present but is an empty string, and attribute is not
1686         present.
1687
1688 2008-02-20  Ivan N. Zlatev  <contact@i-nz.net>
1689
1690         * PropertyGridView.cs: 
1691          - Fix a NRE that caused a test failure
1692          - Another performance improvement - cache the standard values
1693          listbox.
1694
1695 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
1696
1697         * ComboBox.cs: Fix previous change to affect both 1.1 and 2.0
1698         code paths.
1699
1700 2008-02-19  Ivan N. Zlatev  <contact@i-nz.net>
1701
1702         * PropertyGridView.cs: Fix a big performance bug.
1703
1704 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
1705
1706         * SelectionRange.cs: Apply patch from Andy Hume to make
1707         constructor behavior more accurate.  [Fixes bug #362117]
1708
1709 2008-02-19  Andreia Gaita <avidigal@novell.com> 
1710
1711         * Control.cs: Added a new flag is_disposing to track if the
1712         window is currently in the process of being disposed of.
1713         This is used so that, when firing visibility changes triggered
1714         by unparenting controls during Dispose, the control doesn't
1715         get created again.      
1716
1717 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
1718
1719         * ComboBox.cs: Set height to preferred height when the handle
1720         is created.  [Fixes bug #360862]
1721
1722 2008-02-18  Andreia Gaita <avidigal@novell.com>
1723
1724         * XplatUIX11.cs: Create FosterParent with border width at 0.
1725         With the previous value of 4, everytime a control got reparented
1726         from parent = null, it's location would be shifted right and 
1727         down by 4, since these coordinates would be offset by the 
1728         FosterParent's border width.
1729
1730 2008-02-18  Ivan N. Zlatev  <contact@i-nz.net>
1731
1732         * Control.cs: During diposing firstly remove ourselfes from
1733         the parent and *then* destroy our handle, because removing
1734         ourselfes from the parent controls collection causes 
1735         VisibilityChange, etc events, which require a handle and end
1736         up recreating the control.
1737
1738 2008-02-17  Ivan N. Zlatev  <contact@i-nz.net>
1739
1740         * GridEntry.cs: Set expanded state before notifying that the
1741         expansion has taken place.
1742         * PropertyGridView.cs:
1743          - Set the propertygridtextbox text to the selected 
1744          StandardValue before proceeding to setting it.
1745          - Scrolling bugfixes.
1746
1747 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
1748
1749         * GridEntry.cs:
1750          - Fix ValueText to not return null.
1751          - Fix conversion error reporting to actually happen.
1752         * PropertyGridView.cs: Set entry only if the text has changed.
1753         [Fixes bug #362116]
1754
1755 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
1756
1757         * GridEntry.cs: 
1758          - Fix handling of a null current value.
1759          - Swallow editor exceptions.
1760         [Fixes bug #362114]
1761
1762 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
1763
1764         * PropertyGrid.cs: Clear current items first thing before 
1765         repopulating subitems.
1766         * GridEntry.cs: 
1767          - Handle null StandardValuesCollection.
1768          - Mark as not editable if there is no PropertyDescriptor and
1769          if the Converter cannot convert from string.
1770         [Part of fix for bugs #360666 and #358332]
1771
1772 2008-02-15  Luke Page  <luke.a.page@gmail.com>
1773         * MaskedTextBox.cs: Now skips non editable characters after a
1774         character has been entered and we are progressing to the next
1775         position in the MaskedTextBox.
1776
1777 2008-02-15  Luke Page  <luke.a.page@gmail.com>
1778         * TextBoxBase.cs: Handles MouseDown when shift key is clicked so
1779         that it changes the selection rather than just repositioning the
1780         cursor. Fixes Bug #360873.
1781
1782 2008-02-15  Luke Page  <luke.a.page@gmail.com>
1783         * TextBoxBase.cs, TextControl.cs, RichTextBox.cs: TextChanged fires
1784         when Undo/Redo changes the text. Undo/Redo/Undo/Redo now works
1785         correctly. See #359330
1786
1787 2008-02-15  Andreia Gaita <avidigal@novell.com>
1788
1789         * XplatUIX11.cs: If the handle is null when posting a message, use the
1790         current thread queue to post instead. Fixes #332409
1791
1792         * SendKeys.cs: Slight optimization
1793
1794 2008-02-14  Ivan N. Zlatev  <contact@i-nz.net>
1795
1796         * PropertyGrid.cs, PropertyGridView.cs:
1797         Fix multiple scrolling and sizing issues.
1798         [Fixes bug #359199]
1799
1800 2008-02-12  Ivan N. Zlatev  <contact@i-nz.net>
1801
1802         * PropertyGridView.cs: Ensure that drop down editors are shown
1803         in the WorkingArea of the screen.
1804         [Fixes bug #359807]
1805
1806 2008-02-12  Ivan N. Zlatev  <contact@i-nz.net>
1807
1808         * GridEntry.cs: Fail silently when UITypeEditor is missing.
1809         [Fixes bug #360666]
1810
1811 2008-02-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1812
1813         * Binding.cs: Implement 2.0 DataSourceNullValue property.
1814
1815 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
1816
1817         * PropertyGridView.cs:
1818          - Clear the controls in the drop down form after it is hidden.
1819          - Fix Width sizing of the dropdown editors to match MSFT.
1820
1821 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
1822
1823         * PropertyGridView.cs: 
1824          - Fix height for drawing the grid entry
1825          text value, so that it clips multiline text properly.
1826          - Fix unfocusing to match MSFT.
1827
1828 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
1829
1830         * PropertyGrid.cs: Do not populate subgriditems unless expandable.
1831         Fixes a bug where on repopulation after value changed items become
1832         expandable.
1833
1834 2008-02-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1835
1836         * Binding.cs: For the 2.0 profile, look for a 
1837         'PropertyChanged' event in the target control, and add checks for
1838         DataSourceUpdateMode property to change -or not- the data source
1839         from validation/control property change.
1840
1841 2008-02-10  Atsushi Enomoto  <atsushi@ximian.com>
1842
1843         * Binding.cs : build fix (operator == is not overriden in 1.x. Do
1844           not compare struct with null in 2.0).
1845
1846 2008-02-10  Luke Page <luke.a.page@gmail.com>
1847
1848         * MaskedTextBox.cs: UseSystemPasswordChar updates PasswordChar, PasswordChar
1849         updates the provider and if not using a provider, uses the internal document
1850         class implementation of password char. Also when showing text, uses display string
1851         from the provider, instead of the actual text.
1852
1853 2008-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1854
1855         * Binding.cs: Ooooops, forgot to take into account the data_source
1856         and binding_member_info null case (it was breaking the Binding tests).
1857
1858 2008-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1859
1860         * Binding.cs: Implement support for data source changes exposed by
1861         'PropertyNameChanged' events, and update the control property as
1862         needed.
1863
1864 2008-02-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1865
1866         * Binding.cs: Implement 2.0 WriteValue method.
1867
1868 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
1869
1870         Commit patch from James Purcell for better AutoScale implementation:
1871
1872         * ScaleControl should call GetScaledBounds with the control's total size rather
1873         than client size.  GetScaledBounds should handle ignoring the borders in its
1874         calculations.  Cleaned up ScaleControl/GetScaledBounds overrides in controls
1875         (for the most part they just call the base code now since that is fixed).
1876         * Added ScaleChildrenInternal to allow controls to disable scaling of children
1877         without having to override ScaleChildren (since none of .NET's controls do). 
1878         This is required for most controls in Mono that have scrollbars to prevent the
1879         scrollbars from being moved/resized.
1880         * Nested ContainerControls can have a different scale mode than their parent. 
1881         This is briefly mentioned in MSDN but is buggy in MS.NET (the runtime and
1882         designer produce different results both of which look incorrect).
1883         * Default AutoScaleMode for ContainerControl should be Inherit.
1884         * Simplified workaround for ComboBox scaling issue.
1885         * 1.0 style auto-scaling now uses its own methods instead of sharing 2.0's. 
1886         1.0 style auto scaling should scale the whole control's size instead of
1887         ignoring the borders (except for Form) and the rounding is done differently to
1888         preserve control alignment.
1889         * ApplyAutoScaling (used for 1.0 style) should use the rounded result of
1890         GetAutoScaleSize.
1891         * Cleaned up fix for "Bug 355703 - Setting AutoScale = true doesn't stick".
1892         * CurrentAutoScaleDimensions should round the estimated character width instead
1893         of truncating.
1894         * ListBox's GetScaledBounds should always use the height it was set to instead
1895         of the height that was passed in.  This prevents rounding errors from
1896         accumulating quickly with IntegralHeight.
1897         [Bug #359098]
1898
1899 2008-02-08  Andreia Gaita <avidigal@novell.com>
1900
1901         * Form.cs: Add a null check (darn it). 
1902
1903 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
1904
1905         * MdiClient.cs: Make sure the requesting form actually owns the
1906         control menu items before removing them.  Also, use
1907         Suspend/ResumeLayout when adding or removing items so we only
1908         layout once.
1909         [Fixes bug #359887]
1910
1911 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
1912
1913         * Control.cs: Guard against an NRE in ShowFocusCues.
1914         [Fixes bug #359830]
1915
1916 2008-02-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1917
1918         * Binding.cs: Implement 2.0 ReadValue method and ControlUpdateMode
1919         property, as well as stubbing DataSourceUpdateMode.
1920
1921 2008-02-08  Andreia Gaita <avidigal@novell.com>
1922
1923         * Form.cs: When closing forms, get focus back to the active control of the
1924         active form. [Fixes #341314, corner case]
1925         
1926 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
1927
1928         * MdiClient.cs: After we move the scrollbars, invalidate the NC
1929         area, so any old scrollbar artifacts are cleaned up.
1930         [Fixes bug #336305]
1931
1932 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
1933
1934         * MdiWindowManager.cs: If we are maximized and using MainMenuStrip
1935         for our menus, display that control box menu instead of the 1.1
1936         menu one.
1937
1938 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
1939
1940         * MdiControlStrip.cs: Add property to access the mdi form tied to
1941         each toolstripitem.
1942         * MdiClient.cs: Be smarter about removing and adding toolstripitems
1943         to the implicitly merged menu.  Every time we clicked the form, items
1944         were getting removed and the re-added, causing the form to jump around
1945         as the menu resized.
1946
1947 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
1948
1949         * MdiClient.cs: Make sure the NormalBounds always gets set.  It
1950         was being reset by the implicit menu merge for menustrips.
1951         [Fixes bug #336296]
1952
1953 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
1954
1955         * Form.cs: Don't do the previous change when WindowState = Normal,
1956         or it messes up where the window is placed.  Fixes test failure.
1957
1958 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
1959
1960         * Form.cs: When becoming visible, if we are an MDI child, call
1961         SetWindowState with a dummy old_state so that changes will actually
1962         be made.
1963         [Fixes the 2nd part of bug #325473]
1964
1965 2008-02-07  Andreia Gaita <avidigal@novell.com>
1966
1967         * Control.cs: Reset properties to their pre parent-change values in case
1968         the new parent == null (in which case we're basically removing the control, 
1969         and don't want any events fired due to fake property changes)
1970         [Fixes #355850]
1971
1972 2008-02-06  Ivan N. Zlatev  <contact@i-nz.net>
1973
1974         * PropertyGridView.cs: 
1975          - Refactor SetValue to allow setting the value
1976         when a custom editor is used, but the entry is not editable.
1977          - Remove the custom editor control on CloseDropDown.
1978         [Fixes #359196]
1979
1980 2008-02-06  Andreia Gaita <avidigal@novell.com>
1981
1982         * PrintControllerWithStatusDialog.cs: Set PrintFileName value through
1983         reflection only on 1.1, this property is public on system.drawing on 2.0.
1984         Fixed #359247
1985
1986 2008-02-06  Andreia Gaita  <avidigal@novell.com>
1987         
1988         * WebBrowser.cs: Do a normal page refresh by default.
1989
1990 2008-02-05  Andreia Gaita  <avidigal@novell.com>
1991
1992         * XplatUIWin32.cs, XplatUICarbon.cs: set the hwnd.Mapped flag when we create 
1993         the window so that the check on Control.UpdateZOrderOfChild passes on non-X
1994         platforms. Fixes #359036
1995         
1996         Note: Control.UpdateZOrderOfChild needs to be rewritten to not rely on 
1997         platform-specific flags.
1998
1999 2008-02-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2000
2001         * Binding.cs: Add 2.0 BindableComponent property - just return control
2002         by now.
2003
2004 2008-02-05  Everaldo Canuto  <ecanuto@novell.com>
2005
2006         * MenuAPI.cs: Check if control is disposable when track popup menu. Thanks
2007         Jonathan for this patch. Fixes #358442.
2008
2009 2008-02-05  Jonathan Pobst  <monkey@jpobst.com>
2010
2011         * Form.cs: If we change the active MDI child form, let the others
2012         know they need to repaint their title bar so it will appear inactive.
2013         [Fixes part 1 of bug #325473]
2014
2015 2008-02-05  Ivan N. Zlatev  <contact@i-nz.net>
2016
2017          * PropertyGridView.cs: Do not trucate custom editors' width
2018          and align them to the left.
2019          [Fixes #358353 and #358349]
2020
2021 2008-02-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2022
2023         * BindingsCollection.cs: Implement 2.0 CollectionChanging event.
2024         Also fix the arguments passed to CollectionChangeEventArgs in the
2025         related methods.
2026
2027 2008-02-04  Geoff Norton  <gnorton@novell.com>
2028
2029         * Hwnd.cs: The conversion to Quartz coordinates happens in
2030         System.Drawing.  Removing this translation from here.
2031
2032 2008-02-04  Ivan N. Zlatev  <contact@i-nz.net>
2033
2034          * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs,
2035          CategoryGridEntry.cs, RootGridEntry.cs, GridItem.cs,
2036          GridItemCollection.cs:
2037          PropertyGrid rewrite part 2. Tons of bugfixes and new features.
2038
2039 2008-02-04  Geoff Norton  <gnorton@novell.com>
2040
2041         * X11Keyboard.cs: VK_MENU should send a KEYUP instead of 
2042         SYSKEYUP if any other key has been pressed in the mean time.
2043         Fixes #324404
2044
2045 2008-02-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2046
2047         * ListView.cs: In ItemControl.ItemsMouseMove, only fire ItemDrag event
2048         when the item in current position is different than 0. Also, save the
2049         item index in the beginning of the operation, instead of getting the
2050         index of the item when the event is actually performed. Lastly clean
2051         the related fields in ItemsMouseUp if the ItemDrag operation wasn't
2052         triggered.
2053         [Fixes #357873]
2054
2055 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
2056
2057         * Form.cs: Alt-Minus for MDI children system menu should work
2058         with both the minus keys on the keyboard.
2059         [Fixes bug #336295]
2060
2061 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
2062
2063         * Control.cs: Don't invalidate on region change.  The WM should
2064         take care of this automagically.  Keeps us out of an infinite
2065         paint loop if someone changes the Region in the OnPaint.
2066         [Fixes bug #358327]
2067
2068 2008-02-04  Ivan N. Zlatev  <contact@i-nz.net>
2069
2070          * ImageIndexConverter.cs: ConvertFrom must handle "(none)".
2071
2072 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
2073
2074         * DateTimePicker.cs: Apply patch from Srikanth Madikeri so we drop
2075         down the MonthCalendar only on F4, not Alt+F4.
2076         * MonthCalendar.cs: If we are a popup, close ourselves on Alt+F4.
2077         [Fixes bug #358340]
2078
2079 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
2080
2081         * ThemeWin32Classic.cs: For MonthCalendar, draw a dark border
2082         if its part of a DateTimePicker, else, use the back color.
2083         [Fixes bug #358339]
2084
2085 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
2086
2087         * Hwnd.cs: Use GraphicContext instead of the uninitialized bmp_g.
2088         [Fixes bug #358342]
2089
2090 2008-02-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2091
2092         * CurrencyManager.cs: When we get a ListChanged event from our source,
2093         always fire our own ListChanged event, as .Net does.
2094
2095 2008-02-03  Luke Page  <luke.a.page@gmail.com>
2096
2097         * RichTextBox.cs: AutoSize now defaults to false. Fixes Bug
2098         #358379.
2099
2100 2008-02-03  Luke Page  <luke.a.page@gmail.com>
2101
2102         * TextBoxBase.cs, RichTextBox.cs, TextControl.cs: Sets richtext
2103         property. Removed if for richtext property that was always true.
2104         PgUp/PgDn at top/bottom fixed for RTB. Fixes bug #358237.
2105
2106 2008-02-03  Luke Page  <luke.a.page@gmail.com>
2107
2108         * TextBoxBase.cs - commited patch from James Purcell that
2109         correctly sets the FixedHeight control style when the MultiLine
2110         property is changed on a TextBox control. Fixes bug 358229.
2111
2112 2008-02-02  Luke Page  <luke.a.page@gmail.com>
2113
2114         * Line.cs, LineTag.cs, RichTextBox.cs, TextControl.cs
2115         Fixes bug 351938 - caret is positioned correctly when drawn
2116         and when calculating textual position of caret, no longer
2117         has a NRE in certain situations.
2118         
2119 2008-02-01  Geoff Norton  <gnorton@novell.com>
2120
2121         * Hwnd.cs: Ensure that windows moved into -'ve coordinate space
2122         get that region removed from the paint event.
2123         * XplatUICarbon.cs: Remove the window mapping after disposing of 
2124         window.  Prevents a crash with handle reuse.  Optimize exposes
2125         only onto visible windows (rare; but possible).
2126
2127 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
2128
2129         * UpDownBase.cs: Make sure the internal textbox calls the base's
2130         OnMouseDown and OnMouseUp so the textbox will function correctly.
2131         There were notes saying it doesn't chain up, but its an internal
2132         class, so our implementation may differ.
2133         [Fixes bug #357482]
2134
2135 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
2136
2137         * ListBox.cs: Fix a logic error and don't process MouseDown
2138         for mouse buttons other than Left.
2139
2140 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
2141
2142         * Control.cs: Remove HeightInternal.
2143         * ListBox.cs: Commit patch from James Purcell that correctly
2144         calculates heights for ListBoxen.
2145         [Fixes bug #357152]
2146
2147 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
2148
2149         * Label.cs: Apply patch from James Purcell that corrects the 
2150         signature of the AutoSize property.
2151         [Fixes bug #357605]
2152
2153 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
2154
2155         * ListBox.cs: Don't throw [Mouse]Click events for buttons
2156         other than the left mouse button.
2157
2158 2008-01-31  Jonathan Pobst  <monkey@jpobst.com>
2159
2160         * Control.cs: Remove my awesome optimization as it caused some
2161         regressions with control ordering.  :(
2162         [Fixes bug #357467]
2163
2164 2008-01-31  Ivan N. Zlatev  <contact@i-nz.net>
2165
2166          * PropertyGridView.cs: Fix a NRE on double click when there is no
2167          selected object.
2168
2169 2008-01-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2170
2171         * BindingManagerBase.cs: Implement IsBindingSuspended 2.0 property.
2172
2173 2008-01-30  Jonathan Pobst  <monkey@jpobst.com>
2174
2175         * ListBox.cs: Call MouseClick and MouseDoubleClick.
2176         [Fixes bug #357146]
2177
2178 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
2179
2180         * Hwnd.cs: Make bmp, bmp_g variables threadstatic and private.
2181         * Control.cs, DataGridViewCell.cs, LineTag.cs: Use Hwnd.GraphicsContext
2182         instead of Hwnd.bmp_g.
2183
2184 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
2185
2186         * TextRenderer.cs: Don't maintain private bitmap/graphics contexts.
2187         Use the Hwnd one instead.
2188
2189 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
2190
2191         * Form.cs: Remove duplicated copy of GetAutoScaleSize.
2192
2193 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
2194
2195         * Form.cs: corcompare for RestoreBounds.
2196
2197 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
2198
2199         * Control.cs: Add MarshalAs attribute to Font getter for corcompare.
2200
2201 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
2202
2203         * Form.cs: Handle Alt-Minus for MDI children forms.
2204         * MdiWindowManager.cs: Make ShowPopup internal so Form can call it.
2205         Add mnemonics to the control menu.
2206         [Fixes bug #336295]
2207
2208 2008-01-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2209
2210         * Binding.cs: Initial implementation bits of FormattingEnabled
2211         property and BindingComplete event (2.0). 
2212         * BindingCompleteEventArgs.cs: Internal methods for setting error text
2213         and exception.
2214
2215 2008-01-28  Jonathan Pobst  <monkey@jpobst.com>
2216
2217         * TableLayoutPanel.cs: Draw the table border at 0,0 instead of
2218         table.Location.  [Fixes bug #354672]
2219
2220 2008-01-28  Jonathan Pobst  <monkey@jpobst.com>
2221
2222         * Form.cs: Handle WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE to raise
2223         ResizeBegin and ResizeEnd.  [Fixes bug #346529 for win32]
2224
2225 2008-01-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2226
2227         * ComboBox.cs: When OnDisplayMemberChanged method is reached, instead
2228         of doing all the re-bound work, just invalidate and call SetControlText 
2229         to set the updated text of selected item to our textbox.
2230         Fixes #333750.
2231
2232 2008-01-28  Andreia Gaita <avidigal@novell.com>
2233
2234         * HtmlWindow.cs: Add event handler support. Add Document, Frames, 
2235         IsClosed, Opener, StatusBarText, Url properties, stub out the remaining
2236         missing properties and methods. Add Load, Unload, Error, GotFocus, 
2237         LostFocus, Resize, Scroll events (only load and unload are connected)
2238
2239 2008-01-27  Gert Driesen  <drieseng@users.sourceforge.net>
2240
2241         * AccessibleObject.cs: Modified argument names to match MS.
2242         * Button.cs: Modified argument names to match MS.
2243         * BindingContext.cs: Modified argument names to match MS.
2244         * BindingMemberInfo.cs: Modified argument names to match MS.
2245         * ButtonBase.cs: Modified argument names to match MS.
2246         * ComboBox.cs: Modified argument names to match MS.
2247         * Control.cs: Modified argument names to match MS.
2248         * CheckedListBox.cs: Modified argument names to match MS.
2249         * CommonDialog.cs: Modified argument names to match MS.
2250         * DataGrid.cs: Modified argument names to match MS.
2251         * CursorConverter.cs: Modified argument names to match MS.
2252         * ControlPaint.cs: Modified argument names to match MS.
2253         * CheckBox.cs: Modified argument names to match MS.
2254         * ControlBindingsCollection.cs: Modified argument names to match MS.
2255         * BindingSource.cs: Modified argument names to match MS.
2256         * DataFormats.cs: Modified argument names to match MS.
2257         * ContainerControl.cs: Modified argument names to match MS.
2258         * CurrencyManager.cs: Modified argument names to match MS.
2259         * Application.cs: Modified argument names to match MS.
2260         * ContextMenuStrip.cs: Modified argument names to match MS.
2261         * ContextMenu.cs: Modified argument names to match MS.
2262         * BindingManagerBase.cs: Modified argument names to match MS.
2263         * WindowsFormsSection.cs: Fixed line ending.    
2264
2265 2008-01-27  Andreia Gaita <avidigal@novell.com>
2266
2267         * PropertyGridView.cs: Rearrange the dropdown loop so that it exits when
2268         detecting that the dropdown toolwindow is hidden. EndLoop outside the
2269         while.
2270
2271 2008-01-26  Gert Driesen  <drieseng@users.sourceforge.net>
2272
2273         * PropertiesTab.cs: Fixed argument name of GetDefaultProperty to match
2274         MS. Code formatting.
2275
2276 2008-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2277
2278         * Binding.cs: Don't avoid the Format event if the control 
2279         property type is object. Also, if the value retrieved by 
2280         the data source is null _and_ the control proeprty type 
2281         is object, return Convert.DBNull (match .Net).
2282         Fixes part of #324286.
2283
2284 2008-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2285
2286         * ListControl.cs: Since we are getting two BinginContextChanged events
2287         for the same binding context instance (when the control is added to
2288         form, and when the form is actually shown), take it into account only the
2289         first time for a given binding context instance.
2290         Fixes part of #324286.
2291
2292 2008-01-26  Ivan N. Zlatev  <contact@i-nz.net>
2293
2294          * PropertryGridView.cs: Ops.
2295
2296 2008-01-26  Ivan N. Zlatev  <contact@i-nz.net>
2297
2298          * PropertyGridView.cs: Close dropdown form if the owner form is
2299          moved or minimized.
2300          [Fixes bug #322446]
2301
2302 2008-01-25  Ivan N. Zlatev  <contact@i-nz.net>
2303
2304          * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs, GridItem.cs, 
2305          RootGridEntry.cs, CategoryGridEntry.cs:
2306          PropertyGrid rewrite.
2307          - Rewrite all of the control logic in PropertyGrid.
2308          - Rewrite all of the ComponentModel logic in GridEntry.
2309          - Rewrite all UI work in PropertyGridView.
2310          - Many bugfixes, etc.
2311
2312 2008-01-24  Jonathan Pobst  <monkey@jpobst.com>
2313
2314         * TableLayoutPanel.cs: Enhance GetPreferredSize to take into account
2315         when all contained controls are autosize or dock-fill.  Also take into
2316         account when the total percentage of column/row sizes is not 100%.
2317         [Fixes bug #354672]
2318
2319 2008-01-24  Andreia Gaita <avidigal@novell.com>
2320
2321         * HtmlDocument.cs:
2322         - Save a reference to the IDocument in the instance and
2323           use that one instead of going to WebHost.Document; the document that the 
2324           WebHost returns might not be the right one (in case of frames).
2325         - Use the hashcode returned from the IDocument interface.
2326         - Implemented: ActiveElement, ActiveLinkColor, All, BackColor, Cookie, 
2327           Domain (setter is not supported), Encoding, ForeColor, Forms, Images, 
2328           LinkColor, Url, VisitedColor, Window
2329
2330         * HtmlElement.cs: 
2331         - Implemented: CanHaveChildren, Children, Document, GetAttribute, 
2332           set_Attribute, NextSibling, Parent, TagName, AppendChild, 
2333           GetElementsByTagName, GetHashCode, HasAttribute, InsertAdjacentElement,
2334           SetAttribute, Equals, equality operators.
2335         - Added stubs for: AttachEventHandler, DetachEventHandler, Focus, 
2336           InvokeMember, RaiseEvent, RemoveFocus, ScrollIntoView, 
2337         
2338         * HtmlElementCollection.cs: Change implementation to use a generic
2339         collection. Implemented Enumerator and CopyTo
2340
2341         * HtmlHistory.cs: Add constructor, no implementation yet.
2342
2343         * HtmlWindow.cs: Initial implementation with: Name, Parent, Alert,
2344         Confirm, Prompt, Navigation, ScrollTo, Open, OpenNew, GetHashCode, 
2345         Equals, equality operators.
2346
2347         * HtmlWindowCollection.cs: Implemented. 
2348
2349         * WebBrowser.cs: Use the Navigation object to navigate (WebHost.Navigate
2350         has been deprecated).
2351
2352         * WebBrowserBase.cs: Use Completed event to track document loading
2353         (Navigated has been deprecated)
2354
2355 2008-01-24  Jonatham Pobst  <monkey@jpobst.com>
2356
2357         * ThemeWin32Classic.cs: Add tab stops and NoWrap to dropdown MenuItems.  Top
2358         level MenuItems do not respect tabs.
2359         [Fixes bug #355196]
2360
2361 2008-01-23  Geoff Norton  <gnorton@novell.com>
2362
2363         * XplatUICarbon.cs:  Ensure that windows are created in their initial 
2364         FormWindowState.  Finished fixing Fullscreen windows on Carbon
2365
2366 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
2367
2368         * MenuAPI.cs: When FindForm fails uses FindRootParent to find the control to
2369         be used as grab_control. Also save status of capture before show ContextMenu
2370         and restore it after close.
2371
2372 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
2373
2374         * Control.cs: Internal FindRootParent method added to return high control
2375         in parent tree.
2376
2377 2008-01-23  Geoff Norton  <gnorton@novell.com>
2378
2379         * Hwnd.cs: Refactor Whole/Client pointer to 1 element for Cursors.
2380         * XplatUICarbon.cs: Refactor some dead code out to Cursor.cs and make
2381         it work again.  Handle HITTEST events.
2382
2383 2008-01-23  Geoff Norton  <gnorton@novell.com>
2384
2385         * XplatUICarbon.cs: Ensure that we always have a host window.  Prevents
2386         a crash in certain cases.  Support for fullscreen windows in certain cases.
2387
2388 2008-01-23  Jonathan Pobst  <monkey@jpobst.com>
2389
2390         * Form.cs: Don't set AutoScaleMode in AutoScale if we don't have to.
2391         [Fixes bug #355703]
2392
2393 2008-01-23  Geoff Norton  <gnorton@novell.com>
2394         
2395         * XplatUICarbon.cs: Remove some dead code that was causing warnings.
2396
2397 2008-01-23  Geoff Norton  <gnorton@novell.com>
2398
2399         * XplatUICarbon.cs:  Re-enabled Carets in QuickDraw as a overlay window.
2400
2401 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
2402
2403         * SplitContainer.cs: Remove unused declarations.
2404         * Binding.cs: Remove unused declarations.
2405
2406 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
2407
2408         * Form.cs: Remove unused declaration of 'active' in Activate method.
2409         * Control.cs: Move declaration of nested_layout inside '#if NET_2_0" to 
2410         prevent compilation warnings.
2411         * TextControl.cs: Remove unused declaration of selection_pos_on_line.
2412         * Hwnd.cs: Remove unused declaration of clip in GetClippingRectangles.
2413         * Bindings.cs: Remove unused formatting_enabled declaration.
2414         * ToolTip.cs: Put some methods inside '#if NET_2_0" to prevent compilation 
2415         warnings.
2416         * TreeView.cs: Put some methods inside '#if NET_2_0" to prevent compilation 
2417         warnings.
2418         * PropertyGridView.cs: Remove usused 'ex' declaration.
2419         * DataGridView.cs: Remove unused declarations.
2420
2421 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
2422
2423         [Fixes bugs #343966, #338511 and other non reported (context)menu bugs]
2424         
2425         * Form.cs: Remove all active_tracker (used by menu) stuff, it is now moved 
2426         to Control class, it makes possible to grab menu to controls that can't 
2427         reach Form using parent tree. Handle for WmButtonUp, WmButtonDown and
2428         WmMouseMove removed since it was used only to track menu events.
2429
2430         * Control.cs:
2431         - Moved all active_tracker stuff from Form.
2432         - ProcessActiveTracker added to prevent code duplicity, now mouse events 
2433         can call this method instead of reimplement all necessary code handle for
2434         menu tracker.
2435         - Call to ProcessActiveTracker for mouse events (WmButtonUp, WmButtonDown
2436         and WmMouseMove).
2437         
2438         * MenuAPI.cs: 
2439         - Remove special handle to ToolStripOverflow, now we can grab menu to 
2440         controls that can't reach Form using parent tree.
2441         - Change type of grab_control from Form to Control.
2442
2443 2008-01-22  Geoff Norton  <gnorton@novell.com>
2444
2445         * TextBoxBase.cs: Split up the sizing of controls and placing of 
2446         controls.  Fixes a bug where scrollbars in Reflector could be sized
2447         wrong and have non-working thumbers.
2448
2449 2008-01-23  Geoff Norton  <gnorton@novell.com>
2450
2451         * XplatUI.cs: Refactor environment variables to default support to the
2452         Carbon driver on the Mac.
2453
2454 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
2455
2456         * Label.cs: Uses new LabelPainter for drawing operations.
2457         * ThemeWin32Classic.cs: DrawLabel and LabelDefaultSize removed.
2458         * Theme.cs: DrawLabel and LabelDefaultSize removed.
2459
2460 2008-01-22  Geoff Norton  <gnorton@novell.com>
2461
2462         * XplatUICarbon.cs: Enable packing scroll delta into the mouse wParam
2463
2464 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
2465
2466         * ThemeWin32Classic.cs: Run Flat, Button appearance, 2.0 CheckBoxes
2467         through the normal flat button code and don't draw the checkbox glyph.
2468         * Theme.cs: Button->ButtonBase signature change.
2469         [Fixes bug #324755]
2470
2471 2008-01-22  Everaldo Canuto  <ecanuto@novell.com>
2472
2473         * LinkLabel.cs: Uses new class LinkLabelPainter.
2474
2475 2008-01-22  Everaldo Canuto  <ecanuto@novell.com>
2476
2477         * MessageBox.cs: Adjust right border space, we don't need to add 
2478         "space_border*2" two times.
2479
2480 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
2481
2482         * ScrollableControl.cs: With the advent of 2.0's Padding, DockPadding
2483         becomes a wrapper around Padding.
2484         [Fixes a part of bug #354676]
2485
2486 2008-01-22 Geoff Norton  <gnorton@novell.com>
2487
2488         * Mime.cs:  Avoid a needles exception on OSX if we dont have a buffer
2489         acquired.  Also ensure the buffer is large enough to grab the header
2490         we need on linux boxes.
2491
2492 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
2493
2494         * Control.cs: Implement a custom enumerator so people can delete
2495         from the Controls collection while in a foreach.
2496         [Fixes bug #355074]
2497
2498 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
2499
2500          * PropertyGridView.cs: Fix focusing behavior:
2501          - Tab should focus the grid text box.
2502          - Clicking on the labels shouldn't focus the grid text box.
2503
2504 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
2505
2506          * PropertyGridView.cs: IsValueTypeGridItem should return true 
2507          for Arrays as well.
2508
2509 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
2510
2511          * PropertyGrid.cs, GridEntry.cs, PropertyGridView.cs:
2512           - Renamed GridEntry.SelectedObjects to TargetObjects to better
2513           reflect the property name role.
2514           - PropertyGrid.GetTarget is not required as the target is known
2515           (TargetObjects).
2516           - Setting values will handle value types as a special case now and
2517           populate them up in the chain.
2518           [Fixes #354990]
2519
2520 2008-01-21  Jonathan Pobst  <monkey@jpobst.com>
2521
2522         * Hwnd.cs: Create a public property for the Graphics we keep around.
2523
2524 2008-01-21  Ivan N. Zlatev  <contact@i-nz.net>
2525
2526          * PropertyGridView.cs: Just hide the grid textbox and do nothing more 
2527          when the current object selection changes. 
2528          Fixes failing test SelectedObject_Null2.B5.
2529
2530 2008-01-21  Ivan N. Zlatev  <contact@i-nz.net>
2531
2532          * PropertyGrid.cs: Process Browsable properties with 
2533          DesignerSerializationVisibilityAttribute.Content as being expandable.
2534          This seems also what MS does. Without this e.g SplitContainer.Panel1/2
2535          will not be expandable. We should be nested components-friendly now.
2536
2537 2008-01-21  Andreia Gaita <avidigal@novell.com>
2538
2539         * WebBrowserBase.cs: Check if control was loaded properly, 
2540         don't bind if it wasn't.
2541
2542         * HtmlDocument.cs: Implement CreateElement, Equals, Focus, 
2543         GetElementFromPoint, equality operators, OpenNew, Write.
2544         Remove extra set_Body
2545
2546 2008-01-18  Jonathan Pobst  <monkey@jpobst.com>
2547
2548         * ContainerControl.cs, Control.cs: Apply patch from James Purcell
2549         that makes our AutoScale* stuff more tolerant to different orders
2550         of being set.  [Fixes bug #354669]
2551
2552 2008-01-18  Ivan N. Zlatev  <contact@i-nz.net>
2553
2554          * PropertyGridView.cs, PropertyGridTextBox.cs: 
2555          Drop WM_LBUTTONDOWN msg sending and use focusing instead.
2556          [Fixes #339005 and #348209]
2557
2558 2008-01-18  Ivan N. Zlatev  <contact@i-nz.net>
2559
2560          * PropertyGridView.cs: Hide the grid text box before adjusting it
2561          for the newly selected GridItem.
2562          [Fixes #338999]
2563
2564 2008-01-18  Jonathan Pobst  <monkey@jpobst.com>
2565
2566         * Form.cs: Give MDI children the opportunity to cancel the parent form
2567         attempting to close.  Ensure that all [Form]Clos[ing,ed] events get called
2568         properly for both the parent and child.
2569         * Application.cs: Signature of internal method changed, pass the previous
2570         default of false.
2571         [Fixes bug #354286]
2572
2573 2008-01-17  Ivan N. Zlatev  <contact@i-nz.net>
2574
2575         * PropertyGridView.cs: Set the property value only if it has changed.
2576         [Fixes bug #338997]
2577
2578 2008-01-17  Jonathan Pobst  <monkey@jpobst.com>
2579
2580         * MenuAPI.cs: Windows sends us MOUSEMOVE messages when any key is pressed.
2581         If the mouse hasn't actually moved, ignore these messages so the currently
2582         highlighted menuitem isn't reset to the one under the mouse.
2583         [Fixes bug #333668]
2584
2585 2008-01-17  Ivan N. Zlatev  <contact@i-nz.net>
2586
2587         * PropertyGridView.cs: When the property changes Invalidate the GridItem
2588         in order for the properties with UITypeEditor.GetPaintValueSupported == true
2589         to reflect the change visually.
2590         [Fixes bug #338998]
2591
2592 2008-01-17  Jonathan Pobst  <monkey@jpobst.com>
2593
2594         * ButtonBase.cs: Add LineLimit to 1.1 button drawing, and TextBoxControl
2595         to 2.0 button drawing.
2596         * ThemeWin32Classic.cs: Ensure that the rectangle we are using to draw 
2597         the button text is tall enough for one line.  LineLimit says it will
2598         always draw at least one line, but it is a lie.
2599         [Fixes bug #324941]
2600
2601 2008-01-17  Atsushi Enomoto  <atsushi@ximian.com>
2602
2603         * XplatUIStructs.cs, X11Keyboard.cs :
2604           added some more VK_* keys to be handled.
2605
2606 2008-01-16  Andreia Gaita <avidigal@novell.com>
2607
2608         * Control.cs: Check if there is a container before setting or getting
2609         the validation flag.
2610
2611 2008-01-16  Andreia Gaita <avidigal@novell.com>
2612
2613         * ContainerControl.cs: Add flag to track if a control cancels validation, 
2614         so we don't fire click events.
2615
2616         * Control.cs: 
2617         - (HandleClick) Check if validation was cancelled before  firing the click
2618         events (doubleclicks are fired, but not clicks)
2619         - (WmLButtonDown) Reset validation flag. The flag is normally reset on 
2620         ContainerControl.set_ActiveControl, but in the case of non-selectable
2621         controls, like a Label, activecontrol is not set. 
2622
2623         * ButtonBase.cs: Only fire clicks if validation passes.
2624         
2625         Fixes #353310
2626
2627 2008-01-16  Geoff Norton  <gnorton@novell.com>
2628
2629         * XplatUICarbon.cs: Implement GetAutoScaleSize to fix Reflector on
2630         trunk
2631
2632 2008-01-16  Jonathan Pobst  <monkey@jpobst.com>
2633
2634         * FolderBrowserDialog.cs: If we cannot interpret the user's requested
2635         SelectedPath, just display the default dialog instead of crashing.
2636         [Fixes bug #348989]
2637
2638 2008-01-16  Geoff Norton  <gnorton@novell.com>
2639
2640         * XplatUICarbon.cs:  Flicker be gone!  Generate our messages in
2641         AddExpose instead of trusting apples compositing manager which doesn't
2642         work for our use case.  Remove some dead code causing warnings and 
2643         redecorate some other code to prevent warnings.
2644
2645 2008-01-16  Geoff Norton  <gnorton@novell.com>
2646
2647         * XplatUICarbon.cs:  Avoid some unecessary invalidation calls when
2648         carbon signals us to redraw.  Fixes another portion of the flickering bug
2649
2650 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
2651
2652         * Form.cs: Prevent the MdiParent property to be set when value is the same
2653         as value already set. Fixes bug #328019.
2654
2655 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
2656
2657         * Form.cs: Don't set mdi_parent as null when mdi window close is prevented, 
2658         it prevents NRE when closing mdi child windows. Fixes bug #325211.
2659
2660 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
2661
2662         * InternalWindowManager.cs: Invalidade close button after mouse up when 
2663         mdi form is prevented to close.
2664
2665 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
2666
2667         * MdiClient.cs: Fix the minimum bounds on child window sizes when cascade,
2668         thanks to Andy Hume. Fixes bug #325433.
2669
2670 2008-01-16  Andreia Gaita <avidigal@novell.com>
2671
2672         * LinkLabel.cs: Reset focused_index when resellecting the control.
2673         Fixes #323190
2674
2675 2008-01-15  Geoff Norton  <gnorton@novell.com>
2676
2677         * XplatUICarbon.cs:  Rework Grab/Ungrab handling to send some needed 
2678         messages.
2679
2680 2008-01-15  Jonathan Pobst  <monkey@jpobst.com>
2681
2682         * Form.cs: Change 2 more AutoScaleBaseSize calculation to round instead
2683         of truncate.
2684
2685 2008-01-15  Jonathan Pobst  <monkey@jpobst.com>
2686
2687         * ContainerControl.cs: Setting AutoScaleMode to anything should set
2688         Form.AutoScale to false.
2689         * Form.cs: Setting AutoScale to true should set AutoScaleMode to None.
2690         AutoScaleBaseSize should be changed on Font change unless it has been
2691         explicitly set.
2692         [Fixes bug #353827]
2693
2694 2008-01-15  Everaldo Canuto  <ecanuto@novell.com>
2695
2696         * MenuAPI.cs: On instance of MenuTracker check if source control is
2697         ToolStripOverflow and use properly method to find form.
2698         [Fixes bug #338511]
2699
2700 2008-01-15  Everaldo Canuto  <ecanuto@novell.com>
2701
2702         [Fixes bug #323241 Transparent toolbar support]
2703
2704         * ToolBar.cs: Define ToolBarStyles.TBSTYLE_FLAT in CreateParams when toolbar
2705         is flat.
2706
2707         * Control.cs: Paint background as transparent in case of TBSTYLE_FLAT is
2708         defined in control style to mimic win32 behavior.
2709
2710         * ThemeWin32Classic.cs: Don't paint background for flat apparence toolbar, 
2711         it will be transparent.
2712
2713 2008-01-14  Everaldo Canuto  <ecanuto@novell.com>
2714
2715         * XplatUIStructs.cs: Implement ToolBarStyles to use in Style property of
2716         CreateParams for ToolBar controls.
2717
2718 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
2719
2720         * Form.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs: Forms with
2721         FixedToolWindow, SizeableToolWindow, or None for border styles have
2722         different minimum sizes than regular forms.  Implemented to fix
2723         regression in PDN with toolbox being too wide.
2724
2725 2008-01-14  Andreia Gaita <avidigal@novell.com>
2726
2727         * HtmlElementCollection.cs: Implemented
2728
2729         * HtmlElement.cs: Implemented:
2730           - All
2731           - InnerHtml
2732           - InnerText
2733           - Id
2734           - Name
2735           - FirstChild
2736
2737         * HtmlDocument.cs: Implemented GetElementsByTagName.
2738
2739 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
2740
2741         * Screen.cs: Stub BitsPerPixel to always return 32.
2742
2743 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
2744
2745         * Form.cs: Implement RestoreBounds.
2746
2747 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
2748
2749         * RichTextBox.cs, ToolStrip.cs: Fix some typos pointed out by
2750         Sebastien and his fabulous magical problem-finding machine:
2751         Gendarme.  Also put a MonoTodo on AutoWordSelect since we don't
2752         respect the value set.
2753
2754 2008-01-14  Everaldo Canuto  <ecanuto@novell.com>
2755
2756         * Form.cs: In WmWindowPosChanged call base.WndProc including when state is
2757         minimized. Fixes bug #325122 for Win32. Thanks  Srikanth Madikeri.
2758
2759 2008-01-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2760
2761         * X11Dnd.cs: Since we don't propagate the WM_LBUTTONUP/WM_RBUTTONUP
2762         messages (to match .Net), we need to remove the capture ourselves.
2763
2764 2008-01-11  Jonathan Pobst  <monkey@jpobst.com>
2765
2766         * MenuAPI.cs: If we get an Alt-F4, release our capture so Windows
2767         will process the message and close our window.
2768         [Fixes bug #324328]
2769
2770 2008-01-10  Geoff Norton  <gnorton@novell.com>
2771
2772         * XplatUICarbon.cs:  Clip the Graphics context to the invalid area
2773         tracked in the Hwnd.  Only invalidate the dirty region to the Carbon
2774         window manager.
2775
2776 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
2777
2778         * Form.cs: Enforce the Form minimum size in SetBoundsCore.  Fixed
2779         failing test.
2780
2781 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
2782
2783         * XplatUIX11.cs: Set a minimum window size and enforce it.  Even though
2784         Linux doesn't care, having a minimum matches MS and keeps the window
2785         from becoming too small to use window decorations.
2786         [Fixes bug #338996]
2787
2788 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
2789
2790         * ThemeWin32Classic.cs: Tie CheckBox/RadioButton focus rectangles to
2791         ShowFocusCues.  Make focus rectangles fit the text instead of the whole
2792         control.  [Fixes bug #325419]
2793
2794 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
2795
2796         * ComboBox.cs: Guard against an NRE if the user open a new form from a
2797         SelectedIndexChanged event.  This closes the combobox dropdown, and we
2798         were trying to dispose it.  [Fixes bug #352830]
2799
2800 2008-01-09  Jonathan Pobst  <monkey@jpobst.com>
2801
2802         * Control.cs, Form.cs: Implement the necessary semantics for
2803         ShowFocusCues.  All paint code will need to check Control.ShowFocusCues
2804         to determine if a focus rectangle should be drawn.
2805         * PropertyGrid.cs: Fix property visibility to match override.
2806         * ThemeWin32Classic.cs: Use ShowFocusCues for Button.
2807
2808 2008-01-09  Jonathan Pobst  <monkey@jpobst.com>
2809
2810         * Application.cs: Use GetCommandLineArgs to calculate ExecutablePath.
2811         [Fixes bug #323552]
2812
2813 2008-01-09  Geoff Norton  <gnorton@novell.com>
2814         
2815         * XplatUICarbon.cs: Scroll windows in the correct direction.
2816
2817 2008-01-09  Geoff Norton  <gnorton@novell.com>
2818
2819         * XplatUICarbon.cs: Track all created utility windows so we can hide them
2820         when the app is deactivated or spaces is enabled.
2821
2822 2008-01-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2823
2824         * ListViewItem.cs: Cosmetic fix - When calculating layout for item, don't add an
2825         extra separation pixel for the label rect origin if SmallImageList is
2826         null, and thus we don't need that separation between icon and label
2827         rects.
2828         Patch by Ernesto Carrea.
2829         Fixes # 340195.
2830
2831 2008-01-08  Jonathan Pobst  <monkey@jpobst.com>
2832
2833         * StatusStrip.cs: Invalidate after completing a layout.  The base
2834         OnLayout does this, but we don't call the base.
2835         * ToolStripItem.cs: Revert the previous change to invalidate after
2836         the item moves.
2837         [Fixes bug #351341 better.]
2838
2839 2008-01-07  Geoff Norton  <gnorton@novell.com>
2840
2841         * XplatUICarbon.cs:  WM_DESTROY is a teardown of a single window
2842         not a notification to exit the application.  Listen for WM_QUIT
2843         instead.
2844
2845 2008-01-07  Andreia Gaita <avidigal@novell.com>
2846
2847         * HtmlDocument.cs: Fix case on GetElementById (interface changed)
2848
2849 2008-01-07  Jonathan Pobst  <monkey@jpobst.com>
2850
2851         * ToolStripItem.cs: If the bounds of an item changes, invalidate it
2852         so it can repaint at the correct location.
2853         [Fixes bug #351341]
2854
2855 2008-01-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2856
2857         * ListControl.cs: SelectedValue should return a null value if
2858         SelectedIndex is -1. Also, when setting it, it should throw an
2859         ArgumentNullException if the value is null, as well as taking
2860         into account the String.Empty value, instead of ignoring it (we have
2861         tests for that now).
2862         Fixes part of #324286.
2863
2864 2008-01-06  Jonathan Pobst  <monkey@jpobst.com>
2865
2866         * TextBoxBase.cs, TextControl.cs: Patch from Luke Page to ensure
2867         SelectionStart is updated after pressing enter.  Fixes bug #351918.
2868
2869 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
2870
2871         * TextControl.cs: Revert a piece r92316 that prevented the fix
2872         from working when there were multiple tags in the text box.
2873         Fixes bug #351881.
2874
2875 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
2876
2877         * TextControl.cs: Apply patch from Luke Page that prevents an
2878         NRE when determining the beginning of a paragraph.
2879         Fixes bug #351886.
2880
2881 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
2882
2883         * TextBoxBase.cs: Apply patch from Luke Page that ensures the
2884         caret gets moved with clicking away from a selected block of
2885         text.  Fixes bug #351885.
2886
2887 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
2888
2889         * TextControl.cs: Apply patch from Luke Page that takes line
2890         alignment into account for mouse selection, so that center and
2891         right aligned text can be selected.
2892         Fixes bug #351881.
2893
2894 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
2895
2896         * RichTextBox.cs: Apply patch from Luke Page that fixes some caret
2897         issues after loading an RTF file by using the correct line feeds.
2898         Fixes bug #351841.
2899
2900 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
2901
2902         * TextControl.cs: When deleting multiple line selections, we need
2903         to invalidate every line beginning at the first line of the selection.
2904         Patch from Luke Page fixes bug #351791.
2905
2906 2008-01-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2907
2908         * ListControl.cs: When getting a CurrencyManager.PositionChanged
2909         event, don't set SelectedIndex if the number of items is 1. This is
2910         because, for the first item, PositionChanged is fired _before_
2911         ItemChanged (the place where we actually populate the items), and
2912         leave us in a temporary invalid state (since items collection is
2913         empty).
2914         Fixes #349655.
2915
2916 2008-01-04  Geoff Norton  <gnorton@novell.com>
2917
2918         * XplatUICarbon.cs:  Create native toolwindows instead of
2919         the managed drawing ones.
2920
2921 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
2922
2923         * LineTag.cs: If the line doesn't have any characters, return
2924         0 for GetCharIndex.  Fixes an AOORE exception after certain
2925         caret movements.  Fixes bug #351683.  Patch by Luke Page.
2926
2927 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
2928
2929         * TextBoxBase.cs: Apply patch from Luke Page so when backspace
2930         is hit when there is selected text, only the selected text gets
2931         deleted, not the character in front of the selection as well.
2932         Fixes bug #351578.
2933
2934 2008-01-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2935
2936         * ComboBox.cs: When the values are displayed, calculate the
2937         ComboListBox scrollbar's LargeChange based on the visible area's
2938         height and  the actuall ItemHeight, instead of calculating it
2939         based on MaxDropItems value, since it's not used by our _current_ 
2940         2.0 profile.
2941         Fixes #332366.
2942
2943 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
2944
2945         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
2946         Patch from Luke Page that fixes issues with font colors and styles
2947         not showing up in a readonly RichTextBox.  Fixes bug #324354.
2948
2949 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
2950
2951         * Line.cs, RichTextBox.cs, TextControl.cs: Another awesome patch
2952         from Luke Page.  This one fixes bug #349926.
2953
2954 2007-12-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2955
2956         * CurrencyManager.cs: Actually fire the 2.0 ListChanged event when
2957         an item in the IBindingList source changes with
2958         ListChangedType.ItemAdded. Ignore for now firing the event for other
2959         changes, since we want to have tests for those cases as well.
2960
2961 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
2962
2963         * TextBoxBase.cs: Don't store a 1x1 Bitmap for every TextBox
2964         created.
2965
2966 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
2967
2968         * TextBoxTextRenderer.cs: Implement a cache for measuring each
2969         character.  This is effective because the typical usage of a
2970         TextBox is with a limited amount of fonts and characters, and
2971         the current implementation of TextBox measures everything one
2972         character at a time.  Another second or two speedup for bug #347238.
2973
2974 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
2975
2976         * Control.cs: Rewrite the Font getter to only query the parent's
2977         Font property once instead of twice.  Since this operation is
2978         recursive, the queries were growing exponentially as the control
2979         tree got deeper.  Another second or two speedup for bug #347238.
2980
2981 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
2982
2983         * Control.cs: Avoid setting a parent (and more importantly, updating
2984         the zorder of all its children) if the parent is already correct in
2985         WmShowWindow.  Decreases the startup time of the test case on bug
2986         #347238 from 35 seconds to 11 seconds.
2987
2988 2007-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2989
2990         * X11Dnd.cs: When the dnd operation has started and we are 
2991         in the dnd loop, don't dispatch either WM_LBUTTONUP nor WM_RBUTTONUP.
2992         This is done to match .Net, which doesn't send those messages after
2993         dnd operation was completed/cancelled.
2994         Fixes #349922.
2995
2996 2007-12-27  Jonathan Pobst  <monkey@jpobst.com>
2997
2998         * ToolStrip.cs: Previous change should be != null, not == null.
2999         Thanks Gert!
3000
3001 2007-12-27  Jonathan Pobst  <monkey@jpobst.com>
3002
3003         * ToolStrip.cs: Guard against an NRE after ItemClicked is called, the
3004         user may have moved the mouse off the current item during the event.
3005
3006 2007-12-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3007
3008         * ListView.cs: In ItemControl.ItemsMouseMove, try to avoid
3009         calling GetItemAt for every MouseMove event by also taking into
3010         account whether any mouse button is pressed (probably dragging); 
3011         if so, we can call GetItemAt, and if not, try to not call it 
3012         (GetItemAt can be quite expensive when used with a large number of items).
3013
3014 2007-12-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3015
3016         * ListView.cs: Implement -finally- support for dnd, by calling
3017         OnItemDrag as needed. Also, remove the dnd TODO, and add myself to the
3018         authors list ;-).
3019         * ListViewInsertionMark.cs: Implement NearestIndex method, by doing a
3020         simple calculation of distances for all the items in the owner
3021         listview.
3022
3023 2007-12-21  Geoff Norton  <gnorton@novell.com>
3024
3025         * XplatUICarbon.cs:  Ensure that we create WindowMapping handles
3026         for windows that are originally created as invisible.  Fixes missing
3027         main window in paint-mono.
3028
3029 2007-12-21  Geoff Norton  <gnorton@novell.com>
3030
3031         * XplatUICarbon.cs:  Register our D&D handler.  Register our custom
3032         subclass handler for com.novell.mwfview subclassing HIView.  Implement
3033         Pasteboard and Dnd methods.
3034
3035 2007-12-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3036
3037         * ListBox.cs: When we got focus, give focus to first item if there
3038         wasn't any pervious focused item. Also update navigation to depend on
3039         SelectedIndex rather than FocusedItem, just as .Net does.
3040         Fixes #349174.
3041
3042 2007-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3043
3044         * ListBox.cs: Both FindString and FindStringExact methods must do an
3045         case insensitive search, should allow the last valid index to be
3046         passed in the overload taking an initial index, and should also
3047         continue searching from the top back to the specified index when it
3048         reaches the bottom.
3049
3050 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
3051
3052         * TextControl.cs: Apply patch from Luke Page that fixes a scrolling
3053         redraw issue, and allows RichTextBox to draw colored text even while
3054         disabled or readonly.
3055
3056 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
3057
3058         * RichTextBox.cs, TextBoxBase.cs: Apply patch from Luke Page that
3059         disallows cut/paste in a readonly textbox, adds support for Shift-Insert,
3060         and doesn't grey text in a disabled RichTextBox.
3061
3062 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
3063
3064         * RichTextBox.cs: Apply patch from Luke Page that adds better support
3065         for many RTF commands: quad alignment, separate formatting for blocks
3066         inside groups, and ParDef support.  Makes the test case from bug #324589
3067         look much better.
3068
3069 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
3070
3071         * LineTag.cs: Fix an error in the new Draw method that caused
3072         a crash when rendering the document on bug #324589.
3073
3074 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
3075
3076         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs,
3077         TextControl.cs: Apply patch from Luke Page that adds support
3078         for URL links in RichTextBox.
3079         [Fixes enhancement #342516]
3080
3081 2007-12-18  Everaldo Canuto  <ecanuto@novell.com>
3082
3083         * MenuItem.cs: When cloning menuitem clone also name and tag properties for
3084         2.0 profile. Thanks Ernesto Carrea and Luke Page. Fixes bug #340289.
3085
3086 2007-12-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3087
3088         * ListBox.cs: When a key gets pressed, try to find a string
3089         if the key is a character or a digit.
3090         Fixes #343971.
3091
3092 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
3093
3094         * TableLayoutPanel.cs: Remove some unused variables.
3095
3096 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
3097
3098         * DateTimePicker.cs: Commit patch from Luke Page that ensures
3099         we don't end up at an invalid date when we click the up/down
3100         spinner to change the month or year.  Fixes bug #348682.
3101
3102 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
3103
3104         * Application.cs: Calling Exit in 2.0 should chain to the
3105         Exit (CancelEventArgs) version so it can be cancelled.
3106         * Form.cs: Create a flag to allow raising the Closing
3107         events to be skipped.  We raise them once in Application.Exit
3108         and don't want to raise them again when the Form is actually
3109         closed.  [Fixes bug #349073]
3110
3111 2007-12-16  Jonathan Pobst  <monkey@jpobst.com>
3112
3113         * ToolStripDropDown.cs: Guard against an NRE when there
3114         hasn't been a mainform set in the application context.
3115         [Fixes bug #349108]
3116
3117 2007-12-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3118
3119         * ListBox.cs: When SetBoundsCore gets called, besides
3120         calling UpdateScrollBars, update the value of
3121         last_visible_index, since we could need to show more items
3122         than before, and we need to let the paint routines know that.
3123         Fixes #344445.
3124
3125 2007-12-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3126
3127         * ListView.cs: Add DesignerSerializationVisibility attribute to
3128         InsertionMark property.
3129         * ListViewItem.cs: Add same attribute to Position property.
3130
3131 2007-12-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3132
3133         * ListViewItem.cs: .ctor (SerializationInfo, StreamingContext)
3134         is 2.0 only.
3135
3136 2007-12-14  Jonathan Pobst  <monkey@jpobst.com>
3137
3138         * ThemeWin32Classic.cs: Don't draw the background on a
3139         flat button if there is a background image.
3140         [Fixes bug #348649]
3141
3142 2007-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3143
3144         * ListBox.cs: If we remove the item currently selected,
3145         remove it not only from SelectedItems, but also
3146         resetting selected_index. Moreover, set focused_item to Items.Count - 1 if 
3147         the items count decreased and focused_item has bigger value than that.
3148
3149 2007-12-13  Jonathan Pobst  <monkey@jpobst.com>
3150
3151         * Control.cs: Perform our layout after we resize ourselves
3152         if we had to adjust our AutoSize.  Missed commit for bug
3153         #346246.
3154
3155 2007-12-13  Jonathan Pobst  <monkey@jpobst.com>
3156
3157         * TableLayoutPanel.cs: Override GetPreferredSizeCore so
3158         we can provide an implementation of AutoSize.
3159         [Fixes bug #346246]
3160
3161 2007-12-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3162
3163         * ListBox.cs: Add the internal overload Sort (bool paint),
3164         to indicate whether we actually need a paint or we will
3165         call Refresh ourselves. This way we don't request a paint
3166         _before_ having an updated and valid layout.
3167         Fixes #347233.
3168
3169 2007-12-12  Andreia Gaita <avidigal@novell.com>
3170
3171         * XPlatUIX11.cs: Send paint messages when updating a systray icon
3172         * NotifyIcon.cs: Invalidate the window before doing a systray change so it is
3173         properly invalidated. 
3174         Fixes #324237
3175
3176 2007-12-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3177
3178         * ListViewItem.cs: When using a .ctor taking a ListViewGroup,
3179         don't simply assign it to our internal group field, but instead 
3180         use our Group property, which should do all the neccessary work
3181         required to support groups. Fixes an issue reported to me (mail) by a 
3182         guy using this new feature.
3183
3184 2007-12-11  Jonathan Pobst  <monkey@jpobst.com>
3185
3186         * Control.cs: Use Scale instead of ScaleControl to ensure the
3187         whole hierarchy gets scaled.
3188         [Fixes bug #347282]
3189
3190 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
3191
3192         * DateTimePicker.cs: Don't set the internal MonthCalendar's
3193         Parent property.  Doing this causes the control to be hosted by
3194         the Form instead of being a popup window.
3195         [Fixes bug #347665]
3196
3197 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
3198
3199         * ToolStripItemCollection.cs: If we try to insert a ToolStripItem
3200         at an index higher than Count, just use Add instead of Insert.
3201         [Fixes bug #347669]
3202
3203 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
3204
3205         * ThemeWin32Classic.cs: Don't draw a PictureBox's background in
3206         DrawPictureBox, this is handled by Control.PaintBackground.
3207         [Fixes bug #347276]
3208
3209 2007-12-10  Everaldo Canuto  <ecanuto@novell.com>
3210
3211         * MenuAPI.cs: When process menu keys return true by default only if menu is
3212         active. Fixes bug #342892.
3213
3214 2007-12-09  Andreia Gaita <avidigal@novell.com>
3215
3216         * Control.cs: check if windows are actually mapped before
3217         trying to zorder. Fixes #342509, #346955
3218
3219 2007-12-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3220
3221         * ListView.cs:
3222         * ListViewInsertionMark.cs:
3223         * ThemeWin32Classic.cs: Implement the drawing side of the
3224         new 2.0 ListView.InsertionMark property.
3225
3226 2007-12-07  Jonathan Pobst  <monkey@jpobst.com>
3227
3228         * CurrencyManager.cs: Silence some debug spew.
3229
3230 2007-12-07  Geoff Norton  <gnorton@novell.com>
3231         
3232         * Hwnd.cs: Refactor GetClippingRectangles to suppose returning the
3233         masks for our children as well as siblings to avoid having to query
3234         Quartz for this information.
3235         * XplatUICarbon.cs: Implement a delegate based system to pass
3236         information to System.Drawing.  Implement Async methods.  Remove
3237         the hack for the resize thumb and imlpement a transparent Grow Box.
3238         Rework the messaging system to proplery create window's and messages,
3239         fixes TabControl.
3240
3241 2007-12-06  Andreia Gaita <avidigal@novell.com>
3242
3243         * X11Keyboard.cs: Use Xutf8LookupString to support international 
3244         characters under alternate codepages. Patch from #340878
3245
3246 2007-12-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3247
3248         * ListView.cs: When doing layout computations, set position in the
3249         ListView instances (we cache the position just as .Net does).
3250         * ListViewItem.cs: New internal setter method for Position. Also set
3251         position field as also available in 1.1, since we are going to use it
3252         now in the common case.
3253
3254 2007-12-06  Andreia Gaita <avidigal@novell.com>
3255
3256         * Control.cs: When removing controls, get the actual container
3257         to notify about active control changes. Fixes 341314.
3258
3259 2007-12-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3260
3261         * ListViewItem.cs: Forgot to add Font to our serialization stuff.
3262
3263 2007-12-05  Andreia Gaita <avidigal@novell.com>
3264
3265         * Control.cs: When updating the zorder, ignore windows that are not
3266         mapped. Fixes #342509
3267
3268 2007-12-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3269
3270         * ListViewItem.cs: Actually implement serialization on this class.
3271
3272 2007-12-05  Gert Driesen  <drieseng@users.sourceforge.net>
3273
3274         * LinkLabel.cs: Fixed paramname of ArgumentNullException in ctor of
3275         LinkCollection. Spaces to tabs, and removed extra tabs.
3276
3277 2007-12-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3278
3279         * XplatUIX11.cs: Make toolwindows' decorations show up without causing any
3280           tests to fail (hopefully).
3281
3282 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
3283
3284         * ToolStripDropDownMenu.cs: Fill in AffectedBounds when drawing
3285         the image margin so custom renderers can correctly place it.
3286
3287 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
3288
3289         * StatusStrip.cs: Fill in AffectedBounds when drawing the grip
3290         so custom renderers can correctly place it.
3291
3292 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
3293
3294         * Application.cs: Let WM_CHAR messages flow through to controls
3295         hosted in Strips.  [Fixes bug #343972]
3296
3297 2007-12-02  Jonathan Pobst  <monkey@jpobst.com>
3298
3299         * ToolStripManager.cs: Guard against an NRE I ran into.
3300
3301 2007-12-02  Jonathan Pobst  <monkey@jpobst.com>
3302
3303         * LinkLabel.cs: Apply patch from George to fix bug 344012.  If
3304         a Link is manually added to the Links collection, we need to set
3305         its owner, so it can invalidate properly.
3306         [Fixes bug #344012]
3307
3308 2007-11-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3309
3310         * ListView.cs: When changing ListViewItem.Position (which calls
3311         ListView.ChangeItemLocation), invalidate not only the area
3312         corresponding to the main item, but also to the area occupied
3313         by the items being moved.
3314
3315 2007-11-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3316
3317         * ListView.cs: When changing the position of a given item,
3318         don't use item bounds, but item areas (which includes the item spacing
3319         between them). Also, use first/last position if the requested
3320         position is outside bounds (as .Net does). Invalidate the previous and
3321         new bounds. Finally, in ItemControl.ItemsMouseDown use the actual item
3322         in a specific position, instead of directly accessing Items collection
3323         (this is done to get the right item - remember an Item can have a
3324         different position in the grid than in the Items collection).
3325
3326 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
3327
3328         * MessageBox.cs: Calculate text area instead of just top left, this rect 
3329         area will be used in DrawString. Fixes bug #343364.
3330
3331 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
3332
3333         * MessageBox.cs: Calculate max amount for text area width, it must be 60% of
3334         screen width. Partially fixes bug #343364.
3335
3336 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
3337
3338         * NotifyIcon.cs: Remove duplicated code before call realculate and put this
3339         code inside recalculate, it makes code more simple.
3340
3341 2007-11-22  Everaldo Canuto  <ecanuto@novell.com>
3342
3343         * NotifyIcon.cs: When recalculate icon verify if icon is active to decide
3344         between update or add icon. Fixes bug #324344.
3345
3346 2007-11-21  Andreia Gaita <avidigal@novell.com>
3347
3348         * XPlatUIX11.cs: Do not treat tool windows as if they have no 
3349         window manager, since that stretches the drawing area to include
3350         the window decorations, and they get hidden. Reverts r84444 and fixes
3351         #335849 and #342790 (mdi and pdn3 regression)
3352
3353 2007-11-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3354
3355         * ListView.cs: When setting focused item, try to give focus to the
3356         previous one _only_ if the previous one remains valid. 
3357         Fixes #342504.
3358
3359 2007-11-20  Jonathan Pobst  <monkey@jpobst.com>
3360
3361         * Application.cs: Revert r89650, as it broke a common case to fix
3362         an obscure case.  Fixes bug #342606.
3363
3364 2007-11-20  Everaldo Canuto  <ecanuto@novell.com>
3365
3366         * ThemeWin32Classic.cs: Fix extra space on end of tooltip.
3367
3368 2007-11-20  Everaldo Canuto  <ecanuto@novell.com>
3369
3370         * ThemeWin32Classic.cs: Fix tooltip text align removing horizontal 
3371         alignment. [Fixes #324228]
3372
3373 2007-11-19  Jonathan Pobst  <monkey@jpobst.com>
3374
3375         * ToolStrip.cs: Handle flow layout in GetPreferredSize to fix PDN3.
3376         [Fixes bug #342123]
3377
3378 2007-11-19  Everaldo Canuto  <ecanuto@novell.com>
3379
3380         * Form.cs: Check for empty Text before assign to cp.Caption in CreateParams
3381         it prevent problems when empty captions. [Fixes #342141]
3382
3383 2007-11-19  Jonathan Pobst  <monkey@jpobst.com>
3384
3385         * Label.cs: Use Size instead of None.  Fixes bug #342077.
3386
3387 2007-11-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3388
3389         * ListViewItem.cs: Implement 2.0 FindNearestItem method.
3390
3391 2007-11-17  Jonathan Pobst  <monkey@jpobst.com>
3392
3393         * MenuStrip.cs: Guard against a NRE when a MdiWindowItem is set
3394         but there isn't a MdiContainer.
3395         [Fixes bug #342358]
3396
3397 2007-11-17  Jonathan Pobst  <monkey@jpobst.com>
3398
3399         * TextControl.cs: Don't recalculate document if the recalc_start and
3400         recalc_end hasn't changed.
3401         [Fixes bug #342505]
3402
3403 2007-11-17  Gert Driesen  <drieseng@users.sourceforge.net>
3404
3405         * DataGridViewTextBoxCell.cs: Removed CWL.
3406
3407 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3408
3409         * ListView.cs: Implement 2.0 SearchForVirtualItem event support.
3410
3411 2007-11-16  Jonathan Pobst  <monkey@jpobst.com>
3412
3413         * TextControl.cs: Missed some code for bug 341534 to trigger a
3414         recalculation when the font changes.
3415
3416 2007-11-16  Andreia Gaita <avidigal@novell.com>
3417
3418         * Control.cs: When updating the zorder, check if the child to update is
3419         the same control that is set to always be on top (i.e., scrollbars), and 
3420         just put it on top directly. Fixes BadMatch error on pdn3
3421
3422 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3423
3424         * ListView.cs: Throw the needed exceptions for FindNearestItem.
3425
3426 2007-11-16  Jonathan Pobst  <monkey@jpobst.com>
3427
3428         * Control.cs: Don't perform a new layout when a label changes its text,
3429         cause label handles its own autosizing.
3430         [Fixes bug #342077]
3431
3432 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3433
3434         * ListView.cs: Implement 2.0 FindNearestItem methods.
3435
3436 2007-11-15  Jonathan Pobst  <monkey@jpobst.com>
3437
3438         * ToolStripPanel.cs: Make Join at least add the control to the panel,
3439         even if the rest of what Join does isn't supported.  Add some more
3440         support for vertical toolbars.
3441         * ToolStripPanelRow.cs: Add some more support for vertical toolbars.
3442         [Fixes the application breaking parts of bug #341998]
3443
3444 2007-11-15  Jonathan Pobst <monkey@jpobst.com>
3445
3446         * ToolStripItem.cs: When determining if we have a check/image margin,
3447         we need to look at ShowCheckMargin as well as ShowImageMargin.
3448
3449 2007-11-15  Geoff Norton  <gnorton@novell.com>
3450
3451         * XplatUIOSX.cs: Rename to...
3452         * XplatUICarbon.cs: and refactor all event handling out to the new event handling
3453         system in System.Windows.Forms.CarbonInternal.  Lots of code cleanup as well.
3454
3455 2007-11-15  Jonathan Pobst  <monkey@jpobst.com>
3456
3457         * KeysConverter.cs: The default values should be an array of Keys, not
3458         strings.  Also, the array has more values for 2.0.
3459         [Fixes bug #341851]
3460
3461 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
3462
3463         * Application.cs: Change ExecutablePath to use 
3464         Process.GetCurrentProcess ().MainModule.FileName instead of Assembly.GetEntryAssembly.
3465         [Fixes bug #323552]
3466
3467 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
3468
3469         * LineTag.cs: Don't attempt to draw '\r', treat it like it doesn't exist.
3470         When measureing CR or LF, use /u000D instead of /u0013. (Hex, not decimal.)
3471         * TextControl.cs: Fix a case in GetLineEnding where a \n before a \r would
3472         be ignored.  Create a new GetLineEnding that can specify which types of
3473         line endings to look for.  On Insert, only create new lines for \n and \r\n.
3474         [Fixes bug #324274]
3475
3476 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
3477
3478         * TextBoxBase.cs: As we loop through each line changing the font, tell
3479         the document that the line needs to be recalculated.  Fixes bug #341534.
3480
3481 2007-11-13  Jonathan Pobst  <monkey@jpobst.com>
3482         [Another round of refactoring]
3483         * Line.cs: Add DeleteCharacters.
3484         * LineTag.cs: Add Delete.
3485         * TextBoxBase.cs: Update to use new methods.
3486         * TextControl.cs: Refactor the Delete* methods.
3487
3488 2007-11-13  Everaldo Canuto  <ecanuto@novell.com>
3489
3490         * Win32DnD.cs: Implement Win32 Drop files, thank you Srikanth Madikeri for
3491         the patch. [Fixes #324856]
3492
3493 2007-11-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3494
3495         * ListView.cs:
3496         * ListViewItem.cs: Add an initial implementation of
3497         2.0 ListViewItem.Position getter.
3498
3499 2007-11-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3500
3501         * ListView.cs: Add a reordered_items_indices array, to allow us
3502         to have a different sorting than that of Items (the sorting in Items
3503         could not match the actual sorting in screen). This is needed to
3504         implement a pair of 2.0 features.
3505         * ListViewItem.cs: Add a DisplayIndex property to keep track of the
3506         actual position in the ListView grid, since it could have a position
3507         different than its Index (position in ListViewItemCollection). 
3508
3509 2007-11-09  Jonathan Pobst  <monkey@jpobst.com>
3510
3511         * Label.cs: Add StringFormatFlags.LineLimit.  This tells DrawString to
3512         not draw partial lines.
3513         * LinkLabel.cs: Change FormatFlags setter from = to |= so that the
3514         LineLimit flag from the base is preserved.
3515         Fixes the windows part of bug #338965.
3516
3517 2007-11-09  Jonathan Pobst  <monkey@jpobst.com>
3518
3519         * TextBoxBase.cs: Move handling of the enter key from KEYDOWN to CHAR
3520         so that it can be canceled in KeyPress.
3521         Fixes bug #340078.
3522
3523 2007-11-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3524
3525         * ListView.cs: In ItemControl, reset mouse-handling related
3526         fields even if we dont' have items (we still should reset them when
3527         we had items but then called Items.Clear). Partially based in a patch
3528         by George Giolfan.
3529         Fixes #338399.
3530
3531 2007-11-08  Gert Driesen  <drieseng@users.sourceforge.net>
3532
3533         * Application.cs: In ProductVersion first try AssemblyFileVersion
3534         before falling back to assembly version. Fixes bug #339787.
3535
3536 2007-11-08  Andreia Gaita <avidigal@novell.com>
3537
3538         * HtmlElement.cs: Implement InnerText setter.
3539         * WebBrowserBase.cs: Implement Navigated event support.
3540         Add flag to track when the browser "document" is ready to be retrieved.
3541         * WebBrowser.cs: Implement CanGoBack, CanGoForward, Title, Url.
3542         Make sure browser document is ready before retrieving it.
3543         Clean up cached objects (document) when moving to a new page through
3544         any of the navigation methods.
3545         Use the new Mono.WebBrowser.INavigation interface to control navigation.
3546         Implement OnNavigated event.
3547
3548 2007-11-07  Jonathan Pobst  <monkey@jpobst.com>
3549
3550         * ThemeWin32Classic.cs: Don't draw the background in DrawLabel or
3551         DrawLinkLabel, this is handled by OnPaintBackground.
3552         Fixes bug #339565, part II.
3553
3554 2007-11-07  Andreia Gaita <avidigal@novell.com>
3555
3556         * Control.cs: Revert r88915. Selecting text on a textbox depends on
3557         getting a Select call on click, so this call needs to be here for now.
3558         Unfixes #325809
3559
3560 2007-11-07  Geoff Norton  <gnorton@novell.com>
3561
3562         * OSXStructs.cs: Add the kEventClassApplication constants.
3563         * XplatUIOSX.cs: Send a WM_LBUTTONDOWN to the Grab window when the 
3564         application is deactivated otherwise Menu overlays linger on top of
3565         other application windows.
3566
3567 2007-11-07  Geoff Norton  <gnorton@novell.com>
3568
3569         * XplatUIOSX.cs: Dont throw an exception on OverrideCursor as we
3570         dont support cursors yet anyways.  This allows Reflector to run.
3571
3572 2007-11-07  Geoff Norton  <gnorton@novell.com>
3573
3574         * XplatUIOSX.cs: Implement DragSize.
3575
3576 2007-11-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3577
3578         * ListView.cs: When we receive a WM_LBUTTONDOWN message in
3579         ItemControl, request the focus, as .Net does. This is needed after 
3580         Control does not request focus anymore when it receives a
3581         WM_LBUTTONDOWN.
3582
3583 2007-11-06  Jonathan Pobst  <monkey@Jpobst.com>
3584
3585         * Label.cs: Make DrawImage internal so it can be called from Theme code.
3586         Remove the DrawImage call from OnPaint.
3587         * LinkLabel.cs: Remove the DrawImage call from OnPaint.
3588         * ThemeWin32Classic.cs: Call DrawImage after we paint the background,
3589         but before we draw the text for DrawLabel and DrawLinkLabel.
3590         Fixes bug #339565.
3591
3592 2007-11-05  Andreia Gaita <avidigal@novell.com>
3593
3594         * Control.cs: Remove select call on click. Fixes #325809
3595
3596 2007-11-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3597
3598         * ListViewItem.cs: Add 2.0 Position property getter.
3599
3600 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3601
3602         * ListView.cs: Add 2.0 BackgroundImageTiled property.
3603         Also, to make it work properly, change item's BackColor and
3604         BackgroundImageLayout as needed.
3605         * ThemeWin32Classic.cs: Don't fill any background rectangle 
3606         in ListView.ItemControl when drawing items; just let the Control
3607         base implementation fill it.
3608
3609 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3610
3611         * ListViewGroup.cs: Adda TypeConverter attribute for this class,
3612         as well as adding a custom 'dummy' Converter, as .net does.
3613
3614 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3615
3616         * PropertyGridView.cs: When clicking drop-down button,
3617         select an index in the listbox only if our standard values collection 
3618         has one or more items.
3619
3620 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3621
3622         * ListViewItem.cs: Add a DefaultValue attribute to 2.0 IndentCount
3623         property.
3624
3625 2007-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
3626
3627         * PropertyGrid.cs: In PropertySort, update the toolbar buttons even if
3628         the value is not changed. This ensure a pushed button remains in that
3629         state when clicked again. When switching the value of PropertySort
3630         between Categorized and CategorizedAlphabetical, do not update the
3631         grid items and do not fire a PropertyChangedEvent. When clicking the
3632         sorting buttons, do not modify the PropertySort value when switching
3633         between Categorized and CategorizedAlphabetical but only update the
3634         button state.
3635
3636 2007-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
3637
3638         * Label.cs: Make AutoEllipsis internal on 1.0 profile. Code
3639         formatting.
3640         * PropertyGrid.cs: Also put Categorized button in pushed state when
3641         PropertySort is CategorizedAlphabetical. Set AutoEllipsis to true
3642         for help description label.
3643
3644 2007-11-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3645
3646         * ListView.cs: When calculating the biggest item for a given column,
3647         take into account 2.0 LIstViewItem.IndentCount, since it directly affects
3648         the item's width.
3649
3650 2007-11-03  Gert Driesen  <drieseng@users.sourceforge.net>
3651
3652         * PropertyGrid.cs: Fixed default value for PropertySort. Allow invalid
3653         value for PropertySort on 1.0 profile. PropertySortChanged event
3654         should only be fired on 2.0 profile. Fixed NullReferenceException
3655         in UpdateSortLayout when PropertyGrid contains no items.
3656
3657 2007-11-02  Jonathan Pobst  <monkey@jpobst.com>
3658
3659         * MessageBox.cs: Patch from George to implement MessageBoxDefaultButton.
3660         [Fixes bug #338554]
3661
3662 2007-11-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3663
3664         * ListViewItem.cs: Implement 2.0 IndentCount property.
3665
3666 2007-11-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3667
3668         * X11Dnd.cs: When sending status in a dnd operation, compare current
3669         effect with the 'allowed' field instead of 'drag_data.Allowed', since
3670         the later is only created when a Winforms application is both the
3671         source and the target, but not when we are the target only.
3672         Fixes part of #324251.
3673
3674 2007-11-01  Geoff Norton  <gnorton@novell.com>
3675
3676         * XplatUI*.cs: Add GetPreviousWindow utility method to return windows in
3677         order of Z-Order.
3678         * Hwnd.cs: Add initial implementation of GetClippingRectangles to clip sibling 
3679         children out of the drawing view on mac.
3680         * XplatUIOSX.cs: Code cleanup.  Handle more window grab cases.  Fix SetParent
3681         to handle the orphan and invisible case (1/2 fixes TabStrip drawing in FormsTest)
3682         
3683 2007-11-01  Jonathan Pobst  <monkey@jpobst.com>
3684
3685         * ToolStrip.cs: Don't process MouseUp for a ToolStripControlHost, clicking
3686         on the non-hosted-control part of it shouldn't do anything.
3687         Fixes part of bug #327498.
3688
3689 2007-11-01  Andreia Gaita <avidigal@novell.com>
3690
3691         * WebBrowserBase.cs: revert previous change, resize can be called anytime
3692
3693 2007-11-01  Jonathan Pobst  <monkey@jpobst.com>
3694
3695         * Application.cs: When a toolstrip has the keyboard input loop, let messages
3696         it does not use flow through to controls that are hosted in menus.
3697         Same with mouse clicks.
3698         * Form.cs: Don't close all menus on click if the click is on a
3699         control hosted in a menu.
3700         Fixes part of bug #327498, and part of bug #325969.
3701
3702 2007-10-31  Andreia Gaita <avidigal@novell.com>
3703
3704         * WebBrowserBase.cs: Only call resize on gluezilla when it is active
3705
3706 2007-10-31  Jonathan Pobst  <monkey@jpobst.com>
3707
3708         * TextBoxBase.cs: Use int.MaxValue for MaxLength instead of magic number.
3709         Addresses an issue raised in bug #336218.
3710
3711 2007-10-30  Jonathan Pobst  <monkey@jpobst.com>
3712
3713         * Form.cs: Patch from George that moves the conversion of ClientSize->Size
3714         for PreferredSize from OnLayout to PreferredSize.  Fixes bug #325242.
3715
3716 2007-10-30  Andreia Gaita <avidigal@novell.com>
3717
3718         * ContainerControl.cs: Check if the active control is a
3719         child of a removed control and update active_control accordingly.
3720         Fixes #329718
3721
3722 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
3723
3724         * DateTimePicker.cs: Throw ArgEx if the Value is set outside the MinDate
3725         or the MaxDate.  Fixed bug #337693.
3726
3727 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
3728
3729         * XplatUIWin32.cs: Always call SetWindowPos with SWP_FRAMECHANGED flag
3730         after calling SetWindowLong for a form, to force an immediate NC refresh.
3731         Fixes first part of bug #325150.
3732
3733 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
3734
3735         * ComboBox.cs: Don't try to resize the listbox when we are DropDownStyle
3736         simple.  Fixes the last part of bug #322668.
3737
3738 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
3739
3740         * MessageBox.cs: If the owner is TopMost, then the MessageBox form
3741         needs to be TopMost as well, or else the MessageBox is under the form.
3742         Patch by George fixes bug #325300.
3743
3744 2007-10-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3745
3746         * X11Dnd.cs: When starting a new drag operation, reset the static
3747         'dropped' field to false (previously the implementation didn't reset
3748         it and got confused after the first drag).
3749         Fixes #325071.
3750
3751 2007-10-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3752
3753         * PropertyGrid.cs: When PropertySort changes, re-organize the grid
3754         items instead of re-creating them all. For this purpose we now cache
3755         both CategoryGridEntry items and the GridEntries for the main object's
3756         properties.
3757         * GridItem.cs: Make SetParent method abstract.
3758         * GridEntry.cs: Override the SetParent method (already there, but now
3759         we override it).
3760         Fixes #324866.
3761
3762 2007-10-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3763
3764         * PropertyGridView.cs: Set the plus/minus bounds of a grid item
3765         depending on its depth (as .Net does). Update the needed values in
3766         MouseDown handler. Also draw the plus/minus rect after the label,
3767         so we don't draw on top of it.
3768
3769 2007-10-24  Everaldo Canuto  <ecanuto@novell.com>
3770
3771         * MenuAPI.cs: Return true as default in ProcessKeys to prevent keys to be
3772         processed by forms or controls when menu is active. [Fixes #333548]
3773
3774 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
3775
3776         * ToolStripItem.cs: Don't focus a ToolStripControlHost on Select of the
3777         parent doesn't have focus.  This was causing ToolStripTextBoxes to take
3778         focus on mouse over.
3779
3780 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
3781
3782         * TextControl.cs: Code cleaning, simplifying.
3783
3784 2007-10-24  Geoff Norton  <gnorton@novell.com>
3785
3786         * XplatUIOSX.cs: Route mouse events to the grab hwnd on mouse down as well.
3787         * XplatUIStructs.cs: Fix the ToString method of POINT and MSG.
3788
3789 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
3790
3791         * TextBoxBase.cs: If the user sets maxlength to 0, it should mean
3792         the cap is maxvalue, not actually 0.  [Fixes bug #336218]
3793
3794 2007-10-24  Andreia Gaita <avidigal@novell.com>
3795
3796         * SendKeys.cs: apply jpobst's patch to bug #332409
3797
3798 2007-10-23  Andreia Gaita <avidigal@novell.com>
3799
3800         * TextBoxTextRenderer.cs: Lower bounds max size to Int16.MaxValue, the 
3801         Windows 2000 gdi DrawText call doesn't draw if it's higher than that
3802         for some reason
3803
3804 2007-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3805
3806         * PropertyGridView.cs: If a property has an UIEditor available,
3807         make the drop-down/editor button available only if the property
3808         is _not_ read only.
3809
3810 2007-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3811
3812         * PropertyGridView.cs: Don't make the grid item textbox 
3813         editable when a drop-down control is available, but 
3814         CanConvertFrom (typeof (string)) is false or GetStandardValuesExclusive () is
3815         true. The same bur the color of the grid item value's label.
3816
3817 2007-10-22  Geoff Norton  <gnorton@novell.com>
3818
3819         * OSXStructs.cs: Add the needed constants for keyboard modifiers.
3820         * OSXKeyboard.cs: Initial support for keyboard and limited modifiers.
3821         * XplatUIOSX.cs: New reversible frame support.  Wire in the new keyboard
3822         driver.  Padd the bottom of all real windows so the resize thumb doesn't
3823         obscure scroll/status bars.
3824
3825 2007-10-22  Jonathan Pobst  <monkey@jpobst.com>
3826
3827         * WindowsFormsSection.cs: Implement.
3828
3829 2007-10-22  Everaldo Canuto  <ecanuto@novell.com>
3830
3831         * MdiClient.cs: Maximize new active mdi child when a maximized child is 
3832         closed see #325434 patch.
3833
3834 2007-10-22  Everaldo Canuto  <ecanuto@novell.com>
3835
3836         * MdiClient.cs: Fix remaining issues from layout vertical and horizontal,
3837         see #325434 patch.
3838
3839 2007-10-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3840
3841         * PropertyGridView.cs: When showing the textbox for a grid item,
3842         have two local variables to store the read-only and non-editable
3843         status of a grid item (we were previously using just one variable
3844         to do this, when actually they are slightly different).
3845         Fixes part of #325023.
3846
3847 2007-10-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3848
3849         * PropertyGridView.cs: When showing a drop-down list, try to get the
3850         values using TypeConverter.ConvertTo (to convert to a string). Fixes
3851         part of #325023.
3852
3853 2007-10-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3854
3855         * PropertyGrid.cs: When updating a property and populating sub grid
3856         items, remove the previous ones, and invalidate the specific area.
3857         * PropertyGridView.cs: A new InvalidateBelowGridItem to invalidate the
3858         area behind a grid item.
3859         * GridItemCollection.cs: Add an internal Clear method, to allow us to
3860         clean the items if needed (specially for controls implementing 
3861         ICustomTypeDescriptor and returning a variable number of properties).
3862         Fixes #324865.
3863
3864 2007-10-19  Jonathan Pobst  <monkey@jpobst.com>
3865
3866         * TextControl.cs: Clean up and document the Insert function.
3867
3868 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
3869
3870         * TextControl.cs: Make sure we know our start point for updating the view
3871         in ReplaceSelection.  Fixes an issue where pasting multiline text wouldn't
3872         update the view.
3873
3874 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
3875
3876         * ListView: Couple of corcompare fixes.
3877
3878 2007-10-17  Geoff Norton  <gnorton@novell.com>
3879
3880         * XplatUIOSX.cs: Implement support for window icons in the dock.  Set
3881         the title caption of real window.
3882
3883 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
3884
3885         * ErrorProvider.cs: Add the error provider's internal window to a 
3886         containercontrol when the parent changes.  [Fixes bug #329714]
3887
3888 2007-10-17  Geoff Norton  <gnorton@novell.com>
3889
3890         * XplatUIOSX.cs: Implement ScrollWindow.  Properly create TOOLWINDOWs.
3891         When we make a new window; restore the old active window - fixes dialogs.
3892
3893 2007-10-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3894
3895         * PropertyGridView.cs: Look for RefreshPropertiesAttribute
3896         when modifying a property, and if found then invalidate as
3897         requested.
3898         Fixes part of #324865.
3899
3900 2007-10-17  Geoff Norton  <gnorton@novell.com>
3901
3902         * XplatUIOSX.cs: Re-enable the native driver on the Mac.  This is still
3903         highly experimental.  Fixed coordinate translation.  Fixed window locations.
3904         Initial support for clipping. Implemented NC areas and menus.  Support for
3905         launching from command line from Will Johansson (wjohansson@atacomm.com).
3906         * OSXStructs.cs: Add ProcessSerialNumer (Patch from Will Johansson
3907         wjohansson@atacomm.com)
3908         * Hwnd.cs: Add some internal structures for tracking Mac cursors.
3909         Hwnds now track the existence of all of their children for Mac clipping.
3910     * XplatUI.cs: Re-enabled the native driver on the Mac.
3911
3912 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
3913
3914         * Line.cs: Move the InsertString function to here.
3915         * TextControl.cs: Cleanup some duplicate code, move some InsertString
3916         functionality to Line.
3917
3918 2007-10-17  Geoff Norton  <gnorton@novell.com>
3919
3920         * ComboBox.cs: Destroy the popup after hiding it.  Fixes #322582
3921
3922 2007-10-16  Gert Driesen  <drieseng@users.sourceforge.net>
3923
3924         * ButtonBase.cs: Fixed IsDefault to use assigned value instead of
3925         always setting value to true.
3926         * Form.cs: When changing AcceptButton, notify new and original button.
3927
3928 2007-10-16  Jonathan Pobst  <monkey@jpobst.com>
3929
3930         * Form.cs: Guard against an NRE when the user sets the AcceptButton to
3931         a custom control that implements IButtonControl instead of an actual
3932         button.  [Fixes bug #334244]
3933
3934 2007-10-15  Everaldo Canuto  <ecanuto@novell.com>
3935
3936         * Form.cs: Change SelectActiveControl to internal, we need to call it in
3937         MdiWindowManager.
3938         
3939         * MdiWindowManager.cs: In RaiseActivated call SelectActiveControl to select
3940         active control when activate a new mdi window.
3941         
3942         [Fixes bug #330495]
3943
3944 2007-10-15  Everaldo Canuto  <ecanuto@novell.com>
3945
3946         * ComboBox.cs: Dont implicit add listbox_ctrl on OnHandleCreated because it
3947         is already added.
3948         [Fixes bug #333617]
3949
3950 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
3951
3952         * TextControl.cs: When SuspendRecalc is first called, reset the recalc_start
3953         to MaxValue and recalc_end to MinValue.  Currently, recalc_start is always 1,
3954         so we always recalculate the whole document instead of just the new part.
3955         [Fixes bug #325082]
3956
3957 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
3958
3959         * LineTag.cs: Fix a case where the GetCharIndex would not return 0
3960         when the mouse was to the left of the first character in the line.
3961
3962 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
3963
3964         * TextBox.cs, TextBoxBase.cs: When setting the document's password
3965         character, use the property instead of the variable so that the
3966         UseSystemPasswordChar property is taken into account.
3967         [Fixes bug #333748]
3968
3969 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3970
3971         * FolderBrowserDialog.cs: When a node is right clicked and the "New
3972         folder" contex menu appears, actually add the new folder to it, even
3973         if the node is not currently selected. Still use SelectedNode in case 
3974         there wasn't found a node under the pointer.
3975         Fixes #325452.
3976
3977 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3978
3979         * ListViewItem.cs: When retrieving the focused state, the index check
3980         should be done only when ListView is in virtualmode, as it is an
3981         expensive check for normal mode.
3982
3983 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3984
3985         * ListViewItem.cs: Make the focus state information be stored
3986         in the ListView, not in the items. This is done to match the MS
3987         behaviour for items that are not yet part of a ListView control;
3988         besides that, since just one item can be focused at the same time,
3989         we save a little space in our items.
3990         Fixes part of #331643.
3991
3992 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
3993
3994         * ComboBox.cs: When focus is lost, deselect the text. When setting
3995         text of control, select all text. Do not hide selection when control
3996         does not have focus. Fixes bug #333663.
3997
3998 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
3999
4000         * TextBoxBase.cs: On 2.0 profile, throw ArgumentOutOFRangeException
4001         instead of ArgumentException when SelectionLength is set to negative
4002         value. Added same check to SelectionStart. Code formatting.
4003
4004 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
4005
4006         * TextBoxBase.cs: Invalidate selection before changing SelectionLength
4007         or SelectionStart. Code formatting.
4008
4009 2007-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4010
4011         * TreeView.cs: drag_begin_x and drag_begin_y are now set to -1,
4012         indicating that there was not a previous drag-and-drop operation going
4013         on.
4014         Fixes part of #325071.
4015
4016 2007-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4017
4018         * X11Dnd.cs: When DragEventArgs.Effect is set to a value not part of
4019         AllowedEffect, don't let the drop operation happen. 
4020         Fixes #32580.
4021
4022 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
4023
4024         * TextRenderer.cs: Use GDI on Windows in both the 1.1 and 2.0 profiles.
4025
4026 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
4027
4028         * Line.cs, LineTag.cs: Guard against an exception when Document.Clear
4029         is called.
4030
4031 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
4032
4033         * Line.cs: Add a method that finds the tag that contains an x-coord.
4034         * LineTag.cs: Add a method that finds the character at an x-coord using
4035         a binary search, the old way was a linear search.
4036         * TextControl.cs: Change FindCursor to use the above new methods.
4037
4038 2007-10-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4039
4040         * DragEventArgs.cs: Allow Effect to have a non allowed value (a
4041         value different than AllowedEffect). This should be possible to
4042         indicate that dragging is not possible in some control/area.
4043
4044 2007-10-11  Jonathan Pobst  <monkey@jpobst.com>
4045
4046         * LineTag.cs: Encapsulate all variables with properties.  Calculate ascent/
4047         descent internally when font changes instead of outside code being responsible
4048         for setting it.
4049         * Line.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Use Tag properties
4050         instead of accessing internal variables.
4051
4052 2007-10-09  Everaldo Canuto  <ecanuto@novell.com>
4053
4054         * MdiClient.cs: Always call ArrangeIconicWindows before any arrangement and
4055         remove special treatment for ArrangeIcons since it is already arranged.
4056
4057 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
4058
4059         * TextBoxTextRenderer.cs: Draw takes a Color now instead of a Brush, as
4060         the Win32 backend uses Color.
4061         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
4062         Refactor to store a Color instead of a Brush for Color.
4063
4064 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
4065
4066         * Line.cs, LineTag.cs: Override GetHashCode to make a compiler warning go
4067         away.  I didn't realize I needed this when I refactored these earlier.
4068
4069 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
4070
4071         * LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Refactor to
4072         store a Color structure and use the ResPool for back color instead of
4073         holding onto brushes.
4074
4075 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
4076
4077         * TextControl.cs: Fix how we calculate the end of the tag we are drawing.
4078         [Fixes bug #325592]
4079
4080 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
4081
4082         * MonthCalendar.cs: When ShowWeekNumbers is changed, force the calendar
4083         to recalculate its size.  Fixes a part of bug #331052.
4084
4085 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
4086
4087         * NotifyIcon.cs: Set the correct mouse button when handling right mouse
4088         button.  Fixes a part of bug #331052.
4089
4090 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
4091
4092         * Form.cs: Trim NewLine before setting XPlatUI.SetText, and when setting
4093         the CreateParams.
4094         * ThemeWin32Classic.cs: Trim NewLine before drawing MDI children window
4095         decorations.
4096         [Fixes bug #330986]
4097
4098 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
4099
4100         * TextBoxTextRenderer.cs: Don't make this a static class, as static
4101         doesn't exist in 1.1.  (Thanks jb!)
4102
4103 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
4104
4105         * TextBoxTextRenderer.cs: Abstract text measuring and drawing to this
4106         class to allow us to use different backends on different platforms.
4107         Linux uses the current [Draw|Measure]String backend.  Windows uses
4108         the TextRenderer.[Draw|Measure]Text backend, which uses GDI instead
4109         of GDI+.  This leads to better looking text and more accurate measurements
4110         on Windows, fixing many of the reported issues.
4111         * Line.cs, LineTag.cs: Update to use TextBoxTextRenderer.
4112
4113 2007-10-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4114
4115         * FolderBrowserDialog.cs: When running on Windows,
4116         try to detect paths such "C:" and add Path.DirectorySeparatorChar,
4117         since we must match both "C:" and "C:\" forms. A little hackish, but
4118         works.
4119         Fixes #325247.
4120
4121 2007-10-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4122
4123         * ListView.cs: When calling EndEdit (after editing an item),
4124         create a new instance of LabelEditEventArgs to keep clean the fields
4125         in case we get a new call to BeginEdit; also do Application.DoEvents
4126         to have focus in synch. This is a fix similar to TreeView's #325244.
4127
4128 2007-10-07  Andreia Gaita <avidigal@novell.com>
4129
4130         * HtmlDocument.cs, HtmlElement.cs, WebBrowser.cs: Added dom support
4131         * WebBrowserBase.cs: Added dialog support, calling the
4132           WebBrowserDialogs classes for each specific dialog type.
4133
4134 2007-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4135
4136         * ListView.cs: When the last item is focused and is removed,
4137         move the focus to the previous item (in Items order). This is what MS
4138         does.
4139         Fixes #330415.
4140
4141 2007-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4142
4143         * ListView.cs: In ListViewItemCollection, make Remove call RemoveAt,
4144         instead of the opposite (RemoveAt call Remove). This is a better
4145         approach since we don't need to to a pair of traversals when using
4146         RemoveAt.
4147
4148 2006-10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4149
4150         * TreeView.cs: When Keys.Left is pressed, before trying to Collapse
4151         check that the node actually has nodes, and if not, move to the
4152         parent node instead. 
4153         Fixes #325265.
4154
4155 2006-10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4156
4157         * TreeView.cs: Move the previous change to the general case (to
4158         call Application.DoEvents in cases where the method was called by
4159         different places).
4160
4161 2007_10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4162
4163         * TreeView.cs: When calling EndEdit and we need to hide the textbox,
4164         call Application.DoEvents. This is neccessary when we get a call to
4165         BeginEdit from an AfterLabelEdit handler, because the focus always
4166         goes to the TreeView, even if we try to give it to our
4167         LabelEditTextBox. The call do Application.DoEvents seems to
4168         synchronize the focus, basically.
4169         Fixes #325244.
4170
4171 2007-10-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4172
4173         * TreeView.cs: When AfterLabelEdit event is fired, TreeNode.IsEditing
4174         should be false. This also removes some nasty recursive paths. Fixes
4175         part of #325244.
4176
4177 2007-10-04  Everaldo Canuto  <ecanuto@novell.com>
4178
4179         * MdiClient.cs: When cascade (layout) mdi window that is maximized, set the
4180         state to normal. Also resize window when cascading. Fixes #325433. 
4181
4182 2007-10-04  Jonathan Pobst  <monkey@jpobst.com>
4183
4184         * RichTextBox.cs: When SelectionColor is set to Color.Empty, use
4185         DefaultForeColor, as drawing empty colored lines isn't very useful.
4186         [Fixes the not drawn lines part of bug #324358]
4187
4188 2007-10-04  Jonathan Pobst  <monkey@jpobst.com>
4189
4190         * TextControl.cs: Move Line and LineTag classes into separate files to
4191         make things easier to find.
4192         * Line.cs, LineTag.cs: Bring coding standards up to Mono's guidelines.
4193         * RichTextBox.cs: Capitalize LineTag.Length property access.
4194         - This is purely an organizational/formatting change, no logic changed. -
4195
4196 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
4197
4198         * ThemeWin32Classic.cs: Do not show focus rectangle in radio buttons when
4199         text is empty.
4200
4201 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
4202
4203         * ThemeWin32Classic.cs: Do not show focus rectangle in checkboxes when
4204         text is empty.
4205
4206 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
4207
4208         * ComboBox.cs: On contructor use backgound_color instead of BackColor to
4209         prevent calling of OnBackColorChanged. Fixes #325321.
4210
4211 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
4212
4213         * TextBox.cs: When check enabled uses Enabled property instead of is_enabled
4214         because control can be disabled because owner is disabled.
4215
4216 2007-10-02  Jonathan Pobst  <monkey@jpobst.com>
4217
4218         * ComboBox.cs: For the 1.1 profile, the default SelectedText is
4219         string.Empty, test failed from previous change.
4220
4221 2007-10-02  Jonathan Pobst  <monkey@jpobst.com>
4222
4223         * TextBoxBase.cs: For the 1.1 profile, the default SelectedText
4224         is null, not String.Empty.  See bug #323038.
4225
4226 2007-10-01  Jonathan Pobst  <monkey@jpobst.com>
4227
4228         * TextControl.cs: Change the margins to match MS a little better.
4229         Still not perfect for X11 due to some DrawString differences, but
4230         is still an improvement over the old stuff.
4231         Partially fixes #324467.
4232
4233 2007-09-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4234
4235         * FolderBrowserDialog.cs: When using MyComputer as 
4236         RootFolder, let absolute paths be considered as valid ones. Also, use
4237         Path.DirectorySeparatorChar instead of Path.AltDirectorySeparatorChar,
4238         for Windows compatibility.
4239         Partially fixes #325247.
4240
4241 2007-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4242
4243         * FolderBrowserDialog.cs: Fix the recursive FindPathInNodes method.
4244         Also remove the stack.Count > 0 check in FBTreeView.SetSelectedNode
4245         method, since it causes the dialog to not select folders directly
4246         under the root path (when setting SelectedPath property).
4247
4248 2007-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4249
4250         * TreeNode.cs: When calling Expand/Collapse and need to call 
4251         ExpandBelow/CollapseBelow respectively, take into account
4252         partially visible nodes (previously Expanding/Collapsing
4253         a partially visible node in the bottom was not updating its +- sign).
4254
4255 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4256
4257         * TreeView.cs: When calling Expand on a TreeNode, and we need to
4258         expand nodes below (ExpandBelow), scroll the entire Viewport
4259         area if the node is above it and not visible (instead of scrolling
4260         the area from node's Bottom, which applies only when the node is
4261         visible).
4262         Fixes #325266.
4263
4264 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4265
4266         * TreeView.cs: When calling ExpandAll, set SelectedNode to the top
4267         node in the bottom area (as .Net does). This is done to preserve the
4268         scroll position when ExpandAll is called before handle is created for
4269         the 1.1 profile (bottom area, as opposed to top area in 2.0).
4270         Fixes #324103.
4271
4272 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4273
4274         * TreeView.cs: When calling ExpandAll, don't move the scroll to the 
4275         bottom area if we are in fact not using the vertical scroll bar.
4276         Fixes #324824.
4277
4278 2007-09-27  Jonathan Pobst  <monkey@jpobst.com>
4279
4280         * Control.cs: Comment out a double buffering optimization that doesn't
4281         take into account invalidates created in OnPaint, causing the control
4282         to never be redrawn.  It would take quite a bit of work to work around
4283         this, but I left it commented with an explanation for later possible
4284         optimization.
4285         [Fixes bug #328681]
4286
4287 2007-09-27  Jonathan Pobst  <monkey@jpobst.com>
4288
4289         * Control.cs: Ask parent to perform a layout if control is AutoSize and
4290         the text changes.
4291         * RadioButton.cs: Implement GetPreferredSizeCore.
4292         [Fixes bug #328672]
4293
4294 2007-09-26  Jonathan Pobst  <monkey@jpobst.com>
4295
4296         * RichTextBox.cs, TextBoxBase.cs, WindowsFormsSynchronizationContext.cs:
4297         corcompare stuffs.
4298
4299 2007-09-26  Jonathan Pobst  <monkey@jpobst.com>
4300
4301         * Application.cs: Move the sync context stuff to Run instead of RunLoop
4302         so that it doesn't get uninstalled on modal forms.
4303         * Control.cs: Install a sync context when a control is created.
4304         * WindowsFormsSyncronizationContext.cs: Create a private static control
4305         to invoke on.  This is easier than trying to find a created control we
4306         can use.
4307         [Fixes bug #327608]
4308
4309 2007-09-25  Jonathan Pobst  <monkey@jpobst.com>
4310
4311         * Application.cs: Install a WindowsFormsSynchronizationContext in the
4312         run loop, and uninstall it when done.
4313         * WindowsFormsSynchronizationContext.cs: Implement.
4314         [Fixes the common case in bug #327608]
4315
4316 2007-09-23  Gert Driesen  <drieseng@users.sourceforge.net>
4317
4318         * DataGridViewCellCollection.cs: Added argument checks for indexers.
4319         Use case-insensitive lookup of column name in indexer. Code
4320         formatting.
4321
4322 2007-09-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4323
4324         * TreeNode.cs: When collapsing or expanding a node, check whether its
4325         change will affect the visible area (we were previously doing a
4326         IsVisible check, but that check is not enough since children nodes
4327         could be still visible). Fixes part of #325266.
4328
4329 2007-09-21  Jonathan Pobst  <monkey@jpobst.com>
4330
4331         * TreeView.cs: Always select the first node when the TreeView gets
4332         focus if there is no currently selected node.
4333         [Fixes bug #324279]
4334
4335 2007-09-21  Jonathan Pobst  <monkey@jpobst.com>
4336
4337         * TreeView.cs: Do not raise BeforeSelect or AfterSelect when the
4338         node being selected is null.
4339         [Patch from Yves Bastide fixes bug #326858]
4340
4341 2007-09-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4342
4343         * TreeNode.cs: Add an internal ArePreviousNodesExpanded, to know
4344         whether all the parent nodes are expanded.
4345         * TreeNodeCollection.cs: When adding a new node an calling SetupNode,
4346         call RecalculateVisibleOrder if all previous nodes are expanded.
4347         Before that we were doing a IsVisible check, but sometimes the node
4348         is not in the visible area, but _should_already be ready, because of
4349         all previous nodes are expanded. Fixes #325259.
4350
4351 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
4352
4353         * ToolStripSplitButton.cs: Call the ButtonClick event if the button
4354         portion of the item is clicked.
4355
4356 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
4357
4358         * TextControl.cs: Do not tell the system to move the cursor if the
4359         textbox isn't focused.  Fixes part of bug #322668.
4360
4361 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
4362
4363         * ComboBox.cs: When there are no items, do not show the dropdown if
4364         the down arrow is clicked.  Fixes part of bug #322668.
4365
4366 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
4367
4368         * ToolStripComboBox.cs: Manually set the size of this control in the
4369         constructor, as it doesn't seem to be the same as DefaultSize.
4370         Fixes a failing monobuild test.
4371
4372 2007-09-19  Jonathan Pobst  <monkey@jpobst.com>
4373
4374         * DateTimePicker.cs: If the user sets MinDate to DateTime.MinValue,
4375         change it to DateTimePicker.MinDateTime.  [Fixes bug #326609]
4376
4377 2007-09-19  Jonathan Pobst  <monkey@jpobst.com>
4378
4379         * Theme.cs: FileDialogs should be using DesktopDirectory instead of
4380         Desktop.  This lets it work for people who have moved their desktops
4381         from the default location on windows.  For people who have not, both
4382         values are the same, so it shouldn't hurt anything.  [Fixes bug #325270]
4383
4384 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
4385
4386         * ToolStripControlHostTest.cs: DefaultSize is based off hosted control,
4387         but when the base constructor sets this, the control is null.  Set it
4388         again in the constructor.  Fixes a failing monobuild test.
4389
4390 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
4391
4392         * ToolStripDropDownItem.cs: Make sure Click and DropDownOpened events
4393         get called.
4394         * ToolStripSplitButton.cs: Make sure MouseDown and MouseUp events get
4395         called.
4396
4397 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
4398
4399         * ToolStrip.cs: Don't show tooltips for ToolStripTextBoxes, they
4400         will handle it themselves.
4401         * ToolStripItem.cs: When deciding what the text of a tooltip should
4402         be, use the Text property instead of the text field.
4403         * ToolStripTextBox.cs: Handle tooltips.
4404         [Fixes bugs #325417 and #325973]
4405
4406 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
4407
4408         * ToolStripDropDownButton.cs: Only drop down overflow menu with a
4409         left click.  Fixes the easy part of bug #325969.
4410
4411 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
4412
4413         * ToolStrip.cs: Set AutoSizeMode back to GrowAndShrink to refix
4414         bug #325406, but set a minimum for StatusStrip to 22 to keep
4415         bug #325390 fixed.  I think this minimum would have been figured
4416         up automatically if the grip was actually a ToolStripItem, but it
4417         currently is not.
4418
4419 2007-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4420
4421         * ListView.cs: max_label_wrapping is now 30 pixels instead of 38,
4422         as this is apparently the actual value used by .Net. Also apply
4423         ItemPadding in Details view only, and decrease the general width padding,
4424         to have only the needed. This should fix #324340 in Windows too.
4425
4426 2007-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4427
4428         * ListViewItem.cs: Don't Invalidate item if parent is inside
4429         a BeginUpdate/EndUpdate block. This prevents to have differences
4430         between the ListView and items state, as well as avoid some exceptions
4431         there.
4432         * ListView.cs: Make 'updating' field internal.
4433
4434 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
4435
4436         * ToolStripControlHost.cs: Realign control when ControlAlign changes.
4437         * ToolStripItem.cs: Use ImageScalingSize when calculating preferred
4438         size if appropriate.
4439         Fixes reopened bug #325414.
4440
4441 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
4442
4443         * ToolStrip.cs: Set AutoSizeMode back to GrowOnly.
4444         * ToolStripItem.cs: Invalidate before and after our new autosize when
4445         text changes.
4446         Fixes reopened bug #325390.
4447
4448 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
4449
4450         * ToolStripMenuItem.cs: Make sure we invalidate when clicked so
4451         mnemonics can be drawn or undrawn correctly.  Fixes reopened bug 
4452         #325044.
4453
4454 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
4455
4456         * Control.cs: Do WM_CONTEXTMENU before OnMouseUp.  [Fixes bug #325535]
4457
4458 2007-09-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4459
4460         * ColumnHeader.cs: When drawing column text, use EllipsisCharacter
4461         instead of EllipsisWord (by equistango at gmail.com). Fixes part of
4462         #82734.
4463
4464 2007-09-14  Jonathan Pobst  <monkey@jpobst.com>
4465
4466         * ToolStrip.cs: Make ToolStrip selectable when TabStop = true.  Find an
4467         item to select when the ToolStrip is selected.
4468         * ToolStripControlHost: Realign the control when the bounds or visibility
4469         change.
4470         * ToolStripItem.cs: When selected, if it's a control host, focus the control.
4471         * ToolStripOverflow.cs: When laying out the drop down, respect the item's
4472         preferred height.
4473         * ToolStripTextBox.cs: OnPaintInternal should call base.OnPaintInternal, not
4474         base.OnPaint.  Was causing text not to be drawn.
4475
4476 2007-09-14  Jonathan Pobst  <monkey@jpobst.com>
4477
4478         * SplitterPanel.cs: Ignore attempts to set AutoSizeMode.
4479
4480 2007-09-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4481
4482         * TreeView.cs: When creating the label edit text box,
4483         set is initially to Visible = false. This is done to
4484         prevent a confusion in the layout which makes it to lose
4485         focus when shown the first time. Fixes part of #82592.
4486
4487 2007-09-13 Andreia Gaita <avidigal@novell.com>
4488
4489         * WebBrowserBase.cs: add FocusOption enumeration for finer focus control
4490
4491 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
4492
4493         * ToolStrip.cs: Take Margin into account when calculating preferred
4494         size.  Also, allow preferred size to get smaller than the explicit
4495         size.
4496         * ToolStripTextBox.cs: Don't change the GetPreferredSize implementation.
4497         First step towards fixing bug #82747.
4498
4499 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
4500
4501         * TreeView.cs: Applied patch from latency@gmx.de to not paint the
4502         full row select background over the plus/minus glyph.  Also, turn
4503         off the focus rectangle for full row select since MS doesn't seem
4504         to ever paint it.  [Fixes bug #81839]
4505
4506 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
4507
4508         * ToolStrip.cs: Don't FocusInternal if there is no selected item.
4509         This was causing keyboard opened dropdowns to lose focus.
4510         [Fixes bug #82803]
4511
4512 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
4513
4514         * Control.cs: If Rectangle.Empty is passed to Invalidate, use
4515         ClientRectangle instead.  [Fixes bug #82838]
4516
4517 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
4518
4519         * SplitContainer.cs: We can't reset Visible on every layout because
4520         someone may have set Visible = false explicitly on a SplitterPanel.
4521         Make sure when we switch orientation the SplitterDistance does not
4522         change.  Fixes two failing tests.
4523
4524 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4525
4526         * TreeView.cs: Use MeasureTextInternal instead of MeasureText in
4527         TextRenderer, since the latter is only available in 2.0.
4528
4529 2007-09-13  Ivan N. Zlatev <contact@i-nz.net>
4530
4531         * Cursor.cs: Fix Cursor.Current to apply Cursor.Default.
4532         * SplitContainer.cs: Implement FixedPanel layouting.
4533
4534 2007-09-12  Andreia Gaita  <avidigal@novell.com>
4535
4536         * WebBrowserBase.cs: setup shutdown routine
4537
4538 2007-09-12  Andreia Gaita  <avidigal@novell.com>
4539
4540         * Application.cs: Let keyboard events that are targetted 
4541                 to non-mwf windows hosted inside mwf (as in, webbrowser),
4542                 propagate properly. Fixes keyboard handling on the webbrowser.
4543
4544 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4545
4546         * ListView.cs: When handling MouseUp event and we are 
4547         highligting a node with the mouse right button, don't trigger
4548         Before/AfterSelecting event, since we are not actually selecting
4549         the node.
4550
4551 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4552
4553         * TreeView.cs: When editing a node, modify the edit text box
4554         depending on the text length (as you are typing), like MS does.
4555
4556 2007-09-12  Jonathan Pobst  <monkey@jpobst.com>
4557
4558         * ToolStrip.cs: Fixup preferred size calculations for vertical toolbars. 
4559         Override GetPreferredSizeCore to perform calculations.  Remove custom
4560         autosize logic.  [Fixes bug #82739]
4561
4562 2007-09-12  Jonathan Pobst  <monkey@jpobst.com>
4563
4564         * TextBoxBase.cs: Modified should default to false.
4565
4566 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
4567
4568         * Control.cs: Update the anchoring distances even when layout is supspended.
4569         Patch provided by George fixes bug #82805.
4570
4571 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
4572
4573         * Control.cs: Provide a setter for ExplicitHeight.
4574         * TextBoxBase.cs: Now that we have the implementation for explicit heights,
4575         remove the hacks in here for requested_height.
4576         [Fixes bug #82749]
4577
4578 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
4579
4580         * ScrollBar.cs: Fix an issue reported on the lists where setting a scrollbar's
4581         Maximum to lower that its current Value caused an ArgumentException by setting
4582         the Value to the new Maximum.
4583
4584 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
4585
4586         * ThemeWin32Classic.cs: Math is hard!  Fix some math so that the TrackBar
4587         handle moves to the closest tick when it is being dragged.
4588         [Fixes bug #82751]
4589
4590 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
4591
4592         * ToolStripManager.cs: When we have added MDI buttons onto a MenuStrip, we
4593         can't let them count as real items when calculating where to merge in the
4594         user's items.  [Fixed bug #82786]
4595
4596 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
4597
4598         * ToolStripMenuItem.cs: Add a parent type check so we don't crash on people
4599         who want to add a menu item directly onto a toolstrip.
4600         [Fixes bug #82775, part II]
4601
4602 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
4603
4604         * StatusStrip.cs: Synchronize SetDisplayedItems with the ToolStrip version.
4605         * ToolStrip.cs: If a ToolStripItem set to not visible is added to a ToolStrip,
4606         don't set it to available.
4607         * ToolStripItem.cs: When Visible is changed, tell the owner to perform a layout.
4608         [Fixes bug #82727, part II]
4609
4610 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
4611
4612         * StatusStrip.cs: Change item placement to None if not visible.
4613         * ToolStripItem.cs: Invalidate when InternalVisible changes.
4614         These should have been committed to fix 82723, but I missed them.
4615
4616 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
4617
4618         * ToolStrip.cs: Make sure ItemClicked is raised before the ToolStripItem's
4619         Click, and that it is only called once.
4620         * ToolStripMenuItem.cs: Call OnClick even when there are dropdown items.
4621         * ToolStripDropDownItem.cs: Override HandleItemClick so dropdowns stay
4622         dropped down.
4623         [Fixes bug #82775]
4624
4625 2007-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4626
4627         * ColumnHeaderSample.cs: Use 5 pixels as extra height instead of 8
4628         to match .Net.
4629         * ThemeWin32Classic.cs: For the columns text, use 5 pixels as left padding
4630         instead of 8, just like above. Partially fixes #82734.
4631
4632 2007-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4633
4634         Patch by Ernesto Carrea <equistango at gmail.com>. Partially 
4635         fixes #82734.
4636
4637         * ListView.cs: Remove extra space between rows in Details view (match
4638         .Net). 
4639         * ThemeWin32Classic.cs: Header text should use ListView.Font, not
4640         the DefaultFont.
4641
4642 2007-09-08  Gert Driesen  <drieseng@users.sourceforge.net>
4643
4644         * Application.cs: Modified ProductVersion to return value of
4645         AssemblyInformationVersion if available, and fallback to assembly
4646         version. Fixes bug #82746. Code formatting.
4647         * BindingSource.cs: Remove NIE from Dispose, and mark it MonoTODO
4648         instead.
4649
4650 2007-09-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4651
4652         * Control.cs: When updating ZOrder for a child control,
4653         take into account the implicit ones (we need it in our controls
4654         using them). Fixes #82642.
4655
4656 2007-09-07  Jonathan Pobst  <monkey@jpobst.com>
4657
4658         * ToolStripItem.cs: Add support for animated images.
4659         [Fixes bug #82726]
4660
4661 2007-09-07  Jonathan Pobst  <monkey@jpobst.com>
4662
4663         * ToolStrip.cs: Make sure we aren't drawing anything that isn't 
4664         visible.  [Fixes bug #82727]
4665
4666 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
4667
4668         * ToolStripItem.cs: If AutoSize changes the size of our item, invalidate
4669         so we repaint using the new size.  [Fixes bug #82723]
4670
4671 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
4672
4673         * TreeView.cs: If ShowLines is true, we should ignore the FullRowSelect
4674         option.  [Fixes bug #81779]
4675
4676 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
4677
4678         * TreeView.cs: Override HandleClick because the StandardClick style is
4679         set to false.  According to MSDN (and testing), the click events should
4680         only be raised when the click occurs on a TreeNode.  [Fixes bug #81739]
4681
4682 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
4683
4684         * ToolStripTextBox.cs: Invalidate our textbox when it loses focus, so
4685         the border will disappear.  Fixes reopened #82653.
4686
4687 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
4688
4689         * Control.cs: If the control is autosize, and its preferred size changes
4690         when it lays out its children, tell its parent so it can be re-layed out.
4691         Fixing some of the fallout from r85433.
4692
4693 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
4694
4695         * ThemeWin32Classic.cs: Fix a NRE caused by r85427 because RadioButton
4696         and CheckBox share some code.
4697
4698 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
4699
4700         * TrackBar.cs: Only call OnScroll if we actually changed the Value of
4701         the TrackBar, not every mouse move.  [Fixed bug #82718]
4702
4703 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
4704
4705         * ThemeWin32Classic.cs: Allow a CheckBox to be rendered like a Button
4706         under 2.0 rendering.  [Fixes bug #82657]
4707
4708 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
4709
4710         * TreeView.cs: If we found a TreeNode to display a context menu, but
4711         it doesn't have one to show, let the TreeView display its menu
4712         instead.  [Fixes bug #82680]
4713
4714 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
4715
4716         * ToolStripTextBox.cs: TextBox no longer call OnPaint, we need to use
4717         OnPaintInternal instead.  Give the internal TextBox a Border property
4718         so it can draw itself more correctly.  [Fixes bug #82653]
4719
4720 2007-09-06  Zoltan Varga  <vargaz@gmail.com>
4721
4722         * HtmlHistory.cs HtmlWindow.cs HtmlWindowCollection.cs ListBindingHelper.cs WindowsFormsSection.cs WindowsFormsSynchronizationContext.cs: Stubs for missing 2.0 classes.
4723
4724 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
4725
4726         * ComboBox.cs: Adjust combobox button state to reflect current state when
4727         back to enabled = true. Fixes first issue of #82654.
4728
4729 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
4730
4731         * Control.cs: Fix last patch regression, prevent forms to update zorder when
4732         setting visible property.
4733
4734 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
4735
4736         * Control.cs: Update zorder after control creation in SetVisibleCore, it 
4737         fix zorder for controls initially created as non visible. Fixes #82667.
4738
4739 2007-09-04  Everaldo Canuto  <everaldo@simios.org>
4740
4741         * ThemeWin32Classic.cs: Adjust checkbox light color to ControlLightLight to
4742         mimic win32 look. Fixes #82656.
4743
4744 2007-09-01  Zoltan Varga  <vargaz@gmail.com>
4745
4746         * FileDialogCustomPlace.cs FileDialogCustomPlacesCollection.cs: 
4747         Stubs for new net 3.5 classes.
4748
4749 2007-08-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4750
4751         * ListViewItem.cs: In ListViewItemCollection operations calculate
4752         Layout for owner as well as invalidate it. Fixes part of #82642.
4753
4754 2007-08-31  Jonathan Pobst  <monkey@jpobst.com>
4755
4756         * ToolStripItem.cs: Take Parent/Owner's Enabled state in to account
4757         when returning Enabled.  [Fixes bug #82651]
4758
4759 2007-08-30  Everaldo Canuto  <everaldo@simios.org>
4760
4761         * ToolBar.cs: Fix button size for non flat toolbars. Fixes #82368.
4762
4763 2007-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4764
4765         * ListView.cs: Put item padding info in a single place
4766         (Theme.ListViewItemPaddingWidth) to have working AutoResize on
4767         columns again.
4768         * ThemeWin32Classic.cs:
4769         * Theme.cs: Likewise.
4770
4771 2007-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4772
4773         * ListView.cs: When a ListViewSubItem instance is invalidated,
4774         invoke Invalidate on parent ListViewItem, not parent ListView.
4775         Fixes #81570.
4776
4777 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
4778
4779         * ListView.cs, ListViewItem.cs: corcompare stuffs.
4780
4781 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
4782
4783         * BindingMemberInfo.cs: Implement == and != operators.
4784
4785 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
4786
4787         * HtmlElementEventArgs.cs: Implement properties.
4788
4789 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
4790
4791         * HtmlElementErrorEventArgs.cs, HtmlElementErrorEventHandler.cs: Added.
4792
4793 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
4794
4795         * TabControl.cs: I was looking into the MonoTODO on TabPageCollection.
4796         Add (string,string,string) to implement the imagekey.  It turns out, we
4797         use the requested imagekey whereas .Net does not.  So I broke ours to match
4798         theirs.  :(
4799
4800 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
4801
4802         * Form.cs, UserControl.cs: Override ValidateChildren, AutoValidate.
4803
4804 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
4805
4806         * ContainerControl.cs: Implement ValidateChildren and new Validate overload.
4807
4808 2007-08-29  Gert Driesen  <drieseng@users.sourceforge.net>
4809
4810         * FolderBrowserDialog.cs: Set Tag of newly created node, and keep it
4811         up-to-date. Fixes bug #82618.
4812
4813 2007-08-29  Everaldo Canuto  <everaldo@simios.org>
4814
4815         * TextBoxBase.cs: Call CalculateDocument after changes Lines property to
4816         reflect document changes. Fixes #82367.
4817
4818 2007-08-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4819
4820         * ListView.cs: Add/fix some override differences between 1.1 and 2.0,
4821         as well as add new ones. This should make work the BackgroundImage
4822         property for ListView again.
4823
4824 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
4825
4826         * DataGrid.cs, DataGridViewButtonColumn.cs, DataGridViewCheckBoxColumn.cs,
4827         DataGridViewComboBoxColumn.cs, DataGridViewImageColumn.cs, DataGridViewLinkColumn.cs,
4828         DataGridViewTextBoxColumn.cs, ToolTip.cs: corcompare stuffs.
4829
4830 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
4831
4832         * Control.cs, XPlatUI.cs, XPlatUIDriver.cs, XPlatUIWin32.cs: Implement
4833         IsKeyLocked.
4834
4835 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
4836
4837         * Cursor.cs: Add HotSpot, hook into XPlatUI.GetCursorInfo.
4838         * XPlatUIWin32.cs: Implement hotspot lookup in GetCursorInfo.
4839
4840 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
4841
4842         * RadioButton.cs: Use 2.0 rendering.  Use base implementation of TextAlign.
4843         * Theme.cs, ThemeWin32Classic.cs: Implement 2.0 rendering for RadioButton.
4844
4845 2007-08-27  Ivan N. Zlatev  <contact@i-nz.net>
4846
4847         * CursorConverter.cs: Implement conversion to InstanceDescriptor.
4848
4849 2007-08-27  Ivan N. Zlatev  <contact@i-nz.net>
4850
4851         * GridEntry.cs: Implement GetService.
4852
4853 2007-08-27  Jonathan Pobst  <monkey@jpobst.com>
4854
4855         * LabelEditTextBox.cs, TreeView.cs: After hiding the textbox used
4856         for label editting, make sure we focus back on the TreeView.
4857         [Fixes bug #82590]
4858
4859 2007-08-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4860
4861         * ListView.cs: Add some 2.0 overrides.
4862
4863 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
4864
4865         * Form.cs: Uses opacity var instead of Opacity property in CreateHandle
4866         because getter dont returns right value before handle creation. Thanks 
4867         to George. Fixes #82569.  
4868
4869 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
4870
4871         * Theme.cs: Revert last patch, it causes error under win32. 
4872
4873 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
4874
4875         * Theme.cs: Uses Environment.SpecialFolder.DesktopDirectory instead of 
4876         Environment.SpecialFolder.Desktop in Places method, Desktop returns the 
4877         logical Desktop rather than the physical file system location. Fixes #82603. 
4878
4879 2007-08-26  Everaldo Canuto  <ecanuto@novell.com>
4880
4881         * MessageBox.cs: Add clipboard copy (ctrl+c) to messagebox. Thanks Andy Hume
4882         for the patch. Fixes #82568.
4883
4884 2007-08-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4885
4886         * ListView.cs: Add a pair of missing 2.0 ListViewItemCollection.Insert
4887         methods.
4888
4889 2007-08-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4890
4891         * ListViewInsertionMark.cs: New stubbed class.
4892
4893 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
4894
4895         * FolderBrowserDialog.cs: When adding folder, immediately create the
4896         directory with temporary name and rename the directory when editing
4897         finishes. This matches MS. Ensure the node for the new folder is 
4898         selected and LabelEdit is disabled, when editing is either finished
4899         or cancelled.
4900
4901 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
4902
4903         * TreeView.cs: When editing label of node, ensure node is visible.
4904
4905 2007-08-25  Ivan N. Zlatev  <contact@i-nz.net>
4906
4907         * PropertyGridView.cs: Set the value only if it has changed.
4908
4909 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4910
4911         * ListView.cs: Some more code refactoring to add support sorting
4912         with groups (now for Details view). Remove unused code also.
4913
4914 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
4915
4916         * NodeLabelEditEventArgs.cs: EndEdit immediately when CancelEdit is called.
4917         Not a big fan of reacting immediately to a field in an EventArg, but that's
4918         the way it's done.  (This is part of the previous commit that got left out.)
4919
4920 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
4921
4922         * FolderBrowserDialog.cs: Removed need for separate description field.
4923         Replaced "" with string.Empty. Fixed tabindex. Ensure OK button
4924         has focus when dialog box is displayed again, regardless of what
4925         button was pressed the previous time. Set RootFolder and SelectedPath
4926         each time dialog box is displayed. This ensures the treeview is
4927         refreshed, and fixes bug #82579. Do no hide selected node in TreeView
4928         when it does not have focus. Added support for more special folders.
4929
4930 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
4931
4932         * TreeView.cs: Create a CancelEdit method.  Clone the edit_args in EndEdit
4933         before calling AfterLabelEdit.  If the user calls BeginEdit in that event,
4934         it resets the edit_args.
4935         * TreeNode.cs: Call CancelEdit if the user passes cancel = true to EndEdit.
4936         [Fixes bug #82577]
4937
4938 2007-08-24  Gert Driesen  <drieseng@users.sourceforge.net>
4939
4940         * FolderBrowserDialog.cs: Modifies form caption and text of new folder
4941         button to match MS. Provide more meaningful exception message for
4942         invalid RootFolder value. Use zero-length string when SelectedPath
4943         is set to null. Allow non-rooted paths in SelectedPath, but ignore
4944         them in FolderBrowserTreeView. Allow folders to be created in
4945         RootFolder. Fixes bug #82576.
4946
4947 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4948
4949         * ListView.cs: Correctly compute the layout_ht (height) when using groups,
4950         since we need to take into account the group headers and the margin
4951         between them.
4952         * ListViewGroup.cs: Add a rows field to store the number of rows per
4953         group.
4954
4955 2007-08-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4956
4957         * DateTimePicker.cs: The MS' MTB has a really stupid year formatting.
4958           Anyways, let's just follow the lead.
4959
4960 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
4961
4962         * CheckBox.cs: Set the AutoSizeMode to GrowAndShrink.
4963         * Form.cs, GroupBox.cs: Don't skip Right or Bottom anchored 
4964         controls in GetPreferredSizeCore.
4965         * ThemeWin32Classic.cs: Tweak text drawing of CheckBoxes.
4966         [Fixes bug #82488]
4967
4968 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
4969
4970         * PrintDialog.cs: Need to instantiate the form variable here too.
4971
4972 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4973
4974         * ListView.cs: Do some reorganization to support sorting in groups,
4975         by doing the layout sequentially in ListView.Items. Also add support
4976         for the Default Group, which should be available for items with no
4977         group assigned.
4978         * ListViewGroup.cs: Add support for DefaultGroup. Include new members
4979         for storing layout info also.
4980         * ListViewGroupCollection.cs: Add a DefaultGroup as part of the
4981         collection, as well as providing internal members to do a traversal
4982         including the default group (needed when doing layout/drawing).
4983         * ThemeWin32Classic.cs: When drawing group headers use internal
4984         ListViewGroupCollection members to take into account the default
4985         group.
4986
4987 2007-08-23  George Giolfan  <georgegiolfan@yahoo.com>
4988
4989         * FlowLayoutPanel.cs: Add GetPreferredSizeCore.  [Fixes bug #82537]
4990
4991 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
4992
4993         * TreeView.cs: IsInputKey: don't ask for any keys if the handle hasn't
4994         been created.  If handle is created, we want arror keys.  If we are editing
4995         a node, we want things like enter, esc, home, end, page up, page down.
4996         Allows Esc to work for FolderBrowserDialog.
4997
4998 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
4999
5000         * ColorDialog.cs, FontDialog.cs: Set the form's CancelButton so that
5001         they close when ESC is pressed.  Thanks Andy!
5002
5003 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
5004
5005         * CommonDialog.cs: Do not instantiate form, leave that for derived classes.
5006         This way we can tell if this is a CommonDialog provided with mono, or one
5007         that is being implemented outside by a developer.  If it is an external one,
5008         the developer is responsible for showing their own form.  We were showing
5009         our blank form after the developer showed his.
5010         * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs, FontDialog.cs,
5011         PageSetupDialog.cs: Instantiate form variable in our constructor.
5012         [Fixes bug #82531]
5013
5014 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
5015
5016         * ListBox.cs, ListView.cs, TreeView.cs: Override IsInputCharInternal
5017         and always return true.  [Fixes bug #81616]
5018
5019 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
5020
5021         * TextBoxBase.cs: Allow 2.0 AutoSize to change the height of the
5022         TextBox.  [Fixes bug #82549]
5023
5024 2007-08-23  Gert Driesen  <drieseng@users.sourceforge.net>
5025
5026         * FileDialog.cs: When Save/Open is clicked and no filename is selected
5027         or entered then do not close the dialog. Fixes bug #82539. Removed
5028         CWLs.
5029
5030 2007-08-22  Everaldo Canuto  <ecanuto@novell.com>
5031
5032         * FileDialog.cs: Create UpdateRecentFiles and move the recent files refresh
5033         code to this method. It is calling every time filter changes. This method
5034         will help to fix the bug #80887.
5035
5036 2007-08-22  Jonathan Pobst  <monkey@jpobst.com>
5037
5038         * CheckBox.cs: Implement AutoSize calculation.
5039
5040 2007-08-22  Jonathan Pobst  <monkey@jpobst.com>
5041
5042         * CheckBox.cs: Use new 2.0 rendering for 2.0.
5043         * Theme.cs: Method declarations for 2.0 rendering path.
5044         * ThemeWin32Classic.cs: 2.0 rendering implementation for CheckBox.
5045
5046 2007-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5047
5048         * ListViewGroupCollection.cs: Fix a typo of the previous patch.
5049
5050 2007-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5051
5052         * ListViewGroupCollection.cs: Implement AddRange the right way, to
5053         only call Redraw on the parent one time.
5054
5055 2007-08-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5056
5057         * DataGridViewRowHeaderCell.cs, DataGridViewColumnHeaderCell.cs: Implemented
5058           GetClipboardContent.
5059         * DataGridViewCell.cs: Implemented GetClipboardContent,
5060           GetEditedFormattedValue, GetFormattedValue.
5061         * DataGridView.cs: Implemented GetClipboardContent, TopLeftHeaderCell.
5062
5063 2007-08-21  Jonathan Pobst  <monkey@jpobst.com>
5064
5065         * TableLayoutStyleCollection.cs: corcompare fix.
5066
5067 2007-08-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5068
5069         * DataObject.cs: Implemented retrieval of convertible / not convertible
5070           objects.
5071
5072 2007-08-21  Jonathan Pobst  <monkey@jpobst.com>
5073
5074         * ToolStripItem.cs: When changing the item's text, invalidate before we resize
5075         ourselves.  This ensures the entire old bounds are repainted, in case our new
5076         size is smaller.  [Fixes bug #82518]
5077
5078 2007-08-20  Everaldo Canuto  <ecanuto@novell.com>
5079
5080         * XplatUIX11.cs: Apply patch from #81588, it makes use of PointerMotionHintMask
5081         flag to make fast handle of mouse events, without this the mouse move is
5082         handled in some manner, whether it is a mouse move or not. Fixes #81588.
5083
5084 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5085
5086         * ListView.cs: When doing layout calculations don't use a ref
5087         param to keep the current item; instead use its Index value (this 
5088         is specially important when doing the layout with Groups
5089         and Items being sparse). Also don't take into account items added to
5090         the Group but not yet added to the main ListView.Items collection.
5091
5092 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5093
5094         * ListViewGroupCollection.cs: Forgot to mimic an issue
5095         in the indexer (don't assign the ListView owner for new values).
5096
5097 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5098
5099         * ListViewGroupCollection.cs: Make the string indexer use
5100         the int based indexer to re-use code, instead of duplicate the code.
5101         Also Redraw as needed and take into account null values.
5102
5103 2007-08-20  Jonathan Pobst  <monkey@jpobst.com>
5104
5105         * StatusStrip.cs: Make sure the item's parent gets set in SetDisplayedItems.
5106         [Fixes bug #82481]
5107
5108 2007-08-20  Jonathan Pobst  <monkey@jpobst.com>
5109
5110         * ToolStrip.cs: Add some logic to un-focus controls in ToolStripControlHosts
5111         when other buttons are clicked or navigated to.
5112
5113 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5114
5115         * XplatUIX11.cs: Treat toolwindows as if they had no window manager, since
5116           it's XplatUIX11 that attaches them.
5117
5118 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5119
5120         * DataGridView.cs: If a column has been added, recreate the editing row.
5121           Fixes #82226.
5122
5123 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5124
5125         * TextControl.cs: Use Math.Max instead of Math.Min when deciding the length
5126           of the tag to draw. Makes disappearing text show up again.
5127
5128 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5129
5130         * StatusBar.cs: Take into account any icons when a panel has AutoSize =
5131           Contents. Fixes #82487.
5132
5133 2007-08-19  Andreia Gaita  <avidigal@novell.com>
5134
5135         * Added HtmlElement.cs, HtmlElementCollection.cs, 
5136           HtmlElementEventArgs.cs, HtmlElementEventHandler.cs
5137           
5138 2007-08-19  Andreia Gaita  <avidigal@novell.com>
5139
5140         * BindingSource.cs: Implement this, dispose and getenumerator.
5141         * DataGridViewRowCollection.cs: Move the InvalidOperationException
5142         out of AddInternal, throw it only on public Add calls. The 
5143         UsingWebBrowser sample was blowing up with this when setting the
5144         DataSource after adding DataBindings, so it's likely that .net
5145         only throws this exception when Add is called directly. 
5146         
5147         * ToolStripControlHost.cs: Return the hosted control's text
5148         property, and not the ToolStripItem one (it would always return
5149         the initial value).
5150         
5151         * HtmlDocument.cs: Implement GetElementById and All
5152         * WebBrowser.cs: Remove exception on set_DocumentStream.        
5153
5154 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
5155
5156         * Form.cs: Fix the max and min value for opacity (0~1).
5157
5158 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
5159
5160         [Fixes #80118]
5161         * DataGridTableStyle.cs: Default header font is now null, on getter it 
5162         returns datagrid font when is null. On setter permits null.
5163
5164         * DataGrid.cs:
5165         - When ResetHeaderFont set header font to null.
5166         - On EndInit set grid_style.DataGrid.
5167
5168 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
5169
5170         * TabControl.cs: Fix regression in default padding x.
5171
5172 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
5173
5174         * TabControl.cs: Fix tab page text area removing padding. Fixes #82471.
5175
5176 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
5177
5178         * TabControl.cs: Fix first tab drawing, when selected it must have x = 0
5179         not 2. Fixes #82229.
5180
5181 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
5182
5183         * TabControl.cs: Fix tab size when image height is less than text height.
5184         Partially fixes #81837.
5185
5186 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
5187
5188         * Form.cs: Add WS_EX_CONTROLPARENT to forms to make it selectable using 
5189         "alt + tab". It works only for Win32, for X11 theres no way to remove window
5190         from taskbar and keep it on "alt_tab". Fixes #81722.
5191
5192 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
5193
5194         * XplatUIX11.cs: Apply patch from Jurek Bartuszek to fix DrawReversibleFrame
5195         and DrawReversibleLine, also apply same behavior to FillReversibleRectangle. 
5196         Fixes #80877 and #79418.
5197
5198 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
5199
5200         * MenuAPI.cs: Fix popup menu position when the size is larger than distance 
5201         between position and one of the screen borders. Fixes #82349.
5202
5203 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
5204
5205         * MessageBox.cs: When there is no form that invoked the MessageBox, shows
5206         the MessageBox in the taskbar. Fixes #82457.
5207
5208 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
5209
5210         * MessageBox.cs: Fix form size when icon is set and text height is bigger
5211         than icon. Fixes #82468.
5212
5213 2007-08-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5214
5215         * ThemeWin32Classic.cs: A FixedToolWindow has border size 3.
5216         * InternalWindowManager.cs: Change HandleCalcSize to return a boolean value
5217           if handled or not. Implement WM_NCCALCSIZE for WParam == 0 as well.
5218           Refactored HandleNCCalcSize somewhat to avoid code duplication.
5219         * Form.cs: Add is_clientsize_set, set in set_ClientSize, used by
5220           FormBorderStyle to decide if we're calculating a new size from the
5221           client size or not. CreateParams: Don't fake tool windows, only the X11
5222           backend manages toolwindows manually.
5223
5224 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
5225
5226         * Form.cs: Only reset is_visible if !IsDisposed to prevent an
5227         ObjectDisposedException.
5228
5229 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
5230
5231         * Form.cs: Reset is_visible back to true after OnLoad.  Setting this
5232         in OnLoad should not have any effect.  [Fixes bug #82470]
5233
5234 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
5235
5236         * ToolTip.cs: Add a hack to ToolTipWindow so it will still size and
5237         paint for controls that create their own ToolTipWindow instead of
5238         going through ToolTip.
5239
5240 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
5241
5242         * ToolTip.cs: Make Hide internal instead of public to match MS API.
5243
5244 2007-08-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5245
5246         * ListViewGroupCollection.cs: Use generic List instead of an
5247         ArrayList, since this collection is 2.0 only.
5248
5249 2007-08-17  Jeffrey Stedfast  <fejj@novell.com>
5250
5251         * ToolTip.cs (Hide): Made public to make the build work (should
5252         this not be public?).
5253
5254 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
5255
5256         * ToolBar.cs, ToolStrip.cs, TreeView.cs: Use a ToolTip instead of a
5257         ToolTipWindow.
5258         * ToolTip.cs: Add an internal Visible property to facilitate transition.
5259
5260 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
5261
5262         * DrawToolTipEventArgs.cs, DrawToolTipEventHandler.cs, PopupEventArgs.cs,
5263         PopupEventHandler.cs: Make these internal for 1.1.
5264         * ThemeClearlooks.cs, ThemeWin32Classic.cs: Use TextRenderer, and modify to not
5265         use ToolTipWindow internals.
5266         * ToolTip.cs: Add 2.0 modal Show methods.  Had to move a lot of stuff around to
5267         support this.  A lot of stuff in the ToolTipWindow got moved to the ToolTip.
5268
5269 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5270
5271         * X11Dnd.cs: Add a null check.
5272
5273 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5274
5275         * X11Dnd.cs: MwfWindow: Try to load the control directly from the handle if
5276           nothing else succeeds. Fixes #82453.
5277
5278 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5279
5280         * XplatUIWin32.cs: PaintEventStart: validate the entire source client
5281           rectangle if we're painting to another window than the one the paint
5282           message was generated on. Simplify the code somewhat, which makes
5283           PaintEventEnd also simpler.
5284
5285 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5286
5287         * Control.cs: When changing parent of a form, let the form decide whether
5288           XplatUI.SetParent should be called or not.
5289         * Form.cs: ChangingParent: only call XplatUI.SetParent if we're not
5290           recreating the handle. If the new parent's handle isn't created, don't
5291           recreate our handle, just destroy it. CreateParams: Check if the
5292           parent's handle is created before fetching it.
5293
5294 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5295
5296         * Control.cs, Form.cs, InternalWindowManager.cs, MainMenu.cs, MdiClient.cs:
5297           Update calls to PaintEventStart/End to take a Message argument.
5298         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Update PaintEventStart/End to
5299           take a Message argument.
5300         * XplatUIWin32.cs, XplatUIX11.cs: Update PaintEventStart/End to take a
5301           Message argument, and handle the case where we don't paint to the window
5302           for which the paint message was generated.
5303
5304 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5305
5306         * XplatUIWin32.cs: Don't call Win32GetLastError directly, use
5307           Marshal.GetLastWin32Error. Plug nasty memory leak in
5308           PaintEventStart/End, we were creating a DC we weren't releasing.
5309
5310 2007-08-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5311
5312         * ListView.cs: Add Groups support in Details view. Also have a small
5313         method to do the layout of the group header. Don't use a separate
5314         method to do the groups calculation in Icons view, since our methods
5315         are now a little simpler.
5316         * ListViewGroup.cs: Use the more accurate `HeaderBounds' name than
5317         `Bounds'.
5318         * ThemeWin32Classic.cs: Likewise.
5319
5320 2007-08-16  Jonathan Pobst  <monkey@jpobst.com>
5321
5322         * Application.cs: Add FilterMessage method and rework our message loop
5323         logic to use it.
5324
5325 2007-08-16  Jonathan Pobst  <monkey@jpobst.com>
5326
5327         * Application.cs: Add some methods and stub a few methods that are
5328         pretty much never used.
5329
5330 2007-08-15  Jonathan Pobst  <monkey@jpobst.com>
5331
5332         * TreeNode.cs: Add some serialization methods.
5333
5334 2007-08-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5335
5336         * ListView.cs: In ListViewItemCollection have a 
5337         'is_main_collection' field to not modify ListViewItem.ListView
5338         when using it as ListViewGroup.Items (and not ListView.Items)
5339         and also don't modify selection state (.Net behaviour). 
5340         Instead, set group for items contained in a ListViewGroup.Items collection.
5341         * ListViewItem.cs: Simplify some code in Group setter.
5342         * ListViewGroup.cs: use the new .ctor to pass the current instance
5343         to the ItemsCollection.
5344         * ListViewGroup.cs: Set the ListView property for ListViewGroup
5345         instances when adding/removing. Also make Remove use RemoveAt, which
5346         should perform better.
5347
5348 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
5349
5350         * Message.cs, TabControl.cs, TextBox.cs, TextBoxBase.cs: Hide some 2.0 API
5351         that crept into the 1.1 profile.
5352
5353 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
5354
5355         * ToolBarButton.cs: Implement ImageKey.
5356
5357 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
5358
5359         * ToolBar.cs: Implement ScaleControl/ScaleCore.
5360
5361 2007-08-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5362
5363         * PictureBox.cs: OnAnimateImage/UpdateAnimateImage: Check if handle is still
5364           created, it might have gotten destroyed since we last checked. Fixes
5365           #82405.
5366
5367 2007-08-11  Jonathan Pobst  <monkey@jpobst.com>
5368
5369         * ToolTip.cs: Remove mouse in control check from mouseleave handler so
5370         tooltip will hide when mouse is moved off the control.
5371         [Fixes bug #82407]
5372
5373 2007-08-11 Andreia Gaita <avidigal@novell.com>
5374
5375         * WebBrowserBase.cs, WebBrowser.cs: add implementation
5376         using Mono.Mozilla for loading and navigating webcontrol
5377         with xulrunner.
5378         The initial implementation was done on 
5379         /trunk/mozembed/tests/browser , and copied here.
5380
5381 2007-08-11  Gert Driesen  <drieseng@users.sourceforge.net>
5382
5383         * ThemeWin32Classic.cs: On 2.0 profile, use ForeColor and BackColor of
5384         ToolTipWindow for drawing the tooltip. Fixes bug #82408.
5385
5386 2007-08-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5387
5388         * DataGridView.cs: Add support for an editing row. Fixes #82226.
5389           RowTemplateFull: throw an exception if a column doesn't have a template.
5390         * DataGridViewRowCollection.cs: AddInternal: if there are any editing rows,
5391           add the row just before it.
5392         * DataGridViewTextBoxCell.cs: Don't paint cells which are in edit mode as
5393           selected.
5394         * DataGridViewSelectedRowCollection.cs: Don't return the editing row. Add a
5395           DataGridView field to be able to reach the grid's editing row.
5396
5397 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
5398
5399         * ToolTip.cs: If the control's handle hasn't been created when it has a
5400         tooltip set on it, don't check to see if we need to show the tooltip.  This
5401         check was causing the control's handle to be created.
5402         [Fixes bug #82399]
5403
5404 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
5405
5406         * TextBoxBase.cs: Fix SelectionLength when no text selected to match MS:
5407                                         1.1             2.0
5408         Handle Not Created      -1              0
5409         Handle Created          0               0
5410         [Fixes bug #82371]
5411
5412 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
5413
5414         * ToolTip.cs: Hide the tooltip if the control is clicked to match MS behavior.
5415         [Fixes bug #82348]
5416
5417 2007-08-09  Jonathan Pobst  <monkey@jpobst.com>
5418
5419         * DrawToolTipEventArgs.cs: Don't dispose a brush we got from the respool.
5420         * ToolTip.cs: Implement some properties and owner draw.
5421
5422 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5423
5424         * DataGridView.cs: OnPaint: don't set scrollbar visibility to false then
5425           show them again, since setting visibility causes a paint, causing an
5426           endless loop (instead use a temporary and set it all when it's known if
5427           they should be shown or not). Fixes #79265.
5428
5429 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5430
5431         * DataGridView.cs: Only do a full column/row selection if a header was
5432           clicked and we're in Column/RowHeader selection mode. If shift and ctrl
5433           isn't pressed, deselect everything before selecting something.
5434
5435 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5436
5437         * DataGridView.cs: Fix SelectedRows and SelectedColumns to match MS
5438           behaviour according to bug #81075 - they are returned in the order they
5439           are selected. Fix HitTest to check if the point is within any of the
5440           headers. Allow for row/column selection when in ColumnHeader or
5441           RowHeader selection mode. Add SetSelected[Column|Row]CoreInternal for
5442           the row and column to call when their selected state changes, and
5443           updated selected_[rows|columns] whenever SetSelected* is called.
5444         * DataGridViewBand.cs: Initialize isRow correctly. Call
5445           SetSelected[Row|Column]CoreInternal when the selected state changes, and
5446           add a SelectedInternal to avoid StackOverflows.
5447         * DataGridViewColumn.cs, DataGridViewRow.cs: If DGV is ReadOnly, we're also
5448           ReadOnly no matter what.
5449         * DataGridViewSelectedColumnCollection.cs,
5450           DataGridViewSelectedRowCollection.cs: Add an InternalAddRange that adds
5451           the items in reverse order (just as MS does...)
5452
5453 2007-08-09  Jonathan Pobst  <monkey@jpobst.com>
5454
5455         * Application.cs: Only release menustrips if Alt (MenuKey) is pressed by
5456         itself, not part of a mnemonic.  [Fixes bug #82378]
5457
5458 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5459
5460         * DataGridView.cs: BeginEdit: don't allow editing of readonly cells.
5461         * DataGridViewCell.cs: Implement ReadOnly better: the cell is ReadOnly if
5462           the DGV, the column, the row, or the cell itself is readonly.
5463
5464 2007-08-09  Gert Driesen  <drieseng@users.sourceforge.net>
5465
5466         * ThemeNice.cs: Use XplatUI.RunningOnUnix instead of checking
5467         OSVersion.Platform.
5468         * FileDialog.cs: Same.
5469         * TextRendered.cs: Same.
5470         * FolderBrowserDialog.cs: Same.
5471         * TextBoxBase.cs: Same.
5472         * Application.cs: Same.
5473         * Cursors.cs: Same.
5474         * ThemeClearLooks.cs: Same.
5475
5476 2007-08-09  Gert Driesen  <drieseng@users.sourceforge.net>
5477
5478         * XplatUI.cs: Added RunningOnUnix property to be used by controls
5479         instead of duplicating these checks everywhere.
5480         * FileDialog.cs: Use case-insensitive comparison for populating the
5481         DirComboBox when not running on unix. Fixes bug #82385.
5482         * OpenFileDialog.cs: to match MS, change label of DirComboBox to 
5483         "Look in".
5484
5485 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5486
5487         * DataGridView.cs: SelectedRows: we need to check if selectionMode is
5488           FullRowSelect (not FullColumnSelect). Fixes #81075. Implemented
5489           BeginEdit, EndEdit, SetSelected<Cell|Row|Column>Core. Implemented row,
5490           cell and column selection with ctrl and shift pressed. Call the correct
5491           BeginEdit/EndEdit whenever we start/end editing. Move painting code to
5492           the corresponding virtual method (PaintBackground to paint background,
5493           etc).
5494         * DataGridViewCell.cs: Implement Selected correctly, we're selected if
5495           either the column, row or the cell itself is selected.
5496         * DataGridViewRowCollection.cs: Use DGV.OnRowsAddedInternal instead of
5497           OnRowsAdded.
5498         * DataGridViewRow.cs: Moved some of the painting code from DataGridView
5499           here. When the row is selected, don't select all cells. Each cell now
5500           queries the row to see if the row is selected.
5501
5502 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5503
5504         * DataGridViewColumn.cs: Throw if the SortMode conflicts with DataGridView's
5505           SelectionMode.
5506
5507 2007-08-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5508
5509         * ListView.cs: In ListViewItemsCollection check that owner is
5510         not null before trying to access it (this happens quite often
5511         using Groups). Also don't duplicate calls by calling CollectionChanged
5512         method.
5513
5514 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
5515
5516         * ToolStrip.cs: Record if we were activated by mouse or keyboard.  Redraw
5517         when we are dismissed to clear keyboard mnemonics.
5518         * MenuStrip.cs, ToolStripDropDown.cs, ToolStripItem.cs, 
5519         ToolStripMenuItem.cs: Record if we were activated by mouse or keyboard.
5520         * ToolStripItemTextRenderEventArgs.cs: Draw mnemonic underlines if menu
5521         was activated by keyboard or the OS tells us to always draw them.
5522         * ToolStripManager.cs: Setup storage for activated by mouse or keyboard.
5523         [Fixes bugs #82376, #82377]
5524
5525 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
5526
5527         * Control.cs: If no one accepts a mnemonic, let the MenuStrip have a 
5528         shot at having it because Alt was pressed.
5529         * MenuStrip.cs: When handling Alt, don't select a SystemMenuItem, select
5530         the first real menu item.
5531         * ToolStrip.cs: Don't crash when looking for a ToolStripItem to handle
5532         a mnemonic if Text is null.
5533         [Fixes bug #82374]
5534
5535 2007-08-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5536
5537         * ListView.cs: In ListViewItemCollection.AddItem, don't do a linear
5538         search do check whether the item is already contained in the
5539         collection or not; instead check if the owner of the item is the same
5540         as ours. Also, remove a redundant check in the same method. 
5541
5542 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
5543
5544         * Control.cs: Allow the clip region to be set back to null.
5545         * XplatUIWin32.cs: If we are sent a null clip region, use IntPtr.Zero.
5546         [Fixes button still showing up in bug #82370 when Show Through is turned off]
5547
5548 2007-08-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5549
5550         * GridEntry.cs: Add a null check.
5551         * PropertyGrid.cs: When checking for existing grid entries, ignore category
5552           entries. Fixes #82297.
5553
5554 2007-08-07  Jonathan Pobst  <monkey@jpobst.com>
5555
5556         * OwnerDrawPropertyBag.cs: Make the serialization constructor protected
5557         for 2.0.
5558
5559 2007-08-07  Jonathan Pobst  <monkey@jpobst.com>
5560
5561         * ListBox.cs: Implement ScaleControl.
5562
5563 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5564
5565         * Form.cs: Add a few ActiveMenu null checks. ActiveMenu might be null if we
5566           have a menu strip.
5567         * MdiWindowManager.cs: Don't create a maximized menu if the child or it's
5568           parent has a menu strip. Fixes #81689.
5569
5570 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5571
5572         * ToolTip.cs: We don't get mouse events on all platforms in the exact same
5573           moments, so apply some fuzzy logic to determine if the mouse is still
5574           inside a control or not. Fixes #82288 (for the third time).
5575
5576 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5577
5578         * Control.cs: CreateControl: create implicit children as well. Fixes #82344.
5579           Don't create the child if it has been disposed already (may happen if
5580           the user closes the form the Load event).
5581
5582 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5583
5584         * ToolTip.cs: If ReshowDelay is 0, show the tooltip immediately. Fixes
5585           #82288.
5586
5587 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5588
5589         * Control.cs: Add a null check in OnParentBindingContextChanged. The parent
5590           might call us after we've been destroyed, in which case our own private
5591           parent field is null. Fixes #82326.
5592
5593 2007-08-06  Jonathan Pobst  <monkey@jpobst.com>
5594
5595         * ToolStripDropDown.cs: Fix a failing test on X11 by adding a null
5596         check for setting the dropdown's owner.
5597
5598 2007-08-06  Jonathan Pobst  <monkey@jpobst.com>
5599
5600         * MdiClient.cs: Fix some failing tests on X11 by adding a null check
5601         before removing system menu items.
5602
5603 2007-08-02  Jonathan Pobst  <monkey@jpobst.com>
5604
5605         * MdiClient.cs, MdiWindowManager.cs: Support 2.0 Mdi MenuStrip
5606         folding.
5607         * MdiControlStrip.cs: Added.  These are the menu items used in mdi
5608         folding.
5609         * ToolStrip.cs: Add a null check to mnemonics.
5610         * ToolStripDropDownMenu.cs: When using a SystemMenuItem, there is
5611         no ConnectedArea.
5612         [Fixes most of bug #81689]
5613
5614 2007-08-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5615
5616         * PropertyGrid.cs: Add a null-check. Fixes #82289/SVGPad.
5617
5618 2007-08-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5619
5620         Use InitialDelay if ReshowDelay is zero. Fixes #82288.
5621
5622 2007-08-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5623
5624         * DataGridViewCell.cs: EditType: returns
5625           DataGridViewTextBoxEditingControl always.
5626
5627 2007-08-01  Jonathan Pobst  <monkey@jpobst.com>
5628
5629         * TextRenderer.cs: Remove the LineLimit string format flag from the
5630         DrawString fallback method so that things like buttons that aren't
5631         tall enough to draw a full line will still draw part of the text.
5632         [Fixes part of bug #82272]
5633
5634 2007-08-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5635
5636         * DataGridView.cs: Implemented AutoResizeColumn(s).
5637         * DataGridViewCellStyle.cs: Added SetAlignment, fills in a StringFormat
5638           according to the Alignment.
5639         * DataGridViewColumnHeaderCell.cs, DataGridViewTextBoxCell.cs:
5640           Implement alignment and padding when painting.
5641         * DataGridViewRow.cs: SetValues: Don't create a cell if it already
5642           exists.
5643         * DataGridViewCell.cs: Implement BorderWidths in the most primitive
5644           way.
5645         * DataGridViewColumnCollection.cs: Raise OnColumnAdded on the DGV when
5646           a column is added.
5647
5648 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
5649
5650         * TextBoxBase.cs: Use Control.ExplicitBounds instead of explicit_bounds,
5651         which is internal.
5652
5653 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
5654
5655         * ToolStrip.cs: Stub out drag and drop methods, fix some corcompare stuff,
5656         hide GetPreferredSize from public API.
5657         * ToolStripDropDown.cs: Override AllowItemReorder, fix AccessibleObject.
5658         * ToolStripItem.cs: Stub out drag and drop methods and events.
5659         * ToolStripManager.cs: Stub out Save/LoadSettings.
5660         * ToolStripOverflow.cs: Use renamed ToolStrip.GetPreferredSize.
5661         * ToolStripPanel.cs: Fix corcompare error.
5662         * ToolStripPanelRow.cs: Use renamed ToolStrip.GetPreferredSize.
5663         * ToolStripSplitButton.cs: Fix AccessibleObject stuff.
5664         * ToolStripSplitStackLayout.cs: Use renamed ToolStrip.GetPreferredSize.
5665
5666 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
5667
5668         * TextBoxBase.cs: In our new GetPreferredSizeCore, return the explicit
5669         bounds height instead of PreferredHeight.  Puts things back the way 
5670         they were for height while still fixing the width.  Fixes broken unit
5671         tests.
5672
5673 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5674
5675         * Binding.cs: Implement 2.0 constructors and add a null check.
5676
5677 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5678
5679         * DataGridViewRowCollection.cs: Allow a null DGV in the constructor,
5680           and fix row index (off by one).
5681
5682 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5683
5684         * PropertyGridView.cs: Remove debug output.
5685
5686 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5687
5688         * Control.cs: We need to reset the is_created flags when the handle is
5689           destroyed. Fixes #82187.
5690         * XplatUIWin32.cs: In GetWindowRect don't offset screen coordinates to
5691           client coordinates if the window doesn't have a parent.
5692           Win32GetParent returns the parent or the owner, and for top-level
5693           windows with no parent (but with an owner) we were calculating the
5694           location from the location of the owner.
5695         * Form.cs: Remove incorrect fix for #82187. Don't raise OnLoad if the
5696           form has been disposed.
5697         * MdiClient.cs: Add a null-check.
5698
5699 2007-07-30  Jonathan Pobst  <monkey@jpobst.com>
5700
5701         * TextBoxBase.cs: TextBoxBase reports itself at AutoSize, but doesn't
5702         actually do auto-sizing.  Override the internal GetPreferredSizeCore 
5703         so we can provide an implementation that returns the current width
5704         and preferred height.  Allows anchor = right to work with TextBox 2.0.
5705         [Fixes bug #82233]
5706
5707 2007-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5708
5709         * ListView.cs: Add support for navigating items in Groups mode, by
5710         creating a big matrix containing all rows and cols of all groups. When
5711         are in other mode than Details, pressing Up should have a similar
5712         behaviour as that one of Down (moving to the next available column if
5713         current one doesn't have an item in the requested row). Also, don't
5714         proceed to use groups if ShowGroups is false.
5715         * ListViewGroup.cs: Add an internal int field to store the starting
5716         row of the group (used by the big matrix used for navigating the
5717         ListView).
5718         * ThemeWin32Classic.cs: Don't draw headers if ListView.ShowGroups is
5719         false.
5720
5721 2007-07-30  Jonathan Pobst  <monkey@jpobst.com>
5722
5723         * ToolStripDropDown.cs: When we do Show, start with the 
5724         DefaultDropDownDirection, but if our popup menu is going to off-screen,
5725         modify the direction to keep it on screen.  [Fixes bug #82210]
5726
5727 2007-07-29  Gert Driesen  <drieseng@users.sourceforge.net>
5728
5729         * FileDialog.cs: Accept any FilterIndex value, and store it
5730         unmodified. When FilterIndex is less than 1, or greater than number
5731         of filters, then default to first filter. Only add filter extension to
5732         file if user did not specifiy an extension. When type of dialog is
5733         OpenFileDialog and DefaultExt is set, then only use filter extension
5734         if: CheckFileExists is true and no file wih the default extension
5735         exists, or CheckFileExists is false, and user specified file does not
5736         exist. When CheckFileExists is true, then add first extension of 
5737         selected filter that matches existing file. Perform checks for
5738         existing file, overwrite and create after extension has been added to
5739         file name. When CheckFileExists is true and type is SaveFileDialog,
5740         then only consider first filter extension if DefaultExt is set.
5741         When CheckFileExists is true, then ignore DefaultExt if file with that
5742         extension does not exist. Also perform check for existing file when
5743         type is SaveFileDialog. Changed some field to constants.
5744
5745 2007-07-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5746
5747         * ListView.cs: Take into account the region used by header
5748         control when doing the vertical scroll (this way we invalidate
5749         the precise area, and don't get any dirty one).
5750
5751 2007-07-27  Everaldo Canuto  <ecanuto@novell.com>
5752
5753         * FileDialog.cs: Check for valid filterIndex on button open/save. 
5754         Fixes #82184.
5755
5756 2007-07-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5757
5758         * ListView.cs: Update some layout calculations in details view
5759         and clean the code in a pair of assignations.
5760
5761 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
5762
5763         * ComboBox.cs, ContainerControl.cs, DataGrid.cs, FontDialog.cs, Label.cs,
5764         LinkLabel.cs, ListBox.cs, ListView.cs, ListViewItem.cs, MessageBox.cs,
5765         MonthCalender.cs, StatusBar.cs, ThemeClearlooks.cs, ThemeWin32Class.cs,
5766         ToolBar.cs, TreeView.cs: First pass at using thread-safe string measuring.
5767
5768 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
5769
5770         * TextRenderer.cs: Use [ThreadStatic] instead of locks to improve
5771         performance of thread-safe Graphic methods.  (Thanks rolf!)
5772
5773 2007-07-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5774
5775         * ListView.cs: When doing the layout calculations, don't calculate
5776         scroll bars before handle is created. This is unnecessary and also
5777         calculating them before handle creation item causes a number of random
5778         bugs (which begin to appear after Chris' big patch for handle creation
5779         fixes). 
5780
5781 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
5782
5783         * TextRenderer.cs: Create thread-safe versions of Graphics.MeasureString
5784         for things that don't have a Graphics object.  Currently, things just use
5785         the static Hwnd.bmp_g which is not thread safe.
5786
5787 2007-07-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5788
5789         * Form.cs: ShowDialog: don't destroy handles if the dialog is a common
5790           dialog. Fixes #82187.
5791
5792 2007-07-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5793
5794         * DataGridViewElement.cs: Initialize state.
5795         * DataGridView.cs: Forward a few Mouse events to cells. Add
5796           GetRowInternal and GetCellInternal that doesn't unshare rows.
5797           Implement GetCellDisplayRectangle. HitTest: if the row is shared,
5798           don't use the index, but look it up. Add
5799           DataGridViewControlCollection.RemoveInternal to remove controls
5800           that Remove won't remove (scrollbars, edit control).
5801         * DataGridViewColumn.cs: Initialize State correctly.
5802         * DataGridViewColumnHeaderCell.cs, DataGridViewComboBoxCell.cs,
5803           DataGridViewHeaderCell.cs, DataGridViewRowHeaderCell.cs: Started
5804           implementing this.
5805         * DataGridViewRowCollection.cs: Implemented shared rows.
5806         * DataGridViewRow.cs: Throw exceptions as MS do.
5807         * DataGridViewCell.cs: A few properties are implemented by a
5808           Get<Property> method, so move implementation there and remove the
5809           NIEX in the method. Add a bunch of OnXInternal that DataGridView
5810           calls when necessary.
5811         * DataGridViewComboBoxEditingControl.cs: Remove a few NIEX'es that just
5812           complicates matters.
5813         * DataGridViewCellCollection.cs: Add a GetCellInternal that doesn't
5814           unshare any rows.
5815
5816 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
5817
5818         * UpDownBase.cs: We cannot override SetBoundsCore for 2.0, which was relayout-ing
5819         the children controls.  Instead, we will just set up the proper docking for the
5820         children controls so we don't have to worry about it.  [Fixes bug #82188]
5821
5822 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
5823
5824         * TreeView.cs, NodeLabelEditEventArgs.cs, LabelEditTextBox.cs: Support edit
5825         canceling and correct Before/AfterLabelEdit properties as layed out in bug
5826         81847.  [Fixes bug #81847]
5827
5828 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
5829
5830         * Label.cs: If AutoSize = true and a width or height is set, ignore it and
5831         redo the autosize.  VS2005 defaults to setting the AutoSize, and then setting
5832         an explicit size based on the design-time size of the text.  Since our fonts
5833         may not match this explicit size, we tend to cut off the ends of people's labels.
5834
5835 2007-07-24  Jonathan Pobst  <monkey@jpobst.com>
5836
5837         * Menu.cs: Add some missing methods to MenuItemCollection.
5838
5839 2007-07-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5840
5841         * DataGridView.cs: Added RowTemplateFull, creates a row from the templates in the columns.
5842         * DataGridViewBand.cs: DefaultHeaderCellType: initialize correctly. Resizable: if not set, check DGV.
5843         * DataGridViewColumn.cs: InheritedAutoSizeMode: if not set, check DGV. Resizable: delegate to base class. ToolTipText: Never return null. Initialize a few other properties correctly.
5844         * DataGridViewColumnCollection.cs: Add: Default column is a TextBoxColumn.
5845         * DataGridViewComboBoxCell.cs: Started implementing this, lots left still.
5846         * DataGridViewElement.cs: State defaults to Visible.
5847         * DataGridViewRowCollection.cs: Add: creates the new row based on a template.
5848         * DataGridViewTextBoxColumn.cs: SortMode: delegate to base class, but initialize to Automatic. ToString: implement correctly.
5849
5850 2007-07-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5851
5852         * Control.cs: Minor 1.1 corcompare fix.
5853
5854 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
5855
5856         * LinkLabel.cs, PrintPreviewDialog.cs, TabPage.cs, TextBox.cs,
5857         TextBoxBase.cs, ToolBar.cs: 2.0 corcompare work.
5858
5859 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5860
5861         * DataGridViewLinkColumn.cs, DataGridViewRowCollection.cs,
5862           DataGridViewImageColumn.cs, DataGridViewSelectedCellCollection.cs,
5863           DataGridViewComboBoxCell.cs, DataGridViewLinkCell.cs,
5864           DataGridViewSelectedColumnCollection.cs,
5865           DataGridViewSelectedRowCollection.cs: Corcompare work.
5866
5867 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
5868
5869         * PrintDialog.cs: Stub UseEXDialog.  I chose to stub this because
5870         it is autoset by VS2005 designer and the effect is barely noticeable.
5871
5872 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
5873
5874         * TreeView.cs: Implement HitTest.
5875
5876 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5877
5878         * DataGridViewTextBoxCell.cs: Use DGV.EditControlInternal instead of
5879           manually adding and removing the control from the Controls
5880           collecftion.
5881         * DataGridView.cs: Implement DataGridViewControlCollection. Add an
5882           EditingControlInternal property that tracks the editing control.
5883           Always keeping the scrollbars in the Controls collection, as MS
5884           testing confirms is the right behaviour.
5885
5886 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5887
5888         * ScrollableControl.cs: Fix implementation of AutoScrollPosition
5889           according to MSDN and new test.
5890
5891 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
5892
5893         * TreeNode.cs: Implement ToolTipText.
5894         * TreeView.cs: Implement tooltips, NodeMouse* events.
5895
5896 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
5897
5898         * TreeView.cs: Implement OnNodeMouseClick and OnNodeMouseDoubleClick.
5899
5900 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
5901
5902         * TreeNode.cs: Implement ContextMenu, ContextMenuStrip, and Level.
5903         * TreeView.cs: Use the node's contextmenu[strip] if applicable.
5904
5905 2007-07-20  Ivan N. Zlatev  <contact@i-nz.net>
5906
5907         * Control.cs, Form.cs, ContainerControl.cs,
5908         ScrollableControl.cs, ButtonBase.cs:  Added ShouldSerialize
5909         for misc properties.
5910
5911 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
5912
5913         * TreeNode.cs: Implement StateImageIndex and StateImageKey.
5914         * TreeView.cs: Implement StateImageList.
5915
5916 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5917
5918         * Form.cs: Don't check if the current form is the active form before
5919           activating it. Fixes #81904.
5920
5921 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5922
5923         * Form.cs: Don't check if the current form is the active form before
5924           activating it. Fixes #81904.
5925
5926 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5927
5928         * TreeView.cs: Apply patch from Tyron (tmm@aon.at). Fixes #81847.
5929
5930 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5931
5932         * Form.cs: Don't try to position the form after loading if the form was
5933           disposed. Fixes #81969.
5934
5935 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5936
5937         * PropertyGrid.cs, PropertyGridView.cs: Implemented 2.0 methods and
5938           properties. Had to change ToolBar into ToolStrip, which required a
5939           few #ifs.
5940
5941 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5942
5943         * PropertyGrid.cs: PropertyToolBar: Redraw the entire toolbar when it's
5944           resized, fixes part of #79829 (vertical lines in toolbar).
5945           PropertyGrid: Refactored Populate* to something that's easier to
5946           follow at least for me, as well as splitting it up into several new
5947           methods, required to update only subitems when something has
5948           changed by a popup editor or listbox. Don't use events to check
5949           when any values are changed, since the events are unreliable (we're
5950           changing the objects the events are registered with, and if the
5951           event handling requires the objects to be immutable (objects stored
5952           in hashtables for instance), the events will never be raised).
5953         * PropertyGridView.cs: Call PropertyGrid.PropertyValueChangedInternal
5954           everytime we change a value, since events are unreliable.
5955           DropDownButtonClicked: For the same reason don't compare objects to
5956           check if it has changed or not, it would require all objects to
5957           derive Equals. Fix dialog location on windows, MS is doing weird
5958           things when creating parented forms.
5959         * GridEntry.cs: Add a SelectedObject setter.
5960
5961 2007-07-19  Jonathan Pobst  <monkey@jpobst.com>
5962
5963         * TreeNode.cs: Add some corcompare attributes.
5964         * TreeNodeCollection.cs: Implement 2.0 stuffs.
5965         * TreeView.cs: Implement some 2.0 stuffs.
5966
5967 2007-07-18  Andreia Gaita  <avidigal@novell.com>
5968
5969         * WebBrowser.cs, WebBrowserBase.cs: add some more MonoTODOs now
5970         for moma.
5971
5972 2007-07-19  Jonathan Pobst  <monkey@jpobst.com>
5973
5974         * ListBox.cs: Implement custom tab offsets.
5975
5976 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
5977
5978         * ToolStripContentPanel.cs: Support System renderer.
5979         * ToolStripControlHost.cs: Set RightToLeft to default to No.
5980
5981 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
5982
5983         * ScrollableControl.cs: Don't mess up the user's explicit bounds.
5984
5985 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
5986
5987         * CheckBox.cs: Chain TextAlign to base implementation instead of
5988         maintaining another one.
5989
5990 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
5991
5992         * ButtonBase.cs: Fix an incorrect string constant.
5993
5994 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
5995
5996         * TextRenderer.cs: Use the static Graphics context in Hwnd instead
5997         of creating one for measuring strings.
5998
5999 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
6000
6001         * ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownMenu.cs: 
6002         Implement MaxItemSize.
6003
6004 2007-07-17  Jonathan Pobst  <monkey@jpobst.com>
6005
6006         * Control.cs: Remove per-control 1x1 Bitmap and Graphics context used
6007         for DeviceContext.  Instead, use the static one available in Hwnd.
6008         Informal tests show this saves about 500k on formtest.exe.
6009
6010 2007-07-17  Jonathan Pobst  <monkey@jpobst.com>
6011
6012         * ContainerControl.cs: Implement 2.0 AutoScaling.
6013
6014 2007-07-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6015
6016         * ComboBox.cs: Work around bug #82120 (bug in mcs).
6017
6018 2007-07-16  Jonathan Pobst  <monkey@jpobst.com>
6019
6020         * ThemeWin32Classic.cs: Allow a Flat button to be Focused and Entered.
6021         Darken the focus color.
6022
6023 2007-07-16  Jonathan Pobst  <monkey@jpobst.com>
6024
6025         * ListBox.cs: When measuring items, if it's a CheckedListBox, add room
6026         for the checkbox.
6027         * ThemeWin32Classic.cs: Make the checkbox bigger in a CheckedListBox and use
6028         X, Y instead of a rect for drawing text.
6029         - For ControlPaint.DrawCheckBox, center the check a little better when the
6030         checkbox is odd width.  When drawing a flat checkbox, use a white background
6031         when state != inactive.
6032         [Fixes bugs #82097, 82100]
6033
6034 2007-07-16  Gert Driesen  <drieseng@users.sourceforge.net>
6035
6036         * ListControl.cs: When changing CurrencyManager, disconnect event
6037         handlers from previous one. Fixes bug #81771. Code formatting.
6038
6039 2007-07-15  Andreia Gaita <avidigal@novell.com>
6040
6041         * PrintPreviewControl.cs: Remove extraneous Invalidate calls. Separate
6042         full preview invalidation from layout invalidation, and only invalidate
6043         the layout when setting zoom or other properties. Invalidation should
6044         always be done even when resetting properties with the same values as
6045         what is there. Fixes #81744 and #79830.
6046
6047 2007-07-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6048
6049         * ListView.cs: Implement initial support for Groups. Split some of the
6050         LayoutIcons code to render a partial list of the items (needed by
6051         items contained in ListViewGroup instances). Let the
6052         ListViewItemsCollection.ListView property be modifiable (needed when
6053         using Groups, too).
6054         * ListViewGroup.cs: Use a Bounds property rather than a Location
6055         one. Also invalidate the bounds when they get changed.
6056         * ThemeWin32Classic.cs: When drawing items, also draw the group header
6057         if ListView.Groups.Count is bigger than 0. Add a DrawListViewGroupHeader
6058         method as well.
6059
6060 2007-07-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6061
6062         * ListView.cs: When space gets pressed and CheckBoxes is true, 
6063         don't invoke the Begin and EndUpdate methods. We are generating 
6064         a redraw of the entire control without need to do so.
6065
6066 2007-07-13  William Holmes <billholmes54@gmail.com> 
6067
6068         * Control.cs: Changing logic in FindFlatForward and 
6069           FindFlatBackward to handle multiple Controls with 
6070           the same TabIndex.  
6071           This fixes bug 81687.
6072
6073 2007-07-13  Jonathan Pobst  <monkey@jpobst.com>
6074
6075         * OSFeature.cs: Enable IsPresent.
6076
6077 2007-07-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6078
6079         * Control.cs: Don't do anything in WmShowWindow if the control has been
6080           disposed. We can get WM_SHOWWINDOW after a control is disposed: a
6081           control is created, put on a form, the control is disposed (the
6082           form is never shown), and then we get a MapNotify, triggering a
6083           WM_SHOWWINDOW.
6084         * Form.cs: Exclude the current form when sending Deactivate to all
6085           MdiChildren.
6086         * NativeWindow.cs: Set WindowCreating to null as soon as possible,
6087           there was a race condition because assigning the handle raises
6088           events, we can get more messages, therefore trying to assign the
6089           handle again, which would fail if any of those event handlers
6090           closed/disposed the control.
6091
6092 2007-07-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6093
6094         * Form.cs: Make the fix for #80775 windows-only (fixes #81957).
6095
6096 2007-07-12  Jonathan Pobst  <monkey@jpobst.com>
6097
6098         * SystemInformation.cs, Theme.cs, XplatUI.cs, XplatUIDriver.cs,
6099         XplatUIWin32.cs: Implement SystemInformation 2.0 properties.
6100
6101 2007-07-12  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6102
6103         * DateTimePicker.cs: If there's no part format specifier, return an
6104           empty string.
6105
6106 2007-07-12  Jonathan Pobst  <monkey@jpobst.com>
6107
6108         * FlatButtonAppearance.cs: Throw NotSupportedException for a
6109         Transparent BorderColor.
6110
6111 2007-07-12  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6112
6113         * DataGridView.cs, TextControl.cs, ProgressBar.cs, PrintDialog.cs,
6114           MessageBox.cs, ButtonBase.cs, PageSetupDialog.cs, NumericUpDown.cs,
6115           X11Dnd.cs, Binding.cs, DataGrid.cs, AxHost.cs,
6116           LinkLabelLinkClickedEventArgs.cs, TextRenderer.cs, Label.cs,
6117           LinkLabel.cs, TreeNode.cs, BindingSource.cs, TabPage.cs,
6118           TextBoxBase.cs, BindingNavigator.cs, Application.cs,
6119           ToolStripPanel.cs, TabControl.cs, ThemeClearlooks.cs, TreeView.cs:
6120           Remove warnings.
6121         * X11Structs.cs: Remove warnings, add ToString implementations.
6122
6123 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6124
6125         * XplatUIX11.cs: Translate min/max size according to the actual min/max
6126           size, and not the current size. Fixes #81798.
6127
6128 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6129
6130         * XplatUIX11.cs: Fix #80822 again (DefWndProc can be reached before
6131           XplatUI.CreateWindow returns, in which case the hwnd isn't assigned
6132           to the control yet).
6133
6134 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6135
6136         * PropertyGridTextBox.cs: Add a method that sends any forwarded
6137           mousedowns to the contained textbox.
6138         * X11Structs.cs: More ToString implementation.
6139         * PropertyGridView.cs: Forward any mousedowns to the textbox, fixes
6140           #81791.
6141
6142 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6143
6144         * PropertyGridView.cs: Add a null-check, fixes a few tests.
6145
6146 2007-07-10  Jonathan Pobst  <monkey@jpobst.com>
6147
6148         * TableLayoutPanelCellPosition.cs: TypeConverter.
6149
6150 2007-07-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6151
6152         [ Fixes #79761]
6153         
6154         * PropertyGridTextBox.cs: Propagate any color changes to all contained
6155           controls.
6156         * PropertyGridView.cs: A few color fixes.
6157
6158 2007-07-10  Jackson Harper  <jackson@ximian.com>
6159
6160         * TextControl.cs: Remove some old unused text formatting stuff.
6161
6162 2007-07-10  Jackson Harper  <jackson@ximian.com>
6163
6164         * TreeView.cs: Update full row select invalidation to match the
6165         newer DrawSelection... method.
6166         - Make sure to invalidate the entire width when selecting a new
6167         node, if we have full row selection enabled.
6168
6169 2007-07-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6170
6171         * PropertyGridView.cs: Fix for #81800, makes text show up on initial
6172           display of properties again.
6173
6174 2007-07-10  Jonathan Pobst  <monkey@jpobst.com>
6175
6176         * ListBox.cs: Add IntegerCollection and Add, Clear, Remove
6177         to existing collections.
6178
6179 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
6180
6181         * AccessibleObject.cs, RadioButton.cs: Fix some base classes
6182         that changed between 1.1 and 2.0.
6183
6184 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
6185
6186         * PowerStatus.cs: Added.  This is just a data class, it is filled
6187         in by SystemInformation.
6188
6189 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
6190
6191         * Message.cs: Add op_Equality and op_Inequality.
6192
6193 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
6194
6195         * MenuStrip.cs: Finish corcompare work.
6196
6197 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
6198
6199         * LinkArea.cs: Add op_Equality and op_Inequality.
6200
6201 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
6202
6203         * Application.cs: Add MessageLoopCallback delegate.
6204
6205 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
6206
6207         * ListBox.cs: First set of 2.0 stuffs.
6208
6209 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
6210
6211         * Control.cs: Make an internal Height property we can override
6212         without messing up the public API.
6213         * ListBox.cs: Override HeightInternal to always return the size
6214         the user set.  [Fixes bug #80466]
6215
6216 2007-07-08  Jonathan Pobst  <monkey@jpobst.com>
6217
6218         * TableLayoutPanel.cs: Add a null check so we don't NRE trying to
6219         paint cell borders if we haven't calculated where they go yet.
6220         [Fixes bugs #82040 and #82041]
6221
6222 2007-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6223
6224         * ListView.cs: In Details view, set the location of item_control
6225         in the (0,0) position (and the header_control is thus on the
6226         item_control). This way the Bounds of the Items are relative to the
6227         ListView control (before this, they had a Bounds value without the
6228         header_control offset, which wasn't matching .Net). Fixes #82004.
6229
6230 2007-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6231
6232         * ListControl.cs: When DataSource is set to null, pass an empty
6233         array of object to SetItemsCore. This is done to clean the items
6234         in the ListContol children. Fixes #81788.
6235
6236 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
6237
6238         * ListControl.cs: Add 2.0 stuffs.
6239
6240 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
6241
6242         * Label.cs: Finish up 2.0 stuffs.  Replace calls to Refresh with Invalidate,
6243         Refresh is overkill for just about every repaint request.
6244
6245 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
6246
6247         * ToolStripItem.cs: TextDirection getter handles looking up Inherit for us,
6248         so remove my custom Get method and fix the property getter.
6249
6250 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
6251
6252         * Label.cs: DefaultMargin for 2.0.
6253
6254 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
6255
6256         * ComboBox.cs: Override IsInputCharInternal and return true.  Fixes 
6257         reported issue where other controls with mnemonics would steal strokes
6258         from a selected ComboBox.
6259
6260 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
6261
6262         * ScrollOrientation.cs: Make internal for 1.1.
6263         * ScrollEventArgs.cs: Add 2.0 stuffs.
6264
6265 2007-07-05  Jonathan Pobst  <monkey@jpobst.com>
6266
6267         * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
6268         ToolStripItem.cs, ToolStripItem.cs, ToolStripItemTextRenderEventArgs.cs,
6269         ToolStripRenderer.cs, ToolStripSeparator.cs: Implement TextDirection.
6270
6271 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6272
6273         * ListViewItem.cs: Implement the small 2.0 GetSubItemAt method.
6274
6275 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6276
6277         * ListView.cs: Implement the so-incredibly broken 2.0 
6278         VirtualItemsSelectionRangeChanged event.
6279
6280 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6281
6282         * ListView.cs: When enter is pressed and selection is non empty,
6283         an OnItemActivate event must be fired.
6284
6285 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6286
6287         * ListView.cs: Store the FocusedItem information as an
6288         int instead of a ListViewItem (needed by VirtualMode).
6289         Update the calls to SetFocusedItem to pass an index instead of
6290         an item.
6291         * ListViewItem.cs: Likewise. Also, in VirtualMode retrieve
6292         the Focused state from the owner ListView. 
6293
6294 2007-07-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6295
6296         * ListView.cs: Set ListView.focused_item from ListViewItem.Focused
6297         property. Also, invalidate previous focused item in the mentioned
6298         property (match .Net).
6299
6300 2007-07-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6301
6302         * ListView.cs: Implement 2.0 FocusedItem property setter.
6303
6304 2007-07-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6305
6306         * ListView.cs: Implement 2.0 TopItem property setter.
6307
6308 2007-07-03  Jonathan Pobst  <monkey@jpobst.com>
6309
6310         * StatusStrip.cs: The default renderer is System.
6311         * ToolStrip.cs, ToolStripManager: Now that we have System renderer, use it 
6312         if the user specifies it.
6313         * ToolStripDropDown.cs: Don't reset our Renderer on changing OwnerItem
6314         if we are ManagerRenderMode.
6315         * ToolStripMenuItem.cs: Calculate our text color better.
6316         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Move some stuff
6317         from Professional to the base class based off working with the System renderer.
6318         * ToolStripSystemRenderer.cs: Added.
6319
6320 2007-07-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6321
6322         * ListView.cs: I'm so lame - the real name is HitTest, not HitInfo.
6323
6324 2007-07-02  Jonathan Pobst  <monkey@jpobst.com>
6325
6326         * ToolTip.cs: Implement 2.0 Tag property.
6327
6328 2007-06-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6329
6330         * ListView.cs: Implement 2.0 HitTest methods.
6331
6332 2007-06-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6333
6334         * ListViewItem.cs: Add a 2.0 bool Hot property, to tell whether the
6335         item is under the pointer or not (sugar). Also remove the TODO
6336         regarding to the cursor changes in OneClick activation.
6337         * ThemeWin32Classic.cs: When HotTracking is true and we are drawing
6338         the subitems use the parent's HotFont if UseItemStyleForSubItems is
6339         true; otherwise don't show the underline style.
6340
6341 2007-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6342
6343         * ListView.cs: In ItemControl.ItemsMouseMove, refactor
6344         the code to retrieve the item at position only one time. Also
6345         change cursor when Activation is ItemActivation.OneClick as well
6346         as invalidate the item if HotTracking is true (to show/hide the
6347         underline style). Add an internal HotItemIndex property to retrieve
6348         the current hot item's index.
6349         * ListViewItem.cs: Add an internal HotFont property to cache the
6350         font used when HotTracking is true and the pointer moves within the
6351         item's borders.
6352         * ThemeWin32Classic.cs: When drawing the item's text, use Font or
6353         HotFont depending on the hot state of the item.
6354
6355 2007-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6356
6357         * ListView.cs: Implement 2.0 HotTracking property.
6358
6359 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
6360
6361         * ToolStripControlHost.cs: If our hosted control never got created,
6362         don't try to dispose it.  [Fixes bug #81909]
6363
6364 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
6365
6366         * TableLayoutPanel.cs: Implement ScaleCore, ScaleControl.
6367
6368 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
6369
6370         * TableLayoutPanel.cs: Implement CellBorderStyle.  [Fixes bug #81884]
6371
6372 2007-06-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6373
6374         * ThemeWin32Classic.cs: In OwnerDraw mode draw subitems only for 
6375         Details view.
6376         * DrawListViewColumnHeaderEventArgs.cs:
6377         * DrawListViewSubItemEventArgs.cs: Add padding to the bounds when drawing text
6378         using the DrawText () methods.
6379
6380 2007-06-19  Jonathan Pobst  <monkey@jpobst.com>
6381
6382         * ToolStripProfessionalRenderer.cs: Put back clearing a ToolStripDropDown's
6383         background which got erased in my changes yesterday.
6384
6385 2007-06-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6386
6387         * ListViewItem.cs: Actually set bounds for subitems in Details view
6388         (2.0 feature).
6389         * ThemeWin32Classic.cs: Refactor the drawing code for subitems, so we
6390         can invoke from the owner draw routines if we need it. Also, add
6391         support for Owner draw in Details view.
6392
6393 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
6394
6395         * ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripLabel.cs,
6396         ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs: Respect the
6397         ShowImageMargin setting, properly align text in a ToolStripLabel
6398         hosted on a ToolStripDropDown.
6399
6400 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
6401
6402         * ToolStrip.cs, ToolStripContentPanel.cs, ToolStripDropDownMenu.cs,
6403         ToolStripProfessionalRenderer.cs: Refactor and clean up some rendering code.
6404
6405 2007-06-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6406
6407         * DrawListViewSubItemEventArgs.cs: Actually implement its methods.
6408
6409 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
6410
6411         * ToolStripLabel.cs: If the label is on a dropdown, adjust the text
6412         location to match ToolStripMenuItems.
6413
6414 2007-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6415
6416         * DrawListViewColumnHeaderEventArgs.cs:
6417         * ThemeWin32Classic.cs: Implement 2.0 OwnerDraw support for
6418         column headers in ListView. 
6419
6420 2007-06-15  Jonathan Pobst  <monkey@jpobst.com>
6421
6422         * UserControl.cs: Implement AutoSize.
6423
6424 2007-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6425
6426         * DrawListViewItemEventArgs.cs:
6427         * ListView.cs:
6428         * ThemeWin32Classic.cs: Implement basic support for 2.0 OwnerDraw in
6429         ListView.
6430
6431 2007-06-15  Jonathan Pobst  <monkey@jpobst.com>
6432
6433         * ToolStripDropDownItemAccessibleObject.cs: Added.
6434         * ToolStripDropDownItem.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
6435         ToolStripOverflow.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
6436         ToolStripProgressBar.cs, ToolStripSeparator.cs, ToolStripSplitButton.cs,
6437         ToolStripTextBox.cs: corcompare work.
6438
6439 2007-06-14  Jonathan Pobst  <monkey@jpobst.com>
6440
6441         * OSFeature.cs, StatusStrip.cs, TabControl.cs, TableLayoutSettings.cs,
6442         TableLayoutStyle.cs, TableLayoutCollection.cs, ToolStripContentPanel.cs,
6443         ToolStripControlHost.cs, ToolStripDropDown.cs, ToolStripDropDownButton.cs:
6444                 corcompare.
6445
6446 2007-06-14  Jonathan Pobst  <monkey@jpobst.com>
6447
6448         * OSFeature.cs: Add IsPresent.
6449         * PrintPreviewControl.cs: Add RightToLeft.
6450         * SplitContainer.cs: Add AutoScrollOffset, ScaleControl.
6451         * SplitterPanel.cs: Add AutoSizeMode.
6452
6453 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
6454
6455         * LayoutEventArgs.cs: Add 2.0 AffectedComponent.
6456         * MdiClient.cs: Add 2.0 ScaleControl.
6457         * NativeWindow.cs: Implement 2.0 interface IWin32Window.
6458         * NumericUpDownAccelerationCollection.cs: Add [ListBinding].
6459
6460 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
6461
6462         * Form.cs: Implement some scaling methods, stub some RTL methods,
6463         corcompare work.
6464
6465 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
6466
6467         * Control.cs: corcompare work.
6468         * FlatButtonAppearance.cs, FolderBrowserDialog.cs: Add TypeConverters.
6469
6470 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
6471
6472         * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Implement
6473         ControlPaint 2.0 stuffs.
6474
6475 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
6476
6477         * ThreadExceptionDialog.cs: Add 2.0 stuffs.
6478
6479 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
6480
6481         * UpDownBase.cs: Add 2.0 stuffs.
6482
6483 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
6484
6485         * NumericUpDown.cs: Add 2.0 stuffs.
6486
6487 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
6488
6489         * NotfiyIcon.cs: Add MouseDoubleClick event, hook up MouseClick event.
6490
6491 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
6492
6493         * ErrorProvider.cs: Implement 2.0 stuffs.
6494
6495 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
6496
6497         * DomainUpDown.cs: Implement 2.0 stuffs.
6498
6499 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
6500
6501         * CheckedListBox.cs: Fix RefreshItems signature.
6502
6503 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
6504
6505         * PictureBox.cs: Implement 2.0 stuffs.
6506
6507 2007-06-12  Andreia Gaita  <avidigal@novell.com>
6508         
6509         * TabControl.cs: Check if there are tabpages before checking
6510         the selected index - fix #81802 (font changes raise a ResizeTabs
6511         call on controls.add, which blew up nicely with no tabpages)
6512
6513 2007-06-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6514
6515         * ListView.cs:
6516         * ListViewItem.cs: Implement 2.0 ItemSelectionChanged event.
6517
6518 2007-06-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6519
6520         * ListView.cs:
6521         * ListViewItem.cs: In VirtualMode the selection information
6522         resides in the ListView, rather than in the Items. Also, throw
6523         InvalidOperationExceptions when VirtualMode is being used and
6524         CheckedItemCollection is accessed.
6525
6526 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
6527
6528         * ComboBox.cs: Add ScaleControl.
6529
6530 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
6531
6532         * ButtonBase.cs: ButtonBaseAccessibleObject.State should not be visible to 1.1.
6533
6534 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
6535
6536         * GroupBox.cs: Add 2.0 stuffs.
6537
6538 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
6539
6540         * Panel.cs: Add autosize properties/event.
6541
6542 2007-06-07  Jonathan Pobst  <monkey@jpobst.com>
6543
6544         * Control.cs:
6545         - When we remove a control, remove it from the collection before performing the layout.
6546         - Setup an internal property for explicit_bounds.
6547         - Don't let the UpdateBounds in CreateHandle overwrite our explicit bounds.
6548         - Perform a layout when we set a new AutoSizeMode.
6549
6550 2007-06-07  Jonathan Pobst  <monkey@jpobst.com>
6551
6552         * ScrollableControl.cs: Add 2.0 stuffs.
6553
6554 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
6555
6556         * ScrollBar.cs: Add 2.0 stuffs.
6557
6558 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
6559
6560         * Splitter.cs: Add 2.0 stuffs.
6561
6562 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
6563
6564         * SplitContainer.cs: Apply patch from Neil Cawse <neilcawse@geotab.com>
6565         to have BindingContext simply use base implementation.
6566
6567 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
6568
6569         * ColumnHeader.cs: corcompare fix.
6570
6571 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
6572
6573         * Button.cs: corcompare fixes.
6574         * ButtonBase.cs: corcompare fixes, add ButtonBaseAccessibleObject.State.
6575
6576 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
6577
6578         * Button.cs: Override GetPreferredSizeCore.
6579         * ButtonBase.cs: PerformLayout after changing properties that can affect
6580         AutoSize.  Simplify some mouse/keyboard code.
6581         * Control.cs: PerformLayout after changing Padding if AutoSize = true.
6582         * MouseEventArgs.cs: Make Location internal for 1.1.
6583         * TextRenderer.cs: Make MeasureTextInternal (string, Font, bool) internal for 1.1.
6584         * Theme.cs: Add CalculateButtonAutoSize.
6585         * ThemeWin32Classic.cs: Implement CalculateButtonAutoSize.
6586
6587 2007-06-05  Miguel de Icaza  <miguel@novell.com>
6588
6589         * TreeNodeCollection.cs: Applied patch from Neil Cawse <neilcawse@geotab.com>
6590
6591 2007-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6592
6593         * ListViewItem.cs: We can't cache Bounds in VirtualMode 
6594         since we can get different item instances every time we retrieve it.
6595
6596 2007-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6597
6598         * ListView.cs: Work around for #81602, since an unkown an pretty
6599         infrequent condition appears only in some systems (old linux boxes, it
6600         seems).
6601
6602 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
6603
6604         * Button.cs: Completely reformat and a little refactor to bring
6605         this closer to Mono circa 2007.
6606
6607 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
6608
6609         * CheckBox.cs, Form.cs, RadioButton.cs: Change call to ButtonBase.Redraw
6610         to be ButtonBase.Invalidate.
6611
6612 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
6613
6614         * ButtonBase.cs: GetPreferredSize is 2.0 only.  Fixes build.
6615
6616 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
6617
6618         * ButtonBase.cs: Completely reformat and a little refactor to bring
6619         this closer to Mono circa 2007.
6620
6621 2007-06-01  Everaldo Canuto  <ecanuto@novell.com>
6622
6623         * Label.cs: Fixes preferred sizes for 2.0 profile, also adjust some
6624         values for autosize. Fixes #80137.
6625
6626 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
6627
6628         * Control.cs: Don't perform layout when AutoSize changes.
6629         * Form.cs: Perform layout in AutoSize override.  Don't set ClientSize
6630         directly when autosizing, use SetBounds with BoundsSpecified.None.
6631         Fixes unit tests my last commit broke.
6632
6633 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
6634
6635         * Control.cs: Perform layout when AutoSize changes.
6636         * Form.cs: Implement AutoSizing.
6637
6638 2007-06-01  Chris Toshok  <toshok@ximian.com>
6639
6640         * DataGrid.cs: remove the XXX'ed check at the top of
6641         ProcessGridKey.  fixes #80464.
6642
6643 2007-06-01  Chris Toshok  <toshok@ximian.com>
6644
6645         * DataGridTextBoxColumn.cs: TextBox.TextChanged event handler
6646         adding idempotent (add/remove in Edit()), and also make sure we
6647         don't add it until after we set the text, so it's not tripped in
6648         Edit().  Fixes unit test regression.
6649
6650 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
6651
6652         * Control.cs: In UpdateBounds, only recalculate anchor distances if the
6653         change is user explicit, not when the layout engine moves stuff.  Fixes
6654         anchoring to bottom and right.  [Fixes bug #81790]
6655
6656 2007-06-01  Andreia Gaita  <avidigal@novell.com>
6657
6658         * PrintDialog.cs: Add collation preview thumbnails. Fixes #80726.
6659
6660 2007-06-01  Andreia Gaita  <avidigal@novell.com>
6661
6662         * ContainerControl.cs: 
6663         Fire enter event for common ancestor if it is not a ContainerControl.
6664         Send focus to the active_control and not the 'value', the active 
6665         control might have been changed in one of the events fired.     
6666         Definitely fixes #80159.
6667
6668 2007-06-01  Andreia Gaita  <avidigal@novell.com>
6669
6670         * DataGrid.cs: Finish editing when focus leave the datagrid. Fixes #80159.
6671
6672 2007-06-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6673
6674         * PropertyGrid.cs: Anchor the help description to the bottom of the
6675           help panel and refactor SelectGridItem into a
6676           SelectGridItemInternal that can be set to null (and update it to
6677           clear the help texts when it is set to null). Set root item to null
6678           when there's no SelectedObject. Fixes #80438.
6679         * ScrollableControl.cs: In Recalculate we need to ResumeLayout(true)
6680           when we're recalculating after a resize (only).
6681
6682 2007-05-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6683
6684         * ListView.cs: Implement 2.0 RedrawItems method.
6685
6686 2007-05-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6687
6688         * ListControl.cs: Disconnect PositionChanged and ItemChanged
6689         handlers from previous data manager when DataSource is set to
6690         null. Fixes #81771.
6691
6692 2007-05-31  Jackson Harper  <jackson@ximian.com>
6693
6694         * TextBoxBase.cs: These seem to be the correct values.
6695
6696 2007-05-31  Everaldo Canuto  <ecanuto@novell.com>
6697
6698         * FileDialog.cs: When close dialog with ok set filterindex using combobox
6699         value. Fixes #81784.
6700
6701 2007-05-31  Jonathan Pobst  <monkey@jpobst.com>
6702
6703         * Control.cs: Implement 2.0 scaling methods.
6704
6705 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6706
6707         * ProgressBar.cs, WebBrowserBase.cs, Control.cs, MaskedTextBox.cs,
6708           MessageBox.cs, PropertyGrid.cs, RichTextBox.cs: Fix warnings and
6709           corcompare issues.
6710
6711 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6712
6713         * ProgressBar.cs: Implemented missing 2.0 members.
6714
6715 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6716
6717         * Control.cs: Corcompare issues.
6718         * MessageBox.cs: Implemented missing 2.0 functions.
6719
6720 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6721
6722         * CheckedListBox.cs, ListBox.cs, ListControl.cs, ComboBox.cs:
6723           Implemented more 2.0 members.
6724
6725 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6726
6727         * Application.cs: Try to avoid NRE when Assembly.GetEntryAssembly is
6728           null (strange, but it seems to happen when running unit tests).
6729
6730 2007-05-30  Andreia Gaita  <avidigal@novell.com>
6731
6732         * ContainerControl.cs: Set active_control even earlier, before 
6733         firing any events, and undo it if validation returns false.
6734
6735 2007-05-30  Andreia Gaita  <avidigal@novell.com>
6736
6737         * ContainerControl.cs: Raise Validation and Enter/Leave events
6738         even if there is no Form and set active_control earlier, just
6739         before firing Enter events (toshok's patches). Fixes #80647.
6740
6741 2007-05-30  Jackson Harper  <jackson@ximian.com>
6742
6743         * TextControl.cs: Redid the pageup/pagedown a little to simplify
6744         things and fix bug #81311.
6745
6746 2007-05-30  Jackson Harper  <jackson@ximian.com>
6747
6748         * X11Dnd.cs: Now that we have our own event loop, we need to
6749         cancel when we get a mouseup but it won't be accepted.
6750
6751 2007-05-30  Chris Toshok  <toshok@ximian.com>
6752
6753         * DataGrid.cs (set_CurrentCell): guard against negative
6754         column/row.
6755
6756         * DataGridColumnStyle.cs (CheckValidDataSource): just use the
6757         array index syntax instead of looping over the property names.
6758
6759         * DataGridTextBoxColumn.cs: add a changed handler on the textbox,
6760         and set IsInEditOrNavigateMode to false there.
6761
6762 2007-05-30  Jackson Harper  <jackson@ximian.com>
6763
6764         * TreeView.cs: Make sure we don't get a bad visible order when
6765         setting to the top node.  Fixes some misc crashing in
6766         ControlInspector.
6767
6768 2007-05-30  Andreia Gaita  <avidigal@novell.com>
6769
6770         * UserControl.cs: Add 2.0 AutoSizeMode
6771
6772 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
6773
6774         * DataGridTextBoxColumn.cs: Fix textbox horizontal offset.
6775
6776 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
6777
6778         * DataGridTextBoxColumn.cs: Fix textbox position to prevent override grid
6779         lines. Fixes #80285. 
6780
6781 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
6782
6783         * DataGridColumnStyle.cs: Add char trimming column header text format. 
6784
6785 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
6786
6787         * DataGridColumnStyle.cs: Fix grid header arrow drawing over column name. 
6788         Fixes #80147.
6789
6790 2007-05-29  Jackson Harper  <jackson@ximian.com>
6791
6792         * TreeNode.cs: Fix off by one on calculating whether or not a node
6793         is visible.
6794
6795 2007-05-29  Jonathan Pobst  <monkey@jpobst.com>
6796
6797         * Control.cs: ResumeLayout(false) should recalculate anchor distances.
6798         * ScrollableControl.cs: Force an UpdateDistances when we move the
6799         scrollbars.
6800         [Fixes bug #80605]
6801
6802 2007-05-29  Andreia Gaita  <avidigal@novell.com>
6803
6804         * PageSetupDialog.cs: Fix #80728 - Changing the printer doesn't
6805         update the page setup screen.
6806
6807 2007-05-29  Andreia Gaita  <avidigal@novell.com>
6808
6809         * PageSetupDialog.cs: Fix landscape mode.
6810
6811 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6812
6813         * SystemInformation.cs: Add 2.0 IconSizeVerticalSpacing and
6814         IconSizeHorizontalSpacing.
6815
6816 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6817
6818         * ListView.cs: The declaration of prev_tooltip_item should be inside
6819         a NET_2_0 conditional (avoid a warning).
6820
6821 2007-05-28  Andreia Gaita  <avidigal@novell.com>
6822
6823         * PageSetupDialog.cs: Implement PrintPreview control to display
6824         the preview thumbnail. Change unit conversion to use 
6825         PrinterUnitConvert methods.
6826         
6827         Note: there is a huge bug in ms.net where the default margins are 
6828         interpreted as centimeters (?), when in fact they are set in inches. When 
6829         loading the page setup dialog initially (ms.net), the default margins 
6830         are set to 1 inch, and the dialog shows them with value 10, when in fact 
6831         it should be 25 (properly converted). Our dialog doesn't have this bug.
6832         
6833         * Theme.cs, ThemeWin32Classic.cs: Add a CPDrawBorder override for 
6834         RectangleF.
6835         * ControlPaint.cs: Add a DrawBorder internal method for RectangleF.
6836
6837 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6838
6839         * ListView.cs:
6840         * ListViewItem.cs: Implement 2.0 ToolTipText support for listview
6841         items.
6842
6843 2007-05-28  Andreia Gaita  <avidigal@novell.com>
6844
6845         * X11Dnd.cs: A direct cast to VirtualKeys is not allowed from
6846         an IntPtr on csc (it builds fine on mcs, could it be a compiler
6847         bug?), convert the ptr to Int32 first.
6848
6849 2007-05-28  Jackson Harper  <jackson@ximian.com>
6850
6851         * X11Dnd.cs: Add a timer, so after drop, if a finish is not
6852         recieved, we will exit the dnd tracking loop.
6853
6854 2007-05-28  Jackson Harper  <jackson@ximian.com>
6855
6856         * X11Dnd.cs: Keep tracking until the xdnd finished event is
6857         recieved. TODO: I should probably stick a timer on the dropped
6858         event, and finish the drag if the XDND Finished event never shows
6859         (because some apps don't seem to send it).
6860
6861 2007-05-28  Everaldo Canuto  <ecanuto@novell.com>
6862
6863         * ToolBar.cs: Fix toolbar default width for button with image. Fixes
6864         #81733.
6865
6866 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6867
6868         * MonthCalendar.cs: Only mark the keypresses we actually handle as
6869           handled.
6870
6871 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6872
6873         * MonthCalendar.cs: Set the size after initializing all the relevant
6874           variables. Fixes #81742.
6875
6876 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6877
6878         * KeyEventArgs.cs: Fix typo.
6879
6880 2007-05-28  Gert Driesen  <drieseng@users.sourceforge.net>
6881
6882         * DateTimePicker.cs: Changed exceptions thrown by MinDate and MaxDate
6883         to match MS. Fixed MinDate to only accept value less than or equal
6884         to MaxDate on 2.0 profile and less than MaxDate on 1.0 profile.
6885         Removed TODO's that are now verified by unit tests.
6886
6887 2007-05-27  Gert Driesen  <drieseng@users.sourceforge.net>
6888
6889         * TreeNodeCollection.cs: Minor corrections to exceptions to match
6890         MS.
6891
6892 2007-05-25  Jackson Harper  <jackson@ximian.com>
6893
6894         * X11Dnd.cs: Rework to make StartDrag a blocking call that runs
6895         it's own message loop.
6896         * XplatUIX11.cs: Remove some of the dnd hooks
6897
6898 2007-05-25  Gert Driesen  <drieseng@users.sourceforge.net>
6899
6900         * XplatUIX11.cs: Change MinimumWindowSize to {Width=0,Height=0}
6901         instead of MinimizedWindowSize.
6902
6903 2007-05-25  Jackson Harper  <jackson@ximian.com>
6904
6905         * TextBoxBase.cs: Raise textchanged when cutting and pasting text.
6906
6907 2007-05-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6908
6909         * KeyEventArgs.cs: Added SuppressKeyPress.
6910         * Control.cs: Added support for SuppressKeyPress.
6911
6912 2007-05-24  Andreia Gaita  <avidigal@novell.com>
6913
6914         * NumericUpDown.cs: Refactor code to fix regressions on #79950 and
6915         problems with PieChart. suppress_validation should not be a counter,
6916         if there are several BeginInit calls, the first EndInit will 
6917         activate validation. Fix exceptions thrown by set_Value.
6918         * UpDownBase.cs: ValidateText only if it's the user editing it.
6919
6920 2007-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6921
6922         * ListControl.cs: FilterItemOnProperty should return the filtered
6923         item proeprty even if DataSource is null. The same applies for
6924         GetItemText. Fixes #80427.
6925
6926 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
6927
6928         * Control.cs: If a control doesn't have a parent when it's Dock is
6929         set, but it has children, it needs to do a layout.  Fixes some nested
6930         controls issues.  [Fixes bug #81199]
6931
6932 2007-05-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6933
6934         * ComboBox.cs: If there are few items in the drop down list, make it
6935           the exact size the items need, no bigger. Fixes #81612.
6936
6937 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
6938
6939         * Application.cs: When we have captured the keyboard for a menu,
6940         check for mouse down events in case we need to close the menu.
6941         * Control.cs, Form.cs: Remove mouse down checks for menus.
6942
6943 2007-05-24  Jackson Harper  <jackson@ximian.com>
6944
6945         * TextControl.cs: Handle tabs in non multiline mode a little
6946         differently.
6947
6948 2007-05-24  Jackson Harper  <jackson@ximian.com>
6949
6950         * TextControl.cs: We need to manually break apart tabbed text and
6951         move the tabs, since the system.drawing tabbing mechanism relies
6952         on tab stops.
6953         * TextBoxBase.cs: Move the caret properly when the user enters a
6954         tab.
6955
6956 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
6957
6958         * ContainerControl.cs: Don't check CanSelect before calling
6959         ProcessMnemonic.
6960         * ToolStrip.cs: Only do implicit mnemonics on MenuStrips.  Don't
6961         release a KeyboardActive on click if it's not ours.
6962
6963 2007-05-23  Andreia Gaita  <avidigal@novell.com>
6964
6965         * ColumnHeader.cs: Add TypeConverter
6966
6967 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
6968
6969         * LinkLabel.cs: Implement LinkCollection.Add with Link parameter (2.0).
6970
6971 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
6972
6973         * LinkLabelLinkClickedEventArgs.cs, LinkLabel.cs: Implement Button property.
6974
6975 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
6976
6977         * LinkLabel.cs: Implement public Padding property.
6978
6979 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
6980
6981         * LinkLabel.cs: Implement public FlatStyle.
6982
6983 2007-05-23  Jonathan Pobst  <monkey@jpobst.com>
6984
6985         * Control.cs: Apply patch from George to call parent.PerformLayout
6986         when Visible is changed.  [Fixes bugs #81118, 81718]
6987
6988 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
6989
6990         * MainMenu.cs, MenuAPI.cs: Implement Collapse event for MainMenu (2.0).
6991
6992 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
6993
6994         * ContextMenu.cs: Implement ProcessCmdKey with control parameter.
6995
6996 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
6997
6998         * ContextMenu.cs: Implement Collapse.
6999
7000 2007-05-23  Rolf Bjarne Kvinge <RKvinge@novell.com>
7001
7002         * ToolBarButton.cs: Implement Name.
7003
7004 2007-05-22  Everaldo Canuto  <ecanuto@novell.com>
7005
7006         * ToolBar.cs: Fix OnButtonDropDown to save item used in dropdown instead of
7007         use current_item, it prevents some NRE. Fixes #81675.  
7008
7009 2007-05-22  Andreia Gaita  <avidigal@novell.com>
7010
7011         * NumericUpDown.cs: Fix PieChart by not returning from UpdateEditText
7012         without updating the text.
7013
7014 2007-05-22  Jonathan Pobst  <monkey@jpobst.com>
7015
7016         * XplatUIWin32.cs: Plug a GDI leak caused by calling Font.ToHfont ()
7017         without calling DeleteObject.  [Should fix bug #81709]
7018
7019 2007-05-22  Jackson Harper  <jackson@ximian.com>
7020
7021         * RichTextBox.cs: Set the line endings correctly, when flushing
7022         RTF text.
7023
7024 2007-05-22  Gert Driesen  <drieseng@users.sourceforge.net>
7025
7026         * XplatUIX11.cs: MinimumWindowSize on X11 is actually
7027          {Width=0,Height=0}.
7028
7029 2007-05-22  Jackson Harper  <jackson@ximian.com>
7030
7031         * TreeView.cs: Setting top with a null node should set to the very
7032         top.
7033
7034 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7035
7036         * Form.cs: ShowDialog: destroy the handle when message loop is
7037           finished, matches MS behaviour. Refactor parts of WmClose into
7038           RaiseCloseEvents, that only raises events if they haven't already
7039           been raised. Fixes #81688 and #81521.
7040         * Application.cs: Don't call close on the form when exiting a modal
7041           loop, it will raise all the (Form)Closed/Closing events again if
7042           WM_CLOSE has been sent earlier on, instead call RaiseCloseEvent,
7043           which doesn'r raise any events it they have been raised before.
7044
7045 2007-05-22  Jonathan Pobst  <monkey@jpobst.com>
7046
7047         * Control.cs: Add OnPrint.
7048         * ToolStrip.cs: Add GetChildAtPoint.
7049         * ToolStripContainer.cs: Add OnRightToLeftChanged.
7050         * ToolStripRenderer.cs: Make CreateMirrorImage internal.
7051
7052 2007-05-22  Everaldo Canuto  <ecanuto@novell.com>
7053
7054         * MenuAPI.cs: Prevent context menu to be typed as MainMenu. Fixes #81509.  
7055
7056 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7057
7058         * InternalWindowManager.cs: ToolTipShow: Don't show tooltip if the form
7059           isn't visible anymore. Fixes #81651.
7060
7061 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7062
7063         * Control.cs: WmShowWindow: Update children's z-order after setting
7064           their parent. SetParent may show the window, thereby corrupting
7065           z-order, since the window will be shown on top.
7066         * XplatUIWin32.cs: SetParent: don't call SetVisible on forms. Prevents
7067           multiple (and redundant) WM_SHOWWINDOW messages.
7068         * MdiWindowManager.cs: RaiseDeactivate: only raise after an Activate
7069           event has already been raised.
7070         * Form.cs: Change is_changing_visible_state to a counter, since
7071           SetVisibleCore can be called recursively. CreateHandle: when
7072           creating mdi children, send (De)Activated events.
7073         * MdiClient.cs: Update use of is_changing_visible_state.
7074         * Application.cs: OnThreadException: Surround exception handling with
7075           try/finally to ensure we always reset the error-handling state
7076           before leaving.
7077
7078 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7079
7080         * ThemeWin32Classic.cs: DrawProgressBar: Avoid a DivideByZero exception
7081           (#81704).
7082
7083 2007-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7084
7085         * ListView.cs: Use Theme.ListViewHorizontalSpacing for List and
7086         SmallIcon views, now that we have a standarized horizontal spacing.
7087
7088         * ThemeWin32Classic.cs: ListViewHorizontalSpacing now has a value of
7089         4, just like the other views (Match .Net).
7090
7091 2007-05-21  Jonathan Pobst  <monkey@jpobst.com>
7092
7093         * Control.cs: Delay calculating anchor distances until we actually layout.
7094         Always query the WM for the actual size and location it put us at instead of
7095         only when we send negative values.
7096         [Fixes bugs #81694, 81695]
7097
7098 2007-05-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7099
7100         * Application.cs: Avoid a possible stack overflow when trying to exit
7101           the application.
7102
7103 2007-05-19  Marek Safar  <marek.safar@gmail.com>
7104
7105         * Theme.cs (GetHatchBrush): A key uses internal value instead of formated
7106         enum value.
7107
7108 2007-05-19  Andreia Gaita  <avidigal@novell.com>
7109
7110         * NumericUpDown.cs: Added 2.0 methods (spin acceleration)
7111         * NumericUpDownAcceleration.cs, 
7112           NumericUpDownAccelerationCollection.cs: Added 2.0
7113           implementation.
7114
7115 2007-05-19  Gert Driesen  <drieseng@users.sourceforge.net>
7116
7117         * RichTextBox.cs: Recalculate the document after the ScrollBars
7118         property is changed. Fixes bug #81681.
7119
7120 2007-05-18  Jonathan Pobst  <monkey@jpobst.com>
7121
7122         * DataObject.cs: Implement 2.0 methods.
7123
7124 2007-05-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7125
7126         * ThemeWin32Classic.cs: Draw the check marks in ListViewItems
7127         in the center of the checkbox, not in the left-top corner. 
7128         Fixes #80037.
7129
7130 2007-05-18  Jackson Harper  <jackson@ximian.com>
7131
7132         * RichTextBox.cs: Recalculate the document after the scrollbars
7133         property is changed.
7134         * TextBoxBase.cs: ScrollBars is not a flags enum...This fixes
7135         81486.
7136
7137 2007-05-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7138
7139         * CreateParams.cs: Make HasWindowManager marginally faster.
7140         * XplatUIX11.cs, Hwnd.cs: CreateWindow: Move the default location code
7141           into Hwnd so that other drivers can use it as well.
7142         * XplatUIWin32.cs: CreateWindow: If the window has a window manager get
7143           the default location from Hwnd. Fixes MDI client windows always
7144           showing up at (0,0) in Windows (Win32 won't set the default
7145           location since the window styles aren't correct).
7146
7147 2007-05-18  Gert Driesen  <drieseng@users.sourceforge.net>
7148
7149         * TreeView.cs: Modified DoubleBuffered to just use the base
7150         implementation.
7151
7152 2007-05-18  Jackson Harper  <jackson@ximian.com>
7153
7154         * TreeView.cs: Set the top node to the last child node when
7155         expanding all
7156         - When we get focus, if there is no selected node, use the top
7157         node.
7158
7159 2007-05-18  Jonathan Pobst  <monkey@jpobst.com>
7160
7161         * KeysConverter.cs: Add CanConvertTo.
7162         * LinkLabel.cs: Add some 2.0 constructors and properties to LinkLabel.Link.
7163         * LinkConverter.cs: Added.
7164
7165 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
7166
7167         * Cursor.cs: Apply Sebastien patch from #81669 to open file in read mode,
7168         it prevents error when file dont have write access. Fixes #81669 and #81667.  
7169
7170 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
7171
7172         * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw toolbar 
7173         button text. Fixes #79640.  
7174
7175 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
7176
7177         * Control.cs: According to MSDN controls created in the designer theres 
7178         keyboard accelerators visible by default. So included check for design
7179         in ShowKeyboardCuesInternal.  
7180
7181 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
7182
7183         * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw combobox 
7184         text. Fixes #81621.  
7185
7186 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
7187
7188         * Control.cs: ShowKeyboardCuesInternal add to expose ShowKeyboardCues
7189         for 1.0, becuse ShowKeyboardCues is protected on 1.0.  
7190
7191 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
7192
7193         * Control.cs: Finish implementation of UI State using WmChangeUIState
7194         to send WM_UPDATEUISTATE to all child controls. Some hack will be needed
7195         in some controls to check for show_keyboard_cues to draw accell keys "_".  
7196
7197 2007-05-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7198
7199         * ListBox.cs: When calculating the horizontal scrollbar
7200         in single column mode, don't use values less than 0 for
7201         Maximum. Fixes #81474.
7202
7203 2007-05-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7204
7205         * ListBox.cs: Throw the some missing exceptions in
7206         ListBox.ObjectCollection methods.
7207
7208 2007-05-17  Jackson Harper  <jackson@ximian.com>
7209
7210         * TextBoxBase.cs: Recalculate the document when the word wrap
7211         value has changed. This fixes 81488.
7212
7213 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
7214
7215         * Clipboard.cs: Implement missing GetText overload.
7216
7217 2007-05-17  Chris Toshok  <toshok@ximian.com>
7218
7219         * Control.cs (CheckDataBindings): remove the binding_context arg
7220         to binding.Check.
7221
7222         * CurrencyManager.cs (OnItemChanged): fix this now that
7223         BindingManagerBase is fixed. also remove the comment telling where
7224         the fix should go.  We set transfering_data to true/false around
7225         the call to PushData to keep UpdateIsBinding from being called.
7226         (ListChangedHandler): remove the extra OnMetaDataChanged call for
7227         PropertyDescriptorAdded in the 1.1 case.  The extra call is
7228         actually generated by System.Data generating 2 metadata changed
7229         events of its own per column add.  The fix should go there.  Add a
7230         comment to that affect in our test's Assert.Ignore.
7231
7232         * BindingManagerBase.cs: Rework PullData and PushData slightly.
7233         we keep a boolean flag (transfering_data) that keeps us from
7234         calling UpdateIsBinding multiple times if we re-enter either of
7235         them.
7236
7237         * ControlBindingsCollection.cs (AddCore): remove the
7238         binding_context arg to binding.Check.
7239
7240         * Binding.cs (IsBinding): don't check if we're binding here, just
7241         return our cached value.  we update it in UpdateIsBinding.
7242         (Check): don't take the binding_context arg, we'll just use our
7243         control's.  Also, for some reason MS doesn't use the data member
7244         field when getting the bindingmanager for this binding.  it just
7245         uses the datasource.  Make this method callable multiple times,
7246         and only do the is_null_desc stuff if manager.Position != -1 (so
7247         we don't get an exception accessing manager.Current).
7248         (UpdateIsBinding): move the code from IsBinding here.
7249         (PositionChangedHandler): call Check here to we can initialize
7250         things that require a non- -1 position.
7251
7252 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
7253
7254         * Form.cs: When alt keys is pressed send WM_CHANGEUISTATE to top level
7255         control.
7256
7257 2007-05-17  Andreia Gaita  <avidigal@novell.com>
7258
7259         * TabControl.cs: Add 2.0 methods and events, including
7260         OnEnter / OnLeave and raises it for tabpages (fixes #79869)
7261         * TabPage.cs: Add 2.0 methods
7262
7263 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
7264
7265         * Control.cs: Implement WmUpdateUIState, show_focus_cues and
7266         keyboard_cues is properly handled by message method.  
7267
7268 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
7269
7270         * TreeViewImageIndexConverter.cs: Add 2.0 methods.
7271
7272 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
7273
7274         * ToolStripTextBox.cs: Wire up new 2.0 Textbox methods/properties.
7275
7276 2007-05-16  Everaldo Canuto  <ecanuto@novell.com>
7277
7278         * Control.cs: 
7279         - WmUpdateUIState added to handle state changes, it make call to
7280         OnChangeUICues event.
7281         - Fixed ShowKeyboardCues to check for MenuAccessKeysUnderlined in
7282         SystemInformation.
7283
7284 2007-05-16  Jonathan Pobst  <monkey@jpobst.com>
7285
7286         * ImageKeyConverter.cs: Added.
7287         * TreeViewImageKeyConverter.cs: Added.
7288
7289 2007-05-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7290         
7291         * ToolTips.cs: Update Text if SetToolTip is called for a control
7292         already showing the tooltip, as well as restarting its timer; show
7293         tooltip if we are inside the control bounds by the time of calling
7294         SetToolTip. Inside ShowTooltip remove the check to not show the 
7295         tooltip again for the active control (it is allowed by .Net to 
7296         show the tooltip on the same control multiple times).
7297
7298 2007-05-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7299
7300         * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
7301
7302 2007-05-16  Andreia Gaita <avidigal@novell.com> 
7303
7304         * ContainerControl.cs: only process tab key if there are no 
7305         modifier keys present, otherwise the control does the 
7306         tab processing, if it needs to. Fixes #81622
7307         * TabControl.cs: Fixes calculation for which tab to select on
7308         shift+ctrl+tab.
7309
7310 2007-05-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7311
7312         * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
7313
7314 2007-05-15  Jonathan Pobst  <monkey@jpobst.com>
7315
7316         * Control.cs: Make IsInputCharInternal to allow controls to
7317         override it and still match MS API.
7318         * TextBoxBase.cs: Override IsInputCharInternal and always
7319         return true.
7320         [Fixes bug #81616]
7321
7322 2007-05-15  Jackson Harper  <jackson@ximian.com>
7323
7324         * TextBox.cs: Disable some of the menu options when using a
7325         readonly textbox.
7326
7327 2007-05-15  Jackson Harper  <jackson@ximian.com>
7328
7329         * TextBox.cs:
7330         * TextBoxBase.cs:
7331         * RichTextBox.cs: Some new 2.0 methods
7332
7333 2007-05-15  Gert Driesen  <drieseng@users.sourceforge.net>
7334
7335         * FileDialog.cs: On 1.0 profile, do not support multidotted 
7336         extensions.
7337
7338 2007-05-14  Jackson Harper  <jackson@ximian.com>
7339
7340         * TextBoxBase.cs: Implement some of the new 2.0 methods.
7341         * RichTextBox.cs: We need to override these methods on 2.0.
7342         * MaskedTextBox.cs: These are implemented now
7343         * TextControl.cs: This was off by one.
7344
7345 2007-05-14  Jackson Harper  <jackson@ximian.com>
7346
7347         * TextControl.cs: Because the line endings are including in the
7348         text, we don't need to add them in anymore.
7349
7350 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
7351
7352         * ToolBar.cs: Fix autosize and get it working only after hadle is created,
7353         also prevent redraw in set_autosize if handle is not created. Fixes #81523.
7354
7355 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
7356
7357         * ToolBar.cs: Adjust size to default size when button theres no text and
7358         image, it fixes remaining issues from #81524.
7359
7360 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
7361
7362         * ToolBar.cs: 
7363         - When not flat call redraw to recalculate sizes on creare handle to match
7364         win32 behavior.
7365         - Revert 77220 because it causes some regressions in toobar
7366         button.
7367
7368 2007-05-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7369
7370         * MaskedTextBox.cs: Update the base text whenever the text changes. MTB
7371           now actually enters a usable state.
7372
7373 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
7374
7375         * ToolBar.cs: Check for handle created in redraw to prevent unneeded size
7376         calculations, it reduces the size cauculation from 7 to 3 on a toolbar with
7377         3 buttons.
7378
7379 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
7380
7381         * ToolBar.cs: Save default_size on create handle to use later for buttons
7382         without text, needed to mimic win32 behavior.
7383
7384 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
7385
7386         * ToolBar.cs: Fix button layour to best fit width or height according to
7387         vertical or not. Fixes #81524.
7388
7389 2007-05-10  Everaldo Canuto  <everaldo@simios.org>
7390
7391         * ToolBarButton.cs: When change style call ToolBar.Redraw to update
7392         toolbar size info because different styles theres different sizes.
7393         Fixes #81522.
7394
7395 2007-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7396
7397         * ThemeWinClassic.cs: For .Net 2.0 don't draw any image
7398         if we are using checkboxes, checked is true, and we have less
7399         than two images in StateImageList; for the 1.1 in the same scenario
7400         draw the first image if we have at least one image in StateImageList.
7401         Fixes part of #81191.
7402
7403 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
7404
7405         * ToolStrip.cs, ToolStripManager.cs: We need to remove items from
7406         the owner's Items collection on merge.
7407
7408 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
7409
7410         * ToolStrip.cs: Use new internal ToolStripItemCollection constructor.
7411         * ToolStripItemCollection.cs: Lots of fixes to when events get called
7412         and parent/owner gets changed based on gert's unit tests.
7413
7414 2007-05-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7415
7416         * MaskedTextBox.cs: Started implementing parts of it.
7417
7418 2007-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7419
7420         * ListView.cs: When clicking the checkbox on the items
7421         take into account the double clicks even if we have only
7422         one image in StateImageList (only for 1.0/1.1). Also 
7423         generate an extra change of checked state when we receive
7424         the second click on checkbox (match .Net behaviour). 
7425         Fixes part of #81191.
7426
7427 2007-05-10  Everaldo Canuto  <everaldo@simios.org>
7428
7429         * ThemeWin32Classic.cs: Fix text rectangles in Tooltips.
7430
7431 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
7432
7433         * Form.cs: Move some of OnLoad to OnLoadInternal so it gets called
7434         even if OnLoad is overriden and base.OnLoad is not called.
7435         [Fixes bug #81582]
7436
7437 2007-05-10  Andreia Gaita  <avidigal@novell.com>
7438
7439         * TableLayoutSettings.cs: A big doh! fix and bowing down of head in 
7440         shame. (I blame my ever-persisting and annoying cold)
7441
7442 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
7443
7444         * ListView.cs: Don't eat navigation keys.  Let them flow through to
7445         KeyDown/KeyPress routines.  [Fixes bug #81569]
7446
7447 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
7448
7449         * ListView.cs: When handling keys for selecting the item based off
7450         keyboard input, do not consider keys pressed with Alt or Control.  Also,
7451         correctly handle keys when the Shift key is down. [Fixes bug #81578]
7452
7453 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
7454
7455         * Control.cs: When using UseWaitCursor, we have to store the requested
7456         Cursor to use when UseWaitCursor is turned off.
7457
7458 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
7459
7460         * Control.cs: Implement PreProcessControlMessage.  Default IsInputChar
7461         to false.
7462         * Application.cs: Use PreProcessControlMessage instead of
7463         PreProcessMessage.
7464         * PreProcessControlMessage.cs: Make internal for 1.1.
7465
7466 2007-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7467
7468         * Control.cs: Add InternalContains focus property, which hast the same
7469         functionality of ContainsFocus, but also including implicit controls.
7470         * ListViewItem.cs: Use InternalContainsFocus instead of ContainsFocus,
7471         since we need to know if the focus is contained in our implicit
7472         ItemControl when calculating Layout. Fixes part of #80888.
7473
7474 2007-05-08  Everaldo Canuto  <everaldo@simios.org>
7475
7476         * ToolTip.cs: Remove center form string alignment as it must be align to
7477         left.
7478
7479 2007-05-08  Jonathan Pobst  <monkey@jpobst.com>
7480
7481         * ToolStripItemCollection.cs: Set the new item's parent and owner
7482         in Insert like we do in Add.  [Fixes bug #81568]
7483
7484 2007-05-08  Jackson Harper  <jackson@ximian.com>
7485
7486         * TreeView.cs: GotFocus differences between 1.1 and 2.0.
7487         - Off by one error in SetTop
7488         - Disable DoubeBuffering
7489         
7490 2007-05-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7491
7492         * ScrollableControl.cs: ScrollIControlntoView: we now only move the
7493           control as much as necessary in order to make it entirely visible,
7494           instead of centering the control in the container (matches MS
7495           behaviour). CalculateCanvasSize: we need to take the current scroll
7496           position into account when calculating the maximum canvas,
7497           otherwise the following scenario will fail: resize so that the
7498           scrollbars appear, use the scrollbars to scroll, resize again
7499           smaller, and now the canvas size is too small. Recalculate: when
7500           showing scrollbars make sure they start off at 0, and try to scroll
7501           the active control into view. Fixes #79540. HandleScrollBar: don't
7502           scroll anywhere if the scrollbar isn't visible.
7503
7504 2007-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7505
7506         * ListView.cs: When focus changed, call Layout/Invalidate
7507         in the focused item to update the selected state (should show
7508         entire label when ListView is focused, and a part of it if is not).
7509         * ListViewItem.cs: When doing layout for LargeIcon, take into account
7510         for displaying the entire label not only the Focused state of the
7511         item, but also the Focused state of the ListView (match .Net
7512         behaviour).
7513
7514 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
7515
7516         * Control.cs: Stub CanRaiseEvents, IsMirrored, and NotifyClients.
7517         Implement UseWaitCursor. 
7518
7519 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
7520         Applying contributed patch from Sergey Volk.
7521
7522         * Clipboard.cs: Implement SetDataObject retry logic and new overload
7523         of SetDataObject.
7524         * XplatUIWin32.cs: Throw an ExternalException if the clipboard set fails.
7525
7526 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
7527
7528         * Control.cs: Implement DrawToBitmap.
7529
7530 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
7531         Applying contributed patch from Stefan Noack.
7532         
7533         * Control.cs: Add [Get|Set]AutoSizeMode.
7534
7535 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
7536
7537         * MdiClient.cs: Unmerge menus when the last child is closed.
7538
7539 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
7540
7541         * ToolStrip.cs: Do not call BeginMerge on DropDowns.
7542         * ToolStripManager.cs: Call Merge on DropDowns.
7543         [Fixes bug #81477]
7544
7545 2007-05-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7546
7547         * XplatUIWin32.cs: Changed Win32CreateWindow to take enums instead of
7548           uints.
7549         * Form.cs: CreateParams: don't set WS_VISIBLE if we're changing
7550           visibility. We can't create forms visible, since we have to set the
7551           owner before making the form visible (otherwise Win32 will do
7552           strange things with task bar icons). The problem is that we set the
7553           internal is_visible to true before creating the control, so
7554           is_changing_visible_state is the only way of determining if we're
7555           in the process of creating the form due to setting Visible=true -
7556           this works because SetVisibleCore explicitly makes the form
7557           visibile afterwards anyways. Fixes #80775.
7558
7559 2007-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7560
7561         * ThemeWin32Classic.cs: When drawing ListViewItems,
7562         use StringTrimming.EllipsisCharacter if the view is Tile, Details,
7563         or LargeIcon _and_ item is not focused (match .Net behaviour).
7564
7565 2007-05-04  Jonathan Pobst  <monkey@jpobst.com>
7566
7567         * Control.cs, Form.cs: Fix some obsolete method warnings.
7568
7569 2007-05-04  Jonathan Pobst  <monkey@jpobst.com>
7570
7571         * Control.cs: Implement GetChildAtPoint and OnParentCursorChanged.
7572         * GetChildAtPointSkip.cs: Make internal for 1.1 profile.
7573
7574 2007-05-04  Andreia Gaita  <avidigal@novell.com>
7575
7576         * ContainerControl.cs: Fix active_control attribution when going
7577         up the parent chain so that the first parent container gets the control
7578         and the rest of the parent containers get the child containers (skips
7579         non-containers). Fixes #80729
7580
7581 2007-05-04  Randolph Chung  <tausq@debian.org>
7582
7583         * FileDialog.cs: Implement the SupportMultiDottedExtensions property.
7584         [Fixes bug #81499]
7585
7586 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7587
7588         * XplatUIX11.cs: Add a TranslateWindowSizeToXWindowSize overload that
7589           takes a size parameter, since the CreateParam's size isn't true for
7590           minimized forms. Fixes #81518,
7591
7592 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7593
7594         * Form.cs: Add OnDeactivateInternal.
7595         * MdiClient.cs: Raise Deactivate event. Fixes #81409.
7596
7597 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7598
7599         * DateTimePicker.cs: CalculateDropDownLocation: do a null check before
7600           accessing the parent. Fixes #81508.
7601
7602 2007-05-03  Chris Toshok  <toshok@ximian.com>
7603
7604         * CurrencyManager.cs (CurrencyManager.ListChangeHandler): in the
7605         2.0 block, pass listposition + 1 to ChangeRecordState when a row
7606         was added before the current listposition.  Fixes the
7607         TestInsertRowBeforeCurrent unit test.
7608
7609 2007-05-03  Jonathan Pobst  <monkey@jpobst.com>
7610
7611         * Application.cs: Add RaiseIdle.
7612         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
7613         XplatUIX11.cs: Implement RaiseIdle.
7614
7615 2007-05-02  Jonathan Pobst  <monkey@jpobst.com>
7616         corcompare work: N - Z
7617         * NotifyIcon.cs
7618         * ProgressBar.cs
7619         * RadionButton.cs
7620         * ScrollableControl.cs
7621         * SplitContainer.cs
7622         * SplitterPanel.cs
7623         * StatusBar.cs
7624         * SystemInformation.cs
7625         * TabControl.cs
7626         * TableLayoutControlCollection.cs
7627         * TableLayoutPanel.cs
7628         * TabPage.cs
7629         * ToolBar.cs
7630         * ToolBarButton.cs
7631         * ToolStrip.cs
7632         * ToolStripComboBox.cs
7633         * ToolStripContainer.cs
7634         * ToolStripContentPanel.cs
7635         * ToolStripDropDown.cs
7636         * ToolStripDropDownItem.cs
7637         * ToolStripDropDownMenu.cs
7638         * ToolStripItem.cs
7639         * ToolStripItemCollection.cs
7640         * ToolStripMenuItem.cs
7641         * ToolStripPanel.cs
7642         * ToolStripSplitButton.cs
7643         * ToolTip.cs
7644         * TreeNode.cs
7645         * TreeNodeCollection.cs
7646         * TreeNodeMouseHoverEventArgs.cs
7647         * TreeView.cs
7648
7649 2007-05-01  Everaldo Canuto  <everaldo@simios.org>
7650
7651         * ContextMenu.cs: Add public method Show with alignment property to 2.0
7652         stuff. Thanks aatdark for the patch. 
7653
7654 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
7655
7656         * GridItem.cs: Implement 2.0 Tag property.
7657
7658 2007-05-01  Frederik Carlier <frederik.carlier@carlier-online.be> 
7659
7660         * TreeNodeCollection.cs: Fix ContainsKey and IndexOfKey methods to use
7661         count instead of Nodes.Length.  [Fixes bug #81448]
7662
7663 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
7664
7665         * ComboBox.cs: Fix paramName sent to ArgumentOutOfRangeException's.
7666         [Fixes bug #81506]
7667
7668 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
7669         corcompare work: A - M
7670         * BindingNavigator.cs
7671         * Button.cs
7672         * ButtonBase.cs
7673         * CheckBox.cs
7674         * Control.cs
7675         * FlowLayoutPanel.cs
7676         * Form.cs
7677         * Label.cs
7678         * LinkLabel.cs
7679         * ListView.cs
7680
7681 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
7682
7683         * Application.cs: Give toolstrips a chance to process mnemonics.
7684         * ToolStrip.cs, ToolStripDropDownButton.cs, ToolStripItem.cs,
7685         ToolStripItemTextRenderEventArgs.cs, ToolStripLabel.cs,
7686         ToolStripMenuItem.cs, ToolStripSplitButton.cs: Implement keyboard mnemonics.
7687
7688 2007-05-01  Jackson Harper  <jackson@ximian.com>
7689
7690         * TextBoxBase.cs: Better preferred height, FixedSingle gets the
7691         wider area too.
7692         - Don't set the BoundsSpecified
7693
7694 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
7695
7696         * Application.cs: When using the toolstrip shortcut mechanism, allow the
7697         message to pass through to a regular control if it hosted by a toolstrip.
7698         * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
7699         ToolStripManager.cs: Enable keyboard navigation for ToolStrips.
7700
7701 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
7702
7703         * TextRenderer.cs: Use the flags argument when using the MeasureString
7704         fallback algorithm.
7705
7706 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
7707
7708         * MenuStrip.cs: Don't let multiple ToolStripSeparators get added to
7709         the MDI menu item.  [Fixes bug #81483]
7710
7711 2007-04-30  Gert Driesen  <drieseng@users.sourceforge.net>
7712
7713         * DataGridViewColumn.cs: Initialize value of headercell to zero-length
7714         string. When setting Name to null, use zero-length string instead.
7715
7716 2007-04-29  Andreia Gaita  <avidigal@novell.com>
7717
7718         * TabControl.cs: Implement missing 2.0 methods (SelectTab, 
7719         DeselectTab). Implement missing 2.0 TabPageCollection methods
7720         (Add, ContainsKey, RemoveByKey, IndexOfKey)
7721
7722 2007-04-29  Pedro Martínez Juliá  <pedromj@gmail.com>
7723
7724         * DataGridViewColumn.cs: Make HeaderText take preference over Name.
7725
7726 2007-04-29  Gert Driesen  <drieseng@users.sourceforge.net>
7727
7728         * RichTextBox.cs: In LoadFile, use StreamReader to read plain text.
7729         Fixes bug #81479. Include details of exception when LoadFile fails.
7730
7731 2007-04-28  Alan McGovern <alan.mcgovern@gmail.com>
7732
7733         * DrawListViewSubItemEventArgs.cs: Added missing setter
7734
7735 2007-04-27  Andreia Gaita  <avidigal@novell.com>
7736
7737         * ToolTip.cs: Add missing 2.0 properties. Implement 2.0 Show and 
7738         Hide methods (not complete). Implement missing 2.0 OnPopup event.
7739
7740 2007-04-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7741
7742         * ListView.cs: In ItemControl.OnMouseDown restore a pair of braces I
7743         removed in ly last commit (it was breaking the Label edit feature).
7744
7745         * ThemeWin32Classic.cs: When drawing a ListViewItem use
7746         StringAlignment.Near for LineAlignment (match .Net).
7747
7748 2007-04-27  Andreia Gaita  <avidigal@novell.com>
7749
7750         * TabControl.cs: Change SetTab so it adds the tabpage to the list
7751         of controls if it isn't already there - was blowing up when doing
7752         tabcontrol.TabPages[i]=new TabPage(). 
7753         SetTab now does a replace by removing the page at the index. 
7754         Add a new InsertTab method that inserts a page in a given index 
7755         instead of replacing. 
7756         Implements TabPageCollection.Insert(int, TabPage).
7757
7758 2007-04-27  Chris Toshok  <toshok@ximian.com>
7759
7760         * BindingManagerBase.cs: fill in CurrentItemChanged (and have an
7761         internal handler that can be invoked from our subclasses.)  Also,
7762         add a comment to PushData about how we need to fix it.
7763
7764         * CurrencyManager.cs: tons of changes here.  trying to get things
7765         matching the behavior of .net wrt event orders (ItemChanged,
7766         CurrentChanged, PositionChanged.)  I've implemented a private .net
7767         symbol (ChangeRecordState) that appears in stack traces because
7768         it's actually easier to do this than to effective inline all its
7769         various behaviors at every call site.
7770
7771         * RelatedPropertyManager.cs: guard against an exception here by
7772         not using parent.Current if the position is set to -1 (if the
7773         parent datasource is cleared, for instance).
7774
7775         * Binding.cs: don't parse data in PushData (this might be wrong,
7776         but it jives with MS's behavior.)  Also, don't call PushData when
7777         we get a CurrentChanged event.
7778
7779 2007-04-27  Andreia Gaita  <avidigal@novell.com>
7780
7781         * WebBrowser.cs,
7782           WebBrowserBase.cs,
7783           WebBrowserSiteBase.cs,
7784           HtmlDocument.cs: Added stubbed out classes, no real implementations 
7785           yet.
7786
7787 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
7788
7789         * MainMenu.cs: In draw method without parameters call draw method with 
7790         PaintEvent, another one (just rect) adjust rectangle and we dont need it
7791         as Rect property is already adjusted. Fixes #80694.
7792
7793 2007-04-27  Jonathan Pobst  <monkey@jpobst.com>
7794
7795         * Application.cs: Need to handle keyboard menu deselection here.
7796         * Control.cs: Use WM_SYSKEYUP instead of WM_SYSCOMMAND to start menu keyboard
7797         navigation, allowing keyboard to work on X11.
7798         * ToolStrip.cs: Don't worry about handling the Menu key here anymore.
7799
7800 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
7801
7802         * MenuAPI.cs: When deactivate menu verify if hotkey (_) is active and redraw
7803         menu bar. It fixes some drawing issues in menu bar.
7804
7805 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
7806
7807         * MenuAPI.cs: Remove unneeded "keynav_state = KeyNavState.Idle" before 
7808         Deactivate calls, Deactivate method already do it. Also ser ActiveTracker
7809         when <alt> key is pressed.
7810
7811 2007-04-26  Everaldo Canuto  <everaldo@simios.org>
7812
7813         * XplatUIX11.cs: Simplify SystrayRemove to be like other libraries,     Gtk as 
7814         example just set visible to false and make this prevent from other problems.
7815         In SystrayAdd always remove pending expose. Fixes #81072.
7816
7817 2007-04-26  Marek Safar  <marek.safar@gmail.com>
7818
7819         * TextBoxBase.cs (CaretMoved): Consider scroll maximum when scroll
7820         value is set.
7821
7822 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
7823
7824         * ListView.cs: Added three missing 2.0 events and corresponding
7825         EventHandlers. Added the OwnerDraw property.
7826         * DrawListViewColumnHeaderEventHandler.cs: fixed typo
7827
7828 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
7829
7830         * DrawListViewItemEventArgs.cs
7831         * DrawListViewSubItemEventArgs.cs: Brought classes up to 2.0 status.
7832
7833 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
7834
7835         * TextControl.cs: Fixed typo in constructor
7836
7837 2007-04-26  Jonathan Pobst  <monkey@jpobst.com>
7838
7839         * Application.cs: Create a shortcut path so that currently selected
7840         MenuStrips can intercept keyboard events without having focus.
7841         * Control.cs: Handle WM_SYSCOMMAND message to activate MenuStrips.
7842         * MenuStrip.cs, ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownItem.cs,
7843         ToolStripItem.cs, ToolStripManager.cs, ToolStripMenuItem.cs: Support
7844         keyboard navigation (arrows, tab, enter, esc) on Windows.  Still need to
7845         generate WM_SYSCOMMAND message in X11 for other platforms.
7846         * ToolStripProfessionalRenderer.cs: ToolStripMenuItems need to be painted
7847         in OnRenderMenuItemBackground instead of OnRenderButtonBackground.
7848         * ToolStripSplitButton.cs: Add DefaultItem property.
7849         
7850 2007-04-26  Everaldo Canuto  <everaldo@simios.org>
7851
7852         * MainMenu.cs: In OnMenuChanged pass PaintEventArgs to Draw method, it
7853         fixes some menu draw problem on Windows with border diferent from default
7854         it also fixes #81403.
7855
7856 2007-04-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7857
7858         * Form.cs: Refactor WndProc into separate methods, just like Control is
7859           doing it.
7860
7861 2007-04-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7862
7863         * Control.cs: set_Text: move the call to the driver into a seperate
7864           virtual method so that Form can override it.
7865         * MaskedTextBox.cs: Corcompare fixes.
7866         * Form.cs: Override UpdateWindowText and only update the styles if the
7867           form has been shown (fixes #81405).
7868
7869 2007-04-25  Jonathan Pobst  <monkey@jpobst.com>
7870
7871         * Control.cs, Form.cs: Use the better supported WM_?BUTTONDOWN and
7872         WM_ACTIVATE messages instead of WM_MOUSEACTIVATE and
7873         WM_ACTIVATEAPP.  This fixes menus not disappearing on X11 when
7874         the form lost focus or another control was clicked.
7875
7876 2007-04-25  Gert Driesen  <drieseng@users.sourceforge.net>
7877
7878         * DataGrid.cs: Uncomment MakeTransparent calls since bug #80151 is
7879         fixed.
7880
7881 2007-04-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7882
7883         * DrawListViewColumnHeaderEventHandler.cs, DrawToolTipEventArgs.cs,
7884           DrawListViewItemEventHandler.cs,
7885           DrawListViewSubItemEventHandler.cs, DrawToolTipEventHandler.cs:
7886           Added.
7887         * X11Structs.cs: More ToString implementation.
7888
7889 2007-04-25  Jonathan Pobst  <monkey@jpobst.com>
7890
7891         * ToolStripDropDownItem.cs: Don't lazy create a DropDown in Dispose.
7892         * ToolStripOverflowButton.cs: Don't lazy create a DropDown in HasDropDownItems.
7893
7894 2007-04-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7895
7896         * Control.cs: Only raise OnVisibleChanged if we're not recreating the
7897           handle.
7898         * FormCollection.cs: Don't add a form if it's already in the
7899           collection.
7900         * Form.cs: Change ShowDialog () to call ShowDialog (owner) with a null
7901           according to behaviour and MSDN. The ownerWin32 is the active
7902           window at the moment when we call ShowDialog, not the context's
7903           main form (the context's main form may open another form that opens
7904           a form with ShowDialog, the win32 owner is the second form). Add
7905           and remove forms to the Application.OpenForms in other places to
7906           better match MS behaviour. Add an IsActive property that raises
7907           On(de)Activated only if the active state has changed (we were
7908           raising OnDeactivated before OnActivated while creating forms).
7909         * Application.cs: Refactor Enabling/Disabling of windows for modal
7910           dialog loops out to separate methods, and restore the thread
7911           context when we quit the method. Fixes #81407.
7912
7913 2007-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7914
7915         * ListView.cs: In ItemControl.HandleClicks, also fire 
7916         2.0 MouseClick or MouseDoubleClick events on the parent,
7917         not only the Click/DoubleClick events.
7918
7919 2007-04-24  Andreia Gaita  <avidigal@novell.com>
7920
7921         * TableLayoutSettings.cs: 
7922         - Added a GetControls method and a support structure to help the 
7923         TypeConverter to enumerate the controls for     serialization. 
7924         - Added a new serialization constructor. 
7925         - Added a isSerialized flag initialized to true on the 
7926         serialization constructor so that the TableLayoutPanel.LayoutSettings 
7927         setter does not throw the designed NotSupportedOperation exception
7928         when the object is built through deserialization.
7929         - Implemented GetObjectData
7930         
7931         * TableLayoutPanel.cs: Added check on LayoutSettings.
7932
7933 2007-04-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7934
7935         * ListView.cs: Report Click and DoubleClick events to the parent
7936         from ItemsMouseUp, instead of ItemsMouseDown. This prevents us
7937         from breaking the click count state when using dialog forms (Control
7938         reports the clicks in a similar fashion). In the previous behaviour
7939         the last WM_LBUTTONUP message in a  double click was sent to the
7940         ListView's form, instead of the ListView, which was breaking the click
7941         count for it. Fixes #80387.
7942
7943 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
7944
7945         * BindingNavigator.cs : fixed bugs revealed by new nunit tests
7946
7947 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
7948
7949         * ToolStripDropDownItem.cs: Lazy initialize the DropDown.  This prevents
7950         us from created dropdowns for menu items that do not have subitems.
7951         * ToolStripItem.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs:
7952         Check HasDropDownItems before calling DropDown so a dropdown will not be
7953         created if it isn't needed.
7954
7955 2007-04-24  Jackson Harper  <jackson@ximian.com>
7956
7957         * TreeView.cs: Set the first node to the selected node when we get
7958         focus if there is no selected node.
7959
7960 2007-04-24  Andreia Gaita  <avidigal@novell.com>
7961
7962         * MimeIcon.cs: remove using blocks so that image streams are
7963         not disposed of. Fixes #80151
7964
7965 2007-04-24  Jackson Harper  <jackson@ximian.com>
7966
7967         * TextBoxBase.cs: Fixup the height of textboxes when the control
7968         is created.
7969
7970 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
7971
7972         * ToolStrip.cs: Fully implement GetNextItem.  Call OnParentRightToLeftChanged
7973         for each ToolStripItem when the parent's RightToLeftChanged is called.
7974
7975 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7976
7977         * ComboBox.cs: Forward ContextMenu to the underlying textbox, if any.
7978           Fixes #80163.
7979         * Control.cs: Replace GetContextMenuInternal() with ContextMenuInternal
7980           property, so that the setter can be overriden too.
7981         * TextBox.cs: Change GetContextMenuInternal() to use
7982           ContextMenuInternal.
7983
7984 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7985
7986         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
7987           #81406.
7988
7989 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7990
7991         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
7992           #81406.
7993
7994 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7995
7996         * MaskedTextBox.cs: Commit this so nobody else starts working on it and
7997           avoid duplicate work. Mostily skeleton code, it's not working at
7998           all yet.
7999
8000 2007-04-20  Leszek Ciesielski <skolima@gmail.com>
8001
8002         * NotifyIcon.cs : stub for MouseClick event
8003         * Application.cs: stub for SetUnhandledExceptionMode
8004
8005 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
8006
8007         * BindingNavigator.cs : Initial (partial) implementation
8008
8009 2007-04-23  Jackson Harper  <jackson@ximian.com>
8010
8011         * TreeView.cs: Do not create the treeview's handle when setting
8012         the scroll position.
8013         - ExpandAll needs to compute the scrollbars so it knows which
8014         position to set the bar too.
8015         * TreeNode.cs: 
8016         * TreeNodeCollection.cs: Pass new flag to UpdateScrollBars
8017
8018 2007-04-23  Jackson Harper  <jackson@ximian.com>
8019
8020         * TextBoxBase.cs: Non multiline textboxes shouldn't take the enter
8021         key. Fixes #81408.
8022
8023 2007-04-23  Jonathan Pobst  <monkey@jpobst.com>
8024
8025         * ToolStripItem.cs: Make GetImageSize internal.
8026         * ToolStripMenuItem.cs: Use GetImageSize to determine the size we
8027         need to draw an item.  Fixes a reported issue where images on menus
8028         that were not 16x16 were drawing incorrectly.
8029
8030 2007-04-21  Miguel de Icaza  <miguel@novell.com>
8031
8032         * Padding.cs: Use the converter, fixes the resgen2 issue with
8033         XMLNotePad. 
8034
8035 2007-04-21  Jackson Harper  <jackson@ximian.com>
8036
8037         * TreeView.cs: Dont try to unhighlight the selected node if there
8038         isn't a selected node.
8039
8040 2007-04-21  Jackson Harper  <jackson@ximian.com>
8041
8042         * UpDownBase.cs:
8043         * TextBoxBase.cs:
8044         * ListView.cs:
8045         * ListBox.cs:
8046         * TreeView.cs: Use the InternalBorderStyle property to set the
8047         initial border style, this forces the client rectangle to be sized
8048         correctly.
8049
8050 2007-04-20  Jackson Harper  <jackson@ximian.com>
8051
8052         * TreeView.cs: Simplify scrolling to the last node after expanding
8053         all.
8054         - Fix some off by ones with setting the bottom.
8055
8056 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
8057
8058         * Control.cs: Use DefaultSize for Size, calculate ClientSize from
8059         that.  We were incorrectly doing it the other way around.  Also,
8060         update ClientSize if we change the BorderStyle before the control
8061         is created.
8062
8063 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
8064
8065         * XplatUI.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
8066         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
8067         XplatUIDriver.Caption to CaptionHeight. Spaces to tabs.
8068         * XplatUIDriver.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
8069         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
8070         Caption to CaptionHeight.
8071         * XplatUIX11.cs: Renamed Caption to CaptionHeight.
8072         * Theme.cs: Modified Border3DSize, BorderSize, CaptionButtonSize
8073         and FixedFrameBorderSize to return value from current XplatUI driver.
8074         * XplatUIWin32.cs: Implemented Border3DSize, BorderSize,
8075         CaptionButtonSize, DragFullWindows, DoubleClickSize, DoubleClickTime
8076         and FixedFrameBorderSize using win32 API. Renamed Caption to
8077         CaptionHeight.
8078         * XplatUIOSX.cs: Renamed Caption to CaptionHeight.
8079         * SystemInformation.cs: Fixed typo in BorderSize.
8080
8081 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
8082
8083         * XplatUI.cs: Added MenuAccessKeysUnderlined.
8084         * XplatUIDriver.cs: Added MenuAccessKeysUnderlined.
8085         * XplatUIX11.cs: Implemented MenuAccessKeysUnderlined by always
8086         returning false.
8087         * Theme.cs: Modified MenuAccessKeysUnderlined to return corresponding
8088         value from XplatUI driver.
8089         * XplatUIWin32.cs: Implemented MenuAccessKeysUnderlined using
8090         SystemParametersInfo.
8091         * ThemeWin32Classic.cs: Remove obsolete MenuAccessKeysUnderlined
8092         override.
8093         * XplatUIOSX.cs: Implemented MenuAccessKeysUnderlind by always
8094         returning false.
8095
8096 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8097
8098         * XplatUIX11.cs, Hwnd.cs: Remove warnings.
8099
8100 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8101
8102         * MessageBox.cs, XplatUIX11.cs, Hwnd.cs: Remove warnings.
8103
8104 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
8105
8106         * ToolStripManager.cs: Fix a reported InvalidCastException when unmerging
8107         MenuStrips that contain ToolStripSeparators.
8108
8109 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8110
8111         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Add
8112           DefineStdCursorBitmap.
8113         * Cursor.cs: Add an internal constructor so that the Cursor knows if it
8114           has been created off a standard cursor. This is used to get a
8115           bitmap of the standard cursor when Draw or DrawStretched is called
8116           in order to draw the cursor.
8117         * X11Structs.cs: Added XcursorImage and XcursorImages.
8118         * XplatUIX11.cs, XplatUIWin32.cs: Add and implement
8119           DefineStdCursorBitmap.
8120         * Cursors.cs: Update all relevant creations of Cursor to use the new
8121           internal constructor.
8122
8123 2007-04-19  Jackson Harper  <jackson@ximian.com>
8124
8125         * TextBox.cs: Move the has_been_focused into the base control, so
8126         some of the text adding methods can manipulate it (probably time
8127         for a better name for this flag too).
8128         - Call a new version of selectall that doesn't scroll
8129         * TextBoxBase.cs: When we append text, if the document is empty,
8130         don't scroll.  If the document has text already, we scroll to the
8131         end of the appended text.
8132         - When the text is changed, we reset the has_been_focused, so the
8133         next time the control gets focused, all the text is selected.
8134
8135 2007-04-19  Jackson Harper  <jackson@ximian.com>
8136
8137         * TextControl.cs: Move the margins to the document, add a method
8138         so the margin sizes can be updated.
8139         * TextBoxBase.cs: When the border style is changed, update the
8140         border sizes.
8141
8142 2007-04-19  Jonathan Pobst  <monkey@jpobst.com>
8143
8144         * Control.cs: Respect DefaultPadding.
8145         * GroupBox.cs: Implement DefaultPadding, DisplayRectangle takes
8146         padding into account.
8147         * ToolStrip.cs: Remove setting padding to DefaultPadding in constructor.        
8148
8149 2007-04-19  Jackson Harper  <jackson@ximian.com>
8150
8151         * TextControl.cs: Oops, we need to use the ClientRect not the
8152         bounds here.
8153
8154 2007-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8155
8156         * ListView.cs: In ItemControl.ItemsMouseDown, take into
8157         account the double clicks when CheckBoxes are used and
8158         the pointer is inside the checkbox. Fixes part of #81191.
8159
8160 2007-04-18  Jackson Harper  <jackson@ximian.com>
8161
8162         * TextControl.cs: Pressing the end key shouldn't move the caret
8163         past the line ending.
8164         * TextBoxBase.cs: We can still delete if we are in the line
8165         ending and the combine will just kill the existing line ending.
8166
8167 2007-04-18  Jackson Harper  <jackson@ximian.com>
8168
8169         * TextControl.cs: We can't move lines, then invalidate their
8170         bounds, we need to get the old bounds and combine that with the
8171         new bounds.
8172         * TextBoxBase.cs: Before combining two lines for a delete, we need
8173         to invalidate the area of the old line, since that will be moved
8174         in the combine operation.
8175
8176 2007-04-18  Everaldo Canuto  <everaldo@simios.org>
8177
8178         * LinkLabel.cs: In OnPaint invoke draw background to fix problems
8179         with transparent background. Fixes #80482.
8180
8181 2007-04-18  Jonathan Pobst  <monkey@jpobst.com>
8182
8183         * PictureBox.cs: Refresh on resize when SizeMode = Zoom.
8184         * ThemeWin32Classic.cs: Implement PictureBox.SizeMode = Zoom.
8185         [Fixes bug #81391]
8186
8187 2007-04-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8188
8189         * CreateParams.cs: Add a couple of helper methods and do a less string
8190           concatenation in ToString.
8191         * XplatUIX11.cs: Add an TranslateClientRectangleToXClientRectangle
8192           overload that takes a Control parameter, since this method may be
8193           called before a control is assigned to the hwnd (from
8194           CreateWindow), and update CreateWindow to use the new overload. In
8195           GetMenuOrigin subtract the title bar from the y position if the
8196           form has a window manager (since we're painting it and not X).
8197         * XplatUIWin32.cs: If we can get a form in GetMenuOrigin use the form's
8198           CreateParams to calculate the origin (since border sizes may vary).
8199           In ScreenToMenu only subtract the title height if we actually have
8200           a title.
8201         * MdiWindowManager.cs: Override MenuHeight to always return 0, since
8202           mdi children never have menus of themselves.
8203         * InternalWindowManager.cs: Implement menu handling like form does.
8204           Added GetMenuOrigin to calculate the menu origin, can't use the
8205           CreateParams from the form like normally since it's lying.
8206         * Hwnd.cs: Implement GetBorderSize better (in the sense more
8207           windows-like) and add Inflate and comparison operators to the
8208           Borders type. When calculating MenuOrigin and it's a form with a
8209           window manager, use the window manager to calculate it.
8210
8211 2007-04-17  Chris Toshok  <toshok@ximian.com>
8212
8213         * Control.cs (CreateControl): turns out in 2.0 we don't need this
8214         OnBindingContextChanged thing here.  It's only generated from
8215         ContainerControl.OnCreateControl.  Fixes a newly written unit test
8216         - BindingTest.BindingContextChangedTest4.
8217         
8218 2007-04-17  Jackson Harper  <jackson@ximian.com>
8219
8220         * ScrollBar.cs: When setting values, make sure the current
8221         position stays within the new values range.
8222
8223 2007-04-17  Chris Toshok  <toshok@ximian.com>
8224
8225         * Control.cs (CreateControl): talk about a bizarre corner case.
8226         Don't emit OnBindingContextChanged here if we're a parentless
8227         control (i.e. if we're a form.).  Fixes
8228         BindingTest.BindingContextChangedTest2.
8229
8230 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
8231
8232         * ButtonBase.cs: Remove TextFormatFlags.WordBreak to mimic same behavior 
8233         from win32. Fixes #81255.
8234
8235 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
8236
8237         * ThemeWin32Classic.cs: Remove text offset from DrawButtonText as it is
8238         already present in CalculateButtonTextAndImageLayout.
8239
8240 2007-04-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8241
8242         * XplatUIX11.cs: When setting min/max size for a window we need to
8243           translate the coordinates to x coordinates. Create an overload of
8244           SetWindowMinMax that takes a CreateParams handling this, and change
8245           SetWMStyles to call this function (can't use Control.FromHandle in
8246           the SetWindowMinMax to get the control/CreateParams from the handle
8247           because the handle might not have been assigned to the control
8248           yet). Fixes #81371.
8249
8250 2007-04-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8251
8252         * ListView.cs: In ItemControl.ItemMouseDown, don't change check state
8253         if StateImageList is non-null and it has less than two items (match MS
8254         behaviour). Also, in HandleNavKeys handle the Space key, calling
8255         the new ToggleItemsCheckState method, which tries to change the
8256         checked state of the selected items. Fixes part of #81191.
8257
8258 2007-04-16  Jackson Harper  <jackson@ximian.com>
8259
8260         * RichTextBox.cs: namespace cleanup.
8261
8262 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
8263
8264         * XplatUIWin32.cs: Back last parameter to true in SetClipRegion.
8265
8266 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
8267
8268         [Fixes #79447]
8269         * Control.cs: Call invalidate in set_Region.
8270
8271         * XplatUIX11.cs, XplatUIWin32.cs: Remove invalidate from SetClipRegion as
8272         it dont works here.
8273
8274 2007-04-16  Jackson Harper  <jackson@ximian.com>
8275
8276         * TextBoxBase.cs: When enter is pressed, we need to update all
8277         lines below the current.
8278
8279 2007-04-16  Jonathan Pobst  <jpobst@monkey.com>
8280
8281         * MdiClient.cs: Implement implicit menu merging for MDI
8282         children.  When a child form is active, if it has a menustrip
8283         and the parent form has a MainMenuStrip, automatically merge
8284         the menus.
8285
8286 2007-04-15  Andreia Gaita  <avidigal@novell.com>
8287
8288         * TabControl.cs: Refactored sizing methods to not repeat
8289         code all over the place. Tab bounds are now calculated
8290         as if alignment is top and single line, and only when 
8291         setting the bounds are the positions adjusted according
8292         to alignment. Replaced hardcoded positions, spacings and
8293         paddings by getting the values the ThemeEngine. 
8294         Fixes #79619.
8295         
8296         * Theme.cs: Change TabControl properties and methods so
8297         that all start with TabControl*. Added more properties
8298         to help remove hardcoded values on tabcontrol.
8299         Add CPDrawBorder3D declaration so the Theming classes
8300         can access it.
8301         
8302         * ThemeClearlooks.cs, ThemeNice.cs: Method signature changes from Theme.
8303
8304         * ThemeWin32Classic.cs: Rector TabControl out to the TabControlPainter
8305         on the Theming namespace, and call the appropriate methods here.
8306         Change CPDrawBorder3D to public.
8307
8308 2007-04-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8309
8310         * Control.cs: In WmRButtonUp, send the WM_CONTEXTMENU message to
8311         the control after firing the OnMouseUp event, instead of sending
8312         the message before the mentioned event. This is so we can match the
8313         MS behaviour. Fixes part of #80385.
8314
8315 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
8316
8317         * ToolStripItem.cs: Call the RightToLeftChanged event when setting the
8318         RightToLeft property.
8319
8320 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
8321
8322         * ToolStrip.cs: Add properties and internal methods to support merging.
8323         * ToolStripItem.cs: Add MergeAction and MergeIndex.
8324         * ToolStripItemCollection.cs: Add Insert and Remove methods that do
8325         not trigger reparenting or layouts.
8326         * ToolStripManager.cs: Add Merge and RevertMerge methods.
8327         * ToolStripOverflow.cs: Add a convenience method to find the ToolStrip that
8328         is hosting the overflow menu.
8329
8330 2007-04-13  Jackson Harper  <jackson@ximian.com>
8331
8332         * TextControl.cs: Set the line ending correctly for the first
8333         inserted line.
8334
8335 2007-04-13  Sebastien Pouliot  <sebastien@ximian.com>
8336
8337         * Theme.cs: Update GetMethod to get the new definition for 
8338         KnownColors.Update (and fix theme color updates).
8339
8340 2007-04-12  Everaldo Canuto  <everaldo@simios.org>
8341
8342         * MessageBox.cs: Fix some test and button position.
8343
8344 2007-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8345
8346         * Form.cs: Consider the implicit controls in
8347         GetRealChildAtPoint. We need it since this method
8348         is called on Form when handling the some messages in
8349         WndProc, and need to consider those implicit ones too.
8350         Fixes #80385.
8351
8352 2007-04-12  Jonathan Pobst  <monkey@jpobst.com>
8353
8354         * ToolStripMenuItem.cs: Display the ShortcutKeyDisplayString even
8355         if there are no ShortcutKeys set.
8356         * ToolStripProfessionalRenderer.cs: If an item has had its BackColor
8357         set, use it when painting.
8358
8359 2007-04-12  Jackson Harper  <jackson@ximian.com>
8360
8361         * TextControl.cs: Fix some off-by-one issues in line duplication
8362         and insertion in the undo manager. Also, overwrite the first tag
8363         of a line on insert, if it is just a zero lengthed tag. This
8364         prevents us from getting an extra stranded tag at the beginning of
8365         the first line.
8366
8367 2007-04-11  Everaldo Canuto  <everaldo@simios.org>
8368
8369         * Label.cs: Remove check for handle created in CalcAutoSize, we need 
8370         to calculated proper size including when handle was not created yet.
8371
8372 2007-04-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8373
8374         * MdiWindowManager.cs: When moving a form, allow the form to be moved
8375           when the mouse is outside of it's parent's client rectangle. Fixes
8376           #79982 (take 3, part 2).
8377
8378 2007-04-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8379
8380         * X11Structs.cs: Add a few ToString() overrides.
8381         * XplatUIX11.cs: Added GetTopLevelWindowLocation to try to calculate
8382           the window location in a window-manager independent way. Reworked
8383           FrameExtents, it now actually works. Reworked AddConfigureNotify
8384           and ReparentNotify handling to use GetTopLevelWindowLocation
8385           instead of the earlier, more hacky solution. Reworked SetWMStyles,
8386           hopefully for the better: we now set _NET_WM_WINDOW_TYPE* for all
8387           windows, DIALOG for modal windows, UTILITY for toolboxes and NORMAL
8388           for all other windows (fixes #81281 part 1), a toolwindow is hidden
8389           from the taskbar if it has a parent (fixes #81281 part 2 for kwin),
8390           and generally refactored to do as few calculations as possible
8391           inside the lock.
8392
8393 2007-04-09  Sebastien Pouliot  <sebastien@ximian.com>
8394
8395         * Theme.cs: Change "reflective-contract" between MWF and SD to 
8396         minimize # of calls, avoid Color serialization and avoid updating 
8397         every "known colors" each time a single one is updated.
8398
8399 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
8400
8401         * DataGridTextBoxColumn.cs: Only set IsInEditOrNavigateMode to false
8402         when not readonly and the text is explicitly set. Code style updates.
8403         * DataGridTableStyle.cs: Removed extra line.
8404         * DataGrid.cs: Code style updates. Removed extra whitespace.
8405         * DataGridColumnStyle.cs: Code style updates. Removed extra 
8406         whitespace.
8407
8408 2007-04-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8409
8410         * XplatUIX11.cs: Added comment that "fixes" #80021.
8411
8412 2007-04-09  Jackson Harper  <jackson@ximian.com>
8413
8414         * TextControl.cs: We don't need this -1 on the line count anymore.
8415
8416 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
8417
8418         * DataGridTextBoxColumn.cs: In Commit, use TypeConverter to convert
8419         entered value to underlying type, and convert it back to a string to
8420         apply formatting. Modified GetFormattedValue to use TypeConverter
8421         if available.
8422
8423 2007-04-08  Gert Driesen  <drieseng@users.sourceforge.net>
8424
8425         * ListViewItem.cs: Added null checks. Avoid duplicating code in ctors.
8426         Use SubItems property when we want to ensure there's at least one
8427         subitem. Modified SubItems property to ensure there's always at least
8428         one subitem. Avoid using ListViewSubItemCollection.AddRange to match
8429         the NRE's reported by MS.
8430
8431 2007-04-07  Gert Driesen  <drieseng@users.sourceforge.net>
8432
8433         * ProgressBar.cs: On 2.0 profile, default forecolor is Highlight. Added
8434         ResetForeColor override on 2.0. Fixed a few API compatibility issues.
8435         Spaces to tabs. Removed extra tabs.
8436
8437 2007-04-06  Jonathan Pobst  <monkey@jpobst.com>
8438
8439         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
8440         infinite loop.  (Forgot to copy to the horizontal toolstrip case.)
8441
8442 2007-04-06  Jackson Harper  <jackson@ximian.com>
8443
8444         * TextBoxBase.cs: When a delete removes a line, recalculate all
8445         lines below that line (they need to get offsets setup correctly)
8446         and invalidate.
8447
8448 2007-04-05  Jackson Harper  <jackson@ximian.com>
8449
8450         * TextControl.cs: We need to invalidate across the width of the
8451         document when we are invalidating multiple lines.
8452         * TextBoxBase.cs: Don't delete into the line ending.
8453
8454 2007-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8455
8456         * ListView.cs: Restore the check for the MouseHover event
8457         in ListView. It looks like the ListView fires more than one MouseHover
8458         event when HoverSelection is true  _only_ in weird-corner scenarios, but
8459         in most of the cases it only fires one. Also, add the 2.0 ItemMouseHover
8460         event.
8461
8462 2007-04-05  Mike Kestner  <mkestner@novell.com>
8463
8464         * ListView.cs : raise MouseDown before updating selection.
8465         [Fixes #80373 tab 1&3]
8466
8467 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
8468
8469         * ToolStripRenderer.cs: Add static method to mirror image.
8470         * ToolStripProfessionalRenderer.cs: Support ImageTransparentColor
8471         and RightToLeftAutoMirrorImage.
8472         * ToolStripItem.cs: Remove MonoTODO from ImageTransparentColor.
8473
8474 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
8475
8476         * ToolStripSplitStackLayout.cs: Support Alignment property.
8477         * ToolStripItem.cs: Remove MonoTODO from the Alignment property.
8478
8479 2007-04-05  Jackson Harper  <jackson@ximian.com>
8480
8481         * TextControl.cs: Move around the line endings when crossing line
8482         boundaries.
8483         - When combining lines, strip the ending text off the first line.
8484
8485 2007-04-05  Jackson Harper  <jackson@ximian.com>
8486
8487         * TextControl.cs:
8488         * TextBoxBase.cs: Try to never move the cursor into the line
8489         ending.
8490         
8491 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
8492
8493         * ToolStripItem.cs: Make sure we aren't firing mouse events when
8494         the item is disabled.  Also add a few missing methods.
8495
8496 2007-04-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8497
8498         * ListView.cs: We don't need the MouseEnter/MouseLeave check
8499         to fire just one MouseHover event when HoverSelection is true, since
8500         .Net does fire more than one MouseHover event in that scenario. Also,
8501         fix the selection in HoverSelection, by invoking UpdateMultiSelect
8502         if MultiSelect is true, instead of only setting ListViewItem.Selected.
8503         Finally, we need to reset the Hover logic in MouseMove, even when we
8504         don't have a selected item.
8505
8506 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
8507
8508         * ToolStrip.cs: Add several missing methods, properties, and events.
8509
8510 2007-04-04  Chris Toshok  <toshok@ximian.com>
8511
8512         * DataGridTextBoxColumn.cs: set the bounds of the text box to
8513         (0,0,0,0) in Commit, as MS does.
8514
8515         * DataGrid.cs: call EndEdit() from Select() as microsoft does, and
8516         make sure we set CurrentRow on a row header click *before* calling
8517         Select.  This moves the current cell (and the textbox) to the new
8518         row.  The call to Select then hides the textbox, giving us the
8519         correct behavior.  Fixes #80362.
8520
8521         * CurrencyManager.cs (UpdateIsBinding): raise ItemChanged (-1).
8522         (ListChangedHandler): reorder the position/current changed events,
8523         and call UpdateIsBinding in the ItemAdded case.
8524
8525         * GridColumnStylesCollection.cs: add some columns events, one of
8526         which raises the CollectionChanged event.
8527
8528 2007-04-04  Jackson Harper  <jackson@ximian.com>
8529
8530         * TextControl.cs: When we delete multiple selection lines
8531         invalidate the selection area, don't need to do that for single
8532         lines because the final update view will handle it.
8533
8534 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
8535
8536         * Control.cs: When we CreateControl, we need to also create all of the
8537         control's children.  The child's OnLoad must also fire before the parent's
8538         OnLoad.  Fixes the toolbox size in PDN.
8539
8540 2007-04-04  Jackson Harper  <jackson@ximian.com>
8541
8542         * TextBoxBase.cs: When the user presses enter, insert a line
8543         ending into the text. (Maybe this would be a good spot for
8544         Environment.NewLine).
8545         * TextControl.cs: Remove undo manager hack, line endings get
8546         inserted properly now.
8547         
8548 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
8549
8550         * MenuAPI.cs: 
8551         - Remove unneeded parameters in UpdateCursor.
8552         - Fix UpdateCursor to check if menu is active.
8553         - Call UpdateCursor when menu deactivate my click.
8554         [Fixes remaining issues from #80410]
8555
8556 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
8557
8558         * Control.cs: GetRealChildAtPoint method added, it make an
8559         recursive child control search for the point. 
8560
8561         * Form.cs: Makes use of GetRealChildAtPoint in mouse event after closes
8562         menu.
8563
8564         * MenuAPI.cs: Makes use of GetRealChildAtPoint in UpdateCursor.
8565
8566 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
8567
8568         * Form.cs: Fix mouse position when send back mouse event after closes
8569         menu.
8570
8571 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
8572
8573         * Form.cs: Simplify the BUTTONDOWN for active tracker.
8574
8575 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
8576
8577         * Control.cs: Fix an issue where if a user resized a control inside
8578         a sizing method like OnResize, we would overwrite their explicit
8579         value.  Also, only call DefaultSize once in the constructor instead
8580         of 4 times.  Also, do not call SetBoundsCore from SetBounds if 
8581         nothing actually changed.
8582
8583 2007-04-03  Jackson Harper  <jackson@ximian.com>
8584
8585         * TextControl.cs: Don't attempt to copy text for lines with no
8586         text in them (technically this shouldn't happen, but we aren't
8587         always inserting line endings when we should be).
8588
8589 2007-04-03  Jackson Harper  <jackson@ximian.com>
8590
8591         * TextBoxBase.cs: Calculate the scrollbars before calculating the
8592         document, because this sets some of the document size properties
8593         that are needed.
8594
8595 2007-04-03  Jackson Harper  <jackson@ximian.com>
8596
8597         * TextBoxBase.cs: We need to calculate maximums even if this is
8598         not a multiline control, because the maxs are used for scrolling.
8599         - Display the caret after doing a page up/down, we need to
8600         manually display it because a proper CaretMoved event isn't
8601         triggered (this is because of the way the math is done to
8602         determine how far to scroll).
8603
8604 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
8605
8606         * ToolBar.cs: Fix some breakage caused by the SetBoundsCore change.
8607         (ToolBar was relying on SetBoundsCore to default the values sent 
8608         base off of BoundsSpecified.)
8609
8610 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8611
8612         * DateTimePicker.cs: Change Text so that when a null value or empty
8613           string is assigned to the test we always raise ValueChanged and
8614           TextChanged (earlier implementation would only raise ValueChanged
8615           if the current date value was different from DateTime.Now).
8616
8617 2007-04-03  Andreia Gaita <avidigal@novell.com> 
8618
8619         * ButtonBase: Call update after invalidation, fixes #80194
8620
8621 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8622
8623         * ThemeWin32Classic.cs: Draw StatusBar using double buffering. Fixes
8624           #79335.
8625
8626 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8627
8628         * XplatUIX11.cs: SetWMStyles: If the control is a form with
8629           FormBorderStyle = None, don't give the window any decorations.
8630           Fixes #81276.
8631
8632 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8633
8634         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
8635         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style
8636           to check for is a mix of several styles (such as WS_CAPTION for
8637           instance).
8638         * Control.cs: Don't paint an area bigger than the client area when
8639           painting the background colour. Add an internal GetCreateParams.
8640           Update calls to XplatUI.CalculateWindowRect due to API change.
8641         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole
8642           window's size, and handle WM_NCCALCSIZE in DefWndProc to calculate
8643           the size if it hasn't been handled by any windows. When creating
8644           and moving windows, X wants the location of the entire window, but
8645           the size of the client window, so add
8646           TranslateClientRectangleToXClientRectangle,
8647           TranslateWindowSizeToXWindowSIze and
8648           TranslatedXWindowSizeToWindowSize to cope with this, and call them
8649           before every window creation and move. Update CalculateWIndowRect
8650           to use Hwnd.GetWindowRect (one step towards removing DeriveStyles).
8651           In AddConfigureNotify don't do anything if the hwnd is a zombie
8652           (fixes the BadWindow we were getting while running the tests),
8653           always calculate the offsets when it's a parentless window, not
8654           only when reparented, and translate the window size, since we're
8655           getting the client size of the whole window, excluding entire
8656           window.
8657         * Theme.cs: Added BorderSizableSize.
8658         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
8659           anymore. Update calls to XplatUI.CalculateWindowRect due to API
8660           chang
8661         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API
8662           change. Fake the window styles here instead of in XplatUIWin32 so
8663           that all back-ends get the same window styles (and it's Form that's
8664           deciding when to use wm, not the Win32 backend anyways)
8665         * Hwnd.cs: Completely reworked GetWindowRectangle and
8666           GetClientRectangle - they are now passed a CreateParams and they
8667           only use Style and ExStyle to determine the rectangles (they should
8668           now work just like Win32AdjustWindowRectEx - though quite a few
8669           special cases are probably missing). They should also be 100%
8670           complimentary (i.e. GetWindowRectangle (GetClientRectangle (rect))
8671           == rect), and all numbers (borders, menu sizes) are taken from the
8672           current theme. Added a GetBorders helper function that will return
8673           the borders for any given CreateParams (including captions and
8674           menus), and GetBorderSize that returns the given border size only.
8675         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
8676           Hwnd.GetClientRectangle.
8677
8678 2007-04-02  Chris Toshok  <toshok@ximian.com>
8679
8680         * DataGridBoolColumn.cs: rewrite things a bit, and fix up the
8681         logic between the values we present to the user and the values
8682         which are stored in the column's property.  Also, don't call
8683         GetPreferredSize - it's virtual. Along the way, fix bug #80965.
8684
8685 2007-04-02  Jackson Harper  <jackson@ximian.com>
8686
8687         * TextBoxBase.cs: Scroll faster!
8688
8689 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
8690
8691         * StatusStrip.cs: Layout fixes for PDN.
8692         * ToolStrip.cs: Set item's available to true, and placement to main when
8693         added.
8694         * ToolStripItem.cs: Fix an Available issue, check that Parent is really
8695         changing in setter before doing any work, add InternalVisible.
8696         * ToolStripPanel.cs: Remove unused variable to fix compiler warning.
8697         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
8698         infinite loop.
8699
8700 2007-04-02  Jackson Harper  <jackson@ximian.com>
8701
8702         * TextBox.cs: LBUTTON does not make the textbox select all of it's
8703         text on focus.
8704
8705 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8706
8707         * XplatUIWin32.cs: Use the previous change in SetParent for forms only.
8708           Makes ToolStripComboBoxes show up again.
8709
8710 2007-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8711
8712         * ListView.cs: Add a hover_pending field in ListView
8713         to fire just one OnMouseHover event for each MouseEnter/MouseLeave
8714         cycle (we are resetting the MouseHover logic in XplatUI
8715         to handle HoverSelection). Fixes #80429.
8716
8717 2007-04-02  Jackson Harper  <jackson@ximian.com>
8718
8719         * TextControl.cs: Make sure the attributes get set on the last
8720         tag.
8721         - Still have to do the end tag if we have stepped all the ways to
8722         the end.
8723
8724 2007-04-02  Sebastien Pouliot  <sebastien@ximian.com>
8725
8726         * XplatUIOSX.cs, XplatUIX11.cs, XplatUIX11GTK.cs: Remove dependency
8727         on an internal libgdiplus call when the information is already 
8728         available via the public API.
8729
8730 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8731
8732         * Control.cs: Call ContainerControl.ChildControlRemoved whenever a
8733           control is removed from a control collecftion.
8734         * XplatUIX11.cs: The first location for toplevel form is (22, 22).
8735           Fixes FormPropertyTest (failed on rare occasions).
8736         * XplatUIWin32.cs: Add a workaround in SetParent for strange behaviour
8737           of Win32SetParent (when changing from no parent to a parent it
8738           might add the new parent's location in screen coordinates to this
8739           window's location).
8740         * Form.cs: Rework ChangingParent once again, now the handle is
8741           recreated whenever a FormWindowManager is added or removed (that is
8742           whenever a normal form is parented or abandoned). Also change
8743           CreateParams so that all non-toplevel windows always get the
8744           specified sice (StartupPosition is never considered for
8745           non-TopLevel forms).
8746         * ContainerControl.cs: Add ChildControlRemoved, the container control
8747           needs to be notified when a control is removed from it's
8748           collection, in the case the removed control is the active control.
8749
8750 2007-04-02  Jackson Harper  <jackson@ximian.com>
8751
8752         * RichTextBox.cs: Use the new methods for setting the font and
8753         color, these methods set the specified attribute without
8754         overriding the other attributes.
8755
8756 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
8757
8758         * ToolStripPanel.cs: Fixes for better layouts in PDN.
8759
8760 2007-03-31  Gert Driesen  <drieseng@users.sourceforge.net>
8761
8762         * TextBox.cs: Added internal ChangeBackColor method to special-case
8763         Color.Empty. Added check for invalid ScrollBars value.
8764         * TextBoxBase.cs: Added internal ChangeBackColor method.
8765         * RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added
8766         internal ChangeBackColor method to special-case Color.Empty. Added
8767         check for invalid ScrollBars value.
8768
8769 2007-03-30  Everaldo Canuto  <everaldo@simios.org>
8770
8771         * MenuItem.cs: On invalidate prevent form to create handle. [Fixes #81272]
8772
8773 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
8774
8775         * ScollableControl.cs: Add HorizontalScroll and VerticalScroll properties.
8776         * ScrollProperties.cs, HScrollProperties.cs, VScrollProperties.cs: Added.
8777         [Based on submitted patch from Olivier Duff.]
8778
8779 2007-03-30  Jackson Harper  <jackson@ximian.com>
8780
8781         * TextBox.cs: Only select all on initial focus if the user has not
8782         specified a selection area.
8783
8784 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
8785
8786         * UserControl.cs: Override CreateParams.
8787
8788 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8789
8790         [ Fixes #80995 ]
8791
8792         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
8793         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style to
8794           check for is a mix of several styles (such as WS_CAPTION for instance).
8795         * Control.cs: Don't paint an area bigger than the client area when painting
8796           the background colour. Add an internal GetCreateParams. Update calls to
8797           XplatUI.CalculateWindowRect due to API change.
8798         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole window's
8799           size, and handle WM_NCCALCSIZE in DefWndProc to calculate the size if it
8800           hasn't been handled by any windows. When creating and moving windows, X
8801           wants the location of the entire window, but the size of the client
8802           window, so add TranslateClientRectangleToXClientRectangle,
8803           TranslateWindowSizeToXWindowSIze and TranslatedXWindowSizeToWindowSize
8804           to cope with this, and call them before every window creation and move.
8805           Update CalculateWIndowRect to use Hwnd.GetWindowRect (one step towards
8806           removing DeriveStyles). In AddConfigureNotify don't do anything if the
8807           hwnd is a zombie (fixes the BadWindow we were getting while running the
8808           tests), always calculate the offsets when it's a parentless window, not
8809           only when reparented, and translate the window size, since we're getting
8810           the client size of the whole window, excluding entire window.
8811         * Theme.cs: Added BorderSizableSize.
8812         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
8813           anymore. Update calls to XplatUI.CalculateWindowRect due to API change.
8814         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API change.
8815           Fake the window styles here instead of in XplatUIWin32 so that all
8816           back-ends get the same window styles (and it's Form that's deciding when
8817           to use wm, not the Win32 backend anyways)
8818         * Hwnd.cs: Completely reworked GetWindowRectangle and GetClientRectangle -
8819           they are now passed a CreateParams and they only use Style and ExStyle
8820           to determine the rectangles (they should now work just like
8821           Win32AdjustWindowRectEx - though quite a few special cases are probably
8822           missing). They should also be 100% complimentary (i.e. GetWindowRectangle
8823           (GetClientRectangle (rect)) == rect), and all numbers (borders, menu
8824           sizes) are taken from the current theme. Added a GetBorders helper
8825           function that will return the borders for any given CreateParams
8826           (including captions and menus), and GetBorderSize that returns the given
8827           border size only.
8828         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
8829           Hwnd.GetClientRectangle.
8830
8831 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8832
8833         * Form.cs: Don't layout mdi children on MdiParent creation, the initial
8834           layout of the mdi children is handled by CreateParams. Fixes
8835           #79964,
8836
8837 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
8838
8839         * MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is
8840         processed.
8841
8842         * Form.cs: When active tracker mouse down is not processed, send event 
8843         back to control inside mouse position. [Fixes #81227]
8844
8845 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
8846
8847         * ComboBox.cs: Override the ComboListBox's ActivateOnShow property and
8848         remove WS_VISIBLE from CreateParams to prevent combobox dropdowns from
8849         stealing focus from the active form on Windows.  (Control will be made
8850         visible in ShowWindow.)
8851
8852 2007-03-29  Mike Kestner  <mkestner@novell.com>
8853
8854         * ImageList.cs : add internal Changed event.
8855         * ListView.cs : hook up to StateImageList.Changed to perform
8856         invalidations when the the state icon list changes. [Fixes #81191]
8857
8858 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
8859
8860         * ToolTip.cs: Override the ToolTipWindow's ActivateOnShow property
8861         to prevent tooltips from stealing focus from the active form on Windows.
8862
8863 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
8864
8865         * ThemeWin32Classic.cs: Small stetic fixes in notifyicon balloon. 
8866
8867         * ThemeClearlooks.cs: Implement notifyicon balloon for clearlooks theme.
8868
8869 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
8870
8871         * NotifyIcon.cs, ThemeWin32Classic.cs: Icon support added to notifyicon
8872         balloons.
8873
8874 2007-03-29  Jackson Harper  <jackson@ximian.com>
8875
8876         * TextControl.cs: When deleting text from non multiline textboxes,
8877         we need to update the entire document, because line offsets will
8878         be shifting.
8879
8880 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
8881
8882         * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method
8883         added to theme, now we can create themes that uses diferent notify engines
8884         like notification-daemon from galago project or growl for Mac OS.
8885
8886 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
8887
8888         * NotifyIcon.cs: Prevent Balloon to show in task bar.
8889
8890 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
8891
8892         * XplatUIX11.cs: Prevent system to open more than one balloon.
8893
8894         * NotifyIcon.cs: Prevent system to open more than one balloon and remove
8895         some compiler warning messages.
8896
8897 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
8898
8899         [Fixes #79149]
8900
8901         * XplatUIX11.cs: Implement SystrayBalloon for X11 systems.
8902
8903         * ThemeWin32Classic.cs, Theme.cs: DrawBalloonWindow and BalloonWindowRect 
8904         implemented, this methods is used by NotifyIcon.BalloonWindow class.
8905
8906         * NotifyIcon.cs: BalloonWindow class added to support Balloon in X11 
8907         systems.
8908
8909 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8910
8911         * ListViewItem.cs: Forgot to make Invalidate internal.
8912
8913 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8914
8915         * ListView.cs: Add a InvalidateSelection method to
8916         invalidate methods which are currently selected, and call
8917         it when setting FullRowSelect and HideSelection, instead of
8918         calling Redraw.
8919
8920 2007-03-28  Chris Toshok  <toshok@ximian.com>
8921
8922         * XplatUIX11.cs (UnmapWindow): reindent this block.
8923
8924         * DataGrid.cs (UpdateSelectionAfterCursorMove): we need to update
8925         the selection_start if we're moving the selection (that is, not
8926         extending it). Fixes bug #80461.
8927
8928 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
8929
8930         * ProgressBar.cs: Make the default MarqueeAnimationSpeed = 100.
8931         * ToolStripPanel.cs: Fix RowMargin, Renderer, RenderMode, and
8932         create private ControlCollection.
8933
8934 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
8935
8936         * Control.cs: We need to call OnVisibleChanged for our implicit
8937         children as well as our normal children.  Fixes scrollbars in
8938         comboboxes not showing up.
8939
8940 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
8941
8942         * Control.cs, Form.cs: Anywhere we call CreateHandle, we need to do
8943         the check for IsHandleCreated first.  The check in CreateHandle is not
8944         good enough because CreateHandle can be overriden, and the override 
8945         should not be called if the handle is already created.
8946
8947 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
8948
8949         * ToolStrip.cs: Remove MonoTODO for tooltips.
8950         * ToolStripComboBox.cs: Fix MonoTODO for DropDownHeight and events.
8951         * ToolStripContainer.cs: Add custom ControlCollection class.
8952         * ToolStripContentPanel.cs: Fix Renderer setting to match MS behavior.
8953         * ToolStripDropDown.cs: Add some missing properties/methods.
8954         * ToolStripDropDownMenu.cs: Override OnLayout and SetDisplayedItems.
8955         * ToolStripItem.cs: Remove MonoTODO for tooltips.
8956         * ToolStripManager.cs: Add IsShortcutDefined.
8957         * ToolStripOverflow.cs: Override LayoutEngine.
8958         * ToolStripProgressBar.cs: Add MarqueeAnimationSpeed.
8959         * ToolStripSeparator.cs: Add ImageKey.
8960
8961 2007-03-28  Jackson Harper  <jackson@ximian.com>
8962
8963         * TextControl.cs: If a char delete removes a line ending, we need
8964         to update the ending style.
8965         - Make sure the line ending calcs get called.
8966
8967 2007-03-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8968
8969         * XplatUIX11.cs: CreateWindow: Remove old default form location code,
8970           it was making the new code not work. Fixed a typo in the new code
8971           as well. Fixes #79826.
8972
8973 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
8974
8975         * XplatUIWin32.cs:
8976         - NIF_STATE and NIF_INFO added to NotifyIconFlags.
8977         - NOTIFYICONDATA properties sizes fixed, szTip is 128, not 64.
8978         - SystrayBalloon method implemented.
8979         [Add support for notifyicon balloon on win32, #79149]
8980
8981 2007-03-27  Mike Kestner  <mkestner@novell.com>
8982
8983         * ThemeWin32Classic.cs : update StateImageList selection to mirror
8984         the ms behavior when only one image is added to the list.
8985         [Fixes #81191]
8986
8987 2007-03-27  Jackson Harper  <jackson@ximian.com>
8988
8989         * TextControl.cs: Improvements to non multiline line ending
8990         drawing/measuing.
8991
8992 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
8993
8994         * XplatUIX11.cs: Fix the time which tooltip is opened for NotifyIcon. 
8995
8996 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
8997
8998         * NotifyIcon.cs: 
8999         - Balloon message handling added.
9000         - Call XplatUI.SystrayBalloon in ShowBalloonTip. 
9001
9002         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
9003         XplatUIOSX.cs, XplatUIX11-new.cs: ShowBalloonTip method renamed 
9004         to SystrayBalloon to me like other Systray method, also a
9005         handle parameter added.
9006
9007 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9008
9009         * ListView.cs: Show scrollbars even when items.Count == 0
9010         but the columns Width is bigger than the ListView.Width.
9011         Also, when columns.Count == 0 set layout_wd and layout_ht
9012         to the ClientRectangle values, so we don't show any scrollbar
9013         in that case.
9014
9015 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
9016
9017         * XplatUIStructs.cs: Balloon (NIN_BALLOON*) constants added.
9018
9019 2007-03-27  Jackson Harper  <jackson@ximian.com>
9020
9021         * RichTextBox.cs: The RTF library decodes the text properly for us
9022         now.
9023
9024 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9025
9026         * ListView.cs: Display HeaderControl even when columns.Count == 0.
9027         * ThemeWin32Classic.cs: Use SystemBrushes.Control to draw the
9028         ListView header (HeaderControl), instead of Control.BackColor.
9029
9030 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
9031
9032         * Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
9033         Fixes tab control issues where controls would not show up because they
9034         never received their OnVisibleChanged call.
9035
9036 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
9037
9038         * NotifyIcon.cs: Balloon events added (BalloonTipClicked, BalloonTipClosed,
9039         BalloonTipShown).
9040
9041 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
9042
9043         * Control.cs: We won't get a WM_SHOWWINDOW when we create a window that
9044         is maximized or minimized, so move CreateControl to Control.OnVisibleChanged.
9045         * Form.cs: After we set the form visible, send a fake WM_SHOWWINDOW if we
9046         are max or min.  Remove WS_VISIBLE from CreateParams unless we are recreating
9047         the handle.  Fix WindowState by using the internal variable until we are 
9048         sure that we've been shown.
9049         * XplatUIX11.cs: Do not generate a WM_SHOWWINDOW message if new form is
9050         max or min.
9051         [Fixes bug #81198]
9052
9053 2007-03-27  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9054
9055         * XplatUIX11.cs: Windows without WS_CAPTION can still get decorations
9056           (at least borders). Fixes #79386 on Linux (with a small difference
9057           in behaviour: when trying to resize a caption-less window metacity
9058           shows the sysmenu. Resizing is still possible though).
9059         * XplatUIWin32.cs: When setting window styles send request an extra
9060           WM_NCCALCSIZE when it's a form without title (due to no text and no
9061           caption), since Win32 seems to calculate it wrong the first time we
9062           get the message, though the second time things work as they should.
9063         * Form.cs: Reorder a few statements in ChangingParent, otherwise the
9064           newly reparented window might show up unparented. Update
9065           CreateParams to exclude WS_DLGFRAME if ControlBox is false and
9066           there's no title text. Fixes #79386.
9067
9068 2007-03-27  Mike Kestner  <mkestner@novell.com>
9069
9070         * ListBox.cs : don't perform invalidations if the handle hasn't been
9071         created.  [Fixes #80753]
9072
9073 2007-03-27  Mike Kestner  <mkestner@novell.com>
9074
9075         * ListBox.cs : don't adjust top item when SelectedIndex is set to -1.
9076         [Fixes #80428]
9077
9078 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
9079
9080         * XplatUIWin32.cs: Complete NOTIFYICONDATA structure, additional fields 
9081         needed to implement Balloon.
9082
9083 2007-03-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9084
9085         * ListViewItem.cs: In the constructors that take
9086         an array of strings, don't use ListViewSubItemCollection.AddRange
9087         method to add items, since we need to have a different behaviour (in
9088         the constructors we add an item for each null string, opposed to
9089         the behaviour of AddRange, which adds nothing).
9090
9091 2007-03-26  Andreia Gaita  <avidigal@novell.com>
9092
9093         * NumericUpDown.cs: Fix broken 1.1 api for ParseEditText
9094
9095 2007-03-26  Jackson Harper  <jackson@ximian.com>
9096
9097         * TextControl.cs: Draw and measure line endings when in non
9098         multiline mode.
9099         - When searching the text, count the end of the last line as a
9100         word boundary.
9101
9102 2007-03-26  Jackson Harper  <jackson@ximian.com>
9103
9104         * RichTextBox.cs: The selection_start and selection_end don't
9105         really track the correct tags for the selection. So we'll manually
9106         compute the correct tag here.
9107
9108 2007-03-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9109
9110         * ProgressBar.cs, ThemeWin32Classic.cs: Implemented drawing of Marquee
9111           and Continuous styles. Fixes #79469.
9112
9113 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
9114
9115         * ToolStrip.cs: Implement Tooltips.
9116         * ToolStripItem.cs: Create internal method for determining tooltip.
9117
9118 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
9119
9120         * PropertyGrid.cs: Hide a EditorBrowsable attribute from 1.1 API.
9121
9122 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
9123
9124         * NotifyIcon.cs: On disposing verify if icon is visible and hide it,
9125         it prevents a problem thak keeps icon visible after application 
9126         closes on win32.
9127
9128 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
9129
9130         * NotifyIcon.cs: Balloon properties and methods created.
9131
9132         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
9133         XplatUIOSX.cs, XplatUIX11-new.cs: Implement ShowBalloonTip method.
9134
9135 2007-03-25  Jonathan Pobst  <monkey@jpobst.com>
9136
9137         * ToolStripComboBox.cs: Default the ComboBox's FlatStyle to Popup.
9138
9139 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
9140
9141         * Control.cs: Make SetBoundsCore match MS better.  The BoundsSpecified
9142         parameter indicates which aspects were explicit/user-set.
9143         * ComboBox.cs, ListBox.cs: Call SetBoundsCore correctly. (no 0 parameters).
9144
9145 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
9146
9147         * ProgressBar.cs: Throw AOORE instead of AE for property Value (2.0).
9148         * ScrollBar.cs: Throw AOORE instead of AE for properties LargeChange,
9149         SmallChange, and Value (2.0).
9150         * Timer.cs: Throw AOORE instead of AE for property Interval (2.0).
9151
9152 2007-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9153
9154         * ListView.cs: Always set item_control.Width in LayoutDetails
9155         if View is Details. Setting it later in CalculateScrollBars
9156         in a not-so-corner scenario (the sum of columns width is
9157         not bigger than the ListView width when handle is created, and then
9158         that sum gets bigger by increasing the width of the columns)
9159         causes a very weird recursion path (which shouldn't be happening,
9160         since header_control sets it in CalculateScrollBars too). This bug
9161         appeared after Chris' fixes for handle created issues, so probably
9162         it's related to some handle-creation time.
9163
9164 2007-03-23  Chris Toshok  <toshok@ximian.com>
9165
9166         * DataGrid.cs (GetVisibleRowCount): increase the row count in the
9167         case where there's an add row, just so we don't end up in a case
9168         where it's not displayed (this happens when the row is partially
9169         obscured).  Fixes bug #79574.
9170
9171 2007-03-23  Jackson Harper  <jackson@ximian.com>
9172
9173         * TextControl.cs:
9174         * TextBoxBase.cs:
9175         * RichTextBox.cs: Preserve line endings in the lines text buffer,
9176         also added an enum that represents the line ending type. 
9177
9178 2007-03-23  Andreia Gaita  <avidigal@novell.com>
9179
9180         * NumericUpDown.cs: Fix logic so Text and Value properties are not
9181         messed with in every method call, but only from DownButton, 
9182         UpButton, UpdateEditText() and ValidateText. Fixes #80346
9183
9184 2007-03-23  Chris Toshok  <toshok@ximian.com>
9185
9186         * DataGridTextBoxColumn.cs (GetFormattedValue): don't try to
9187         format objects if the format spec is "".  Fixes bug #80889.
9188
9189 2007-03-22  Miguel de Icaza  <miguel@novell.com>
9190
9191         * ToolStripPanel.cs (Join): added stubs to build PDN3
9192
9193         * Control.cs (AutoScrollOffset): Add.
9194
9195         * SystemInformation.cs (MouseWheelScrollDelta): Expose this
9196         property, its only implemented for Win32, on X11 it defaults to
9197         some hardcoded value.
9198
9199         * ToolStripItem.cs (AllowDrop): Add property
9200
9201 2007-03-22  Mike Kestner  <mkestner@novell.com>
9202
9203         * ListView.cs : in FullRowSelect Details mode, only enable box
9204         selection if the user clicks over the "item" column outside of the
9205         text area.  Mmmmm, compatibility.  [Fixes #80374 subpart 7]
9206
9207 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9208
9209         * Control.cs: ChangeParent: Call Form's ChangingParent even if the
9210           handle is not created yet.
9211         * Form.cs: Select: Don't call CreateHandle if the handle is already
9212           created, avoids a stack overflow on Windows when we are recreating
9213           controls.
9214         * ScrollableControl.cs: Set the correct z-order for the scrollbars when
9215           they are made visible, and override AfterTopMostControl to keep
9216           them on top when other controls are brought to front.
9217           CalculateCanvas: Scrollbars are only visible if auto_scroll is true
9218           or force_*scroll_visible is true (old implementation always shows
9219           scrollbars when needed, no matter what auto_scroll was set to).
9220         * InternalWindowManager.cs: UpdateWindowDecorations: Add a
9221           IsHandleCreated check.
9222
9223 2007-03-22  Andreia Gaita  <avidigal@novell.com>
9224
9225         * DataGrid.cs: Implement Column and Row auto sizing when double-clicking on
9226         row or col separator.
9227         * DataGridTextBoxColumn.cs: Implement GetPreferredHeight and GetPreferredSize
9228
9229 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
9230
9231         * MenuAPI.cs: Remove unneeded check for grab_control in UpdateCursor.
9232
9233 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
9234
9235         * MenuAPI.cs: UpdateCursor method added, it is calling in OnMotion to update
9236         cursor for child controls. In ShowWindow and HideWindow now call SetCursor 
9237         every time. Fixes #80410.
9238
9239 2007-03-22  Chris Toshok  <toshok@ximian.com>
9240
9241         * BindingSource.cs (AddNew): partially implement.
9242
9243         remove a couple of NotImplementedException's
9244         to get bug #81148 closed.
9245
9246 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
9247
9248         [Fixes #80380]
9249         
9250         * Control.cs:
9251         - UpdateCursor method added to update the screen cursor.
9252         - GetAvailableCursor method added to return cursor for enabled tree,
9253         it searches for cursor on control and it's parent's for enabled control.
9254         - Call UpdateCursor method on setter of Cursor property.
9255         - On setter of Enabled call UpdateCursor when it is false, we need to
9256         change cursor to normal (or to this parent cursor) because cursor 
9257         setting theres no effect to disabled controls.
9258         - Some minor source changes to follow the coding style guidelines.
9259
9260         * XplatUIX11.cs: In MotionNotify only dispatch SET_CURSOR event for enabled 
9261         controls.
9262
9263 2007-03-22  Chris Toshok  <toshok@ximian.com>
9264
9265         * XplatUIX11.cs: ignore the BadPicture errors cairo+render
9266         generates.
9267
9268 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9269
9270         * XplatUIX11.cs: Implement default locations for forms.
9271         * Form.cs: Completely rework startup location for forms. Fixes #79964.
9272         * Hwnd.cs: Add previous_child_startup_location (to track the current
9273           startup location for any child forms of the current form) and
9274           previous_main_startup_location (to track the startup location for
9275           the current toplevel form).
9276
9277 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
9278
9279         * Control.cs: Don't trigger a layout if an implicit control is added
9280         that isn't visible.  Also, don't notify the owner when an implicit control
9281         is added.  (Owners shouldn't even know about their implicit controls.)
9282
9283 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
9284
9285         * ScrollableControl.cs: Add implicit controls with AddRangeImplicit
9286         to save some re-layouts.
9287
9288 2007-03-21  Everaldo Canuto  <everaldo@simios.org>
9289
9290         * MenuAPI.cs: In ProcessKeys returns false when key is not processed.
9291         [Fixes #81203]
9292
9293 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
9294
9295         * FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
9296         ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.
9297
9298 2007-03-21  Mike Kestner  <mkestner@novell.com>
9299
9300         * ListView.cs : disable selection update for non-left button clicks
9301         with mods and over selected items.  [Fixes #80524]
9302
9303 2007-03-20  Jackson Harper  <jackson@ximian.com>
9304
9305         * TextControl.cs:
9306         * TextBoxBase.cs: Allow different types of line endings. \r, \r\n,
9307         \r\r\n, \n.
9308
9309 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9310
9311         * ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
9312           very probably a more complicated calculation there. Update the
9313           textbox' ForeColor and BackColor when the ComboBox' colors are
9314           changed. Change the border change in LayoutComboBox to only affect
9315           the textbox, not all the calculations there. Seems to fix most of
9316           #79436.
9317
9318 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9319
9320         * ComboBox.cs: Handle Home and End keys as well as all combinations of
9321           modifiers + navigation keys as input keys, enables advanced text
9322           selection in the combobox (like Shift+Left Arrow for instance).
9323           ComboTextBox now overrides Focused and returns whatever
9324           ComboBox.Focused returns, since it really should be focused
9325           whenever the ComboBox is. Fixes #80795. Also make the border around
9326           the text box one pixel bigger, as mentioned in #79436.
9327
9328 2007-03-20  Jackson Harper  <jackson@ximian.com>
9329
9330         * TreeView.cs: Don't offset the images, this was causing some
9331         artifacts when expanding/collapsing with images that were the
9332         exact height of the treenode.
9333
9334 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9335
9336         * TrackBar.cs: Query the theme for the correct value when the mouse
9337           moves and the thumb is pressed. 
9338         * Theme.cs: Added TrackBarValueFromMousePosition
9339         * ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
9340           implementation was updating the trackbar value when drawing, now
9341           the drawing methods only draw. Fixes #80900. Refactored the
9342           calculations out to TrackBarValueFromMousePosition and
9343           GetTrackBarDrawingInfo, so that TrackBar can get the correct value
9344           according to the mouse position whenever it wants to. Changed the
9345           light coloured pen when drawing the thumb from ControlLight to
9346           ControlLightLight, because the ControlLight is the same colour as
9347           the background so the 3D effect is lost. 
9348
9349 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
9350
9351         * Form.cs: In ShowDialog uses MainForm as transient form when no form is
9352         defined. Fixes #80784.
9353
9354 2007-03-20  Marek Habersack  <mhabersack@novell.com>
9355
9356         * ContextMenuStrip.cs: align with the change introduced in
9357         revision 74664.
9358
9359 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
9360
9361         * XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs, 
9362         XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner 
9363         in SetTopmost.
9364
9365 2007-03-19  Chris Toshok  <toshok@ximian.com>
9366
9367         * Control.cs (WmPaint): don't make use of the Handle property
9368         after an event is emitted, as the user could have closed the
9369         form/destroyed the control.  Store the Handle in a local variable
9370         and make use of that.  Fixes bug #80768.
9371
9372 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
9373
9374         * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
9375         behavior in X11 environments.
9376
9377 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
9378
9379         * Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
9380         because on setter of topmost we dont call SetTopmost when handle is not
9381         created.
9382
9383 2007-03-20  Jackson Harper  <jackson@ximian.com>
9384
9385         * TextControl.cs: Need to use SelectionLength () not
9386         selection_length, since that var is reset to -1.
9387         - Draw the caret when we don't have focus.
9388         * TextBox.cs: The selectall actually doesn't occur until the first
9389         focus.
9390         * TextBoxBase.cs: Need to update the caret position after a
9391         selectall.
9392         
9393 2007-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9394
9395         * ListView.cs: Enable scrolling when using Tile view.
9396
9397 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
9398
9399         [Fixes #80902]
9400
9401         * XplatUIDriver.cs: Abstract SetOwner method created.
9402
9403         * XplatUIOSX.cs: Override SetOwner to prevent compilation errors method 
9404         must be implemented and was masked as todo.
9405
9406         * XplatUIWin32.cs: SetOwner implemented using SetWindowLong with 
9407         GWL_HWNDPARENT.
9408
9409         * XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but 
9410         cheking for null owner to remove transient. The SetTopmost will be change
9411         on a decond step.
9412
9413         * Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
9414         SetTopmost. Now owned forms will work properly in win32 and X11.
9415
9416 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9417
9418         * MdiWindowManager.cs: Update function name.
9419         * Form.cs: After closing a form MdiParent is always null.
9420         * MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
9421           better what it should do: necessary book-keeping when the form is
9422           closed, it should not close the form itself.
9423
9424 2007-03-19  Andreia Gaita  <avidigal@novell.com>
9425
9426         * ListViewItem.cs: Fix back and fore color. The subitems only
9427         use their own colors if they are set, otherwise use the listview's
9428         colors. Don't set default colors on constructor for subitem.
9429         Fixes #79315.
9430
9431 2007-03-19  Mike Kestner  <mkestner@novell.com>
9432
9433         * ListView.cs : make box selection for Details views with 
9434         FullRowSelect conform to MS behavior when clicking in the "item" 
9435         column and clicking outside the defined columns.
9436         [Fixes case 5-6 of #80374]
9437
9438 2007-03-19  Chris Toshok  <toshok@ximian.com>
9439
9440         * ScrollableControl.cs: create the controls from within the ctor,
9441         but don't actually add them until our handle is created.  this
9442         fixes a NRE possibility jpobst found (if you override OnLayout in
9443         a subclass, it's called before your ctor).  Also, add a
9444         IsHandleCreated guard to UpdateSizeGripVisibility as well.
9445
9446 2007-03-19  Jackson Harper  <jackson@ximian.com>
9447
9448         * TextBox.cs: Reduce the amount of invalidation we do.
9449         * TextBoxBase.cs: Make shortcuts enabled true by default, at least
9450         some of them are true by default on MS.
9451         - Add some functions to reduce the amount of invalidates we do.
9452         * TextControl.cs: Less invalidation.
9453
9454 2007-03-19  Chris Toshok  <toshok@ximian.com>
9455
9456         [ Fixes #81773, and *seems* to fix #81553 as well ]
9457
9458         * XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
9459         AccumulateDestroyedHandles.  We need to do it *after* we send
9460         WM_DESTROY, as the user's code can access Control.Handle in
9461         OnHandleDestroyed, and this shouldn't cause a recreation.  Also,
9462         move the WM_DESTROY/zombie handling to before the call to
9463         XDestroyWindow.  For some reason without this ordering
9464         FormTest.RecreateHandle hangs.  This ordering is semantically
9465         equivalent, however, as XDestroyWindow is async anyway.
9466
9467 2007-03-19  Gert Driesen  <drieseng@users.sourceforge.net>
9468
9469         * RichTextBox.cs: Reset backcolor_set after setting default.
9470
9471 2007-03-19  Chris Toshok  <toshok@ximian.com>
9472
9473         * ScrollableControl.cs: the scroll position should not effect the
9474         canvas size.  commit patch from georgegiolfan@yahoo.com, which
9475         fixes some really bizarre behavior on resizing.  Fixes bug #80778.
9476         
9477 2007-03-19  Chris Toshok  <toshok@ximian.com>
9478
9479         * ScrollableControl.cs: clean this up a bit.  create the
9480         scrollbars in the ctor and just show/hide them as needed.  Also,
9481         make hscroll_visible/vscroll_visible internal to Recalculate, and
9482         just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
9483         everywhere else.  This seems to fix the scrollbars appearing
9484         beneath the content for me (i have *no* idea why that is,
9485         however.)
9486
9487 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
9488
9489         * ToolStrip.cs: Don't call DoAutoSize when we change Dock.  Also, remove
9490         some redundacy for stuff in Anchor and Dock that base will take care of.
9491         [Fixes #80762]
9492
9493 2007-03-19  Mike Kestner  <mkestner@novell.com>
9494
9495         * ListView.cs : make box selection for Details views without 
9496         FullRowSelect dependent on the text bounds, not item bounds.
9497         * ListViewItem.cs : add an internal property to obtain the TextBounds
9498         in Details view.  [Fixes case 1-4 of #80374]
9499
9500 2007-03-19  Andreia Gaita  <avidigal@novell.com>
9501
9502         * PaintEventArgs.cs (Dispose): Only dispose of graphics object if
9503         we're < 2.0. #78448 && #80316
9504
9505 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
9506
9507         * FontDialog.cs: Don't crash when we switch to a new font that doesn't
9508         have the same style available as the previously selected one.  Also,
9509         support FixedPitchOnly property.  [Fixes bugs #80918, #80947]
9510
9511 2007-03-19  Jackson Harper  <jackson@ximian.com>
9512
9513         * TextControl.cs: Add an alignment property that all new lines
9514         will be given.
9515         - Make sure to use the align shift when calculating the line's X
9516         position.
9517         * TextBox.cs: Set the alignment on the document as well as on all
9518         the document lines.
9519
9520 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9521
9522         * Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
9523           throw if setting the parent of an mdichild that already has an
9524           mdiparent. Update signature for 2.0 profile. ProductName: If there's no
9525           AssemblyProductAttribute in the assembly, use the type's namespace (as
9526           MS seems to do). CreateControl: don't create the handle if the control
9527           is not visible (according to MS behaviour and spec).  SetTopLevel: Only
9528           create handle if the control is not a form. Change FocusInternal to
9529           virtual so that it can be overriden by Form.
9530         * TextBox.cs: Update call to FocusInternal.
9531         * Form.cs: Always create the handle when calling Focus on a MdiChild. The
9532           form is not a toplevel form when it's a mdi child, so update is_toplevel
9533           accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
9534           hasn't been created. Show (IWin32Window): Don't allow this overload for
9535           toplevel windows. CenterToParent/CenterToScreen/Select: create the
9536           handle as MS does. SetVisibleCore: if called on a MdiChild and the
9537           parent isn't visible yet, save the visibility and restore it when the
9538           parent is made visible.
9539         * ScrollableControl.cs: Refactor out scrollbar visibility code to separate
9540           methods, since the visibility of the scrollbars can be changed from
9541           several places, not only from AutoScroll.
9542           [Fixes #81179]
9543
9544 2007-03-19  Jackson Harper  <jackson@ximian.com>
9545
9546         * RichTextBox.cs: Enable shortcuts by default.
9547         * TextBoxBase.cs: Add conditional shortcuts.  
9548
9549 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
9550
9551         * MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).  
9552
9553 2007-03-19  Chris Toshok  <toshok@ximian.com>
9554
9555         [ Fixes bug #80604]
9556         
9557         * XplatUIX11.cs (WaitForHwndMessage): change this to actually
9558         swallow the message we're waiting on, instead of delivering it, as
9559         this is only used for the WM_SHOWWINDOW raised from
9560         MapWindow/UnmapWindow, and the message needs to be generated
9561         (MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
9562         before doing the Map/Unmap.  Also make sure that the Hwnd is still
9563         alive after the message has been handled.
9564
9565         *before* the window is shown.
9566
9567         * Control.cs (CreateControl): guard a few more things inside the
9568         if (!is_created) block, as we might end up being called again -
9569         yay .net.
9570         (WmShowWindow): call CreateControl if we're showing the control.
9571
9572 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9573
9574         * Control.cs: Fix 2.0 signature for Invoke. Support invoking on
9575           controls without a handle if they have any parent with a handle. In
9576           Dispose add a check whether the handle is created or not before
9577           calling BeginInvoke, this removes the need of the extra disposing
9578           parameter (which was bogus anyway since it didn't prevent the
9579           invoke from happening, it only skipped the check for an existing
9580           handle, meaning that the invoke would call on an inexistent
9581           handle).
9582
9583 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
9584
9585         * MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
9586         appears in taskbar.
9587
9588 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
9589
9590         * MessageBox.cs:
9591         - Fixed a problem that dont show help button for messages with 3 buttons.
9592         - Refactory button size and position calculations, now dont use fixed 
9593         values, also fixed button sizes (#80043) and form's border space.
9594         - AddButton method created, now all other AddButton methods call this one.
9595         - Some other source code cosmetic changes.
9596
9597 2007-03-18  Jackson Harper  <jackson@ximian.com>
9598
9599         * RichTextBox.cs: Don't do this all fonts must match check if
9600         there is only one char selected.
9601
9602 2007-03-18  Jackson Harper  <jackson@ximian.com>
9603
9604         * TreeView.cs: ScrollWindow works properly now, so we don't need
9605         to screw around with the scroll area.  This fixes some artifacts
9606         when expanding and collapsing.
9607
9608 2007-03-18  Jackson Harper  <jackson@ximian.com>
9609
9610         * TextBoxBase.cs: Allow updating the selection position when the
9611         cursor is outside the textarea, but we have a capture.
9612         * TextControl.cs: A special case for when the cursor is outside
9613         the bounds of the TB.
9614         
9615 2007-03-18  Jackson Harper  <jackson@ximian.com>
9616
9617         * TextBoxBase.cs: Remove image pasting code for now.  There is no
9618         way to get an image on the clipboard right now anyways.
9619         * TextControl.cs:
9620         * RichTextBox.cs: Use the new RTF Picture class for pictures.
9621
9622 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
9623
9624         * MessageBox.cs:
9625         - Set window properties in constructor intead of on CreateParams.
9626         - Remove topmost from Window ExStyle.
9627         - Set ShowInTaskbar to false.
9628         - Set form border to FixedDialog.
9629         - Some cosmetic changes and remove unneeded comments.
9630         - It fixes itens 2,3 and 4 of bug #80043.
9631
9632 2007-03-18  Gert Driesen  <drieseng@users.sourceforge.net>
9633
9634         * TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
9635         none was explicitly set. Fixes part of bug #79949.
9636
9637 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
9638
9639         * ToolStripComboBox.cs: Add AutoComplete*.
9640
9641 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
9642
9643         * ToolStripComboBox.cs: Add FlatStyle.
9644
9645 2007-03-16  Jonathan Pobst  <monkey@jpobst.com>
9646
9647         * ToolStrip.cs, ToolStripProfessionalRenderer.cs,
9648         ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
9649
9650 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9651
9652         * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
9653           CheckBox.cs, RadioButton.cs, BindingSource.cs,
9654           DataGridColumnStyle.cs: Remove warnings.
9655
9656 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9657
9658         * Menu.cs: MergeMenu: Check menu argument for null before looping over
9659           it.
9660         * MdiWindowManager.cs: Add IsVisiblePending to track the pending
9661           visibility of mdi child forms. FormSizeChangedHandler: update the
9662           maximized size if size has changed while maximized.
9663         * MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
9664           creating the handle.
9665         * InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
9666           avoid creating the handle if not created.
9667         * XplatUI.cs: Update debug output.
9668         * XplatUIStructs.cs: Added ToString's for a couple of structs.
9669
9670 2007-03-16  Jonathan Pobst <monkey@jpobst.com>
9671
9672         * ContainerControl.cs: Give ToolStripManager the opportunity to handle
9673         ProcessCmdKey().
9674         * ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs, 
9675         ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
9676         Implement keyboard shortcuts.
9677
9678 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
9679
9680         * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
9681         Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog, 
9682         ColorDialog and all derived classes.
9683
9684 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
9685
9686         [ Fixes bug #79828 ]
9687
9688         * ToolBar.cs:
9689         - Rename ToolBarButtonInfor to ToolBarItem.
9690         - Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
9691         - Maintain an array of ToolBarItem, used instead of ToolBarButton
9692         collection to be able add same button more than one time on a toolbar.
9693         - Refactory all properties and methods to use ToolBarItem. 
9694
9695         * ToolBarButton.cs: 
9696         - Remove all propeties and methods that is now in ToolBarItem.
9697         - Rectangle propery now gets the rectangle from first ToolBarItem to
9698         mimic win32 behavior.
9699         - Size calculation and layout methods also removed.
9700
9701         * ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
9702         ToolBarItem instead of ToolBarButton to right drawing buttons when
9703         same button/separator was added more than one time to ToolBar.
9704
9705         * ThemeNice.cs: Same as above. 
9706
9707 2007-03-15  Andreia Gaita  <avidigal@novell.com>
9708
9709         * XplatUIX11.cs: Fire extra MouseMove events right after
9710         MouseDown and MouseUp, emulating win32's <censored> behaviour
9711         for apps that rely on it.
9712
9713 2007-03-15  Jackson Harper  <jackson@ximian.com>
9714
9715         * TextControl.cs:
9716         * TextBoxBase.cs: On MS, a fixed single border is not in NC area,
9717         it is drawn on the controls client window and there is no NC
9718         area.
9719         - Set the background color to gray on 2.0 when we are readonly.
9720
9721 2007-03-15  Chris Toshok  <toshok@ximian.com>
9722
9723         [ Fixes bug #81144 ]
9724         
9725         * XplatUIX11.cs: implement VirtualScreen independently of
9726         WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
9727         property.
9728
9729 2007-03-15  Chris Toshok  <toshok@ximian.com>
9730
9731         * Hwnd.cs: add an internal field for the cached_window_state.
9732
9733         * XplatUIX11.cs: cache the window state, invalidating the cache
9734         (and thus re-querying the X server) only when we see an update to
9735         the _NET_WM_STATE property.
9736
9737 2007-03-15  Chris Toshok  <toshok@ximian.com>
9738
9739         * BindingSource.cs: get a lot of the unit tests working.
9740
9741 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
9742
9743         * Control.cs: Modify UpdateStyles to store distances when bounds >=
9744         0 instead of just bounds > 0.  [Fixes bug #80912]
9745
9746 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
9747
9748         * ToolStrip.cs, ToolStripItem.cs: Implement several new properties
9749         and methods.
9750
9751 2007-03-15  Ivan N. Zlatev <contact@i-nz.net>
9752         
9753         * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
9754         XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
9755         XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
9756         WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
9757
9758 2007-03-15  Chris Toshok  <toshok@ximian.com>
9759
9760         [ Fixes #81101 ]
9761         
9762         * Control.cs: add Ivan's fix for 81101, with a slight modification
9763         - you can set control.Target to null.
9764
9765 2007-03-14  Jonathan Pobst  <monkey@jpobst.com>
9766
9767         * ToolStripItem.cs: If our OwnerItem is null, we can't use 
9768         HideDropDown, use Hide instead to prevent an NRE.
9769         [Fixes bug #81147]
9770
9771 2007-03-14  Jackson Harper  <jackson@ximian.com>
9772
9773         * TextBoxBase.cs: Mess with the creation stuff a little. We need
9774         to calculate the document before the handle is created, in some
9775         cases. (Actually just one case).
9776
9777 2007-03-14  Jackson Harper  <jackson@ximian.com>
9778
9779         * TextBoxBase.cs: Need to display the caret after letting the base
9780         wndproc handle the focus methods, because the caret display
9781         methods check the focus state.
9782         - Try to display the caret after updating it's position with SelectWord.
9783         - Don't need to do an immediate update on this recalc, since there
9784         will be an invalidate anyways.
9785
9786 2007-03-14  Jackson Harper  <jackson@ximian.com>
9787
9788         * TreeView.cs: Some workarounds so that we can match event order a
9789         little better.
9790
9791 2007-03-14  Gert Driesen  <drieseng@users.sourceforge.net>
9792
9793         * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
9794         #80803. Avoid NullReferenceException when Control does not have
9795         parent. Fixed different blinkstyle issues. Only subscribe to Tick
9796         event a single time. Only draw error icon when control is created and
9797         visible. Fixes failing unit tests.
9798
9799 2007-03-14  Andreia Gaita  <avidigal@novell.com>
9800
9801         * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
9802         Selecting events. Fire Leave and Enter events when changing tabs.
9803
9804 2007-03-14  George Giolfan  <georgegiolfan@yahoo.com>
9805
9806         * TreeView.cs: Add TreeViewNodeSorter.
9807         * TreeNodeCollection.cs: Add sorter parameter to Sort method.
9808
9809 2007-03-14  Chris Toshok  <toshok@ximian.com>
9810
9811         * Form.cs: go ahead and remove the RecreateHandles that jpobst
9812         removed earlier and I had him add back it.  It turns out metacity
9813         *does* in fact handle the MOTIF_WM_HINTS property changing, it
9814         just doesn't redraw the window titlebar until you resize the
9815         window.  This also means we aren't recreating the entire window
9816         hierarchy on X when you change this property.  And it looks better
9817         on windows, too.
9818
9819 2007-03-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9820
9821         * ListViewItem.cs:
9822         * ListView.cs: Collecting selection information
9823         is now done in SelectedIndexCollection rather than in
9824         SelectedListViewItemCollection. This is done so we can
9825         have the selection information code in one single place
9826         (virtual mode selection information entirely depends on
9827         SelectedIndexCollection).
9828
9829 2007-03-13  Miguel de Icaza  <miguel@novell.com>
9830
9831         * ErrorProvider.cs: Add stubs for ISupportInitialize
9832
9833 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9834
9835         * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
9836         in the right order with the right values, from the Checked property, 
9837         just as MS does (instead of triggering them from ListView).
9838
9839         * ListView.cs: Make OnItemCheck and OnItemChecked internal.
9840
9841 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9842
9843         * ListView.cs: Implement ItemChecked 2.0 event. Also cast to 
9844         the correct handler in OnItemCheck method (ItemCheckEventHandler 
9845         instead of EventHandler). This used to throw an InvalidCastException.
9846
9847 2007-03-13  Jackson Harper  <jackson@ximian.com>
9848
9849         * TextBoxBase.cs: Calculate the document before the handle is
9850         created, so there isn't an extra invalidate called.
9851
9852 2007-03-13  Jonathan Pobst  <monkey@jpobst.com>
9853
9854         * Form.cs: Don't set owner in ShowDialog until we are sure
9855         that we aren't going to throw an exception.  [Fixes bug #80773]
9856
9857 2007-03-12  George Giolfan  <georgegiolfan@yahoo.com>
9858
9859         * TreeView.cs: Make it compile.
9860
9861 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
9862
9863         * Control.cs: Another place we don't call SizeFromClientSize.
9864         * Form.cs: Another place we don't call SizeFromClientSize.
9865         [Fixes bug #81125]
9866
9867 2007-03-12  Jackson Harper  <jackson@ximian.com>
9868
9869         * TreeView.cs: Basically emulating some strangness here with
9870         exanding nodes and setting node positions when windows aren't
9871         created.
9872         - Also attempting to walk the node tree less than previously, and
9873         just use visible order calculations for determining offsets.
9874         - oops made scrolling backwards.
9875         * TreeNode.cs: We need to start nodes with a zero visible order,
9876         because the order calcs are based on the first nodes order.
9877
9878 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
9879
9880         * Form.cs: Don't exit the program if RecreateHandle is called on
9881         the main form.
9882
9883 2007-03-12  Chris Toshok  <toshok@ximian.com>
9884
9885         * XEventQueue.cs: remove the use of PostQuitState.
9886
9887         * XplatUIX11.cs: remove the use of PostQuitState.  If we get a
9888         WM_QUIT message in GetMessage, return false (and if we're in the
9889         nested WaitForHwndMessage, repost the WM_QUIT message).
9890
9891 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
9892
9893         * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
9894         or the MaximizeBox properties.  [Part of bug #80640]
9895
9896 2007-03-12  Everaldo Canuto  <everaldo@simios.org>
9897
9898         * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
9899         no links.
9900
9901 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
9902
9903         * ToolStripItem.cs: Fix some tests I broke by checking Visible
9904         instead of visible.
9905
9906 2007-03-12  Gert Driesen  <drieseng@users.sourceforge.net>
9907
9908         * FileDialog.cs: Use text of File name combobox to determine what
9909         files the user selected. Added tokenizer to parse the file names.
9910         Fixes bug #81123.
9911
9912 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
9913
9914         * Control.cs: We can't call SizeFromClientSize in the constructor,
9915         but we still need to do the same work, so make an internal version.
9916         [Fixes bug #80621]
9917
9918 2007-03-12  Jackson Harper  <jackson@ximian.com>
9919
9920         * TreeView.cs:
9921         * TreeNode.cs:
9922         * OpenTreeNodeEnumerator: Match MS better for IsVisible and
9923         IsExpanded.
9924
9925 2007-03-12  Jackson Harper  <jackson@ximian.com>
9926
9927         * TextBoxBase.cs: Now that the handles are being created a little
9928         later, we need to make sure that the document is recalculated when
9929         the handle is created.
9930
9931 2007-03-11  Everaldo Canuto  <everaldo@simios.org>
9932
9933         * Theme.cs: GetLinkFont abstract method added.
9934         
9935         * LinkLabel.cs: 
9936         - Remove CalcTrimRectangle, no longer needed.
9937         - Factor also remove, position issues must be fixed in libgdiplus.
9938         - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
9939         - GetPieceFont, CreateLinkFont and link_font removed, theme must be 
9940         care about font used to draw links.
9941         - Set TabStop to true when control is "Selectable", control is selectable
9942         when have one or more links. Fixes #80501 (test case is also added).
9943         - Set the LinkArea values after links change, LinkArea values must be
9944         based in first link position and size, a test case was created.
9945         - Fix ControlStyles.Selectable value, now is based on LinkArea value, 
9946         the attribute must be true LinkArea.Length > 0. The same was applied to
9947         TabStop.
9948         
9949         * ThemeWin32Classic.cs: 
9950         - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used 
9951         in draw method.
9952         - Use CPDrawStringDisabled to draw disabled text instead of hard code 
9953         color change.
9954         - Draw focus rectangle for every parts focused, including parts that 
9955         is on another line, its because regions returns various rectangles
9956         and not only one. Needed to mimic W32 look.
9957         - Uses Graphics.Clip to delimite region painted, it mean that now 
9958         complete text is passed to DrawString, with this we solve layout
9959         issues without create another text renderer.
9960         - Uses Region.Intersect to fix some flickers problems, now only needed
9961         parts will redrawed.
9962         - This changes fixes #79614 and some other unreported issues, on Linux 
9963         some layout problems still remain, the problem is under 
9964         MeasureCharacterRanges but it is an libgdiplus bug.
9965
9966 2007-03-10  Gert Driesen  <drieseng@users.sourceforge.net>
9967
9968         * TextBox.cs: Set for foreground color.
9969         * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
9970         this is already done in Control.
9971
9972 2007-03-10  Jackson Harper  <jackson@ximian.com>
9973
9974         * TextBox.cs: Set the background color, but reset the
9975         backcolor_set flag which is just for the user setting the
9976         background color.
9977
9978 2007-03-09  Chris Toshok  <toshok@ximian.com>
9979
9980         * Control.cs: really remove the call to XplatUI.SetVisible from
9981         CreateHandle(), like I said I did when I merged the branch.
9982
9983         * BindingSource.cs: implement some more of this stuff.
9984
9985 2007-03-09  Jackson Harper  <jackson@ximian.com>
9986
9987         * TextBox.cs: Don't explicitly set our background colors.
9988         * TextControl.cs:
9989         * TextBoxBase.cs: Draw readonly text.
9990         - Need to invalidate when backcolor or readonly are changed.
9991         
9992 2007-03-09  Jackson Harper  <jackson@ximian.com>
9993
9994         * TextBoxBase.cs: Don't set the forecolor until the handle is
9995         created.
9996         - Do not raise OnPaint, and removed some old debug code.
9997
9998 2007-03-09  George Giolfan  <georgegiolfan@yahoo.com>
9999
10000         * ScrollableControl.cs: Fix mouse wheel scrolling.
10001
10002 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
10003
10004         * Control.cs: Wire up MouseDoubleClick event.
10005
10006 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
10007
10008         * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
10009         top or bottom.
10010         * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
10011         * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
10012         item is added.  This logic was moved to ToolStrip.OnItemAdded.
10013         [Fixes bug #81090]
10014
10015 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10016
10017         * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
10018
10019 2007-03-08  Jackson Harper  <jackson@ximian.com>
10020
10021         * TreeView.cs: Show the correct image for selected node (this used
10022         to work, not sure how the code got deleted). Also implemented 2.0 feature
10023         SelectedImageKey.
10024
10025 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10026
10027         * ListView.cs:
10028         * ListViewItem.cs: Cache index in items when retrieving them
10029         in VirtualMode.
10030
10031 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
10032
10033         * ToolStripItem.cs: Don't return the explicit_size if we are using 
10034         AutoSize.  Fixes invalidation issue when user has explicitly set a
10035         size and has AutoSize = true.
10036
10037 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
10038
10039         * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
10040
10041 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
10042
10043         * DataGridView.cs: Remove event handler from DataView when a
10044         DataTable is used as DataSource.
10045
10046 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
10047
10048         * Control.cs: Create internal setter for client_size to allow it to be
10049         set without triggering resizing code.
10050         * Form.cs: Calculate client_size in constructor, only change client_size
10051         in FormBorderStyle property if Handle has been created.
10052         [Fixes #80574, #80791]
10053
10054 2007-03-08  George Giolfan  <georgegiolfan@yahoo.com>
10055
10056         * SystemInformation.cs: Add TerminalServerSession.
10057
10058 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
10059
10060         * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
10061         TreeView code.
10062
10063 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
10064
10065         * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
10066         Handle before we were supposed to.  Now checks ActivateOnShow property
10067         in Control.
10068         * Control.cs: Add internal ActivateOnShow property.
10069         * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
10070         for ActivateOnShow.
10071         * Hwnd.cs Remove no longer needed no_activate field.
10072
10073 2007-03-07  Jackson Harper  <jackson@ximian.com>
10074
10075         * TreeView.cs: Implement owner draw tree nodes.  And a couple more
10076         2.0 properties
10077         * DrawTreeNodeEventHandler.cs: Add
10078         * DrawTreeNodeEventArgs.cs: Correct default value.
10079         
10080 2007-03-07  Chris Toshok  <toshok@ximian.com>
10081
10082         * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
10083         to be called before NativeWindow.WndProc.  Put the HwndCreating
10084         magic there to hook up our Hwnd's to handles.
10085
10086 2007-03-07  Gert Driesen  <drieseng@users.sourceforge.net>
10087
10088         * DataGridView.cs: Comment out debug code.
10089
10090 2007-03-07  Chris Toshok  <toshok@ximian.com>
10091
10092         [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
10093         to make the rest of the world happy]
10094
10095         * Control.cs (CreateHandle): there's no need to call
10096         XplatUI.SetVisible here, it's effectively done by
10097         XplatUI.CreateWindow on X now, and always was on windows.
10098
10099         * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
10100         shortcircuit out of the loop if we have a message loop running on
10101         this thread.
10102
10103         [Changelog from merge]
10104
10105         2007-03-05  Chris Toshok  <toshok@ximian.com>
10106
10107                 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
10108                 causes handle creation.
10109
10110         2007-02-28  Chris Toshok  <toshok@ximian.com>
10111
10112                 * ApplicationContext.cs: Add a flag to make sure we only raise the
10113                 ThreadExit event once (ExitThreadCore can be indirectly called
10114                 from a few places.)  I don't like the additional flag, but it
10115                 makes the event ordering/count correct.
10116
10117                 * Application.cs (MWFThread.LoopCount): don't use an enumerator
10118                 without locking the collection.  An enumerator doesn't give us any
10119                 protection from modification anyway.  Lock the thread hash and
10120                 replace the complicated enumerator loop with a foreach.
10121                 (Application.CloseForms): make internal so it can be called from
10122                 ApplicationContext.  This should probably be moved to MWFThread.
10123                 (Application.ExitThread): don't call MWFThread.Current.Exit()
10124                 here.  just call XplatUI.PostQuitMessage.  We'll exit the thread
10125                 when the runloop exits (in response to WM_QUIT.)
10126                 (Application.RunLoop): add a comment (and check) for
10127                 context.MainForm being null after setting context.MainForm.Visible
10128                 = true.  This is because you're perfectly free to dispose of a
10129                 form in VisibilityChanged.  Chalk this up to another case where we
10130                 need to synchronously generate WM_ACTIVATE from Control.Show.
10131                 Also, add handling for WM_QUIT here so we'll exit the loop.
10132                 
10133                 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit.  The
10134                 fact that we don't wait if we're only unmapping the whole_window
10135                 makes me a bit nervous, but it doesn't seem to cause any problems
10136                 yet.
10137
10138                 also, add a comment about the stupid, broken and wrong resetting
10139                 of PostQuitState to false in GetMessage().
10140
10141                 In PostQuitMessage, we need to add a WM_QUIT message to the
10142                 thread's queue.  We use the FosterParent to get the right
10143                 handle/hwnd/queue.
10144
10145                 Lastly, in SetVisible, we need to unmap both windows, since the
10146                 waiting only happens when we're unmapping the client window.  So
10147                 now, the *only* time we unmap just the whole_window is in the hack
10148                 for resizing a control to 0,0.
10149                 
10150         2007-02-21  Chris Toshok  <toshok@ximian.com>
10151
10152                 * Application.cs (CloseForms): rewrite this so that we don't
10153                 modify the list while we're traversing it.
10154
10155         2007-02-20  Chris Toshok  <toshok@ximian.com>
10156
10157                 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
10158                 of OnHandleCreated.
10159                 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
10160                 handle is created.  otherwise we'll create it here.
10161                 (VerticalScrollEvent): same here.
10162
10163                 * Application.cs (CloseForms): call Form.Dispose, don't post
10164                 WM_CLOSE_INTERNAL.
10165
10166                 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
10167                 here. Application should Dispose() of the Form's.
10168
10169                 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
10170                 WM_DESTROY as well.
10171                 (MapWindow,UnmapWindow): only actually do the waiting for
10172                 SHOWWINDOW if the control we're dealing with is a Form.
10173                 (CreateWindow): if the control isn't a form, SendMessage
10174                 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
10175
10176                 * Control.cs (SetVisibleCore): always use is_visible here, not
10177                 value.  If we use value, we can end up re-setting something
10178                 visible if, for instance, you do Control.Hide() in a delegate
10179                 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
10180
10181         2007-02-20  Chris Toshok  <toshok@ximian.com>
10182
10183                 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
10184                 the message we need.  PeekMessage returning false should not be a
10185                 condition under which we exit the loop.
10186
10187         2007-02-15  Chris Toshok  <toshok@ximian.com>
10188
10189                 * Control.cs (Refresh): only refresh if we've got a handle and are
10190                 visible.
10191                 (CreateAccessibilityInstance): CreateControl() here.
10192                 (UpdateChildrenZOrder): complicate the code loop even more by
10193                 taking into account controls that haven't had their handle
10194                 created, and those that aren't visible.  But on the flip side,
10195                 simplify the code by splitting it into two loops.  one which
10196                 builds up the list of child controls we're interested in, and the
10197                 other that sets the z order of those children.
10198
10199         2007-02-14  Chris Toshok  <toshok@ximian.com>
10200
10201                 * Control.cs: Control.AccessibilityObject causes the control to be
10202                 created, not just the handle.
10203
10204         2007-02-14  Chris Toshok  <toshok@ximian.com>
10205
10206                 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
10207                 problem on X where a window might have its handle created (and be
10208                 visible) while the window is unmapped.  calling XConfigureWindow
10209                 on an unmapped window is bad, and generates X errors.
10210
10211         2007-02-13  Chris Toshok  <toshok@ximian.com>
10212
10213                 * Control.cs (CreateHandle): don't loop over our children setting
10214                 their parent here.  do it when in WndProc when we're shown.
10215                 (UpdateChildrenZOrder): make this internal so we can call it from
10216                 ScrollableControl.
10217                 (WndProc): for WM_SHOWWINDOW, reparent the child control after
10218                 creating its handle.  Also, remove the calls to PerformLayout from
10219                 here.  they're done in ScrollableControl.OnVisibleChanged.  Also,
10220                 OnVisibleChanged only seems to be called directly here for the
10221                 toplevel control.  It's propagated down the window hierarchy by
10222                 calls to child.OnParentVisibleChanged.
10223                 (OnVisibleChanged): don't do layout here - it's done (oddly
10224                 enough, according to a glance at stack traces on ms.net..) in
10225                 ScrollableControl.
10226                 
10227                 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
10228                 z order of our children before calling PerformLayout.
10229
10230         2007-02-12  Chris Toshok  <toshok@ximian.com>
10231
10232                 [big change, fixes #80020]
10233                 
10234                 * AccessibleObject.cs: we need to make owner internal again to fix
10235                 some of ControlAccessibleObject.
10236
10237                 * Control.cs: lots of changes here.  add support for WM_CREATE,
10238                 for which we generate OnHandleCreated.  Remove the OnHandleCreated
10239                 call from CreateHandle.  Also add support for WM_SHOWWINDOW where
10240                 we create child controls.  leave the MonoTODO's for the
10241                 accessibility calls, but fix the exceptions so the tests pass.
10242
10243                 Add the InvalidOperationExceptions to Invoke methods, and remove a
10244                 couple of InvokeInternal methods we aren't using.
10245                 
10246                 Also, add a couple of CreateHandle calls in places where we know
10247                 the handles are being created but our code doesn't reference
10248                 .Handle.
10249
10250                 Make SetVisibleCore call OnVisibleChange if the handle isn't
10251                 created.  If the handle is created, we rely on XplatUI.SetVisible
10252                 generating the event synchronously.
10253                 
10254                 Lastly, make sure we don't use this.Handle inside CreateHandle,
10255                 because we can call back into client (and that code can dispose of
10256                 the control).
10257
10258                 * XplatUIStructs.cs: misc/cleanup.
10259
10260                 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
10261                 although we don't populate the wParam properly.
10262                 (CreateWindow): generate WM_CREATE.
10263                 (MapWindow,UnmapWindow): make these calls synchronous, at great
10264                 performance expense (particularly in the unmap case), to match
10265                 win32 behavior.
10266
10267                 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
10268                 to call it.
10269                 (set_MdiParent): don't recreate the handle unless it's been
10270                 created already.
10271                 
10272                 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
10273                 it's created.
10274
10275                 * NativeWindow.cs: this is probably the weirdest part of the
10276                 patch.  We need a way to link up the window being created to the
10277                 WM_CREATE message.  Since we can only be creating one window at a
10278                 time on a given thread, we keep track of a per-thread reference so
10279                 we can dispatch it properly.  We also need to keep track of the
10280                 Hwnd currently being created so that the win32 backend doesn't
10281                 have problems.
10282                 
10283                 * XplatUIWin32.cs: a similar change to the one we made in
10284                 NativeWindow.cs.
10285
10286 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
10287
10288         * ToolStripItem.cs: Make CalculatePreferredSize virtual.
10289         * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
10290         to draw the menu shortcut string.
10291
10292 2007-03-07  Jackson Harper  <jackson@ximian.com>
10293
10294         * TreeNode.cs: Add the 2.0 collapse method.
10295
10296 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
10297
10298         * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
10299
10300 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
10301
10302         * DataGridView.cs: Change DataSource will clear column and row
10303         lists. Call Invalidate() to reflect DataSource change.
10304
10305 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
10306
10307         * DataGridView.cs: Add rows when DataSource is System.Data.DataView
10308         and a new row is added to it.
10309
10310 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
10311
10312         * DataGridView.cs: Add columns when DataSource is en empty list but
10313         is a System.Data.DataView (from a System.Data.DataTable).
10314
10315 2007-03-06  Andreia Gaita  <avidigal@novell.com>
10316
10317         * Label.cs: Implement AutoEllipsis (2.0)
10318
10319 2007-03-06  Jackson Harper  <jackson@ximian.com>
10320
10321         * TreeView.cs: Implement 2.0 TopNode setter property.
10322         - Use a local var instead of the skipped_nodes field for computing
10323         how many nodes to skip.  Otherwise we won't scroll because the
10324         valuechanged handler checks if skipped_nodes is equal to the new
10325         value.
10326         - Implement 2.0 Sort method.
10327         - Add useless 2.0 DoubleBuffer property
10328         - Implement 2.0 LineColors property.  Lets you change the color of
10329         the lines in the tree. Terribly useful for creating non cohesive
10330         desktops.
10331         - Implement 2.0 image key feature.
10332
10333 2007-03-06  Jackson Harper  <jackson@ximian.com>
10334
10335         * TreeView.cs: We can't get the bounds of the nodes before raising
10336         the AfterSelect event, because that event could change the node's
10337         bounds (scrolling, font change, etc).
10338
10339 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10340
10341         * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
10342         * Form.cs: Don't recreate handle when creating FormWindowManager, just
10343           update window styles. In CreateParams us VisibleInternal instead of
10344           VIsible to get the actual visible flag set for this form.
10345         * FormWindowManager.cs: Activate the form whenever the mouse clicks on
10346           the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
10347           handle the case when the form is already maximized, in which case
10348           it should be restored. Fixes #81043.
10349
10350 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10351
10352         * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
10353
10354 2007-03-05  Jackson Harper  <jackson@ximian.com>
10355
10356         * TreeViewHitTestInfo.cs: implement.
10357
10358 2007-03-05  Jackson Harper  <jackson@ximian.com>
10359
10360         * InternalWindowManager.cs: class status fix.
10361
10362 2007-03-05  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10363
10364         * InternalWindowManager.cs: All windows that have a parent
10365         are confined to their parent when they're being moved.
10366         Fixes #80822.
10367
10368 2007-03-04  Gert Driesen  <drieseng@users.sourceforge.net>
10369
10370         * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
10371         on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
10372
10373 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10374
10375         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
10376           buttons invisible before deciding which ones should be visible
10377           (fixes minimize/maximize buttons showing up in toolwindows). Remove
10378           an unused variable.
10379         * InternalWindowManager.cs: Remove warning.
10380
10381 2007-03-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10382
10383         * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
10384         to throw an InvalidOperationException is virtual mode is being used.
10385
10386 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
10387
10388         * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
10389         ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
10390         ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
10391         ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
10392         ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
10393         ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
10394
10395 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10396
10397         * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
10398           driver.KeyboardDelay from XplatUI.KeyboardDelay 
10399         * XplatUIW      in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
10400           (patch by Sergey Volk)
10401
10402 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10403
10404         * ToolWindowManager.cs: Added, contains logic for
10405           tool windows.
10406         * CreateParams.cs: Add a few helper methods and an
10407           internal variable to know which control the CreateParams belongs
10408           to.
10409         * Control.cs: Call Form.ChangingParent when the
10410           parent is about to be changed.
10411         * XplatUIX11.cs: DeriveStyles (): Set
10412           caption_height for all windows that have captions and are children.
10413           Update to use ToolWindowManager instead of InternalWindowManager
10414           for ToolWindows.
10415         * XplatUIWin32.cs: Set fake window styles for all
10416           windows that have window managers.
10417         * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
10418           now duplicated for mdi windows when they are
10419           maximized, first for the buttons the window itself has, then for
10420           the buttons that appear in the menu bar. Makes things a little
10421           easier). Updated UpdateWindowDecorations, SetWindowState and the
10422           mouse eventhandlers accordingly.
10423         * Form.cs: Add ChangingParent (), contains the
10424           logic of what should happen when the parent changes. In MdiParent
10425           don't set things that ChangingParent () is doing. When handling
10426           WM_CLOSE, we can close the form if there are any other modal forms
10427           and the current form is a descendent of the modal form.
10428         * InternalWindowManager.cs: A lot of refactoring,
10429           the title buttons are now extracted to a separate container class
10430           that takes care of all button code (clicks, tooltips, etc). Moved
10431           Iconic|Maximized|Normal Bounds properties to this class from
10432           MdiWindowManager, so that the window state logic can succeed for
10433           other than mdi wm's. Implemented general window state change logic.
10434           Moved CreateButtons to ThemeWin32Classic, since the theme might
10435           override which buttons are available when as well as the exact
10436           location.
10437         * FormWindowManager.cs: Added, contains logic for
10438           normal forms.
10439         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
10440           which buttons go where (and if they are at all visible). 
10441           Removed special handling of maximized windows, since they aren't special. 
10442           In DrawManagedWindowDecorations don't try to draw the text if it is
10443           empty.
10444         * MdiClient.cs: ArrangeIconicWindows: Don't  calculate any sizes, 
10445           use whatever the wm gives us.
10446
10447 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
10448
10449         * ButtonBase.cs: Add 2.0 properties.
10450         * Button.cs: Override Draw for 2.0.
10451         * Control.cs: Add Entered and Selected properties.
10452         * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
10453         TextRenderer.cs: Make internal for 1.1 to unify drawing code.
10454         * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
10455         buttons.
10456         * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
10457
10458 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
10459
10460         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code.  :/
10461
10462 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
10463
10464         * XplatUIWin32.cs: Register a new class with Windows each time we get
10465         a new ClassStyle.  [Fixes bugs #79432, #80817]
10466         * Controls.cs: Set the correct ClassStyle in CreateParams.
10467         * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
10468
10469 2007-03-01  Gert Driesen  <drieseng@users.sourceforge.net>
10470
10471         * ListView.cs: Add fireEvent argument to ReorderColumn since the
10472         ColumnReordered event must not be signaled when modifying DisplayIndex
10473         of a ColumnHeader. Added internal ReorderColumns method which takes
10474         care of drawing, and updating the internal DisplayIndex of the
10475         ColumnHeader. Added AddColumn method which is invoked from
10476         ColumnHeaderCollection when adding or inserting columns, and which
10477         ensures that reorder_columns_indices is kept in sync. Avoid redrawing
10478         after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
10479         Recalculated dispay indices after removing a ColumnHeader.
10480         * ColumnHeader.cs: Save DisplayIndex separately from ListView to
10481         match MS. Allows last display index to be returned after ListView
10482         is disposed. Update actual location of ColumnHeader when DisplayIndex
10483         is modified.
10484
10485 2007-03-01  Everaldo Canuto  <everaldo@simios.org>
10486
10487         * LinkLabel.cs: Improve CalcTrimRectangle.
10488         
10489         * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
10490
10491 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
10492
10493         * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
10494         get rectangle as a result value.
10495
10496 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
10497
10498         * LinkLabel.cs: Theres some diferences between rectangle return from 
10499         MeasureCharacterRanges and the area used for DrawString to fix this 
10500         CalcMeasurementFactor method was created, it calcules the diferences
10501         to be use later to adjust rectangle in draw operations. Fixes #80473.
10502         
10503         * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
10504         to adjust draw rectangle.
10505
10506 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
10507
10508         * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
10509         text and some other changes to reduce and optimize source code.
10510
10511 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
10512
10513         * RadioButton.cs: Implement 2.0 event.
10514         * RelatedImageListAttribute.cs: Implement new class.
10515
10516 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
10517
10518         * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
10519
10520 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
10521
10522         * CheckBox.cs: Implement 2.0 functionality.
10523
10524 2007-02-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10525
10526         * ListView.cs: Refactor Add and AddRange methods of
10527         ListViewItemCollection, to not update the ListView
10528         everytime an item is added in AddRange. Also move the update
10529         code to a new CollectionChanged method, and call it
10530         from other methods that need it as well (this should also fix some
10531         bugs when Sorting is used).
10532
10533 2007-02-27  Jackson Harper  <jackson@ximian.com>
10534
10535         * TextControl.cs: Try to never let the caret stay in a non-text
10536         tag.
10537         * TextBoxBase.cs: Update the caret.
10538
10539 2007-02-26  Jonathan Pobst  <monkey@jpobst.com>
10540
10541         * XplatUIStructs.cs: Add some convenience methods for POINT structure.
10542         * XplatUIWin32.cs: Add some convenience methods for RECT structure,
10543         delete POINT structure, duplicate of one in XplatUIStructs.
10544         * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
10545
10546 2007-02-26  Gert Driesen  <drieseng@users.sourceforge.net>
10547
10548         * ListView.cs: Initialize LabelEditEventArgs after setting Text of
10549         edit box since otherwise the Label would immediately be set (even if
10550         the user did not modify the label). In OnKeyDown set Handled to true
10551         if Return or Escape was pressed. In ColumnHeaderCollection unlink
10552         columns that are to be removed. In ListViewItemCollection unlink items
10553         that are to be removed.
10554
10555 2007-02-24  Jonathan Pobst  <monkey@jpobst.com>
10556
10557         * TextRenderer.cs: If we set a GDI clip region, we need to clear
10558         it when we are done.  [Fixes bug #80949]
10559
10560 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
10561
10562         * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
10563
10564 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10565
10566         * ListView.cs: I forgot to commit the changes for ListView 
10567         in my previous patch.
10568
10569 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
10570
10571         * Clipboard.cs: Partially implement an overload of SetDataObject.
10572         * Form.cs: Implement ShowWithoutActivation.
10573         * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
10574
10575 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10576
10577         This is a first set of changes to make the Virtual mode works,
10578         by avoiding the retrieval of ListViewItem instances until
10579         draw time.
10580
10581         * ListView.cs: Store item position in the ListView instead of the
10582         ListViewItem, this way we don't request the Bounds property of
10583         ListViewItem inside the ListView calculations, as well as cache the item
10584         size in item_size field. Store indexes instead of ListViewItem
10585         instances in the matrix used by icon view. Add a ItemMatrixLocation
10586         struct to hold the row and col info of the matrix info.
10587
10588         * ListViewItem.cs: Don't store the location anymore, and only cache
10589         the rectangles for GetBounds. Use the ListView.GetItemLocation
10590         method to retrieve the actual location.
10591
10592 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
10593
10594         * TextRenderer.cs: Add clipping support, thanks to George.
10595         [Fixes bug #80949]
10596
10597 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
10598
10599         * ListViewItem.cs: Cancel label edit when item is removed from 
10600         ListView.
10601         * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
10602         event before the edit textbox is displayed.  Added CancelEdit method
10603         which is used end to editing while ignoring the value set by the
10604         user. In EndEdit, set focus to ListView to avoid losing focus to
10605         other controls. In ListViewItemCollection.Clear, cancel editing of
10606         any of the items.  In Remove, cancel editing of item being removed.
10607         Avoid udplicate code by modifing RemoveAt to invoke Remove.
10608
10609 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
10610
10611         * FileDialog.cs: Update FSEntry when move is successful. Fixes
10612         bug #80948.  
10613
10614 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
10615
10616         * MainMenu.cs: Change Draw method to take care about MenuOrigin to be 
10617         compatible with non X11 systems. Fixes #80901.
10618
10619 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
10620
10621         * ListView.cs: Added bool argument to UpdateMultiSelection to specify
10622         whether the item should be unselected and reselect. We do no want this
10623         when we're starting to edit the label. Do not fire the 
10624         SelectedIndexChanged event from ListView when its already been fired
10625         by modifying ListViewItem.Selected. Fixes bug #80943.
10626
10627 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
10628
10629         * TextRenderer.cs: Previos commit logic was backwards.
10630
10631 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
10632
10633         * TextRenderer.cs: Don't add padding on MeasureText if we were
10634         sent the NoPadding flag.
10635
10636 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
10637
10638         * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
10639         after DrawButton. To prevent image overlaps button borders SetClip and 
10640         ResetClip added before and after draw image. Fixes #79129.
10641
10642 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
10643
10644         * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify 
10645         window size, it fix problem when you run under win32 that theres
10646         Size diferent than ClientSize. Also fix controls size and positions
10647         to mimic Win32. Fixes #80837.
10648
10649 2007-02-22  Everaldo Canuto  <everaldo@simios.org>
10650
10651         * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on 
10652         menu area to fix some problems for non X11 systems. Fixes #80613.
10653
10654 2007-02-22  Jackson Harper  <jackson@ximian.com>
10655
10656         * TreeNode.cs: When a node is expanded, set its is_expanded flag
10657         even if it doesn't have any children.
10658
10659 2007-02-22  Jackson Harper  <jackson@ximian.com>
10660
10661         * TreeView.cs: Calculate the top node 'on the fly', this
10662         eliminates issues where you need to click on the tree before
10663         scrolling it to get the top node computed correctly.
10664         * TreeNodeCollection.cs: We don't need to mess with the top node
10665         anymore.
10666
10667 2007-02-22  Jackson Harper  <jackson@ximian.com>
10668
10669         * DataGridViewRow.cs: Fix typo so height can actually be set.
10670         Patch by Peter Grimm.
10671
10672 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
10673
10674         * FileDialog.cs: Fixed support for renaming files and directories.
10675         * ListView.cs: Do not lose focus when edit is canceled. Process
10676         Escape as regular key (to prevent closing of dialogs).
10677
10678 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
10679
10680         * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
10681         spaces. Changed spaces to tabs. Removed unnecessary init of bools.
10682
10683 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
10684
10685         * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
10686         did not modify label.
10687         * ListView.cs: Only set LabelEditEventArgs.Label if user actually
10688         modified the text. Reset Label when user presses Escape in edit mode.
10689         Move focus to ListView after having cancelled or finished editing the
10690         label.
10691
10692 2007-02-21  Gert Driesen  <drieseng@users.sourceforge.net>
10693
10694         * ComboBox.cs: Removed unnecessary initializations. Marked items field
10695         private. Clear textbox when Text is set to null and SelectedIndex is
10696         already -1.
10697         * FileDialog.cs: Removed unnecessary initializations. Removed 
10698         workarounds for ComboBox bugs that are now fixed. Modified
10699         DefaultExt, InitialDirectory and Title property to change null to
10700         zero-length string in getters. Avoid directly accessing fields.
10701
10702 2007-02-20  Jackson Harper  <jackson@ximian.com>
10703
10704         * TextControl.cs: Remove RecalAlignments call, that was some
10705         debugging leftovers.
10706         - Don't use the line indent when we shouldn't.
10707         * RichTextBox.cs: Add support for paragraph left indents.
10708
10709 2007-02-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
10710
10711         * Control.cs: Fix BeginInvoke signature for 2.0 profile.
10712         Seems like the class status pages doesn't catch params differences.
10713
10714 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
10715
10716         * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
10717
10718 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
10719
10720         * ComboBox.cs: Setting Text should have no effect if item text of
10721         selected item exactly matches value. First lookup text using
10722         case-sensitive comparison, and fallback to case-insensitive comparison.
10723         FindString(Exact) returns -1 if search string is null. On 2.0 profile, 
10724         allow startIndex to be last index. Changed ArgumentOutOfRangeException
10725         paramname to match MS. Restart from first item if string is not found
10726         after startIndex. Fixed paramname of ArgumentNullException that is
10727         thrown for null value in ObjectCollection.Contains.
10728
10729 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
10730
10731         * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
10732
10733 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10734
10735         * ListControl.cs: In SelectedValue use value.Equals to compare for
10736         equality instead of ==, otherwise it will fail for strings.
10737         Fixes #80794.
10738
10739 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10740         
10741         * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
10742         since the caret won't show up unless ShowSelection is true. 
10743         Fixes #80795.
10744
10745 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10746
10747         * Application.cs: When disabling all forms but the main form, do not
10748           disable any descendants of the main form (such as mdi children or
10749           other parented forms). Fixes #80822 on Windows.
10750         * Form.cs: If we have a parent, set the WS_CHILD style.
10751         * Control.cs: Update the window styles if the control whose parent has
10752           changed is a form (the WS_CHILD style has to be switched).
10753
10754 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
10755
10756         * XplatUIStructs.cs: MsgUIState structure added.
10757
10758 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
10759
10760         * FileDialog.cs: Removed need for separate fileName field. On 2.0
10761         profile, do not check filename(s) for illegal character if filename(s)
10762         were set non-interactively but always check on 1.0 profile. Fixed NRE
10763          in DefaultExt and only strip off first leading dot. Improve exception
10764         message when invalid Filter is set. Do not ignore InitialDirectory if
10765         it does no exist. Store specified Title, and if empty use default
10766         title (depending on type of dialog). Added an internal DialogTitle 
10767         property for retrieving dialog title. Fixed logic of displayed dir to
10768         more closely match MS. Avoid setting ComboBox.Text to a zero-length 
10769         string as its buggy.
10770         * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
10771         FileName is a zero-length string (it can never be null). Override 
10772         DialogTitle property to set default title of dialog box.
10773         * SaveFileDialog.cs: Override DialogTitle property to set default
10774         title of dialog box.
10775
10776 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
10777
10778         * FileDialog.cs: Modify default text of filename and filetype labels
10779         to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
10780         after we've updated the SelectedIndex. Fixes part of bug #80887.
10781         * SaveFileDialog.cs: Set text of filetype label.
10782
10783 2007-02-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10784
10785         * LabelEditEventArgs.cs: New internal SetLabel method, to set the
10786         label field. Needed by latest Jackson's fixes for ListView.
10787
10788 2007-02-16  Andreia Gaita  <avidigal@novell.com>
10789
10790         * PrintPreviewControl/PrintPreviewDialog: Properly dispose of 
10791         print preview images.
10792
10793 2007-02-16  Jackson Harper  <jackson@ximian.com>
10794
10795         * ListView.cs: Make AfterLabelEdit work correctly.
10796         * FileDialog.cs: After changing the name of the folder, we have to
10797         make sure that it is created, or that we pop up an error because
10798         it already exists.
10799
10800 2007-02-16  Jackson Harper  <jackson@ximian.com>
10801
10802         * X11Dnd.cs: Implement aliases on mime handlers, so things like
10803         System.String are mapped to text.
10804         - Handle dataobjects, getting all the possible formats out of them
10805         - We dont need the drag event args before we give feedback. This
10806         allows feedback cursors to be immediate before selections have
10807         been converted.
10808
10809 2007-02-16  Jackson Harper  <jackson@ximian.com>
10810
10811         * TextBoxBase.cs: Modified the method for inserting images to
10812         taking a line and position instead of tag and position.
10813         * RichTextBox.cs: Handle PngBlip data by inserting the png image
10814         into the RTF file.
10815         * TextControl.cs: Allow images to be inserted as the first tag of
10816         a line.
10817         - Fix some off by one issues when we assume the first tag is a
10818         text tag, not an image tag.
10819
10820 2007-02-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10821
10822         * ListView.cs: Set focus to ListView when ItemControl gets a
10823         WM_RBUTTONDOWN message, to mimic .Net behaviour. 
10824         Fixes part of #80467.
10825
10826 2007-02-15  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10827
10828         * DateTimePicker.cs: Call RecreateHandle if the Format changes and
10829           validate Text input (if null or empty string reset Value to default
10830           value). Fixes #80830.
10831
10832 2007-02-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10833
10834         * ListView.cs: Set owner as null for columns and items when
10835         Dispose is invoked. Fixes #80607.
10836
10837 2007-02-14  Jonathan Pobst  <monkey@jpobst.com>
10838
10839         * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
10840         showing DropDowns, don't show a Grip when doing Flow layout.
10841         [This fixes the toolbox in PDN 2.72.]
10842         * ToolStripItem.cs: Add Anchor property and some internal properties to
10843         reduces needed changes to FlowLayout.
10844         * ToolStripOverflow.cs: Remove unused variable.
10845         * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
10846         use it in the layout calculations.
10847
10848 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
10849
10850         * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
10851         reported in #79640.
10852         
10853         * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
10854         size calculation.
10855
10856 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
10857
10858         * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from 
10859         MeasureString format, it can make button very large in some cases, it is
10860         strange but is what win32 do.
10861
10862 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
10863
10864         * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string 
10865         size calculation.
10866
10867         * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
10868         rendering, the value is based on MenuAccessKeysUnderlined.
10869
10870 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
10871
10872         * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
10873         for most themes.
10874         
10875         * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
10876         
10877         * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
10878         and use MenuAccessKeysUnderlined instead.
10879
10880 2007-02-13  Andreia Gaita  <avidigal@novell.com>
10881
10882         * ContainerControl.cs: Focus fix for nunit treeview selection bug.
10883         A selected control would not get a Focus call if:
10884                 - the default active control of the container is the same as
10885                   the one that was selected
10886                 - we are switching from one container to another
10887         Under these conditions, the container being selected already has
10888         an active_control, which is the same as the one being activated, 
10889         so set_ActiveControl would always return and not send the Focus
10890         call. Fix to check if the currently active control of the container
10891         is actually focused.
10892
10893 2007-02-13  Jonathan Pobst  <monkey@jpobst.com>
10894
10895         * StatusStrip.cs: Implement the spring layout.
10896         * ToolStripControlHost.cs: Make sure the hosted control's visibility
10897         always matches the host.
10898         * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
10899         and TextAfterImage.
10900
10901 2007-02-13  Andreia Gaita  <avidigal@novell.com>
10902
10903         * Control.cs: Code reorganization only.
10904           - Reorganize the WndProc cases so that each case has it's own handling method, 
10905           to help with the no-line-numbering stack traces.
10906           - Formatting changes (it's vstudio's fault, really :p)
10907
10908 2007-02-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10909
10910         * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
10911           Thread.CurrentUICulture to match DateTimePicker's (and MS)
10912           behaviour.
10913
10914 2007-02-12  Jackson Harper  <jackson@ximian.com>
10915
10916         * RichTextBox.cs:
10917         * TextBox.cs: By default we have a non multiline document
10918         - use the multiline property instead of the internal variable
10919         * TextBoxBase.cs: Treat multiline and non multiline the same in
10920         most places.
10921         - Use the documents multiline flag instead of tracking it ourself
10922         * TextControl.cs: Attempt at getting multiline to match MS
10923         behavior.  Lines now track an offset, which is either their X or Y
10924         offset depending on whether or not we are in multiline mode.
10925         - Update all the methods to understand that lines have an X value.
10926         - Fix crash in Undo::Duplicate when empty lines are deleted.
10927
10928 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
10929
10930         * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and 
10931         code moved to properties PreferredHeight and PreferredWidth. It solve the
10932         all problems when preferred sizes must be recalculated. Fixes #80801.
10933
10934 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
10935
10936         * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
10937         font height when compatible_text_rendering is false. Partially fix #80801.
10938
10939 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
10940
10941         * Form.cs: Fixed typo in exception message. Fixes bug #80779.
10942
10943 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
10944
10945         * Form.cs: Improved exception messages in ShowDialog.
10946
10947 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
10948
10949         * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
10950         PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
10951         if not set. Fixes bug #80764. Avoid accessing current_settings field
10952         directly.
10953
10954 2007-02-08  Everaldo Canuto  <everaldo@simios.org>
10955
10956         * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
10957         false.
10958
10959         * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
10960         public in 2.0 and for easy maintenance and dont break compatibility it is 
10961         internal in 1.1.
10962         
10963 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
10964
10965         * ToolStripItem.cs: Implement using images from ImageList.
10966
10967 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10968
10969         * DateTimePicker.cs: Change default date-formatting culture from
10970           CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
10971           seems to be the way MS does it.
10972
10973 2007-02-08  Andreia Gaita  <avidigal@novell.com>
10974
10975         * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image 
10976         (the 6 was cut off on the right side)
10977
10978 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
10979
10980         * Form.cs: Tell MenuStrips to close when the form is clicked.
10981         * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs, 
10982         ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
10983         ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
10984         ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add 
10985         support for Overflow, where items that do not fit are automatically
10986         reparented to a drop down menu.
10987         * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
10988         Also: fixes bug #80747.
10989
10990 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10991
10992         * ComboBox.cs: Remove warning (unused code).
10993         * ScrollableControl.cs: Remove warning for 1.1 profile.
10994
10995 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10996
10997         * Form.cs: Remove a warning.
10998
10999 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11000
11001         * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
11002           'g' specifier, not documented anywhere, but seems to always show up
11003           as a single space (might have something to do with the DateTime 'g'
11004           specifier, which is the era format, but since DateTimePicker can't
11005           go earlier than 1753 it wouldn't matter) . Fixed quote handling,
11006           won't crash if the format has an unmatched quote. Now shows
11007           single-character formats correctly. Fixes #80744.
11008
11009 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
11010
11011         * StatusStrip.cs: Stretch property needs to call base.Stretch,
11012         not this.Stretch to fix stack overflow. [Fixes bug #80760]
11013
11014 2007-02-07  Chris Toshok  <toshok@ximian.com>
11015
11016         * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
11017         background color.  it overwrites the background image we've
11018         already painted.  Fixes #80599.
11019
11020 2007-02-07  Chris Toshok  <toshok@ximian.com>
11021
11022         * DataGrid.cs: return immediately from Edit() when there are no
11023         columns.  Fixes #80662.
11024
11025 2007-02-07  Chris Toshok  <toshok@ximian.com>
11026
11027         * MessageBox.cs: fix #80625.  don't always show the Help button in
11028         2.0.  use the displayHelpButton parameter to determine if we
11029         should show it. Also, make the internal show_help field private.
11030
11031 2007-02-07  Chris Toshok  <toshok@ximian.com>
11032
11033         * Control.cs (SetVisibleCore): check in the proposed patch for
11034         80604, and set is_visible before calling CreateControl.
11035
11036 2007-02-07  Jonathan Pobst  <monkey@jpobst.com>
11037
11038         * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to 
11039         MonoInternalNote.  This is added automagically by VS2005, so let's not crash
11040         on it.
11041
11042 2007-02-06  Everaldo Canuto  <everaldo@simios.org>
11043
11044         * MenuAPI.cs: hotkey_active internal field added, it is required because
11045         we need to know when hotkeys must be draw, before this change a keystate
11046         Navigating was used but we can have menu in navigating state without
11047         hotkeys. Fixes #80694.
11048         
11049         * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
11050
11051 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11052
11053         * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
11054           corresponding events and methods to be internal for 1.1 profile and
11055           public for 2.0 profile (required by SizeGrip).
11056         * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
11057           implicit control list). Don't set the size nor the location of the
11058           SizeGrip anymore as it's not needed.
11059         * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
11060           draw directly on the captured control (fixes #80656). Removed
11061           ShowGrip (it wasn't used anywhere), redraw (always true), added
11062           GetDefaultSize and GetDefaultRectangle to calculate defaults.
11063         * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
11064           be called from SizeGrip.
11065
11066 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11067
11068         * Timer.cs: Throw ArgumentException if Interval <= 0.
11069
11070 2007-02-05  Jackson Harper  <jackson@ximian.com>
11071
11072         * TreeView.cs: We need to check scrollbar visibility when window
11073         visibility is updated, because non visible trees don't ever add
11074         scrollbars.
11075         * Cursor.cs: We want the override cursor to be reset to NULL when
11076         we set current cursor to the default cursor.
11077
11078 2007-02-05  Jackson Harper  <jackson@ximian.com>
11079
11080         * TextControl.cs: Don't have crlfs when we are non multiline.
11081         - Consolidate the line position.
11082
11083 2007-02-05  Jackson Harper  <jackson@ximian.com>
11084
11085         * X11Keyboard.cs: BACK+CTRL gets a special char code.
11086
11087 2007-02-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11088
11089         * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
11090           handling LeaveNotify->NotifyUngrab in order to send
11091           WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
11092           after calling XUngrabPointer, so we call WindowUngrabbed directly
11093           from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
11094         * Control.cs: Handle WM_CAPTURECHANGED in order to raise
11095           MouseCaptureChanged correctly. Also create handles if changing
11096           Capture (matches MS behaviour).
11097
11098 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11099
11100         * SizeGrip.cs: Make the last change 2.0 only.
11101
11102 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11103
11104         * SizeGrip.cs: If resizing and the capture is lost, revert any size
11105           changes to initial size (fixes #80597).
11106
11107 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11108
11109         * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
11110
11111 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11112
11113         * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
11114           background) and only allow dragging if enabled. This way the
11115           sizegrip can be used to fill the open square that otherwise would
11116           have been shown in the bottom right corner of ScrollableControl
11117           when ScrollableControl is not suppose to support sizing.
11118         * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
11119           sizegrip is shown and enabled, and hook up with necessary events.
11120
11121 2007-02-01  Chris Toshok  <toshok@ximian.com>
11122
11123         * DataGridTextBoxColumn.cs: clean up the
11124         GetFormattedString/GetColumnValueAtRow combination of functions.
11125         Also fix UpdateUI, and the initial state of
11126         IsInEditOrNavigateMode.
11127
11128         * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
11129         aren't supposed to scroll the textbox here, we're supposed to
11130         scroll the datagrid.
11131
11132 2007-02-01  Chris Toshok  <toshok@ximian.com>
11133
11134         * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
11135         setting the position.
11136
11137 2007-02-01  Chris Toshok  <toshok@ximian.com>
11138
11139         * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
11140         here, since the most recent focus fixes keep us from generating
11141         the Leave event when our textbox gets focus.
11142         (Edit): we should be passing null for the column style's
11143         instantText parameter.
11144         
11145 2007-02-01  Jonathan Pobst  <monkey@jpobst.com>
11146
11147         * ToolStripDropDownItem.cs: Make sure DropDownOpening event is 
11148         raised.  Fixes menu text/icons not showing up in PDN.
11149
11150 2007-02-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11151
11152         * Control.cs: Remove code in constructor that makes every
11153         control with WS_CHILD set have initial location -1, -1.
11154
11155 2007-01-31  Jackson Harper  <jackson@ximian.com>
11156
11157         * X11Dnd.cs: Take the keyboard on init to reduce coupling with
11158         XplatUIX11.
11159         * XplatUIX11.cs: Give teh keyboard to teh dnd.
11160
11161 2007-01-31  Jackson Harper  <jackson@ximian.com>
11162
11163         * X11Dnd.cs: Use IDataObject instead of the DataObject class.
11164         - Remove some debug code.
11165
11166 2007-01-31  Jackson Harper  <jackson@ximian.com>
11167
11168         * XplatUIX11.cs: If you set the override cursor during a grab, it
11169         should actually override the grab cursor.  This comes into play
11170         when you are setting custom cursors in a DND feedback method.
11171
11172 2007-01-31  Jackson Harper  <jackson@ximian.com>
11173
11174         * X11Dnd.cs: Add support for handling the QueryContinue and
11175         GiveFeedback events.
11176         - Cancel drag and drop actions when the escape key is clicked.
11177         * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
11178         can handle the ESCAPE key.
11179         - Allow dnd to swallow BUTTONUP messages if it needs to.  This is
11180         done when dnd events are continued after the button is released.
11181         - Add a new helper method so that dnd can translate key events.
11182
11183 2007-01-31  Alexander Olk  <alex.olk@googlemail.com>
11184
11185         * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
11186         make it more obvious what is happening.
11187
11188 2007-01-30  Jackson Harper  <jackson@ximian.com>
11189
11190         * XplatUIX11.cs: Don't break when handling button release in drag
11191         and drop operations. We need that BUTTONUP message to get through
11192         so capture is released.
11193         * X11Dnd.cs: We don't need to manually grab the pointer anymore,
11194         this is handled automatically when the mouse is down.
11195
11196 2007-01-30  Jackson Harper  <jackson@ximian.com>
11197
11198         * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
11199         is closed, so we need to make sure that we aren't changing the
11200         dialog result when the OK (Open or Save) button has been clicked
11201         and we are closing the window ourselves.  Note we don't need to
11202         worry about the cache being written in this case, because it was
11203         already done in the previous FilOk call.
11204
11205 2007-01-30  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11206         
11207         * DateTimePicker.cs: Remove a warning.
11208         * ComboBox.cs: Remove a couple of warnings.
11209
11210 2007-01-29  Chris Toshok  <toshok@ximian.com>
11211
11212         * XplatUIX11.cs: don't crash, and remove the icon if the user has
11213         set one, if SetIcon is passed a null icon.
11214
11215 2007-01-29  Andreia Gaita  <avidigal@novell.com>
11216
11217         * TextBox.cs: Redraw when the password characters changes
11218         * TextControl.cs: Check if textbox has a password char and draw 
11219         a line of password chars instead of the text in the line. LineTag gets 
11220         an extra Draw() method which allows document.Draw to override the text 
11221         that will be drawn. Removes 1024 char limitation on length of passworded 
11222         lines.
11223
11224 2007-01-29  Jackson Harper  <jackson@ximian.com>
11225
11226         * TextBoxBase.cs: Deleting sections of text is undoable.  Deleting
11227         single chars is not.
11228
11229 2007-01-28  Jonathan Pobst  <monkey@jpobst.com>
11230
11231         * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
11232         one pixel.  Fix a StackOverflowException caused by an overload wrongly
11233         calling itself.
11234
11235 2007-01-26  Everaldo Canuto  <everaldo@simios.org>
11236
11237         * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
11238         also remove ProcessArrowKey and put the code inside ProcessKeys.
11239
11240 2007-01-26  Jonathan Pobst  <monkey@jpobst.com>
11241
11242         * PaddingConverter.cs: Added.
11243
11244 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11245         
11246         * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
11247         ShowPanels is false (fixes #80600). Only draw up to 127 characters
11248         of text (fixes #80601). For panels clip the text to draw to the
11249         panel (fixes #80603).
11250
11251 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11252
11253         * ComboBox.cs: Fixed implementation of ResetText.
11254
11255 2007-01-25  Jackson Harper  <jackson@ximian.com>
11256
11257         * TextControl.cs: For the last char of a line we need to use the
11258         line size, not that chars width, since it won't actually be
11259         computed since the right side of a char is based on the start of
11260         the left side of the next char, and the next char does not exist.
11261
11262 2007-01-25  Chris Toshok  <toshok@ximian.com>
11263
11264         * Splitter.cs: fix the new unit tests, and reindent some switch
11265         statements.
11266
11267 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11268
11269         * ComboBox.cs: Implemented 2.0 methods and events.
11270         * TextBoxBase.cs: Added OnTextUpdate, so that
11271         ComboBox.ComboTextBox can inform ComboBox of it.
11272
11273 2007-01-25  Jackson Harper  <jackson@ximian.com>
11274
11275         * TextControl.cs: Respect ShowSelection when deciding whether or
11276         not to display the caret, this allows comboboxes to have carets
11277         when the combotextbox does not have focus.
11278
11279 2007-01-25  Jackson Harper  <jackson@ximian.com>
11280
11281         * TextControl.cs: Add a Suspend/Resume for updating, basically the
11282         same as the Suspend/Resume for recalc, except this will do actual
11283         Invalidates.
11284         - New Undo manager, works much like the MS version.
11285         - Implemented Redo
11286         * TextBoxBase.cs: The Cut operation is undoable.
11287
11288 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11289         
11290         * TextBoxBase.cs: Don't antialias text. Makes it look way better
11291         on Windows (no difference on Linux).    
11292
11293 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11294
11295         * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
11296         we don't want to activate any windows. Fixes #79433.
11297
11298 2007-01-25  Jonathan Pobst  <monkey@jpobst.com>
11299
11300         - ButtonBase.cs: Fix capitalization of parameter: disposing.
11301         [Fixes bug #80609]
11302
11303 2007-01-25  Alexander Olk  <alex.olk@googlemail.com>
11304
11305         * FileDialog.cs:
11306         - Move to using System.ComponentModel.EventHandlerList
11307         - Replace Refresh with Invalidate
11308         - Clear the mime filecache on closing
11309         - Some other memory reducing work. After beeing closed FD now uses
11310           only about 300 KB for the fdo mime stuff plus the memory of the
11311           cached icons.
11312         * Mime.cs: Changed coding style and removed unnecessary commented
11313         code. Some more memory memory reducing work.
11314
11315 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11316
11317         * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
11318         a few other missing 2.0 properties.
11319         * Theme.cs: Added DrawFlatStyleComboBox.
11320         * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
11321
11322 2007-01-24  Chris Toshok  <toshok@ximian.com>
11323
11324         * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
11325         wake_waiting flag, not just when there's data to be read.  if we
11326         don't, then future wakeup's won't reach us and we'll be doomed to
11327         wait for the entire 1 second timeout forever (unless there are X
11328         events to be had).
11329
11330 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
11331
11332         * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
11333         until you pass Items.Count, not Items.Count - 1 like 1.1.
11334
11335 2007-01-24  Gert Driesen  <drieseng@users.sourceforge.net>
11336
11337         * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
11338
11339 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
11340
11341         * ToolStripContainer.cs: The recent Dock fix exposed that I was
11342         adding the panels in the wrong order.
11343
11344 2007-01-24  Jackson Harper  <jackson@ximian.com>
11345
11346         * TextBoxBase.cs: When we move the caret we also need to move the
11347         selection, this fixes some random crashing after doing select
11348         text, unselect, delete a char, paste.
11349
11350 2007-01-24  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11351
11352         * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
11353
11354 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
11355
11356         * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
11357         OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553. 
11358         * ToolBar.cs: Force redraw in BackgroundImageChanged.
11359
11360 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
11361
11362         * ToolBar.cs:
11363         - Implement support for vertical toolbars. Fixes #80539;
11364         - Call LayoutToolBar when resize, it fix some other problems in layout.
11365         - Rename requested_height to requested_size, as we can have width on it
11366         when toolbar is vertical.
11367         - Create a private property "Vertical" that uses Dock to verify when 
11368         toolbar is vertical or not.
11369         - Set ControlStyles when change Dock property.
11370         - Refactory in LayoutToolBar to have better variables names and to support
11371         vertical toolbars.
11372         - Fixes default value for ButtonSize when button count is equal zero, size
11373         must be (39, 36) test case writed.
11374
11375 2007-01-23  Chris Toshok  <toshok@ximian.com>
11376
11377         * Control.cs: fix the checks so that they work correctly for mdi
11378         parents/children.
11379
11380 2007-01-23  Chris Toshok  <toshok@ximian.com>
11381
11382         * Control.cs: ControlCollection seems to have super-secret
11383         abstraction breaking knowledge of Mdi containers.  allow MdiClient
11384         to add toplevel controls.
11385
11386 2007-01-23  Chris Toshok  <toshok@ximian.com>
11387
11388         * Control.cs: throw an ArgumentException if a toplevel control is
11389         added to our control collection from ControlCollection.Add, as
11390         well as from ControlCollection.IList.Add.  This fixes the
11391         ControlSetTopLevelTest.TestTopLevelAdd unit test.
11392
11393         Also, in ControlCollection.IList.Add, don't through an
11394         ArgumentNullException, throw an ArgumentException, when value ==
11395         null.  This matches MS.
11396
11397 2007-01-23  Chris Toshok  <toshok@ximian.com>
11398
11399         * BindingSource.cs: initial, incomplete, implementation of
11400         BindingSource.
11401
11402 2007-01-23  Jackson Harper  <jackson@ximian.com>
11403
11404         * TextControl.cs:
11405         * TextBoxBase.cs: Checking in some pieces of the undo stuff so
11406         that I can fix a broken unit test (TextBoxTest::ClearUndo)
11407         
11408 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
11409
11410         * ToolBar.cs: Add status fields to ToolBarButtonInfo.
11411
11412 2007-01-23  Andreia Gaita  <avidigal@novell.com>
11413
11414         * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
11415         * TreeNodeCollection.cs: New Add() methods, ContainsKey and
11416         IndexOfKey() for 2.0
11417
11418 2007-01-23  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11419
11420         * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
11421         to prevent it from changing z-order.
11422         * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
11423         leave UI updates in MdiWindowManager.
11424         * InternalWindowManager.cs: Check for 0 sized nc areas and make them
11425         1 sized (NC handling goes weird on Linux otherwise).
11426         * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
11427         necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
11428         remove a few NCRequestRecalcs. Changed calculations in IconicBounds
11429         to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
11430         and SetWindowState(s) to allow for changing the size of an activated child
11431         before activating it (reduces a lot of flicker).
11432
11433 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
11434
11435         * Form.cs: Changing FormBorderStyle has different semantics based
11436         on whether the Form is visible or not.  If not visible, don't change
11437         the Size.  But InvalidateNC needs to be called to force the window
11438         to pick up the changes and redraw itself.  [Fixes bug #80574]
11439
11440 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
11441
11442         [Moma work]
11443         * ContainerControl.cs: ProcessCmdKey.
11444         * ErrorProvider.cs: new constructor.
11445         * Form.cs: fix AutoValidateEvent compiler warning.
11446         * Label.cs: fix OnAutoSizeChanged compiler warning.
11447         * MenuStrip.cs: fix CanOverflow compiler warning.
11448         * TabControl.cs: SelectTab, OnSelected methods, Selected event.
11449         * TextBox.cs: Dispose.
11450         * ToolStrip.cs: CanOverflow, re-enable double buffering.
11451         * ToolStripControlHost.cs: fix CausesValidation compiler warning.
11452         * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
11453         * ToolStripItem.cs: Overflow, RightToLeft properties.
11454
11455 2007-01-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11456
11457         * Form.cs: Move the layout of the main form to MdiWindowManager.
11458         * MdiWindowManager.cs: If WindowState changes from or to Maximized,
11459         do a layout of the main window to update MdiClient's client area to
11460         the right area. Fixes #80533. Remove the calculation of nc size, 
11461         it was just wrong and the correct one is the same as for 
11462         InternalWindowManager. 
11463
11464 2007-01-20  Jonathan Pobst  <monkey@jpobst.com>
11465
11466         * Control.cs: Setting Anchor or Dock needs to reset the other
11467         to its default.  [Fixes bug #80556]
11468
11469 2007-01-20  Chris Toshok  <toshok@ximian.com>
11470
11471         * CheckedListBox.cs: class status changes.
11472
11473         * ScrollableControl.cs: same.
11474
11475         * RichTextBox.cs: same.
11476
11477         * ContainerControl.cs: same.
11478
11479         * ListView.cs: same.
11480
11481         * NotifyIcon.cs: same.
11482
11483         * MenuStrip.cs: same.
11484
11485         * RadioButton.cs: same.
11486
11487         * CheckBox.cs: same.
11488
11489         * PrintPreviewDialog.cs: same.
11490
11491         * Form.cs: same.
11492
11493 2007-01-19  Jonathan Pobst  <monkey@jpobst.com>
11494
11495         * TreeNode.cs: Apply Alan's patch for Name property.
11496
11497 2007-01-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11498         
11499         * Form.cs: Implemented SizeGripStyle.
11500         * SizeGrip.cs: Check for minimum and maximum size for the
11501         control being resized and only resize if size has actually
11502         changed.
11503
11504 2007-01-19  Chris Toshok  <toshok@ximian.com>
11505
11506         * DataGridColumnStyle.cs: stop setting _readonly in the
11507         PropertyDescriptor setter.  fixes a unit test failure.
11508
11509         also, rename ParentReadOnly to TableStyleReadOnly, and have it
11510         just consult our table style (if we have one).  We don't need to
11511         consult the datagrid readonly attribute because that's passed in
11512         as the _ro arg to Edit.  this simplifies things a little.
11513         
11514         * DataGrid.cs: use CurrentColumn instead of
11515         current_cell.ColumnNumber just to simplify some of the code.
11516
11517         switch the order of some things in the CurrentCell setter to keep
11518         the previous cell from getting a textbox again -
11519         EnsureCellVisibility causes scrolling to happen, which calls Edit.
11520         So we need to set the new cell before calling it.
11521         
11522         call Edit in OnEnter, as does Microsoft.
11523         
11524         also, make sure the current table style isn't the one we create
11525         initially when checking to see if it's different than the one
11526         we're setting it to in BindColumns (this fixes #80421).
11527
11528         * GridTableStylesCollection.cs: table styles can have "" for a
11529         mapping name.  part of the fix for #80421.
11530
11531         * DataGridTextBoxColumn.cs: simplify the readonly calculation in
11532         Edit significantly.
11533
11534 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
11535
11536         * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
11537         and less GDI object leaky-er.
11538
11539 2007-01-18  Andreia Gaita  <avidigal@novell.com>
11540
11541         * LinkLabel.cs: Add opaque control style
11542
11543 2007-01-18  Jackson Harper  <jackson@ximian.com>
11544
11545         * TextControl.cs: Calculate width properly.
11546         - Don't store the tag's X offset, this can be figured out very
11547         easily.
11548         - When getting the caret tag make sure to get the last empty tag.
11549
11550 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
11551
11552         * Form.cs: Recalculate our size after setting a new FormBorderStyle.
11553         [Fixes bug #79959]
11554
11555         * Control.cs: Color.Empty shouldn't count for previous transparent
11556         redraw changes.
11557
11558 2007-01-18  Jackson Harper  <jackson@ximian.com>
11559
11560         * TextBox.cs:
11561         * RichTextBox.cs:
11562         * TextControl.cs: Starting to merge in some pieces of my older
11563         undo work.  Basically just some slight cleanup of the undo API.
11564
11565 2007-01-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11566
11567         * TrackBar.cs: Fix signature of RightToLeftLayout.
11568         * StatusBar.cs: Implemented missing 2.0 methods and attributes.
11569         * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
11570         * Application.cs: Implemented UseWaitCursor.
11571
11572 2007-01-18  Jackson Harper  <jackson@ximian.com>
11573
11574         * TextControl.cs: We can't skip tags if any part of the tag is
11575         visible.
11576
11577 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
11578
11579         * ContainerControl.cs: Override OnLayout.
11580
11581 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
11582
11583         * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
11584
11585         * ContextMenuStrip.cs: Make sure context menu is shown on top of 
11586         everything else.
11587
11588 2007-01-18  Chris Toshok  <toshok@ximian.com>
11589
11590         * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
11591         (leftover from the container_selected days, I'd wager).  fixes bug
11592         #80546.
11593
11594 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
11595
11596         * Control.cs: Apply patch from George to fix the new testcase on
11597         bug #80451.  We can't just check for Color.Transparent, we need 
11598         to check if the back color's alpha channel is < 255.
11599
11600 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
11601
11602         * Form.cs: Move setting show_icon = true to before the constructor
11603         so that the base constructor has that information when it calculates
11604         the form's size.  Was causing forms to be (6, 6) bigger than they
11605         were supposed to be.  Thanks for catching this Rolf!
11606
11607 2007-01-18  Jackson Harper  <jackson@ximian.com>
11608
11609         * TextControl.cs: When replacing a selection we need to invalidate
11610         from the initial selection start, because selection start is moved
11611         to the end of the replacement.
11612
11613 2007-01-18  Andreia Gaita  <avidigal@novell.com>
11614
11615         * LinkLabel.cs: Missing ControlStyles. Fixes #80482
11616
11617 2007-01-18  Chris Toshok  <toshok@ximian.com>
11618
11619         * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
11620         I just added.
11621
11622 2007-01-17  Everaldo Canuto  <everaldo@simios.org>
11623
11624         * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every 
11625         layout methods and properties from ToolBarButton must be available
11626         into ToolBarButtonInfo.
11627
11628 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
11629
11630         * Control.cs: If the control has a transparent background, we
11631         need to refresh it when it moves and when it's parent's background
11632         image changes.  [Fixes bug #80451]
11633
11634 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
11635
11636         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code!  Doh!
11637
11638 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
11639
11640         * XplatUIWin32.cs: Implement proper double buffering for Windows.
11641         [Fixes bug #80447, and probably speeds up things as well]
11642
11643 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11644
11645         * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
11646         * XplatUIWin32.cs: We need to recalculate NC size after changing 
11647         window style to toolwindow (otherwise the client rectangle will be
11648         3 pixels to small for some reason).
11649         * MdiWindowManager.cs: Revert NC size calculations to match how
11650         they are calculated only based on window styles (to match
11651         Win32AdjustWindowRectEx, since otherwise when setting size or 
11652         location, Control will call Win32AdjustWindowRectEx to update client 
11653         size, which would provoke a paint, then we'd get a NCCALCSIZE and 
11654         calculate a different value of client size causing another paint 
11655         (and flickering))
11656         * InternalWindowManager.cs: When moving or resizing a window only
11657         update size or location if they actually changed.
11658         * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
11659         (seems to match Windows behaviour better). Cleaned up 
11660         ManagedWindowDecorations to draw what's needed and nothing else
11661         (was drawing borders and lines where they shouldn't be)
11662         * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
11663         (style = 0xFFFF) and takes into account caption height when 
11664         calculating window rectangle.   
11665
11666 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
11667
11668         * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button 
11669         can be added to toolbar multiple times, we need to maintain a list of 
11670         button information for each positions.
11671
11672 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
11673
11674         * ToolBar.cs: Some small stetic changes.
11675
11676 2007-01-16  Jackson Harper  <jackson@ximian.com>
11677
11678         * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
11679         that allow us to have nested recalc = false blocks.
11680         - Add paste support for images in the RichTextBox
11681         * RichTextBox.cs: flush the text after the color is changed, so
11682         the change takes effect.
11683         - Use SuspendRecalc
11684         - Some extra debugging info
11685         * TextControl.cs: Tags no longer track their length, it is just
11686         computed from the next tags length, this makes things a little
11687         simpler and reduces places that we have to track length changes.
11688         - Refactored the linetag class a little so we could make it
11689         a base class for different kinds of tags
11690         - Created a image tag, a tag that can have a single image inserted
11691         into it
11692         - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
11693         that we can call suspend multiple times.
11694         - Add some debugging methods
11695
11696 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11697
11698         * MdiClient.cs: Add ActivatePreviousChild for 
11699         mdi child window navigation.
11700         * Form.cs: Use MdiClient.ActivateNextChild/
11701         ActivatePreviousChild instead of Form.SelectNextControl
11702         to select the next/previous child since 
11703         SelectNextControl doesn't do it in the same order
11704         as mdi children should do it.
11705
11706 2007-01-16  Chris Toshok  <toshok@ximian.com>
11707
11708         * Control.cs: remove container_selected field.
11709
11710 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11711
11712         * MdiClient.cs: Update main form's ActiveChild when
11713         updating keyboard focus for the mdi child.
11714
11715 2007-01-16  Jonathan Pobst  <jpobst@novell.com>
11716
11717         * Control.cs: PreferredSize fix.
11718
11719         * Form.cs: Add several 2.0 events, properties, and methods.
11720
11721 2007-01-16  Gert Driesen  <drieseng@users.sourceforge.net>
11722
11723         * Form.cs: Provide meaningful message when MdiParent is assigned a
11724         Form that is not an MdiContainer.
11725
11726 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11727
11728         * MdiClient.cs: Update main form's ActiveChild when
11729         activating a mdi child.
11730
11731 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11732
11733         * MdiWindowManager.cs: Fix NRE when merging menus and main form
11734         doesn't have a menu.
11735
11736         * Form.cs: Request NCRecalc after creating a mdi child window.
11737         Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab, 
11738         Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
11739         
11740         * MdiClient.cs: Add new method SendFocusToActiveChild that either
11741         sends keyboard focus to the active child, or to the MdiClient
11742         if there are no child forms.
11743         
11744 2007-01-15  Chris Toshok  <toshok@ximian.com>
11745
11746         * ListView.cs: drop the *Internal overrides, just do our work in
11747         ItemControl's WndProc instead.
11748
11749         * UpDownBase.cs: a few large changes.  Fix up the Selectable state
11750         of the various controls, and forward the events properly (in the
11751         same manner as MS) from the textbox to the UpDown.  Also the
11752         ActiveControl of the UpDownBase gets set properly now.  Finally,
11753         we don't call UpdateEditText from the ctor.  Fixes bug #79957.
11754
11755         * NumericUpDown.cs: set Text in the ctor.
11756
11757         * DomainUpDown.cs: call UpdateEditText in the ctor.
11758         
11759         * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
11760         so even a Selectable = false textbox can be focused if you click
11761         in it.  Go figure.
11762
11763         * Control.cs: remove On{Got,Lost}FocusInternal.  Subclasses can
11764         just add their handling in their respective WndProc's.  Also add
11765         an explicit FocusInternal method that doesn't consult CanFocus
11766         before calling Select(this).
11767
11768         * TextBoxBase.cs: deal with removal of the FocusInternal calls -
11769         do our work in WndProc instead.
11770
11771         * TabControl.cs: same.
11772
11773         * ComboBox.cs: same.
11774
11775 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
11776
11777         * Menu.cs: implement MergeItems and Replace for MenuMerge method.
11778         Fixes #80006.
11779
11780 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11781
11782         * ListViewItem.cs:
11783         * ThemeWin32Classic.cs: Don't draw the item text outside
11784         item bounds in Details view, as well as use trimming.
11785         Fixes bug #80376.
11786
11787 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
11788
11789         * Form.cs: Implement Form.ShowIcon.
11790         
11791         * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
11792         null, which when combined with the DlgModalFrame window style removes
11793         the icon from the title bar.
11794
11795 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
11796
11797         * Control.cs: Call OnMouseClick after OnClick. (2.0)
11798
11799 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
11800
11801         * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
11802         menu when mdi child windows theres a menu, uses insert to get icon
11803         at first position. Partially fix #80006.
11804
11805 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
11806
11807         * Clipboard.cs: Implement 2.0 methods.
11808
11809 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
11810
11811         * Menu.cs: Implement Insert method of MenuItemCollection class
11812         to fix MenuMerge.
11813
11814 2007-01-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11815
11816         * ListView.cs: Implement 2.0 FindItemWithText method.
11817
11818 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
11819
11820         * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
11821         to calculate menu bar size. Fixes #80290.
11822
11823 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
11824
11825         * ThemeWin32Classic.cs: Fix position of menuitem check mark.
11826
11827 2007-01-11  Chris Toshok  <toshok@ximian.com>
11828
11829         * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
11830         initial form.
11831
11832 2007-01-11  Chris Toshok  <toshok@ximian.com>
11833
11834         * LinkLabel.cs: make sure to call base.Select in our Select method
11835         if it turns out we're going to be selected (i.e. if we have a link
11836         that is going to receive focus).  That way our container's
11837         ActiveControl is updated properly.
11838
11839 2007-01-11  Chris Toshok  <toshok@ximian.com>
11840
11841         * LinkLabel.cs: turns out that LinkLabels are only Selectable if
11842         they have 1 or more links.  this fixes the crash gert reported.
11843
11844 2007-01-11  Andreia Gaita  <avidigal@novell.com>
11845
11846         * ContainerControl.cs: Remove ContainerSelected flag, not needed
11847         anymore.
11848
11849         * Control.cs (Controls.Add): Check if control to be added to the collection
11850         is a top level control, and throw an ArgumentException if it is.
11851         Remove ContainerSelectedFlag, not needed anymore.
11852
11853         * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
11854         top most control doesn't activate the form. This fixes a problem in the
11855         MessageBox, where the default button wouldn't get focus because the form
11856         was activated before being Loaded - when the Owner is set, SetTopMost is
11857         called, and it would activate it.
11858
11859 2007-01-11  Jonathan Pobst  <jpobst@novell.com>
11860
11861         * Button.cs: When clicked and setting the parent form's DialogResult,
11862         use FindForm instead of Parent, since parent could be a container
11863         control and not the Form.  Fixes bug #80495.
11864
11865 2007-01-10  Chris Toshok  <toshok@ximian.com>
11866
11867         * Form.cs: move the call to SendControlFocus into the same
11868         is_loaded check.
11869
11870 2007-01-10  Chris Toshok  <toshok@ximian.com>
11871
11872         * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
11873         It breaks in the face of the new ActiveControl stuff, and should
11874         be unnecessary.
11875
11876         * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
11877         activecontrol's focus if it's not already set, after we set
11878         ActiveControl, but before we call OnActivated.  Re-fixes #79667
11879         after the previous focus/active control fixes regressed it.
11880
11881         * Control.cs: reindent some code.
11882         
11883 2007-01-10  Chris Toshok  <toshok@ximian.com>
11884
11885         * Splitter.cs: clearing some outstanding changes from my tree.
11886         Replace all accesses (not writes) to the internal dock_style field
11887         with the Dock property.
11888
11889 2007-01-10  Chris Toshok  <toshok@ximian.com>
11890
11891         * Control.cs: make FireEnter, FireLeave, FireValidating, and
11892         FireValidated virtual.
11893
11894         * Form.cs: override and don't chain up calls to FireEnter and
11895         FireLeave.
11896
11897 2007-01-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11898
11899         * ListView.cs: Add more text padding space when using
11900         auto resize for columns (the previous value didn't work fine).
11901
11902         * ThemeWin32Classic.cs: Update text position inside columns,
11903         to match the appeareance of .Net.
11904
11905         * ColumnHeader.cs: When using auto resize, only the Width should
11906         depend on the sub items, not the Height. Also, set width after
11907         auto resizing (the value of Width should never remain as -1 or -2).
11908
11909 2007-01-10  Chris Toshok  <toshok@ximian.com>
11910
11911         * Application.cs: fix compilation errors when debug is enabled.
11912
11913 2007-01-10  Chris Toshok  <toshok@ximian.com>
11914
11915         * ContainerControl.cs (set_ActiveControl): rework this a bit (and
11916         add some nice ascii art pictures and explanation of the process).
11917         (GetMostDeeplyNestedActiveControl): new utility function we need
11918         because our ActiveControl can refer to a child container with its
11919         own ActiveControl.
11920
11921         * Form.cs (OnActivated): remove the call to SelectActiveControl
11922         from here, since you can override this method and not chain up,
11923         and winforms still sets the active control.
11924         (OnCreateControl): also remove the unnecessary SelectActiveControl
11925         call from here.
11926         (WndProc): it's actually called from the WM_ACTIVATE block, just
11927         before calling OnActivated.
11928
11929         * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
11930         inside the else.  the ActiveControl setter will end up setting
11931         focus on @control.  This keeps us from setting it again (and
11932         generating an extra LostFocus/GotFocus pair).
11933         (Select (bool, bool)): reindent.
11934
11935 2007-01-10  Jonathan Pobst  <jpobst@novell.com>
11936
11937         * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
11938         StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
11939         ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
11940         ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
11941         ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
11942         ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
11943         ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
11944         ToolStripTextBox.cs: Another wave of corcompare work.
11945
11946 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11947
11948         * ColumnHeader.cs: Implement 2.0 AutoResize method using
11949         the Width property.
11950
11951         * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
11952         methods by callling Column.AutoResize method on columns.
11953
11954 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
11955
11956         * Control.cs: Provide proper implementations of PreferredSize
11957         and GetPreferredSize (2.0).
11958
11959 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
11960
11961         * Form.cs: Remove one character (!) to make my previous OnClosing
11962         stuff work for modal windows like MessageBox.
11963
11964 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11965
11966         * ListView.cs:
11967         * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
11968         ListView.Columns to get the last displayed column. Fixes #80452.
11969
11970 2007-01-09  Everaldo Canuto  <everaldo@simios.org>
11971
11972         * Label.cs, LinkLabel.cs: Source code identation fixes.
11973
11974 2007-01-08  Everaldo Canuto  <everaldo@simios.org>
11975
11976         * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
11977         we dont need to invalidate only borders because when we invalidate four
11978         border lines the invalidate's generates a complete redraw of button, 
11979         because it now invalidate a complete rect some other redraws operations
11980         are fixed. Fixes #80196.
11981         
11982         * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
11983         Remove ToolBarInvalidateEntireButton as it is not used.
11984
11985 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
11986         
11987         * Form.cs: Make sure that both OnClosing and OnFormClosing are
11988         called for 2.0 profile.
11989         * CloseReason.cs: Make class internal for 1.1.
11990
11991 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
11992
11993         * ToolStripManager.cs: Implement FindToolStrip functionality.
11994         * ToolStrip.cs: Register and unregister with ToolStripManager.
11995
11996 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
11997
11998         * Control.cs: This was messy.  2.0 moves much of ControlCollection
11999         to ArrangedElementCollection.  Implemented this with as few #if's as 
12000         possible (which is still too many).
12001
12002 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
12003
12004         * Control.cs: Implement SizeFromClientSize() [2.0].
12005
12006 2007-01-07  Everaldo Canuto  <everaldo@simios.org>
12007
12008         * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
12009         use Theme.BorderSize to calculate area instead of static value 1, 
12010         by the way use new BorderStaticSize instead     Border3DSize when 
12011         border_static is true. Fixes #79537.
12012         
12013         * XplatUIOSX.cs: Fix call to GetClientRectangle. 
12014         
12015         * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
12016         it is not needed.
12017
12018 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
12019
12020         * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
12021
12022 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
12023
12024         * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
12025         WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
12026         
12027         * Hwnd.cs: 
12028         - border_static field added, it will used to define when a control 
12029         theres 3D border but it must be static (thin).
12030         - In GetWindowRectangle use Theme.BorderSize to calculate area 
12031         instead of static value 1, by the way use new BorderStaticSize instead
12032         Border3DSize when border_static is true.
12033
12034         * XplatUIX11.cs, XplatUIOSX.cs: 
12035         - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
12036         
12037         * Theme.cs: BorderStaticSize field added.
12038
12039 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
12040
12041         * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
12042
12043 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
12044
12045         * Control.cs: Under InternalBorderStyle call RecreateHangle to 
12046         mimic same behavior than win32 that set border only in CreateParams,
12047         it fix problems under CreateParams overrides. Fix #79442 and partial
12048         fix #79537.
12049         
12050         * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
12051         of thi control you must call recreate handle. 
12052         
12053         * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
12054         need to do anything as RecreateHangle will take care about borders.
12055
12056 2007-01-05  Mike Kestner  <mkestner@novell.com>
12057
12058         * ListView.cs: hack to eliminate Lost/Got focus notifications on
12059         cycles between the ItemControl and parent.  Fixes #80388.
12060
12061 2007-01-05  Gert Driesen  <drieseng@users.sourceforge.net>
12062
12063         * Control.cs: Lazy init layout engine. Do not directly use 
12064         layout_engine since LayoutEngine may be overridden (on 2.0 profile).
12065
12066 2007-01-05  Chris Toshok  <toshok@ximian.com>
12067
12068         * DataGrid.cs: don't forceably rebind columns in SetDataSource
12069         unless our list manager has changed (i.e. unless we have reason to
12070         believe our columns have changed).  Fixes #80422.
12071         
12072         also, disable the call do BindColumns in
12073         OnListManagerMetaDataChanged.  this breaks this test in 2.0 (in
12074         1.1 the event isn't raised in response to a column addition on a
12075         table.)
12076
12077 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
12078
12079         * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
12080         that inheritors can not call it if they choose.  Fixes bug #80456.
12081
12082 2007-01-05  Andreia Gaita  <avidigal@novell.com>
12083
12084         * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it 
12085         doesn't blow up with a null exception on marshalling.
12086         
12087 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
12088
12089         * Control.cs: Implement several 2.0 protected properties and methods.
12090         Ensure that all necessary events are being called when properties
12091         are set.
12092
12093 2007-01-05  Mike Kestner  <mkestner@novell.com>
12094
12095         * ListView.cs: implement PgUp/PgDn for Details view.  Also
12096         fixes First/LastVisibleIndex to use the item_control.ClientRect 
12097         instead of the parent control.  Fixes #80378.
12098
12099 2006-01-05  Atsushi Enomoto  <atsushi@ximian.com>
12100
12101         * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
12102           determine whether to use yard-pound or not (bug #78399).
12103
12104 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
12105
12106         * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
12107         problems. So it is time to bring back the old popupbutton colors.
12108
12109 2006-01-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12110
12111         * ColumnHeader.cs:
12112         * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
12113         property by using the internal information of the
12114         columns order in ListView.
12115
12116 2007-01-04  Jonathan Pobst  <monkey@jpobst.com>
12117
12118         * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
12119         Add 2.0 Tag properties.
12120
12121         * LinkArea.cs: Add 2.0 ToString method.
12122
12123 2007-01-03  Chris Toshok  <toshok@ximian.com>
12124
12125         * DataGrid.cs: the Alt+0 handling was wrong, it should have been
12126         Ctrl+0.  Fixes bug #80367.  Also, don't eat the Delete keypress
12127         when we're editing, which fixes #80047.
12128
12129 2007-01-03  Chris Toshok  <toshok@ximian.com>
12130
12131         * Form.cs: apply patch contributed by Dominik Seichter.  fixes
12132         #80404.
12133
12134 2007-01-03  Jonathan Pobst  <monkey@jpobst.com>
12135
12136         * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
12137         property and implementation.
12138
12139         * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
12140         for MdiWindowListItem property.
12141
12142         * ToolStripDropDown.cs: Don't consider hidden menu items while
12143         laying out the menu.
12144
12145 2007-01-03  Andreia Gaita  <avidigal@novell.com>
12146
12147         * SendKeys.cs: window handle is not needed in win32, so just
12148         get the active window for X after parsing keys and don't use
12149         it when building the message; it is passed by parameter to the 
12150         Xplat method and used there to build the message instead. Also,
12151         wait for events to be processed on SendWait, as opposed to Send,
12152         which doesn't wait :) Playing with threads and Send() completely 
12153         hangs on ms.net, only SendWait() works.
12154         
12155         XplatUIX11.cs
12156         X11Display.cs: Check for valid window handle.
12157
12158 2007-01-03  Jackson Harper  <jackson@ximian.com>
12159
12160         * TextControl.cs: Need to prevent wrap calculations when replacing
12161         text (this was there before i removed it accidently).
12162         - Don't update the cursor during the positioning, just set it to
12163         selection_start at the end of the operaion.
12164
12165 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12166
12167         * Control.cs:
12168         * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
12169         
12170 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12171
12172         * MonthCalendar.cs: Added Click and DoubleClick events again,
12173         but this time they only hide Control's Click and DoubleClick.
12174         
12175 2007-01-03  Gert Driesen  <drieseng@users.sourceforge.net>
12176
12177         * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
12178         System.Drawing assembly. Spaces to tabs. Removed extra tabs.
12179
12180 2007-01-02  Jackson Harper  <jackson@ximian.com>
12181
12182         * TextBoxBase.cs: We move the caret with the split now, so we
12183         don't need to explicitly move the caret after splitting.  This
12184         fixes the caret bumping down an extra line on Enter.
12185
12186 2007-01-02  Miguel de Icaza  <miguel@novell.com>
12187
12188         * ContainerControl.cs: Add AutoValidateChanged event (for PDN
12189         2.72). 
12190
12191         * ScrollableControl.cs: Add Scroll event.
12192
12193 2007-01-02  Mike Kestner  <mkestner@novell.com>
12194
12195         * ListView.cs: one more try with help from georgegiolfan@yahoo.com 
12196         to fix all hdr height padding codepaths.  Fixes #80207.
12197
12198 2007-01-02  Chris Toshok  <toshok@ximian.com>
12199
12200         * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
12201         setting it to the Control defaults anyway, and it being after the
12202         Dock set was screwing up layout.
12203         (set_Dock): don't short circuit out of setting base.Dock.  Also,
12204         no need to call UpdateStatusBar here, as it'll be re-layed out if
12205         it needs to be.
12206
12207 2007-01-02  Mike Kestner  <mkestner@novell.com>
12208
12209         * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
12210         to header height for width == -1. Fixes the rest of #80207.
12211
12212 2007-01-02  Mike Kestner  <mkestner@novell.com>
12213
12214         * ListView.cs: rework the mouse event forwarding everaldo added
12215         to translate the coordinates to the parent control not
12216         raise the parent events until after we've done our work. Hover
12217         needs more work, in the case where HoverSelection is on, because
12218         the item control receives more than one MouseHover per Enter
12219         event, so we need to ensure only the "first" hover gets forwarded.
12220         Opening a minor bug for that.
12221
12222 2007-01-02  Gert Driesen  <drieseng@users.sourceforge.net>
12223
12224         * CheckedListBox.cs: Fixed SelectionMode to match MS.
12225         * ListControl.cs: Implemented AllowSelection property. Removed extra
12226         tabs.
12227         * ListBox.cs: Implemented AllowSelection property.
12228
12229 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
12230
12231         * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
12232         SelectedItem, it prevent for errors when you must disable item
12233         before perform click. Fixes #80409.
12234
12235 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
12236
12237         * MenuAPI.cs: Prevent second level and beyond submenus to close
12238         until first level when move out side of popup.
12239         
12240 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
12241
12242         * MenuAPI.cs:
12243         - Down submenu positin in three pixels.
12244         - Closes sub menu when mouse leaves from menu. Fixes #80402.
12245
12246 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
12247
12248         * ThemeWin32Classic.cs:
12249         - Fix popup menu size adding one pixel on the top.
12250         - Down menu item border from two to one to mimic Win32.
12251         - Some source identation fixes. 
12252
12253 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
12254
12255         * ThemeWin32Classic.cs: Use float numbers to calculate size and
12256         position of menu arrows, it fix wrong arrow size.
12257
12258 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
12259
12260         * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
12261         instead of line, it simplify draw operation and fix it using 3D
12262         borders to mimic Win32.
12263
12264 2007-01-01  Jonathan Pobst  <monkey@jpobst.com>
12265
12266         * StatusStrip.cs: Add implementation of the sizing grip.
12267
12268         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
12269         StatusStrip rendering.
12270
12271 2006-12-31  Chris Toshok  <toshok@ximian.com>
12272
12273         * ToolBar.cs: don't assign to dock_style in the .ctor.  it doesn't
12274         override the layout style (anchor/dock) of the control.  assign to
12275         Dock instead.  Fixes bug #80416.
12276
12277         * ToolStrip.cs: same.
12278
12279 2006-12-31  Andreia Gaita  <avidigal@novell.com>
12280
12281         * ContainerControl.cs: Use ContainerSelected flag to check if 
12282         a Container is directly selected, or if Select is called on a 
12283         non-container. If a container is directly selected, focus events 
12284         should not be raised.
12285         Apply #80411 patch to throw exception on set_ActiveControl if 
12286         control is the same as the current one.
12287         
12288         * Control.cs: Use ContainerSelected flag (see above).
12289         Add invalidation check to raise event but not invalidate if 
12290         dimensions are 0.       
12291         Apply #80411 patch.
12292         
12293
12294 2006-12-31  Everaldo Canuto  <everaldo@simios.org>
12295
12296         * MenuAPI.cs: After click, dont close popup menu when menu is
12297         ContextMenu. Fixes #80399.
12298
12299 2006-12-30  Chris Toshok  <toshok@ximian.com>
12300
12301         * ContainerControl.cs: make sure we throw the exception if the
12302         container control doesn't contain the control we're setting
12303         ActiveControl to.
12304
12305 2006-12-30  Chris Toshok  <toshok@ximian.com>
12306
12307         * Control.cs (SetTopLevel): fix the exception raised by
12308         SetTopLevel for child controls.
12309         (set_Anchor): call UpdateDistances when setting the anchor type.
12310         This fixes bug #80336.
12311
12312 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
12313
12314         * Theme.cs: For now, revert back to 8pt font.
12315
12316 2006-12-29  Everaldo Canuto  <everaldo@simios.org>
12317
12318         * MenuAPI.cs: Set popup as active when open a ContextMenu. 
12319         Fixes #80395.
12320
12321 2006-12-29  Chris Toshok  <toshok@ximian.com>
12322
12323         * Control.cs: reorder the code in OnResize to give the same event
12324         ordering as MS.
12325
12326 2006-12-29  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12327
12328         * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
12329         TileHorizontally and TileVertically.
12330         
12331 2006-12-29  Alexander Olk  <alex.olk@googlemail.com>
12332
12333         * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
12334         FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
12335         SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
12336         Corrected copyright and email adress.
12337
12338 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
12339
12340         * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
12341         of Exception in FullPath property if no TreeView is associated with
12342         the TreeNode.
12343
12344 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
12345
12346         * Theme.cs: Marked default_font as private, and initialize it in ctor
12347         with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
12348         on 2.0 profile.
12349         * ThemeGtk.cs: Removed default_font intialization.
12350         * ThemeWin32Classic.cs: Removed default_font initialization.
12351
12352 2006-12-28  Chris Toshok  <toshok@ximian.com>
12353
12354         * Control.cs: fix a couple of place where we were creating handles
12355         more aggressively than we should be.  Fixes ControlRefresh unit
12356         tests.
12357
12358 2006-12-28  Chris Toshok  <toshok@ximian.com>
12359
12360         * Control.cs: contrary to what the comment said, Control.Dock does
12361         not supercede Control.Anchor - the last one you assign to decides
12362         the layout behavior.  so we need to keep track of which was the
12363         last set.  Also, fix some of the affected property arguments in
12364         PerformLayout calls, and remove an redundant parent.PerformLayout
12365         call in OnResized.
12366
12367         Add a VisibleInternal property, which returns is_visible.  We
12368         can/should get rid of all the usage of this field elsewhere.
12369
12370 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12371         
12372         * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
12373         control style, not DoubleBuffer. Added UseDoubleBuffering property
12374         that indicates whether doublebuffering is enabled and supported.
12375         (comment from and code based on Gert Driesen's patch in #80324).
12376         Fixes #80324.
12377
12378 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12379         
12380         * Control.cs: Fixed a NRE.
12381
12382 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12383
12384         * TrackBar.cs: Fix SmallChange and LargeChange exceptions
12385         for 2.0.
12386
12387 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12388
12389         * Control.cs: Rewrote double buffering, now a seperate
12390         class handles all the buffering, no Graphics is disposed of
12391         until the painting is finished (earlier implementation 
12392         would crash if the control was resized in the OnPaint, 
12393         since it would cause the double buffer to be recreated
12394         and the old one disposed), a separate Graphics is 
12395         created for every paint (MS behaviour and anyways the state
12396         of the Graphics would have to be saved and restored otherwise)
12397         
12398         * XplatUIDriver.cs: 
12399         * XplatUIX11.cs:
12400         * XplatUI.cs: Added and implemented GetOffscreenGraphics 
12401         so that we can get the graphics for the back buffer without
12402         having to create a new one and remove the offscreen_dc parameter
12403         from CreateOffscreenDrawable and DestroyOffscreenDrawable.
12404         
12405 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12406
12407         * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
12408         Also make virtual all the key-related methods.
12409
12410         * ListViewItem.cs: Make virtual the key related methods for
12411         ListViewSubItemCollection.
12412
12413 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12414
12415         * ListView.cs:
12416         * ListViewItem.cs:
12417         * ThemeWin32Classic.cs:
12418         * Theme.cs: Initial support for Tile view in ListView,
12419         as well as the implementation of the required bits for it (Item
12420         and Subitem).
12421
12422 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
12423
12424         * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
12425         of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
12426         Provide useful exception messages.
12427
12428 2006-12-27  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12429
12430         * TrackBar.cs: Remove a warning.
12431         * MonthCalendar.cs: Moved back to using Capture to hide the calendar
12432         when used by DateTimePicker, fixes #80287. This also requires that 
12433         MonthCalendar implements it's own drawing for the yearly updown control,
12434         otherwise the Capture tracking would be too complicated. Removed the Click 
12435         and DoubleClick events (according to comments they were hiding the base class
12436         event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
12437         raise these events, not that they cannot be raised. It is possible to raise 
12438         them by calling OnClick and OnDoubleClick). Added two internal fields in 
12439         HitTestInfo in order to track give more tracking info needed by MonthCalendar.
12440         * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
12441         * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
12442         event, no longer needed.
12443         
12444 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
12445
12446         * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
12447         true if new value differs from current value.
12448
12449 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
12450
12451         * Control.cs: ControlCollection.Count must be public. Fixed build of
12452         unit tests.
12453
12454 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
12455
12456         * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
12457
12458 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
12459
12460         * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
12461
12462 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
12463
12464         * Control.cs: Invalidates control including when Width and Height is 
12465         equal zero or is not visible, only Paint event must be care about 
12466         this. Fixes #79913.
12467
12468 2006-12-26  Chris Toshok  <toshok@ximian.com>
12469
12470         * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
12471         more corcompare work.
12472
12473         * DataGridView.cs: fix compiler warning.
12474
12475         * ColumnHeader.cs: some corcompare work, and also take the
12476         opportunity to make the internal fields private.
12477
12478         * ListView.cs: fix the fallout from the above field change.
12479
12480 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
12481
12482         * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
12483         ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
12484         ToolStripTextBox.cs: Fixes to events and corcompare.
12485
12486 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
12487
12488         * ListView.cs: Call owner.OnMousexx event to propagate events from
12489         item to ListView. Fixes #80367.
12490
12491 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
12492
12493         * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
12494         if value is less than one. ItemHeight should not be set to a value
12495         less than 1, and throw ArgumentOutOfRangeException on 2.0 profile. 
12496         Removed extra tabs.
12497
12498 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
12499
12500         * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
12501         * ToolStripStatusLabel.cs: Add Spring for Moma.
12502
12503 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
12504
12505         * DataGridView.cs: Fixed several NullReferenceException in On* methods.
12506         Fixed code formatting. Removed debug code.
12507         * DataGridViewTextBoxEditingControl.cs: Removed debug code.
12508
12509 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
12510
12511         * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
12512         RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
12513         ArgumentOutOfRangeException if ColumnCount is negative. In 
12514         ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
12515         less than 4 or higher than 32768.
12516         * DataGridViewCellStyle.cs: Fixed default value for NullValue.
12517         Fixed FormatProvider to return CurrentCulture unless explicitly set.
12518         Fixed IsFormatProviderDefault to return true if FormatProvider has
12519         not been explicitly set.
12520
12521 2006-12-25  Chris Toshok  <toshok@ximian.com>
12522
12523         * Application.cs: add a couple of 2.0 events.
12524
12525 2006-12-25  Chris Toshok  <toshok@ximian.com>
12526
12527         * Control.cs: fix compiler warning.
12528
12529         * AxHost.cs: corcompare fixes.
12530
12531         * ApplicationContext.cs: corcompare fixes.
12532
12533 2006-12-25  Chris Toshok  <toshok@ximian.com>
12534
12535         * Control.cs: only update dist_right/dist_bottom if the
12536         width/height is > 0.  this fixes anchored controls being resized
12537         smaller until they disappear and then resized larger again.
12538
12539 2006-12-25  Chris Toshok  <toshok@ximian.com>
12540
12541         * Control.cs: a couple of changes.  Remove dist_left and dist_top,
12542         since they're nothing more than X/Left and Y/Top, respectively.
12543
12544         Also, move back to a per-control Bitmap/Graphics for
12545         DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
12546         MT case.  Go with a tiny bitmap though, 1x1, instead of Width x
12547         Height.
12548
12549 2006-12-25  Miguel de Icaza  <miguel@novell.com>
12550
12551         * MessageBox.cs: Implemented overload that takes a new "bool
12552         displayHelpButton" by adding a new internal field "show_help".
12553         When clicked this will raise the HelpRequested on the owner or the
12554         main form. 
12555
12556         From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
12557         From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
12558
12559         * ListView.cs: Add support ColumnWidthChanged and
12560         ColumnWidthChanging. 
12561
12562         Add support for ColumnReordered event.
12563         (ReorderColumn): Add NET_2_0 specific support for cancelling the
12564         reorder.
12565
12566         Very nice codebase!
12567
12568         * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
12569
12570         This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
12571
12572 2006-12-24  Chris Toshok  <toshok@ximian.com>
12573
12574         * GridTablesFactory.cs: 2.0 corcompare work.
12575
12576         * ToolStripContainer.cs: add "override" to
12577         ContextMenuStripChanged, and remove the local event object.
12578
12579         * ToolStripDropDown.cs: same with a couple properties.
12580
12581         * ToolStripPanel.cs: same with AutoSizeChanged event.
12582
12583         * TextBoxBase.cs: add "override" to AutoSizeChanged.
12584
12585         * Form.cs: add the remaining 2.0 events, and do some corcompare
12586         attribute work.
12587
12588         * DateTimePicker.cs: add "new" to padding.
12589
12590         * ButtonBase.cs: use Control's use_compatible_text_rendering.
12591
12592         * ToolStripContentPanel.cs: use base.AutoSizeChanged.
12593
12594         * DataGridView.cs: PaddingChanged is overridden.
12595
12596 2006-12-24  Chris Toshok  <toshok@ximian.com>
12597
12598         * Control.cs: corecompare work here too.
12599
12600         * DataGridViewElement.cs, DataGridView.cs,
12601         DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
12602         DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
12603         DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
12604         DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
12605         work.
12606
12607 2006-12-24  Miguel de Icaza  <miguel@novell.com>
12608
12609         * Control.cs: Switched the error message on the console for a
12610         todo.  A review of the code will have to cope with this anyways
12611         (since its a large feature, it is in our radar) and it was
12612         producing too much output when running PDN.
12613
12614         * ToolStripComboBox.cs: Set the text when the SelectedIndex
12615         changes.  Applications depend on this (PDN 2.72)
12616
12617 2006-12-23  Chris Toshok  <toshok@ximian.com>
12618
12619         * TableLayoutSettings.cs: finish up the corcompare work for this
12620         class.
12621
12622 2006-12-23  Chris Toshok  <toshok@ximian.com>
12623
12624         * Control.cs: make SetImplicitBounds internal, do some futzing
12625         with LayoutEngine so that it's available in 1.1, and remove the
12626         entire duplicated code mess from PerformLayout.  Use
12627         System.Windows.Forms.Layout.DefaultLayout instead.
12628
12629         * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
12630
12631 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
12632
12633         * Form.cs: Add MainMenuStrip property.
12634
12635 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
12636
12637         * Control.cs: Add ContextMenuStrip property and implementation.
12638         Fix ContextMenu implementation to show menu centered on control when
12639         activated using the keyboard instead of showing at screen (0,0).
12640
12641         * ToolStripDropDown.cs: Fix needed overload of Show ().
12642
12643 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
12644
12645         * Menu.cs: Name property added for 2.0 profile.
12646         
12647 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
12648
12649         * Menu.cs: Update information about FindMenuItem, method to be
12650         implemented soon.
12651
12652 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
12653
12654         * MenuAPI.cs: When deselect items deselect also selected subitems.
12655         
12656 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
12657
12658         * MenuAPI.cs: When hides menu set Wnd to null, it prevents
12659         FindSubItemByCoord to found itens that is not active, also an
12660         cheking added to FindSubItemByCoord to search for items only 
12661         in visible popup windows. Fixes #80274.
12662
12663 2006-12-22  Everaldo Canuto  <everaldo@simios.org>
12664
12665         * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
12666         internal property, it be care about change ExStyle. 
12667
12668 2006-12-22  Andreia Gaita  <avidigal@novell.com>
12669
12670         * ContainerControl.cs: set activeControl for parent forms up the 
12671         tree when the new activecontrol is a container.
12672         When validating the active control, if it is a container, also
12673         raise up the validation for it's active control. Fixes #80280
12674         
12675         * Control.cs: Add internal property flag and check to prevent
12676         Focus events from getting raised when Select() is called for
12677         a ContainerControl. There are still too many focus events being
12678         raised at the moment though.
12679         Cleaned up the code a bit.
12680
12681 2006-12-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12682
12683         * Control.cs: Added all missing 2.0 events.and
12684         fixed a couple of corcompare issues.
12685         * TrackBar.cs: Implemented missing 2.0 bits.
12686         * MonthCalendar.cs, 
12687         * DateTimePicker.cs, 
12688         * MdiClient.cs: Fixed some corcompare issues.
12689
12690 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
12691
12692         * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
12693         SplitterPanel.cs: corecompare work.
12694
12695 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
12696
12697         * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
12698         Clean up warnings for BackgroundImageChanged and PaddingChanged
12699         events now that they are implemented in Control.cs.
12700
12701 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
12702
12703         * Control.cs: Make sure layout_engine isn't null before using it (2.0).
12704         
12705         * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
12706         TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
12707         of TableLayoutPanel and supporting cast.
12708
12709 2006-12-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12710
12711         * XplatUIWin32.cs: 
12712         - GrabWindow now confines the mouse pointer to the confine window.
12713         - Added Win32ClipCursor and Win32GetClipCursor.
12714
12715         * Control.cs: 
12716         - Added CaptureWithConfine to be able to capture and confine 
12717         mouse pointer.
12718         
12719         * InternalWindowManager.cs: 
12720         - Call CaptureWithConfine instead of Capture if we're an
12721         MdiChild (fixes #79982).
12722
12723 2006-12-21  Chris Toshok  <toshok@ximian.com>
12724
12725         * DataGrid.cs: guard against the initial state of selection, where
12726         selection_start == -1.  make sure we only select from index >= 0.
12727         Fixes bug #80291.
12728
12729 2006-12-21  Chris Toshok  <toshok@ximian.com>
12730
12731         * Control.cs: we don't need to be so draconian with
12732         UpdateDistances, and we thusly don't need to call it before
12733         calling PerformLayout in ResumeLayout.  Fixes bug #80289.
12734
12735 2006-12-21  Daniel Nauck  <dna@mono-project.de>
12736
12737         * ComboBox.cs,
12738         TextBox.cs: Implemented AutoComplete properties.
12739
12740 2006-12-20  Chris Toshok  <toshok@ximian.com>
12741
12742         * DataGridView*.cs: some corecompare work.
12743
12744 2006-12-20  Jackson Harper  <jackson@ximian.com>
12745
12746         * XplatUIX11.cs: We need to hide the caret when deleting it,
12747         otherwise you get carets left lying around everywhere.
12748         * TextBoxBase.cs: Kill then redraw the caret when scrolling.  This
12749         prevents getting some weird half drawn caret tracers when
12750         scrolling.
12751         * TextControl.cs: Attempt to reduce the number of times we need to
12752         recreate the caret.
12753
12754 2006-12-20  Gert Driesen  <drieseng@users.sourceforge.net>
12755
12756         * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
12757
12758 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12759
12760         * DateTimePicker.cs:
12761         - Implemented missing 2.0 bits.
12762         - Changed some default values to match MS.
12763         
12764 2006-12-20  Jackson Harper  <jackson@ximian.com>
12765
12766         * TextBoxBase.cs: When changing the font across the document we
12767         can't recalculate after changing each line, since that will cahnge
12768         the line count.
12769         - PreferredHeight is a little different than i thought.
12770         - When backspacing, move the caret before we do the actual char
12771         delete, because when that delete crosses a wrap boundary the
12772         positional information will change.
12773
12774 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12775
12776         * Control.cs: Added some missing 2.0 bits: 
12777         BackgroundImageLayout, BackgroundImageLayoutChanged, 
12778         OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and 
12779         add IBindableComponent and IDropTarget implementation.
12780         
12781         * MonthCalendar.cs: 
12782         - Added all missing 2.0 features:
12783         BackgroundImageLayout, RightToLeftLayout, 
12784         OnHandleDestroyed, RightToLeftLayoutChanged, 
12785         BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
12786         PaddingChanged.
12787         - Rewrote all the BoldDate code, it was completely broken.
12788         - Fixed all the tests (the tests can now be re-enabled, the
12789         problems were not with the tests, but with the control, it was
12790         mostly broken).
12791         
12792         * DateTimePicker.cs: Changed the location where the 
12793         MonthCalendar is shown.
12794         
12795 2006-12-19  Chris Toshok  <toshok@ximian.com>
12796
12797         * DataGridView.cs: add IDropTarget implementation.
12798
12799         * ToolStripPanel.cs: add IDropTarget implementation.
12800
12801 2006-12-19  Jackson Harper  <jackson@ximian.com>
12802
12803         * TextControl.cs: soft now means something different than what it
12804         used to mean, we want to move the caret regardless of whether or
12805         not this break was soft (would we really have wanted the caret
12806         to not move with the break in the old context?)
12807         * TreeView.cs: Make sure we factor in the vert scrollbar when
12808         calculating the horizontal scrollbar's maximum.
12809
12810 2006-12-19  Andreia Gaita  <avidigal@novell.org>
12811
12812         * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
12813         check for keywords in alternate casing, close bug #80049.
12814
12815 2006-12-19  Chris Toshok  <toshok@ximian.com>
12816
12817         * ToolStripItem.cs: add the implementation of the 4 IDropTarget
12818         methods (which all do nothing).
12819
12820         * IDropTarget.cs: add the 4 missing methods.
12821
12822 2006-12-19  Chris Toshok  <toshok@ximian.com>
12823
12824         * TableLayoutRowStyleCollection.cs: corcompare work.
12825         
12826         * TableLayoutSettings.cs: same.
12827
12828         * TableLayoutStyle.cs: same.
12829
12830         * TableLayoutColumnStyleCollection.cs: same.
12831
12832 2006-12-19  Jonathan Pobst  <monkey@jpobst.com>
12833
12834         * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
12835         TableLayoutPanel I've had in my local tree for way too long.
12836
12837 2006-12-19  Miguel de Icaza  <miguel@novell.com>
12838
12839         * TableLayoutSettings.cs: Finish the public API (still needs all
12840         the logic to update on changes). 
12841
12842         * TableLayoutPanelCellPosition.cs: new file.
12843         
12844         * TableLayoutRowStyleCollection.cs,
12845         TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
12846         TableLayoutSettings.cs: Track the final 2.0 table api.
12847
12848 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12849
12850         * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
12851         and Image List 2.0 members for ColummnHeader.
12852         * ListView.cs: Add key-related 2.0 methods for
12853         ColumnHeaderCollection.
12854
12855 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
12856
12857         * ListViewItem.cs: Changed AddRange overloads to match MS: throw
12858         ArgumentNullException if items argument is null. Ignore null item in
12859         arrays. Removed extra tabs.
12860
12861 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
12862
12863         * MonthCalendar.cs: Fixed InvalidCastException.
12864
12865 2006-12-19  Jackson Harper  <jackson@ximian.com>
12866
12867         * TextControl.cs: Don't increment the position here.
12868         - When calculating char positions only add in the line break size
12869         for hard line breaks.
12870
12871 2006-12-19  Andreia Gaita  <avidigal@novell.org>
12872
12873         * SendKeys.cs: Changed some things to match ms.net behaviour
12874         when parsing shifted capital letters.
12875         
12876         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX: 
12877         Add window handle as parameter to SendInput. X11 needs the 
12878         window handle, and the handle being passed      to it in the keys 
12879         queue is the active control handle (which windows needs), not 
12880         the window handle.
12881         
12882         XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput 
12883         to support SendKeys on X.       
12884         
12885         * X11Keyboard: Implement helper method to lookup a linux keycode
12886         given the virtual keycode. Added table of keycode-2-virtualkey
12887         values to support this.
12888
12889 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12890
12891         * ListView.cs: Add support for SelectedIndexCollection
12892         and SelectedItemCollection 2.0 methods. Implement support
12893         for ImageKey too.
12894         * ListViewItem.cs: Add support for ListViewSubItemCollection
12895         2.0 methods. Also, fix an incorrect behavior of AddRange method
12896         (it shouldn't call Clear).
12897         * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
12898
12899 2006-12-19  Jackson Harper  <jackson@ximian.com>
12900
12901         * RichTextBox.cs: 
12902         * TextBoxBase.cs: New args for FormatText
12903         * TextControl.cs: Rewrote the main drawing method, this version
12904         feels a little easier to understand and debug to me.  Hopefully it
12905         does to others also
12906         - Fix FormatText to OR in the new formating values.  Added
12907         FormatSpecified param, basically this works in the same way as
12908         BoundsSpecified in Control.
12909         - Set the caret properties when the caret is positioned.
12910         - When wrapping text make sure that we calculate the width of the
12911         last character
12912         - when calculating alignments we might have wrapped down to the
12913         next line, so don't search for an individual tag, search for the
12914         end of the line
12915         - We need to invalidate the selection area when we replace the
12916         selection.
12917         
12918 2006-12-19  Daniel Nauck  <dna@mono-project.de>
12919
12920         * Application.cs: add Restart () 2.0 support
12921
12922 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
12923
12924         * MenuItem.cs: Invalidate menu item rectangle after change Enable
12925         property. Fixes #80268.
12926         
12927 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
12928
12929         * MenuAPI.cs: Dont trigger select event when closes top menu
12930         item. Fixes #80270.
12931
12932 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
12933
12934         * MenuAPI.cs: When you click on menuitem only trigger onselect
12935         event for top menu itens. Fixes #80271.
12936         
12937 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12938
12939         * MdiWindowManager.cs: Make IconicBounds depend on
12940         the bottom of MdiClient, not the top (fixes #80267)
12941         
12942 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12943
12944         * MdiClient.cs: Added missing 2.0 attribute
12945
12946 2006-12-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12947
12948         * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
12949         as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
12950
12951 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
12952
12953         * MenuAPI.cs: Fix click when menuitem is not popup,
12954         this regression was caused by last commit (#80272).
12955
12956 2006-12-17  Everaldo Canuto  <everaldo@simios.org>
12957
12958         * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
12959         fire click event or close menu. Fixes #80272.
12960
12961 2006-12-17  Daniel Nauck  <dna@mono-project.de>
12962
12963         * ListViewHitTestInfo.cs: add
12964
12965 2006-12-17  Daniel Nauck  <dna@mono-project.de>
12966
12967         * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
12968         * FlatButtonAppearance.cs: add
12969         * DockingAttribute.cs: add
12970
12971 2006-12-17  Chris Toshok  <toshok@ximian.com>
12972
12973         * DataGrid.cs: hook up MetaDataChanged event on the list manager,
12974         and rebind our columns when it does - this way, if you make
12975         changes to the DataTable (or set the Table attribute on a DataView
12976         after setting it as the DataGrid's DataSource, the changes are
12977         made visible.)  Fixes bug #80107.
12978
12979 2006-12-17  Daniel Nauck  <dna@mono-project.de>
12980
12981         * ListViewGroup.cs: add internal Location property for layouting.
12982         * Theme.cs: add abstract ListViewGroupHeight function.
12983         * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
12984
12985 2006-12-16  Andreia Gaita  <avidigal@novell.com>
12986
12987         * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
12988         Added reset of selected index to 0 when adding first tab page.
12989         Fixes #80264
12990         
12991         * NumericUpDown.cs: Fix NET_2_0 check
12992
12993 2006-12-16  Daniel Nauck  <dna@mono-project.de>
12994
12995         * ListViewGroup.cs: fixed DefaultValueAttribute value
12996
12997 2006-12-16  Daniel Nauck  <dna@mono-project.de>
12998
12999         * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
13000
13001 2006-12-15  Miguel de Icaza  <miguel@novell.com>
13002
13003         * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
13004         TextBoxBase.cs, ListView.cs, ContainerControl.cs,
13005         ScrollableControl.cs: Add a handful of methods that are
13006         overwritten in 2.0 
13007
13008 2006-12-15  Chris Toshok  <toshok@ximian.com>
13009
13010         * XplatUIWin32.cs: initial implementation of the Reversible
13011         drawing functions.  there are some problems.  DrawReversibleFrame
13012         doesn't seem to work at all for Dashed FrameStyle, and in the
13013         Thick case there are drawing errors at the corners (we probably
13014         need to bind Rectangle instead of doing moveto/lineto's.)
13015
13016 2006-12-16  Andreia Gaita  <avidigal@novell.com>
13017         
13018         * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput, 
13019         to send blocks of key messages. Send accumulates keys to send with Flush, 
13020         while SendWait sends all keys immediately.
13021                 
13022         * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, 
13023         XplatUIX11.cs,  XplatUIX11-new.cs:
13024         - Define SendInput and stubs for OSX and X11, implements Win32 with a call
13025         to Win32 SendInput.
13026         - Added INPUT support structures to XplatUIWin32 for Win32SendInput
13027         
13028         Tests:  It seems ms.net is hooking the keyboard to implement this, so doing unit
13029         testing for ms.net on this class is very tricky, as the tests run too fast 
13030         to allow the hook to release, essentially freezing the keyboard and the 
13031         test. So, barring a win32 miracle, they'll be commited in the ms-notworking     
13032         category :p
13033
13034 2006-12-16  Daniel Nauck  <dna@mono-project.de>
13035
13036         * Padding.cs: fixed serialization compability to MS ("_var" field names),
13037                         added missing attributes.
13038  
13039 2006-12-15  Daniel Nauck  <dna@mono-project.de>
13040
13041         * ListViewGroup.cs: Added missing attributes.
13042         * ListViewGroupCollection.cs: Added missing attributes.
13043
13044 2006-12-15  Daniel Nauck  <dna@mono-project.de>
13045
13046         * ListViewItem.cs: fixed ListViewSubItem text property.
13047
13048 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13049         
13050         * Control.cs: Added missing 2.0 attributes
13051         
13052 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13053         
13054         * MdiClient.cs: Added missing 2.0 attribute.
13055         * MonthCalendar.cs: Added some missing 2.0 attributes 
13056         and properties.
13057         
13058 2006-12-15  Daniel Nauck  <dna@mono-project.de>
13059
13060         * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
13061
13062 2006-12-15  Jonathan Pobst  <monkey@jpobst.com>
13063
13064         * MainMenu.cs: Add the new 2.0 constructor to help out people
13065         using the MainMenu in VS2005.
13066
13067 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13068         
13069         * MdiChildContext.cs: Removed it, no longer used.
13070         * MdiClient.cs: Added missing 2.0 attributes.
13071         
13072 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13073         
13074         * InternalWindowManager.cs: Fix a NullRef with previous 
13075         changes for toolwindows.
13076         
13077 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13078
13079         * Control.cs: 
13080         - Added AfterTopMostControl to allow for certain controls 
13081         to always stay on top when normal controls are brought to 
13082         front.
13083         
13084         * XplatUIWin32.cs: 
13085         - (DrawInversibleRectangle): Get window rectangle from Win32 
13086         in stead of from control, since Win32 doesn't calculate
13087         screen coords correctly from control's Location if it 
13088         have docked siblings.
13089         
13090         * MdiWindowManager.cs:
13091         - Correct the control menu popup location when clicked on
13092         the maximized form icon. (fixes #80223.1)
13093         - Don't show moving rectangle if mouse hasn't moved from
13094         the original clicked point.
13095         - Removed FormGotFocus handler (not used).
13096         - Calculate the control buttons location from the main
13097         window's size and not client size (fixes #79770).
13098         - Form is now closed when the form icon is double-clicked
13099         (fixes #79775). 
13100         - Correct NCCalcSize numbers a little bit (fixes #80223.2)
13101         
13102         * InternalWindowManager.cs:
13103         - Moved some MDI-only methods to MdiWindowManager.
13104         - Removed unused properties and methods.
13105         - Unified method naming for methods handling wm messages.
13106         - Moved all message handling to seperate methods for
13107         each message.
13108         
13109         * ThemeWin32Classic.cs:
13110         - DrawManagedWindowDecorations now draws the title bar 
13111         with a gradient brush.
13112         - Add a CPDrawButtonInternal that allows us to specify
13113         light, normal and dark colors for the buttons (control 
13114         buttons for MDI children were drawn with the same light
13115         color as the background, therefore loosing the 3D effect).
13116         
13117         * SizeGrip.cs:
13118         - Add a CapturedControl property that is used to 
13119         determine the control to resize (defaults to parent). 
13120         Needed for MdiClient, since its SizeGrip's parent is
13121         MdiClient, but the control to resize is the main form.
13122         
13123         * MdiClient.cs:
13124         - Set SizeGrip's CapturedControl to the main form in order
13125         to resize the main form and not the MdiClient.
13126         - Override AfterTopMostControl to leave the scrollbars 
13127         always on top.
13128
13129 2006-12-15  Daniel Nauck  <dna@mono-project.de>
13130
13131         * ListView.cs: fixed ListViewItemCollection AddRange and
13132                         implemented ListViewItemCollection AddRange 2.0 support.
13133
13134 2006-12-15  Daniel Nauck  <dna@mono-project.de>
13135
13136         * ListViewGroup.cs: Add.
13137         * ListViewGroupCollection.cs: Add
13138         * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
13139         * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
13140                                 stub for ImageKey 2.0 support.
13141
13142 2006-12-14  Mike Kestner  <mkestner@novell.com>
13143
13144         * ListView.cs: add text padding to the autocalculation for columns
13145         of width -2.  Fixes #80207.
13146  
13147 2006-12-14  Mike Kestner  <mkestner@novell.com>
13148
13149         * ListView.cs: add some index guarding for partial row navigation 
13150         logic.  Fixes #80250.
13151
13152 2006-12-14  Mike Kestner  <mkestner@novell.com>
13153
13154         * ListView.cs: throw ArgumentExceptions when parented ListViewItems
13155         are added or inserted to the collection.  Fixes #81099.
13156
13157 2006-12-13  Everaldo Canuto  <everaldo@simios.org>
13158
13159         * MenuAPI.cs: Closes menu when right click out side of popup
13160         it fix problem in ContextMenu and MainMenu. Fixes #80252.
13161
13162 2006-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13163
13164         * ListViewItem.cs: Fix dumb error.
13165
13166         * ListView.cs: Add Find and ContainsKey methods in 
13167         ListViewItemCollection, and also return true for IsReadOnly
13168         and IsFixedSize (changes for 2.0). 
13169
13170 2006-12-13  Gert Driesen  <drieseng@users.sourceforge.net>
13171
13172         * Control.cs: Allow Region to be set to null.
13173
13174 2006-12-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13175
13176         * MdiWindowManager.cs: Remove unused (commented out) code.
13177         * Form.cs: When the MdiChild is maximized, the form needs 
13178         WM_NCMOUSELEAVE, so request it.
13179         * InternalWindowManager.cs: 
13180         - Added tooltips to control buttons.
13181         - Removed duplicated control button handling code.
13182         - Removed unused (commented out) code.
13183         
13184 2006-12-12  Everaldo Canuto  <everaldo@simios.org>
13185
13186         * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor 
13187         was used because we must set cursor without trigger ChangeCursor event
13188         and without change Cursor control property. Fixes #79963.
13189
13190 2006-12-12  Andreia Gaita  <avidigal@novell.com>
13191         
13192         * Control.cs: Check if Region setter value is null, and ignore
13193
13194 2006-12-12  Jackson Harper  <jackson@ximian.com>
13195
13196         * TextControl.cs: We were almost always drawing one more line then
13197         needed, since the GetLineByPixel will return the last line found
13198         at that pixel. In most cases though, we were invalidating up to
13199         the junction between two lines.
13200         - Improve debug code.
13201
13202 2006-12-12  Chris Toshok  <toshok@ximian.com>
13203
13204         * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
13205         and FillReversibleRectangle.
13206
13207         * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
13208         and FillReversibleRectangle.
13209
13210         * XplatUIWin32.cs: add stubs which do nothing for
13211         DrawReversibleFrame, DrawReversibleLine, and
13212         FillReversibleRectangle.
13213
13214         * XplatUIOSX.cs: add stubs which raise NIE for
13215         DrawReversibleFrame, DrawReversibleLine, and
13216         FillReversibleRectangle.
13217
13218         * XplatUIX11.cs: add working implementation for
13219         DrawReversibleFrame, DrawReversibleLine, and
13220         FillReversibleRectangle.
13221         
13222         * ControlPaint.cs: implement DrawReversibleFrame,
13223         DrawReversibleLine, and FillReversibleRectangle, by calling into
13224         the appropriate XplatUI method.
13225
13226 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13227
13228         * Form.cs: Make MdiClient have the focus even if it's
13229         not selectable, since it should receive WM_KEY* and WM_MOUSE 
13230         messages. Fixes #79907.
13231         
13232 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13233
13234         * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
13235         queried after the window is created.
13236         
13237         * XplatUIX11.cs: Added SendParentNotify to implement 
13238         WM_PARENTNOTIFY logic. Fixes #79965.
13239         
13240         * Control.cs: Added MakeParam.
13241         
13242 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13243
13244         * MdiClient.cs: Resume Layout before setting window
13245         states (fixes #80201).
13246
13247 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13248
13249         * MenuAPI.cs: Deselect a menu item after performing
13250         the click (fixes #80197).
13251
13252 2006-12-11  Jackson Harper  <jackson@ximian.com>
13253
13254         * TextBoxBase.cs: We need to cap this value, since Maximum -
13255         ViewPortHeight can be less than zero.
13256         - Only do selection with the left mouse button.
13257         * TextBox.cs: Don't tell the world that we have a context menu.
13258         * Control.cs: New method so that we can control whether or not the
13259         context menu is visible outside MWF.
13260
13261 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
13262
13263         * ToolBarButton.cs: Fix text positon. 
13264
13265 2006-12-11  Miguel de Icaza  <miguel@novell.com>
13266
13267         * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
13268
13269         * Control.cs (DoubleBuffered): Add implementation.
13270
13271         * Application.cs (OpenForms): Add.
13272
13273 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
13274
13275         * Form.cs: Use opacity instead of Opactiy to determine if we need
13276         to set the WS_EX_LAYERED bit.  [Fixes bug #80185]
13277
13278 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
13279
13280         * Control.cs: Fix NRE if Control.Site was set to null.
13281
13282 2006-12-11  Chris Toshok  <toshok@ximian.com>
13283
13284         * Control.cs: ControlCollection.Remove should return if the arg is
13285         null, and ControlCollection.SetChildIndex should raise a ANE.
13286
13287 2006-12-11  Gert Driesen  <drieseng@users.sourceforge.net>
13288
13289         * Control.cs: Verify value set for Dock property. Code formatting
13290         updates.
13291
13292 2006-12-11  Jackson Harper  <jackson@ximian.com>
13293
13294         * TextControl.cs: Draw the caret and the selection when a flag is
13295         set on the owner.
13296         * TextBoxBase.cs: We want to draw the caret and the selection for
13297         TextBox but not for TextBoxBase.
13298         - If the window is resized and scrolling is no longer needed (the
13299         whole doc is visible) set the scroll position to zero.
13300         - The default SelectWord (the one TextBox uses) should move the
13301         caret to the end of the word.
13302         - SelectAll moves the caret to the end of the selection.
13303         * TextBox.cs: We don't selectall on focus, we just do it when the
13304         control is created.
13305         
13306 2006-12-11  Mike Kestner  <mkestner@novell.com>
13307
13308         * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
13309
13310 2006-12-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13311
13312         * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer 
13313         2.0 support.
13314         * ListViewItem.cs: Add Name 2.0 property.
13315
13316 2006-12-11  Andreia Gaita  <avidigal@novell.com>
13317
13318         * TabControl.cs: Set visibility on selected or default tab 
13319         when tabcontrol handle is created, so that it's contents
13320         actually show up (duh). Fixes #80193
13321         Don't redraw the control if there is no handle created, as
13322         the selected index might be completely invalid. Added some tests
13323         to check for this.
13324
13325 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
13326
13327         * ToolBar.cs: Uses maximun width and height of all buttons as 
13328         button rectangle when ButtonSize specified, it looks strange but
13329         is what happens in Win32. Fixes #80189.
13330
13331 2006-12-11  Jackson Harper  <jackson@ximian.com>
13332
13333         * TextControl.cs: Need to track undo levels ourself, since
13334         compound actions will mess them up.
13335
13336 2006-12-10  Andreia Gaita  <avidigal@novell.com>
13337
13338         * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
13339         SelectedIndex value is changed (even if it's not valid).
13340         Reset SelectedIndex to 0 when the handle is created and if
13341         the current index is invalid.
13342         Fixes SelectdeIndex unit tests and #80128
13343
13344 2006-12-08  Chris Toshok  <toshok@ximian.com>
13345
13346         * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
13347         calls EndEdit, it needs to be called before we set current_cell to
13348         its new value.  Otherwise, we end up committing the value in the
13349         textbox to the new cell as well.  Fixes bug #80160.
13350
13351 2006-12-08  Chris Toshok  <toshok@ximian.com>
13352
13353         * Form.cs (set_CancelButton): if the button's DialogResult is
13354         None, set it to Cancel.  Fixes bug 80180.
13355
13356 2006-12-08  Jackson Harper  <jackson@ximian.com>
13357
13358         * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
13359         to watch ourselves when setting the canvas size and setting the
13360         scrollbar values.
13361
13362 2006-12-08  Chris Toshok  <toshok@ximian.com>
13363
13364         * DataGrid.cs: comment out the two MakeTransparent calls for the
13365         time being so people using trunk (and not 1.2.2) on windows can
13366         actually use the datagrid.  This deals with bug #80151.
13367
13368 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
13369
13370         * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
13371         Graphics.DrawImage (image, int, int, int, int) overload instead
13372         of Graphics.DrawImage (image, int, int).  GDI+ can't figure out
13373         the dpi difference and was blurring images it drew.
13374         [Fixes bug #79960]
13375
13376 2006-12-08  Chris Toshok  <toshok@ximian.com>
13377
13378         * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
13379         rowcnt is 0 (such as with an empty datasource), and make sure we
13380         initialize not_usedarea.Y to cells.Y, so we don't draw over the
13381         other areas (caption, parent row, etc, etc).  Fixes bug #80095.
13382
13383 2006-12-08  Chris Toshok  <toshok@ximian.com>
13384
13385         * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
13386         grid.
13387
13388 2006-12-08  Chris Toshok  <toshok@ximian.com>
13389
13390         [ Fixes bug #80167 ]
13391         
13392         * ThemeWin32Classic.cs: don't draw the image if the button's flat
13393         style is FlatStyle.System.
13394
13395         * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
13396         ButtonBase.flat_style private, and switch uses of it to the public
13397         property.
13398         
13399 2006-12-08  Chris Toshok  <toshok@ximian.com>
13400
13401         [ Fixes bug #80121 ]
13402         
13403         * ThemeWin32Classic.cs: center the caption text in the datagrid
13404         when we draw it.
13405
13406         * DataGrid.cs: lessen the amount we add to the caption height from
13407         6 to 2.  6 was making it huge.
13408
13409 2006-12-08  Andreia Gaita  <avidigal@novell.com>
13410
13411         * UpDownBase: Handle MouseWheel call directly instead of capturing
13412         the inner textbox's OnMouseWheel. Fixes #80166
13413
13414 2006-12-08  Jackson Harper  <jackson@ximian.com>
13415
13416         * TextControl.cs: We need to invalidate the textbox when we empty
13417         it (how had this not been discovered before?)
13418
13419 2006-12-08  Jackson Harper  <jackson@ximian.com>
13420
13421         * TextBoxBase.cs: Reworked the mouse down code so I could get it
13422         to behave like MS, we now ignore the eventargs.Click and just
13423         track state ourself, which we were already doing anyways.
13424         - Constrain the double click handler to the double click size.
13425         
13426 2006-12-08  Chris Toshok  <toshok@ximian.com>
13427
13428         * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
13429         direction if that scrollbar isn't shown.  fixes bug #80158.
13430
13431 2006-12-08  Andreia Gaita  <avidigal@novell.com>
13432
13433         * NumericUpDown.cs: Update value on getter. Fixes #79950
13434
13435 2006-12-08  Chris Toshok  <toshok@ximian.com>
13436
13437         * MenuItem.cs: add back in the event cloning code.  I didn't know
13438         how to do it in the face of the EventHandlerList work i'd done
13439         last week.  Fixes bug #80183.
13440
13441 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
13442
13443         * Control.cs: Add an invalidate to the BackgroundImage setter.
13444         [Fixes 80184]
13445
13446 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
13447
13448         * ToolStrip*: Add some small properties reported by MoMA, fix event
13449         firing and default properties based off of unit tests, and add some
13450         attributes based off of the class status page.
13451
13452 2006-12-07  Jackson Harper  <jackson@ximian.com>
13453
13454         * TextBoxBase.cs: Take HideSelection into account when determining
13455         whether or not to show the selection.
13456         * RichTextBox.cs: After inserting the RTF into the document move
13457         the cursor to the beginning of the document.
13458
13459 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
13460
13461         * Control.cs: Remove static ArrayList "controls" which maintained
13462         a reference to every control created.
13463         * Application.cs: Create a static FormCollection to maintain a reference
13464         to every form created.  Use it in places that formerly enumerated through
13465         the controls one looking for forms.
13466         * Form.cs: Add and remove self from above FormCollection.
13467
13468 2006-12-07  Alexander Olk  <alex.olk@googlemail.com>
13469
13470         * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
13471           not libgdk (though it makes me wonder why I didn't have any
13472           problems)
13473
13474 2006-12-07  Chris Toshok  <toshok@ximian.com>
13475
13476         [ you had to know this was coming after that last commit...]
13477         
13478         * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
13479         XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
13480         DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
13481         XCopyArea).
13482
13483 2006-12-07  Chris Toshok  <toshok@ximian.com>
13484
13485         * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
13486         DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
13487         all the behavior we need for double buffering.
13488
13489         * XplatUIDriver.cs: implement the 3 double buffer methods using a
13490         client side Bitmap, just like the old Control-based double buffer
13491         code did.  The methods are virtual, so each XplatUI driver
13492         subclass can replace the implementation to use a faster, platform
13493         specific approach.
13494
13495         * Control.cs: make use of the 3 Offscreen XplatUI calls in the
13496         double buffer code, and clean things up a bit in the process.
13497
13498 2006-12-06  Chris Toshok  <toshok@ximian.com>
13499
13500         * Control.cs: reindent WndProc.
13501
13502 2006-12-06  Chris Toshok  <toshok@ximian.com>
13503
13504         [ I wanna be like BenM when I grow up ]
13505         
13506         * Hwnd.cs: create a single static Graphics object on the static
13507         Bitmap we create.  use this for our text measurements.
13508
13509         * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
13510         This was causing us to allocate a backbuffer for every control,
13511         even when it wasn't flagged as double buffered.  Instead use the
13512         single graphics instance.  This might have implications for
13513         multithreaded applications.  If we run into problems we can switch
13514         to creating 1 Graphics per control, on the static Hwnd bitmap.
13515
13516         this change nets us a 7M savings in private dirty mappings when
13517         running FormsTest.exe.
13518
13519 2006-12-06  Chris Toshok  <toshok@ximian.com>
13520
13521         * ListView.cs: the BackgroundImage override is just to set
13522         attributes.  chain up to base.BackgroundImage.
13523
13524         * RichTextBox.cs: same.
13525
13526         * ToolBar.cs: same, but we need to also redraw the toolbar when it
13527         changes, so instead a handler for BackgroundImageChanged.
13528         
13529         * Control.cs: make background_image private.
13530
13531 2006-12-06  Chris Toshok  <toshok@ximian.com>
13532
13533         * ScrollBar.cs: change the assignment of cursor to Cursor.  not
13534         sure we even need this assignment, but roll with it for now.
13535
13536         * Control.cs: make the cursor field private.
13537
13538 2006-12-06  Chris Toshok  <toshok@ximian.com>
13539
13540         * Form.cs: we don't need to explicitly set ImeMode to
13541         ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
13542         behavior in the face of ImeMode.Inherit.
13543
13544         * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
13545         change the ctor's assignment to use ImeMode instead of ime_mode.
13546
13547         * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
13548         ImeModeInherit.  Only check for the parent's imemode (and return
13549         NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
13550         This fixes the button unit test, which sets both ImeMode and
13551         DefaultImeMode to ImeMode.Disable.
13552
13553         also make the ime_mode field private.
13554
13555 2006-12-06  Chris Toshok  <toshok@ximian.com>
13556
13557         * Control.cs: make control_style private.
13558
13559         * TextBoxBase.cs: fix the HandleClick override.  it was explicitly
13560         setting the styles to true, then setting them to false instead of
13561         reverting to their previous values.
13562
13563         also, call SetStyle on the scrollbars instead of using
13564         control_style directly.
13565
13566 2006-12-06  Jonathan Pobst  <monkey@jpobst.com>
13567
13568         * FormCollection.cs: Implement. [2.0]
13569
13570 2006-12-06  Chris Toshok  <toshok@ximian.com>
13571
13572         * Control.cs: make tab_stop private.
13573
13574         * Label.cs: set TabStop, not tab_stop.  reformat some event
13575         add/remove methods to make them more compact.
13576
13577 2006-12-06  Chris Toshok  <toshok@ximian.com>
13578
13579         * RadioButton.cs: fix TabStop handling.
13580
13581 2006-12-06  Chris Toshok  <toshok@ximian.com>
13582
13583         * TextBox.cs: remove the explicit assignments to has_focus.
13584         Control does that.
13585
13586         * ButtonBase.cs: remove the assignment to has_focus.  Control will
13587         manage that.
13588         
13589 2006-12-06  Chris Toshok  <toshok@ximian.com>
13590
13591         * ButtonBase.cs: remove all uses of is_enabled from this code.
13592         it's always true when any of the code containing the checks is
13593         executed.
13594
13595 2006-12-06  Chris Toshok  <toshok@ximian.com>
13596
13597         * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
13598         with different semantics (some are present in both 1.1 and 2.0
13599         profiles) so that we match MS's behavior in our unit tests.
13600
13601 2006-12-06  Jackson Harper  <jackson@ximian.com>
13602
13603         * TextControl.cs: Make this operation undoable.
13604         * TextBoxBase.cs: Factor the border width into the preferred
13605         height.
13606         - implement Modified as per the spec.
13607
13608 2006-12-06  Chris Toshok  <toshok@ximian.com>
13609
13610         * Timer.cs, Control.cs, Menu.cs: make control_tag private.
13611
13612 2006-12-06  Chris Toshok  <toshok@ximian.com>
13613
13614         * Control.cs: make right_to_left and context_menu fields private.
13615
13616 2006-12-06  Chris Toshok  <toshok@ximian.com>
13617
13618         * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
13619         XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
13620         Control.child_controls private.  switch all uses over to
13621         Control.Controls.
13622
13623 2006-12-06  Chris Toshok  <toshok@ximian.com>
13624
13625         * System.Windows.Forms/GroupBox.cs,
13626         System.Windows.Forms/AccessibleObject.cs,
13627         System.Windows.Forms/ErrorProvider.cs,
13628         System.Windows.Forms/Control.cs,
13629         System.Windows.Forms/UpDownBase.cs,
13630         System.Windows.Forms/ScrollBar.cs,
13631         System.Windows.Forms/DateTimePicker.cs,
13632         System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
13633         System.Windows.Forms/ToolTip.cs,
13634         System.Windows.Forms/RadioButton.cs,
13635         System.Windows.Forms/LinkLabel.cs,
13636         System.Windows.Forms/Splitter.cs,
13637         System.Windows.Forms/TextBoxBase.cs,
13638         System.Windows.Forms/ToolStripTextBox.cs,
13639         System.Windows.Forms/ContainerControl.cs,
13640         System.Windows.Forms/ThemeWin32Classic.cs,
13641         System.Windows.Forms/SizeGrip.cs,
13642         System.Windows.Forms/ToolStripDropDown.cs,
13643         System.Windows.Forms/ScrollableControl.cs: Make Control.parent
13644         private.  switch all uses over to Control.Parent.
13645
13646 2006-12-06  Chris Toshok  <toshok@ximian.com>
13647
13648         * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
13649         Control does this before calling emitting these events.
13650
13651         * TabControl.cs: same.
13652
13653         * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
13654         Control.client_rect.
13655
13656         * ButtonBase.cs: use the ClientSize property instead of the
13657         client_size field.
13658
13659         * ScrollableControl.cs: same.
13660
13661         * Control.cs: another pass at making properties private.  also,
13662         move the initialization of tab_stop to the ctor.
13663
13664 2006-12-05  Andreia Gaita <avidigal@novell.com>
13665
13666         * TabControl.cs: Let the selected index be set freely if the 
13667         control handle is not yet created.
13668
13669 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
13670
13671         * Control.cs: Revert dist_top, dist_right, and dist_bottom to 
13672         internal until I can rewrite DefaultLayout.
13673         * ToolStrip.cs: Fix build error and some general cleaning.
13674         * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
13675         Fix build errors caused by making some of Control's fields private.
13676
13677 2006-12-05  Jackson Harper  <jackson@ximian.com>
13678
13679         * TextControl.cs: Redo Insert a little so that it use IndexOf
13680         instead of Split, this prevents it from messing up on things like
13681         \n\n\n. Also more effecient since the split array doesn't need to
13682         be created.
13683         * TextBoxBase.cs: AppendText doesnt handle multiline and non
13684         multiline text differently, this is the first of many fixes that
13685         will make multiline/non-multiline the same thing as far as the
13686         TextBoxBase is concerned.
13687         - Don't split the text and insert lines, this can lose some line
13688         endings (like is the last line a soft or hard break). Instead use
13689         the new Insert.
13690         - Fix an off by one when combining all the lines in the Text
13691         getter.
13692         - Remove separate multiline handling from the Text getter/setter.
13693
13694 2006-12-05  Chris Toshok  <toshok@ximian.com>
13695
13696         * ButtonBase.cs: a few changes:
13697
13698         - don't reinitialize internal Control fields in the ctor when they
13699         have the same values as Control sets them.
13700
13701         - don't set has_focus in OnGotFocus/OnLostFocus.  Control does
13702         this before calling those methods.
13703
13704         - we don't need to call Refresh for anything.  use Invalidate
13705         instead.
13706
13707         - OnEnabledChanged doesn't need to redraw at all - Control.cs
13708         calls Refresh in its OnEnabledChanged.
13709         
13710         - several of the events we were registered for in the ctor to
13711         redraw ourselves already include calls to Invalidate in the
13712         property setters that raise the events.  remove the extra
13713         invalidation.
13714
13715         - reformat a switch statement that was 83274658 columns wide.
13716         
13717 2006-12-05  Mike Kestner  <mkestner@novell.com>
13718
13719         * ComboBox.cs: fix a unit test regression from a TextBox
13720         SelectionLength return of -1 when there's no selection.  
13721
13722 2006-12-05  Chris Toshok  <toshok@ximian.com>
13723
13724         * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
13725         ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
13726         cleaning up some of the internal Control fields being used by
13727         subclasses.
13728
13729 2006-12-05  Mike Kestner  <mkestner@novell.com>
13730
13731         * ComboBox.cs: fix some Simple mode regressions.  Set Visible on the
13732         listbox after AddImplicit calls since it defaults to hidden. Add a 
13733         hack to preserve requested heights across DropDownStyle changes.
13734
13735 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
13736
13737         * PropertyGrid.cs: Hide FindFirstItem method from public API.
13738
13739 2006-12-05  Chris Toshok  <toshok@ximian.com>
13740
13741         * DataGridView.cs: fix compiler warnings.
13742
13743         * PrintControllerWithStatusDialog.cs: same.
13744
13745         * ToolBar.cs: same.
13746
13747         * FolderBrowserDialog.cs: same.
13748
13749         * Splitter.cs: same.
13750
13751         * DataGridViewComboBoxCell.cs: same.
13752
13753         * XplatUIWin32.cs: same.
13754
13755         * PictureBox.cs: same.
13756
13757         * Win32DnD.cs: same.
13758
13759         * PageSetupDialog.cs: same.
13760
13761         * FileDialog.cs: same.
13762
13763         * PrintDialog.cs: same.
13764
13765         * DataGridTextBoxColumn.cs: same.
13766
13767         * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
13768
13769 2006-12-05  Chris Toshok  <toshok@ximian.com>
13770
13771         * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
13772         MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
13773         System.ComponentModel.EventHandlerList work.
13774
13775 2006-12-05  Jonathan Chambers  <joncham@gmail.com>
13776
13777         * DrawTreeNodeEventArgs.cs: Added.
13778
13779 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13780         
13781         * InternalWindowManager.cs: Remove an unused field.
13782         
13783 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13784
13785         * InternalWindowManager.cs:
13786         - Save the point where the title bar is clicked.
13787         
13788         * MdiWindowManager.cs:
13789         - Only allow moving of the window as long as the 
13790         clicked point on the title bar does not get out of
13791         MdiClient's rectangle. Fixes #79982.
13792         
13793         * MdiClient.cs:
13794         - Added Horizontal/VerticalScrollbarVisible.
13795         - Simplified the scrollbar sizing algorithm.
13796         - Cache the difference in scrolled value in
13797         H/VBarValueChanged and move the calculation out
13798         of the for loop.
13799
13800 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13801
13802         * Control.cs: Make the Console.WriteLine in WndProc 
13803         write more info.
13804
13805 2006-12-05  Chris Toshok  <toshok@ximian.com>
13806
13807         * ToolStripManager.cs, ToolStripButton.cs,
13808         ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
13809         ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
13810         ToolStripSplitButton.cs, ToolStripSeparator.cs,
13811         ToolStripRenderer.cs, ToolStripDropDownItem.cs,
13812         ToolStripProgressBar.cs, ToolStripContainer.cs,
13813         ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
13814         to using System.ComponentModel.EventHandlerList.
13815
13816 2006-12-04  Chris Toshok  <toshok@ximian.com>
13817
13818         * LinkLabel.cs: fix up compiler warnings.
13819
13820         * TableLayoutSettings.cs: same.
13821
13822         * TreeView.cs: same.
13823
13824         * ToolBar.cs: same.
13825
13826         * TabControl.cs: same.
13827
13828         * RichTextBox.cs: same.
13829
13830         * ListViewItem.cs: same.
13831
13832         * PropertyGrid.cs: same.
13833
13834         * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
13835
13836         * ToolTip.cs same.
13837
13838         * TextRenderer.cs: fix up compiler warnings.
13839
13840         * Label.cs: same.
13841
13842         * Form.cs: corcompare fixes.
13843
13844         * PictureBox.cs: fix up compiler warnings.
13845
13846         * ImageListStreamer.cs: same.
13847
13848         * TrackBar.cs: corcompare fix.
13849
13850         * Control.cs: fix up compiler warnings.
13851
13852         * SplitterPanel.cs: same.
13853
13854         * NumericTextBox.cs: same.
13855
13856         * ImageList.cs: same.
13857
13858         * StatusStrip.cs: same.
13859
13860         * ProgressBar.cs: corcompare fix.
13861
13862         * ToolStripButton.cs: fix up compiler warnings.
13863
13864         * ToolStripStatusLabel.cs: same.
13865
13866         * ToolStripSplitButton.cs: same.
13867
13868         * ToolStripSeparator.cs: same.
13869
13870         * ToolStripProgressBar.cs: same.
13871
13872         * ToolStripDropDownMenu.cs: same
13873
13874         * ToolStripDropDown.cs: same.
13875
13876         * ToolStripDropDownButton.cs: same.
13877
13878         * ToolStrip.cs: same.
13879
13880         * ToolStripControlHost.cs: same.
13881
13882         * ToolStripContentPanel.cs: same.
13883
13884         * ToolStripDropDown.cs: same.
13885
13886         * ToolStripContainer.cs: same.
13887
13888         * ToolStripPanel.cs: same, and add "new" where we need it to work
13889         with the new ArrangedElementCollection.
13890
13891         * ToolStripItemCollection.cs: add "new" where we need it to work
13892         with the new ArrangedElementCollection.
13893
13894 2006-12-04  Andreia Gaita <avidigal@novell.com>
13895
13896         * TabControl.cs: Fix default tab selection to after TabControl
13897         gets focus and not before. Fixes #80128
13898
13899 2006-12-04  Chris Toshok  <toshok@ximian.com>
13900
13901         * DataGridTableStyle.cs: remove the gross calling of
13902         datagrid.Refresh from here.  It's a broken idea and it doesn't
13903         work anyway.
13904
13905         * DataGrid.cs: instead, just register/unregister from the
13906         DataGridTableStyle events in CurrentTableStyle.  we play it
13907         conservatively and EndEdit + CalcAreasAndInvalidate on any event,
13908         even though some would most likely not require it.  Fixes bug
13909         #80115 (and one portion of #80117 as a side effect).
13910
13911 2006-12-04  Chris Toshok  <toshok@ximian.com>
13912
13913         * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
13914         so the textbox (if any) goes away.  Fixes bug #80117.
13915
13916 2006-12-04  Chris Toshok  <toshok@ximian.com>
13917
13918         * DataGridColumnStyle.cs: set the column's readonly property
13919         initially based on the property descriptor's IsReadOnly.  Fixes
13920         bug #80044.
13921
13922 2006-12-04  Chris Toshok  <toshok@ximian.com>
13923
13924         * ComboBox.cs: wrap the dropdown style changing work in
13925         SuspendLayout/ResumeLayout.  Fixes bug #79968.
13926
13927 2006-12-04  Jackson Harper  <jackson@ximian.com>
13928
13929         * TextBoxBase.cs: Fix off by one, since these are one-based.
13930         * TextBox.cs: Select all the text when we get focus.  The TextBox
13931         does this but the RTB does not.
13932
13933 2006-12-04  Chris Toshok  <toshok@ximian.com>
13934
13935         * DataGridTextBoxColumn.cs: remove some spew.
13936
13937         * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
13938         but some part of me is saying "it shouldn't be here.."  At any
13939         rate, it fixes bug #80046.  Call IEditableObject.EndEdit after
13940         setting the value.
13941
13942 2006-12-04  Chris Toshok  <toshok@ximian.com>
13943
13944         * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
13945         to reassign the propertydescriptor.
13946
13947 2006-12-04  Jackson Harper  <jackson@ximian.com>
13948
13949         * TextBoxBase.cs:
13950         * TextControl.cs: Remove some unused variables.  Maybe this will
13951         patch things up between mike and I.
13952         - don't split lines less then one char wide, if the viewport is
13953         that small text won't be visible anyways.
13954         
13955 2006-12-04  Jackson Harper  <jackson@ximian.com>
13956
13957         * TextBoxBase.cs: Default selection length is -1, need to do some
13958         more testing on windows to see when this is used for the property.
13959         - Redid the Lines [] property to that we properly remove soft line
13960         breaks
13961         - added support for preserving carriage returns
13962         -  CanUndo is not a variable like 'is undo enabled' it just returns
13963         true if there is undo operations available.
13964         - AppendText doesn't need to grab the last tag itself anymore,
13965         this happens automatically when we move the cursor.
13966         * TextControl.cs: Add CompoundActions to the undo class. This
13967         allows combining the other operations into one big option.  ie a
13968         paste will combine { delete old, insert new, move cursor }
13969         - Add InsertString undo operation
13970         - New method for deleting multiline text
13971         - Add carriage returns to lines. So we can preserve carriage
13972         returns when text is 'roundtripped'
13973
13974 2006-12-04  Chris Toshok  <toshok@ximian.com>
13975
13976         * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
13977         minimum 0.  Fixes the scrollbar exception in bug #80136.
13978
13979 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13980
13981         * MdiClient.cs: 
13982         * MdiWindowManager: Removed unused fields and methods.
13983         
13984 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13985         
13986         * StatusBar.cs: Update all panels when a AutoSize=Contents
13987         panel needs updating.
13988         
13989         * StatusBarPanel.cs: Remove twidth and only use initialize.
13990         Fixes #80031.
13991                 
13992 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13993
13994         * Form.cs: When a form's MdiParent is set add it directly
13995         on top of the z-order in stead of relying on MdiClient's
13996         ActivateChild to do it. Fixes #80135.
13997         
13998         * MdiClient.cs: 
13999         - Remove original_order, mdi_child_list is already doing
14000         the same thing.
14001         - Create mdi_child_list on construction in
14002         stead of first use (avoids a few null checks).
14003
14004         * MenuItem.cs: Use an already existing list of mdi children
14005         to get the correct order of children and remove the other
14006         redundant list.
14007
14008 2006-12-04  Chris Toshok  <toshok@ximian.com>
14009
14010         * PropertyGridView.cs: cached_splitter_location is only used in
14011         !DOUBLEBUFFER code.
14012
14013         * PropertyGrid.cs: implement the ComComponentNameChanged event
14014         using Events, hoping that would fix the warning.  Looks like a
14015         compiler bug instead (#80144).
14016
14017         * PropertyManager.cs: remove unused method.
14018
14019 2006-11-04  Everaldo Canuto  <everaldo@simios.org>
14020
14021         * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar, 
14022         include parentesis to fix expression evaluation. Fixes #79634.
14023
14024 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
14025         
14026         * MenuAPI.cs:
14027         - Changes to fix behavior in Menu control, some reported in #80097
14028         and other detected during behavior refactory like a select event
14029         problems.
14030         - Remove unneded "if's" conditions.
14031         - Created an internal to flag when popup is active in control, we need 
14032         it because in .NET you can have menu active but without popup active
14033         when you active menu using popup without visible items.
14034         - Mimic win32 behavior for Select and Popup events.  
14035         - Dont open popup menu when you dont have visible subitems.
14036         - Do nothing when click on disabled menu item.
14037         - Some small changes to follow the coding style guidelines.
14038         - Unselect menu only when another control gives focus. Fixes #80097.
14039         - Remove unused code.
14040         
14041         * MenuItem.cs: internal VisibleItems method to check if menu
14042         theres visible subitems, it will be usefull to fix some 
14043         behavior in Menu control.
14044         
14045 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
14046         
14047         * Timer.cs: Tag property for 2.0 profile.
14048         
14049 2006-12-01  Chris Toshok  <toshok@ximian.com>
14050
14051         [ after removing all warning suppressions, this cleans up over 100 warnings. ]
14052         
14053         * Win32DnD.cs: comment out some unused fields.
14054
14055         * XplatUIWin32.cs: comment out some unused pinvokes, and remove
14056         some unused properties/methods.
14057
14058         * XplatUIX11.cs: fix MousePosition so we override the base class's
14059         property instead of conflicting with it.
14060
14061         * PictureBox.cs: comment out some unused fields
14062
14063         * OSXStructs.cs: make some struct fields public.
14064
14065         * XplatUIOSX.cs: comment out some unused pinvokes, and fix
14066         MousePosition so we override the base class's property instead of
14067         conflicting with it.
14068
14069         * X11Dnd.cs: comment out some unused fields
14070
14071         * X11DesktopColors.cs: fix some struct field visibility to quiet
14072         the compiler.
14073
14074         * X11Dnd.cs: remove some debug code.
14075
14076         * ThemeClearlooks.cs: comment out unused field.
14077
14078         * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
14079
14080         * ThemeGtk.cs: comment out some unused pinvokes.
14081
14082         * Timer.cs: remove some unused fields.
14083
14084         * ThemeClearlooks.cs: comment out unused field.
14085
14086         * UpDownBase.cs: comment out unused field.
14087
14088         * DataObject.cs: comment out unused field.
14089
14090         * DataGridBoolColumn.cs: reomve unused field.
14091
14092         * DataGrid.cs: remove unused field.
14093
14094         * Cursor.cs: remove old ToBitmap code.
14095
14096         * ControlPaint.cs: remove unused method.
14097
14098         * ScrollBar.cs: remove unused fields.
14099
14100         * ComboBox.cs: remove unused field, and chain up to
14101         AccessibleObject ctor.
14102
14103         * ListBox.cs: remove unused field.
14104
14105         * ButtonBase.cs: wrap a couple fields in NET_2_0.
14106
14107         * GridEntry.cs: remove unused fields.
14108
14109         * Binding.cs: remove unused fields.
14110
14111         * AxHost.cs: remove unused method.
14112
14113         * ContainerControl.cs: remove unused field.
14114
14115         * ScrollableControl.cs: remove unused fields.
14116
14117 2006-12-01  Chris Toshok  <toshok@ximian.com>
14118
14119         * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
14120         the Where/WhereString stuff.  it's easy enough to CWL
14121         Environment.StackTrace.
14122
14123         * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
14124         unused private fields.
14125
14126 2006-12-01  Jackson Harper  <jackson@ximian.com>
14127
14128         * TextControl.cs: Do not update the view while inserting multiline
14129         text. If we update the view we might wrap lines, before entering
14130         the new lines, which causes the new line insertion calculations to
14131         be totally fubared.
14132         - Remove an old TODO
14133         - Make debug output a little nicer
14134         
14135 2006-12-01  Chris Toshok  <toshok@ximian.com>
14136
14137         * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
14138
14139 2006-12-01  Chris Toshok  <toshok@ximian.com>
14140
14141         [ fix the majority of the CS0108 warnings we've been suppressing ]
14142         
14143         * TreeView.cs: mark BackgroundImageChanged as 'new'.
14144
14145         * ToolBar.cs: ImeMode just passes stuff to Control.  Rename Layout
14146         to "LayoutToolBar" to quiet mcs.
14147         
14148         * TabControl.cs: mark our ControlCollection class as 'new'.
14149
14150         * TextBoxBase.cs: mark some events as 'new'.
14151
14152         * Splitter.cs: TabStop is 'new'.
14153
14154         * ControlBindingsCollection.cs: mark a few methods as new since
14155         they change the visibility from protected to public.
14156
14157         * RadioButton.cs: DoubleClick -> base class, and remove unused
14158         HaveDoubleClick.
14159
14160         * MonthCalendar.cs: ImeMode property -> base class, and mark many
14161         events as new.
14162
14163         * NumericUpDown.cs: TextChanged -> base class.
14164
14165         * CheckedListBox.cs: mark our ObjectCollection class as new to
14166         quiet mcs.
14167
14168         * FolderBrowserDialog.cs: make HelpRequest event new and have it
14169         muck with the base class.
14170
14171         * StatusBar.cs: fix some mcs warnings about Update being the same
14172         name as a base class method.
14173
14174         * RichTextBox.cs: mark some events as new, and make them do things
14175         to the base class impl.
14176
14177         * UserControl.cs: mark TextChanged as new, and have it manipulate
14178         base.TextChanged.
14179
14180         * UpDownBase.cs: mark some things new.
14181
14182         * CheckBox.cs: mark DoubleClick "new", and add some text about
14183         what we need to look at.
14184
14185         * Panel.cs: make the events "new", and manipulate the base
14186         version.  these are just here for attributes.
14187
14188         * AccessibleObject.cs: make owner private.
14189
14190         * Control.cs: deal with AccessibleObject.owner being private.
14191         cache our own copy if we need it.
14192
14193         * Button.cs: add "new" to the DoubleClickEvent.
14194
14195         * ListBox.cs: no need to track our own has_focus here.  let
14196         Control.has_focus do it for us.  Also some other work to clear up
14197         warnings about not overriding base class methods of the same name.
14198         
14199         * ComboBox.cs: clear up some warnings about not override base
14200         class methods of the same name.
14201
14202 2006-12-01  Chris Toshok  <toshok@ximian.com>
14203
14204         * Form.cs: flag a few things as "new" to quiet some of the mcs
14205         warnings.
14206
14207         * AxHost.cs: same.
14208
14209         * PrintPreviewDialog.cs: same.
14210
14211         * DataGridView.cs: fix a ton of corcompare warnings.  not all, but
14212         now DGV isn't so horrible on the class status page.  also, move
14213         all events to using System.ComponentModel.EventHandlerList.  my
14214         wrists hurt.
14215
14216 2006-12-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14217
14218         * MdiWindowManager.cs:
14219         - Set form to active mdi child if shown,
14220         and update the active mdi child to the next 
14221         remaining child in the z-order if the form is hidden.
14222
14223         * Form.cs: 
14224         - Track if the form has been visible and if its 
14225         visibility is beeing changed, so that the MdiClient
14226         can properly decide the ActiveMdiChild. The MdiClient 
14227         cannot track this since the form can change visibility 
14228         before MdiClient is created.
14229
14230         * MdiClient.cs:
14231         - Don't activate anything of the parent form is changing
14232         its visibility.
14233         - Rework ActiveMdiChild to only return visible mdi 
14234         children and take into account several other corner 
14235         cases.
14236
14237 2006-12-01  Chris Toshok  <toshok@ximian.com>
14238
14239         * IBindableComponent.cs: new 2.0 interface.
14240
14241 2006-12-01  Gert Driesen  <drieseng@users.sourceforge.net>
14242
14243         * DataGrid.cs: Font for caption area is bold by default.
14244
14245 2006-12-01  Everaldo Canuto  <everaldo@simios.org>
14246
14247         * Menu.cs: Tag property for 2.0.
14248         
14249 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
14250
14251         * ThemeWin32Classic.cs: Adjust menu separator drawing. 
14252         
14253 2006-12-01  Chris Toshok  <toshok@ximian.com>
14254
14255         * TreeView.cs: doh, the Begin* events should be
14256         TreeViewCancelEventHandler.
14257
14258 2006-12-01  Chris Toshok  <toshok@ximian.com>
14259
14260         * Form.cs: Form.ControlCollection already stores off the
14261         form_owner field.  don't access the base class's internal "owner"
14262         field.
14263
14264         * Control.cs: make all the fields in Control.ControlCollection
14265         private.  there's no need for any internal fields here.
14266
14267 2006-12-01  Chris Toshok  <toshok@ximian.com>
14268
14269         * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
14270         OnHandleCreated.  Fixes bug #80109.
14271
14272 2006-12-01  Chris Toshok  <toshok@ximian.com>
14273
14274         * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
14275         SplitContainer.cs, Control.cs, StatusStrip.cs,
14276         DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
14277         NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
14278         DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
14279         DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
14280         Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
14281         LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
14282         MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
14283         TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
14284         PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
14285         DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
14286
14287         do most of the work to convert our code over to use
14288         System.ComponentModel.Component.Events for
14289         adding/removing/dispatching events.
14290
14291
14292 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
14293
14294         * DataGridView.cs: Fix an ArgumentNullException reported 
14295         twice today in IRC.
14296
14297 2006-11-30  Mike Kestner  <mkestner@novell.com>
14298
14299         * ComboBox.cs: fix the scrollbar mouse event forwarding in the 
14300         grabbed listbox.  Fixes #80036 and #80101.
14301
14302 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
14303
14304         * Message.cs: Changed ToString() to match MS.
14305         
14306 2006-11-30  Jackson Harper  <jackson@ximian.com>
14307
14308         * TextBoxBase.cs: You can still change the selected text on a read
14309         only textbox.
14310         * TextControl.cs: Lower magic number for wrap calculations. This
14311         lets text get closer to the right (far) edge.
14312
14313 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
14314
14315         * Control.cs: Tweak 2.0 layout properties.
14316         * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
14317         * TextRenderer.cs: Add a new overload.
14318         * ToolStrip*: Huge amount of changes and new features.
14319
14320 2006-11-30  Mike Kestner  <mkestner@novell.com>
14321
14322         * ComboBox.cs: fixes for LargeChange and Maximum to get the 
14323         scroll range correct.  Fixes #79994.
14324
14325 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
14326
14327         * MdiWindowManager.cs: Update main form's text when
14328         a form is closed. (fixes #80038)
14329         
14330 2006-11-30  Everaldo Canuto  <everaldo@simios.org>
14331
14332         * ToolBar.cs:
14333         - Fix an regression in ButtonSize.
14334         - Get ImeMode default value change to "Disable".
14335         - Get ShowTooltips default value change to true, default value is 
14336         "false" but after make a test in .NET we get "true" result as default.
14337         
14338 2006-11-29  Jonathan Pobst  <monkey@jpobst.com>
14339
14340         * ToolStripDropDown.cs: Fix for SupportsTransparency change.
14341
14342 2006-11-29  Chris Toshok  <toshok@ximian.com>
14343
14344         * XplatUIWin32.cs (GetWindowTransparency): check return value of
14345         GetLayeredWindowAttributes.  if it's 0, return 1.0, as
14346         SetWindowTransparency hasn't been called.
14347
14348 2006-11-29  Chris Toshok  <toshok@ximian.com>
14349
14350         * Form.cs (set_TransparencyKey): only call SetWindowTransparency
14351         if it's supported.
14352         (set_AllowTransparency): reorder things a little so that the
14353         WS_EX_LAYERED style is removed properly.
14354
14355 2006-11-29  Chris Toshok  <toshok@ximian.com>
14356
14357         [ totally cosmetic eye-candy feature, fixes bug #80089 ]
14358         
14359         * Form.cs: only call the XplatUI transparency method (get/set) if
14360         SupportsTransparency says it's supported. Otherwise fallback to
14361         doing nothing (in the set case) or returning the instance field we
14362         cache (in the get case).
14363
14364         * XplatUIStructs.cs: add TransparencySupport flag enum.
14365         
14366         * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
14367         change to SupportsTransparency.
14368
14369         * XplatUIOSX.cs: stub out GetWindowTransparency, and return
14370         TransparencySupport.None from SupportsTransparency.
14371
14372         * XplatUIX11.cs: Stub out GetWindowTransparency, and return
14373         TransparencySupport.Set from SupportsTransparency.
14374
14375         * XplatUIWin32.cs: implement GetWindowTransparency calling
14376         GetLayeredWindowAttributes, and implement SupportsTransparency by
14377         checking whether or not both
14378         GetWindowTransparency/SetWindowTransparency are available
14379         entrypoints.  We need to do this since SetWindowTransparency is
14380         available as of win2k, but GetWindowTransparency requires winxp.
14381         yay win32 api.
14382
14383         * XplatUI.cs: Add GetWindowTransparency, and change
14384         SupportsTransparency to allow for either/both Get/Set.
14385
14386 2006-11-29  Chris Toshok  <toshok@ximian.com>
14387
14388         * DataGrid.cs: keep from going into an infinite loop redrawing a
14389         datagrid that has no datasource.  Fixes bug #80033.
14390
14391 2006-11-29  Chris Toshok  <toshok@ximian.com>
14392
14393         * MenuItem.cs: fix the NRE when we assign text (and therefore call
14394         Invalidate) before the mainmenu has been assigned to a control.
14395
14396 2006-11-29  Chris Toshok  <toshok@ximian.com>
14397
14398         * DataGrid.cs: detect when we should be double the double click
14399         row/column autosize stuff, although that codepath has yet to be
14400         written.  part of the work for bug #79891.
14401
14402 2006-11-29  Chris Toshok  <toshok@ximian.com>
14403
14404         * Binding.cs (SetControl): fix unit test.
14405
14406 2006-11-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14407
14408         * PageSetupDialog.cs: Validate the margins and set them in
14409         PageSettings. 
14410         * NumericTextBox.cs: New class to mimic the behavior of the
14411         textboxes used in the printing dialogs.
14412
14413 2006-11-29  Andreia Gaita  <avidigal@novell.com>
14414         
14415         * Form.cs: Revert previous change (remove call UpdateBounds
14416         from form constructor), because it messes with the handle creation
14417         order, and that one needs lots and lots of love.
14418         * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
14419         for valid printer and throw InvalidPrinterException if document
14420         is set but printer not valid), adding a MonoTODO. Once 
14421         handle creation is done properly, we can put this back in.
14422
14423 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
14424
14425         * MenuItem.cs: Create a invalidate method for menu item, to be
14426         calling from set text, it make text changes to imadiate update
14427         on screen. Fixes #80013. 
14428         
14429 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
14430
14431         * ToolBar.cs: Fixes and simplify toolbar button layout, it 
14432         fixes bug #80070 and some other problem on toolbar buttons
14433         layout.
14434
14435 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
14436
14437         * ThemeWin32Classic.cs: Paint toolbar toggle button background 
14438         with dotted brush.      Fixes #79564
14439         
14440 2006-11-28  Andreia Gaita  <avidigal@novell.com>
14441
14442         * Form.cs: Removed call to UpdateBounds on Form
14443         constructor, it was causing a call to CreateHandle
14444         before it was supposed to.
14445         * PrintControllerWithStatusDialog: Applied patch
14446         by Chris Toshok to hide controller when there are
14447         no printers available.
14448         PrintDialog.cs: initialize printer settings to 
14449         null - correct DefaultValues test #5
14450         * PrintPreviewControl.cs: Move PrintController
14451         initialization to GeneratePreview
14452         * PrintPreviewDialog.cs: 
14453         - Remove Preview generation     from Document_set(). It is 
14454         called on OnPaint
14455         - Throw InvalidPrinterException on CreateHandle if
14456         a Document is set but there are no printers or 
14457         printer is not valid.
14458         * ThemeWin32Classic: don't paint PrintPreviewControl
14459         if there is nothing to paint    
14460
14461 2006-11-28  Miguel de Icaza  <miguel@novell.com>
14462
14463         * Form.cs: Add another popular method.
14464
14465         * TabPage.cs: ditto.
14466
14467 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14468
14469         * MenuItem.cs: Fixed a warning.
14470         * InternalWindowManager: Fixed a warning.
14471
14472 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14473
14474         * MenuItem.cs:
14475         - When cloning a menu also clone MdiList and clone the 
14476           window menu items properly (as the forms and menuitems
14477           are kept in an internal hashtable, these need updating 
14478           as well)
14479         - Rewrote the window menu code, menu items are added in the
14480           order the forms were added to their parent, and they are
14481           updated every time the window menu is shown (before the
14482           list was only generated once, in the current order of the
14483           forms, and would never be updated). A checkmark is shown
14484           next to the item corresponding to the active mdi child.
14485
14486 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14487
14488         * XplatUIStructs.cs: 
14489         - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
14490         
14491         * XplatUIWin32.cs: 
14492         - Added TME_NONCLIENT to TMEFlags.
14493         - Handles WM_NCMOUSEMOVE in GetMessage to 
14494           generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
14495
14496         * MdiWindowManager:
14497         - Now merges mdi child menu to parent menu when maximized.
14498         - Recalculate NC areas of both mdi child and mdi parent. 
14499           Fixes #79757 (4).
14500           on window state and size changes.Fixes #79844 (3).
14501         - Handle WM_NCCALCSIZE to properly calculate borders.
14502
14503         * Form.cs:
14504         - Add/remove to the mdi containers list of mdi children 
14505           in the order they are added.
14506         - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE 
14507           to the maximized mdi child.
14508         
14509         * InternalWindowManager.cs:
14510         - Only execute a click on the control buttons on the mouse up,
14511           not on the mouse down. Show the state of the button 
14512           (was only showing Normal state, never Pressed state). The
14513           pressed button now follows the mouse (if you click the Close 
14514           button and move the mouse over the Maximize button, the 
14515           Maximize button will be shown as pressed). Since Win32 does
14516           not generate WM_NCLBUTTONUP if you release the button outside
14517           of the nc area, we need to handle WM_NCMOUSELEAVE and treat
14518           it as a mouse up.
14519         
14520         * ThemeWin32Classic.cs:
14521         - Draw a missing border around mdi child forms. Fixes #79844 (2).
14522
14523         * MdiClient.cs:
14524         - Added a list of forms which contains the order the forms are
14525           added to the mdi parent.
14526         - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
14527         - Handle WM_NCCALCSIZE to properly calculate the 3D border.
14528         - If the active form changes set the scrollbars to the top
14529           of the Z order, otherwise the form could hide them.
14530         - Scrollbars are now sized according to ClientSize, not 
14531           to Size, and they take into account the other scrollbar
14532           to determine maximum.
14533         
14534 2006-11-28  Rolf Bjarne Kvinge <RKvinge@novell.com>
14535         
14536         * XplatUI.cs:
14537         * XplatUIDriver.cs:
14538         * XplatUIX11.cs:
14539         * XplatUIWin32.cs:
14540         * XplatUIOSX.cs:
14541         - Added RequestAdditionalWM_NCMessages for windows to 
14542           opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
14543           Currently only implemented in XplatUIWin32.
14544
14545 2006-11-27  Chris Toshok  <toshok@ximian.com>
14546
14547         * Hwnd.cs: only add the hwnd to the windows hash in
14548         set_WholeWindow and set_ClientWindow if whole_window/client_window
14549         are not IntPtr.Zero.  also, remove the unused SetObjectWindow.
14550
14551 2006-11-27  Mike Kestner  <mkestner@novell.com>
14552
14553         * ComboBox.cs: remove redundant OnDropDown call.  It is called
14554         from the ComboListBox.ShowWindow code. Fixes #79969.
14555
14556 2006-11-27  Chris Toshok  <toshok@ximian.com>
14557
14558         * Hwnd.cs: remove the setters for ExposePending and
14559         NCExposePending - noone uses them.
14560
14561 2006-11-27  Jackson Harper  <jackson@ximian.com>
14562
14563         * TextControl.cs: new param for ReplaceSelection which determines
14564         whether we select the new selection, or set the cursor to the end
14565         of the new selection.
14566         * TextBoxBase.cs: Use new param for ReplaceSelection.  When
14567         pasting, select the new text.
14568         * RichTextBox.cs: Use new param for ReplaceSelection.
14569
14570 2006-11-27  Jackson Harper  <jackson@ximian.com>
14571
14572         * TextBoxBase.cs: Set the selection to the caret after the caret
14573         is moved, otherwise they get out of sync.
14574
14575 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
14576
14577         * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
14578         it fixes #80015
14579
14580 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
14581
14582         * ThemeWin32Classic.cs: 
14583         - Fix toolbar drop down arrow position.
14584         - Fix drop down appearance when ToolBar.Appearance is normal,
14585         it fixes #80018.
14586         
14587 2006-11-26  Gert Driesen  <drieseng@users.sourceforge.net>
14588
14589         * ProgressBar.cs: GetStyle fixes for 2.0 profile.
14590         * Control.cs: Same.
14591         * UpDownBase.cs: Same.
14592         * ButtonBase.cs: Same.
14593         * ScrollBar.cs: Same.
14594         * TrackBar.cs: Same.
14595         * PictureBox.cs: Same.
14596         * UserControl.cs: Same.
14597         * Label.cs: Same.
14598         * ListControl.cs: Same.
14599         * TextBoxBase.cs: Same.
14600         * ListView.cs: Same.
14601         * RichTextBox.cs: Same.
14602         * TreeView.cs: Same.
14603
14604 2006-11-25  Jordi Mas i Hernandez <jordimash@gmail.com>
14605
14606         * PrintDialog.cs:
14607         - Text label for where 
14608         - Text label comment was not shown
14609
14610 2006-11-23  Everaldo Canuto  <everaldo@simios.org>
14611
14612         * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
14613
14614 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
14615
14616         * InternalWindowManager.cs: 
14617         - Handle WM_PARENTNOTIFY to activate the form
14618         if any child control is clicked.
14619         - The form is only sizable if not minimized.
14620
14621         * MdiWindowManager.cs:
14622         - Save the IconicBounds if the form is moved.
14623         - Rework SetWindowState, now the window bounds 
14624         are stored only if the old window state is Normal.
14625         
14626         * MdiClient.cs:
14627         - In SetWindowStates store the old window state if 
14628         the window is maximized and restore window state if
14629         the window looses focus.
14630         - Don't handle any scrollbar value changes if 
14631         initializing the scroll bars. Fixes #79771.
14632         - Reworked ArrangeIconicWindows. Current algorithm
14633         tests bounds agains all other minimized windows, if
14634         any intersections create new bounds (going left to 
14635         right, bottom to top) and then test again. When 
14636         successful the bounds are saved and never computed
14637         again. Fixes #79774.
14638
14639 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
14640
14641         * InternalWindowManager.cs: Added HandleTitleBarUp.
14642
14643 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
14644
14645         * NumericUpDown.cs: In .NET 1.1, user entered text is still
14646         hexadecimal in ParseUserEdit.
14647
14648         
14649 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
14650
14651         * MdiWindowManager.cs: 
14652         - Handle a click on the form's icon to show the 
14653         system menu (when maximized). Fixes #79775.
14654         - Change the existing click handler for the form's
14655         icon when not maximized to show on MouseUp.
14656         Fixes #79776.
14657
14658         * Form.cs: In OnResize only layout the mdi child's
14659         parent if it actually has a parent. Might not if
14660         the window is closing.
14661
14662
14663 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
14664
14665         * MdiClient.cs: Ignore active MDI client for text of parent, if
14666         child has no text set.
14667
14668 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
14669
14670         * ToolBar.cs: Fixed ToString to match MS.
14671
14672 2006-11-22  Andreia Gaita  <avidigal@novell.com>
14673
14674         * NumericUpDown: 
14675         - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to 
14676         update inner values on set. Fixes #79966.
14677         - Override OnLostFocus to update value on NET 2. Fixes #79950.
14678         - Fix hexadecimal parsing.
14679         
14680         * UpDownBase: Override OnGotFocus and OnLostFocus to notify 
14681         parent. Fixes #79957
14682
14683 2006-11-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14684
14685         * Control.cs: After calling SetWindowsPos in SetBoundsCore 
14686         the actual size has to be queried, since if height /
14687         width is negative Win32 changes it to 0. 
14688         Fixes #79999 on Windows.
14689         
14690         * XplatUIX11.cs: Set height / width to 0 if negative
14691         in SetWindowPos. Fixes #79999 on Linux.
14692         
14693 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
14694
14695         * ThemeWin32Classic.cs: Fix text redenring when button is
14696         pressed.
14697
14698 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
14699
14700         * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
14701         and later navigate by mouse. Fixes #79528.
14702
14703 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
14704
14705         * ToolBar.cs: Set default value for TabStop to false in
14706         constructor, it fixes remaining behavior of bug #79863.
14707
14708 2006-11-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14709
14710         * MdiWindowManager.cs:
14711         * InternalWindowManager.cs:
14712         - Moved a few methods specific to Mdi from 
14713         InternalWindowManager to MdiWindowManager.
14714         Fixes #79996.
14715         
14716 2006-11-21  Chris Toshok  <toshok@ximian.com>
14717
14718         * XplatUIOSX.cs: stub out InvalidateNC.
14719
14720         * XplatUIWin32.cs: implement InvalidateNC using the call I found
14721         at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
14722
14723         * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
14724
14725         * XplatUIDriver.cs: add InvalidateNC abstract method.
14726
14727         * XplatUI.cs: add InvalidateNC.
14728
14729 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
14730
14731         * ToolBar.cs: Invalidate complete button area when pressed status 
14732         was changed.
14733         * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
14734         * ThemeWin32Classic.cs: Increase vertical and horizontal position 
14735         by 1 when button is pressed.
14736
14737 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
14738
14739         * ToolButton.cs: Invalidate middle of DropDown button when
14740         ToolBar theres DropDownArrows.
14741         * ThemeWin32Classic.cs: Change position of DropDown arrow and
14742         fix DropDown drawing operations.
14743
14744 2006-11-20  Chris Toshok  <toshok@ximian.com>
14745
14746         * NativeWindow.cs: fix the formatting of functions ('{' on the
14747         following line), and enable the thread exception dialog.
14748
14749         * Application.cs: remove the duplicate exception catching from
14750         here.
14751
14752 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
14753
14754         * Toolbar.cs: Triggers button click event when click on icon
14755         of dropdown ToolBarButton. Fixes #79912.
14756         
14757 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14758
14759         * Theme.cs:
14760         * ThemeWin32Classic.cs:
14761         - Added a property WindowBorderFont to enable themeing
14762           of mdi child windows' Text.
14763           
14764 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14765
14766         * InternalWindowManager.cs:
14767         * Form.cs:
14768         * MdiClient.cs:
14769         * MdiWindowManager.cs: 
14770         - If mdi child is maximized, set mdi parent's
14771           text to "Parent - [Child]". Fixes #79770.
14772         - If there is any maximized mdi child windows, only the active 
14773           window (and any new windows) is maximized, the rest are normal.
14774         - On a WindowState change only save mdi child's window bounds 
14775           if the old window state was normal. Fixes #79774.
14776         - The scroll bars are now calculated on hopefully all
14777           necessary events. Fixed #79771 / #79844->6 / #79906.
14778         - MdiClient.SizeScrollBars() now takes into account docked 
14779           controls in the parent when calculating available space.
14780         - InternalWindowManager now always repaints the entire title
14781           area. Fixes #79844->1/4/5.
14782         - Added RequestNCRecalc on mdi child windowstate changes.
14783           Fixes #79772.
14784
14785 2006-11-20  Mike Kestner  <mkestner@novell.com>
14786
14787         * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
14788         in the MouseUp handler of the listbox and move the return handling
14789         code to FireMouseUp to avoid scrolling on ups.  Fixes #79952.
14790
14791 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
14792
14793         * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855. 
14794
14795 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
14796
14797         * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
14798           working in 1.2.x anymore. So, updated.
14799
14800 2006-11-19  Gert Driesen  <drieseng@users.sourceforge.net>
14801
14802         * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
14803         NumberGroupSeparator of current culture instead of assuming en-US.
14804         Fixed bug #79967.
14805
14806 2006-11-17  Mike Kestner  <mkestner@novell.com>
14807
14808         * Control.cs: Add the concept of implicit bounds setting so that
14809         dock/undock round trips preserve explicitly set size/locations.
14810         Fixes #79313.
14811
14812 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
14813
14814         * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
14815           can't handle those filters. (Fixes bug #79961)
14816
14817 2006-11-17  Chris Toshok  <toshok@ximian.com>
14818
14819         [ fixes the exit/crashes associated with #79835.  it's clearly
14820         suboptimal though, we need to figure out a better way to solve
14821         this. ]
14822         
14823         * PrintPreviewControl.cs: deal with the new invalid printer
14824         exceptions.
14825
14826         * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
14827         and return false (so CommonDialog.ShowDialog doesn't actually show
14828         the form.)
14829
14830         * PrintDialog.cs: enable/disable the Ok button depending on
14831         whether or not the printer is valid.
14832
14833         * CommonDialog.cs (ShowDialog): only actually show the form if
14834         RunDialog returns true.
14835
14836 2006-11-17  Jackson Harper  <jackson@ximian.com>
14837
14838         * TextControl.cs: When soft splitting a line, mark it as a soft
14839         split line. Also carry over the current line break to the next
14840         line.
14841
14842 2006-11-17  Chris Toshok  <toshok@ximian.com>
14843
14844         * XplatUIX11.cs: when scrolling a window with an invalid area, we
14845         only want to shift the part of the invalid area that overlaps the
14846         area we're scrolling.  we also don't want to clear the invalid
14847         area unless the invalid area was entirely contained within the
14848         scrolling area.
14849
14850 2006-11-16  Chris Toshok  <toshok@ximian.com>
14851
14852         * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
14853         also make sure to free the memory returned by XGetWindowProperty
14854         in GetText().
14855
14856         * X11Structs.cs: remove the TimerEvent stuff, it's unused.
14857
14858 2006-11-16  Chris Toshok  <toshok@ximian.com>
14859
14860         * XplatUI.cs: add a new super secret way to get at the totally
14861         unsupported X11 backend.
14862
14863 2006-11-16  Gert Driesen  <drieseng@users.sourceforge.net>
14864
14865         * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
14866
14867 2006-11-16  Jackson Harper  <jackson@ximian.com>
14868
14869         * TreeView.cs: Allow more explicit setting of top node position
14870         for scrollbars. Slower algo, but more accurate.
14871         - CollapseAll should maintain the current top node.
14872         * TextBoxBase.cs: When positioning the caret, use the line, pos
14873         method, since the x, y method does not grab the correct tag, and
14874         the caret height never gets set correctly. (Maybe I should just do
14875         away with the caret having its own height, and always use the
14876         carets current tag for height).
14877
14878 2006-11-16  Jonathan Pobst  <monkey@jpobst.com
14879
14880         [Fixes 79778, 79923]
14881
14882         * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
14883         Parent to the FosterParent instead.
14884
14885 2006-11-16  Jackson Harper  <jackson@ximian.com>
14886
14887         * TreeView.cs: Need to recalc the topnode when we expand or
14888         collapse. The scrolling methods can't handle this on their own,
14889         since they use differences between the last scroll position, and
14890         those difference get completely messed up since we are expanding
14891         nodes.  This problem should probably be fixed in the scrolling
14892         methods, so they can figure out exactly where they are, but this
14893         will slow things down a little.
14894         * ThemeWin32Classic.cs: Special case for groupboxes with empty
14895         strings, makes nunit-gui look a lot nicer.
14896
14897 2006-11-16  Chris Toshok  <toshok@ximian.com>
14898
14899         * XplatUIX11.cs: nasty, nasty, nasty changes required because of
14900         the broken multithreaded event handling we have in here.  File
14901         this entry under "Why we should move to the new X11 backend".
14902
14903         Any thread can make it into UpdateMessageQueue, which gets events
14904         from the X socket - some of which could belong to hwnds being
14905         managed by a different thread.  We can also have multiple threads
14906         in UpdateMessageQueue at the same time, with each one reading from
14907         the X socket.  This leads to many problems, with the following
14908         solutions:
14909
14910         We can't use hwnd.Queue.Enqueue anywhere in here and must use
14911         EnqueueLocked.
14912
14913         The MotionNotify compression we do can't work across threads
14914         (without locking the entire queue, perhaps) since we call
14915         hwnd.Queue.Peek, so we just punt and don't compress motion events
14916         unless the owning thread is the one which got the X event.
14917
14918         ConfigureNotify is another fun one, since it modifies the hwnd's
14919         bounds and then enqueues the event.  We add a lock to Hwnd which
14920         is held when setting configure_pending to true (and enqueuing the
14921         event).
14922
14923         There is a race wrt the wake socket.  we need to make sure that
14924         only 1 thread is waiting on that socket, or else a thread could
14925         sleep waiting for data that never comes.  It's difficult (but not
14926         impossible) to make happen, because it seems to require something
14927         like the following:
14928
14929             1. Thread 1 polls on wake_receive
14930         
14931             2. poll returns saying there's data to be read on
14932                wake_receive.
14933         
14934             3. Thread 2 polls on wake_receive and immediately returns
14935                saying there's data to be read.
14936
14937             4. Thread 2 reads the wakeup byte from wake_receive
14938
14939             5. Thread 1 attempts to read the wakeup byte from
14940                wake_receive.
14941
14942             6. Thread 2 exits (due to a form closing, perhaps).
14943
14944             7. Thread 1 blocks forever.
14945         
14946         Fun, eh?
14947
14948         Fixing the Expose handling isn't done yet, and the races inherent
14949         in that piece of code are responsible for the drawing mistakes you
14950         see when generating expose events in a MT app (like NPlot).  This
14951         one is the likely to be the hardest to bandaid, and it doesn't
14952         appear to cause anything but drawing problems.  The other issues
14953         caused apps to exit or hang.
14954
14955         * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
14956         called from a different thread than the one that should be calling
14957         these functions.
14958
14959         * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
14960
14961 2006-11-15  Chris Toshok  <toshok@ximian.com>
14962
14963         * Application.cs: null out the context's MainForm when we exit
14964         RunLoop.  Fixes a newly checked in unit test as well as the last
14965         ODE from bug #79933.
14966
14967 2006-11-15  Chris Toshok  <toshok@ximian.com>
14968
14969         * Form.cs (set_Owner): allow a null value so we can clear the
14970         form's owner.
14971         (Dispose): set all our owned_form's Owner properties to null, and
14972         clear the owned_forms collection.
14973         (WM_CLOSE): clean up this a little bit.. still not right though.
14974
14975         * ApplicationContext.cs: OnMainFormClosed should only call
14976         ExitThreadCore if the main form isn't recreating.  Fixes unit
14977         test.
14978
14979 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
14980
14981         [Fixes 78346]
14982
14983         * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
14984
14985 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
14986
14987         [Fixes 79433]
14988
14989         * Hwnd.cs: Add a flag to show a window, but not activate it, to 
14990         keep popup window types from stealing focus from the main form
14991         on Windows.
14992
14993         * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
14994
14995         * MenuAPI.cs: Set above flag to true.
14996
14997 2006-11-15  Chris Toshok  <toshok@ximian.com>
14998
14999         * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
15000         the button being released is not in wParam.
15001
15002 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
15003
15004         * Form.cs: Add the released button to MouseEventArgs.Button
15005         for the OnMouseUp call to the MenuTracker.  Fixes menu clicking
15006         on Win32.
15007
15008 2006-11-15  Chris Toshok  <toshok@ximian.com>
15009
15010         * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
15011         GetText().  untested because it's unused in our implementation.
15012         Control.Text always caches the text, even if
15013         ControlStyles.CacheText is not set.
15014
15015         fixes bug #79939.
15016
15017 2006-11-15  Chris Toshok  <toshok@ximian.com>
15018
15019         [ fixes #79933 ]
15020         
15021         * Form.cs: in Close() don't do anything after we send the WM_CLOSE
15022         message.  no hiding, no disposing.
15023
15024         in the WM_CLOSE handler, hide the form if it's modal.
15025
15026 2006-11-15  Chris Toshok  <toshok@ximian.com>
15027
15028         * XplatUIX11.cs: use AddExpose instead of sending a message.
15029         fixes textbox border drawing.
15030
15031 2006-11-15  Chris Toshok  <toshok@ximian.com>
15032
15033         * PropertyGridView.cs: keep from crashing on mouse move/down when
15034         the property grid is empty.
15035
15036 2006-11-14  Jackson Harper  <jackson@ximian.com>
15037
15038         * TextControl.cs: Make PageUp and PageDown more like the MS
15039         versions.
15040         * TextBoxBase.cs: When we set the text property position the
15041         cursor at the beginning of the document.
15042
15043 2006-11-14  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15044
15045         * Form.cs: if a mdi child's WindowState has changed
15046         before it's creation, it would display wrong control
15047         buttons.
15048         
15049 2006-11-14  Alexander Olk  <alex.olk@googlemail.com>
15050
15051         * TreeView.cs: De-uglify TreeView checkbox checkmarks.
15052           (Fixes bug #79927)
15053
15054 2006-11-14  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15055
15056         * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that 
15057         the window gets to paint its borders even if the window is
15058         getting smaller.
15059         
15060         * Form.cs: on a WM_NCPAINT invalidate the entire menu, 
15061         otherwise the old control buttons would still be painted 
15062         if the window gets bigger.
15063         
15064         * PaintEventArgs.cs: add an internal method so that the clip 
15065         rectangle can be changed.
15066         
15067 2006-11-13  Chris Toshok  <toshok@ximian.com>
15068
15069         [ fixes bug #79745 ]
15070         
15071         * NotifyIcon.cs: lots of cleanup.
15072
15073         * X11Structs.cs: add an enum for XEMBED messages.
15074
15075         * XplatUIX11.cs: reindent one of the giant switch statements, it
15076         was taking up an additional tab stop, and this file is already way
15077         too wide for my laptop's screen.
15078
15079         Also, add handling for the XEmbed EMBEDDED_NOTIFY message.  When
15080         we get it, resize the hwnd to the WMNormalHints max_width/height.
15081
15082 2006-11-13  Jackson Harper  <jackson@ximian.com>
15083
15084         * TextBoxBase.cs: Compute the value changes for the mouse wheel
15085         teh simple way.
15086
15087 2006-11-13  Chris Toshok  <toshok@ximian.com>
15088
15089         * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
15090         #79898.  force a reference to the Region to stick around so the
15091         unmanaged object isn't collected (rendering our handle in the MSG
15092         stale).
15093
15094 2006-11-13  Chris Toshok  <toshok@ximian.com>
15095
15096         * XplatUIX11.cs: fix #79917 for window managers which support
15097
15098         using XStoreName on the raw utf8, and we need to convert to
15099         COMPOUND_TEXT if it's non-latin1.
15100
15101 2006-11-13  Chris Toshok  <toshok@ximian.com>
15102
15103         * Form.cs (set_DialogResult): we need to set closing to false if
15104         we're setting our result to None.  fixes bug #79908.
15105
15106 2006-11-13  Jackson Harper  <jackson@ximian.com>
15107
15108         * TextControl.cs: When formatting text, compute the adjusted tag
15109         lengths correctly, using FindTag for the end tag instead of trying
15110         to figure it out outselves.
15111         * TreeNode.cs: Use ActualItemHeight, which is the actual height of
15112         the item, ItemHeight doesn't work, because trees with large
15113         imagelists use those for their height
15114         * TreeView.cs: ActualItemHeight factors in the image height
15115         - compute left edge of checkboxes correctly
15116         - when expanding/collapsing move the bottom down one pixel, so we
15117         aren't moving part of the node
15118
15119 2006-11-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15120
15121         * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
15122         stack in PaintEventStart so that it won't get disposed by the gc
15123         before reaching PaintEventEnd.
15124
15125 2006-11-13  Jackson Harper  <jackson@ximian.com>
15126
15127         * TextBoxBase.cs: Don't select the word if we are on a line with
15128         no text.
15129         - We don't need to position the caret on mouse up, since the mouse
15130         move handler should be doing this
15131         - When double clicking a blank line, the caret is advanced to the
15132         next line.
15133
15134 2006-11-13  Gert Driesen  <drieseng@users.sourceforge.net>
15135
15136         * TreeNodeCollection.cs: Avoid duplicating indexer code.
15137
15138 2006-11-12  Gert Driesen  <drieseng@users.sourceforge.net>
15139
15140         * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
15141         Fixes part of bug #79910.
15142
15143 2006-11-11  Alexander Olk  <alex.olk@googlemail.com>
15144
15145         * ColorDialog.cs: Fix a NRE when adding a color to custom colors
15146           (bug #79903). Some minor string updates to match ms.
15147
15148 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
15149
15150         * FileDialog.cs: Don't add an extension if the filename
15151           already ends with that extension.
15152
15153 2006-11-10  Jackson Harper  <jackson@ximian.com>
15154
15155         * TreeView.cs: Use the currently highlighted node for the
15156         BeforeSelect event.
15157         * TextBoxBase.cs: There is no need to expand selection on
15158         MouseMove.
15159         - CanUndo means 'is there any undo operations', not 'is undo
15160         allowed on this textcontrol. Fixed ClearUndo unit test.
15161
15162 2006-11-10  Andreia Gaita  <shana.ufie@gmail.com>
15163
15164         * Button.cs: only perform click when button is Selectable (so as 
15165         not to activate default buttons when they're disabled)
15166         
15167         * Control.cs: Rewrite of the SelectNextControl and related 
15168         methods. HandleClick now selects next control if the current one
15169         is being disabled.
15170         
15171         * Form.cs: OnActivated selects next active control only if Load 
15172         has already occurred. If Load hasn't run, there's no point in 
15173         selecting here, Load might change the state of controls.
15174         
15175         * FocusTest.cs: Tests marked as working again for these fixes
15176
15177 2006-11-10  Chris Toshok  <toshok@ximian.com>
15178
15179         * XplatUIX11.cs: a couple of fixes.
15180
15181         - use XInternAtoms with almost all the atoms we need to register,
15182         instead of many, many calls to XInternAtom.  should help a bit on
15183         startup time, at the expense of making the code look a little
15184         worse.
15185
15186         - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
15187         isn't reparented (which seems to be a clue that we're running fon
15188         compiz) and they have an Owner form.  This fixes the tool windows
15189         in paint.net when running under compiz.
15190
15191         - when setting the opacity of a window, support both the case
15192         where the window has been reparented and also when it hasn't been.
15193         Since compiz/beryl doesn't seem to reparent windows, and these are
15194         the only window managers which support translucency, I'm not sure
15195         why we need the hwnd.reparented case at all.. but leave it in.
15196         now we get translucent windows in paint.net under compiz/beryl.
15197
15198 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
15199
15200         * FileDialog.cs: Always return the value for FilterIndex that
15201           was set. Internally convert it to values that make sense.
15202
15203 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
15204         
15205         * ThemeWin32Classic.cs: Fix drowp down arrow borders.
15206
15207 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
15208
15209         * Toolbar.cs: Change default value of DropDownArrows to true, the 
15210         signature still using false to make it compatible with MS but the 
15211         initial value is true. Fixes #79855.
15212
15213 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
15214
15215         * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
15216           only available on Linux.
15217
15218 2006-11-09  Everaldo Canuto  <everaldo@simios.org>
15219
15220         * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
15221         reduce number of calls to redraw method during toolbar creation.
15222
15223 2006-11-09  Mike Kestner  <mkestner@novell.com>
15224
15225         * ListView.cs : raise SelectedIndexChanged when an item is selected
15226         programmatically via the Item.Selected property.  Gert's nice 
15227         ListViewSelectedIndexChanged test fixture now runs clean.
15228
15229 2006-11-09  Mike Kestner  <mkestner@novell.com>
15230
15231         * ListView.cs : raise SelectedIndexChanged when a selected item is
15232         removed from the item collection using Remove or RemoveAt.
15233
15234 2006-11-09  Mike Kestner  <mkestner@novell.com>
15235
15236         * ListView.cs : raise SelectedIndexChanged once per selected item
15237         for compat with MS.  Fixes #79849+.
15238
15239 2006-11-09  Chris Toshok  <toshok@ximian.com>
15240
15241         * TabControl.cs: initialize row_count to 0, and set it to 1 when
15242         we need to (if we have any tab pages).  Fixes unit test.
15243
15244 2006-11-09  Chris Toshok  <toshok@ximian.com>
15245
15246         * Label.cs (CalcPreferredWidth): if Text == "", our preferred
15247         width is 0, not 3.  Fixes a unit test.
15248
15249 2006-11-09  Mike Kestner  <mkestner@novell.com>
15250
15251         * ListView.cs : use Implicit scrollbars so that focus isn't 
15252         stolen from the listview when they are clicked. Fixes #79850.
15253
15254 2006-11-09  Chris Toshok  <toshok@ximian.com>
15255
15256         * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
15257         have a root item.  Fixes #79879.
15258
15259 2006-11-09  Alexander Olk  <alex.olk@googlemail.com>
15260
15261         * FileDialog.cs:
15262           - Fix ToString ()
15263           - An ArgumentException is now thrown if a wrong filter
15264             is applied (matches ms). The previous filter doesn't change
15265             anymore if an exception is thrown.
15266           - Changing the FileName property also affects FileNames
15267         * ColorDialog.cs: The length of the CustomColors array is always
15268           16. It doesn't matter if we use a smaller array or null to update
15269           or change the custom colors property.
15270         * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
15271           for RootFolder if we get a undefined value.
15272
15273 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15274
15275         * StatusBarPanel.cs: 
15276         - Width is set to MinWidth if Width is smaller than
15277         MinWidth. Fixes #79842.
15278         - MinWidth now always overrides Width (MSDN says MinWidth
15279         is set to Width when AutoSize = None, but they do not 
15280         behave like that).
15281         - Style has now the the correct default value.
15282         
15283 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15284  
15285         * TrackBar.cs: 
15286         - The control is completely invalidated on 
15287         Got/LostFocus to draw the focus rectangle correctly.
15288         - When AutoSize then height is always 45 (width for 
15289         vertical controls).
15290         
15291         * ThemeWin32Classic.cs: The TrackBar thumb is now centered
15292         on the mouse when moved and it doesn't move when grabbed
15293         until the mouse moves as well. Also fixed some wrong 
15294         calculations when clicking on the thumb (control thought
15295         click was outside of thumb and didn't grab it).
15296         Fixes some of the issues in #79718.
15297
15298 2006-11-08  Everaldo Canuto  <everaldo@simios.org>
15299
15300         * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
15301
15302 2006-11-08  Chris Toshok  <toshok@ximian.com>
15303
15304         * PropertyGridView.cs: only call ToggleValue if the item is not
15305         readonly.
15306
15307 2006-11-08  Jackson Harper  <jackson@ximian.com>
15308
15309         * TextBoxBase.cs: The RichTextBox and textbox have very different
15310         word selection methods.  Implement the textbox's simple word
15311         selection here, and let the RichTextBox override and provide it's
15312         own.
15313         - Don't do extra selection on mouseup
15314         * RichTextBox.cs: Use the documents word selection algorithm, I
15315         think ideally, this function will be pulled into the
15316         RichTextBox.cs code someday.
15317
15318 2006-11-08  Chris Toshok  <toshok@ximian.com>
15319
15320         * RootGridEntry.cs: new class to represent GridItemType.Root.
15321
15322         * CategoryGridEntry.cs: reformat, and add boilerplate.
15323         
15324         * GridEntry.cs: remove the UIParent stuff - turns out .Parent
15325         returns the UI parent anyway, and we need special handling to
15326         implement the GetTarget method in the face of it.  Also, implement
15327         Select().
15328
15329         * PropertyGrid.cs, PropertyGridView.cs: a number of fixes.  create
15330         a root grid item, and use that instead of PropertyGrid.grid_items.
15331         Also, make use of TypeConverters (and add limitted support for
15332         ICustomTypeDescriptors) when initially populating the grid.
15333         Arrays now show up more or less properly.
15334
15335 2006-11-08  Chris Toshok  <toshok@ximian.com>
15336
15337         * Application.cs: set the modal dialog to non modal after we close
15338         it.  Fixes bug #79866.
15339
15340 2006-11-08  Jackson Harper  <jackson@ximian.com>
15341
15342         * TextControl.cs: When combining lines carry over the line end
15343         style from the end line.
15344         - Invalidate the selected area when setting it, if it is visible.
15345         * TextBoxBase.cs: Only rich text box can do full line selects.
15346         - Make sure to set the cursor position when there is a click,
15347         otherwise two clicks in separate areas could cause a large chunk
15348         to be selected.
15349
15350 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
15351
15352         * Toolbar.cs: Release flat button borders when Toolbar lost focus. 
15353         Fixes #79863.
15354
15355 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
15356
15357         * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
15358         time. Remove tooltips when ToolButton click events.  Fixes #79856.
15359
15360 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
15361
15362         * MenuAPI.cs: Ignore right click for menu actions and fixes
15363         menu border when clicked.  Fixes #79846.
15364
15365 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
15366
15367         * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
15368         MouseState after create wParam for message, this fixes mouse button 
15369         equal none in mouse up events.
15370         
15371 2006-11-07  Andreia Gaita  <shana.ufie@gmail.com>
15372
15373         * Control.cs : Focus() now calls Select to set the Container's
15374         Active Control and to give it focus. To avoid infinite recursion
15375         (because ActiveControl also calls Focus at one point), a check 
15376         is made in Focus with the help of a new internal variable
15377         is_focusing.
15378
15379 2006-11-07  Mike Kestner  <mkestner@novell.com>
15380
15381         * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
15382         if there's a selection.  Fixes #79849.
15383
15384 2006-11-07  Gert Driesen  <drieseng@users.sourceforge.net>
15385
15386         * PropertyGrid.cs: Avoid fixed height of help description label.
15387         Fixes part of bug #79829.
15388
15389 2006-11-07  Chris Toshok  <toshok@ximian.com>
15390
15391         * XplatUIX11.cs: fix #79790 again, by using the
15392         _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
15393
15394 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
15395
15396         * ToolBar.cs: Fix left click checking.
15397
15398 2006-11-07  Chris Toshok  <toshok@ximian.com>
15399
15400         * ProgressBar.cs: fix a typo in ToString().  fixes a unit test.
15401
15402 2006-11-07  Chris Toshok  <toshok@ximian.com>
15403
15404         * RelatedPropertyManager.cs: set property_name in our ctor.  fixes
15405         PropertyManager unit tests.
15406
15407         * PropertyManager.cs: make property_name internal.
15408
15409 2006-11-07  Chris Toshok  <toshok@ximian.com>
15410
15411         * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
15412         pass a unit test.  Also, don't set image_index to anything in
15413         response to setting the ImageList property.
15414
15415 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
15416
15417         * ToolBar.cs: Ignore click events when mouse button is not a
15418         left button, only accepts other button for dropdown menus.  
15419         Fixes #79854.
15420
15421 2006-11-07  Chris Toshok  <toshok@ximian.com>
15422
15423         * DataGrid.cs: make the back and parent row buttons a little less
15424         ugly.
15425
15426 2006-11-07  Jackson Harper  <jackson@ximian.com>
15427
15428         * TextBoxBase.cs: When converting to Text don't put line breaks in
15429         for soft line breaks.
15430         * TextControl.cs: There is an initial "fake" line in the document,
15431         this is now a soft break line, so that an extra line feed doesn't
15432         get added to the end of documents.
15433
15434 2006-11-07  Chris Toshok  <toshok@ximian.com>
15435
15436         [ fix bug #79778 ]
15437         
15438         * CurrencyManager.cs: if the list is readonly, don't bother
15439         checking if IBindingList.AllowNew is true.
15440
15441         * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
15442         for non-DataRowView datasources..  or rather, make it not crash.
15443         (DataGridPaintRelationRow): make sure we limit the row painting to
15444         the area not covered by the row header, and make our cell width at
15445         least large enough to cover the relation area.  This allows grids
15446         that have relations but no rows to render correctly.
15447         (DataGridPaintRowContents): same type of changes here.
15448         (SetDataSource): move back to always calling
15449         CalcAreasAndInvalidate.  this fixes a crash/drawing problem when
15450         navigating back through relations.
15451         (HitTest): handle the case where we have no cells but have
15452         relations.  Right now we generate a hit in cell 0 of whatever the
15453         row is, not sure if this is strictly correct, but it works for our
15454         purposes.
15455         
15456         * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
15457         bother doing anything.
15458
15459 2006-11-07  Jonathan Pobst  <monkey@jpobst.com>
15460
15461         * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
15462         early version of StatusStrip.  Not responsible for eaten
15463         application or firstborn children.
15464
15465 2006-11-06  Chris Toshok  <toshok@ximian.com>
15466
15467         * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
15468         call GetTabRect with a -1 index.  Fixes #79847.
15469
15470 2006-11-06  Jackson Harper  <jackson@ximian.com>
15471
15472         * TreeNodeCollection.cs: Update scrollbars after clearing.
15473
15474 2006-11-06  Chris Toshok  <toshok@ximian.com>
15475
15476         * NumericUpDown.cs: fix the ToString method for some unit test
15477         love.
15478
15479 2006-11-06  Chris Toshok  <toshok@ximian.com>
15480
15481         * PropertyGrid.cs:
15482         - set the initial SelectedGridItem if we can.
15483
15484         - Exclude non-mergable properties only if we're merging > 1
15485         object.  Merging 1 object isn't really merging, obviously.
15486
15487         - Handle PropertySort.NoSort just like Alphabetical, which is
15488         wrong of course, but at least gets things on the screen.
15489         
15490         * PropertyGridView.cs:
15491         - Add method "FindFirstItem" which finds the first property grid
15492         item, so we can select it by default.
15493
15494         - make use of GridEntry.CanResetValue.
15495
15496         - Don't call RedrawBelowItemOnExpansion here anymore, the
15497         individual GridEntry's will do that.
15498
15499         - Remove the ITypeDescriptorContextImpl internal class.
15500         
15501         * GridEntry.cs:
15502         - this class needs to implement ITypeDescriptorContext, as it's
15503         what MS's PropertyDescriptorGridEntry does, which means we can
15504         remove the ITypeDescriptorContextImpl internal class from
15505         PropertyGrid.cs.  This fixes the crashing portion of bug #79829.
15506
15507         - keep a reference to our PropertyGridView, and move the call to
15508         RedrawBelowItemOnExpansion here from PGV.  This means
15509         programmaticly setting Expanded actually does something visible.
15510
15511         - add a CanResetValue() function which takes into account our
15512         possibly multiple "selected_objects" in the merged case.  Shifting
15513         PropertyGridView to use this method fixes another unreported
15514         crasher found running the test for #79829.
15515
15516         - when Top or Bounds is updated, make sure the PropertyGridTextBox
15517         is updated to reflect this.
15518
15519         * CategoryGridEntry.cs: the ctor takes the PGV now.
15520         
15521 2006-11-06  Jackson Harper  <jackson@ximian.com>
15522
15523         * TextControl.cs: These are 1 based.
15524         * TextBoxBase.cs: When setting the selected text, don't change the
15525         selected text tags, this is done by ReplaceText, just position the
15526         cursor at the end of the new text.
15527
15528 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
15529
15530         * ListView.cs: Allow label edit only when, when LabelEdit is
15531           set to true.
15532
15533 2006-11-06  Jackson Harper  <jackson@ximian.com>
15534
15535         * TextControl.cs: If a suitable wrapping position isn't found,
15536         just wrap right in the middle of a word.
15537
15538 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
15539
15540         * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
15541           bug #79820.
15542
15543 2006-11-06  Jackson Harper  <jackson@ximian.com>
15544
15545         * TreeView.cs: Can't use the VisibleCount property when setting
15546         scrollbar heights, because this doesn't take into account whether
15547         or not the horz scrollbar just came visible.
15548
15549 2006-11-05  Everaldo Canuto  <everaldo@simios.org>
15550
15551         * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
15552         activated.  Fixes #79369, #79832.
15553
15554 2006-11-05  Alexander Olk  <alex.olk@googlemail.com>
15555
15556         * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
15557           had to remove support for links that point to a directory. FileInfo
15558           returns no usefull information (means, the directory they point to)
15559           for such links. Replaced some empty string ("") with String.Empty.
15560
15561 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
15562
15563         * TreeNodeCollection.cs: To match MS, in 1.0 profile throw 
15564         NullReferenceException when attempting to remove node that is not in
15565         collection. Throw NullReferenceException when null is passed to 
15566         Remove. Allow first element of the collection to be removed. Fixes
15567         bug #79831.  In GetEnumerator ().Current return null if positioned 
15568         before the first element of the collection. In GetEnumerator ().Reset,
15569         position before first element of the collection.
15570
15571 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
15572
15573         * PropertyGrid.cs: To match MS, remove default title and description
15574         for panel. Fixed tooltips for Categorized and Alphabetic toolbar
15575         buttons.
15576
15577 2006-11-04  Chris Toshok  <toshok@ximian.com>
15578
15579         * Theme.cs: add a Clamp method, just for kicks.
15580
15581         * ThemeWin32Classic.cs: clamp all color components to [0..255].
15582
15583 2006-11-04  Chris Toshok  <toshok@ximian.com>
15584
15585         * Form.cs: if the form isn't visible, Close() does nothing.
15586
15587 2006-11-03  Chris Toshok  <toshok@ximian.com>
15588
15589         * Form.cs (Close): if the form is modal, don't Dispose of it, only
15590         Hide it.
15591         (WndProc): don't Dispose after handling the WM_CLOSE message.
15592
15593         * Application.cs (RunLoop): toplevels is a list of Forms, so treat
15594         them as such, instead of using casts from Control to Form.  Also,
15595         don't Dispose of the modal dialog when we fall out of the loop -
15596         Close() it instead.
15597
15598         fixes bug #79813.
15599
15600 2006-11-03  Chris Toshok  <toshok@ximian.com>
15601
15602         * Control.cs (Dispose): only go through the dispose thing if we're
15603         @disposing, and we haven't already been disposed.  Fixes bug
15604         #79814.
15605
15606         * Form.cs: no reason to call "base.Dispose()" here instead of
15607         "Dispose()".
15608
15609 2006-11-03  Mike Kestner  <mkestner@novell.com>
15610
15611         * ComboBox.cs : use ToString instead of casts in AddItem for
15612         sorting functionality.  Fixes #79812.
15613
15614 2006-11-03  Chris Toshok  <toshok@ximian.com>
15615
15616         * Application.cs: pave the way for actually using the thread
15617         exception dialog.  it's ifdefed out at the moment.
15618
15619 2006-11-03  Chris Toshok  <toshok@ximian.com>
15620
15621         * ThreadExceptionDialog.cs: until we get a better layout, actually
15622         hide the details textbox and label when we shouldn't see them.
15623
15624 2006-11-03  Jackson Harper  <jackson@ximian.com>
15625
15626         * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
15627         multiline textboxes anymore.  This method also determines the
15628         width/height of a textboxes canvas area.
15629         - Sorta a revert of the last patch.  For multiline just position
15630         the controls, then bail.  This way the scrollbar width won't be
15631         altered.
15632
15633 2006-11-03  Everaldo Canuto  <everaldo@simios.org>
15634
15635         * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
15636         it dont need.  Fixes #79537.
15637
15638 2006-11-02  Jackson Harper  <jackson@ximian.com>
15639
15640         * X11Dnd.cs: We always allow copy, since XDND implies Copy.  Also
15641         send the status after firing the DndOver event.
15642
15643 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15644
15645         * TrackBar.cs: Now orientation only switches height / width if
15646         the control's handle is created (Win32 does it like this). Also 
15647         fixed a typo in ToString() for a test to pass, changed the 
15648         exception thrown in set_LargeChange and set_SmallChange to 
15649         match Win32 behaviour, and added TrackBar tests to the unit 
15650         tests.
15651
15652 2006-11-02  Chris Toshok  <toshok@ximian.com>
15653
15654         * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
15655         not _NET_WM_STATE_NO_TASKBAR.
15656
15657 2006-11-02  Jackson Harper  <jackson@ximian.com>
15658
15659         * TextControl.cs: Increment count by one, since in the update view
15660         count - 1 is used.
15661
15662 2006-11-02  Jackson Harper  <jackson@ximian.com>
15663
15664         * TextBoxBase.cs: Use client rectangle not bounds for checking if
15665         the mouse is in the client rectangle (duh).
15666
15667 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15668         
15669         * TrackBar.cs: Fixed trackbar jumping around when clicking
15670         on it - the trackbar was not detecting correctly at which
15671         side of the thumb the click was done. (fixes #79718)
15672
15673 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
15674
15675         * ListBox.cs: scroll visible area when change SelectedIndex to
15676         a non visible area.  Fixes #79481.
15677
15678 2006-11-01  Jackson Harper  <jackson@ximian.com>
15679
15680         * TextControl.cs: When replacing the selection move the selection
15681         start/end/anchor to the end of the new text.
15682
15683 2006-11-01  Jackson Harper  <jackson@ximian.com>
15684
15685         * XplatUIWin32.cs: When setting the parent change the controls
15686         visibility to it's visibility flag, not to it's old parents
15687         visibility (.Visible walks the parent chain).
15688
15689 2006-11-01  Chris Toshok  <toshok@ximian.com>
15690
15691         * XplatUIX11.cs: revert the #79790 fix, as the simple.
15692         XSetTransientForHint fix breaks paint .net's tool windows.  more
15693         work needed for that one.
15694
15695 2006-11-01  Chris Toshok  <toshok@ximian.com>
15696
15697         * ScrollBar.cs: throw ArgumentException instead of Exception in
15698         LargeChange/SmallChange setters.  fixes unit tests.
15699
15700 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
15701
15702         * ContainerControl.cs: reverted rev.67183 (which was itself
15703         a reversion of rev.66853... eh).
15704         
15705         * Control.cs: Fixes Reflector hang by changing Focus() call
15706         to what it was before rev.66643 (calling Select() here sets 
15707         ActiveControl, which in some situations calls back Focus and 
15708         eventually does a stack overflow). Temp fix.    
15709         Changes to GetNextControl() to not look for children to select when
15710         parent cannot be selectable (so it looks for siblings instead)  
15711         
15712 2006-10-31  Mike Kestner  <mkestner@novell.com>
15713
15714         * CheckedListBox.cs : off by one error in returned index from
15715         ObjectCollection.Add.  Fixes #79758.
15716
15717 2006-10-31  Chris Toshok  <toshok@ximian.com>
15718
15719         * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
15720         calls for the textbox/spinner, to keep from recursing to the point
15721         where we crash.  Fixes #79760.
15722
15723 2006-10-31  Chris Toshok  <toshok@ximian.com>
15724
15725         * ListControl.cs (set_SelectedValue): don't throw exceptions on
15726         null/"" value, just return.  matches ms's behavior and fixes some
15727         failing tests.
15728
15729 2006-10-31  Chris Toshok  <toshok@ximian.com>
15730
15731         * Control.cs (set_Capture): make a logic a little easier to
15732         follow.
15733
15734         * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
15735         if it's being destroyed.  A necessary fix surely, but a bandaid
15736         also, to fix the stuck capture problem in bug #78413.
15737
15738 2006-10-31  Chris Toshok  <toshok@ximian.com>
15739
15740         * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
15741         convention of clearing hwnd.ClientRect when we set the
15742         width/height (so it'll be recalculated by Hwnd).
15743
15744 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
15745
15746         * ContainerControl.cs: reversed Contains check from
15747         ActiveControl due to hanging problems. This fix
15748         partly regresses #79667 (button does not have
15749         initial focus), so this might be a symptom for 
15750         a larger parenting problem (set_ActiveControl
15751         is being called but the child control does
15752         not have the parent set yet?)   
15753         
15754 2006-10-31  Mike Kestner  <mkestner@novell.com>
15755
15756         * MenuAPI.cs : fix keynav when menu is click activated.
15757
15758 2006-10-31  Jonathan Pobst  <monkey@jpobst.com>
15759
15760         * ToolStrip*: Version 0.2.
15761
15762         * MenuStrip.cs: Version 0.1.
15763
15764         * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
15765
15766 2006-10-30  Chris Toshok  <toshok@ximian.com>
15767
15768         [ fixes the oversized notify icon issue in bug #79745 ]
15769         
15770         * NotifyIcon.cs: scale the icon down to the size we're given by
15771         the XplatUI layer (this would be faster if we did it once instead
15772         of whenever we paint..)  Also, remove the WM_NCPAINT handling,
15773         since it's never invoked.
15774
15775         * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
15776         pixels high by default, so let's hardcode our systray icon to that
15777         size.  The SYSTEM_TRAY protocol should really have a way for
15778         client apps to query for the correct icon size.. but oh well.  A
15779         couple of patches to deal with the screwy client_window ==
15780         whole_window notifyicon stuff (we don't want to PerformNCCalc, for
15781         instance, and also make sure we don't XSelectInput twice).
15782
15783 2006-10-30  Chris Toshok  <toshok@ximian.com>
15784
15785         * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
15786         recreating forms.  Control recreation is the bane of my existence.
15787         Fix it in a way that keeps everyone happy.
15788
15789 2006-10-30  Chris Toshok  <toshok@ximian.com>
15790
15791         * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
15792         just non-CHILD ones.  otherwise sometimes scrollbars end up with
15793         client_windows not being resized to the proper size (ReportBuilder
15794         shows this extremely well).
15795
15796 2006-10-30  Chris Toshok  <toshok@ximian.com>
15797
15798         * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
15799         for non-WS_EX_APPWINDOW windows.  This is what keeps them from
15800         showing up in the gnome taskbar.  Fixes bug #79790.
15801
15802 2006-10-30  Chris Toshok  <toshok@ximian.com>
15803
15804         * ApplicationContext.cs: guard against a NRE.
15805
15806         * Application.cs: null out the old MainForm for the context, so we
15807         don't try to use it again once it's disposed.  Fixes bug #79783.
15808
15809 2006-10-30  Chris Toshok  <toshok@ximian.com>
15810
15811         * DataGrid.cs (set_DataSource, set_DataMember): if we have a
15812         BindingContext, set the data source directly, otherwise do the
15813         lazy approach - the actual ListManager will be created when we get
15814         a BindingContext. Fixes bug #79700.
15815
15816 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
15817
15818         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
15819           XplatUIX11.cs: Remove old 2 parameter SetVisible.
15820
15821         * Control.cs: Use the new 3 parameter SetVisible with activate = true.
15822
15823 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
15824
15825         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
15826         of SetVisible that allows a window to be shown, but not activated.
15827         This is needed on Windows for MenuStrip, and can probably be used
15828         with MainMenu and ComboBox to fix the focus stealing issues on
15829         Windows.
15830
15831         * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
15832
15833 2006-10-30  Alexander Olk  <alex.olk@googlemail.com>
15834
15835         * PictureBox.cs: Fix the output of the ToString method.
15836
15837 2006-10-29  Chris Toshok  <toshok@ximian.com>
15838
15839         * Control.cs (get_TopLevelControl): fix bug #79781.
15840
15841 2006-10-29  Chris Toshok  <toshok@ximian.com>
15842
15843         * ListControl.cs (set_DataSource): throw Exception here, not
15844         ArgumentException, to match MS behavior.
15845
15846 2006-10-29  Chris Toshok  <toshok@ximian.com>
15847
15848         * Form.cs: remove the try-catch's around calls to GetWindowState.
15849         We can just check the return value.
15850
15851         * XplatUIX11.cs: don't throw exceptions from GetWindowState.
15852         Instead return -1.
15853
15854         * XplatUI.cs: Add note about additional return value for
15855         GetWindowState.
15856
15857 2006-10-29  Chris Toshok  <toshok@ximian.com>
15858
15859         * Control.cs (CreateHandle): when we create our handle, we also
15860         create the handles of our child controls.  Fixes one of the
15861         Control unit tests (CH11).
15862
15863 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
15864
15865         * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
15866
15867 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
15868
15869         * ThemeClearlooks.cs: A little speedup.
15870
15871 2006-10-27  Chris Toshok  <toshok@ximian.com>
15872
15873         * Control.cs: implement Control.FromChildHandle in a way that
15874         matches the docs (and fixes the failed test.)
15875
15876 2006-10-27  Chris Toshok  <toshok@ximian.com>
15877
15878         * DataGridTableStyle.cs: reproduce buggy MS behavior (with
15879         comments).
15880
15881         * DataGrid.cs: implement ResetForeColor such that the tests
15882         succeed.
15883         
15884 2006-10-27  Chris Toshok  <toshok@ximian.com>
15885
15886         * ToolBarButton.cs: setting text/tooltiptext to null results in it
15887         being set to "".  Fixes bug #79759.
15888
15889 2006-10-27  Jackson Harper  <jackson@ximian.com>
15890
15891         * TextControl.cs: We need to clear the entire selection area when
15892         setting the start, otherwise multiline selections are still
15893         visible.
15894
15895 2006-10-26  Chris Toshok  <toshok@ximian.com>
15896
15897         * PropertyGridView.cs: 
15898
15899         - ifdef all the code specific to the double
15900         buffer case, and provide some alternatives in the non-doublebuffer
15901         code, which makes heavy use of XplatUI.ScrollWindow to move things
15902         around without having to invalidate (and cause flicker).  There
15903         are still some drawing problems in the non-doublebuffered case, so
15904         DOUBLEBUFFER is defined by default.
15905
15906         - Fix the way dropdowns are handled.  now we explicitly watch for
15907         the events which might cause the dropdown to close, and break out
15908         of the nested event loop there.  This gets rid of all Capture
15909         code, at the expense of the Msg special casing.  Seems to work,
15910         though, and fixes bug #79743.
15911
15912 2006-10-27  Rolf Bjarne Kvinge <RKvinge@novell.com>
15913         * Control.cs: SetIsRecreating now recreates implicitly added
15914         child controls as well. Finally fixes #79629. The flag passed to 
15915         SetIsRecreating has also been removed since it wasn't used.
15916         
15917 2006-10-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15918
15919         * PageSetupDialog.cs: Clean some code, fix some bits, 
15920         add some checks, and add a printer sub-dialog.
15921
15922 2006-10-26  Chris Toshok  <toshok@ximian.com>
15923
15924         * PropertyGrid.cs: make set_SelectedObject call
15925         set_SelectedObjects, and move the duplicate logic to the
15926         SelectedObjects setter.  Also, raise SelectedObjectsChanged.
15927
15928         * PropertyGridView.cs: hide the textbox when we get a
15929         SelectedObjectsChanged event.
15930
15931         Fixes bug #79748.
15932
15933 2006-10-26  Chris Toshok  <toshok@ximian.com>
15934
15935         * PropertyGridView.cs: deal with the type converter not supporting
15936         GetStandardValues() or GetStandardValues() returning null, which
15937         is does in the default case.  Fixes #79742.
15938
15939 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
15940
15941         * CheckedListBox.cs: nunit no longer crashes when selecting 
15942         Project/Edit menu option
15943         
15944 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
15945
15946         * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
15947         is no menu selected. fixes #79739
15948
15949 2006-10-25  Chris Toshok  <toshok@ximian.com>
15950
15951         * PropertyGridView.cs: factor out the splitter invalidation code
15952         into the SplitterPercent setter, and for kicks implement the
15953         Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
15954         amount in either direction.
15955
15956 2006-10-25  Chris Toshok  <toshok@ximian.com>
15957
15958         * PropertyGridView.cs: do some cleanup of the brush used to draw
15959         text - read only fields should be grayed out.  not sure how to do
15960         this with the textbox, though.  but the textbox's should also be
15961         readonly now at least.  Also, hide/show the textbox when resizing
15962         the control.
15963         
15964         * CursorConverter.cs: use System.Reflection when getting the
15965         properties of Cursors, as TypeDescriptor.GetProperties isn't
15966         returning static properties.
15967
15968 2006-10-25  Chris Toshok  <toshok@ximian.com>
15969
15970         * PropertyGridView.cs: factor out the up/down handling, and reuse
15971         it for page up/down.  also add End/Home support.
15972
15973 2006-10-25  Chris Toshok  <toshok@ximian.com>
15974
15975         * PropertyGridView.cs:
15976
15977         - ensure the selected grid item is visible in the scrolled area,
15978         fixes bug #79572.
15979
15980         - fix Keys.Down handling when you're on the last item in the
15981         propertygrid.
15982
15983 2006-10-25  Mike Kestner  <mkestner@novell.com>
15984
15985         * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup 
15986         clicks too.  Fixes #79725.
15987
15988 2006-10-24  Chris Toshok  <toshok@ximian.com>
15989
15990         * PropertyGrid.cs: use property.Converter instead of
15991         TypeDescriptor.GetConverter(property.PropertyType), so we catch
15992         TypeConverters declared on the property as well as on the
15993         PropertyType.  Fixes bug #79678.
15994
15995 2006-10-24  Alexander Olk  <alex.olk@googlemail.com>
15996
15997         * MimeIcon.cs, Mime.cs:
15998           Fallback to the default platform handler if no shared mime info
15999           stuff exists (fixes #79693).
16000
16001 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
16002         * ContainerControl.cs: Incorrect contains check in ActiveControl 
16003         from previous fix (duh).
16004
16005 2006-10-20  Chris Toshok  <toshok@ximian.com>
16006
16007         * PropertyGridView.cs: the dropdown should be MIN(number of items
16008         in list, 15).  Fixes #79551.
16009
16010 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
16011         Fixes #79384, #79394, #79652, #79667
16012         * Application.cs: 
16013         
16014         - Modal windows are now destroyed in the proper order for windows
16015         
16016         * ContainerControl.cs:
16017         
16018         - ActiveControl setter has more conditions on when to return:
16019                 - if we're reselecting the active control, but it actually
16020                 didn't have focus (window hidden or some such), it runs
16021                 - if the active control being selected doesn't actually 
16022                 exist in the container, it returns
16023         
16024         * Form.cs
16025         
16026         - The ShowDialog now gets the current form as the owner when
16027         invoking without parameters, and correctly activates the owner 
16028         when returning
16029         
16030         * MessageBox.cs
16031         
16032         - MessageBox now catches the Escape key to exit
16033
16034 2006-10-20  Chris Toshok  <toshok@ximian.com>
16035
16036         * PropertyGridView.cs: fix a number of issues (bug #78565, and
16037         most of bug #79676):
16038
16039         - you can navigate around the property grid with the arrow keys.
16040
16041         - the dropdown is sized properly when the pg has a vertical
16042         scrollbar.
16043
16044         - fix the indentation for subentries, and properly select the
16045         entire label rect.
16046
16047         - fix the gray bar's drawing (only draw it to the last element,
16048         not for the height of the control.  Also make sure we draw that
16049         last horizontal grid line.
16050
16051         - use the same mechanism the datagrid uses wrt the editing textbox
16052         when scrolling/resizing/etc.  Namely, we hide it first, do the
16053         operation, then show it again (if it's still visible).
16054         
16055         - aggressively remove a lot of unnecessary refreshes (and also
16056         calls to Invalidate(). call more limited variants, and only redraw
16057         what we need.)
16058         
16059         * PropertyGrid.cs:
16060
16061         - when we're populating the merged collection, fill in the UI
16062         parent with either the passed in item, or the category item we
16063         create.
16064
16065         - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
16066
16067         * GridItem.cs: drop some fully qualified names.
16068         
16069         * GridEntry.cs: add a "UIParent", which is basically the parent
16070         treenode.
16071
16072         * GridItemCollection.cs: add an IndexOf method.
16073
16074 2006-10-20  Mike Kestner  <mkestner@novell.com>
16075
16076         * MainMenu.cs : go back to Draw in OnMenuChanged.  Until we get
16077         a working win32 NC invalidation mechanism, we can't invalidate
16078         menus.  [Fixes #79705]
16079
16080 2006-10-20  Mike Kestner  <mkestner@novell.com>
16081
16082         * ListBox.cs : don't update the VScrollbar if the list is empty,
16083         just hide it.  [Fixes #79692]
16084
16085 2006-10-20  Jackson Harper  <jackson@ximian.com>
16086
16087         * RichTextBox.cs: Handle some special chars better, and don't skip
16088         the entire group when we encounter a special char that we don't
16089         handle correctly.
16090
16091 2006-10-18  Chris Toshok  <toshok@ximian.com>
16092
16093         * PropertyGridView.cs: address a number of issues from bug #79676,
16094         mostly of the cosmetic variety.
16095
16096         - The highlight rectangle for indented items not extends all the
16097         way to the left.
16098
16099         - Indented items aren't indented so much.
16100
16101         - the dropdown is properly sized width-wise if the pg has a
16102         vertical scrollbar.
16103
16104 2006-10-18  Chris Toshok  <toshok@ximian.com>
16105
16106         * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
16107         systray stuff is rather convoluted to begin with.
16108
16109         systray icons are a single window for some reason (that I haven't
16110         figured out yet), and for them, client_window == whole_window.
16111         Given the way the tests are structured elsewhere to determine
16112         which paints are pending (client vs. nc), that situation will
16113         always yield PAINT, not NCPAINT.  So, if we have a pending
16114         nc_expose and no pending expose, remove the hwnd from the paint
16115         queue, and also set nc_expose_pending to false, to keep us from
16116         blocking further expose's adding the hwnd to the paint queue.
16117
16118         phew.  like i said, a rather convoluted change.  Fixes the
16119         notifyicon repaint issues in bug #79645.
16120
16121 2006-10-18  Chris Toshok  <toshok@ximian.com>
16122
16123         * Form.cs: when getting the backcolor of the form, don't get
16124         base.BackColor, as this allows parents to influence the background
16125         color.  This breaks mdi forms.  Instead, if the background_color
16126         is empty, return the default.
16127
16128 2006-10-18  Chris Toshok  <toshok@ximian.com>
16129
16130         * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
16131         to being private instead of internal static.
16132
16133         * Control.cs: remove all the stupid ParentWaitingOnRecreation
16134         crap, it wasn't working for more deeply nested controls anyway,
16135         and we already have the is_recreating flag - use that instead.
16136         Before calling DestroyHandle in RecreateHandle, recurse through
16137         the control tree setting it to true.  this returns the recreate
16138         code to much of its original simplicity, while now guaranteeing we
16139         actually recreate everything we're supposed to.  This change gets
16140         fyireporting actually showing mdi children.
16141
16142 2006-10-17  Chris Toshok  <toshok@ximian.com>
16143
16144         * Form.cs: remove some debug spew, and collapse some duplicate
16145         code at the end of SetClientSizeCore.
16146
16147         * XplatUIX11.cs: 
16148         - add some more debug spew here too wrt Destroy handling.
16149         - don't call hwnd.Dispose in DestroyWindow, it's effectively done
16150         in Control's handling of WM_DESTROY.
16151         - Remove the handling of zombie window DestroyNotifies from the
16152         event loop - we don't need it.  Now the only DestroyNotifies we
16153         actually handle are ones generated by X.
16154         - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
16155         match gtk's (functioning) handling of this. This keep metacity
16156         from leaving droppings in the form of wm borders with no window
16157         contents all over the place.
16158
16159         * Control.cs:
16160         - add a bunch of debug spew wrt control recreation.
16161         - fix a bug where we weren't tracking Visible properly on
16162         recreated hwnds.
16163         - fixed the WM_PAINT double buffer handling to support re-entrant
16164         calls (yes, i know it's gross, but it's happening to us).
16165
16166 2006-10-17  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
16167         * ThemeWin32Classic.cs: changed drawing of selected days
16168         to make them look better.
16169
16170 2006-10-16  Chris Toshok  <toshok@ximian.com>
16171
16172         * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
16173         drawing_stack.  Nuke the ClientDC/NonClientDC properties.
16174
16175         * XplatUIX11.cs: move away from using hwnd.client_dc and
16176         hwnd.non_client_dc and on to a stack of dc's (and in window's
16177         case, PAINTSTRUCT's), so we can deal with nested Paint calls
16178         without puking or not disposing of Graphics objects.
16179
16180         * XplatUIOSX.cs: same.
16181
16182         * XplatUIWin32.cs: same.
16183
16184 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
16185
16186         * FileDialog.cs: Don't call on_directory_changed inside
16187           OnSelectedIndexChanged (it changes the SelectedIndex too).
16188           Instead move it to OnSelectionChangeCommitted.
16189
16190 2006-10-13  Chris Toshok  <toshok@ximian.com>
16191
16192         * XplatUIX11.cs: more Destroy work.  the current code does the
16193         following things, in order:
16194
16195         1. Enumerates all handles of all controls at or below the one
16196         being destroyed, in pre-order.  As it is doing this, it marks the
16197         handles as zombie and clears all references to them.
16198         
16199         2. calls XDestroyWindow on the window passed in.
16200
16201         3. SendMessage's WM_DESTROY to all he handles in the accumulated
16202         list.
16203
16204 2006-10-13  Chris Toshok  <toshok@ximian.com>
16205
16206         * XplatUIX11.cs: set hwnd.zombie to true before calling
16207         SendMessage (WM_DESTROY).  this keeps us from marking the new
16208         window a zombie, and also keeps us from calling sendmessage at
16209         all.
16210
16211 2006-10-13  Jackson Harper  <jackson@ximian.com>
16212
16213         * TextControl.cs: Do not show the caret and selection at the same
16214         time.  Reduces ugliness by 35%.
16215
16216 2006-10-13  Chris Toshok  <toshok@ximian.com>
16217
16218         * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
16219         zombie after we do the recursive call, so we actually do call
16220         SendMessage on the children controls.
16221         (GetMessage): if we find a pending paint event for a zombie hwnd,
16222         remove the hwnd from the paint queue, or else it will always be
16223         there (and we'll effectively loop infinitely)
16224
16225 2006-10-13  Mike Kestner  <mkestner@novell.com>
16226
16227         * MenuItem.cs : add Selected format under keynav too.
16228         Fixes #79528.
16229
16230 2006-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
16231
16232         * PropertyGrid.cs: Fixed some NRE's and small difference between our
16233         implementation and that of MS.
16234
16235 2006-10-13  Chris Toshok  <toshok@ximian.com>
16236
16237         * Control.cs (OnInvalidated) only futz with the invalid_region if
16238         the control is double buffered.  this fixes the apparent hang in
16239         the ListView unit tests.  Someone needs to make the
16240         BeginEndUpdateTest not call OnInvalidated 15004 times, though..
16241
16242 2006-10-13  Chris Toshok  <toshok@ximian.com>
16243
16244         * PropertyGridView.cs:
16245
16246         - do a little refactoring so that only one place calls
16247         dropdown_form.Hide, and that is CloseDropDown.  make everywhere
16248         else call that.  Also make it Refresh, since there are redraw bugs
16249         otherwise (we should take a look at that...)
16250
16251         - do a little more refactoring work to share the body of code
16252         involved with the drop down.  it was duplicated in the code
16253         dealing with the listbox handling and in the code dealing with the
16254         UITypeEditors.
16255
16256         - add a Capture to the dropdown form's control once it's
16257         displayed, and add a MouseDown handler that checks to make sure
16258         the position is inside the control.  If it's not, close the
16259         dropdown.  This fixes #78190.
16260
16261         - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
16262         if the value is different than the initial value.
16263         
16264 2006-10-13  Andreia Gaita  <shana.ufie@gmail.com>
16265
16266         * Control.cs: see #78650
16267         - Fixed GetNextControl for several cases:
16268                 - Changed FindFlatForward to return 
16269                 correct sibling control when more than one
16270                 control has same TabIndex as the currently 
16271                 focused one.
16272                 - Changed FindFlatBackward to loop children
16273                 from last to first and apply same logic as in
16274                 FindFlatForward
16275                 - Changed FindControlForward to search for
16276                 children when control is not a container
16277                 but has children, or search for siblings if
16278                 control is a container...
16279                 - Changed FindControlBackward   to continue
16280                 searching for child controls when hitting 
16281                 Panel-like parents
16282                 
16283         - Fixed Focus method to update ActiveControl
16284         (FocusTest.FocusSetsActive failure)
16285         
16286         * TabControl.cs:
16287         - Focus rectangle now refreshes when gaining
16288         or losing focus
16289         - Removed grab for Tab key on IsInputKey that 
16290         was keeping tab navigation from working (#78650)
16291
16292 2006-10-13  Chris Toshok  <toshok@ximian.com>
16293
16294         * PropertyGridView.cs:
16295         - Rewrite SetPropertyValue to loop over SelectedGridItem's
16296         SelectedObjects.
16297
16298         - Deal with GridItem.Value == null a few places.
16299
16300         * PropertyGrid.cs: 
16301         - replace the PopulateGridItemCollection with a pair of methods
16302         which compute the intersection of all the properties in the
16303         SelectedObjects array.  Fixes #79615.
16304
16305         - Throw ArgumentException from set_SelectedObjects if there's a
16306         null in the array.
16307
16308         - Add GetTarget method which can be used to traverse up the
16309         GridItem.Parent chain.  It depends on the assumption that
16310         selected_objects for different GridEntries are always in the same
16311         order (a safe assumption).  Use this method and loop over all the
16312         selected objects in the entry when calling RemoveValueChanged and
16313         AddValueChanged.
16314         
16315         * GridEntry.cs: Make this handle multiple selected objects.
16316         .Value returns null if not all the selected objects share the same
16317         value.
16318
16319 2006-10-12  Jonathan Pobst  <monkey@jpobst.com>
16320         * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
16321           ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
16322           ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
16323           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
16324           ToolStripTextBox.cs: Add accessibility, fix attributes/API and
16325         add additional functionality.
16326
16327 2006-10-12  Mike Kestner  <mkestner@novell.com>
16328
16329         * ErrorProvider.cs : new ToolTipWindow ctor sig.
16330         * HelpProvider.cs : new ToolTipWindow ctor sig.
16331         * ToolTip.cs : remove ToolTip param from Window sig since it is
16332         not used.
16333         * ToolBar.cs : add tooltip support.  Fixes #79565.
16334
16335 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
16336
16337         * ComboBox.cs: move the events in set_SelectedIndex to 
16338         after the call to HighlightIndex in order to avoid 
16339         possible recursion and subsequent problems with the call
16340         to HighlightIndex and include a range check in 
16341         set_HighlightIndex. Fixes #79588
16342         
16343 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
16344
16345         * MonthCalendar.cs: When FirstDayOfWeek is default set firstday 
16346         to ui thread's settings instead of sunday. 
16347         * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
16348
16349 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
16350
16351         * DateTimePicker.cs
16352         * MonthCalendar.cs
16353         * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
16354         and implement missing functionality (selecting different parts 
16355         of the date and edit them individually with the keyboard).
16356         
16357 2006-10-11  Chris Toshok  <toshok@ximian.com>
16358
16359         * Control.cs (OnInvalidated): fix NRE relating to last change.
16360
16361 2006-10-11  Chris Toshok  <toshok@ximian.com>
16362
16363         * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
16364         atoms in _NET_WM_STATE here if the window is maximized.  We need
16365         to do this because we're *replacing* the existing _NET_WM_STATE
16366         property, so those atoms will be lost otherwise, and any further
16367         call to GetWindowState will return Normal for a window which is
16368         actually maximized.  Fixes #79338.
16369
16370 2006-10-11  Jackson Harper  <jackson@ximian.com>
16371
16372         * TextControl.cs: Special case for setting selection end to
16373         selection start, we basically kill the anchor.
16374         - some todo comments.
16375
16376 2006-10-11  Chris Toshok  <toshok@ximian.com>
16377
16378         * Control.cs: switch to using an "invalid_region" to track which
16379         parts of the image buffer need updating.  This is more code than
16380         the simple fix from r66532.  That version just attempted to always
16381         fill the entire buffer on redraw, which turns out to be
16382         inefficient when invalidating small rectangles.  This version
16383         simply adds the invalid rectangle to the invalid region.  When we
16384         get any WM_PAINT message we see if it can be filled using the
16385         image buffer, and if it can't (if the paint event's clip rectangle
16386         is visible in the invalid region) we first fill the image buffer.
16387         So, the image buffer is still a cache, we just fill it lazily.
16388
16389         * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
16390         need it any longer.
16391
16392 2006-10-11  Chris Toshok  <toshok@ximian.com>
16393
16394         * XplatUIX11.cs (SetWindowPos): we need to update both position as
16395         well as size after calling XMoveResizeWindow.  This keeps us from
16396         ignoring future SetWindowPos calls.  Fixes the disappearing
16397         DateTimePicker in the ToolBarDockExample from bug #72499.
16398
16399 2006-10-11  Chris Toshok  <toshok@ximian.com>
16400
16401         * TextBoxBase.cs: reorder things a bit when it comes to
16402         resizing-causing-recalculation.  we were recalculating the
16403         document when our position was changed, which shouldn't happen.
16404         We only care about size changes.  Clear up some more redundant
16405         recalculation calls while I'm at it.  This makes the toolbar dock
16406         example snappy when you're just dragging toolbars around (since it
16407         causes a relayout whenever you move one.)
16408
16409 2006-10-11  Chris Toshok  <toshok@ximian.com>
16410
16411         * ToolBarButton.cs (get_Rectangle): this only returns
16412         Rectangle.Empty if Visible == false, or Parent == null.
16413         Parent.Visible doesn't matter.
16414
16415 2006-10-10  Chris Toshok  <toshok@ximian.com>
16416
16417         * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
16418         by .net 1.1, so switch to an internal method instead.
16419
16420 2006-10-10  Chris Toshok  <toshok@ximian.com>
16421
16422         * Control.cs (WM_PAINT): when a control is double buffered we draw
16423         initially to the ImageBuffer and then copy from there.  But when a
16424         parent control which has child controls is double buffered, the
16425         initial drawing doesn't encompass the entire ClientRectangle of
16426         the parent control, so we end up with uninitialized bits (this is
16427         easily seen by dragging the top toolbar in
16428         wf-apps/ToolBarDockExample to the right, quickly).  The fix is to
16429         manually set the ClipRectangle of the paint_event (only the one we
16430         use to populate the ImageBuffer) to ClientRectangle.  Fixes more
16431         of the nastiness in bug #72499.
16432
16433         * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
16434         which we use in Control.cs's WM_PAINT handling.
16435
16436 2006-10-10  Jackson Harper  <jackson@ximian.com>
16437
16438         * TextBoxBase.cs: Finish off the autoscrolling stuff.
16439
16440 2006-10-10  Chris Toshok  <toshok@ximian.com>
16441
16442         * Cursor.cs: Apply a slightly different patch to the one suggested
16443         in #79609.
16444
16445 2006-10-10  Jackson Harper  <jackson@ximian.com>
16446
16447         * MenuItem.cs: Make sure to put the mdi child in the hashtable,
16448         not the parent form.
16449         * TextControl.cs: use difference in old line count vs new count to
16450         calculate how many lines were added, this takes into account soft
16451         line breaks properly.
16452
16453 2006-10-10  Chris Toshok  <toshok@ximian.com>
16454
16455         * LinkLabel.cs: don't call MeasureCharacterRanges against a
16456         rectangle located at 0,0 and the size of the text.  Use
16457         ClientRectangle instead.  This fixes rendering of non-left aligned
16458         link labels.
16459
16460 2006-10-10  Jackson Harper  <jackson@ximian.com>
16461
16462         * TextBoxBase.cs: When we set the selection start position the
16463         caret.
16464         * TextControl.cs: Need to update the caret when we decrement it to
16465         zero.
16466         - Make sure that the selection_visible flag gets reset to false if
16467         the selection isn't visible.  Before this you could get it set to
16468         visible by changing the selection start, then changing the end to
16469         equal the start.
16470
16471 2006-10-09  Jackson Harper  <jackson@ximian.com>
16472
16473         * TreeView.cs: Don't update scrollbars when we aren't visible.
16474         * TreeNodeCollection.cs: Only need to update scrollbars if being
16475         added to an expanded visible node or the root node.
16476
16477 2006-10-09  Chris Toshok  <toshok@ximian.com>
16478
16479         * XplatUIX11.cs (SendMessage): fix NRE.
16480
16481 2006-10-09  Jackson Harper  <jackson@ximian.com>
16482
16483         * TextBoxBase.cs: Implement horizontal autoscrolling.
16484         * TextControl.cs: Add a movement types that allows moving forward
16485         and backwards without wrapping.
16486
16487 2006-10-09  Mike Kestner  <mkestner@novell.com>
16488
16489         * ListViewItem.cs : layout changes for wrapped LargeIcon labels
16490         with focus "expansion" of labels.  Fixes #79532 and then some.
16491         * ThemeWin32Classic.cs : add LineLimit to ListView label format
16492         when wrapping.
16493
16494 2006-10-09  Jackson Harper  <jackson@ximian.com>
16495
16496         * TextBoxBase.cs: Set the default max values to MaxValue since
16497         we use the scrollbar for autoscrolling and the default value is
16498         100.  If we don't do this the caret won't keep up with typing
16499         after about 18 characters.
16500         * TextControl.cs: Make sure the selection is offset by the
16501         viewport x.  This fixes selection when using auto scrolling.
16502
16503 2006-10-07  Andreia Gaita <shana.ufie@gmail.com>
16504         
16505         * Form.cs: The active control should be selected after the 
16506         OnLoad so that any child control initialization that affects
16507         the selection is done. Fixes #79406
16508
16509 2006-10-06  Chris Toshok  <toshok@ximian.com>
16510
16511         * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
16512         to have no evil effects.
16513
16514         - Stop selecting StructureNotifyMask on non-toplevel windows.
16515
16516           The only way children should be resized is by using the SWF api,
16517           and we already send WM_WINDOWPOSCHANGED messages in those cases.
16518           Toplevel windows can be interacted with via the window manager,
16519           and so we keep the input mask there.
16520
16521           The other event StructureNotifyMask gives us (that we care
16522           about) is DestroyNotify.  The code is already structured such
16523           that it assumes we won't be getting a DestroyNotify event for
16524           the window we pass to XDestroyWindow (which is what
16525           StructureNotifyMask is supposed to guarantee.)  So, that code
16526           shouldn't be affected by this either.
16527
16528         - Stop selecting VisibilityChangeMask altogether.
16529
16530           We weren't doing anything with the resulting events anyway.
16531         
16532         This vastly reduces the number of X requests and events we see
16533         when resizing/laying out a large ui.
16534
16535 2006-10-06  Chris Toshok  <toshok@ximian.com>
16536
16537         * ScrollableControl.cs (DisplayRectangle): we need to take into
16538         account the DockPadding regardless of whether or not auto_scroll
16539         == true.  rework this slightly to this effect, and fix bug #79606,
16540         and part of #72499 (you can now see the drag handles and drag
16541         toolbars around).
16542
16543 2006-10-06  Gert Driesen  <drieseng@users.souceforge.net>
16544
16545         * ListViewItem.cs: Collections of selected and checked items are now
16546         dynamically rebuilt. Whenever an item is (un)checked or (de)selected
16547         we mark the collection "dirty".
16548         * ListView.cs: Marked collections readonly. Modified UpdateSelection
16549         to only clear SelectedItems when a new item is selected and MultiSelect
16550         is enabled. CheckedItems and SelectedItems now subscribe to Changed
16551         event of ListViewItemCollection, and mark its list dirty whenever
16552         that event is fire. This allows us to return selected/checked items 
16553         in the same order as they are in the Items collection. This matches
16554         the MS behavior.
16555
16556 2006-10-06  Chris Toshok  <toshok@ximian.com>
16557
16558         * NotifyIcon.cs (HandleMouseUp): only show the context menu on
16559         right mouse clicks.  Fixes bug #79593.
16560
16561 2006-10-06  Chris Toshok  <toshok@ximian.com>
16562
16563         * Splitter.cs: doh, fix splitters that don't want to cancel the
16564         movement when you drag them.  Also, impose the limits on the
16565         values we send to the SplitterMovingEvent.  Fixes #79598.
16566
16567 2006-10-06  Jackson Harper  <jackson@ximian.com>
16568
16569         * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
16570         since we use this for auto scrolling also.
16571
16572 2006-10-05  Chris Toshok  <toshok@ximian.com>
16573
16574         * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus.  I'm
16575         beginning to think that most datagrid column types don't need this
16576         method.  Fixes bug #79392.
16577
16578 2006-10-05  Chris Toshok  <toshok@ximian.com>
16579
16580         * DataGrid.cs: move back to a more lazy scheme for creating the
16581         CurrencyManager, so we aren't updating it every time you set
16582         either DataSource or DataMember.  Also, don't call
16583         RecreateDataGridRows if the currency manager hasn't changed.
16584
16585 2006-10-05  Chris Toshok  <toshok@ximian.com>
16586
16587         * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
16588         emitted, SelectedIndex should already be updated.  Fixes bug
16589         #78929.
16590
16591 2006-10-05  Jonathan Pobst  <monkey@jpobst.com>
16592
16593         * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
16594           ToolStripTextBox.cs: Initial commit.
16595         * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
16596
16597 2006-10-05  Jackson Harper  <jackson@ximian.com>
16598
16599         * TabControl.cs: We need to invalidate the tab control area when
16600         new ones are added (duh).
16601
16602 2006-10-03  Chris Toshok  <toshok@ximian.com>
16603
16604         * Form.cs (ProcessDialogKey): if the focused control is in this
16605         form and is a button, call its PerformClick method here.  Fixes
16606         #79534.
16607
16608 2006-10-04  Jackson Harper  <jackson@ximian.com>
16609
16610         * TabPage.cs: Ignore setting of Visible, and add an internal
16611         method for setting the controls visibility.  TabPage's Visible
16612         property is a little strange on MS, this seems to make us
16613         compatible, and fixes cases where people set all the tab pages to
16614         visible.
16615         * TabControl.cs: Use the new internal setting on tab pages
16616         visibility.
16617
16618 2006-10-03  Mike Kestner  <mkestner@novell.com>
16619
16620         * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
16621
16622 2006-10-03  Mike Kestner  <mkestner@novell.com>
16623
16624         * ListView.cs : use is_visible instead of Visible to check if 
16625         scrollbars should be placed/sized.  Also some max_wrap_width
16626         love for LargeIcon view.  [Fixes #79533]
16627
16628 2006-10-03  Atsushi Enomoto  <atsushi@ximian.com>
16629
16630         * TextControl.cs :
16631           Make set_TextAlign() do actually update the align. Fixed #78403.
16632
16633 2006-10-03  Chris Toshok  <toshok@ximian.com>
16634
16635         * DataGrid.cs: fix a crash when switching datasources if the
16636         vertical scrollbar is at someplace other than Value = 0.  Also,
16637         reduce the number of recalculation passes we do in SetDataSource
16638         from 2 to 1.
16639
16640 2006-10-03  Jackson Harper  <jackson@ximian.com>
16641
16642         * TextBoxBase.cs: Move the if value the same bail check up, we
16643         don't want to empty the document if it is already empty, this
16644         seems to severly mess up the caret.  TODO: I should probably fix
16645         the empty statement to update teh caret somehow.
16646
16647 2006-10-03  Chris Toshok  <toshok@ximian.com>
16648
16649         * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
16650         incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
16651         reflection, an internal row type, properties on said type, etc.)
16652         will work with our datagrid.  Fixes #79531.
16653
16654 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
16655
16656         * FileDialog.cs: Don't crash if a path is not accessible
16657           (System.UnauthorizedAccessException). Fixes #79569.
16658         * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
16659           a ':' too. Return unknown icon for those paths/files.
16660
16661 2006-10-03  Sebastien Pouliot  <sebastien@ximian.com>
16662
16663         * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when 
16664         GetContainerControl returns null.
16665
16666 2006-10-02  Chris Toshok  <toshok@ximian.com>
16667
16668         * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
16669         call to XGetWindowAttributes instead of "handle".  fixes an X
16670         error using notifyicon after the NotifyIconWindow to Form base
16671         class switch.
16672
16673 2006-10-02  Chris Toshok  <toshok@ximian.com>
16674
16675         * XplatUIX11.cs (QueryPointer): new function, encapsulating the
16676         server grab and looping we need to do to get down to the most
16677         deeply nested child window.
16678         (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
16679         QueryPointer again after the WarpPointer so we can generate a
16680         proper (fake) MotionNotify event to be enqueued in the destination
16681         window's queue.
16682         (GetCursorPos): call QueryPointer.
16683
16684         Fixes #79556.
16685
16686 2006-10-02  Jackson Harper  <jackson@ximian.com>
16687
16688         * NotifyIcon.cs: Derive the notify icon from a form, so things
16689         like FindForm work on it.
16690         - Swallow the WM_CONTEXTMENU message, since that is generated on
16691         mouse down, and context menu is a mouse up kinda guy.  I believe
16692         the correct fix here is probably to make the notify icon entirely
16693         NC area, but this seems to work fine for anyone not manipulating
16694         WndProc.
16695
16696 2006-10-02  Jonathan Pobst  <monkey@jpobst.com>
16697
16698         * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
16699           ToolStripItemCollection.cs, ToolStripLabel.cs,
16700           ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
16701           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
16702           Initial implementation.
16703         * TextRenderer.cs: Provide padding to MeasureText.
16704
16705 2006-10-02  Sebastien Pouliot  <sebastien@ximian.com>
16706
16707         * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
16708         of ButtonBaseAccessibleObject. Fix bug #79552.
16709
16710 2006-10-02  Jackson Harper  <jackson@ximian.com>
16711
16712         * MdiWindowManager.cs: When maximizing use the containers client
16713         rect, not it's bounds, so nc area is accounted correctly.
16714         - Use the parent form's size for the menu position, since the
16715         client isn't always the full form size.
16716
16717 2006-10-01  Chris Toshok  <toshok@ximian.com>
16718
16719         * ScrollableControl.cs: make sure neither right_edge or
16720         bottom_edge are < 0, since they're used as LargeChange for the
16721         horiz/vert scrollbars respectively.  Fixes #79539.
16722
16723 2006-10-01  Chris Toshok  <toshok@ximian.com>
16724
16725         * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
16726         the xplatuix11 code can cause us to destroy/recreate our handle.
16727
16728         * XplatUIX11.cs
16729         (SystrayAdd):
16730         - this code can be invoked many times for the same Hwnd.  Make
16731           sure we only destroy the client window once (the first time this
16732           method is called).  This fixes bug #79544.
16733         - Remove the call to the improperly bound XSync.  why we had two
16734           bindings to this, I will never know, but this call resulted in
16735           events being discarded from the queue(!).
16736         - correct a misunderstanding of _XEMBED_INFO - the second atom is
16737           not our current state but the state we wish to be in.  So, 0 if
16738           we don't want to be mapped.  Change it to 1.
16739         (SystrayRemove): The XEMBED spec makes mention of the fact that
16740         gtk doesn't support the reparent of client windows away from the
16741         embedder.  Looking at gtksocket-x11.c seems to agree with this.
16742         The only avenue we have for removing systray icons is to destroy
16743         them.  We don't want the handle to go away for good, though, so
16744         call InternalRecreateHandle on the NotifyIconWindow.  Fixes
16745         #79545.
16746         
16747 2006-10-01  Chris Toshok  <toshok@ximian.com>
16748
16749         * Form.cs (WndProc): inline the native_enabled variable usage into
16750         the cases in which it's used.  Fixes #79536.
16751
16752 2006-09-29  Mike Kestner  <mkestner@novell.com>
16753
16754         * ListView.cs : toggle the selection state for ctrl clicks in 
16755         multiselect mode. [Fixes #79417]
16756
16757 2006-09-29  Mike Kestner  <mkestner@novell.com>
16758
16759         * ListView.cs : kill CanMultiSelect and refactor the selection
16760         code to support multiselection in the absence of mod keys. Steal
16761         arrow/home/end keys by overriding InternalPreProcessMessage to
16762         restore regressed keynav behavior.
16763         [Fixes #79416]
16764
16765 2006-09-29  Jackson Harper  <jackson@ximian.com>
16766
16767         * MdiClient.cs: Repaint the titlebars when the active window is
16768         changed.
16769
16770 2006-09-29  Chris Toshok  <toshok@ximian.com>
16771
16772         * Application.cs: when entering a runloop with a modal, make sure
16773         the hwnd is enabled.  Fixes #79480.
16774
16775 2006-09-29  Chris Toshok  <toshok@ximian.com>
16776
16777         * DataGrid.cs (CurrentCell): if we try to navigate to the add row
16778         when ListManager.CanAddRows == false, bump us back one.
16779
16780         * DataGridColumnStyle.cs (ParentReadOnly): remove the
16781         listmanager.CanAddRows check.  This makes ArrayLists uneditable
16782         using a datagrid, which is not right.
16783         (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
16784         is an IEditable, but call property_descriptor.SetValue regardless.
16785         fixes #79435.
16786
16787 2006-09-29  Chris Toshok  <toshok@ximian.com>
16788
16789         * DataGridBoolColumn.cs: we need to test equality in the face of
16790         possible null values (as is the case with the default NullValue).
16791         This patch keeps us from crashing in that case.
16792
16793 2006-09-29  Jackson Harper  <jackson@ximian.com>
16794
16795         * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
16796         here, since it will get called for every node collection in the
16797         tree. This is now done in the treeview once the sorting is
16798         finished.
16799         * TreeView.cs: Recalculate the visible order, and update the
16800         scrollbars after sorting, set the top nope to the root so that the
16801         recalc actually works.
16802
16803 2006-09-29  Chris Toshok  <toshok@ximian.com>
16804
16805         * LinkLabel.cs: more handling of the default link collection in
16806         the face of LinkArea manipulation.  The default link collection
16807         contains 1 element (start=0,length=-1).  If the user sets LinkArea
16808         to anything and the links collection is the default, clear it.
16809         Then only add the link if its nonempty.  Fixes #79518.
16810
16811 2006-09-29  Chris Toshok  <toshok@ximian.com>
16812
16813         * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
16814         piece correctly when we hit a '\n'.  Fixes #79517.
16815
16816 2006-09-29  Chris Toshok  <toshok@ximian.com>
16817
16818         * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
16819         change the binding of gdk_init_check to take two IntPtr's, and
16820         pass IntPtr.Zero for both of them.  Fixes #79520.
16821
16822 2006-09-29  Mike Kestner  <mkestner@novell.com>
16823
16824         * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
16825         [Fixes #78779]
16826
16827 2006-09-28  Jackson Harper  <jackson@ximian.com>
16828
16829         * XplatUIX11.cs: When translating NC messages make sure we go from
16830         whole window to screen, not client window to screen.
16831         * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
16832         method doesn't exist
16833         - Skip over controls that aren't forms when arranging.
16834
16835 2006-09-28  Jackson Harper  <jackson@ximian.com>
16836
16837         * XplatUIWin32.cs: Clip the rect to the parent window.
16838         * XplatUIStructs.cs: Add clipping modes struct.
16839         * InternalWindowManager.cs: New private method that factors title
16840         bar heights in when calculating the pos of an NC mouse message.
16841         - Use SendMessage to force a paint when the form's size is changed
16842         instead of painting the decorations immediately.
16843         - Don't let the NC button click messages get to DefWndProc,
16844         because they will attempt to handle windowing themself, and this
16845         messes up z-order (it will put them in front of the scrollbars).
16846         * XplatUIX11.cs: Make sure that we don't reset window managers if
16847         we already have one (ie the window is an MDI window).
16848
16849 2006-09-28  Chris Toshok  <toshok@ximian.com>
16850
16851         * MainMenu.cs: fix #79405 by way of a disgusting hack.  all the
16852         menu code really needs going over.
16853
16854 2006-09-27  Chris Toshok  <toshok@ximian.com>
16855
16856         * XplatUIX11.cs (SetWMStyles): more metacity wonderment.  turns
16857         out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
16858         window is maximizable.  So, we need to make sure that even if we
16859         clear the border/wm frame of those functions, they're still
16860         available (basically, we remove the decoration without removing
16861         the function).  Half the fix for #79338.
16862
16863 2006-09-27  Chris Toshok  <toshok@ximian.com>
16864
16865         * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
16866         Fixes bug #79515.
16867
16868 2006-09-27  Chris Toshok  <toshok@ximian.com>
16869
16870         * Splitter.cs: reorder things a bit so that we don't actually
16871         draw/move the splitter until after calling OnSplitterMoving.  This
16872         lets users cancel/disallow the movement by explicitly setting
16873         event.SplitX/SplitY.  Fixes #79372.
16874
16875 2006-09-27  Jackson Harper  <jackson@ximian.com>
16876
16877         * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
16878         because it is most likely on a window being destroyed, and that
16879         will give us an X11 error.
16880
16881 2006-09-27  Chris Toshok  <toshok@ximian.com>
16882
16883         * PropertyGridView.cs: half of the fix for #78190.  Clicking on
16884         the dropdown button now toggles between showing and hiding the
16885         dropdown.  Also, get rid of dropdown_form_showing and just use
16886         dropdown_form.Visible.  We still don't do a grab, but I'll leave
16887         that part to someone who has handled Capture-fu before.
16888
16889 2006-09-27  Chris Toshok  <toshok@ximian.com>
16890
16891         * DataGrid.cs: return false if alt isn't pressed when '0' is
16892         pressed.  this keeps the '0' key from being swallowed, and fixes
16893         bug #79350.
16894
16895 2006-09-27  Chris Toshok  <toshok@ximian.com>
16896
16897         * ComboBox.cs: use Invalidate when scrolling the dropdown list.
16898         Calling Refresh (in response to a scrollbar event) screws up the
16899         scrollbar painting.  Fixes bug #78923.
16900
16901 2006-09-27  Chris Toshok  <toshok@ximian.com>
16902
16903         * Theme.cs (SystemResPool): make the "if hashtable[key] == null
16904         then insert into hashtable" blocks threadsafe.
16905
16906 2006-09-27  Chris Toshok  <toshok@ximian.com>
16907
16908         * MessageBox.cs (CreateParams): the styles should be |'ed with our
16909         baseclass's, since otherwise the
16910         ControlBox/MinimizeBox/MaximizeBox assignments above have no
16911         effect.  This gets the close button back in messageboxes.
16912
16913 2006-09-27  Chris Toshok  <toshok@ximian.com>
16914
16915         * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
16916         flag, not just != 0.  this makes flags that are actually multiple
16917         bits (like WS_CAPTION) work.  fixes bug #79508.
16918
16919 2006-09-27  Jordi Mas i Hernandez <jordimash@gmail.com>
16920
16921         * PageSetupDialog.cs: add support for getting and settings the 
16922         paper size, source and orientation.
16923
16924 2006-09-26  Chris Toshok  <toshok@ximian.com>
16925
16926         * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
16927         and caption == "", we need to remove the resize handles as well as
16928         the title bar.
16929
16930         * Control.cs (set_Text): turns out that setting Text on a form
16931         should change the WM styles on the window, since if ControlBox ==
16932         false, the only way to get a window border is to have a non-""
16933         Text property.  check winforms/forms/text.cs for an example.  so,
16934         call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
16935         update both window styles and title.  This fixes a lot of dialogs
16936         (including the preferences dialog in MonoCalendar.)
16937
16938 2006-09-26  Chris Toshok  <toshok@ximian.com>
16939
16940         * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
16941         control isn't a Form), call Win32ShowWindow to hide the window,
16942         but don't update the control Visible property.  When we reparent
16943         back to a parent control, call SetVisible in order for the
16944         window's visibility to be reinstated.
16945
16946         * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
16947         the FosterParent.
16948
16949         * Control.cs (ControlCollection.Remove): remove that value.Hide()
16950         call for good, since it breaks MonoCalendar (and other things I'm
16951         sure.) Also, set all_controls to null *after* the owner calls,
16952         which end up regenerating it.
16953         (ChangeParent): allow new_parent to be == null, passing
16954         IntPtr.Zero down to XplatUI.
16955
16956         this fixes #79294 the right way.
16957
16958 2006-09-26  Mike Kestner  <mkestner@novell.com>
16959
16960         * GridEntry.cs : internal SetParent method.
16961         * PropertyGrid.cs : attach to property changed on the proper
16962         target if we have a hierarchical grid with subobjects. Setup
16963         GridItem.Parent for hierarchical items.
16964         * PropertyGridView.cs : Set value on the correct target for
16965         hierarchical grids. [Fixes #78903]
16966
16967 2006-09-26  Chris Toshok  <toshok@ximian.com>
16968
16969         * Control.cs (ChildNeedsRecreating): this should return true if
16970         either we're being recreated and the child is in our list, or our
16971         parent is waiting for our recreation.
16972
16973 2006-09-26  Chris Toshok  <toshok@ximian.com>
16974
16975         * Control.cs (ControlCollection.Remove): reinstate the
16976         value.Hide() call as suggested in bug #79294.
16977
16978 2006-09-26  Sebastien Pouliot  <sebastien@ximian.com>
16979
16980         * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
16981         coordinates (versus a relative move).
16982
16983 2006-09-26  Chris Toshok  <toshok@ximian.com>
16984
16985         * Control.cs: rework child recreation a little bit.  It turns out
16986         that we race between the DestroyNotify the WM_DESTROY message.  If
16987         the parent gets its DestroyNotify before the child gets the
16988         WM_DESTROY message, the child ends up not recreating (since the
16989         parent finishes its recreation on DestroyNotify, and the child
16990         checks ParentIsRecreating.)
16991
16992         So, instead we store off a list of all the child controls which
16993         need to be recreated when the parent control starts to recreate
16994         itself.  Then, when child controls get their WM_DESTROY message we
16995         check to see if they're in the parent's pending recreation list,
16996         and if so, we recreate.  This removes all dependency on ordering
16997         from the code and fixes the initial MonoCalendar upgrade dialog.
16998         
16999 2006-09-26  Jackson Harper  <jackson@ximian.com>
17000
17001         * TextControl.cs: Use the Line to get the length of the line,
17002         since soft line breaks can change the end line.
17003
17004 2006-09-26  Chris Toshok  <toshok@ximian.com>
17005
17006         * Control.cs (ControlCollection.AddImplicit): don't add the
17007         control again if it's already in one of our lists.  This keeps us
17008         from adding controls over and over again for comboboxes when their
17009         handle gets recreated (as the combobox adds implicit controls in
17010         OnHandleCreated).  Fixes the X11 errors in bug #79480.
17011
17012 2006-09-26  Jackson Harper  <jackson@ximian.com>
17013
17014         * TextControl.cs: When deleting characters make sure that any
17015         orphaned zero lengthed tags get deleted.
17016         - Fix ToString for zero lengthed tags.
17017
17018 2006-09-25  Jackson Harper  <jackson@ximian.com>
17019
17020         * TextControl.cs: When getting a tag at the location there can be
17021         multiple tags at the same spot, these are 0-lengthed tags that
17022         appear when extra formatting has been stuck in a location.  We
17023         need to pull out the last of these 0 lengthed tags.
17024
17025 2006-09-25  Jackson Harper  <jackson@ximian.com>
17026
17027         * TextControl.cs: Fix print out in debug method.
17028         * TextBoxBase.cs: When text is set bail if we are setting to the
17029         previous value.
17030         
17031 2006-09-24  Alexander Olk  <alex.olk@googlemail.com>
17032
17033         * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
17034           It is now possible to change the selected index in a FontXXXListBox
17035           with the up and down arrow keys from the FontXXXTextBoxes.
17036           Also, send the FontXXXTextBox mouse wheel event to the corresponding
17037           FontXXXListBoxes to match ms.
17038
17039 2006-09-22  Sebastien Pouliot  <sebastien@ximian.com>
17040
17041         * SystemInformation.cs: Return a clone of the theme's MenuFont because
17042         anyone can dispose it, anytime. All other properties returns enums, 
17043         structs or basic types so they don't need such tricks.
17044
17045 2006-09-22  Jackson Harper  <jackson@ximian.com>
17046
17047         * XplatUI.cs:
17048         * XplatUIWin32.cs:
17049         * Clipboard.cs:
17050         * DataFormats.cs:
17051         * XplatUIOSX.cs:
17052         * XplatUIDriver.cs: Update interface to add a primary selection
17053         flag, so the driver can use the primary selection buffer if
17054         needed.
17055         * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
17056
17057         * RichTextBox.cs: We need to supply the data object to paste now
17058         (so we can choose to supply CLIPBOARD or PRIMARY).
17059         * TextBoxBase.cs: Supply data object to paste (see above).
17060         - Middle click uses the primary selection data object.
17061         
17062 2006-09-21  Chris Toshok  <toshok@ximian.com>
17063
17064         * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
17065         of SetWMStyles.  It's still a rat's nest and is largely
17066         order-dependent which I dislike immensely.  This also fixes the X
17067         button disappearing from toplevel forms.
17068
17069 2006-09-21  Mike Kestner <mkestner@novell.com>
17070
17071         * ListBox.cs: move Jordi's click/dblclick raising code to the
17072         mouse up handler.
17073
17074 2006-09-21  Jordi Mas i Hernandez <jordimash@gmail.com>
17075
17076         * ListBox.cs: Fixes 79450
17077
17078 2006-09-21  Mike Kestner <mkestner@novell.com>
17079
17080         * TreeView.cs: guard against disposed conditions in UpdateScrollbars
17081         to deal with people updating the TreeNodeCollection after the tree
17082         is disposed.  "Fixes" 79330.
17083
17084 2006-09-20  Jackson Harper <jackson@ximian.com>
17085
17086         * TextControl.cs: Push the cursor record onto the undo stack
17087         before the delete action. This fixes 78651.
17088
17089 2006-09-20  Jonathan Chambers  <joncham@gmail.com>
17090
17091         * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
17092         CreateParams. Fixes 79329.
17093
17094 2006-09-19  Chris Toshok  <toshok@ximian.com>
17095
17096         * XplatUIX11.cs: a couple of blanket code massage passes to clean
17097         things up a bit.  First, get rid of the NetAtoms array (and the NA
17098         enum), and just embed the atoms as static fields.  Also, add a
17099         couple of functions (StyleSet and ExStyleSet) to clean up all the
17100         bitmask testing of styles.
17101
17102         * X11Structs.cs: remove the NA enum, not needed anymore.
17103         
17104 2006-09-19  Chris Toshok  <toshok@ximian.com>
17105
17106         * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
17107         (mapping them to _NET_WM_WINDOW_TYPE_UTILITY).  and add a little
17108         added cleanup to get MessageBox titles appearing again, which were
17109         broken by my earlier fix for caption-less/ControlBox-less windows.
17110
17111 2006-09-18  Jonathan Pobst <monkey@jpobst.com>
17112
17113         * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
17114           ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
17115           ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
17116           ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
17117           ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
17118           ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
17119           ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
17120           ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
17121           ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
17122           ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
17123           ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
17124             Inital import.
17125         * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
17126           ToolStripButton.cs: Stubs needed for above.
17127         * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
17128
17129 2006-09-15  Chris Toshok  <toshok@ximian.com>
17130
17131         * XplatUIX11.cs:
17132         - make the MessageQueues hashtable Synchronized.
17133         
17134         - SendMessage: if the Hwnd is owned by a different thread, use the
17135         AsyncMethod stuff to dispatch the SendMessage on the hwnd's
17136         thread.  Fixes bug #79201.
17137
17138 2006-09-15  Chris Toshok  <toshok@ximian.com>
17139
17140         * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly.  If
17141         ControlBox == false, we disallow maximize/minimize/close.  If the
17142         form Caption is "" we also disallow move (and get rid of the Title
17143         decoration).  Unfortunately, regardless of how things are set,
17144         we're stuck with the Title and WM menu.
17145
17146 2006-09-15  Chris Toshok  <toshok@ximian.com>
17147
17148         * Application.cs: add locking around the static message_filters
17149         ArrayList, part of #79196.
17150
17151 2006-09-15  Chris Toshok  <toshok@ximian.com>
17152
17153         * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
17154         Form.ControlBox == false, the window has no titlebar nor resize
17155         handles.  fixes bug #79368.
17156
17157 2006-09-15  Chris Toshok  <toshok@ximian.com>
17158
17159         * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
17160         >= 0.  Fixes bug #79370.
17161
17162 2006-09-15  Jonathan Pobst <monkey@jpobst.com>
17163         * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
17164         * Control.cs:
17165             Add properties: LayoutEngine, Margin, DefaultMargin.
17166             Add method: GetPreferredSize.
17167             Move layout logic from PerformLayout to layout engines. 
17168
17169 2006-09-13  Chris Toshok  <toshok@ximian.com>
17170
17171         * XplatUIX11.cs: more destroy work.  Jackson pointed out that my
17172         fix for #79326 broke #78718, so this change addresses that.
17173
17174         - in SendWMDestroyMessages remove the call to
17175         CleanupCachedWindows, since we might be recreating the control and
17176         need to maintain the references to right Hwnd handles.  Also, set
17177         the zombie flag to true for each of the children in the hierarchy
17178         instead of calling hwnd.Dispose.  This will cause GetMessage to
17179         ignore all events for the window except for DestroyNotify.
17180
17181         - In GetMessage, ignore messages except for DestroyNotify for
17182         zombie hwnds.
17183         
17184         * Control.cs: revert the is_recreating fix from the last
17185         ChangeLog.  It's definitely "right", but it breaks switching from
17186         an MDI form to a non-MDI form.  Will need to revisit that.
17187
17188         * Hwnd.cs: add a zombie flag, which means "the
17189         client_window/whole_window handles are invalid, but we're waiting
17190         for the DestroyNotify event to come in for them".  Set the flag to
17191         false explicitly if setting WholeWindow/ClientWindow, and also
17192         when Disposing.
17193         
17194 2006-09-13  Chris Toshok  <toshok@ximian.com>
17195
17196         * XplatUIX11.cs: rework window destruction slightly.
17197
17198         - when destroying the windows associated with a control, we don't
17199         need 2 separate XDestroyWindow calls.  Just the one for the
17200         whole_window (or for client_window if whole_window is somehow
17201         IntPtr.Zero -- can this happen?) is enough.
17202
17203         - reworked SendWMDestroyMessages slightly, so we always dispose
17204         the child control hwnd's after sending the messages.
17205         
17206         - refactored out the ActiveWindow/FocusWindow/Caret clearing from
17207         the two places it was used (one was even using hwnd.Handle and the
17208         other hwnd.client_window.  ugh), adding another call in
17209         SendWMDestroyMessages.  We need this new call because now the
17210         DestroyNotify events in the queue will be ignored for the child
17211         controls (as their hwnd's were disposed, and the window id's
17212         removed from the hashtable in SendWMDestroyMessages.) fun, eh?
17213
17214         - this fixes bug #79326.
17215
17216 2006-09-13  Chris Toshok  <toshok@ximian.com>
17217
17218         * Control.cs: don't always set is_recreating to false at the end
17219         of RecreateHandle, since sometimes we're not done (and won't be
17220         until WndProc handles the WM_DESTROY message).  Also, set
17221         is_recreating to false in the WM_DESTROY handling code.  Part of
17222         the fix for bug #79326.
17223
17224 2006-09-13  Miguel de Icaza  <miguel@novell.com>
17225
17226         * X11DesktopColors.cs: Start the droppage of debugging messages.
17227
17228         * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
17229
17230 2006-09-13  Jonathan Pobst <monkey@jpobst.com>
17231
17232         * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
17233
17234 2006-09-12  Chris Toshok  <toshok@ximian.com>
17235
17236         * DataGrid.cs (get_ListManager): if the list_manager is null, try
17237         to create it using SetDataSource.  Fixes bug #79151.
17238
17239 2006-09-11  Chris Toshok  <toshok@ximian.com>
17240
17241         * XEventQueue.cs: add a DispatchIdle property.
17242
17243         * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
17244         either the queue is null, or the queue has DispatchIdle set to
17245         true.
17246         (DoEvents): set queue.DispatchIdle to false around the
17247         peek/translate/dispatch message loop in this method.  This keeps
17248         Application.Doevents from emitting idle events.  Part of the fix
17249         for #78823.
17250
17251 2006-09-11  Chris Toshok  <toshok@ximian.com>
17252
17253         * DataGrid.cs (set_DataSource): make this work for both the
17254         winforms/datagrid test and ReportBuilder.  It seems as though when
17255         we've created a ListManager (or maybe it's if we have a
17256         BindingContext?), when we set the DataSource it clears the
17257         DataMember to "".  otherwise we reuse the datamember.  Fixes bug
17258         #79333.
17259
17260 2006-09-11  Chris Toshok  <toshok@ximian.com>
17261
17262         * XplatUIX11.cs: deal with queue being null, which happens in all
17263         the Clipboard functions.  Fixes one of the two problems mentioned
17264         in #78612.
17265
17266 2006-09-11  Chris Toshok  <toshok@ximian.com>
17267
17268         * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
17269         button on various spots (including outside the menu) works closer
17270         to MS, and doesn't crash.  Fixes #79343.
17271
17272 2006-09-11  Gert Driesen  <drieseng@users.sourceforge.net>
17273
17274         * ListView.cs: Do not initialize item_sorter in init. To match MS,
17275         return null for ListViewItemSorter if View is SmallIcon or LargeIcon
17276         and the internal comparer is set. When a new ListViewItemSorter is set,
17277         sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
17278         was specified. No further processing is necessary if SortOrder is set
17279         to it's current value. If Sorting is modified to None, and View is
17280         neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
17281         (either custom or our internal ItemComparer) to null, on 1.0 profile
17282         only set item_sorter to null if its our internal IComparer. If Sorting
17283         is modified to Ascending or Descending, then use our internal IComparer
17284         if none is set, and if the current IComparer is our internal one then:
17285         on 2.0 profile always replace it with one for new Sorting, and on 1.0
17286         profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
17287         Enum.IsDefined to verify whether a valid View value is specified in
17288         its setter. Automatically sort listview items when listview is
17289         created. In Sort, do nothing if ListView is not yet created, or if
17290         no item_sorter is set (no Sorting was set, Sorting was explicitly set
17291         to None or ListViewItemSorter was set to null). Added Sort overload
17292         taking a bool to indicate whether the ListView should be redrawn when
17293         items are sorted (we use this in ListViewItemCollection to avoid double
17294         redraws). Modified our internal IComparer to take the sort order into
17295         account. In Add and AddRange methods of ListViewItemCollection, also
17296         call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
17297         view), but use overload with noredraw option to avoid double redraw.
17298         On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
17299         true when View is Tile, and do the same when attempting to set View to
17300         Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
17301         for selected/checked indices, as it involves overhead when sorting is
17302         done while these collections are not used all that often. Instead
17303         we'll build the indices on demand. Modified IList implementation of
17304         CheckedIndexCollection to use public methods if object is int.
17305         Modified CheckedListViewItemCollection to hide checked items if
17306         ListView.CheckBoxes is false. Removed LAMESPEC remark in 
17307         ListViewItemCollection as the .NET SDK docs have been fixed. Modified
17308         IList implementation in SelectedIndexCollection to use public methods
17309         if object is int. Modified SelectedListViewItemCollection to hide
17310         selected items if listview is not yet created.
17311         * ListViewItem.cs: CheckedIndices list no longer needs to be
17312         maintained separately (see ListView changes). Also clone font, fixes
17313         test failure.
17314
17315 2006-09-11  Mike Kestner  <mkestner@novell.com>
17316
17317         * ComboBox.cs: if we are updating the contents of the currently
17318         selected index, refresh the control or the textbox selection.
17319         [Fixes #79066]
17320
17321 2006-09-11  Mike Kestner  <mkestner@novell.com>
17322
17323         * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since 
17324         the 'specified' logic has been moved there.  This seems like a bug 
17325         in Control.cs, since our current SetBoundsCore completely ignores 
17326         the specified parameter.  Peter's commit seems to indicate that is 
17327         the way the MS control implementation works.  [Fixes #79325]
17328
17329 2006-09-10  Jonathan Chambers  <joncham@gmail.com>
17330
17331         * XplatUI.cs: Set default_class_name to be composed
17332         of current domain id. This allows MWF to be loaded in multiple
17333         domains on Win32.
17334
17335 2006-09-09  Miguel de Icaza  <miguel@novell.com>
17336
17337         * X11Keyboard.cs: If we are unable to obtain the input method, do
17338         not call CreateXic to create the input context.   Should fix
17339         #78944/79276.
17340
17341 2006-09-08  Alexander Olk  <alex.olk@googlemail.com>
17342
17343         * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
17344           Simplified gnome support by adding more pinvokes to get the
17345           icon for a file or mime type.
17346
17347 2006-09-08  Jackson Harper  <jackson@ximian.com>
17348
17349         * MenuAPI.cs: Deslect popup context menu items before closing the
17350         window, so that you don't see the previously selected item
17351         selected when you reopen the menu.
17352         * TextControl.cs: Update the cursor position even if we don't have
17353         focus.  This fixes typing in things like the ComboBox.  I'm not
17354         totally sure we should always set the visibility if we don't have
17355         focus, but couldn't find any corner cases where the cursor showed
17356         up when it shouldn't.
17357
17358 2006-09-08  Chris Toshok  <toshok@ximian.com>
17359
17360         * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
17361         our arrays are length 256.  & 0xff before indexing.  Fixes the
17362         crash in bug #78077.
17363         
17364 2006-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17365
17366         * ThemeWin32Classic.cs: 
17367         * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
17368         is true. Handle that check box too.
17369
17370 2006-09-07  Chris Toshok  <toshok@ximian.com>
17371
17372         * MenuAPI.cs: move the PerformClick call to OnMouseUp.  Fixes bug
17373         79244.
17374
17375 2006-09-07  Chris Toshok  <toshok@ximian.com>
17376
17377         * Control.cs: in set_BackColor only do the work if
17378         background_color != value.
17379
17380         * XplatUIX11.cs: move the clearing of invalid areas (both client
17381         and nc) to the same block of code where we set (nc_)expose_pending
17382         to false.  That is, move it from PaintEventEnd to PaintEventStart,
17383         so things that cause invalidates from within OnPaint will trigger
17384         another call to OnPaint.  Fixes bug #79262.
17385
17386 2006-09-07  Alexander Olk  <alex.olk@googlemail.com>
17387
17388         * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
17389         * FileDialog.cs: Fix typo
17390
17391 2006-09-07  Jackson Harper  <jackson@ximian.com>
17392
17393         * ThemeWin32Classic.cs:  oops, forgot to commit.  Draw the images
17394         for tab pages if they have any.
17395
17396 2006-09-06  Mike Kestner  <mkestner@novell.com>
17397
17398         * Splitter.cs: use the "current" rect when finishing drag handle
17399         to avoid an artifact demonstrated by resedit.exe.  [Fixes #79251]
17400
17401 2006-09-06  Mike Kestner  <mkestner@novell.com>
17402
17403         * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
17404         support offset splitters. [Fixes #79298]
17405
17406 2006-09-06  Alexander Olk  <alex.olk@googlemail.com>
17407
17408         * Mime.cs: Fixed a bug that could override the global mime type
17409           result.
17410
17411 2006-09-05  Jackson Harper  <jackson@ximian.com>
17412
17413         * TabControl.cs: Better calculation method for setting the slider
17414         pos. Prevents crashes on really wide tabs.
17415         - Draw Image on tab pages if an image list is used.
17416
17417 2006-09-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17418
17419         * MonthCalendar.cs: When Font changes, the Size should be
17420         updated to fit the new font's space requirements.
17421
17422 2006-09-02  Alexander Olk  <alex.olk@googlemail.com>
17423
17424         * ListBox.cs: If the items are cleared with Items.Clear set
17425           top_index to 0.
17426
17427 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17428
17429         * MonthCalendar.cs: Handle arrow keys as input keys. Also
17430         fire DateChanged event instead of DateSelected event when
17431         the date was changed by keyboard interaction.
17432
17433 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17434
17435         * DateTimePicker.cs: Handle DateChanged for the associated
17436         month_calendar control, and set month_calendar.Font from 
17437         OnFontChanged method, as well as resize the height of the
17438         control when needed. Make PreferredHeight proportional.
17439
17440 2006-09-01  Chris Toshok  <toshok@ximian.com>
17441
17442         * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
17443         properties.
17444
17445         * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
17446
17447 2006-09-01  Peter Dennis Bartok  <pbartok@novell.com> 
17448
17449         * FileDialog.cs: Set ClientSize instead of window size, to allow space
17450           for decorations (Fixes #79219)
17451
17452 2006-09-01  Mike Kestner  <mkestner@novell.com>
17453
17454         * ComboBox.cs: first stab at sorting plus some selection handling
17455         fixes to bring us more in line with MS behavior.  Also switches back
17456         to index based selection.  Alternative patches for index-based 
17457         selection were provided by Jackson Harper, Carlos Alberto Cortez, 
17458         and latency@gmx.de on bug 78848.  I assume they were similar to this
17459         code I've had simmering in my tree forever.
17460         [Fixes #78848]
17461
17462 2006-09-01  Chris Toshok  <toshok@ximian.com>
17463
17464         * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
17465         when setting list position guard against ending up with a -1 index
17466         (the other part of the fix for #78812).  Should probably make sure
17467         we don't need the analogous fix in the ItemDeleted case.
17468
17469         * DataGrid.cs:
17470         - in SetDataSource, work around the fact that the way
17471         OnBindingContextChanged is invoked will cause us to re-enter this
17472         method.  I'll remove the hack once I investigate
17473         OnBindingContextChanged.
17474
17475         - fix the logic in set_DataSource and set_DataMember (basically
17476         what to do if the other of the two is null.)
17477         
17478         - in OnListManagerItemChanged, we need to take into account the
17479         edit row when deciding whether or not to call RecreateDataGridRows
17480         (part of the fix for #78812).
17481
17482 2006-09-01  Jackson Harper  <jackson@ximian.com>
17483
17484         * Splitter.cs: Don't do anything if there is no control to affect
17485         (prevents us from crashing in weird tet cases).
17486         * TreeView.cs: Bounding box for the mouse movement reverting
17487         focus/selection back to previously selected node.  This matches
17488         MS, and makes the tree a lot more useable.
17489         * GroupBox.cs: Instead of drawing over the lines of the groupbox,
17490         use clipping so they are not drawn.  This fixes when the control
17491         is set to have a transparent background, or if it was over an
17492         image.
17493
17494 2006-09-01  Alexander Olk  <alex.olk@googlemail.com>
17495
17496         * MimeIcon.cs: Improved handling for reading default icons when
17497           using gnome (2.16 made it necessary). Check and read svg icons
17498           first, then 48x48 and then 32x32 icons.
17499
17500 2006-08-31  Chris Toshok  <toshok@ximian.com>
17501
17502         * DataGridTextBoxColumn.cs: only hide the textbox if it's still
17503         visible.
17504
17505         * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
17506         ProcessKeyPreview.  Fixes part of #77806.
17507
17508         * DataGrid.cs: big patch.
17509
17510         - revert the queueing up of DataSource/DataMember if inside
17511         BeginInit/EndInit calls.  That's not the way the datagrid achieves
17512         its delayed databinding.  Instead, call SetDataSource in
17513         OnBindingContextChanged.  This mimic's MS's behavior, and fixes
17514         #78811.
17515
17516         - Also, it wasn't mentioned in #78811, but the test case exhibits
17517         behavior that was lacking in our datagrid implementation - Columns
17518         that have mapping names that don't exist in the datasource's
17519         properties aren't shown.  Yuck.  To fix this I added the bound
17520         field to the column style, and basically any calculation to figure
17521         out anything about columns uses a loop to find the bound columns.
17522         still need to investigate if I can cache an array of the bound
17523         columns or if the indices must be the same.
17524
17525         - When setting CurrentCell, we no longer abort if the cell being
17526         edited was in the add row.  This fixes the other part of #77806.
17527
17528         - The new code also fixes #78807.
17529         
17530         * ThemeWin32Classic.cs: perpetrate the same disgusting
17531         column.bound field hack, and only render bound fields.
17532
17533 2006-08-31  Chris Toshok  <toshok@ximian.com>
17534
17535         * DataGridColumnStyle.cs: add bound field.  this field is true if
17536         the datasource has a property corresponding to the mapping name.
17537
17538         * DataGridTableStyle.cs: set the bound field on the column styles
17539         depending on whether or not we have a column for that property.
17540
17541 2006-08-31  Peter Dennis Bartok  <pbartok@novell.com> 
17542
17543         * Splitter.cs (SetBoundsCore): Don't ignore width/height of the 
17544           splitter control (fixes #79228)
17545
17546 2006-08-31  Chris Toshok  <toshok@ximian.com>
17547
17548         * DataGridColumnStyle.cs: we need to delay the assignment of
17549         property descriptor until the last possible moment due to the lazy
17550         databinding stuff in the datagrid.  Also, fix the exceptions
17551         thrown by CheckValidDataSource to match MS.
17552
17553 2006-08-31  Jackson Harper  <jackson@ximian.com>
17554
17555         * Form.cs: When activated select the active control, if there is
17556         no active control, we select the first control.
17557         * XplatUIX11.cs: If there is no focus control when we get a
17558         FocusIn event, find the toplevel form and activate it.  This
17559         occurs when you popup a window, it becomes the focus window, then
17560         you close that window, giving focus back to the main window.
17561
17562 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17563
17564         * MonthCalendar.cs: 
17565         * ThemeWin32Classic.cs: Cache Font in bold style, as well
17566         as StringFormat with Center alignments in MonthCalendar,
17567         instead of creating new ones when drawing the control. 
17568         Also, draw the month name in bold style.
17569
17570 2006-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
17571
17572         * Control.cs:
17573           - PerformLayout(): It would seem MS performs the fill even if the 
17574             control is not visible (part of #79218 fix)
17575           - ResetBackColor(): Use the setter to reset the color, to allow
17576             overriders to catch the change.
17577         * Form.cs:
17578           - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
17579           - CreateHandle(): dito (part of $79218 fix)
17580           - Don't set an icon if we have a dialog
17581         * ScrollableControl.cs:
17582           - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
17583           - ScrollIntoView(): No need to scroll if control is already visible
17584             (resolves fixme and fixes #79218)
17585
17586 2006-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17587
17588         * MonthCalendar.cs: Change proportions in SingleMonthSize
17589         to match the aspect of the original control.
17590
17591 2006-08-29  Alexander Olk  <alex.olk@googlemail.com>
17592
17593         * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
17594           get updated when they get maximized.
17595
17596 2006-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
17597
17598         * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
17599
17600 2006-08-29  Chris Toshok  <toshok@ximian.com>
17601
17602         * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
17603
17604 2006-08-29  Jackson Harper  <jackson@ximian.com>
17605
17606         * TreeView.cs: Need to track selected node and highlighted node,
17607         they aren't always the same thing, when the mouse is down on a
17608         node it is hilighted, but not selected yet.
17609         - Do the HideSelection stuff right
17610         - Need to focus on rbutton mouse down. And redraw selection when
17611         right click is mouse upped.
17612
17613 2006-08-29  Mike Kestner  <mkestner@novell.com>
17614
17615         * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
17616         when SubItems.Count < Columns.Count.  [Fixes #79167]
17617
17618 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com> 
17619
17620         * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
17621
17622 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com>
17623
17624         * XplatUIX11.cs: Preempt the roundtrip for getting the location back
17625           from X. Only send based on ConfigureNotify if we don't have the
17626           correct location in hwnd (if the window manager moved us)
17627
17628 2006-08-28  Mike Kestner  <mkestner@novell.com>
17629
17630         * ListView.cs: remove a TODO. 
17631         * ThemeWin32Classic.cs: implement HideSelection support for ListView.
17632         [Fixes ListView part of #79166]
17633
17634 2006-08-28  Mike Kestner  <mkestner@novell.com>
17635
17636         * ListView.cs: move wheel handler to parent since it is focused
17637         instead of the item_control now.  [Fixes #79177]
17638
17639 2006-08-28  Mike Kestner  <mkestner@novell.com>
17640
17641         * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
17642         when the control is focused. [Fixes #79171]
17643
17644 2006-08-28  Mike Kestner  <mkestner@novell.com>
17645
17646         * ListView.cs: size the item and header controls for empty and
17647         unscrollable views.
17648         * ThemeWin32Classic.cs: draw disabled backgrounds.
17649         [Fixes #79187]
17650
17651 2006-08-28  Chris Toshok  <toshok@ximian.com>
17652
17653         * Form.cs: remove unused "active_form" static field.
17654
17655         * Hwnd.cs: lock around accesses to static windows collection.
17656
17657         * Application.cs: lock threads in Exit ().
17658
17659 2006-08-28  Chris Toshok  <toshok@ximian.com>
17660
17661         * NativeWindow.cs: lock around accesses to window_collection.
17662         
17663 2006-08-28  Chris Toshok  <toshok@ximian.com>
17664
17665         * Control.cs: err, fix this the right way, by locking on controls
17666         when using it.  not by making it synchronized.
17667
17668 2006-08-28  Chris Toshok  <toshok@ximian.com>
17669
17670         * Control.cs: make the static "controls" field synchronized, as it
17671         gets updated from multiple threads.
17672
17673 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
17674
17675         * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
17676           Prevent other threads from exiting when calling thread sets quit state.
17677         * XEventQueue.cs: Added PostQuitState property
17678
17679 2006-08-27  Chris Toshok  <toshok@ximian.com>
17680
17681         * AsyncMethodData.cs: add a slot for the window handle.
17682
17683         * XplatUIX11.cs (SendAsyncMethod): send the event to the right
17684         window (the destination control's window, not the foster window).
17685
17686         * Control.cs (BeginInvokeInternal): store the window's handle in
17687         the AsyncMethodData.
17688         
17689
17690 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
17691
17692         * XplatUIX11.cs:
17693           - PostQuitMessage: Removed resetting S.D display handle, we might have
17694             another loop started after calling PostQuitMessage (Fixes #79119)
17695           - Created destructor to reset S.D handle
17696
17697 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com> 
17698
17699         * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
17700
17701 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
17702
17703         * TextControl.cs (Insert): Update the caret position even if we don't
17704           have a handle yet, just don't call the driver in that case.
17705         * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
17706           to the end of the new selection text (Fixes #79184)
17707
17708 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
17709
17710         * Form.cs (Activate): Only activate if the handle is created)
17711         * Control.c:
17712           - Mark window as invisible when it's disposed
17713           - Check if window handle is created when setting window visible, 
17714             instead of relying just on the is_created variable
17715           - Check if object is disposed when creating the control (Fixes #79155)
17716
17717 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
17718
17719         * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
17720           when allowing layout again. Otherwise we re-generate the anchoring 
17721           distance to the border again and actually alter what the user wanted
17722           This is ugly, it'd be better if we used DisplayRectangle instead of
17723           ClientRectangle for Control.UpdateDistances, but that causes us to
17724           have other problems (initial anchoring positons would be wrong)
17725           (Fixes #78835)
17726
17727 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
17728
17729         * Control.cs:
17730           - The size and location setters shouldn't go directly to 
17731             SetBoundsCore, but to SetBounds, which triggers layout on the
17732             parent, then calls SetBoundsCore. (Related to fix for #78835)
17733           - SetBounds: Moved actual location update code into this function
17734             from SetBoundsCore, to match MS. Added call to PerformLayout if
17735             we have a parent (to trigger resizing of anchored parents if the 
17736             child size has changed (see testcase for #78835) 
17737         * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match 
17738           new control code
17739         * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
17740
17741 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
17742
17743         * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
17744           System.Drawing when a toplevel window gets closed; there might
17745           be other toplevel windows belonging to the same app (Fixes #78052)
17746
17747 2006-08-26  Alexander Olk  <alex.olk@googlemail.com>
17748
17749         * FileDialog.cs: After reading FileDialog settings from mwf_config
17750           use Desktop prefix only if a real folder doesn't exist anymore.
17751         * FontDialog.cs: Added char sets.
17752           It is now possible to select the font, size or style with the
17753           textboxes.
17754
17755 2006-08-25  Kornél Pál  <kornelpal@gmail.com>
17756
17757         * PrintPreviewDialog.cs: Use assembly name constants.
17758
17759 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
17760
17761         * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
17762           scrollbar from whacking it's buttons)
17763
17764 2006-08-24  Chris Toshok  <toshok@ximian.com>
17765
17766         * ScrollableControl.cs: fix #78271.  There's a lot of misc stuff
17767         in this patch (aggregating setting Left/Top/Width/Height to
17768         setting Bounds on the scrollbars), but the crux of the fix is in
17769         Recalculate, where we scroll by the remaining scroll_position if
17770         we're hiding a scrollbar.  The 2*$5 reward in the comment is
17771         serious.
17772
17773 2006-08-24  Jackson Harper  <jackson@ximian.com>
17774
17775         * MdiClient.cs:
17776         * MdiWindowManager.cs: If the form is made a non-mdi window we
17777         need to remove the form closed event so that closing forms works
17778         correctly.
17779
17780 2006-08-24  Jackson Harper  <jackson@ximian.com>
17781
17782         * Control.cs: Make IsRecreating internal so that the driver can
17783         check it
17784         - Temporarily remove the Hide when controls are removed, its
17785         making a whole bunch of things not work because visibility isn't
17786         getting reset elsewhere correctly
17787         * Form.cs: Need to do a full handle recreation when the mdi parent
17788         is set.
17789         * XplatUIX11.cs: If we are recreating handles don't dispose the
17790         HWNDs.  What was happening is the handles were being recreated in
17791         SendWMDestroyMessages, but then flow continued on in that method
17792         and destroyed the new handles.
17793
17794 2006-08-23  Jackson Harper  <jackson@ximian.com>
17795
17796         * Form.cs: MdiClient is always at the back of the bus
17797         * Control.cs: When the order of items in the collection is changed
17798         we need to reset the all_controls array
17799         - do the same sorta setup thats done when adding a control when a
17800         control is set on the collection.
17801
17802 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
17803
17804         * TextBoxBase.cs (get_Text): Return an empty array if our document
17805           is empty (fixes #79052)
17806
17807 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
17808
17809         * Control.cs: We should call IsInputChar on only on WM_CHAR but not
17810           on WM_SYSCHAR messages (fixes #79053)
17811
17812 2006-08-23  Chris Toshok  <toshok@ximian.com>
17813
17814         * DataGrid.cs: fix flickering when scrolling vertically.
17815
17816 2006-08-23  Chris Toshok  <toshok@ximian.com>
17817
17818         * DataGrid.cs (EndEdit): only invalidate the row header when we
17819         need to.
17820
17821 2006-08-23  Chris Toshok  <toshok@ximian.com>
17822
17823         * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
17824         methods.  fixes the flicker when scrolling around.
17825
17826 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
17827
17828         * FileDialog.cs: Making sure the control is created before we get a 
17829           chance to use it with BeginInvoke (Fixes #79096)
17830
17831 2006-08-23  Chris Toshok  <toshok@ximian.com>
17832
17833         * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
17834         width to use when painting the rows.
17835
17836 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
17837
17838         * TextBoxBase.cs:
17839           - Throw ArgumentException if a negative value is passed to SelectionLength
17840           - Update the selection end if start is moved. end needs to be always
17841             after start. (Fixes #79095)
17842           - Track selection length; MS keeps the selection length even if start
17843             is changed; reset on all other operations affection selection
17844
17845 2006-08-22  Jackson Harper  <jackson@ximian.com>
17846
17847         * TreeView.cs: Make sure both scrollbars get displayed and sized
17848         correctly when the other bar is visible.
17849         - Use the original clip rectangle for checking if the area between
17850         the two scrollbars is visible, not the viewport adjusted clipping
17851         rectangle.
17852
17853 2006-08-22  Jackson Harper  <jackson@ximian.com>
17854
17855         * Binding.cs: We don't use IsBinding because it requires the
17856         control to be created, which really shouldn't be necessary just to
17857         set a property on the control.
17858
17859 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17860
17861         * ComboBox.cs: Some CB.ObjectCollection methods must throw
17862         ArgumentNullReferenceException when the argument is null.
17863
17864 2006-08-21  Jackson Harper  <jackson@ximian.com>
17865
17866         * Timer.cs: Track the thread that the timer is started in (NOT
17867         CREATED), this way messages for it will only be triggered on its
17868         queue.
17869         * XEventQueue.cs: Track the timers here, this makes timers per
17870         thread, like MS.
17871         * XplatUIX11.cs: The timers are moved to the XEventQueue.
17872
17873 2006-08-19  Chris Toshok  <toshok@ximian.com>
17874
17875         * XplatUIX11.cs: after further communication with pdb, we get the
17876         best of both worlds.  SetZOrder working for un-Mapped windows, and
17877         no X errors for un-mapped windows.
17878
17879 2006-08-19  Chris Toshok  <toshok@ximian.com>
17880
17881         * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
17882         as it was causing pdn toolbars to not have the correct stacking.
17883
17884 2006-08-18  Mike Kestner  <mkestner@novell.com> 
17885
17886         * ListView.cs : guard against negative ClientArea.Width in scrollbar
17887         calculation.  Not sure why control should ever be setting a negative
17888         width though.  Fixes #78931.
17889
17890 2006-08-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17891
17892         * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
17893         null items in ObjectCollection class.
17894         * ListBox.cs.: Likewise.
17895
17896 2006-08-18  Atsushi Enomoto  <atsushi@ximian.com>
17897
17898         * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
17899           as the base method in ThemeWin32Classic should work fine.
17900           Fixed bug #78607.
17901
17902 2006-08-18  Jackson Harper  <jackson@ximian.com>
17903
17904         * Binding.cs: When validating if the value entered doesn't convert
17905         properly reset to the old value.
17906         * RadioButton.cs: Don't fire click when we get focus.
17907
17908 2006-08-18  Jackson Harper  <jackson@ximian.com>
17909
17910         * FileDialog.cs: Paint the selection on the directory combobox the
17911         same way as on MS. 
17912
17913 2006-08-17  Jackson Harper  <jackson@ximian.com>
17914
17915         * ErrorProvider.cs: Don't allow the error control to be selected.
17916         * Control.cs: Don't send the SetFocus messages, the control
17917         activation will do this, and if we do it blindly here validation
17918         does not work.
17919
17920 2006-08-17  Jackson Harper  <jackson@ximian.com>
17921
17922         * Control.cs:
17923         * ContainerControl.cs: Make validation events fire in the correct
17924         order.  TODO: For some reason the first validation event is not
17925         getting fired.
17926
17927 2006-08-17  Mike Kestner  <mkestner@novell.com> 
17928
17929         * ComboBox.cs : some null guarding for ComboListBox.Scroll.
17930
17931 2006-08-17  Mike Kestner  <mkestner@novell.com> 
17932
17933         * ComboBox.cs : implement scroll wheel support for popped-down
17934         state. Fixes #78945. 
17935
17936 2006-08-17  Jackson Harper  <jackson@ximian.com>
17937
17938         * TreeView.cs: Specify treeview actions (old patch that didn't get
17939         committed for some reason).
17940         - Don't let the mouse wheel scroll us too far.  Just want to make
17941         the bottom node visible, not scroll it all the ways to the top.
17942
17943 2006-08-17  Jackson Harper  <jackson@ximian.com>
17944
17945         * XplatUIX11.cs: Mouse wheel events go to the focused window.
17946
17947 2006-08-17  Mike Kestner  <mkestner@novell.com> 
17948
17949         * ComboBox.cs : don't do mouseover selection in simple mode.
17950
17951 2006-08-16  Jackson Harper  <jackson@ximian.com>
17952
17953         * Form.cs: Fire the closing events for all the mdi child windows
17954         when a window is closed.  If the cancel args are set to true, the
17955         main window still gets the event fired, but it doesn't not close.
17956         * MdiWindowManager.cs: Do this closing cleanup in a Closed
17957         handler, instead of when the button is clicked, so cancelling the
17958         close works correctly.
17959         * ComboBox.cs: Send the mouse down to the scrollbar.
17960
17961 2006-08-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17962
17963         * ListBox.cs: When passing 'null' to SelectedItem,
17964         set SelectedIndex to -1, to unselect items. This is the
17965         observed behaviour in .Net.
17966
17967 2006-08-16  Peter Dennis Bartok  <pbartok@novell.com> 
17968
17969         * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
17970           MS flags saying there won't be any. (fixes #78800)
17971         * Control.cs (HandleClick): Made virtual
17972
17973 2006-08-16  Atsushi Enomoto  <atsushi@ximian.com>
17974
17975         * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
17976           cultures. Fixed bug #78399.
17977
17978 2006-08-16  Jackson Harper  <jackson@ximian.com>
17979
17980         * Form.cs: Use the MdiClients MdiChildren property to access
17981         MdiChildren instead of creating the array from the child controls.
17982         * MdiClient.cs: Maintain a separate array of the mdi children, so
17983         that insertion order is maintained when the Z-order is changed.
17984
17985 2006-08-16  Mike Kestner  <mkestner@novell.com> 
17986
17987         * ListView.cs : add an ItemComparer and default to it for sorting.
17988         Fixes #79076, but sorting needs a complete overhaul to be compat with
17989         MS.
17990
17991 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
17992
17993         * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
17994
17995 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
17996
17997         * Hwnd.cs (Mapped): Properly traverse the tree
17998
17999 2006-08-15  Chris Toshok  <toshok@ximian.com>
18000
18001         * Binding.cs: fix PullData/SetPropertyValue.  We don't want to
18002         pass manager.Current.GetType() to ParseData.  It has to be the
18003         property type.  So, hold off doing the ParseData until we're in
18004         SetPropertyValue where we know the type.  This fixes the crash in
18005         #78821 but the textbox is still empty.
18006
18007 2006-08-15  Chris Toshok  <toshok@ximian.com>
18008
18009         * DataGrid.cs:
18010         - when we're scrolling, only call Edit() again if the
18011         current cell is still unobscured. Fixes bug #78927.
18012         - when handling mousedown on a cell, ensure the cell is visible
18013         before calling Edit.
18014         - remove the properties from DataGridRow, and remove the
18015         DataGridParentRow class altogether.
18016         
18017
18018 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
18019
18020         * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
18021           fire OnTextChanged by ourselves. There's no point calling base,
18022           we don't set the base value anywhere else. Fixes #78773.
18023
18024 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18025
18026         * ListBox.cs: Call CollectionChanged when modifying
18027         an item from Items indexer, to update the actual items
18028         in the list box.
18029
18030 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18031
18032         * PrintDialog.cs: Small fixes for focus and a pair of checks,
18033         to match .Net behaviour.
18034
18035 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
18036
18037         * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
18038
18039 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
18040
18041         * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
18042
18043 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
18044
18045         * MessageBox.cs: Prevent potential NRE exception.
18046         * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
18047
18048 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
18049
18050         * MessageBox.cs: Calculate the owner of a messagebox, also make
18051           it topmost. Fixes #78753
18052
18053 2006-08-14  Chris Toshok  <toshok@ximian.com>
18054
18055         * XplatUIX11.cs: A couple of fixes so that metacity will let us
18056         programmatically move windows.  first, set the PPosition hint as
18057         well as the USPosition hint.  Second include some code from pdb
18058         that sets the window type to NORMAL when we set the transient for
18059         hint.  This is because, in the absence of a window type, metacity
18060         thinks any window with TransientFor set is a dialog, and refuses
18061         to let us move it programmatically.  fascists.
18062
18063 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
18064
18065         * XplatUIX11.cs: When setting normal hints, take into consideration
18066           an different hints previously set so we don't delete them (fixes #78866)
18067
18068 2006-08-12  Chris Toshok  <toshok@ximian.com>
18069
18070         * ToolBarButton.cs: make Layout return a boolean, if something to
18071         do with the button's layout changed.
18072
18073         * ToolBar.cs:
18074         - add another parameter to Redraw, @force, which all existing
18075           calls set to true.
18076         - make the Layout function return a boolean which is true if the
18077           layout has actually changed.  Redraw now uses this (and @force)
18078           to determine when to invalidate.  At present the only place
18079           where @force can be false is the call from OnResize, when
18080           background_image == null.  So, resizing a toolbar when the
18081           layout doesn't change results in no drawing.
18082
18083 2006-08-12  Chris Toshok  <toshok@ximian.com>
18084
18085         * ThemeWin32Classic.cs: fix the bottom right corner painting.  had
18086         the VScrollBar and HScrollbar reversed.  oops.
18087
18088         * DataGrid.cs: fix the logic that assigns sizes to the implicit
18089         scrollbars.  we were assigning them twice (once in
18090         Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
18091         therefore causing two scrollbar resizes (and redraws?) to happen
18092         per grid resize.
18093
18094 2006-08-12  Chris Toshok  <toshok@ximian.com>
18095
18096         * ToolBarButton.cs: redraw the entire button if the theme tells us
18097         to.
18098
18099         * Theme.cs: add ToolBarInvalidateEntireButton.
18100
18101         * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
18102         buttons, just the border.
18103
18104         * ThemeNice.cs: redraw the entire toolbar button since we need to
18105         draw the highlight image.
18106
18107         * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
18108         we need to redraw the entire button (not just the border).
18109
18110 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
18111
18112         * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
18113           for vertical bars. Fixes the mismatches shown by #78513
18114
18115 2006-08-11  Alexander Olk  <alex.olk@googlemail.com>
18116
18117         * FileDialog.cs: If a saved/remembered path doesn't exist
18118           anymore, fall back to "Desktop".
18119
18120 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
18121
18122         * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
18123           parent. It's apparently legal to not have one
18124         * XplatUIX11.cs:
18125           - SetZOrder: Don't try to set Z-Order on an unmapped window
18126           - CreateWindow: 0,0 are legal coordinates for a window. don't move
18127             it unless the coordinates are negative
18128
18129 2006-08-10  Mike Kestner  <mkestner@novell.com>
18130
18131         * ListControl.cs: allow null for DataSource.  Clear DisplayMember
18132         when setting to null per msdn docs.  Fixes #78854.
18133
18134 2006-08-10  Chris Toshok  <toshok@ximian.com>
18135
18136         * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
18137         flickering by setting a clip rectangle on the Graphics when we
18138         need to redraw just a particular menuitem.  Also, rename "OnClick"
18139         to "OnMouseDown" to reflect what it actually is.
18140         
18141         * Form.cs: track the OnMouseDown change.
18142
18143 2006-08-10  Peter Dennis Bartok  <pbartok@novell.com>
18144
18145         * CommonDialog.cs: Properly inherit the CreateParams from the form
18146           and only change what we need. Fixes #78865
18147
18148 2006-08-10  Chris Toshok  <toshok@ximian.com>
18149
18150         * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
18151         flickering in flat mode (and most of the flickering in general) by
18152         only invalidating the button border (and not the entire rectangle)
18153         when the state changes.  A couple of cases still flicker:
18154         ToggleButtons, and the dropdown arrow case when the user mouse
18155         ups.
18156
18157 2006-08-10  Alexander Olk  <alex.olk@googlemail.com>
18158
18159         * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
18160           for german keyboards. Numlock state shouldn't affect the behaviour
18161           of the Del key. Fixes bug #78291.
18162
18163 2006-08-10  Chris Toshok  <toshok@ximian.com>
18164
18165         * ListControl.cs: remove the items.Clear line from BindDataItems,
18166         as this is the first thing done by both subclasses in their
18167         SetItemsCore overrides.  Also, add a ItemChanged handler, and when
18168         passed -1, refresh the list.  This gets databinding working when
18169         the datasource is set on the list before the datasource is
18170         populated (as in wf-apps/ReportBuilder.)
18171
18172         * ComboBox.cs: remove the argument to BindDataItems.  This call
18173         should really go away, and be initiated by the ListControl code.
18174
18175         * ListBox.cs: same.
18176
18177 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
18178
18179         * TextControl.cs (Document.ctor): Initialize caret so we don't crash
18180           if no data is in the document when the control is displayed
18181
18182 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com> 
18183
18184         * TextBoxBase.cs: Don't try moving the caret if we don't have a window
18185           yes (fixes #78806)
18186         * TextControl.cs: 
18187           - PositionCaret: Allow positioning of caret but don't call methods 
18188             requiring a handle if the window isn't created yet
18189           - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
18190           - owner_HandleCreated: Don't position the caret, just update it's 
18191             location. User might have already set a different position
18192
18193 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
18194
18195         * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
18196           windows. Screws up the returned coordinates for child windows. 
18197           Fixes #78825. I'm hoping this doesn't break something, since the
18198           code was explicitly put in 8 months ago, but no bug was attached.
18199           Menus still seem to work properly.
18200
18201 2006-08-08  Chris Toshok  <toshok@ximian.com>
18202
18203         * DataGrid.cs: make BeginInit/EndInit actually do what they're
18204         supposed to do - delay data binding until the EndInit call.  Also,
18205         make the table style collection's CollectionChangeAction.Refresh
18206         work properly.
18207
18208         * GridTableStylesCollection.cs: raise a CollectionChangeEvent
18209         (with action = Refresh) when a consituent table's MappingName is
18210         changed.
18211
18212 2006-08-08  Chris Toshok  <toshok@ximian.com>
18213
18214         * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
18215         Invalidate, since changing the text can change the size of the all
18216         toolbar buttons.
18217
18218 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
18219
18220         * Form.cs (AddOwnedForm): Still need to add the form to our listif
18221           we don't have it yet
18222
18223 2006-08-08  Chris Toshok  <toshok@ximian.com>
18224
18225         * PrintControllerWithStatusDialog.cs: don't .Close() the status
18226         dialog, as this causes X errors later on, since we actually
18227         destroy the window.  Instead, .Hide() it.
18228
18229 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
18230
18231         * ComboBox.cs: Added focus reflection for popup window
18232         * XplatUIX11.cs: 
18233           - Removed transient setting for non-app windows for now, not sure it
18234             was needed
18235           - Fixed logic checking if we have captions when deciding 
18236             override_redirect, WS_CAPTION is two bits and a 0 check was not
18237             sufficient
18238           - Removed the WINDOW_TYPE stuff, it was unneeded and making things
18239             complicated
18240         * Form.cs: 
18241           - AddOwnedForm: Don't just add the form to the list, call the property
18242             to ensure the driver is informed about the ownership as well
18243           - CreateHandle: Set the TopMost status in the driver if we have an owner
18244         * XplatUI.cs: Fixed debug statement
18245
18246 2006-08-08  Jonathan Pobst <monkey@jpobst.com>
18247         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
18248           GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
18249           ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs, 
18250           TrackBarRenderer.cs: Make constructor private.
18251         * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
18252         * ProfessionalColorTable.cs: Make properties virtual.
18253
18254 2006-08-06  Duncan Mak  <duncan@novell.com>
18255
18256         * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
18257         is not changing.
18258
18259 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
18260         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
18261           GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
18262           ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
18263           TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
18264           Initial import of new 2.0 classes.
18265
18266 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
18267         * Application.cs: Add 2.0 VisualStyles properties.
18268
18269 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
18270         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
18271           XplatUIX11.cs: Create property to allow access to existing private
18272           variable "themes_enabled"
18273
18274 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
18275
18276         * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
18277         file size, as otherwise our class libraries fail using windows. Fixes
18278         bug #78759.
18279
18280 2006-08-04  Jackson Harper  <jackson@ximian.com>
18281
18282         * Form.cs:
18283         * XplatUIX11.cs: Move the toolwindow window manager creation into
18284         the X11 driver, this way on win32 we can let windows create/handle
18285         the toolwindows.
18286
18287 2006-08-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18288
18289         * PrintDialog.cs: Remove some redundant checks, add some others,
18290         clean some code, and move the focus to the text boxes when the
18291         values are incorrect.
18292
18293 2006-08-04  Alexander Olk  <alex.olk@googlemail.com>
18294
18295         * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
18296
18297 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
18298
18299         * NumericUpDown.cs: Setting the Minimum and Maximum is now
18300           handled correctly. Fixes bug #79001.
18301
18302 2006-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18303
18304         * PrintDialog.cs: The "Copies" numeric up down must have
18305         set the Minimum property to 1; only if the value is bigger
18306         than 1, activate "Collate" check box. This is the behaviour of .Net.
18307         Also modify the Document elements only if it is not null.
18308
18309 2006-08-03  Jackson Harper  <jackson@ximian.com>
18310
18311         * TreeNodeCollection.cs: Fix copyto to use the correct nodes
18312         length. (We have a larger array then actual node count).
18313                 
18314 2006-08-03  Jackson Harper  <jackson@ximian.com>
18315
18316         * ComboBox.cs: Don't show selection by default.
18317         - The SelectAll isn't needed here, since the focus code should do
18318         that
18319         - DDL style lists to manual selection drawing, so when they
18320         get/lose focus they have to invalidate.
18321
18322 2006-08-03  Peter Dennis Bartok  <pbartok@novell.com>
18323
18324         * TextBoxBase.cs: Don't always show all selections by default.
18325
18326 2006-08-03  Jonathan Pobst  <monkey@jpobst.com>
18327         * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
18328           HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
18329           Fixed various typos.
18330
18331 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
18332
18333         * Control.cs: Removing the controls in a ControlCollection with
18334           Clear now hides the controls as expected. Fixes bug #78804. 
18335
18336 2006-08-03  Jackson Harper  <jackson@ximian.com>
18337
18338         * Control.cs: Revert previous focus patch, it breaks reflector.
18339
18340 2006-08-03  Jackson Harper  <jackson@ximian.com>
18341
18342         * ComboBox.cs: Cleanup selection and focus with the combobox.
18343         This also eliminates some duplicated keyboard code, since now
18344         everything is handled by the main class.
18345         - Make list selection work on mouse up instead of down, to match
18346         MS.
18347
18348 2006-08-02  Jackson Harper  <jackson@ximian.com>
18349
18350         * Control.cs: Setting focus needs to go through the whole
18351         selection mechanism.
18352
18353 2006-08-02  Chris Toshok  <toshok@ximian.com>
18354
18355         * PrintPreviewDialog.cs: change MinimumSize to use
18356         base.MinimumSize so it works.
18357
18358 2006-08-02  Peter Dennis Bartok  <pbartok@novell.com>
18359
18360         * TextControl.cs:
18361           - UpdateCaret: Added sanity check in case caret isn't defined yet
18362           - Line.Delete: Now updating selection and caret markers if we're
18363             transfering a node (Properly fixes #78323)
18364           - SetSelectionEnd: Added sanity check
18365         * TextBoxBase.cs: Removed broken attempt to fix #78323
18366
18367 2006-08-01  Chris Toshok  <toshok@ximian.com>
18368
18369         * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
18370         Close() call is handled in Form, not here.
18371
18372 2006-08-01  Chris Toshok  <toshok@ximian.com>
18373
18374         * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
18375         layout/rendering.
18376
18377         * PrintPreviewDialog.cs: add scrollbars, and add an image cache
18378         for sizes < 100% zoom.  The code now aggressively attempts to keep
18379         from calling document.Print (), and tries not to use the scaling
18380         g.DrawImage whenever possible (it still does if you scale to >
18381         100%, since usually that involves huge images).
18382
18383         * PrintPreviewControl.cs: hook up the close button.
18384
18385 2006-08-01  Jonathan Pobst  <monkey@jpobst.com>
18386         * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
18387           ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
18388           ItemDragEventHandler.cs, LabelEditEventHandler.cs,
18389           LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
18390           MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
18391           PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
18392           SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
18393           Removed [Serializable] for 2.0 Event Handlers.
18394
18395 2006-07-31  Jackson Harper  <jackson@ximian.com>
18396
18397         * TextBoxBase.cs: Make ShowSelection invalidate when changed.
18398         * TextControl.cs: Uncomment out the body of this method.
18399
18400 2006-07-31  Alexander Olk  <alex.olk@googlemail.com>
18401
18402         * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
18403           standard cursors.
18404
18405 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
18406
18407         * TextBoxBase.cs: Added internal property ShowSelection to allow controls
18408           that embed TextBox and need selections visible even if textbox is not
18409           focused to enforce that behaviour.
18410         * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
18411           selection drawing
18412
18413 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
18414
18415         * TextControl.cs:
18416           - Added new SetSelectionStart/SetSelectionEnd overloads
18417           - Fixed viewport width assignment to be accurate
18418           - Adjusted alignment line shift calculations to allow cursor on right
18419             aligned lines to be always visible at the right border (like MS)
18420         * TextBoxBase.cs:
18421           - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
18422           - TextBoxBase_SizeChanged: recalculating canvas on size changes
18423           - CalculateScrollBars: Use ViewPort size instead of window size, to
18424             properly consider space occupied by the border and scrollbars 
18425             (Fixes #78661)
18426           - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll 
18427             calculations; no longer leaves artifacts
18428           - CaretMoved: Adjusted window scrolling to match MS and fixed several
18429             calculation bugs (Still missing right/center align calculations)
18430
18431 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com> 
18432
18433         * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
18434           use of both scroll rect and clip rect, as they do the same.
18435
18436 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
18437
18438         * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key 
18439           in the event handler (fixes #78912)
18440
18441 2006-07-31  Chris Toshok  <toshok@ximian.com>
18442
18443         * ThemeWin32Classic.cs: use grid.RowsCount here instead of
18444         grid.ListManager.Count, since grid.ListManager might be null.
18445         This of course begs the question "why are we drawing rows for a
18446         grid with no list manager (and therefor no rows)?"  Fixes the
18447         crash in bug #78929.
18448
18449 2006-07-31  Chris Toshok  <toshok@ximian.com>
18450
18451         * RelatedPropertyManager.cs: Don't always chain up to the parent
18452         ctor.  instead, call SetDataSource if the parent's position is !=
18453         -1.  Fixes the crash in #78822.
18454
18455 2006-07-31  Chris Toshok  <toshok@ximian.com>
18456
18457         * DataGrid.cs (get_ListManager): use field instead of property
18458         accessors for datasource and datamember.
18459         (RowsCount): make internal again.
18460         (OnMouseDown): end edits before resizing columns/rows.
18461         (OnMouseUp): restart edits after resizing columns/rows.
18462
18463 2006-07-30  Peter Dennis Bartok  <pbartok@novell.com>
18464
18465         * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
18466           This fixes the situation where the last set cursor is displayed
18467           whenever the mouse is over scrollbars.
18468
18469 2006-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18470
18471         * PrintDialog.cs: Fix the behaviour of PrinterSettings and
18472         Document properties, as well as initial values.
18473
18474 2006-07-29  Peter Dennis Bartok  <pbartok@novell.com>
18475
18476         * XplatUIWin32.cs (SetBorderStyle): Setting both border
18477           and ClientEdge results in a 3-pixel border, which is
18478           wrong.
18479
18480 2006-07-28  Jackson Harper  <jackson@ximian.com>
18481
18482         * TreeNodeCollection.cs: Fix the clear method.
18483         - Fix the Shrink also
18484
18485 2006-07-27  Jackson Harper  <jackson@ximian.com>
18486
18487         * TreeView.cs: Make sure the visible order is computed when we
18488         attempt to size the scrollbars (for trees that mess with the
18489         scrolling when they shouldn't.
18490         - Make sure to give the scrollbars valid values.
18491
18492 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
18493
18494         * XplatUIX11.cs: Move motion compression code to where it
18495           has less performance impact
18496
18497 2006-07-26  Jackson Harper  <jackson@ximian.com>
18498
18499         * UpDownBase.cs: When the control is selected make the child
18500         controls non selectable, so that a click on them won't do a
18501         focus/unfocus cycle.
18502         - Don't give focus to the text box when the spinner is selected.
18503         * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
18504
18505 2006-07-26  Chris Toshok  <toshok@ximian.com>
18506
18507         * ThemeWin32Classic.cs: add print preview rendering.  I'm not
18508         satisfied with this solution.  If the bitmaps are small, we should
18509         just cache them in the PrintPreviewDialog and draw them here.
18510         Also, the layout is broken for the 2-up and 3-up cases.
18511
18512         * Theme.cs: add PrintPReviewControlPaint.
18513
18514         * PrintPreviewDialog.cs: first pass implementation.
18515
18516         * PrintPreviewControl.cs: first pass implementation.  No
18517         scrollbars yet.
18518
18519         * PrintDialog.cs: only validate fields if that particular portion
18520         of the UI is enabled.  Also, set the document's controller to a
18521         PrintControllerWithStatusDialog wrapping the document's print
18522         controller.
18523
18524         * PrintControllerWithStatusDialog.cs: if we're printing to a file,
18525         bring up a SaveFileDialog (i hope we don't want to match the
18526         behavior of the crappy windows file entry) and set the
18527         PrinterSettings.PrintFileName accordingly.
18528
18529 2006-07-26  Jackson Harper  <jackson@ximian.com>
18530
18531         * ContainerControl.cs: Add a field that disables auto selecting
18532         the next control in a container when the container is activated.
18533         * UpDownBase.cs: Don't select the text box when the up down is
18534         selected.
18535
18536 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
18537
18538         * XEventQueue.cs: Added methods for peeking (used for compression
18539           of successive events)
18540         * XplatUIX11.cs (GetMessage): We're now compressing consecutive
18541           mouse move events (fixes #78732)
18542
18543 2006-07-25  Jackson Harper  <jackson@ximian.com>
18544
18545         * UpDownBase.cs: Use an internal class for the textbox so that we
18546         can control focus.  the updown control should always have focus,
18547         if either the text area or the buttons are clicked.
18548         - Send the key messages to the textbox, since it never actually
18549         has focus
18550         - Activate and decativate the textbox caret.
18551
18552 2006-07-24  Jackson Harper  <jackson@ximian.com>
18553
18554         * Control.cs: Use the directed select when selecting a control,
18555         this way the container controls override will get called and the
18556         whole ActiveControl chain will get triggered.  TODO: probably need
18557         to make sure this gets done everywhere instead of the old
18558         Select(Control).
18559         * ContainerControl.cs: Implement the directed Select method to
18560         find and activate the correct child control.    
18561         
18562 2006-07-22  Mike Kestner  <mkestner@novell.com>
18563
18564         * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
18565         menu handling code so that clicks without a grab work too.
18566         [Fixes #78914]
18567
18568 2006-07-22  Alexander Olk  <alex.olk@googlemail.com>
18569
18570         * FileDialog.cs: Enable the BackButton when dirstack has one element.
18571           Added some small optimizations.
18572
18573 2006-07-21  Matt Hargett  <matt@use.net>
18574
18575         * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
18576
18577 2006-07-21  Peter Dennis Bartok  <pbartok@novell.com> 
18578
18579         * Control.cs (GetNextControl): Fixes to make all of Jackson's unit 
18580           tests pass and match MS in some strange border cases.
18581
18582 2006-07-21  Chris Toshok  <toshok@ximian.com>
18583
18584         * ThemeWin32Classic.cs: handle drawing of the relation links and
18585         parent row buttons.
18586
18587         * Theme.cs: change args to DataGridPaintParentRow.
18588
18589         * DataGrid.cs: Don't use controls for the relation links and
18590         parent buttons, so we have to handle all their interactions in
18591         MouseMove, MouseDown, MouseUp, etc.  Also, store a lot more stuff
18592         when we're navigating through child tables, so we can reinstate
18593         selection, expanded state, current cell, etc.
18594
18595 2006-07-20  Chris Toshok  <toshok@ximian.com>
18596
18597         * ToolBar.cs: When we redraw a button, for whatever reason,
18598         there's no reason to redraw the entire toolbar.  Also, don't call
18599         Control.Refresh from within Redraw, as it's much heavier than
18600         Invalidate (which is really what we want).
18601
18602 2006-07-20  Chris Toshok  <toshok@ximian.com>
18603
18604         * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
18605         DataGridTextBoxColumn.cs, DataGridTextBox.cs,
18606         ThemeWin32Classic.cs, ListControl.cs: After staring at stack
18607         traces from within a debug IBindingList datasource
18608         (in mono/winforms/datagrid) for *days*, I've finally gotten things
18609         to work in a similar fashion.
18610
18611 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18612
18613         * ListBox.cs: Don't call Sort () when setting 
18614         the Sorted property to false (avoid an unnecessary sort).
18615
18616 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18617
18618         * ListControl.cs: DataSource should throw an ArgumentException
18619         instead of a normal exception when the argument is not of the 
18620         correct type.
18621
18622 2006-07-20  Mike Kestner  <mkestner@novell.com>
18623
18624         * Control.cs: add InternalPreProcessMessage to allow us to steal
18625         key events before MWF gets its paws on them.  Adapted from a
18626         suggestion by eno.
18627         * ToolBar.cs: add GotLostFocus handing for flat toolbars, with 
18628         up/down/left/right navigation. Override the new internal control
18629         method to steal the events since they never make it to WndProc.
18630         * ToolBarButton.cs: don't worry about pushed when setting hilight
18631         since the drawing code prefers pushed to hilight. Invalidate on 
18632         Hilight changes. Fixes #78547 and #78525.
18633
18634 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
18635
18636         * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
18637           the canvas size. Fixes #78868
18638
18639 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com>
18640
18641         * Splitter.cs: Track requested split position until first layout
18642           is performed. Fixes #78871
18643
18644 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
18645
18646         * Application.cs: Removed code that forces 1.x for the version
18647           number if the version started with 0. Not sure why that code was
18648           there and I couldn't find any bugs that indicated we needed it.
18649           Fixes #78869
18650
18651 2006-07-20  Alexander Olk  <alex.olk@googlemail.com>
18652
18653         * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
18654           ResetDefaults(), just write some output to the console until it's
18655           implemented. Fixes bug #78907 for now. Eliminated two warnings.
18656
18657 2006-07-19  Jonathan Chambers  <joncham@gmail.com>
18658
18659         * PropertyGridView.cs: set StartPosition of drop down forms
18660         so they appear in correct initial spot.  Fixes #78190.
18661
18662 2006-07-19  Mike Kestner  <mkestner@novell.com>
18663
18664         * ThemeWin32Classic.cs: use parent background color when drawing
18665         flat toolbars.  Restructure the conditionals to make sure non-flat
18666         non-Divider toolbars are filled too.  Fixes #78837.
18667
18668 2006-07-19  Mike Kestner  <mkestner@novell.com>
18669
18670         * ListBox.cs: Sort on collection changes even if the handle
18671         isn't created yet.  Fixes #78813.
18672
18673 2006-07-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18674
18675         * ListControl.cs: DisplayMember should never be null,
18676         and now we assign String.Empty when null is passed to it (this
18677         is the .Net way).
18678
18679 2006-07-17  Mike Kestner  <mkestner@novell.com>
18680
18681         * ListViewItem.cs: restructure Font and subitem Font handling 
18682         to hold a specific font and refer back to owner on null.
18683         Fixes #78761.
18684
18685 2006-07-17  Mike Kestner  <mkestner@novell.com>
18686
18687         * ToolBar.cs: bandaid for side-effect of previous patch which was
18688         discarding explicit heights for non-AutoSize toolbars.  Need to
18689         extend my format tester to deal with AutoSize=false. Fixes #78864.
18690
18691 2006-07-15  Jackson Harper  <jackson@ximian.com>
18692
18693         * LabelEditTextBox.cs:
18694         * TreeView.cs: Use a new LabelEdit class for node editing, this
18695         class automatically 'closes' itself when it gets the enter key or
18696         loses focus.
18697         - Use the client rectangle when setting the trees scrollbars, so
18698         border style is taken into account.
18699         
18700 2006-07-14  Jackson Harper  <jackson@ximian.com>
18701
18702         * TreeNode.cs:
18703         * TreeView.cs: Make the editing work similar to MSs, firing the
18704         events correctly and ending edits correctly.
18705
18706 2006-07-14  Mike Kestner  <mkestner@novell.com>
18707
18708         * ToolBarButton.cs:
18709         * ToolBar.cs: layout restructuring and redraw enhancements to support
18710         formatting changes gracefully, like setting TextAlign, ImageList, 
18711         ButtonSize, and Appearance.  Handles explicit button sizing quirks
18712         of the MS controls.  Things like flat toolbars ignoring button size
18713         but becoming constant sized at the largest button's size.  Normal
18714         toolbars with an image set cannot be shrunk smaller than the image,
18715         but text can be clipped/ignored.
18716         * ThemeWin32Classic.cs: don't draw text if text_rect height or width
18717         is zero.  Seems like DrawString should be smart enough to not put
18718         anything on screen though. Also trim labels and ellipsize at the char
18719         boundary, not word.
18720         Fixes #78711 and #78483.
18721
18722 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
18723
18724         * FolderBrowserDialog.cs: Disable "New Folder" button and
18725           "New Folder" contextmenu menuitem if a folder like "My Computer"
18726           is selected.
18727
18728 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
18729
18730         * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
18731         * FolderBrowserDialog.cs:
18732           - Use MWFConfig to store and read size and position settings
18733           - Added code to create a new folder (button or context menu).
18734             Use TreeView labeledit to change the name of the new folder.
18735
18736 2006-07-14  Jackson Harper  <jackson@ximian.com>
18737
18738         * TreeView.cs: Raise the OnAfterLabelEdit event correctly.  Also,
18739         when the tree is scrolled we end editing.
18740
18741 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
18742
18743         * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
18744           Down arrows
18745
18746 2006-07-14  Jonathan Pobst  <monkey@ipobst.com> 
18747
18748         WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
18749         BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
18750         BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
18751         CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
18752         ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
18753         ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
18754         ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
18755         FormClosedEventHandler.cs, FormClosingEventArgs.cs,
18756         FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
18757         ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
18758         ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
18759         ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
18760         ListViewItemSelectionChangedEventHandler.cs,
18761         ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
18762         ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
18763         MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
18764         PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
18765         PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
18766         RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
18767         SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
18768         SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs, 
18769         TabControlCancelEventHandler.cs, TabControlEventArgs.cs, 
18770         TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
18771         TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
18772         ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
18773         ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
18774         TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
18775         TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
18776         TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
18777         WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
18778         WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
18779         WebBrowserNavigatingEventHandler.cs, 
18780         WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
18781
18782 2006-07-14  Jonathan Pobst  <monkey@ipobst.com>
18783
18784         MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
18785         RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
18786         SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
18787         TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
18788         ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
18789         ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
18790         ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
18791         ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
18792         ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
18793         ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
18794         ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
18795         ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
18796         TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
18797         WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
18798         ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
18799         AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
18800         BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
18801         ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
18802         FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
18803         HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
18804         ListViewItemStates.cs, MaskFormat.cs: Added
18805
18806 2006-07-13  Jonathan Chambers  <joncham@gmail.com>
18807
18808         * PropertyGridView.cs: Fix keyboard navigation of drop down.
18809         Patch from eno for bug 78558.
18810         
18811 2006-07-13  Jackson Harper  <jackson@ximian.com>
18812
18813         * TreeView.cs: When an edit is finished make sure that the
18814         selected node is visible.
18815         - When setting the top/bottom use the scrollbars is_visible, so
18816         everything will be set correctly even if the tree isn't visible
18817         yet.
18818
18819 2006-07-13  Jackson Harper  <jackson@ximian.com>
18820
18821         * ComboBox.cs: Revert the item->index part of my previous patch.
18822         * TreeView.cs: Use LostFocus instead of Leave for detecting when
18823         the edit box has lost focus (duh).
18824         - Just make the edit box not visible when we get return, that will
18825         take the focus, which will call EndEdit
18826         * TreeNode.cs When we start editing, notify the treeview.
18827
18828 2006-07-12  Jackson Harper  <jackson@ximian.com>
18829
18830         * ComboBox.cs: Clear out old items before setting the item list.
18831         This prevents databound controls from having their items added
18832         twice.
18833         - Switch the combobox to use indices whereever possible instead of
18834         using Item's.  This allows usto navigate through lists that have
18835         more then one item with the same string value (ie a, b, b, a).
18836         - Scroll the listboxes scrollbar when a non visible item is
18837         highlighted
18838         - Allow keypress to cycle through all the possible values. For
18839         example if you have b1, b2, b3 and hold down the B key all the
18840         values will be cycled through.
18841         
18842 2006-07-12  Jackson Harper  <jackson@ximian.com>
18843
18844         * TextBoxBase.cs:
18845         * ListView.cs: Don't need to override SETFOCUS anymore, we can do
18846         this using the internal methods.
18847         * Control.cs: Add OnGotFocusInternal.  A new method that allows
18848         controls to "override" OnGotFocus and change focus behavior if
18849         needed.
18850         - Same thing for LostFocus
18851         * ComboBox.cs: Pass off focus to the text control properly.
18852
18853 2006-07-12  Alexander Olk  <alex.olk@googlemail.com>
18854
18855         * FileDialog.cs: Added GetFoldersOnly to MWFVFS
18856         * FolderBrowserDialog.cs: Almost a complete rewrite.
18857           - Better support for Environment.Specialfolders
18858           - Added support for MWFVFS
18859           - Made setting SelectedPath work
18860
18861 2006-07-12  Jackson Harper  <jackson@ximian.com>
18862
18863         * Control.cs: Optimze getting all the controls.
18864
18865 2006-07-11  Jackson Harper  <jackson@ximian.com>
18866
18867         * ContainerControl.cs: Override SETFOCUS in the container control,
18868         so that it is not selected on mouse click.
18869
18870 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com> 
18871
18872         * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel. 
18873           Hopefully we will have a better way once all of focus is complete.
18874
18875 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com>
18876
18877         * ThemeWin32Classic.cs: Commented out some debug code and fixed
18878           a compile error with csc.
18879
18880 2006-07-11  Jackson Harper  <jackson@ximian.com>
18881
18882         * Control.cs: When hiding a control only select the next control
18883         if the current control was focused.
18884         - Don't handle enter/leave when setting/killing focus, this is
18885         done by the container control.
18886         - Remove is_selected, it's not needed anymore.
18887         - Add utility methods for selecting a child control, and for
18888         firing the Enter/Leave events.
18889         * ContainerControl.cs: When a control is activated fire the
18890         enter/leave events.
18891         - Don't wrap when processing the tab key, so that focus can be
18892         moved outside of the container.
18893         - Use the correct active control
18894
18895 2006-07-11  Jackson Harper  <jackson@ximian.com>
18896
18897         * ComboBox.cs: Remove some debug code that was blinding me.
18898         * UpDownBase.cs: These controls actually aren't implicit, they are
18899         visible to the user.
18900
18901 2006-07-10  Chris Toshok  <toshok@ximian.com>
18902
18903         * DataGrid.cs: move back to the is_adding boolean field.  god i
18904         hate this is_editing/is_adding/is_changing stuff.
18905
18906 2006-07-10  Chris Toshok  <toshok@ximian.com>
18907
18908         * DataGridTableStyle.cs: just check if the property type is bool.
18909         if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
18910         Don't use CanRenderType.
18911
18912         * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
18913         if our text == NullText.  Remove CanRenderType.
18914
18915         * DataGridBoolColumn.cs: nuke CanRenderType.
18916
18917         * DataGrid.cs: reenable some code to end the current edit inside
18918         of set_CurrentCell.  This fixes the other 1.1.16 regression.
18919         Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
18920         Also, remove the visible_row_count arg from CalcRowHeaders, since
18921         we don't need to worry about the actual height of the area.
18922
18923 2006-07-10  Chris Toshok  <toshok@ximian.com>
18924
18925         * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
18926         mode, just return.
18927
18928         * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
18929         the real sense of the IsInEditOrNavigateMode property (true =
18930         navigate, false = edit).  Also, update OnKeyPress to reflect this.
18931
18932         * DataGridTableStyle.cs (CreateColumnsForTable): even if the
18933         column style exists, we still need to set its property descriptor
18934         to match up with our list manager.
18935
18936 2006-07-10  Chris Toshok  <toshok@ximian.com>
18937
18938         * ThemeWin32Classic.cs: implement the new row/header painting
18939         approach.  The parent row painting will likely go away and
18940         replaced with label controls, but the rest seems to work ok (and
18941         efficiently).
18942
18943         * Theme.cs: change the way we draw datagrid rows.  we don't draw
18944         the row headers as a block now.  Instead we draw them in the
18945         normal draw-row loop.  Add some calls for drawing parent rows and
18946         relation rows.
18947
18948         * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
18949         a default table style.  Set the defaults from ThemeEngine.Current,
18950         not SystemColors.  Fix lots of misc issues with property setters.
18951
18952         * DataGrid.cs: move loads of style information out of this class
18953         as it's being duplicated with DataGridTableStyle.  keep track of a
18954         special DataGridTableStyle for the properties we used to mirror
18955         here.  Switch all the style properties to access this table style
18956         instead of instance fields of this class.  Also add a internal
18957         class to represent parent rows (more needs to be stored here, like
18958         the selection state from the parent table, as well as the
18959         expansion state.)  Also, for datasources with relations, do the
18960         right thing for collapse/expand, and add support for the
18961         navigation/parent row buttons.
18962
18963         Lastly, fix the crash in the 1.1.16 build.
18964
18965         * GridTableStylesCollection.cs: make the explicit interface
18966         implementations call the class's methods as opposed to duplicating
18967         them.
18968
18969         * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
18970         0 so the text doesn't jump around when we move the cursor.
18971
18972 2006-07-10  Jackson Harper  <jackson@ximian.com>
18973
18974         * TextBoxBase.cs:
18975         * ListBox.cs: Match MS's ToString (this makes debugging focus
18976         stuff infinitely easier).
18977
18978 2006-07-10  Jackson Harper  <jackson@ximian.com>
18979
18980         * Control.cs (SelectNextControl): When checking the control's
18981         parent use this instead of ctrl.parent so that null can be passed
18982         to SelectNextControl. (I have unit tests for this).
18983         - Remove unused var.
18984
18985 2006-07-10  Chris Toshok  <toshok@ximian.com>
18986
18987         * CurrencyManager.cs: correct one regression, the removal of the
18988         finalType field.  Also, add a MonoTODO on CanAddRows, implement
18989         Refresh() correctly, and fix some event emission in
18990         ListChangedHandler.
18991
18992 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
18993
18994         * FileDialog.cs: Don't use brackets for new folders if they exist
18995           under *nix. Instead use -(number of existing folders +1).
18996
18997 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
18998
18999         * FileDialog.cs:
19000           - Fixed really nasty bug #78771
19001           - Don't block the whole GUI when reading directories with a lot of
19002             entries. Use an other thread instead and call BeginInvoke to
19003             update the ListView in MWFFileView
19004
19005 2006-07-07  Chris Toshok  <toshok@ximian.com>
19006
19007         * Control.cs (Dispose): release any Capture when disposing.
19008
19009 2006-07-07  Chris Toshok  <toshok@ximian.com>
19010
19011         * LinkLabel.cs (Select): if we chain up to the parent, set
19012         focused_index to -1 so we'll search for the first available link
19013         the next time the user tabs into us.  Also, if the direction is
19014         backward and focused_index == -1, start the search from the last
19015         element.
19016
19017 2006-07-07  Chris Toshok  <toshok@ximian.com>
19018
19019         * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
19020         is beyond the end of the text, don't do anything.
19021         (CreateLinkPieces): set our ControlStyles.Selectable based on
19022         whether or not we have any links.
19023         (Link.Invalidate): use a loop instead of foreach.
19024         (Link.set_Start): null out owner.sorted_links so it'll be
19025         recreated by CreateLinkPieces.
19026
19027 2006-07-06  Chris Toshok  <toshok@ximian.com>
19028
19029         * LinkLabel.cs: revert the SetStyle change.
19030
19031 2006-07-06  Chris Toshok  <toshok@ximian.com>
19032
19033         * LinkLabel.cs (.ctor): SetStyle Selectable to true.
19034         (OnEnableChanged): s/Refresh/Invalidate
19035         (OnGotFocus): if we have a focused index already, refocus it (so
19036         if we mouse out/in to the window it'll focus the right link).
19037         (OnKeyDown): move the tab handling out of here.
19038         (OnLostFocus): don't set focused_index to -1, so we can refocus it
19039         when we lose focus.
19040         (OnMouseDown): don't Capture here - Control handles it.  Also,
19041         focus the active link.
19042         (OnMouseUp): don't deal with Capture.
19043         (OnPaintBackgroundInternal): remove.
19044         (OnTextAlignChanged): CreateLinkPieces before calling the
19045         superclass's method.
19046         (OnTextChanged): call CreateLinkPieces before calling superclass's
19047         method.
19048         (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
19049         move around.
19050         (Select): implement this, moving the selection between different
19051         links, and call parent.SelectNextControl if we don't have another
19052         link to focus in the given direction.
19053         (CreateLinkPieces): call Invalidate instead of Refresh.
19054         
19055 2006-07-06  Chris Toshok  <toshok@ximian.com>
19056
19057         * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
19058         new LinkLabel internals.
19059
19060         * LinkLabel.cs: fairly major rewrite.  get rid of all the loops
19061         over pieces looking for active/focused/etc links.  also, deal with
19062         runs of text (and links) with embedded \n's in them, and use
19063         MeasureCharacterRanges instead of MeasureString to figure out the
19064         regions text occupies.  Lastly, do the usual s/Refresh/Invalidate
19065         two-step.
19066
19067 2006-07-04  Jackson Harper  <jackson@ximian.com>
19068
19069         * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
19070         XKB or key auto repeat, do it manually.  Without key auto repeat,
19071         when a key is held down we get key press, key release, key press,
19072         key release, ... with auto repeat we get key press, key press, key
19073         press ..., and then a release when the key is actually released.
19074
19075 2006-07-03  Jackson Harper  <jackson@ximian.com>
19076
19077         * TabControl.cs:
19078         * ThemeWin32Classic.cs: Tabs do not obey normal background color
19079         rules, they are always control color regardless of the background
19080         color.
19081
19082 2006-07-02  Alexander Olk  <alex.olk@googlemail.com>
19083
19084         * FileDialog.cs: Added internal class MWFConfig.
19085           Removed Registry support and replaced it with support for the new
19086           MWFConfig class. See MWFConfig comments for more information.
19087
19088 2006-06-30  Alexander Olk  <alex.olk@googlemail.com>
19089
19090         * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
19091           rectangle. Added some patches from eno from bug #78490 and fixed
19092           the arrow position for small up and down CPDrawScrollButtons.
19093
19094 2006-06-30  Jackson Harper  <jackson@ximian.com>
19095
19096         * InternalWindowManager.cs: Remove some debug code.
19097         * Form.cs: When an MdiParent is set to null, the window is
19098         "detatched" and becomes a normal window.
19099         * MdiClient.cs: Don't bring the new child form to the front until
19100         it is activated (setting it as active does this), this makes the
19101         previously active forms titlebar get redrawn as inactive.
19102
19103 2006-06-29  Peter Dennis Bartok  <pbartok@novell.com>
19104
19105         * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
19106           with later controls
19107
19108 2006-06-29  Mike Kestner  <mkestner@novell.com>
19109
19110         * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
19111         arrow in keynav state.  Fixes #78682.
19112
19113 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
19114
19115         * PrintDialog.cs: Reorder, relayout, remove extra code, set tab 
19116           order (fixes #78393)
19117
19118 2006-06-28  Jonathan Pobst  <monkey@ipobst.com>
19119
19120         * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs, 
19121           ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
19122           ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
19123           FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
19124           GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
19125           ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs, 
19126           PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
19127           Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
19128           TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
19129           ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
19130           enumerations (FlagsAttribute, SerializableAttribute, added/removed
19131           values)
19132
19133 2006-06-28  Mike Kestner  <mkestner@novell.com>
19134
19135         * ComboBox.cs: implement scroll wheel support. Fixes #78360.
19136
19137 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
19138
19139         * PropertyGrid.cs,
19140           PropertyGridTextBox.cs : explicitly set BackColor to differentiate
19141           item lines from other area (It also makes BackColor consistent and
19142           compatible with .NET). Fixed bug #78564.
19143
19144 2006-06-28  Jonathan Chambers  <jonathan.chambers@ansys.com>
19145
19146         * PropertyGrid.cs: refresh toolbar when PropertySort is set.
19147         Patch from Eno for #78555.
19148
19149 2006-06-27  Chris Toshok  <toshok@ximian.com>
19150
19151         * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
19152
19153         * DataGridColumnStyle.cs: same.
19154
19155         * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
19156         
19157         * DataGridDrawingLogic.cs: nuke.
19158
19159 2006-06-27  Chris Toshok  <toshok@ximian.com>
19160
19161         * DataGridTableStyle.cs: clean up the constructors, and build the
19162         list of child relations for this table.  I have no idea if this is
19163         where we should be doing it (it probably isn't), but since we're
19164         already iterating over the properties..
19165
19166         * DataGrid.cs: add row resizing.  for now we add a DataGridRow
19167         struct and array for keeping track of row information, similar to
19168         what's shown in a hack on
19169         http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
19170
19171         * Theme.cs: be consistent about the naming of DataGrid methods,
19172         prefering ColumnWidths and RowHeights over columnsWidths and
19173         RowsHeights.
19174
19175         * ThemeWin32Classic.cs: same, and also add support for variable
19176         sized rows (and the +/- expansion icons for related rows).
19177
19178 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
19179
19180         * TextBoxBase.cs: Applied Eno's patch from #78660
19181
19182 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
19183
19184         * Form.cs (ScaleCore): We don't want to scale our form if it's
19185           state is minimized or maximized, but we still need to scale our
19186           child windows. Also, added try/finally block to ensure layout
19187           gets reset (Fixes #78697)
19188
19189 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
19190
19191         * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
19192
19193 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
19194
19195         * Form.cs: Fixed c+p error and added check to resize form if minimum
19196           size is bigger than current size (Fixes #78709)
19197
19198 2006-06-26  Peter Dennis Bartok  <pbartok@novell.com> 
19199
19200         * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
19201
19202 2006-06-26  Mike Kestner  <mkestner@novell.com>
19203
19204         * ComboBox.cs: only do Keypress handling in the combo when there  
19205         are items in the collection. Fixes #78710.
19206
19207 2006-06-26  Chris Toshok  <toshok@ximian.com>
19208
19209         * Binding.cs: make this work bi-directionally.  also, clear up
19210         other mixups between Push/Pull Data (e.g. we're supposed to pull
19211         data when validating).
19212
19213         * BindingManagerBase.cs: trim some fully qualified collection
19214         types.
19215
19216         * PropertyManager.cs (get_IsSuspended): oops, fix this check.
19217
19218 2006-06-23  Chris Toshok  <toshok@ximian.com>
19219
19220         * PropertyManager.cs: It appears (according to the unit tests)
19221         that PropertyManager doesn't use
19222         PropertyDescriptor.AddValueChanged to track propery value changes
19223         in its datasource, but uses the same scheme as Binding, where it
19224         looks for a <Property>Changed event and binds to it.
19225
19226         Also, according to the docs, IsSuspended always returns false for
19227         a property manager with a non-null datasource.
19228
19229 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com> 
19230
19231         * Form.cs: (ShowDialog): If we're returning a forced cancel we still
19232           need to update the actual DialogResult. (Fixes #78613)
19233
19234 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com>
19235
19236         * Form.cs (ShowDialog): Release any captures before running the
19237           new message pump (fixes #78680)
19238
19239 2006-06-22  Mike Kestner  <mkestner@novell.com>
19240
19241         * ListView.cs: Layout column widths properly in details mode even 
19242         if HeaderStyle.None is set.  Fixes #78691.
19243
19244 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com>
19245
19246         * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
19247
19248 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com> 
19249
19250         * Control.cs (ContainsFocus): Using new driver method to get focused
19251           window, instead of trying to use internal tracking var, which can
19252           recursion issues (Fixes #78685)
19253         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
19254           XplatUIWin32.cs: Added GetFocus method to return focused window
19255
19256 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
19257
19258         * ColorDialog.cs: when the mouse button is pressed inside the color
19259         matrix, don't let the cursor move out of it until the button is
19260         released, which is the behavior on windows. Changed 'colours' by
19261         'colors' to use the same word consistently.
19262
19263 2006-06-21  Chris Toshok  <toshok@ximian.com>
19264
19265         * DataGrid.cs: add in some basic navigation stuff (navigating to a
19266         child relation and back, using a stack).  Also, remove
19267         GetDataSource and the code that calls it - it's not needed.  Also,
19268         track CurrencyManager.ListName's removal.
19269
19270 2006-06-21  Chris Toshok  <toshok@ximian.com>
19271
19272         * CurrencyManager.cs: push some of the original type checking from
19273         BindingContext.CreateBindingManager to here, and remove some of
19274         the finalType stuff.  Need more tests to make sure I've got the
19275         ListName part right, and we might need more in SetDataSource.
19276
19277         * PropertyManager.cs: add a ctor that takes just the datasource,
19278         and no property name.  Make SetDataSource work with a null
19279         property_name, and make Current return the data_source if the
19280         property descriptor is null.  this makes 'string foo = "hi";
19281         BindingContext[foo].Current' return "hi" as it should.
19282
19283         * RelatedCurrencyManager.cs: make this code more generic - there's
19284         no reason the parent manager has to be CurrencyManager, and
19285         there's no reason to pass the DataRelation.  It suffices to use a
19286         BindingManagerBase and PropetyDescriptor.
19287
19288         * RelatedPropertyManager.cs: make a similar change here.
19289         
19290         * BindingContext.cs: make CreateBindingManager the beautiful, tiny
19291         flower I knew it could be.
19292
19293 2006-06-20  Chris Toshok  <toshok@ximian.com>
19294
19295         * PropertyManager.cs: the PropertyChangedHandler is invoked when
19296         data in the source has changed and we need to update the control,
19297         so s/PullData/PushData.
19298
19299         * CurrencyManager.cs: Refresh is meant to update the control from
19300         data in the datasource.  So, s/PullData/PushData.
19301
19302         * BindingContext.cs: add more ugliness (we weren't handling the
19303         case where data_source = DataTable and data_member = column_name).
19304
19305         * Binding.cs: fix PushData/PullData mixup.  Both are interpreted
19306         from the perspective of the datasource.  PullData pulls from the
19307         control, PushData pushes to the control.
19308
19309 2006-06-20  Chris Toshok  <toshok@ximian.com>
19310
19311         * BindingContext.cs: rewrite the CreateBindingManager code to
19312         handle navigation paths more or less properly.  This could
19313         definitely stand some more work, in particular to push the
19314         recursion up to the toplevel.  But that relies on fixes in other
19315         places (System.Data comes to mind).
19316
19317         Also, move to a flat hashtable (and encode the twolevel nature of
19318         the dictionary into the hash key).  This lets us implement the
19319         IEnumerable.GetEnumerator method.
19320
19321         * RelatedCurrencyManager.cs: new class.  Update our view based on
19322         our relation and our parent CurrencyManager's position.
19323
19324         * CurrencyManager.cs: split out some logic from the ctor into
19325         SetView, so it can be called from the new RelatedCurrencyManager
19326         subclass.
19327
19328         * RelatedPropertyManager.cs: new class.  Update our datasource
19329         based on the position of our parent CurrencyManager.
19330
19331         * PropertyManager.cs: split out some logic from the ctor into
19332         SetDataSource, so it can be called from the new RelatedDataSource
19333         subclass.  Also, make the Current getter return the value
19334         of the PropertyDescriptor, not the data_source.
19335
19336         * Binding.cs: no need to duplicate the string splitting code here.
19337
19338 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
19339
19340         * Control.cs:
19341           - set_Enabled: OnEnabledChanged is not called if the inherited state 
19342             of the control is not altered, even though  we might be changing the
19343             internal state of the control (#78458)
19344           - set_Enabled: (Re)Moved the enabling/disabling of the window to 
19345             OnEnabledChanged, to allow easy altering of any child window state
19346           - OnEnabledChanged: Added code to enable/disable driver window state
19347           - OnParentEnabledChanged: Instead of firing the event, call 
19348             OnEnabledChanged, which will fire the event and also a) set driver
19349             window state and pass the enabled state to any grandchildren (#78458)
19350
19351 2006-06-19  Jackson Harper  <jackson@ximian.com>
19352
19353         * InternalWindowManager.cs: We don't set the cursor explicitly
19354         thats done via the response to NCHITTESTs.
19355         - Don't need to adjust for titlebar heights anymore, the
19356         coordinates are coming in the correct coordinates now (see peters
19357         last patch).
19358
19359
19360 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
19361
19362         * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
19363           being translated relative to whole window, instead of client window.
19364           That caused broken offsets on mouseclick (and caused gas for our
19365           InternalWindowManager)
19366
19367 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
19368
19369         * TextControl.cs:
19370           - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
19371           - Undo(): Added replay of cursor move on DeleteChars action; added
19372             calling Undo() again if a recorded cursor move is invalid (to
19373             ensure that some action is performed on Undo)
19374         * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
19375
19376 2006-06-16  Jackson Harper  <jackson@ximian.com>
19377
19378         * MdiClient.cs: Instead of just sizing maximized windows when
19379         there is a resize we also have to adjust the Y of minimized
19380         windows, so they stay pinned to the bottom of the mdi container.
19381         - Eliminate separate tracking of the active control, we can just
19382         get this from the controls collection.
19383         - Paint the decorations for the newly activated titlebar so we get
19384         a pretty blue bar.
19385         * InternalWindowManager.cs:
19386         * ThemeWin32Classic.cs: Minimized windows get all three buttons
19387         even if they are a tool window.
19388         
19389 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
19390
19391         * TextControl.cs (Undo): Handle non-existent cursor locations in the
19392           undo buffer, these can happen when text was deleted and the cursor
19393           was recorded first. Since we will also have a recorded cursor
19394           after the delete this is not an issue. (Fixes #78651)
19395
19396 2006-06-14  Peter Dennis Bartok  <pbartok@novell.com> 
19397
19398         * AccessibleObject.cs: Remove dependence on Control.is_selected;
19399           instead properly track control states internally (allows us to
19400           remove is_selected from Control)
19401
19402 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
19403
19404         * ImageListStreamer.cs: correctly generate the 1bpp mask for images
19405         whose width is not a multiple of 8.
19406
19407 2006-06-13  Jackson Harper  <jackson@ximian.com>
19408
19409         * MdiClient.cs:  Only maximize the next child if the current one
19410         is maximized.
19411
19412 2006-06-13  Chris Toshok  <toshok@ximian.com>
19413
19414         * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
19415         modified.  Also, guard against grid or grid_drawing being null in
19416         Invalidate.
19417
19418         * DataGrid.cs: Reformat tons of getters/setters.  In the
19419         DataMember setter, just call SetNewDataSource instead of
19420         duplicating some of its functionality.  In SetNewDataSource, don't
19421         check ListManager for null, since the property getter creates the
19422         object if needed.
19423
19424         * DataGridTableStyle.cs: don't set TableStyle or call
19425         SetDataGridInternal on the column here, it's done in
19426         GridColumnStylesCollection.Add.
19427
19428         * GridColumnStylesCollection.cs: fix all the explicit interface
19429         implementations to just call our methods.  Nuke AddInternal() and
19430         move the body of it to Add().  Also, add a call to
19431         column.SetDataGridInternal to Add().
19432
19433         * DataGridTextBoxColumn.cs (.ctors): call this() instead of
19434         base()+duplicate code.  Also, use the Format property instead of
19435         format to generate an Invalidate ala MS.  Lastly, create the
19436         textbox here, unconditionally.
19437         (set_Format): call Invalidate.
19438         (get_TextBox): no need to call EnsureTextBox.
19439         (Commit): remove the message box.
19440         (Edit) remove the call to EnsureTextBox.
19441         (EndEdit): call HideEditBox instead of ReleaseHostedControl.
19442         (EnterNullValue): no need to check textbox for null.
19443         (HideEditBox): no need to check textbox for null.
19444         (SetDataGridInColumn): add the textbox to the grid's controls.
19445         (EnsureTextBox): nuke.
19446         
19447 2006-06-13  Jackson Harper  <jackson@ximian.com>
19448
19449         * MdiWindowManager.cs: Hook up to the maximized menus paint event
19450         and redraw the buttons when needed. Unhook when the window is
19451         unmaximized.
19452         * MainMenu.cs: Add an internal Paint event, the mdi window manager
19453         needs this so that it can redraw its buttons when the menu is
19454         repainted.
19455         * InternalWindowManager.cs:
19456         * Form.cs: The method order has changed for DrawMaximizedButtons,
19457         so that it can be a PaintEventHandler.
19458         
19459 2006-06-13  Jackson Harper  <jackson@ximian.com>
19460
19461         * MdiClient.cs: When we close a maximized mdi window, the next mdi
19462         window is activated and maximized, even if it wasn't before.
19463         - When  a new window is activated repaint the decorations of the
19464         old one, so that it no longer has the Active "look" (the blue
19465         titlebar).
19466         * InternalWindowManager.cs: Open up CreateButtons to base classes
19467         so they can recreate the buttons on state changes.
19468         - If a window is maximized give it all three buttons
19469         * MdiWindowManager.cs: Create the titlebar buttons when the state
19470         is changed, this is needed because a toolwindow will not have all
19471         three buttons until it is maximized.
19472
19473 2006-06-13  Atsushi Enomoto  <atsushi@ximian.com>
19474
19475         * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
19476           Fixed bug #78609.
19477
19478 2006-06-12  Jackson Harper  <jackson@ximian.com>
19479
19480         * KeysConverter.cs: Make sure we handle the Ctrl special case
19481         if its the only key.
19482         
19483 2006-06-12  Jackson Harper  <jackson@ximian.com>
19484
19485         * Theme.cs: Add a method to get the size of a managed window
19486         toolbar button.
19487         * InternalWindowManager.cs: Remove the ButtonSize property, this
19488         should be retrieved from the theme.
19489         * MdiWindowManager.cs: Get the button size from the theme
19490         * ThemeWin32Classic.cs: Make the method to get the managed window
19491         titlebar button size public.
19492         - Handle the different button sizes of maximized toolwindows
19493         (should match any maximized window).
19494         - Get the titlebar height from the theme, not the WM (which gets
19495         it from the theme).
19496
19497 2006-06-12  Jackson Harper  <jackson@ximian.com>
19498
19499         * InternalWindowManager.cs: Handle NC Double Clicks, passing the
19500         event down to the mdi window manager.
19501         - Expose some extra stuff to base classes
19502         - Make sure to end the Capture on an NC Mouse up, so that we can
19503         get double clicks properly, and the sizing doens't stick.
19504         - When doing PointToClient contain it in the workable desktop
19505         area, this prevents windows from changing size when the cursor is
19506         pulled outside of the working area while sizing.
19507         * MdiWindowManager.cs: When we get a double click maximize the
19508         window.
19509         - Reset the cursor after handling mode changes.
19510
19511 2006-06-12  Peter Dennis Bartok  <pbartok@novell.com> 
19512
19513         * XplatUIX11.cs (WorkingArea): Read the actual workarea for the 
19514           current desktop, instead of just assuming a 0, 0 origin. This
19515           is needed for our internal window manager, to know the top
19516           margin of the desktop
19517
19518 2006-06-12  Chris Toshok  <toshok@ximian.com>
19519
19520         * DataGrid.cs (set_CurrentCell): concede focus as we move around.
19521         we need this to get rid of the selected background in the bool
19522         column.
19523         (CancelEditing): move the ConcedeFocus call to above the Abort
19524         call.  Also, set is_changing to false and invalidate the row
19525         header if we were changing before.
19526         (ProcessKeyPreviewInternal): remove, since noone outside this
19527         class calls it anymore.  Roll the code into ProcessKeyPreview.
19528         (EndEdit): remove the internal version.
19529         (InvalidateCurrentRowHeader): make private.
19530
19531         * DataGridBoolColumn.cs: simplify this class a bunch.  remove the
19532         Keys.Escape handling (and with it the last call to
19533         DataGrid.EndEdit from outside the class.)
19534
19535
19536 2006-06-12  Chris Toshok  <toshok@ximian.com>
19537
19538         * DataGridTextBox.cs (.ctor): isedit defaults to false.
19539         (OnKeyPress): set isedit to true.
19540         (ProcessKeyMessage): remove Keys.Enter handling from here.  it's
19541         already handled by the grid.
19542
19543         * DataGrid.cs (set_CurrentCell): more work here.  it's still not
19544         right.  ugh.
19545         (set_DataSource): SetDataSource always returns true, so stop
19546         putting it in an if statement.
19547         (EndEdit): get rid of some {}'s
19548         (ProcessGridKey): return true in case Keys.Escape.
19549         (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
19550         (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
19551         PositionChanged, stopped connecting to CurrentChanged.
19552         (GetDataSource): simplify this a bunch.
19553         (SetDataSource): change return type from bool to void.
19554         (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
19555         to this, and make sure we don't set ListManager.Position inside
19556         set_CurrentCell.
19557         (OnListManagerItemChanged): if we're passed an actual index,
19558         redraw that row.
19559
19560         * CurrencyManager.cs (set_Position): don't call PullData here.
19561
19562 2006-06-09  Jackson Harper  <jackson@ximian.com>
19563
19564         * TreeNode.cs:  Recalculate the visible order before doing the
19565         Expand/Collapse Below calls, because those calls generate an
19566         expose.
19567         - Reduce calls to the TreeView property, which is mildly expensive
19568         by using a local var.
19569         * Form.cs: Layout the MDI child windows when creating the parent
19570         form.
19571         - Don't use the internal constructor anymore
19572         * MdiClient.cs: use the parent form width/height (if available)
19573         when laying out the child windows, we do this because the
19574         mdiclient isn't docked yet when the initial layout is done.
19575         - Don't need an internal constructor anymore.
19576
19577 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
19578
19579         * FileDialog.cs: handle access errors when trying to create a folder
19580         or changing to a directory. No need to initialize out parameters.
19581
19582 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
19583
19584         * FileDialog.cs: Append a number when creating a new folder if the
19585           folder already exists (use parenthesis instead of square brackets)
19586
19587 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
19588
19589         * FileDialog.cs:
19590           - Disabled registry support for windows and added better registry
19591             error checking for other systems (need to investigate why it
19592             works perfectly on my system)
19593           - If a folder already exist show an error MessageBox instead of
19594             trying to create an indexed name.
19595           - Fixed a non intentional typo.
19596
19597 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
19598
19599         * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
19600
19601 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
19602
19603         * FileDialog.cs: When creating a new folder don't crash if the
19604           folder already exists.
19605
19606 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
19607
19608         * FileDialog.cs: Allmost a complete rewrite.
19609           - added a "virtual" file system that handles the differences
19610             between unix and windows file systems (especially the directory
19611             structure). Moved most of the directory and file handling code
19612             into the vfs.
19613             Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
19614             UnixFileSystem and FSEntry.
19615           - Recently used folder/directory, size, location and used file names
19616             (file name ComboBox) are now stored in the registry and get read
19617             before the dialog shows up (fixes part 6 of bug #78446).
19618           - Creation of new folders/directories is now possible (context menu
19619             or ToolBar). Added TextEntryDialog for this that fills in the gap
19620             until ListView.LabelEdit works.
19621           - Fixed cursor handling (bug #78527) and focus handling for
19622             PopupButtonPanel
19623           - Various "Search in" ComboBox enhancements. The content of the
19624             dropdown listbox now almost matches ms.
19625           - Changed the behaviour when the user switches to SpecialFolder
19626             Recent to show the ListView in View.Details.
19627           - Beside using the ToolBar to change the View property of the
19628             file ListView it is now possible to use the context menu too.
19629
19630 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
19631
19632         * ComboBox.cs: Don't create a new ObjectCollection when an item
19633           gets inserted. Just insert the item in the existing object_items
19634           ArrayList.
19635
19636 2006-06-08  Jackson Harper  <jackson@ximian.com>
19637
19638         * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
19639         that the treeview and root node checks are done also, this fixes a
19640         regression i caused in the unit tests.
19641
19642 2006-06-07  Wade Berrier <wberrier@novell.com> 
19643
19644         * RichTextBox.cs: More ISO8859-1 -> unicode
19645
19646 2006-06-07  Mike Kestner  <mkestner@novell.com>
19647
19648         * ComboBox.cs : use items to hold highlight/selection so that
19649         collection insertions don't require synchronization.
19650
19651 2006-06-07  Jackson Harper  <jackson@ximian.com>
19652
19653         * InternalWindowManager.cs: Simplify (and FIX) the window sizing
19654         routine.  We now always keep the sized edge at the cursor instead
19655         of computing movement and adjusting rects.  There is one buglet
19656         with this method though when the cursor is moved over area that
19657         the window can not expand too (such as the toolbars on the desktop).
19658
19659 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
19660
19661         * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
19662         here. Fixes crash on startup in AlbumSurfer.
19663
19664 2006-06-07  Peter Dennis Bartok  <pbartok@novell.com> 
19665
19666         * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
19667           values
19668
19669 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
19670
19671         * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
19672         statement to avoid calling XNextEvent which will block if another thread
19673         took the event that we were expecting. Fixes bug #78605.
19674
19675 2006-06-07  Mike Kestner  <mkestner@novell.com>
19676
19677         * ListView.cs : isolated checkbox clicking from the selection logic.
19678         Toggle check state on item doubleclicks.  Really fixes #78454 part2.
19679
19680 2006-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19681
19682         * Form.cs: Check that the value passed to Form.DialogResult
19683         is a valid enum value.
19684
19685 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
19686
19687         * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
19688         Computer'. Clicking it in the network view goes to 'My Computer'.
19689         Added CIFS filesystem type. Display the mount point of filesystems.
19690         Avoid duplicate mount points (happens for me with CIFS);
19691
19692 2006-06-06  Jackson Harper  <jackson@ximian.com>
19693
19694         * InternalWindowManager.cs: Draw the maximized windows buttons
19695         when resizing.
19696
19697 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
19698
19699         * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
19700         all other dialogs. Fixes bug #78585.
19701
19702 2006-06-06  Mike Kestner  <mkestner@novell.com>
19703
19704         * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
19705         Only invalidate checkbox on checkstate changes to avoid flicker.
19706         * ListBox.cs : avoid unselect/select when clicking selected item.
19707         avoid reselection flicker for already multiselected items.
19708         Fixes #78382.
19709
19710 2006-06-06  Jackson Harper  <jackson@ximian.com>
19711
19712         * MdiWindowManager.cs: When the window is closed do an NCRecalc on
19713         the parent form so that the menu is removed if needed.
19714
19715 2006-06-06  Mike Kestner  <mkestner@novell.com>
19716
19717         * ListBox.cs : add ScrollWindow call to UpdateTopItem.  fix
19718         Prev/Next/PrevPage/NextPage/Home/End index calculation.  Fixes #78559.
19719
19720 2006-06-06  Mike Kestner  <mkestner@novell.com>
19721
19722         * CheckedListBox.cs : rebuild check collection on Add.  Fixes #78426.
19723
19724
19725 2006-06-06  Jackson Harper  <jackson@ximian.com>
19726
19727         * Control.cs: Use the property (instead of the field) to get the
19728         default cursor so it is instantiated correctly.
19729         * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
19730         resizes so we need to manually repaint the window decorations here.
19731         - Set the titlebar button locations as soon as they are created,
19732         otherwise they are not set correctly on win32.
19733         
19734 2006-06-06  Chris Toshok  <toshok@ximian.com>
19735
19736         * CurrencyManager.cs (set_Position): call PullData before
19737         OnCurrentChanged.
19738         (AddNew): after calling IBindingList.AddNew, update our
19739         listposition, and call OnCurrentChanged/OnPositionChanged (without
19740         calling PullData).
19741         (OnCurrentChanged): remove the call to PullData from here.
19742         (OnItemChanged): remove the call to PushData from here.
19743         (OnPositionChanged): change the test from == null to != null to
19744         match the other methods.
19745         (ListChangedHandler): the grossest part of the patch.  Implement
19746         this such that it passes the unit tests in CurrencyManagerTest and
19747         the output more or less matches that of MS's implementation.
19748  
19749 2006-06-06  Mike Kestner  <mkestner@novell.com>
19750
19751         * ListView.cs : only update check state on single click.
19752         * ThemeWin32Classic.cs : fix focus drawing for details view without
19753         fullrowselect.  Fixes #78454.
19754         * XplatUIX11.cs : fix for double click emission.
19755
19756 2006-06-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
19757
19758         * PropertyGridView.cs : Applied Atsushi's patch to fix
19759         font dialog bug  (#78197).
19760
19761 2006-06-05  Jackson Harper  <jackson@ximian.com>
19762
19763         * TreeNode.cs: Compute the next node for expanding/collapsing
19764         correctly. We now factor in nodes without a NextNode
19765         correctly. (Fixes somes cases in nunit-gui).
19766         * InternalWindowManager.cs: Set the bounds when updating the
19767         virtual position of a tool window.
19768         
19769 2006-06-05  Chris Toshok  <toshok@ximian.com>
19770
19771         * DataGrid.cs: rename cached_currencymgr to list_manager.
19772         (set_CurrentCell): move SetCurrentCell code here, and clean it up
19773         some.
19774         (CurrentRow, CurrentColumn): single accessors so we can make the
19775         cursor movement code a lot easier to understand.
19776         (CurrentRowIndex): implement this in terms of CurrentRow.
19777         (BeginEdit): clean this up a bit.
19778         (CancelEditing): sort out the is_editing/is_changing/is_adding
19779         stuff a little.
19780         (EndEdit): minor changes.
19781         (OnKeyDown): add a comment about a (most likely) unnecessary
19782         check.
19783         (OnMouseDown): cancel editing when we click on a row header.  And
19784         use the CurrentRow setter, not CurrentCell.
19785         (ProcessDialogKey): directly call ProcessGridKey.
19786         (UpdateSelectionAfterCursorMove): factor out this common block of
19787         code (it's used everywhere that we move the cursor by updating row
19788         or column).
19789         (ProcessGridKey): pretty substantial overhaul.  Use the
19790         CurrentRow/CurrentColumn properties to make the code a lot more
19791         readable.  Only use the CurrentCell property when we have to
19792         modify both row and column at once.  Tab behavior is still broken,
19793         and Delete is untested.
19794         (Select): if we have no selected rows, set selection_start to
19795         @row.
19796         (EditCurrentCell): rename EditCell this.  It was only ever invoked
19797         with CurrentCell as the arg, so drop the arg and rename it.
19798
19799         * DataGridColumnStyle.cs: clean up the constructors a little, and
19800         drop CommonConstructor().
19801
19802         * DataGridTextBox.cs (.ctor): set accepts_return to true so we
19803         actually get notified when the user hits it.
19804         (ProcessKeyMessage): *substantially* simplify this method.
19805         There's no reason (that I can see) for the textbox to be making
19806         calls into the datagrid at all.  Remove all of them but the ones
19807         for Enter handling.  those will take some more work.
19808
19809         * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
19810         calling HideEditBox.
19811         (HideEditBox): if we have an active textbox, render it invisible
19812         without causing a re-layout of the datagrid.
19813
19814 2006-06-05  Mike Kestner  <mkestner@novell.com>
19815
19816         * ListView.cs : fix NRE crasher when focuseditem is cleared by
19817         collection changes by resetting it to Items[0].  Fixes #78587.
19818
19819 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
19820
19821         * MessageBox.cs: if the height of the text is larger than the icon_size,
19822         use that. Fixes bug #78575.
19823
19824 2006-06-05  Jackson Harper  <jackson@ximian.com>
19825
19826         * TreeView.cs: Fix line drawing when scrolling.  To do this each
19827         node is basically responsible for drawing its entire horizontal
19828         area.  When drawing a node it draws its parent node lines if
19829         needed.
19830         - Adjust the clip area to the viewport rectangle
19831         - Fix Left/Right key handling to match MS. (It expand/collapses
19832         and moves to parents/first child but does not move selection to
19833         sibling nodes).
19834         - Fix SetTop to work with new bound calculation code
19835         - When scrollbars are no longer needed we need to reset scrolling
19836         vars and recalculate the visible order so the redraw is correct
19837         * TreeNode.cs: We can't expand/collapse nodes with no children.
19838
19839 2006-06-03  John Luke  <john.luke@gmail.com> 
19840
19841         * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
19842         so the colors work without dev packages
19843         
19844 2006-06-02  Peter Dennis Bartok  <pbartok@novell.com> 
19845
19846         * Control.cs 
19847           - Select: Implemented to just use activate. Seems to match MS 
19848             behaviour closest. Documented to only do actual control walking 
19849             based on it's parameters if in a container control so I moved 
19850             the code there.
19851           - Removed selection check logic from our internal Select() method
19852         * ContainerControl.cs:
19853           - Select: Moved selection logic from Control here, since MS documents
19854             that containers obey the bool arguments. No longer calling base
19855
19856 2006-06-02  Jackson Harper  <jackson@ximian.com>
19857
19858         * TreeView.cs: If the selected node isn't changed when we get
19859         focus update the previously selected node so that we see the
19860         selection box.
19861
19862 2006-06-02  Mike Kestner  <mkestner@novell.com>
19863
19864         * ComboBox.cs: restructure grab and general mouse event handling.
19865         Make the composite control raise mouse events like it was a single
19866         control for leaves/enters/motion/up/down events.  fix dropdown list
19867         coordinate mangling and refactor it into the scrollbar subclass to
19868         reduce code duplication.  Fixes #78282 #78361 and #78457.
19869
19870 2006-06-02  Mike Kestner  <mkestner@novell.com>
19871
19872         * ScrollBar.cs: remove Capture setting/clearing, as it happens
19873         automatically in the Control.WndProc.
19874
19875 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
19876
19877         * FileDialog.cs: fix crash when running SharpChess, which sets the
19878         FilterIndex to 2 with only one Filter.
19879
19880 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
19881
19882         * ToolBar.cs: add SizeSpecified property.
19883         * ToolBarButton.cs: when the ButtonSize is calculated by the container,
19884         try to figure out our real size, otherwise fallback to what the
19885         container says.
19886
19887 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
19888
19889         * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
19890         * Control.cs (WndProc): MS always calls the DefWndProc to pass
19891           up the event
19892
19893 2006-06-01  Mike Kestner  <mkestner@novell.com>
19894
19895         * ListView.cs: revamp the focus management in ListView.  It still
19896         causes churn of LostFocus/GotFocus emissions on clicks, but it's
19897         better than not handling focus at all.  Will revisit when pdb feels
19898         the general focus handling is solid.  Fixes #78526.
19899
19900 2006-06-01  Jackson Harper  <jackson@ximian.com>
19901
19902         * TreeView.cs: Set the default border style in the constructor.
19903         - Move painting to use OnPaintInternal instead of capturing
19904         WM_PAINT, this is the correct way of doing things
19905         - UpdateBelow shouldn't invalidate the scrollbar area
19906         - Cap the top on update below in case the node was above the top
19907         of the viewport rectangle.
19908         - ExpandBelow and Collapse below need to obey Begin/End Update.
19909         * TreeNode.cs: Make is_expanded internal so the treenode
19910         collection can change it without firing the whole event chain.
19911         * TreeNodeCollection.cs: When clearing all the child nodes make
19912         sure to recalc the visible order.
19913         - Improve algo for remove the top node
19914
19915 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
19916
19917         * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
19918           SendMessage directly calling window procedures, which in turn might
19919           call SetFocus()
19920
19921 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com>
19922
19923         * Control.cs: Don't handle WM_SETFOCUS if the same window already
19924           has focus (works around X11 sending a FocusIn after our SetFocus)
19925         * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
19926
19927 2006-06-01  Alexander Olk  <alex.olk@googlemail.com>
19928
19929         * Mime.cs: Fix for the NET_2_0 build.
19930           NameValueCollection needs StringComparer now.
19931
19932 2006-05-31  Chris Toshok  <toshok@ximian.com>
19933
19934         * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
19935         return (via an out parameter) the starting X of the column.
19936         (UpdateVisibleColumn): track change to FromPixelToColumn.
19937         (HitTest): add a ColumnResize case here.
19938         (DrawResizeLine): new function, probably poorly named.
19939
19940         * DataGrid.cs (.ctor): get rid of cached_currencymgr_events.  We
19941         only need to keep one reference.
19942         (set_ListManager): same.
19943         (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
19944         Also, add support for HitTestType.ColumnResize.
19945         (OnMouseMove): add column resize behavior here, and change the
19946         cursor to the correct one as we move around the datagrid.
19947         (OnMouseUp): terminate the column resize if we're resizing.
19948         (ProcessGridKey): from the MS docs, Alt-0 enters the null value
19949         for the current cell.
19950         (ConnectListManagerEvents): use cached_currencymgr.
19951         (DisconnectListManagerEvents): fill this in, using
19952         cached_currencymgr.
19953         (SetCurrentCell): remove cached_currencymgr_events handling.
19954         (SetDataMember): only call DisconnectListManagerEvents if
19955         cached_currencymgr is != null.
19956         (SetDataSource): same.
19957         (OnListManagerCurrentChanged): cached_currencymgr_events ->
19958         cached_currencymgr.
19959
19960 2006-05-31  Jackson Harper  <jackson@ximian.com>
19961
19962         * BindingManagerBase.cs: Remove somedebug code that creeped into
19963         SVN.
19964         * TreeNode.cs: We get the indent level dynamically right now, so
19965         don't track it as a member.
19966         * TreeNodeCollection.cs: Make sure all nodes added to the list
19967         have parents, treeviews/topnodes setup properly.
19968         - Don't attempt to track indent level.
19969
19970 2006-05-30  Jackson Harper  <jackson@ximian.com>
19971
19972         * BindingContext.cs: Create the currency manager tables here.
19973         This allows us to more easily create null tables (when bad data
19974         members are used), and more easily create related currency
19975         managers.
19976         * CurrencyManager.cs: All the table creation stuff is done by the
19977         binding context now.
19978         - Current should throw an exception if listposition is -1.
19979         - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
19980         been bound yet.
19981
19982 2006-05-30  Mike Kestner  <mkestner@novell.com>
19983
19984         * ListView.cs: allow reexpansion of zero-width column headers.
19985         Fixes #78528.
19986
19987 2006-05-28  Chris Toshok  <toshok@ximian.com>
19988
19989         * CurrencyManager.cs (get_Current): after the late binding
19990         listposition = -1 fix, we need to guard against it here and return
19991         null, otherwise we raise an exception (which is swallowed
19992         elsewhere, and breaks datagrid databinding.)
19993
19994 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
19995
19996         * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
19997           than WM_SYSKEY, don't throw if get something unexpected (#78507)
19998
19999 2006-05-26  Jackson Harper  <jackson@ximian.com>
20000
20001         * ControlPaint.cs:
20002         * ThemeWin32Classic.cs: For color comparisons just use the ARGB
20003         values, it's faster and it's all we care about (we don't care if
20004         the names aren't equal).
20005         * KeyboardLayouts.cs: Eliminate some dead code.
20006         - Lazy init things
20007         * X11Keyboard.cs: Lazy init keyboard detection.
20008         - Cleanup access modifiers a little.
20009
20010 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
20011
20012         * XplatUIX11.cs: Once again, attempting to get layout just right.
20013
20014 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com> 
20015
20016         * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
20017           the sizes of each link section, that will result in sizes that
20018           match DrawString's layout (Fixes #78391)
20019
20020 2006-05-27  Alexander Olk  <alex.olk@googlemail.com>
20021
20022         * FileDialog.cs: If AddExtension property is true autocomplete the
20023           extensions in SaveFileDialog correctly. Fixes bug #78453.
20024           Set MyNetwork and MyComputer to "C:\" for windows. This should
20025           fix part 8 of bug #78446 for now.
20026
20027 2006-05-26  Chris Toshok  <toshok@ximian.com>
20028
20029         * DataGrid.cs (ColumnStartedEditing): fill these in.  for now just
20030         invalidate the current row header if we need to, but presumably
20031         we'll invalidate the row corrsponding to the bounds or
20032         editingControl.
20033         (GridHScrolled): switch back to this method, as it's part of the
20034         public api.  *sigh*.
20035         (GridVScrolled): same.
20036         (OnMouseWheel): hack up something that more or less works.  Call
20037         GridHScrolled/GridVScrolled directly, instead of duplicating much
20038         of their code here.
20039         (EnsureCellVisibility): reinstate a bunch of this code, since we
20040         can't just set the scrollbar Value and expect to do all the work
20041         in the ValueChanged handler.  Also, Call Update() after scrolling
20042         in one direction so the other XplatX11.ScrollWindow call has the
20043         proper stuff in the proper places.
20044         (EditCell): set is_editing to true before calling .Edit.
20045
20046         * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
20047         don't bother comparing first.
20048         (OnKeyPress): call grid.ColumnStartedEditing before calling
20049         base.OnKeyPress.  this will set is_changing and invalidate the row
20050         header if necessary.
20051         (ProcessKeyMessage): for WM_CHAR messages, call
20052         ProcessKeyEventArgs directly.  swallow anything other than WM_CHAR
20053         and WM_KEYDOWN.
20054         
20055         * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
20056         it's done in the DataGrid.
20057         (NextState): call grid.ColumnStartedEditing, which takes care of
20058         invalidating the row header (and setting is_changing).
20059
20060         * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
20061         here.  it's done in the DataGrid.
20062
20063 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20064
20065         * Control.cs: allow changing the cursor when the mouse position is
20066         out of bounds but Capture is set.
20067         * LinkLabel.cs: handle the case when the mouse button is pressed on the
20068         linklabel but released somewhere else.
20069
20070 2006-05-25  Jackson Harper  <jackson@ximian.com>
20071
20072         * TreeView.cs: When we get focus if there is no selected node make
20073         it the top node
20074         - Remove some uneeded setup code from Draw.
20075         * TreeNodeCollection.cs: If the tree doesn't have a top node when
20076         a new node is inserted make the new node the top.
20077         * XplatUIX11.cs:
20078         * Timer.cs: Use Utc time so that no local time zone stuff needs to
20079         be used (should be faster).
20080         
20081 2006-05-25  Chris Toshok  <toshok@ximian.com>
20082
20083         * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
20084         problem with the last commit.
20085
20086 2006-05-25  Chris Toshok  <toshok@ximian.com>
20087
20088         * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
20089         need the invalidate call here, while scrolling right-to-left via
20090         the left arrow key (i.e. moving the editing cell while scrolling).
20091
20092         * DataGrid.cs (.ctor): remove the initialization of
20093         ctrl_pressed/shift_pressed.  We no longer track them using key
20094         up/down handlers, but by using Control.ModifierKeys.  Also, switch
20095         to using ValueChanged handlers on the scrollbars instead of
20096         Scrolled event handlers.  This simplifies a bunch of the scrolling
20097         code.
20098         (GridHValueChanged): rename from GridHScrolled, and change it to
20099         work with the new event args.
20100         (GridVValueChanged): same.
20101         (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
20102         (OnMouseWheel): actually scroll the datagrid.  Don't change the
20103         selected cell.
20104         (ProcessGridKey): correct all the keyboard navigation stuff I
20105         could find.  Ctrl up/down/left/right/home/end work now.
20106         (EnsureCellVisibility): correct method name spelling.  Also,
20107         simplify this a touch by not explicitly calling the
20108         ScrollToRow/ScrollToColumnInPixels methods.  We just set the
20109         scrollbar value.
20110         (OnKeyUpDG): no need for this method now.
20111         
20112 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20113
20114         * LinkLabel.cs: display the OverrideCursor when hovering the label.
20115         Fixes bug #78392.
20116
20117 2006-05-25  Chris Toshok  <toshok@ximian.com>
20118
20119         * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
20120         r61019.
20121
20122 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
20123
20124         * Application.cs: Moved setting of is_modal and closing to before
20125           we create the control, to allow the event handlers called as a
20126           result of creation affect closing. Also removed Gonzalo's previous
20127           change to setting DialogResult, the behaviour has been moved to 
20128           Form.ShowDialog()
20129         * Form.cs: 
20130           - ShowDialog(): Removed explicit creation of the form, let RunLoop
20131             handle it instead
20132           - ShowDialog(): If no dialog result is set, we need to return Cancel
20133           - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
20134             the close is cancelled
20135
20136 2006-05-25  Jackson Harper  <jackson@ximian.com>
20137
20138         * StatusBar.cs: We only need to update the sizes of the other
20139         panels when we have auto size contents.  Also we are only updating
20140         the contents of the panel, not the borders, so compensate for the
20141         border width (TODO: get this width from the theme somehow).
20142         * TreeView.cs: Scrollable is true by default
20143         - Use invalidate instead of refresh where needed
20144         - Factor the scrollable value into scrollbar updating
20145         - Update the scrollbars if the Scrollable property is altered
20146         - Update the selected node if its ImageIndex is changed
20147         - Handle null nodes in UpdateNode (mainly so we don't have to
20148         check if selected is null when updating it
20149         - Fix VisibleCount to use the ViewportRectangle so that scrollbars
20150         are factored into the visible count
20151         - Use VisibleCount for clarity in the code
20152         - When the font is changed we need to recurse through all the
20153         nodes and invalidate their sizes
20154         
20155 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20156
20157         * Application.cs: set the DialogResult to fixed when the main form is
20158         hidden or destroyed while being modal.
20159
20160 2006-05-25  Miguel de Icaza  <miguel@novell.com>
20161
20162         * Theme.cs: Use Tangoified messagebox icons. 
20163
20164         (GetSizedResourceImage): Also cope with width = 0 and do not
20165         trigger a warning in that case (0 means "give me your icon from
20166         the resouce, no special size needed).
20167
20168 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
20169
20170         * Application.cs: Leave runloop if the the main modal form is 
20171           hidden (fixes #78484)
20172
20173 2006-05-25  Atsushi Enomoto  <atsushi@ximian.com>
20174
20175         * BindingContext.cs : reject null datasource in Contains() and
20176           Item[].
20177         * CurrencyManager.cs : check data_member validity when data_source
20178           is dataset. When it is late binding, the initial position is -1.
20179
20180 2006-05-24  Jackson Harper  <jackson@ximian.com>
20181
20182         * TreeNodeCollection.cs: Dont't recalculate the visible order on
20183         inserted nodes that aren't visible.  This changes the
20184         max_visible_order which confuses scrollbar settings.
20185         - Use the enumerator to get the prev node instead of duplicating
20186         code.
20187         * TreeView.cs: Use new method for setting scrollbar values
20188         - Don't set the bounds every time the scrollbar is updated
20189         - When updating below the root node use an invalidate instead of a
20190         refresh to prevent the child controls (scrollbars) from being
20191         refreshed. (UpdateBelow still needs to be reworked anyways).
20192         - Reenable SetBottom now that visible orders are set correctly,
20193         added some debug code incase we ever get bad values there again.
20194         - Set the scrollbar max to 2 less then the max value, this
20195         compensates for the max value being one above the node count, and
20196         for scrollbars adding one extra "notch".
20197         - When drawing image nodes if there is an imagelist we draw the
20198         first image in the list if the supplied image index is out of the
20199         image list's bounds.
20200         
20201 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
20202
20203         * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when 
20204           we receive a size change from the WM (Fixes #78503)
20205
20206 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com>
20207
20208         * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip 
20209           rectangle (Fixes #78501)
20210
20211 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
20212
20213         * ButtonBase.cs: 
20214           - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button 
20215             as a bitfield.
20216           - Fixed MouseMove to no longer switch pressed state unless the left
20217             mouse button is pressed. Atsushi provided the original patch (#78485)
20218           
20219 2006-05-24  Jackson Harper  <jackson@ximian.com>
20220
20221         * ScrollBar.cs: New internal methods that allow us to change a
20222         couple values on the scrollbar (the most common case is maximum
20223         and large change) without getting multiple invalidates.
20224
20225 2006-05-24  Chris Toshok  <toshok@ximian.com>
20226
20227         * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
20228         (Edit): save off the original state in oldState, and set
20229         grid.is_editing to true.
20230         (OnKeyDown): abort editing if escape is pressed.  also, call
20231         NextState if space is pressed.
20232         (OnMouseDown): call NextState.
20233         (NextState): factor out shared code from OnKeyDown and OnMouseDown
20234         here.  Also, only invalidate the row header once (on the initial
20235         is_changing switch) to save on redraws.
20236
20237 2006-05-24  Chris Toshok  <toshok@ximian.com>
20238
20239         * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
20240         if the value in the cell is different than it was before.  This
20241         keeps us from triggering a layout when we move around a datarid
20242         with a highlighted cell.
20243         (Edit): suspend layout when creating/positining the text box, and
20244         resume passing false so we don't ever actually re-layout.
20245         (ReleaseHostedControl): same.
20246         (EnsureTextBox): reformat slightly, and set WordWrap to false.
20247
20248         * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
20249         control-key sequences should go to the datagrid - remove that
20250         lock.  Also, modify the conditions under which we move between
20251         cells when moving the cursor within a cell, and remove the "this"
20252         and "base" from field accesses.  We weren't even consistent, given
20253         they all were in the base class.
20254
20255 2006-05-24  Atsushi Enomoto  <atsushi@ximian.com>
20256
20257         * Binding.cs : (.ctor)
20258           An obvious NRE fix for BindingTest.CtorNullTest().
20259
20260 2006-05-23  Chris Toshok  <toshok@ximian.com>
20261
20262         * TextBoxBase.cs (get_Text): don't add a trailing newline, add
20263         them between lines.  This fixes some quirks editing cells in the
20264         datagrid.
20265
20266 2006-05-23  Jackson Harper  <jackson@ximian.com>
20267
20268         * TreeView.cs: Use begin/end update when doing expand/collapse all
20269         so that we don't get flicker on the scrollbar.
20270
20271 2006-05-23  Jackson Harper  <jackson@ximian.com>
20272
20273         * TreeNode.cs: Bounds are computed 'on the fly' now.  This allows
20274         treenode calculations to be independant of the painting code. To
20275         do this nodes track a visible order which is calculated by the
20276         treeview.
20277         - Call new methods for expanding/collapsing nodes.  These methods
20278         use scrollwindow so we don't have to update everything below the
20279         node.
20280         * TreeView.cs: Refactored drawing and scrolling code.  We don't
20281         need to update nodes when drawing anymore or calculate scrollbar
20282         stuff.
20283         - Added new methods for expanding/collapsing nodes. These methods
20284         use ScrollWindow so as to not have to redraw all the nodes below.
20285         * TreeNodeCollection.cs: Recalc visible order and scrollbars when
20286         we add/remove nodes or sort.
20287         - Handle removing the selected and the top node properly.
20288
20289 2006-05-23  Chris Toshok  <toshok@ximian.com>
20290
20291         * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
20292         maybe this should actually happen in the datagrid code?
20293         (EndEdit): no need to invalidate anything, given that
20294         ReleaseHostedControl causes the datagrid to relayout, which
20295         invalidates everything anyway.
20296
20297         * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
20298         in SetCurrentCell).
20299         (set_SelectionBackColor): call InvalidateSelection instead of
20300         Refresh.
20301         (set_SelectionForeColor): same.
20302         (BeginEdit): Flesh this out a bit.
20303         (CancelEditing): only do any of this if we're editing/adding.
20304         (EndEdit): same.
20305         (OnMouseDown): there's no need to cancel editing here, it's done
20306         in SetCurrentCell.
20307         (SetCurrentCell): only invalidate the current row header if it's a
20308         different row than the new one.
20309         (ShiftSelection): fix this to work like MS does.
20310         (ResetSelection): factor out the invalidation of selected_rows to
20311         InvalidateSelection.
20312         (SetDataSource): cancel any editing that's going on.
20313
20314         * DataGridColumnStyle.cs
20315         (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
20316         call the non-interface version.
20317
20318         * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
20319         header rectangle with the clip rectangle so we don't redraw the
20320         entire header for just a small area.  Gets rid of the last flicker
20321         when horizontally scrolling.
20322         (DataGridPaintRow): same.
20323
20324 2006-05-23  Mike Kestner  <mkestner@novell.com>
20325
20326         * ListViewItem.cs: remove size for line hack from LargeIcon layout.
20327         * ThemeWin32Classic.cs: don't draw line.  it's really the top of a
20328         poorly placed checkbox on the MS control.  Fixes Alex's unfiled
20329         Critical bug report.
20330
20331 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
20332
20333         * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
20334           and this fixes #78493
20335
20336 2006-05-23  Miguel de Icaza  <miguel@novell.com>
20337
20338         * Theme.cs (GetSizedResourceImage): Scale images if the proper
20339         size is not found.  
20340         
20341         * FileDialog.cs: Do not change the background for the side bar as
20342         it wont work nicely with the theme, and also reduces the artifacts
20343         in rendering the icons (which I want to fix too).
20344
20345         * MimeIcon.cs (ResourceImageLoader): Load images from assembly
20346         resources, not resgen resources. 
20347
20348         (PlatformDefaultHandler): Pull images using the new API.
20349
20350 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
20351
20352         * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
20353           a reference to the hwnd and will not remove it unless there are
20354           no pending exposures (fixes #78341)
20355         * XplatUI.cs: Improved debug
20356
20357 2006-05-23  Atsushi Enomoto  <atsushi@ximian.com>
20358
20359         * MenuAPI.cs : don't handle OnClick event when it was not the left
20360           button. Fixed bug #78487.
20361
20362 2006-05-23  Mike Kestner  <mkestner@novell.com>
20363
20364         * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
20365         prefer submenus to the top menu for item lookup, to avoid popping down
20366         top-row items.
20367
20368 2006-05-23  Alexander Olk  <alex.olk@googlemail.com>
20369
20370         * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
20371           Graphics.FillRectangle as the visual results are really bad (even
20372           on win). We now draw perfect arrows (and perfect shadows when the
20373           scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
20374           Pen.DashPattern to draw the dots of each line.
20375
20376 2006-05-22  Alexander Olk  <alex.olk@googlemail.com>
20377
20378         * FileDialog.cs: Update the filename combobox when navigating through
20379           the ListView with the cursor keys. Fixes part 7 of bug #78446.
20380
20381 2006-05-22  Mike Kestner  <mkestner@novell.com>
20382
20383         * ListView.cs: raise SelectedIndexChanged on keyboard selection.
20384         Fixes #78463.
20385
20386 2006-05-22  Mike Kestner  <mkestner@novell.com>
20387
20388         * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
20389         requests. Fix a misspelled parameter and a copy paste exception error
20390         in Select.
20391
20392 2006-05-22  Peter Dennis Bartok  <pbartok@novell.com> 
20393
20394         * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
20395           to get the same width/height (5/13) on X11 as the default font has on
20396           win32. This means that our DefaultFont emSize is smaller than the 
20397           the MS SWF equivalent (even thought the width/height stays the same)
20398
20399 2006-05-20  Jackson Harper  <jackson@ximian.com>
20400
20401         * MdiClient.cs:
20402         * MdiWindowManager.cs:
20403         * InternalWindowManager.cs: Make sure to use the border width from
20404         the theme.
20405
20406 2006-05-20  Jordi Mas i Hernandez <jordimash@gmail.com>
20407
20408         * PrintDialog.cs: Implements printer details
20409
20410 2006-05-19  Alexander Olk  <alex.olk@googlemail.com>
20411
20412         * FileDialog.cs: Added focus handling for PopupButtonPanel.
20413           Fixes part 1 and 2 of bug #78446
20414
20415 2006-05-19  Peter Dennis Bartok  <pbartok@novell.com> 
20416
20417         * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
20418           instead of sticking to the first ever calculated value
20419
20420 2006-05-19  Mike Kestner  <mkestner@novell.com>
20421
20422         * ComboBox.cs: fix mouse motion selection to use MousePosition and
20423         PointToClient, since Capture is set. Fixes #78344.
20424
20425 2006-05-19  Mike Kestner  <mkestner@novell.com>
20426
20427         * ListView.cs: match MS behavior in Details view where items are not
20428         drawn if Columns.Count == 0. 
20429         * ThemeWin32Classic.cs: only highlight ListView selection if focused.
20430         Use a separate pen to draw the check, since changing the width affects
20431         the box as well.  Fixes #78454.
20432
20433 2006-05-18  Miguel de Icaza  <miguel@novell.com>
20434
20435         * ListView.cs: ArgumentOutOfRangeException, single versions of the
20436         exception should throw the name of the invalid argument.
20437
20438         * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
20439         there are no files listed. 
20440
20441 2006-05-18  Jackson Harper  <jackson@ximian.com>
20442
20443         * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
20444         up.
20445
20446 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
20447
20448         * Control.cs: Brought back our old UpdateZOrder method as a private
20449           function and switched our calls from UpdateZOrder to the new one.
20450           This fixes the Paint.Net canvas disappearing bug.
20451
20452 2006-05-18  Jackson Harper  <jackson@ximian.com>
20453
20454         * Theme.cs:
20455         * ThemeWin32Classic.cs:
20456         * InternalWindowManager.cs: Move the drawing into the theme,
20457         expose everything the theme should need from the window manager.
20458
20459 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
20460
20461         * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value 
20462           from the call to NativeWindow to avoid walking up the parent chain
20463           further than needed (speeds up setting cursors and avoids setting
20464           the wrong cursor if a parent has another cursor defined)
20465         * Cursor.cs: When loading an icon as cursor, MS uses the center of
20466           the icon as hotspot, not what's contained as hotspot in the icon
20467           file. This fixes the perceived drawing offset seen with Paint.Net
20468         
20469 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
20470
20471         * XplatUIX11.cs: 
20472           - Store the calculated rectangle in Hwnd object and use it when 
20473             setting the client size
20474           - Force Toolwindows to always be type Dock, to ensure they're on top
20475
20476 2006-05-18  Mike Kestner  <mkestner@novell.com>
20477
20478         * ComboBox.cs: first pass at ComboBox rework.  Layout is more
20479         consistent with MS positioning.  IntegralHeight, ItemHeight, Sizing.
20480         Correctly initialize textcontrol and ListBox on DropDownStyle changes. 
20481         Substantial refactoring to remove confusing nested classes. Coding
20482         standard and Get+Set->property refactorings.  Shift to index based
20483         highlighting in ComboListBox instead of constantly using IndexOf and
20484         Items[]. Add invalidations on resize for DropDownList to fix ugliness
20485         in FileDialog growth.  Draw borders manually since Simple mode needs
20486         to look like two independent controls.  Make listbox border
20487         conditional to DropDownStyle.  Improved OwnerDraw support.
20488
20489 2006-05-18  Sebastien Pouliot  <sebastien@ximian.com>
20490
20491         * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor. 
20492         Don't set the disposed graphics to null, so we can throw the "right"
20493         exception if the graphics is reused later (added a flag to avoid 
20494         double disposing). Some behaviours are different under 2.0 and are
20495         filled under bug #78448.
20496
20497 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
20498
20499         * Control.cs: When double-buffering is enabled, we need to reset
20500           our graphics context between paint calls. Otherwise, any 
20501           transformations and other alterations on the context will 
20502           become cumulative (#77734)
20503
20504 2006-05-18  Mike Kestner  <mkestner@novell.com>
20505
20506         * ListView.cs: do focused item selection like MS on clicks. 
20507         Rework focus handling for ItemControl so LostFocus invalidates as
20508         well.
20509         * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
20510         the ListView ItemControl has focus.
20511
20512 2006-05-17  Peter Dennis Bartok  <pbartok@novell.com>
20513
20514         * XplatUIX11.cs: If client_window ends up being width or height zero
20515           due to border settings, move it off window inside whole_window (#78433)
20516
20517 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
20518
20519         * Mime.cs: Shrink the mime file cache correctly.
20520
20521 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
20522
20523         * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
20524
20525 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
20526
20527         * XplatUIX11.cs (AddExpose): More sanity checks
20528
20529 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
20530
20531         * XplatUIX11.cs:
20532           - AddExpose: Don't add expose ranges outside the size of our
20533             window
20534           - Cast opacity values to Int32 to avoid crashes with certain
20535             values
20536           - Added disabled code paths that protect against illegal cross-
20537             thread painting (Developers.exe)
20538
20539 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
20540
20541         * ProgressBar.cs: Invalidate the control when it's resized
20542           since block size is based on control size. (#78388)
20543
20544 2006-05-16  Miguel de Icaza  <miguel@novell.com>
20545
20546         * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
20547         of setting the incoming argument to the "reset" value, we set the
20548         this.datamember to string.empty (before we were invalidating the
20549         incoming data).   
20550
20551         Fixes 78420
20552
20553 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
20554
20555         * Form.cs: Only apply transparency settings after the form
20556           is created. (Fixes #77800)
20557
20558 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
20559
20560         * ApplicationContext.cs: Grab the HandleDestroyed event so
20561           we know when to fire OnMainFormClosed 
20562
20563 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
20564
20565         * Application.cs: Introduced sub-class to allow tracking of
20566           threads and centralized triggering of the event mess for
20567           ThreadExit, AppExit, etc..  (#76156)
20568
20569 2006-05-16  Alexander Olk  <alex.olk@googlemail.com>
20570
20571         * MimeIcon.cs:
20572           - Do not return a null icon index value for a mime subclass.
20573             Instead try the main mime type class too.
20574           - Seems that some newer distributions don't have a link to some
20575             gnome default icons anymore. So check the default gnome dir too.
20576           
20577
20578 2006-05-16  Jackson Harper  <jackson@ximian.com>
20579
20580         * MdiClient.cs: Don't paint the parent background image if we have
20581         our own background image.
20582
20583 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
20584
20585         * Control.cs:
20586           - PerformLayout: Do not shrink space filled by DockStyle.Fill
20587             controls, all filled controls are supposed to overlap (#78080)
20588           - UpdateZOrder is supposed to update the control's z-order in the
20589             parent's z-order chain. Fixed to behave like that
20590           - BringToFront: Removed obsolete code
20591           - SendToBack: Simplyfied
20592           - SetChildIndex: Trigger layout calculations when Z-order changes
20593             since layout is done by z-order
20594
20595 2006-05-16  Chris Toshok  <toshok@ximian.com>
20596
20597         [ fixes bug #78410 ]
20598         * DataGrid.cs (set_AlternatingBackColor): use
20599         grid_drawing.InvalidateCells instead of Refresh().
20600         (set_BackColor): call grid_drawing.InvalidateCells.
20601         (set_BackgroundColor): use Invalidate instead of Refresh.
20602
20603         * DataGridDrawingLogic.cs (InvalidateCells): new function, just
20604         invalidate the cell area.
20605
20606 2006-05-15  Chris Toshok  <toshok@ximian.com>
20607
20608         [ fixes bug #78011 ]
20609         * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
20610         on to DataGridPaintRow.
20611         (DataGridPaintRow): take a clip argument, and only draw the cells
20612         which intersect it.  same with the not_usedarea.
20613
20614         * Theme.cs (DataGridPaintRow) add @clip parameter.
20615
20616         * DataGrid.cs (ScrollToColumnInPixels): simplify, use
20617         XplatUI.ScrollWindow.
20618         (ScrollToRow): same.
20619
20620         * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
20621         with last column which was causing a gray swath to appear with the
20622         XplatUI.ScrollWindow code.
20623
20624 2006-05-15  Chris Toshok  <toshok@ximian.com>
20625
20626         * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
20627         use XplatUI.ScrollWindow.
20628         (VerticalScrollEvent): use XplatUI.ScrollWindow.
20629
20630 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com> 
20631
20632         * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
20633
20634 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
20635
20636         * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
20637           file since there are no equivalent X11 cursors
20638
20639 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
20640
20641         * MonthCalendar.cs : DateTimePicker should reflect selected date
20642           on mouse*up*, not mouse*down*. Fixed originally reported part of
20643           bug #76474.
20644
20645 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
20646
20647         * TabControl.cs : When argument index is equal or more than tab
20648           count, just ignore. Fixed bug #78395.
20649
20650 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
20651
20652         * Control.cs: Dispose all child controls when control is diposed (#78394)
20653
20654 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
20655
20656         * ColorDialog.cs: Finally it is possible to select the color with
20657           the text boxes
20658
20659 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
20660
20661         * PrintDialog.cs: Fix typo
20662
20663 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
20664
20665         * PrintDialog.cs: PrintDialog is not resizable
20666         * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
20667           color. Made some ToolBar drawing methods protected virtual.
20668
20669 2006-05-13  Jordi Mas i Hernandez <jordimash@gmail.com>
20670
20671         * PrintDialog.cs: Implementation of the PrintDialog
20672
20673 2006-05-12  Chris Toshok  <toshok@ximian.com>
20674
20675         * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
20676         thumb, instead use MoveThumb.  This has the side effect of making
20677         most of the other thumb moving machinery use MoveThumb as well.
20678         (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
20679         need to actually invalidate the rectangle where the new thumb will
20680         go.
20681         (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
20682         We force an Update() after, so it's not as fast as it could be,
20683         but at least there's zero flicker and no droppings.
20684         (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
20685         (UpdateThumbPos): add another argument (dirty), which says whether
20686         or not to calculate/add dirty regions which we later invalidate.
20687         For cases where we know we're going to use MoveThumb, we pass
20688         false for this.  Otherwise, pass true.
20689
20690 2006-05-12  Jackson Harper  <jackson@ximian.com>
20691
20692         * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
20693         the status bar.
20694         
20695 2006-05-12  Peter Dennis Bartok  <pbartok@novell.com>
20696
20697         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
20698           and GetClipRegion methods and UserClipWontExposeParent property.
20699         * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
20700           overriding UserClipWontExposeParent property, setting to false, since
20701           Win32 handles the required expose messages to draw our clipped parent
20702           areas internally
20703         * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
20704           PaintEventStart to set the user clip region if set.
20705         * Control.cs: 
20706           - Now internally tracking the Region for the control since we need to
20707             store it if the handle is not yet created and only set it when it
20708             becomes created. Before setting the region forced handle creation
20709           - Added code to draw the parents underneath a user-clipped region
20710         * Hwnd.cs: Added UserClip property
20711
20712 2006-05-12  Chris Toshok  <toshok@ximian.com>
20713
20714         * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
20715         (set_Maximum): same.
20716         (set_Minimum): same.
20717         (set_SmallChange): same.
20718         (OnMouseUpSB): remove the call to refresh when releasing the
20719         thumb.  We shouldn't need it.
20720         
20721 2006-05-12  Miguel de Icaza  <miguel@novell.com>
20722
20723         * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
20724         AutoSize set to None, we do not need to relayout everything, we
20725         just need to invalidate the current region.
20726
20727         (Draw): Do not draw the entire ClientArea, just redraw the
20728         clip area being passed.
20729
20730         * MdiClient.cs: Make MdiClient constructor with the Form argument
20731         internal. 
20732
20733 2006-05-12  Jackson Harper  <jackson@ximian.com>
20734
20735         * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
20736         parents background image,  but strangely not their own.
20737         - (DrawStatusBarPanel): Take into account horizontal alignment
20738         when drawing the strings and icons.
20739
20740 2006-05-12  Mike Kestner  <mkestner@novell.com>
20741
20742         * ListBox.cs: avoid invalidations for focus when the collection is
20743         empty. 
20744
20745 2006-05-12  Chris Toshok  <toshok@ximian.com>
20746
20747         * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
20748         invalidate the entire thumb area.  Call InvalidateDirty which
20749         limits the redraw to the thumb itself and surrounding pixels.
20750
20751         * XplatUIX11.cs (ScrollWindow): optimize copying.
20752         
20753 2006-05-12  Chris Toshok  <toshok@ximian.com>
20754
20755         * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
20756         Figure out the positioning/layout in a single pass instead of
20757         multiple recursive invocations.  Speeds up the initial display of
20758         the data grid.  Also, make many things private that were
20759         originally public but unused outside this class.
20760
20761 2006-05-11  Jackson Harper  <jackson@ximian.com>
20762
20763         * MdiClient.cs: Improved layout code.
20764
20765 2006-05-11  Jonathan Chambers  <jonathan.chambers@ansys.com>
20766
20767         * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
20768           not SelectedObject.
20769
20770 2006-05-11  Chris Toshok  <toshok@ximian.com>
20771
20772         * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
20773         union of that will always be {0,0,width,height}.
20774
20775 2006-05-11  Jackson Harper  <jackson@ximian.com>
20776
20777         * Form.cs: Match MS's DefaultSize for forms (they must have
20778         changed the size in sp2).
20779
20780 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
20781
20782         * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
20783
20784 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
20785
20786         * TextControl.cs : Fixed bug #78109. This incorrect position
20787           comparison caused crash on automatic line split.
20788         * TextBoxBase.cs : reduce duplicate code.
20789
20790 2006-05-10  Jackson Harper  <jackson@ximian.com>
20791
20792         * MdiClient.cs: Active form is only sent to the back when using
20793         the Next form functionality, when a form is clicked the current
20794         active shouldn't be sent to the back.
20795         - Layout the mdi windows when the container is first made visible.
20796         * Form.cs: Give the MdiClient a ref to the containing form when we
20797         create it.
20798         
20799 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
20800
20801         * LinkLabel.cs : link_font could be uninitialized, so populate one
20802           before actual use. Fixed bug #78340.
20803
20804 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
20805
20806         * XplatUIX11.cs : clipboard format native value is IntPtr.
20807           Fixed bug #78283.
20808
20809 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
20810
20811         * Control.cs: 
20812           - Instead of showing context menus directly we send WM_CONTEXTMENU, 
20813             which is passed up the parent chain by DefWndProc
20814           - We now handle WM_CONTEXTMENU to display any menu, or pass it 
20815             to DefWndProc (#77956)
20816         * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
20817
20818 2006-05-10  Jackson Harper  <jackson@ximian.com>
20819
20820         * MdiClient.cs: We need to remove the controls from the mdi
20821         collection, when we close the window.
20822         * MdiWindowManager.cs: Special handling of closing mdi windows.
20823         * InternalWindowManager.cs: Make the close method virtual so the
20824         mdi window manager can handle it specially.
20825
20826 2006-05-10  Jordi Mas i Hernandez <jordimash@gmail.com>
20827
20828         * DataGrid.cs:
20829           - Recalculate grid when the data source has changed
20830           - Matches styles provided by user from all data sources types
20831         * DataGridTableStyle.cs: For columns that provided by the user set the
20832         with the preferred value is there was unassigned.
20833         * CurrencyManager.cs: throw OnItemChanged event
20834
20835 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com> 
20836
20837         * PictureBox.cs: Don't animate until handle is created. Start animation
20838           when handle is created.
20839
20840 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
20841
20842         * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
20843           current codebase.
20844         * XEventQueue.cs: We don't need to provide the extra info
20845
20846 2006-05-10  Jackson Harper  <jackson@ximian.com>
20847
20848         * MdiClient.cs: If the mdi clients parent form has a background
20849         image set, we draw that background image for the mdi area's
20850         background.
20851
20852 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
20853
20854         * TextBoxBase.cs: Set IBeam cursor (#78347)
20855
20856 2006-05-10  Mike Kestner  <mkestner@novell.com>
20857
20858         * ToolBar.cs: fix some text padding issues with ButtonSize
20859         calculation. Update the default size to match MS documentation.
20860         * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
20861         button size. Fixes #78296.
20862
20863 2006-05-10  Mike Kestner  <mkestner@novell.com>
20864
20865         * ListBox.cs: use is_visible for scrollbar positioning in case the
20866         control isn't on screen yet.  Fix off by one with Right vs Width
20867         usage.  Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
20868         
20869 2006-05-10  Jackson Harper  <jackson@ximian.com>
20870
20871         * X11Dnd.cs: Drop to a control with another control on top of it.
20872         * ToolBar.cs: Work on a copy of the buttons list, so that it can
20873         be modified in click handlers. TODO: Look for similar problems in
20874         other controls.
20875
20876 2006-05-09  Jackson Harper  <jackson@ximian.com>
20877
20878         * Form.cs: Window managers need the old window state when setting
20879         window state now.
20880         * InternalWindowManager.cs: Allow the base mdi window manager to
20881         handle more of the MDI only stuff (like maximize buttons).
20882         * MdiWindowManager.cs: Fix some snafus in changing the window
20883         state.  Add all the menu functionality, for both popup and
20884         maximized menus.
20885         * MdiClient.cs: When a new form is selected the currently
20886         activated form is sent to the back, this matches MS.
20887         - Implement a new method to activate the next mdi child window.
20888
20889 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com>
20890
20891         * Control.cs: 
20892           - Added new InternalCapture method to allow controls to prevent
20893             the capture behaviour on the click handlers
20894           - Switched to use InternalCapture
20895         * ComboBox.cs:
20896           - Using InternalCapture to prevent mouse captures from being released
20897             on mouse button release (Fixes #78100)
20898         * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
20899           returns Form borders if a caption is present. (Fixes #78310)
20900
20901 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com> 
20902
20903         * TreeNode.cs: Changed serialization .ctor to not require every field
20904           to be present. (#78265)
20905         * OwnerDrawPropertyBag.cs: Added serialization .ctor
20906
20907 2006-05-05  Alexander Olk  <alex.olk@googlemail.com>
20908
20909         * MimeIcon.cs: for is faster than foreach for strings.
20910
20911 2006-05-05  Mike Kestner  <mkestner@novell.com>
20912
20913         * CheckedListBox.cs: update check handling code to not use selected.
20914         * ListBox.cs: rewrite of mouse selection handling to correspond to MS
20915         behavior for visual feedback, motion response, shift/ctrl handling,
20916         and properly deal with all 4 selection modes. Updates to bounds
20917         handling logic.  Add scroll wheel support. [Fixes #77842]
20918
20919 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
20920
20921         * ListView.cs:
20922           - Moved adding of Implicit controls into .ctor. That way, subsequent
20923             creation of the controls will not cause them to think they are 
20924             toplevel windows (fixes #78200 header problem)
20925           - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
20926           - Switched visibility setting of header control to use internal field
20927             to avoid triggering handle creation
20928           - Now checking if handle is created before causing a refresh when items
20929             are added (This makes us now match handle creation time with MS)
20930         * Splitter.cs: Removed loading of private splitter cursor, switched to
20931           Cursors version now that that is loading the right ones
20932         * Cursors.cs: Load proper splitter cursors from resources
20933         * Cursor.cs: Added second method of loading resource cursors for the 
20934           VS.Net users amongst us
20935
20936 2006-05-05  Mike Kestner  <mkestner@novell.com>
20937
20938         * ListView.cs: give header_control a minimum size based on the
20939         ListView size.
20940
20941 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
20942
20943         * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
20944           window seems to do that with metacity, so set that type. (#78120)
20945
20946 2006-05-05  Mike Kestner  <mkestner@novell.com>
20947
20948         * ListViewItem.cs: fix Details mode checkbox layout bug.
20949         * ThemeWin32Classic.cs: draw a ListView column header for unused space
20950         at the end of the header, if it exists. [Fixes for #78200]
20951
20952 2006-05-04  Jackson Harper  <jackson@ximian.com>
20953
20954         * MdiClient.cs: Add a helper property to get the container form.
20955         * MdiWindowManager.cs: We have to make sure to use the menu origin
20956         when drawing the icons and buttons, this fixes maximized window
20957         icons/buttons on win32.
20958         * InternalWindowManager.cs: Reset the restore captions when a
20959         window goes from Maximized to Minimized and vice versa. Move the
20960         DrawMaximizedButtons into the MdiWindowManager source, tool
20961         windows can't be maximized. NOTE: This could use a little
20962         refactoring if time ever permits.
20963         
20964 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
20965
20966         * TextBox.cs: Add MWFCategoryAttributes
20967         * TextBoxBase.cs: Add MWFCategoryAttributes
20968         * Form.cs: Add MWFCategoryAttributes
20969
20970 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
20971
20972         * Control.cs: Add MWFCategoryAttributes
20973         * ScrollableControl.cs: Add MWFCategoryAttributes
20974
20975 2006-05-03  Alexander Olk  <alex.olk@googlemail.com>
20976
20977         * ThemeWin32Classic.cs: Draw the ToolBar top border only if
20978           Divider is true. Fix a little glitch in PropertyToolBar
20979           drawing code
20980
20981 2006-05-02  Peter Dennis Bartok  <pbartok@novell.com> 
20982
20983         * Control.cs:
20984           - Dispose: Call base.Dispose, this causes the disposed event
20985             to be fired (and probably other, more important stuff)
20986           - SetVisibleCore: Set is_visible to true after creating the
20987             window so that the window still gets created invisible (if
20988             WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
20989             to generate a WM_ACTIVE message
20990         * Form.cs: Call Dispose when we want to destroy the window, instead of
20991           just destroying the handle (Dispose will do that for us)
20992         * XplatUIX11.cs:
20993           - RootWindow also needs a queue, so we can properly process the
20994             property change events from RootWindow (like Activate)
20995           - Generatic synthetic WM_ACTIVE message when the active window is
20996             being destroyed
20997
20998 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
20999
21000         * LinkLabel.cs: Trigger a recalc of our label dimensions when
21001           bounds are changed
21002
21003 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com>
21004
21005         * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
21006           for determining width and height (image might not be assigned if
21007           we're drawing an imagelist)
21008
21009 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
21010
21011         * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
21012         * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
21013           height from system
21014         * Theme.cs: No longer returns hardcoded menu height, instead calls
21015           new driver method
21016         * Form.cs (OnLoad): Scaling happens before triggering Load events 
21017           on MS (# 78257)
21018
21019 2006-05-01  Mike Kestner  <mkestner@novell.com>
21020
21021         * MenuItem.cs: fix NRE for text == null.  Fixes #78250.
21022
21023 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com> 
21024
21025         * TextBoxBase.cs: Removed Fixme
21026         * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
21027
21028 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com>
21029
21030         * XplatUIX11.cs:
21031           - ScrollWindow: We were passing hwnd.ClientRectangle which returns
21032             the rectangle relative to the parent, considering borders. We
21033             don't really want that.
21034           - ScrollWindow: Fixed warning to be more understandable
21035         * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
21036           scrollbars and scroll only the visible area
21037         * RichTextBox.cs: Removed debug output
21038
21039 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
21040
21041         * NumericUpDown.cs (Text): Just use base
21042         * UpDownBase.cs: Ensure txtView is created before using it
21043
21044 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
21045
21046         * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
21047           casting to IntPtr to avoid 64bit overflow errors
21048
21049 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
21050
21051         * Control.cs:
21052           - AllowDrop: Don't force handle creation.
21053           - CreateHandle: Added call to tell driver if we're allowed to drop
21054
21055 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
21056
21057         * FileDialog.cs: Remember the last directory not only for the
21058           current instance but also for new FileDialog instances.
21059
21060 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
21061         
21062         * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
21063           broke sending async messages
21064
21065 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
21066
21067         * XplatUIX11.cs:
21068           - ScrollWindow: Fixed method. We finally generate expose events again
21069             for scrolled areas. This was causing 'garbage' when scrolling
21070             textbox and other controls that used ScrollWindow
21071           - Switched from using the regular queue for paint events to the MS 
21072             model of 'generating' paint events when the queue is empty.
21073             We use the new XQueueEvent.Paint subclass to store which windows
21074             need painting.
21075           - AddExpose now takes the x/y/width/height of the exposed area
21076             and inserts the window into the paint queue if not already there
21077           - InvalidateWholeWindow: Switched to use new AddExpose method
21078           - UpdateMessageQueue: Added which queue to monitor for paint events
21079           - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
21080             the unlikely case nothing above handles it. We reset the expose
21081             pending states to get them off the queue.
21082           - GetMessage: Now pulls a paint event if no other events are in the
21083             queue
21084           - Invalidate: Switched to new AddExpose method
21085           - PeekMessage: Updated to understand pending paint events
21086           - UpdateWindow: Fixed logic bug. We were only updating if the window
21087             didn't need updating. Also switched to sending WM_PAINT directly,
21088             like MS does.
21089         * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
21090           and random access Remove(). The random access is needed to handle
21091           UpdateWindow() where a WM_PAINT is sent directly without accessing
21092           the queue.
21093         * ScrollBar.cs: Added Update() calls to cause immediate updates to
21094           allow for better feedback when scrolling. Scrollbars are small and
21095           the immediate update should make it 'feel' more responsive without
21096           slowing things down. ScrollBar still needs it's invaliate logic
21097           updated to not always invalidate the whole bar on certain changes.
21098
21099 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21100
21101         * Control.cs:
21102         (BackColor): if the control does not support a transparent background,
21103         return the default backcolor when the parent backcolor is transparent.
21104
21105 2006-04-28  Peter Dennis Bartok  <pbartok@novell.com>
21106
21107         * Application.cs: Updated to new StartLoop/GetMessage API
21108         * RichTextBox.cs: Provide some output on RTF parsing errors
21109         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
21110           new queue_id argument to GetMessage and PeekMessage to allow faster
21111           handling of per-thread queues in drivers.
21112         * Hwnd.cs: Added Queue tracking and property
21113         * MenuAPI.cs: Updated to new StartLoop/GetMessage API
21114         * XEventQueue.cs: Added thread trackingA
21115         * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
21116         * XplatUIX11.cs:
21117           - Implemented new per-thread queue
21118           - GetMessage: Fixed return/break behaviour on several cases. We were
21119             returning stale messages in some cases, instead of just processing
21120             the next message
21121
21122 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
21123
21124         * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
21125
21126 2006-04-27  Peter Dennis Bartok  <pbartok@novell.com>
21127
21128         * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
21129           fixed off-by-one comparisons between Width/Height and Right/Bottom.
21130
21131 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
21132
21133         * PropertyGridView.cs: Fix drop down width.
21134
21135 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
21136
21137         * ThemeWin32Classic.cs: Peter thinks that three additional lines are
21138           a mess in DrawToolBar, so I removed one of them.
21139
21140 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
21141
21142         * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
21143           needed (clip). Otherwise we get artifacts.
21144
21145 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
21146
21147         * FixedSizeTextBox.cs: Added constructor to allow specifying which
21148           dimension is fixed
21149         * UpDownBase.cs: Set the spinner control to be fixed height vertical,
21150           and switched FixedSizeTextBox to only be fixed vertical (#78116)
21151         * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
21152           if it matches the scale base font (avoids unneeded scaling)
21153
21154 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
21155
21156         * X11DesktopColors.cs: One gtk_init_check should be enough
21157
21158 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com> 
21159
21160         * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
21161           match MS behaviour
21162
21163 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
21164
21165         * TextBoxBase.cs: 
21166           - Generate OnTextChanged for Backspace even if we're only deleting
21167             the current selection
21168           - When setting the Text property, only select all text if the
21169             control does not have focus when it is being set. Otherwise
21170             just place the cursor at the beginning of the control
21171
21172 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
21173
21174         * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
21175           Added a little helper to draw PropertyGrid ToolBar with a different
21176           border and a different BackColor.
21177         * PropertyGrid.cs: Some background parts didn't get painted with the
21178           correct background color. Added a class that helps us to draw the
21179           correct border for PropertyGridView and a class that helps us to
21180           draw ToolBars with a different backcolor
21181         * PropertyGridView.cs: Draw PlusMinus with the correct colors.
21182
21183 2006-04-25  Jonathan Chambers  <jonathan.chambers@ansys.com>
21184
21185         * PropertyGrid.cs: Bug 78196, font size, and splitter location.
21186         * PropertyGridView.cs: Bug 78196, font size, and splitter location.
21187
21188 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
21189
21190         * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
21191           into the palette entries. Also, since we're working on a copy
21192           we needed to copy the palette back onto the bitmap.
21193         * Cursor.cs: Same fix as XplatUIWin32.cs.
21194
21195 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com>
21196
21197         * ImageListStreamer.cs: Need to read the var (or we're off)
21198
21199 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
21200
21201         * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs, 
21202           XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
21203           TextBoxBase.cs: Unused var fixes
21204         * AxHost.cs: Small 2.0 fix
21205         * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms 
21206           as it seems that is what at least Metacity expects. This will make
21207           icons show up on 64bit platforms. We still have some 64bit size
21208           issues, though, since the startup app window size still won't match.
21209
21210 2006-04-25  Mike Kestner  <mkestner@novell.com>
21211
21212         * *.cs: cleanup newly reported exception var unused warnings.
21213
21214 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
21215
21216         * ThemeWin32Classic.cs: Button image alignment now matches exactly
21217           ms
21218
21219 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
21220
21221         * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
21222           image. The image position is always the same, no matter if the
21223           button is pressed or not.
21224
21225 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
21226
21227         * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
21228           selection and set the correct filename for SaveFileDialog.
21229           Patch by Emery Conrad.
21230
21231 2006-04-24  Mike Kestner  <mkestner@novell.com>
21232
21233         * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
21234         check for item.X outside the ClientRect instead of item.Y. Fixes
21235         #78151.
21236
21237 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21238
21239         * ImageListStreamer.cs: some images store a wrong grow factor, so don't
21240         trust that value blindly and do some sanity check. Fixes bug #77814.
21241
21242 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21243
21244         * ImageListStreamer.cs: save the mask as a 1bpp image.
21245
21246 2006-04-21  Mike Kestner  <mkestner@novell.com>
21247
21248         * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
21249         pass Checked and Indeterminate to the Theme Engine. Improve
21250         encapsulation with ListBox.
21251         * ListBox.cs: Keep a StringFormat instead of calculating it every item
21252         draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
21253         nested types.  Move all CheckState functionality to CheckedListBox.
21254         Make IntegralHeight work like MS.  Rewrite of Layout engine.  Fix
21255         OwnerDrawVariable layout/rendering.  Fix multicolumn rendering.  Fix
21256         ScrollAlwaysVisible handling. Refactor "selected" collections to use a
21257         single base list. Fix scrollbar sizing and placement to mirror MS.
21258         * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
21259         used.
21260         * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
21261         for CheckedListBox by using new DrawItemState info.  Center the
21262         checkboxes on the items. Use new StringFormat property.
21263
21264 2006-04-18  Jackson Harper  <jackson@ximian.com>
21265
21266         * Form.cs: MdiChildren don't do default locations the same way as
21267         regular forms.  This prevents a crash when trying to position the
21268         mdi windows.
21269
21270 2006-04-17  Jonathan Chambers  <jonathan.chambers@ansys.com>
21271
21272         * PropertyGridTextBox.cs: Formatting, copyright
21273         * PropertiesTab.cs: Formatting
21274         * PropertyGrid.cs: Formatting
21275         * PropertyGridView.cs: Formatting, fix drop down, enabled double 
21276           click toggling of values
21277           
21278 2006-04-17  Peter Dennis Bartok  <pbartok@novell.com> 
21279
21280         * KeyPressEventArgs: Added 2.0 only setter for KeyChar
21281         * Control.cs (.ctor): verify_thread_handle is static, don't reset
21282           every time a control is created
21283         * Application.cs: Removed obsolete EnableRTLMirroring method
21284
21285 2006-04-18  Gert Driesen  <drieseng@users.sourceforge.net>
21286
21287         * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
21288         SelectedIndex to -1. Fixes bug #78121.
21289
21290 2006-04-17  Jackson Harper  <jackson@ximian.com>
21291
21292         * Binding.cs: Handle null values for Current and BindingContext.
21293         This occurs when binding is a little delayed.
21294         * CurrencyManager.cs: return null for Current when there are no
21295         items in the list.
21296         - Hookup to the listchanged event on the DataView and update
21297         bindings when the list is changed.  This fixes late binding of
21298         controls.
21299
21300 2006-04-17  Jackson Harper  <jackson@ximian.com>
21301
21302         * X11Dnd.cs:
21303         * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
21304         Ringenbach.
21305
21306 2006-04-15  Alexander Olk  <alex.olk@googlemail.com>
21307
21308         * ThemeWin32Classic.cs: Draw disabled combo button in the correct
21309           place
21310         * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
21311           with the correct ButtonState
21312
21313 2006-04-14  Peter Dennis Bartok  <pbartok@novell.com>
21314
21315         * XplatUIX11.cs: Improved distinguishing between window types to
21316           tell the WM a type closer to what the app wants (Fixes #78107)
21317
21318 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
21319
21320         * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
21321           GrabHandle
21322
21323 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
21324
21325         * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
21326           drawing code to reflect the size grip changes
21327
21328 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21329
21330         * ImageListStreamer.cs: fix handling of the mask that follows the main
21331         bitmap when deserializing and serialize it properly. The generated mask
21332         should better be a 1bpp image, but I'll do that later.
21333
21334 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
21335
21336         * FileDialog.cs: Show something in the DirComboBox on *nix if the
21337           path doesn't fit into some of our Current.Places
21338
21339 2006-04-13  Jackson Harper  <jackson@ximian.com>
21340
21341         * ComboBox.cs: Use borders instead of drawing our own decorations,
21342         try to obey correct rules for heights.
21343         * Theme.cs:
21344         * ThemeNice.cs:
21345         * ThemeClearLooks.cs:
21346         * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
21347         this is now handled by borders.
21348         - Remove unused DrawListBoxDecorationSize method.
21349         
21350 2006-04-13  Mike Kestner  <mkestner@novell.com>
21351
21352         * MenuAPI.cs: null guarding for the disbled click check fixes crash
21353         reported by Alex.
21354
21355 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
21356
21357         * ThemeWin32Classic.cs: 
21358           - Fixed CPDrawStringDisabled
21359           - Corrected drawing of disabled menu items
21360           - Fixed drawing of disabled radio buttons (bug #78095)
21361           - Draw check in a disabled CheckBox with color ControlDark 
21362
21363 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
21364
21365         * Form.cs: Use the provided width when calculating the menu size;
21366           when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
21367           and ClientSize.Width won't be updated yet
21368         * Application.cs: Use Visible instead of Show() to make form visible,
21369           this way we create the handle later and menusize is considered
21370
21371 2006-04-12  Mike Kestner  <mkestner@novell.com>
21372
21373         * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
21374         reporting.
21375
21376 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
21377
21378         * TextBox.cs: Implemented context menu
21379
21380 2006-04-12  Mike Kestner  <mkestner@novell.com>
21381
21382         * ListView.cs: implement box selection. fixes #77838.
21383         * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
21384
21385 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
21386
21387         * XplatUIX11.cs: Added setting of window type when transient window
21388           is created (metacity would move it otherwise)
21389         * X11Structs.cs: Added WINDOW_TYPE atoms
21390         * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
21391           background (the control is Opaque but still wants transparent
21392           backgrounds)
21393
21394 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
21395
21396         * Control.cs: Added OnPaintBackgroundInternal to allow controls
21397           that set Opaque but don't mean it (like all ButtonBase-derived
21398           controls) to still draw their background
21399         * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
21400           the background
21401
21402 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
21403
21404         * Control.cs (PaintControlBackground): Set the graphics object
21405           on our PaintEvent to null to prevent it from being disposed
21406           when the PaintEvent gets disposed
21407
21408 2006-04-12  Alexander Olk  <alex.olk@googlemail.com>
21409
21410         * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
21411         * ThemeNice.cs, ThemeClearlooks.cs: fix typo
21412
21413 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
21414
21415         * Control.cs: 
21416           - Added transparency check to BackColor property. Transparent
21417             backgrounds are only allowed if the control styles permit it
21418           - Added recursive painting of parent control background and
21419             foreground if a control with a transparent backcolor is drawn
21420             (Thanks to Tim Ringenback for providing his 'hack' as a base
21421              for this patch) Fixes #77985 and #78026.
21422           - Added Opaque style check before calling OnPaintBackground, no
21423             need to draw the background if the control is opaque
21424           - Removed ControlAccessibleObject owner variable (inherited from
21425             base, no need to define again)
21426           - Added some documentation links explaining the drawing events
21427             and styles
21428
21429 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
21430
21431         * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
21432           that the affected control is the located at the left border of our
21433           parent (Fixes #77936)
21434
21435 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
21436
21437         * TextBoxBase.cs: When rendering disabled or readonly controls,
21438           draw the background with 'Control' instead of 'Window' color as
21439           long as the user hasn't specifically set a color
21440
21441 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
21442
21443         * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
21444           since that won't be updated if the user types text (only if it's
21445           programatically set)
21446
21447 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
21448
21449         * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
21450           layout changes do to app-triggered resizes will have the proper
21451           display rectangle for layout
21452
21453 2006-04-11  Alexander Olk  <alex.olk@googlemail.com>
21454
21455         * ThemeWin32Classic.cs:
21456           - Make use of the SystemBrushes and SystemPens wherever possible
21457           - Corrected some highlight colors
21458           - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
21459             drawing
21460         * Theme.cs: Added Empty field to CPColor struct
21461
21462 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
21463
21464         * ScrollabeControl.cs: We need to consider whether or not a scrollbar
21465           is displayed when calculating the display rectangle. Thanks to Mike
21466           for teaching me the err of my ways.
21467
21468 2006-04-10  Peter Dennis Bartok  <pbartok@novell.com>
21469
21470         * ScrollableControl.cs:
21471           - Rewrote DisplayRectangle code, now returning the proper x/y coords 
21472             (instead of 0,0) and we now return the real width/height instead of
21473             just the clientrectangle, adjusted for padding. The rectangle is
21474             now cached and created by the new CalculateDisplayRectangle method.
21475           - Created new CalculateDisplayRectange method, which basically does
21476             what get_DisplayRectangle() did originally, but now using the 
21477             right edge instead of DisplayRectangle to determine the size of
21478             our scrollbars
21479           - get_Canvas(): Fixed it to properly calculate canvas for 
21480             right/bottom controls which seem to be placed to the right/bottom
21481             of any controls that have a fixed location
21482           - Removed TODO that's taken care of
21483           - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
21484             and SetDisplayRectLocation according to new MSDN2 docs
21485           - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
21486             event when that is called, this is added for compatibility
21487           - ScrollControlIntoView(): Implemented.
21488           - Switched scrollbars to be implicit, they shouldn't be selectable
21489         * ContainerControl: Now that ScrollControlIntoView is implemented, we 
21490           call it when the active control is set/changed
21491         * ScrollBar.cs: Added support for generating Win32 scrollbar messages
21492         * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
21493           implicit_control variable (used for native Win32 message generation)
21494         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new 
21495           HorizontalScrollBarHeight and VerticalScrollBarWidth properties
21496         * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
21497         * XplatUIStructs.cs: Added ScrollBarCommands enum
21498
21499 2006-04-10  Jackson Harper  <jackson@ximian.com>
21500
21501         * ButtonBase.cs:
21502         * CheckedListBox.cs:
21503         * ComboBox.cs:
21504         * DataGrid.cs:
21505         * DataGridView.cs:
21506         * Form.cs:
21507         * GroupBox.cs:
21508         * ListBox.cs:
21509         * PrintPreviewControl.cs:
21510         * ProgressBar.cs:
21511         * PropertyGrid.cs:
21512         * Splitter.cs:
21513         * StatusBar.cs:
21514         * TrackBar.cs:
21515         * UpDownBase.cs: Fixup base event overrides.
21516         
21517 2006-04-06  Mike Kestner  <mkestner@novell.com>
21518
21519         * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
21520         all user-initiated value changes to min <= value <= max-thumbsz+1.
21521         (set_Value): check for vert/horiz when calculating new thumb position.
21522         (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
21523         like MS does.
21524         (OnMouseMoveSB): refactor the thumb dragging code and refine
21525         invalidation logic to reduce flicker.
21526         (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
21527         (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
21528         (UpdateThumbPosition): small code readability cleanup
21529
21530 2006-04-10  Alexander Olk  <alex.olk@googlemail.com>
21531
21532         * ThemeNice.cs: Small UI polishing. Draw borders a little bit
21533           different
21534
21535 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
21536
21537         * ThemeNice.cs: Use a better graphics effect when a button is pressed
21538
21539 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
21540
21541         * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
21542         * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
21543           This dramatically reduces the number of Pen.Dispose calls. 
21544           Where possible call ResPool methods only once instead of calling it
21545           over and over again (for example for the same color).
21546
21547 2006-04-06  Mike Kestner  <mkestner@novell.com>
21548
21549         * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
21550         Also remove an unused private field on the collection. Fixes #77972.
21551
21552 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
21553
21554         * ThemeNice.cs: Added ToolBar drawing code
21555
21556 2006-04-06  Mike Kestner  <mkestner@novell.com>
21557
21558         * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
21559         I'm assuming that means we need to look up the toplevel for the
21560         provided control. Fixes the crash trace in #77911 but exposes another
21561         crash in some strange reflection usage in NDocGui.
21562
21563 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
21564
21565         * ThemeNice.cs: Gave it a little silver touch and added Images
21566           method
21567         * FontDialog.cs: FontDialog is not resizable
21568         * FileDialg.cs: Added SizeGripStyle.Show
21569
21570 2006-04-05  Jackson Harper  <jackson@ximian.com>
21571
21572         * KeyboardLayouts.cs: Remove warning.
21573
21574 2006-04-05  Jackson Harper  <jackson@ximian.com>
21575
21576         * Control.cs: Enable OnPaintInternal so we can use it for drawing
21577         all of our controls instead of Paint +=.
21578         * ListBox.cs:
21579         * ListView.cs:
21580         * MenuAPI.cs:
21581         * MessageBox.cs:
21582         * NotifyIcon.cs:
21583         * ProgressBar.cs:
21584         * ScrollBar.cs:
21585         * Splitter.cs:
21586         * StatusBar.cs:
21587         * TabControl.cs:
21588         * TextBoxBase.cs:
21589         * ToolBar.cs:
21590         * TrackBar.cs:
21591         * UpDownBase.cs:
21592         * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
21593         use OnPaintInternal. Remove Width/Height and Visible checks in
21594         paint handler, this is done at a higher level now.
21595         * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
21596         * PaintEventArgs.cs: Add a handled flag so controls that don't
21597         want anymore painting after OnPaintInternal can make sure OnPaint
21598         isn't called.
21599
21600 2006-04-05  Mike Kestner  <mkestner@novell.com>
21601
21602         * Form.cs: fix the menu WndProc hacks to respect the native enabled
21603         state of the form, so that we don't process events when Modal dialogs
21604         are up. Fixes #77922.
21605
21606 2006-04-05  Alexander Olk  <alex.olk@googlemail.com>
21607
21608         * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
21609           checking is done.
21610
21611 2006-04-05  Mike Kestner  <mkestner@novell.com>
21612
21613         * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
21614
21615 2006-04-05  Mike Kestner  <mkestner@novell.com>
21616
21617         * ListView.cs (HeaderMouseMove): null guarding for the over column
21618         when setting up the drag_to_index.  Fixes #78015.
21619
21620 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com>
21621
21622         * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
21623           in the taskbar. Transient windows seem to accomplish that.
21624
21625 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com> 
21626
21627         * Form.cs:
21628           - Re-enabled CreateParams.X/Y code for FormStartPosition
21629           - Added code for manual placement when creating the Control
21630           - Incomplete patch to treat MDI forms differently when
21631             setting the ClientSizeCore. (Still need to figure out handling
21632             x/y coords there)
21633         * XplatUIX11.cs:
21634           - When we're explicitly setting the X/Y position of a non-Child
21635             window, let the WM know. Metacity really wants this.
21636
21637 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
21638
21639         * ThemeNice.cs: Added CPDrawButton
21640
21641 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
21642
21643         * ThemeNice.cs: Changed the color for focused buttons and activated
21644           the arrows for small scroll buttons.
21645
21646 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
21647
21648         * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
21649           anymore. Changed some method modifiers to protected (virtual)
21650         * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
21651           changes
21652         * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
21653           Updated drawing of menus, buttons and progressbars; added
21654           CPDrawBorder3D 
21655
21656 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21657
21658         * ImageListStreamer.cs: implemented serialization/deserialization
21659         of the images.
21660
21661 2006-04-03  Alexander Olk  <alex.olk@googlemail.com>
21662
21663         * ThemeWin32Classic.cs:
21664           - Removed all the DrawFrameControl stuff; CPDrawButton,
21665             CPDrawCheckBox and CPDrawRadioButton are now handled directly
21666             inside the methods
21667           - Updated and corrected the drawing code of CPDrawButton,
21668             CPDrawCheckBox and CPDrawRadioButton to better match ms
21669           - Updated theme checkbox and radiobutton code to use the CP*
21670             methods
21671
21672 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
21673
21674         * XplatUIX11.cs: Enable clipping again now that the libgdiplus
21675           bug is fixed
21676
21677 2006-03-31  Jackson Harper  <jackson@ximian.com>
21678
21679         * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
21680         sometimes.
21681         * UpDownBase.cs: Don't CreateGraphics manually, use a
21682         Refresh. Ideally we would invalidate the correct areas here.
21683
21684 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
21685
21686         * XplatUIX11.cs: 
21687           - We now track the mapping state of windows. If a window (or 
21688             one of it's parents) is not mapped we no longer permit
21689             WM_PAINT messages to be generated since we'd otherwise get 
21690             lots of BadMatch X errors. Jackson did all the work figuring
21691             out the problem.
21692           - Destroying the caret if the window it's contained in is 
21693             destroyed. Can't use regular DestroyCaret method since it
21694             might fall into a drawing function (trying to remove the
21695             caret) and with that generate new BadMatch errors. Again,
21696             Jackson tracked this down.
21697           - Changed DestroyChildWindows to SendWMDestroyMessages, we now
21698             make sure we send the messages to all windows. (The old code
21699             would send the WM_DESTROY to the window, and then all child
21700             windows would be 'gone' because the WM_DESTROY handle lookup
21701             would no longer find the destroyed window)
21702         * Hwnd.cs: Added Mapping property to track mapping state of hwnd
21703         * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
21704
21705 2006-03-31  Jackson Harper  <jackson@ximian.com>
21706
21707         * ScrollableControl.cs: Dont recalc if we are not visible.
21708
21709 2006-03-31  Mike Kestner  <mkestner@novell.com>
21710
21711         * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
21712         the visibility branch.
21713
21714 2006-03-31  Jackson Harper  <jackson@ximian.com>
21715
21716         * ScrollBar.cs: Cap values when incrementing/decrementing.
21717
21718 2006-03-31  Mike Kestner  <mkestner@novell.com>
21719
21720         * MenuAPI.cs: setup menu.tracker for popup/context menus.
21721         * ToolTip.cs: guard against timer expirations with no active control.
21722         Not sure why it happened.
21723
21724 2006-03-31  Mike Kestner  <mkestner@novell.com>
21725
21726         * ThemeWin32Classic.cs: add some horizontal padding space for the tip
21727         text.
21728         * ToolTip.cs: Position the tooltip based on where the cursor is at
21729         popup time, not at MouseEnter time.  Add a Down state so that we don't
21730         redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
21731         positioning offset. Lookup DisplaySize at positioning time, since it
21732         can theoretically change during invocation.
21733         * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
21734         * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
21735
21736 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
21737
21738         * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
21739           Fixes behaviour when the Text property of the box is String.Empty
21740
21741 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com>
21742
21743         * XplatUIX11.cs: Only send mouseleave for our client windows, not
21744           for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
21745           a window)
21746
21747 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
21748
21749         * FileDialog.cs: Visual enhancement for the popup buttons in 
21750           PopupButtonPanel
21751
21752 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
21753
21754         * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
21755           code
21756
21757 2006-03-30  Alexander Olk  <alex.olk@googlemail.com>
21758
21759         * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
21760           highlighted menu items to match ms
21761
21762 2006-03-30  Peter Dennis Bartok  <pbartok@novell.com> 
21763
21764         * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
21765
21766 2006-03-30  Mike Kestner  <mkestner@novell.com>
21767
21768         * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
21769         * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
21770         go active to account for HotLight to Selected transition.
21771         * MenuItem.cs: add internal Selected prop. Fill out the Status
21772         property by calculating it from item info. Add HotLight,
21773         NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
21774
21775 2006-03-30  Mike Kestner  <mkestner@novell.com>
21776
21777         * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
21778
21779 2006-03-29  Jackson Harper  <jackson@ximian.com>
21780
21781         * Form.cs: Implement TODO.
21782
21783 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com> 
21784
21785         * PrintPreviewDialog.cs: Implemented missing methods and events; still
21786           missing proper dialog setup in the constructor
21787
21788 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com>
21789
21790         * ProgressBar.cs: Added 2.0 Style property that apps seem to use
21791         * Control.cs:
21792           - Implemented CheckForIllegalCrossThreadCalls, removed TODO
21793           - Fixed ResetBindings and removed TODO
21794           - Added check for cross-thread calls to get_Handle()
21795           - Added Marshaller attribute for set_Font to satisfy class status
21796         * FontDialog.cs: Removed TODOs that seemed implemented
21797         * UpDownBase.cs: Removed unneeded TODO and Fixme
21798         * MessageBox.cs: Implemented support for Default button and removed TODO
21799         * FileDialog.cs: Removed obsolete TODO
21800         * DomainUpDown.cs: Removed obsolete TODO
21801         * ButtonBase.cs: Removed obsolete TODO
21802         * XplatUIWin32.cs: Removed obsolete TODO
21803         * Form.cs:
21804           - Removed obsolete TODO
21805           - Calling CheckAcceptButton when the acceptbutton is changed to allow
21806             internal status updates
21807           - Making sure the active control is selected when the control is created
21808         * CurrencyManager.cs: Removed obsolete TODO
21809
21810 2006-03-29  Mike Kestner  <mkestner@novell.com>
21811
21812         * *.cs: fix remaining corcompare issues for 1.1 API with the exception
21813         of PrintPreviewDialog and RichTextBox.
21814
21815 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
21816
21817         * Theme.cs: Added a little helper to SystemResPool to get the Dark,
21818           DarkDark, Light and LightLight colors for a specific color
21819         * ThemeWin32Classic.cs:
21820           - Use Button drawing code to draw RadioButtons and CheckBoxes with
21821             Appearance = Button 
21822           - Make use of the new ResPool helper CPColor
21823           - Draw ProgressBar and StatusBar with correct 3D borders
21824
21825 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
21826
21827         * ColorDialog.cs: Return selected color. Fixes bug #77940.
21828
21829 2006-03-28  Mike Kestner  <mkestner@novell.com>
21830
21831         * ListView.cs: fix Icon layout to plan for scrollbar widths when
21832         calculating col/row counts.
21833
21834 2006-03-28  Mike Kestner  <mkestner@novell.com>
21835
21836         * ColumnHeader.cs:
21837         * ListView.cs:
21838         * ListViewItem.cs:
21839         * Menu.cs: 
21840         switch to explicit interface method implementation for some methods
21841         corcompare identifies as inconsistent with MS.
21842
21843 2006-03-28  Mike Kestner  <mkestner@novell.com>
21844
21845         * MainMenu.cs: 
21846         * Menu.cs:
21847         add a few missing methods from the class status output.
21848
21849 2006-03-28  Alexander Olk  <alex.olk@googlemail.com>
21850
21851         * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
21852           correct.
21853
21854 2006-03-28  Mike Kestner  <mkestner@novell.com>
21855
21856         * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
21857
21858 2006-03-27  Mike Kestner  <mkestner@novell.com>
21859
21860         * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
21861         the Hilight state to adapt to Alex's CPDrawBorder3D changes.
21862
21863 2006-03-27  Alexander Olk  <alex.olk@googlemail.com>
21864
21865         * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
21866
21867 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
21868
21869         * ThemeWin32Classic.cs:
21870           - GroupBox: Inserted a little gap between the text and the lines
21871             on the right side
21872           - Made the code in CPDrawBorder3D more readable
21873           - Corrected the drawing location of the up and down arrows in 
21874             CPDrawScrollButton
21875
21876 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
21877
21878         * ControlPaint.cs: Corrected line widths in DrawBorder for
21879           ButtonBorderStyle Inset and Outset
21880
21881 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
21882
21883         * ThemeWin32Classic.cs:
21884           - Rewrote the totally broken CPDrawBorder3D method. That was
21885             one of the main problems for the terrific ThemeWin32Classic
21886             look
21887           - Updated and corrected Button drawing
21888           - Correct the dimensions of the SizeGrip to match ms ones
21889           - Removed a small drawing glitch in DrawComboBoxEditDecorations
21890         * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
21891           Border3DStyle.Sunken to match ms.
21892
21893 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
21894
21895         * ThemeWin32Classic.cs: First small part of the "de-uglify
21896           ThemeWin32Classic" effort, SizeGrip
21897
21898 2006-03-24  Jackson Harper  <jackson@ximian.com>
21899
21900         * XplatUIX11.cs: Give a max idle time of one second, this matches
21901         MS and forces an Idle event every second when there are no other
21902         events in the queue.
21903
21904 2006-03-24  Mike Kestner  <mkestner@novell.com>
21905
21906         * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
21907         * ListView.Item.cs: fix layout issues with null image lists and images
21908         smaller than checkbox size.
21909         * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
21910         mode like MS does.  It's weird, but consistent.  ;-)
21911         Fixes #77890.
21912
21913 2006-03-24  Mike Kestner  <mkestner@novell.com>
21914
21915         * ListView.cs: Scroll wheel support for the item control.  Fixes
21916         #77839.
21917
21918 2006-03-23  Jackson Harper  <jackson@ximian.com>
21919
21920         * ScrollableControl.cs: Special case negative sized areas, not
21921         zero.
21922         * MonthCalendar.cs: Save the rect of the clicked date so we can
21923         use it for invalidation.
21924         - Try to cut down on the number of invalidates
21925         - Invalidate the rect the mouse is over and was over when moving
21926         the mouse, so we get the focus box following the cursor.
21927
21928 2006-03-23  Mike Kestner  <mkestner@novell.com>
21929
21930         * ThemeWin32Classic.cs: fix FullRowSelect selection background and
21931         focus rectangle drawing. Fixes #77835.
21932
21933 2006-03-23  Mike Kestner  <mkestner@novell.com>
21934
21935         * XplatUIX11.cs: rework the fix for #77828 by changing the order of
21936         the if and else if and reverting back to the original == check on the
21937         None conditional.
21938
21939 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
21940
21941         * FontDialog.cs: Update the example panel if the selected index of
21942           the fontListBox changes.
21943
21944 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
21945
21946         * FileDialog.cs: Make FileDialog remember which directory it was in
21947           last in the same execution.
21948
21949 2006-03-22  Mike Kestner  <mkestner@novell.com>
21950
21951         * FileDialog.cs: make the DropDownMenu on the toolbar display
21952         RadioChecks since they are mutually exclusive and that's what MS does.
21953
21954 2006-03-22  Mike Kestner  <mkestner@novell.com>
21955
21956         * Theme.cs: add Color param to CPDrawMenuGlyph.
21957         * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
21958         checks and radio marks and arrows are visible on highlighted items.
21959         * ControlPaint.cs: update to use new Theme signature.
21960
21961 2006-03-22  Mike Kestner  <mkestner@novell.com>
21962
21963         * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
21964         is active. Fixes #77870.
21965
21966 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
21967
21968         * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
21969           to be focused/selected after startup
21970
21971 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
21972
21973         * ColorDialog.cs: 
21974           - Corrected behaviour of Color, AllowFullOpen, FullOpen,
21975             CustomColors and ShowHelp properties
21976           - Some internal rewrites to get better results when using the
21977             ColorMatrix
21978
21979 2006-03-22  Mike Kestner  <mkestner@novell.com>
21980
21981         * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
21982         HoverSelection.  Fixes #77836.
21983
21984 2006-03-22  Mike Kestner  <mkestner@novell.com>
21985
21986         * FileDialog.cs: bugfixes for the toolbar.  Use PushButtons instead of
21987         ToggleButtons.  (De)Sensitize the Back button around a stack count of
21988         1, not 0.  Update ButtonSize based on a pixel count of the win32
21989         control.  Adjust the toolbar size/location for new button size.
21990
21991 2006-03-22  Jackson Harper  <jackson@ximian.com>
21992
21993         * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
21994         true.
21995         * ScrollBar.cs: When doing increments and decrements we need to
21996         set the Value property so that ValueChanged gets raised. A
21997         possible optimization here would be to make an internal SetValue
21998         that doesn't invalidate immediately.
21999         * ToolTip.cs: Tooltips get added to their container (when
22000         supplied) so they get disposed when the container is disposed.
22001         - Don't create tooltips for String.Empty. This prevents all these
22002         little 2-3 pixel windows from showing up when running nunit-gui
22003         and driving me mad.
22004         * Form.cs: Don't set topmost when setting the owner if the handles
22005         haven't been created yet.  The topmost set will happen when the
22006         handles are created.
22007
22008 2006-03-22  Peter Dennis Bartok  <pbartok@novell.com> 
22009
22010         * XplatUIX11.cs:
22011           - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
22012           - SetVisible: Sending WINDOWPOSCHANGED for all controls when made 
22013             visible (to allow them to recalculate their sizes)
22014
22015 2006-03-21  Mike Kestner  <mkestner@novell.com>
22016
22017         * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
22018         methods. Removed a ton of redundant code.  Still not really happy with
22019         the border rendering, but I think that's mainly because of the
22020         ControlDarkDark being black instead of a dark grey. Depending on how 
22021         close we want to be, we might want to revisit those color choices.
22022         Among the new features added during the refactor were DropDownArrow
22023         pressed rendering, Disabled image rendering.  Proper flat appearance
22024         boundary rendering.  Removed the Divider and Wrapping dividers since I
22025         can't figure out any combination of themes and conditions to make the
22026         MS control draw a horizontal line on a toolbar despite what the
22027         Divider property docs indicate.
22028         * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
22029         conditions and incorrect layout.  Updated to coding standard.
22030         * ToolBarButton.cs: refactored layout and positioning code from
22031         ToolBar to here.  Invalidate wherever possible instead of forcing
22032         redraws of the whole toolbar. 
22033         (Known remaining issues: explicit ButtonSize smaller than provided
22034         images.)
22035
22036 2006-03-21  Mike Kestner  <mkestner@novell.com>
22037
22038         * ContextMenu.cs (Show): use the position parameter instead of just
22039         showing at the MousePosition.
22040
22041 2006-03-21  Jackson Harper  <jackson@ximian.com>
22042
22043         * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
22044         control handle this.
22045         * TreeNodeCollection.cs: If we are clearing the root node we need
22046         to reset top_node so calcs can still happen.
22047         * ThemeWin32Classic.cs: This is a Flags so we need to check
22048         properly.
22049         
22050 2006-03-21  Jackson Harper  <jackson@ximian.com>
22051
22052         * DataGrid.cs: Create columns when the binding context has been
22053         changed.
22054         * X11Structs.cs: Keysyms are uints.
22055         - Add size to fix build.
22056
22057 2006-03-21  Peter Dennis Bartok  <pbartok@novell.com> 
22058
22059         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
22060           XplatUIOSX.cs: 
22061           - Added ResetMouseHover method to allow controls to retrigger
22062             hovering if they need it more than once
22063           - Implemented MouseHoverTime and MouseHoverSize properties
22064         * Timer.cs: Start() must reset the interval
22065         * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
22066           properties
22067
22068 2006-03-21  Jackson Harper  <jackson@ximian.com>
22069
22070         * X11Keyboard.cs: improved layout detection. Move the nonchar
22071         tables into this file.
22072         * KeyboardLayouts.cs: Move the tables into resource files.
22073
22074 2006-03-21  Mike Kestner  <mkestner@novell.com>
22075
22076         * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
22077
22078 2006-03-21  Alexander Olk  <alex.olk@googlemail.com>
22079
22080         * Mime.cs: Various speed optimizations. Looking up mime types
22081           is now 2 times faster than before
22082
22083 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com> 
22084
22085         * CreateParams.cs: Added internal menu field
22086         * Control.cs: 
22087           - Switched call order for UpdateBounds; now we always call
22088             the one that also takes ClientSize, and we're calculating the 
22089             client size via driver method in the others. The previous
22090             method of tracking client size by difference wasn't working
22091             for forms where even the starting client size wouldn't match
22092             the overall form size (due to borders) (Part of fix for #77729)
22093           - CreateParams(): Do not use parent.Handle unless the handle is
22094             already created. Causes havoc with Nexxia and throws off our
22095             creation of controls
22096         * XplatUIX11.cs:
22097           - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
22098           - Switched handling of ConfigureNotify over to new PerformNCCalc 
22099             method (consolidates code)
22100           - Changed RequestNCRecalc to use new PerformNCCalc method
22101           - Added calls to RequestNCRecalc when menus and borders are changed
22102             to allow app to set NC size. (Part of fix for #77729) This matches
22103             when MS send a WM_NCRECALC on Win32 windows.
22104           - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
22105             (Part of fix for #77729). This matches what MS does, they also
22106             send that message when the form is made visible.
22107           - XException.GetMessage: Improved usability of X errors by including
22108             a translation of the window into Hwnd and Control class
22109           - Improved debug info for window creation, reparenting and destruction
22110           - Created helper method WindowIsMapped() [Currently not used]
22111         * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
22112         * Form.cs:
22113           - CreateParams: Now setting our menu on the new internal menu field
22114           - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
22115             avoid calculating the same property twice
22116         * Hwnd.cs:
22117           - Improved usability of ToString() for debugging purposes
22118           - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
22119             determine the height of the menu, instead of just the font. This
22120             required to also create a graphics context and to keep a bmp 
22121             around (for performance reasons)
22122
22123 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com>
22124
22125         * MenuAPI.cs: Added OnMouseUp method
22126         * Form.cs:
22127           - Now remembering the requested client size, avoids size errors
22128           - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
22129             instead of base if the menu is active. This is required due to
22130             control now capturing and releasing on down/up and it would
22131             prematurely release our menu capture
22132
22133 2006-03-17  Jackson Harper  <jackson@ximian.com>
22134
22135         * KeyboardLayouts.cs: Add the czech layouts.
22136
22137 2006-03-16  Jackson Harper  <jackson@ximian.com>
22138
22139         * Control.cs: Use the viewport space when sizing not the controls
22140         client size, so things like ScrollableControl that effect the
22141         viewport size (when scrollbars are added) are computed correctly.
22142         * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
22143         of ManagerEntrys.
22144         - Handle creating BindingManagers for null data sources.
22145         * DataGrid.cs: Bind the cached_currencymgr_events to the real data
22146         source, otherwise when rows are added they are added to the 'fake'
22147         datasource and we will crash when trying to set the position in
22148         those rows.
22149         - Use Implicit scrollbars on the datagrid so they arent
22150         selectable.
22151         
22152 2006-03-16  Jackson Harper  <jackson@ximian.com>
22153
22154         * Binding.cs:
22155         * InternalWindowManager.cs:
22156         * MdiWindowManager.cs:
22157         * X11Keyboard.cs: I really want Mike to love me again (fix
22158         compiler warnings).
22159
22160 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com>
22161
22162         * DataGrid.cs:
22163           - OnMouseDown: Switch to editing mode when clicking on the cell
22164                          even if we're clicking on the cell that's currently 
22165                          selected
22166           - ProcessGridKey: Left/Right now wrap like MS.Net does
22167           - ProcessGridKey: Tab now knows to add a new row when tab is
22168                             pressed in the cell of the last column of the 
22169                             last row
22170           - ProcessGridKey: Enter now adds another row  if pressed in the last
22171                             row and selectes the new row, same column cell
22172           - ProcessGridKey: Home/End navigate columns, not rows, like 
22173                             originally implemented
22174           - Broke ProcessKeyPreview code out into an extra Internal method
22175             so it can be called from the edit code
22176         * DataGridTextBox.cs (ProcessKeyMessage):
22177           - Switched to accept Tab keypresses
22178           - Added F2 handling to allow jumping to the end of the edited cell
22179           - Added logic to allow moving caret left/right inside edited cell
22180             and making the edited cell jump when the caret hits cell borders
22181           - Tab and Enter are now passed to the datagrid after being handled
22182         * TextBoxBase.cs:
22183           - Removed capture code now that Control handles it
22184           - set_SelectionStart now ensures caret is visible
22185
22186 2006-03-16  Jackson Harper  <jackson@ximian.com>
22187
22188         * TrackBar.cs: Debackwards the increment/decrement for handling
22189         mouse clicks on the bar with vertical trackbars.
22190         * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
22191         bottom to match MS.
22192
22193 2006-03-16  Mike Kestner  <mkestner@novell.com>
22194
22195         * ListView.cs: make shift/ctrl keyboard and mouse selection 
22196         consistent with the MS control. Fix a bug in
22197         SelectedListViewItemCollection.Clear that was pissing me off for the
22198         better part of a day because the collection was being altered
22199         underneath us as we walked the list.
22200
22201 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com> 
22202
22203         * Control.cs: Not sure how we could miss this so long, but it seems
22204           that MS.Net has Capture set all the way from before calling 
22205           OnMouseDown through sending the mouse events until after
22206           OnMouseUp. This will fix DataGrid's selection being set to end
22207           at the location of the MouseUp.
22208
22209 2006-03-15  Jackson Harper  <jackson@ximian.com>
22210
22211         * BindingContext.cs: Check the binding after its added so that it
22212           can initialize the binding managers and hookup to events.
22213         * Binding.cs: Data members seem to sometimes include rows/cols in
22214           the format Row.Column we now take this into account.
22215           - Hookup to the position changed event so we can update the
22216           control when the position has changed in the data set.
22217         * CurrencyManager.cs: Take into account the row/col naming
22218           convention when creating dataset tables.
22219         * BindingContext.cs: Using a newer better way of storing
22220           datasource/datamember pairs.  Hopefully this better matches MS for
22221           looking up binding managers.
22222
22223
22224 2006-03-15  Jackson Harper  <jackson@ximian.com>
22225
22226         * BindingContext.cs: The currency manager needs the data member
22227         name, if the member is a data set we use the name to find the
22228         correct table.
22229         * CurrencyManager.cs: When creating the list prefer an IList over
22230         an IListSource.
22231         - Attempt to create a DataTable from a DataSet (TODO: might need
22232         some better error checking here, although MS doesn't seem to have much)
22233         - If we have a DataTable create a view and use it as our list.
22234
22235 2006-03-15  Mike Kestner  <mkestner@novell.com>
22236
22237         * ListView.cs: keep a matrix of the icon mode layout to facilitate
22238         keyboard navigation. Support Up/Down/Left/Right selection correctly
22239         for all 4 View modes.
22240         * ListViewItem.cs: add internal row/col fields for icon layouts.
22241
22242 2006-03-15  Jackson Harper  <jackson@ximian.com>
22243
22244         * TabControl.cs: Redraw the tabs when we resize so their newly
22245         calculated sizes are drawn on screen.
22246         * X11Keyboard.cs: Begginnings of XIM support.  We also now support
22247         composite characters.
22248         * XplatUIX11.cs: Keyboard driver needs to know about focus changes
22249         - filter events so that composite characters can be created
22250         patches by peter
22251         * X11Structs.cs: Add XIMProperties enum.
22252
22253 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
22254
22255         * Control.cs (BringToFront, SendToBack): Don't use window or handle
22256           unless it's created
22257
22258 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
22259
22260         * Control.cs (PerformLayout): We don't need to consider visiblity
22261           for anchoring, only for docking. This fixes 'whacky' alignment
22262           in listbox and other controls that use implicit scrollbars after
22263           the previous PerformLayout patch
22264         * ListBox.cs: Switched to use implicit scrollbars
22265           
22266 2006-03-14  Mike Kestner  <mkestner@novell.com>
22267
22268         * ToolBar.cs: 
22269         * VScrollBar.cs:
22270         - chain up the "new event" overrides to base and use
22271         OnEvent to raise them.  Part of fix for bug #76509.
22272
22273 2006-03-14  Alexander Olk  <alex.olk@googlemail.com>
22274
22275         * FileDialog.cs: Do not select an item in the parent directory
22276           on backspace
22277
22278 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
22279
22280         * Control.cs (PerformLayout): It would seem that we considered
22281           invisible windows for our layout. Not quite the right thing
22282           to do. Now we don't any longer, thereby fixing bug #76889.
22283
22284 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
22285
22286         * Control.cs (CanFocus): I goofed. A control can have focus 
22287           even though it's not selectable. Made it match MS docs.
22288
22289 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
22290
22291         * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
22292           center by default (fixes #76895)
22293         * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced 
22294           all uses of Border3DSides.All with the explicit ORd together
22295           Left|Right|Top|Bottom because I assume that nobody was aware 
22296           that All also implies a center fill. Most places I checked had
22297           a fill right above.
22298         * ProgressBarStyle.cs: Added
22299
22300 2006-03-13  Mike Kestner  <mkestner@novell.com>
22301
22302         * ListView.cs: fix breakage in drag shadow header positioning 
22303         from Peter's csc compilation fix.
22304
22305 2006-03-13  Mike Kestner  <mkestner@novell.com>
22306
22307         * ListView.cs: fix NRE produced by backspacing twice in a focused
22308         FileDialog.
22309
22310 2006-03-13  Mike Kestner  <mkestner@novell.com>
22311
22312         * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
22313
22314 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
22315
22316         * Hwnd.cs: Added fixed_size field to track windows whose size cannot
22317           be changed
22318         * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
22319           the allowed size before making programmatic size changes
22320
22321 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com> 
22322
22323         * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are 
22324           set, metacity is broken and will still use the emty sizes in 
22325           the struct. (Fix for #77089)
22326
22327 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
22328
22329         * XplatUIStructs.cs: Split WindowStyles into WindowStyles and 
22330           WindowExStyles and marked both enums as Flags
22331         * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
22332           NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
22333           to match WindowStyles split
22334         * XplatUIX11.cs:
22335           - SetWMStyles: Added cehck to not apply WM attributes to Child windows
22336           - Updated to match WindowStyles split
22337         * XplatUIWin32.cs:
22338           - Fixed FosterParent creation, was using ExStyle on the Style field
22339             (This should help with Popup focus issues)
22340           - Updated to match WindowStyles split
22341
22342 2006-03-13  Jackson Harper  <jackson@ximian.com>
22343
22344         * MdiWindowManager.cs: Use the system menu height. Fixes some
22345         strange sizing issues.
22346
22347 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
22348
22349         * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
22350         * TextBoxBase.cs:
22351           - Scroll to caret after inserting text (#77672)
22352           - Make scroll range one pixel higher, fixes off-by-one error (and
22353             makes underlines visible on the last line)
22354
22355 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com> 
22356
22357         * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
22358           the keyboard state from being stuck with keys in 'pressed' state when
22359           focus is switched away via keyboard
22360         * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
22361           reset the keyboard if no X11 KeyUp events are expected to come
22362         * X11Structs.cs: Switched type of Visible to bool to match driver
22363
22364 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
22365
22366         * TextControl.cs:
22367           - Switched caret to be just 1 pixel wide, matches MS and looks less
22368             clunky
22369           - Moved caret display 1 pixel down from the top of the control
22370             to improve view
22371           - InsertCharAtCharet: Update the selection start if moving the caret
22372             (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
22373           - No longer always creating the caret when the caret methods are
22374             called. Only the actual ShowCaret/HideCaret will do that now
22375           - Only setting caret visible if the owner control has focus
22376           - UpdateView: Added invalidation-shortcut logic for center and right 
22377             aligned text. Previously we'd update all according to the left
22378             logic which caused drawing errors. Also fixed height of invalidated
22379             areas, now properly invalidating the whole area (was off-by-one)
22380           - owner_HandleCreated: Always generate the document when the
22381             handle is created; this ensures that 
22382         * TextBoxBase.cs:
22383           - Fixed situation where caret would disappear under the right
22384             window border, also improved scrolling behaviour on left-
22385             aligned textboxes
22386           - Fixed right-aligned textboxes to have a border to the
22387             right instead of the caret being under the right border
22388         * XplatUIX11.cs:
22389           - Switched from 'nested' to simple visible/not visible tracking 
22390             for caret (part of fix for #77671)
22391           - No longer passing through translated FocusIn/FocusOut messages
22392             since we were notifying too often and the wrong windows. Instead
22393             we just notify our focussed window of receiving or loosing focus
22394         * XplatUIWin32.cs: Switched from 'nested' show/hide 
22395           counting for caret to simple visible yes/no behaviour (part of 
22396           fix for #77671)
22397
22398 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
22399
22400         * Mime.cs: Remove debug code...
22401
22402 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
22403
22404         * MimeGenerated.cs: Removed
22405         * Mime.cs: Mime now reads the mime data (magic, globs, aliases
22406           and subclasses) from /usr/(local/)share/mime and
22407           $HOME/.local/share/mime.
22408
22409 2006-03-10  Jackson Harper  <jackson@ximian.com>
22410
22411         * MdiWindowManager.cs: Recalc the NC area when a window is
22412         maximized/restored so that the menu area is drawn on forms that
22413         don't have a menu.
22414
22415 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
22416
22417         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
22418           XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
22419           us to force a WM_NCCALCRESIZE message being sent. This is needed
22420           for MDI maximizing.
22421
22422 2006-03-10  Jackson Harper  <jackson@ximian.com>
22423
22424         * Form.cs: We need to use the ActiveMenu when calculating menu
22425         height.
22426         - Fix nullref when the window manager hasn't been created yet.
22427         * Control.cs: Fix nullref when we try to bring a control to the
22428         front that has no parent.
22429         * MdiWindowManager.cs: Use the MaximizedMenu for calculating
22430         height.
22431         - Add a dummy item to the maximized menu so it always has the
22432         correct height. Otherwise when there are no menus we don't get our
22433         icon and buttons.
22434         
22435
22436 2006-03-10  Jackson Harper  <jackson@ximian.com>
22437
22438         * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
22439         stuff.
22440         * Form.cs: Make the window_state internal so the window managers
22441         can track it.
22442         - When an MDI child is maximized let its window manager create the
22443         main menu (so it can add its icon).
22444         - Notify the window managers of state changes
22445         - Let the window manager paint its buttons and handle button
22446         clicks on the menu when it is maximized.
22447         * InternalWindowManager.cs: Move the prev_bounds into the mdi
22448         window manager, since tool windows don't use it, only mdi windows.
22449         - Tell the main form that we don't want it to handle NCPAINT
22450         itself to avoid extra painting.
22451         - Handle clicks on a maximized windows menu.
22452         - Handle window state changes
22453         - Handle minimize/maximize clicks correctly by setting the window state.
22454         * MdiWindowManager.cs: Add an icon menu that (the menu you get
22455         when clicking on the forms icon).
22456         - New method to create a forms maximized menu. This is its normal
22457         menu + an icon.
22458         - Handle window state changes.
22459         - Handle sizing of maximized windows.  Maximized windows are just
22460         drawn bigger then the parent visible area. All controls are still
22461         there, they are just outside the visible area (this matches windows).
22462         * MdiClient.cs: No scrollbars when a child window is maximized.
22463         - Let the children windows figure out how big they should be when
22464         sizing maximized windows.
22465         - Implement a version of ArrangeIconicWindows somewhat similar to
22466         Windows version.  There are some little differences, but I don't
22467         think any app will rely on the layout of minimized mdi windows.
22468
22469 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
22470
22471         * Padding.cs: Several fixes to allow compiling with csc 2.0
22472
22473 2006-03-09  Jackson Harper  <jackson@ximian.com>
22474
22475         * Menu.cs:
22476         * MenuItem.cs: Cheap hack so we can add items to the list without
22477         the events being raised.  This allows adding mdi items during
22478         drawing. TODO: Should probably find a better time to add the items.
22479
22480 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
22481
22482         * ThemeWin32Classic.cs:
22483           - CheckBox_DrawText: Added logic to not wrap if not enough space
22484             is available (Fix for bug #77727)
22485           - RadioButton_DrawText: Added logic not to wrap if not enough
22486             space is available (Fix for bug #77727). Also removed some
22487             duplicate code, DrawString always drawing the regular text
22488             before hitting the if statement.
22489
22490 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com> 
22491
22492         * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
22493
22494 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
22495
22496         * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
22497         * ContainerControl.cs: Partial implementation of some 2.0 scaling
22498           methods. Moved the new 2.0 properties into alphabetical order with
22499           other properties and added MonoTODO tags
22500
22501 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
22502
22503         * AutoScaleMode.cs: Added. Fix build.
22504
22505 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
22506
22507         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
22508           XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
22509           and was requiring premature handle creation for calls from above
22510         * Form.cs, Control.cs: Removed handle arguments from calls to
22511           CalculateClientRect()
22512
22513 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
22514
22515         * ListView.cs (HeaderMouseMove): Fix csc compilation. 
22516           drag_column.column_rect is MarshalByRef and can't be used that way
22517
22518 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
22519
22520         * AxHost.cs: Added deserialization constructor for 
22521           AxHost+State (fixes 77743)
22522
22523 2006-03-09  Mike Kestner  <mkestner@novell.com>
22524
22525         * ListView.cs: 
22526         - Added column drag reordering for details view.
22527         - fixed behavior when mouse is dragged off column and
22528         AllowColumnReorder is false.
22529         * ColumnHeader.cs: clone the format too in Clone.
22530         * Theme.cs: add DrawListViewHeaderDragDetails method.
22531         * ThemeWin32Classic.cs:
22532         - impl new method for drawing drag column shadows and targets.
22533         - support column offset for details mode in DrawListViewItem.
22534
22535 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
22536
22537         * TextControl.cs: Reset the char_count when the document is cleared
22538           (Fixes bug reported on mono-winforms mailing list)
22539
22540 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
22541
22542         * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
22543           of calling base we simply process the key ourselves, since both
22544           DefWindowProc and the handled method would set m.Result. 
22545           (Fixes #77732)
22546
22547 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
22548
22549         * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
22550           method also moves the window; instead implemented a copy of
22551           Control.ScaleCore (Part of fix for #77456)
22552         * TextBoxBase.cs: 
22553           - Created new CreateGraphicsInternal method to allow providing
22554             a graphics context when no handle is created without triggering
22555             handle creation. (Part of fix for #77456)
22556           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
22557         * TextControl.cs: 
22558           - Switched Constructor to require TextBoxBase instead of Control (to
22559             allow uncast access to CreateGraphicsInternal)
22560           - Safeguarded use of owner.Handle property. No longer accessing it
22561             unless the handle is already created.
22562           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
22563           - Now triggering a recalc when owning control becomes visible
22564         * TextBox.cs, RichTextBox.cs: Switched to use new internal 
22565           TextBoxBase.CreateGraphicsInternal() method to avoid triggering
22566           premature handle creation (Part of fix for #77456)
22567         * Control.cs:
22568           - We now only destroy our double-buffering buffers when the
22569             control is resized or disposed, but not when visibility
22570             changes. (The code even re-created them twice every time)
22571           - Now requiring a redraw of the buffer on visibility changes
22572             (fixes bug 77654 part 2)
22573           - Not passing OnParentVisibleChanged up unless the control
22574             is visible
22575           - CanFocus: Fixed to match MS documentation
22576           - Focus: Fixed to return actual focus state and to check if
22577             setting focus is legal before setting it
22578
22579 2006-03-08  Peter Dennis Bartok  <pbartok@novell.com>
22580
22581         * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
22582           when to draw focus rectangle by looking at parent focus and
22583           selected state instead. This fixes TabPages on Linux sometimes
22584           having none or multiple focus rectangles.
22585         * XplatUIX11.cs (SetFocus): 
22586           - Don't set the focus if the same window already has focus
22587           - Use SendMessage instead of PostMessage (like it's Win32
22588             equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
22589             to match MS behaviour
22590         * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
22591           are not selectable.
22592
22593 2006-03-07  Jackson Harper  <jackson@ximian.com>
22594
22595         * PictureBox.cs: Revert line I accidently committed last week.
22596
22597 2006-03-07  Peter Dennis Bartok  <pbartok@novell.com>
22598
22599         * Control.cs: 
22600           - Added new IsRecreating and ParentIsRecreating properties to
22601             allow testing if RecreateHandle has been called on ourselves
22602             or one of our parents
22603           - WndProc(WM_DESTROY): If our control handle is being recreated
22604             we immediately need to create the handle when receiving the
22605             destroy, that way our child windows find a valid parent handle
22606             when they themselves are being recreated upon WM_DESTROY receipt
22607             (fix for bug #77654 part 1)
22608         * XplatUIX11.cs:
22609           - DestroyWindow: WM_DESTROY must be sent to our own window before
22610             notifying any child windows. MS documents that child windows
22611             are still valid when WM_DESTROY is received. (Control now relies on
22612             this behaviour)
22613           - Added some fine-grain debug options
22614
22615 2006-03-06  Jackson Harper  <jackson@ximian.com>
22616
22617         * MdiClient.cs: Redid scrolling logic a bit to create a virtual
22618         box and base calculations off this.
22619         * MdiChildContext.cs:
22620         * MdiWindowManager.cs: Don't need to ensure scrollbars here
22621         anymore.
22622         
22623 2006-03-06  Peter Dennis Bartok  <pbartok@novell.com>
22624
22625         * Splitter.cs: In situations where the affected control is added
22626           to the parent's control list after the splitter, we would not
22627           populate affected. Now we try populating it on mousedown, if
22628           it's not already set, and force it to be re-set whenever our
22629           parent changes.
22630
22631 2006-03-03  Matt Hargett  <matt@use.net>
22632
22633         * Control.cs: implement Control.Padding
22634         * Padding.cs: -Padding.All returns -1 when constructing with the
22635         implicit default ctor
22636         -Padding.ToString() matches MS.NET
22637         * ContainerControl.cs: implement
22638         ContainerControl.AutoScaleDimensions
22639         * ListControl.cs: implement ListControl.FormattingEnabled
22640         * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
22641         * ButtonBase.cs:
22642         * TabPage.cs: Implement UseVisualStyleBackColor.
22643         * PictureBox.cs: Implement PictureBox.InitialImage.
22644
22645 2006-03-03  Mike Kestner  <mkestner@novell.com>
22646
22647         * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
22648         event declarations to proxy to base event.
22649         * ListViewItem.cs: update to use ItemControl.
22650         * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
22651         * ThemeWin32Classic.cs: update to new ListView theme API and fix
22652         column header label rendering for 0 width columns.
22653
22654 2006-03-03  Peter Dennis Bartok  <pbartok@novell.com>
22655
22656         * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
22657           that causes the control to be created. Fixes #77476.
22658
22659 2006-03-02  Jackson Harper  <jackson@ximian.com>
22660
22661         * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
22662         expose_pending.
22663
22664 2006-03-02  Peter Dennis Bartok  <pbartok@novell.com>
22665
22666         * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
22667           passed in for the EventArgs (fixes #77690)
22668
22669 2006-03-01  Jackson Harper  <jackson@ximian.com>
22670
22671         * ScrollBar.cs: Refresh afterbeing resized.
22672
22673 2006-02-28  Mike Kestner  <mkestner@novell.com>
22674
22675         * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
22676         Clean up a tracker compile warning.
22677         * MenuItem.cs: add internal PerformPopup method.
22678         [Fixes #77457]
22679
22680 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
22681
22682         * TextBoxBase.cs (set_Text): Recalculate the document (causing an
22683           implicit expose) when the text is set to null
22684
22685 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com>
22686
22687         * RichTextBox.cs (FlushText): When newline is true, we always
22688           need to split the line, even if no text is on it and we may
22689           never eat newlines. (Fixes #77669)
22690
22691 2006-02-28  Mike Kestner  <mkestner@novell.com>
22692
22693         * ListView.cs: Add UpdateSelection internal method. Remove SelectItem 
22694         and set Selected instead.
22695         * ListViewItem.cs: Call owner.UpdateSelection to manipulate the 
22696         collections.
22697
22698 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
22699
22700         * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
22701
22702 2006-02-28  Alexander Olk  <alex.olk@googlemail.com>
22703
22704         * FontDialog.cs:
22705           - Got rid of the panel. All controls are now directly added to
22706             the dialog form
22707           - It is now possible to set a font with the Font property
22708           - MinSize and MaxSize property do now what they should
22709           - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
22710           - Searching and selecting a font with the font textbox works now,
22711             the same applies to the style and size textbox
22712           - Draw the correct 3D border in the example panel
22713           - Fixed a little mem leak (unused fonts didn't get disposed)
22714           - Many other internal updates/rewrites...
22715           - Fix typo
22716
22717 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
22718
22719         * TextControl.cs: 
22720           - InsertRTFFromStream: Added 'number of characters inserted' argument
22721           - set_SelectedRTF: Now using the number of characters to calculate
22722             the new location for the selection and cursor (x/y cannot be used
22723             due to potentially already wrapped text)
22724
22725 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com>
22726
22727         * TextControl.cs: Added property and implemented means to allow 
22728           disabling recalculation of a document (can be used to speed up
22729           multiple inserts and is needed to make RTF inserts predictable, see
22730           bug #77659)
22731         * RichTextBox.cs: Using the new NoRecalc property of Document to
22732           keep x/y insert locations predictable. Also makes it faster inserting
22733           large chunks of RTF
22734
22735 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
22736
22737         * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
22738           it's easier for a child control to handle the other messages without
22739           having to duplicate the special functionality
22740         * TextBoxBase.cs
22741           - WndProc: Removed calling base handler for WM_KEYDOWN and added 
22742             code to handle processing the key ourselves, in order to get 
22743             access to the result of KeyEventArgs.Handled. We now only call 
22744             ProcessKey if they key hasn't been handled already. Fixes #77526.
22745           - set_Text: If null or empty string is given, just clear the 
22746             document. Fixes part of #77526
22747
22748 2006-02-27  Jackson Harper  <jackson@ximian.com>
22749
22750         * SizeGrip.cs: Paint the background color before painting the grip
22751         so things look right.
22752         * MdiClient.cs: Add the sizegrip when both scrollbars are used.
22753
22754 2006-02-27  Mike Kestner  <mkestner@novell.com>
22755
22756         * ListView.cs:
22757           - Restructure layout and invalidation model to remove a ton of
22758           flicker from the control and speed up performance in general.
22759           - Add manual column resize, flickers like crazy, but I already have
22760           some ideas on how I'll fix that. (#76822)
22761           - Merge the three Icon-based views into a single layout method.
22762           - Move item selection interaction logic from the item since 
22763           interaction with the collections is more appropriate to the view.
22764           - Deselection on non-item clicks.
22765         * ListViewItem.cs:
22766           - Encapsulate most of the layout. Add some internal props to trigger
22767           layout.  Move to a model where Items invalidate themselves instead
22768           of just invalidating the whole control every time something changes.
22769           - Invalidate on Text/Caption changes.
22770           - switch to an offset based layout model to avoid having to absolute
22771           position every element on item moves.
22772           - correct checkbox layout to conform to MS layout.
22773         * ThemeWin32Classic.cs:
22774           - refactor some column header drawing code.
22775           - fix string justification for column headers (#76821)
22776           - make SmallIcon labels top justified for compat with MS impl.
22777         * ThemeClearlooks.cs:
22778           - adjust to new ListViewItem internal checkbox bounds api.
22779
22780 2006-02-27  Jackson Harper  <jackson@ximian.com>
22781
22782         * Control.cs:  Change where implicit controls fall in the zorder.
22783         They are now on top of all children.
22784         - Synced AddImplicit code with Add
22785         - Removed unused enumerator.
22786         * SizeGrip.cs: Remove the TODO as its been TODONE.
22787
22788 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com> 
22789
22790         * TextControl.cs(Insert): Combine the last lines unless the insertion
22791           string ends with \n\n, otherwise we leave one line too many (Fixes
22792           something I noticed with the testapp for #77526; the bug itself was
22793           already fixed in the previous checkin)
22794
22795 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com>
22796
22797         * RichTextBox.cs:
22798           - SelectionColor and SelectionFont methods no longer set absolute
22799             styles. Instead, the keep font or color respectively (This 
22800             resolves a long-standing FIXME in the code)
22801           - When flushing RTF text, the insert code now considers text trailing
22802             behind the insertion point (Fixes the bug where when replacing
22803             the selected text via SelectedRTF the remainder of the line behind 
22804             the selection would stay on the first insertion line)
22805         * TextBoxBase.cs:
22806           - AppendText now updates the selection points after inserting text
22807           - AppendText now ensures that the last tag (sometimes 0-length) of
22808             the document is used for the style information (Fixes part of 
22809             bug #77220)
22810         * TextControl.cs:
22811           - Created new FontDefiniton class to allow describing partial style
22812             changes
22813           - StreamLine() now takes a lines argument, to allow it to decide
22814             whether an encountered zero-length tag is the last in the document
22815             (which must be kept to not loose the font/color contained in it,
22816             for later appends)
22817           - Created Combine() and Split() methods for Marker structs, to 
22818             support marker updates due to reformatted documents (soft line
22819             wraps)
22820           - Implemented Document.CaretTag setter
22821           - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
22822             of the last line (Not the cause, but also exposed by bug #77220)
22823           - Added LineTag argument to InsertString method, to allow callers
22824             to force a certain tag to be used (required to force use of the
22825             trailing zero-length tag of a document)
22826           - Now updating markers in Combine(), to avoid stale tag markers
22827           - Added some method descriptions to aid maintenance
22828           - Implemented new FormatText concept, allowing additive/subtractive
22829             formatting by only specifying the components that are to be 
22830             changed. This was needed for resolving the RTB.SelectedColor/
22831             RTB.SelectedFont fixmes
22832           - Added Break() support method to allow breaking up linetags (used
22833             for partial formatting)
22834           - Added GenerateTextFormat() method. It is used for partial 
22835             formatting and allows to generate a full font/color from given
22836             attributes and an existing tag.
22837
22838 2006-02-26  Jackson Harper  <jackson@ximian.com>
22839
22840         * XplatUIX11.cs:  Use the correct caption height.
22841         - Translate hittest coordinates to screen coords to match MS.
22842         * XplatUIWin32.cs: When we create MDI windows we need to reset
22843         some of the style flags, so we get a nice blank window, and can
22844         draw all the decorations ourselves.
22845         - Set a clipping rectangle on the non client paint event, the
22846         window manager drawing code needs one.
22847         * Form.cs: The window manager needs to know when the window state
22848         has been updated.
22849         * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
22850         don't need to factor in border and title sizes in these
22851         methods. TODO: Remove the args and fix the call points.
22852         * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
22853         properly.
22854         - Let the driver set the cursors.
22855         - Improve active window handling
22856         - Correct sizes for title bars and buttons.
22857         - Match MS drawing better
22858         * MdiWindowManager.cs: We don't need to handle border style
22859         updates specially anymore.
22860         - Check for scrollbars when windows are done moving
22861         - Handle Active properly.
22862         * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
22863         correctly. I am spewing the exception though, so we don't hide the
22864         bugs.
22865         
22866 2006-02-26  Pedro Martinez Julia  <pedromj@gmail.com>
22867
22868         * DataGridViewRowPostPaintEventArgs.cs,
22869           DataGridViewCellPaintingEventArgs.cs,
22870           DataGridViewRowCollection.cs,
22871           DataGridViewRowPrePaintEventArgs.cs,
22872           DataGridViewCell.cs: Clear a few warnings and implement a few
22873           exceptions that should be thrown.
22874
22875 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
22876
22877         * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
22878           'inheriting' our parent's (non-default) cursor. (Part of
22879            the fix for #77479)
22880
22881 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com> 
22882
22883         * XplatUIX11.cs: Fixed cast to make csc happy
22884
22885 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
22886
22887         * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
22888           it's for the client area (part of fix for #77479 and needed
22889           for MDI window cursor handling)
22890         * XplatUIX11.cs
22891           - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
22892             the appropriate default cursors and also passing the message
22893             up the parent chain 
22894           - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
22895             for non-client areas
22896
22897 2006-02-15  Jackson Harper  <jackson@ximian.com>
22898
22899         * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
22900         is a real MDI window
22901
22902 2006-02-14  Alexander Olk  <alex.olk@googlemail.com>
22903
22904         * X11DesktopColors.cs: Instead of checking the desktop session
22905           string for "KDE" check if it starts with "KDE"
22906
22907 2006-02-10  Jackson Harper  <jackson@ximian.com>
22908
22909         * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
22910         systems).
22911
22912 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
22913
22914         * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
22915           errors
22916         * ColorDialog.cs:
22917           - Got rid of the panel. All controls are now directly added to
22918             the dialog form
22919           - Changed to mono coding style
22920
22921 2006-02-10  Jackson Harper  <jackson@ximian.com>
22922
22923         * InternalWindowManager.cs: We don't need the set visibility to
22924         false hack anymore now that peter has written beautiful shutdown
22925         code.
22926
22927 2006-02-10  Peter Dennis Bartok  <pbartok@novell.com>
22928
22929         * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
22930           where already explicitly destroyed
22931
22932 2006-02-10  Jackson Harper  <jackson@ximian.com>
22933
22934         * MdiClient.cs: Handle the case where windows are too high or to
22935         the left and we need scrollbars.
22936
22937 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
22938
22939         * MimeIcon.cs: Added some icons
22940         * FileDialog.cs:
22941           - Fixed bug #77477
22942           - Got rid of the panel. All controls are now directly added to
22943             the dialog form
22944           - Changed to mono coding style
22945           - On Linux "My Computer" and "My Network" will now show some
22946             more usefull information. A new class, MasterMount, gathers
22947             this information from /proc/mount. Updated MWFFileView to make
22948             use of this information
22949           - Fixed a bug that caused FileDialog to crash when
22950             ".recently_used" file had a zero size
22951           - FilterIndex does now what it should
22952           - Some Refactoring
22953         * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
22954             FileDialog changes
22955
22956 2006-02-09  Jackson Harper  <jackson@ximian.com>
22957
22958         * ComboBox.cs: Don't touch if null.
22959
22960 2006-02-09  Peter Dennis Bartok  <pbartok@novell.com>
22961
22962         * Cursor.cs: 64bit safeness fix
22963         * XplatUIX11.cs: Removed several unneeded and one moronic cast.
22964
22965 2006-02-09  Jackson Harper  <jackson@ximian.com>
22966
22967         * Form.cs: If a form is made into an MDI form update the styles so
22968         all the props can get set correctly.
22969         - Kill the mdi_container when we dont need it anymore.
22970         * InternalWindowManager.cs: Add missing NOT
22971
22972 2006-02-08  Jackson Harper  <jackson@ximian.com>
22973
22974         * InternalWindowManager.cs: Respek clipping when drawing MDi
22975         decorations.
22976
22977 2006-02-08  Jackson Harper  <jackson@ximian.com>
22978
22979         * Hwnd.cs: Add bits to track non client expose events.
22980         * XplatUIX11.cs: Track non client expose events on the hwnd. This
22981         gives us a proper invalid rect and will allow for some nice
22982         optimizations with NC client drawing
22983         - MDI windows are children windows, so move their style handling
22984         into the child window block.
22985         * InternalWindowManager.cs: Remove a state reset that was
22986         getting invoked at the wrong time. Fixes managed windows getting
22987         into a 'stuck' captured state.
22988
22989 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
22990
22991         * TextControl.cs (Document.ctor): Now initializing 
22992           selection_anchor. Fixes #77493
22993
22994 2006-02-07  Jackson Harper  <jackson@ximian.com>
22995
22996         * TrackBar.cs: The increment/decrements were backwards.
22997
22998 2006-02-07  Mike Kestner  <mkestner@novell.com>
22999
23000         * Theme*.cs : remove ThemeEngine.Current usage as it just points back
23001         to the instance itself.
23002
23003 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
23004
23005         * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
23006           on ulongs and pointers, the size differs between 32bit and 64bit
23007           systems. 
23008
23009 2006-02-07  Mike Kestner  <mkestner@novell.com>
23010
23011         * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
23012         for 64 bit platforms to work around a metacity bug. 
23013
23014 2006-02-07  Jackson Harper  <jackson@ximian.com>
23015
23016         * TrackBar.cs: Process the input keys we need, and hookup to
23017         KeyDown instead of using WndProc, so we get key messages.
23018
23019 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com>
23020
23021         * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
23022           machine we're on. 
23023         * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
23024           we need to translate the XdndVersion atoms array before sending it
23025
23026 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com> 
23027
23028         * XplatUIX11.cs: 
23029           - The preceeding 64bit fixes had a bug: ChangeProperty expects the
23030             number of bits for the property, not the number of bytes. The
23031             change to provide IntPtr.Size broke 32bit. (64bit was also wrong
23032             but would not crash since it specified 8 bits instead of 4 bits)
23033           - More 64bit fixes: Switched all atoms from int to IntPtr (they are
23034             defined as XID -> long in the C headers)
23035           - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms 
23036             references since those are now IntPtr to begin with
23037           - Switched all Atom.XXX 'int' casts to IntPtr casts
23038           - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
23039           - Fixed XInternAtom signature for 64bit, now returns an IntPtr
23040           - Added XChangeActivePointerGrab DllImport (for X11DnD)
23041         * X11Structs.cs:
23042           - Changed 'int' type for Atoms in XEvent structures to IntPtr
23043           - Changed atom in HoverStruct to be IntPtr
23044         * X11DnD.cs:
23045           - Removed local DllImports, switched code to use those from XplatUIX11
23046           - Removed/fixed casts related to the switch of Atom to be a IntPtr
23047
23048 2006-02-06  Mike Kestner  <mkestner@novell.com>
23049
23050         * XplatUIX11.cs : many more 64 bit pinvoke changes.  I've audited all the 
23051         method signatures in the import region.  There may still be some
23052         lingering struct marshaling issues, as I didn't drill down into those.
23053         Yet.
23054
23055 2006-02-06  Jackson Harper  <jackson@ximian.com>
23056
23057         * ComboBox.cs: Dont manually set the top_item, this is computed
23058         when the scrollbar position is set.
23059
23060 2006-02-06  Mike Kestner  <mkestner@novell.com>
23061
23062         * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
23063         startup crashes on amd64.  There's other fixes needed.  All pinvoke
23064         usage of Atom needs to be mapped to IntPtr for example.  And there are
23065         likely other int/long issues to be addressed.
23066
23067 2006-02-04  Alexander Olk  <alex.olk@googlemail.com>
23068
23069         * FileDialog.cs: One more...
23070
23071 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
23072
23073         * FileDialog.cs: Next try
23074
23075 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
23076
23077         * FileDialog.cs: First part of fix for #77464
23078
23079 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
23080
23081         * ButtonBase.cs, ContainerControl.cs, Forms.cs,
23082           ThemeWin32Classic.cs: Fix for #77458. Correct handling of
23083           AcceptButton border drawing.
23084
23085 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com> 
23086
23087         * Form.cs: Moved positioning of form after auto scaling is applied,
23088           otherwise it would possibly use wrong form size.
23089
23090 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com>
23091
23092         * Control.cs (RecreateHandle): No need to re-create any child
23093           controls, the child windows will get destroyed automatically by
23094           the windowing system or driver, and re-created when the handle
23095           is being accessed the first time. Fixes #77456
23096         * Form.cs: No longer setting the form to closing if the handle is 
23097           being recreated. This seems like the right thing to do, don't
23098           have a bug or testcase for this, though.
23099
23100 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
23101
23102         * FileDialog.cs: Suspend/Resume layouting when changing sizes of
23103           controls to avoid unwanted side effects
23104
23105 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com> 
23106
23107         * Control.cs: 
23108           - ScaleCore needs to scale the bounds, not the ClientSize of the 
23109             control. Fixes #77416.
23110           - DefaultSize is 0,0 for control
23111         * TextBoxBase.cs: 
23112           - DefaultSize is 100, 20
23113           - SetBoundsCore: Now enforcing the height, no matter if the provided
23114             height is more or less than the preferred one, as long as AutoSize
23115             is on
23116         * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
23117
23118 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
23119
23120         * Control.cs:
23121           - ResumeLayout: Fixed logic when to call PerformLayout, we may not
23122             call unless both performLayout is true *and* we have a pending
23123             layout change
23124           - ResumeLayout: MS does not completely nest Suspend and Resume,
23125             they bottom out at 0, fixed our code to match that.
23126           - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
23127             SetBoundsCore, we were updating even when we shouldn't. This fixes
23128             swf-anchors mis-anchoring when resizing the app fast and lots.
23129           - UpdateDistances: Now only setting the left and top distance if 
23130             we have a parent and are not suspended, this is based on
23131             a suggestion by Don Edvaldson in bug #77355.
23132           - OnVisibleChanged: Fixed logic when to create the control. We may
23133             not create the control if we have no parent or if it's not visible;
23134             switched to using Visible property instead of is_visible field 
23135             since the property also considers parent states. This fixes a bug
23136             when starting Paint.Net
23137
23138 2006-02-02  Jackson Harper  <jackson@ximian.com>
23139
23140         * Form.cs: If the forms handle hasn't been created yet don't call
23141         into xplatui to make it top most, just set the topmost flag on the
23142         form in CreateParams
23143         * XplatUIX11.cs: Handle WS_EX_TOPMOST.
23144
23145 2006-02-01  Jackson Harper  <jackson@ximian.com>
23146
23147         * ScrollableControl.cs: Refactored the Recalculate method a
23148         little, this wasn't handling all the variants of bottom and right
23149         bars needed to be added and added/removed based on their
23150         counterparts being added/removed (which changes the drawable
23151         size). Also we special case client widths and heights of 0 and
23152         don't add the scrollbar for those.
23153
23154 2006-02-01  Peter Dennis Bartok  <pbartok@novell.com>
23155
23156         * XplatUIX11.cs: 
23157           - Added method to get AbsoluteGeometry(); currently unused, but might
23158             be used in the future, if we try again to figure out toplevel
23159             coordinates with some more crappy window managers
23160           - Added FrameExtents() method to retrieve the WM set decoration size
23161           - Tried to fix up AddConfigureNotify and handling of ReparentNotify 
23162             to deal with at least KDE, FVWM and metacity (Fixes #77092)
23163         * Hwnd.cs: 
23164           - Added whacky_wm tracking var for metacity
23165           - Added logic to have default menu height if the actual menu height
23166             has not yet been calculated (part of fix for #77426)
23167         * Form.cs: Keep track whether client size has been set and re-set 
23168           it if a menu is added/removed afterwards (Fixes #77426)
23169
23170 2006-01-31  Jackson Harper  <jackson@ximian.com>
23171
23172         * Control.cs: When a new Site is set on the component attempt to
23173         pull the AmbientProperties from it.
23174
23175 2006-01-31  Peter Dennis Bartok  <pbartok@novell.com>
23176
23177         * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
23178           in the background of the owning form. Fixes #77332
23179
23180 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
23181
23182         * MimeIcon.cs: Fix for #77409
23183
23184 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
23185
23186         * XplatUIX11GTK.cs: Initial import
23187
23188 2006-01-31  Jordi Mas i Hernandez <jordimash@gmail.com>
23189
23190         * FixedSizeTextBox: fixes class signature
23191
23192 2006-01-30  Jackson Harper  <jackson@ximian.com>
23193
23194         * FixedSizeTextBox.cs: New internal class that represents a
23195         textBox that will not be scaled.
23196         * TreeView.cs:
23197         * ComboBox.cs:
23198         * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
23199         standard TextBox.
23200                 
23201 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com> 
23202
23203         * XplatUIX11.cs: Retrieve default screen number instead of
23204           assuming 0. Attempted fix for #77318
23205
23206 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com>
23207
23208         * XplatUIWin32.cs: 
23209           - GetWindowPos: When a window is parented by FosterParent, use 
23210             the desktop instead of FosterParent as the base to get coordinates
23211           - CreateWindow: Don't make FosterParent the parent window for Popups
23212             if we don't want a taskbar entry, Popups automatically don't get one
23213         * Hwnd.cs: Need to call remove to actually remove the key from the
23214           hash table
23215
23216 2006-01-30  Mike Kestner  <mkestner@novell.com>
23217
23218         * MenuAPI.cs: adjust MainMenu item popup location to y=0.
23219
23220 2006-01-30  Jackson Harper  <jackson@ximian.com>
23221
23222         * TreeView.cs:
23223         * TreeNode.cs: Raise events no matter how the treenode is
23224         checked. Patch by Don Edvalson.
23225
23226 2006-01-30  Jackson Harper  <jackson@ximian.com>
23227
23228         * TreeNode.cs: Signature fix.
23229
23230 2006-01-29  Alexander Olk  <alex.olk@googlemail.com>
23231
23232         * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
23233
23234 2006-01-20  Mike Kestner  <mkestner@novell.com>
23235
23236         * Form.cs: Add ActiveTracker property to do Captures and perform mouse
23237         event forwarding when menus are active.
23238         * MenuAPI.cs: kill the GrabControl hack.  Use Form.ActiveTracker.
23239         Most of the patch is pdb's with a little rework.
23240
23241 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
23242
23243         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs: 
23244           Removed GetMenuDC and ReleaseMenuDC methods; replaced
23245           by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
23246         * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
23247         * InternalWindowManager.cs: Added use of PaintEventStart/End to
23248           handling of WM_NCPAINT message, now passing the PaintEventArgs to
23249           the PaintWindowDecorations method
23250         * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
23251         * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
23252         * MenuAPI.cs: Made tracker window invisible
23253         * XplatUIWin32.cs:
23254           - Removed GetMenuDC and ReleaseMenuDC methods
23255           - Implemented the client=false path for PaintEventStart and
23256             PaintEventEnd
23257
23258 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
23259
23260         * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
23261         * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
23262           styles
23263         * Form.cs: 
23264           - MaximizeBox, MinimizeBox: Recreate the handle when setting
23265             the style
23266           - CreateParams: Reworked the styles to match MS look'n'feel,
23267             removed automatic setting of MinimizeBox, MaximizeBox, etc. via
23268             the WS_OVERLAPPEDWINDOW style. This fixes #76823.
23269
23270 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
23271
23272         * XplatUIX11.cs(GetWindowState): Now throwing an exception when the 
23273           window is not mapped, since otherwise every form that's being 
23274           created is considered minimized, which is wrong.
23275         * Form.cs: Catching the exception and returning our internal value
23276           instead
23277
23278 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
23279
23280         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
23281           SetWindowMinMax() to have means to tell the driver about the minimum,
23282           maximum and maximized state window sizes. (Part of the fix for #76485)
23283         * Form.cs:
23284           - Implemented tracking of minimum and maximum window size, now calling
23285             new SetWindowMinMax() driver method to tell the driver (Part of the
23286             fix for #76485)
23287           - Finished handling of WM_GETMINMAXINFO method, now setting all values
23288             (Completes fix for #76485)
23289           - Calling new SetWindowMinMax driver method when the handle for a 
23290             form is created, to make sure the driver knows about it even if
23291             the values have been set before the window was created
23292           - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
23293             to avoid messing up our anchoring calculations (partial fix
23294             for #77355)
23295         * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
23296         * XplatUIX11.cs:
23297           - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
23298           - Improved GetWindowState() to detect 'Minimized' state on Metacity 
23299             (and presumably other freedesktop.org compliant WMs). Left the
23300             assumption unmapped=minimized, needed for SetVisible to work.
23301           - Now setting the window state when creating windows
23302           - Fixed SetVisible to consider/set the window state when mapping
23303             a Form. We cannot set the state before it's mapped, and we cannot
23304             use Form.WindowState once it's mapped (since it would ask the
23305             driver and get 'normal'. Therefore, we grab the state before
23306             mapping, map, and then set state.
23307           - Implmemented SetWindowMinMax method; Metacity does not seem to
23308             honor the ZoomHints, though.
23309         * XplatUIWin32.cs:
23310           - Removed MINMAXINFO (moved to XplatUIStructs)
23311           - Added SetWindowMinMax stub (on Win32 the only way to set that
23312             information is in response to the WM_GETMINMAXINFO message, which
23313             is handled in Form.cs)
23314           - Added logic to SetVisible to set the proper window state when a 
23315             form is made visible (fixes #75720)
23316
23317 2006-01-26  Jackson Harper  <jackson@ximian.com>
23318
23319         * Control.cs (BeginInvoke): Automagically handle EventHandlers the
23320         same way we handle them with Invoke.
23321
23322 2006-01-25  Peter Dennis Bartok  <pbartok@novell.com> 
23323
23324         * Form.cs:
23325           - Added tracking of window state so CreateParams can return
23326             the appropriate style
23327           - Moved setting of WS_CAPTION style in CreateParams to allow
23328             styles without caption
23329         * DataGridTextBoxColumn.cs: We are now also creating the TextBox 
23330           control if the TextBox property is accessed. Fixes #77345
23331         * Control.cs:
23332           - get_Created: now uses is_disposed and is_created to determine
23333             return value (suggested by Jackson)
23334           - CreateHandle: No longer exits if the handle is being recreated
23335           - RecreateHandle: If the handle is not yet created call the 
23336             appropriate method to create either control or handle. If the
23337             control is already created CreateHandle will simply exit instead
23338             of just creating the handle
23339         * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
23340           now SendMessage WM_DESTROY directly to the control when DestroyWindow
23341           is called.
23342         * XplatUIX11.cs: 
23343           - When DestroyWindow is called, instead of waiting for the 
23344             DestroyNotification from X11, we directly post it to the WndProc
23345             and immediately dispose the hwnd object.
23346             Same applies to DestroyChildWindows, and this obsoletes the
23347             expose_pending tracking. Contrary to Win32 behaviour we destroy our
23348             child windows before our own, to avoid X11 errors.
23349           - Removed the direct sending of WM_PAINT on UpdateWindow
23350         * XplatUIWin32.cs:
23351           - Reworked DoEvents and GetMessage to allow access to internal queue
23352             even when trying non-blocking access to the queue.  Fixes #77335. 
23353             Based on a patch suggestion by Don Edvalson. The new private
23354             GetMessage can now also be used as a backend for a PeekMessage
23355             frontend version.
23356         * XplatUI.cs: Improved debug output for CreateWindow
23357
23358 2006-01-25  Jackson Harper  <jackson@ximian.com>
23359
23360         * Help.cs: Allow param to be null. Patch by Don Edvalson.
23361
23362 2006-01-24  Jackson Harper  <jackson@ximian.com>
23363
23364         * ComboBox.cs: Clamp the max value set for the vertical scrollbar
23365         when we have a MaxDropItems lower then the selected index.
23366
23367 2006-01-24  Jackson Harper  <jackson@ximian.com>
23368
23369         * Control.cs: Don't allow selection of non visible controls, allow
23370         selection of controls without parents.
23371
23372 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
23373
23374         * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
23375         * DataGridDrawingLogic.cs: Add editing row only when is necessary
23376
23377 2006-01-23  Jackson Harper  <jackson@ximian.com>
23378
23379         * UpDownBase.cs: Make the textbox handle all the selection and
23380         tabbing. This fixes tabing to updown controls.
23381
23382 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
23383
23384         * TextBoxBase.cs: fixes exception thown the object was null
23385
23386 2006-01-23  Jackson Harper  <jackson@ximian.com>
23387
23388         * ButtonBase.cs: Just use the base CreateParams. They set
23389         visibility and enabled correctly.
23390         * ComboBox.cs:
23391         * TrackBar.cs:
23392         * MonthCalendar.cs: Lets let the base set as much of the
23393         createparams as possible so we don't have duplicate code all over
23394         the place.
23395
23396 2006-01-22  Alexander Olk  <alex.olk@googlemail.com>
23397
23398         * ThemeGtk.cs: Added TrackBar and some experimental code to
23399           get double buffering back
23400
23401 2006-01-21  Jordi Mas i Hernandez <jordimash@gmail.com>
23402
23403         * DataGrid.cs: Allows row number set internally higher than the last
23404         when creating a new row. Restores the editing functionality.
23405
23406 2006-01-20  Mike Kestner  <mkestner@novell.com>
23407
23408         * MimeIcon.cs: delay Image creation until the icons are accessed
23409         instead of creating 190 scaled images on GnomeHandler startup.
23410
23411 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com> 
23412
23413         * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
23414           first call base before processing the event. Fixes #77279
23415
23416 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com>
23417
23418         * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
23419           that the stride for the GDI bitmap would match the stride of
23420           a DIB or a Cursor.
23421
23422 2006-01-19  Alexander Olk  <alex.olk@googlemail.com>
23423
23424         * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
23425
23426 2006-01-19  Jackson Harper  <jackson@ximian.com>
23427
23428         * ComboBox.cs: Hookup the text controls keydown event so we get
23429         those when the text control has the focus.
23430
23431 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
23432
23433         * Label.cs: Now using the base events instead of defining new ones;
23434           this allows us to just call the base properties without having to
23435           duplicate all base property logic 
23436
23437 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
23438
23439         * Label.cs: A label by default is not a tabstop (Fixes one of our
23440           failing nunit tests)
23441
23442 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
23443
23444         * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
23445         * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
23446
23447 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
23448
23449         * Cursor.cs: Reimplemented creating cursor bitmaps without using
23450           the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
23451           This fixes #77218
23452         * XplatUIWin32.cs: 
23453           - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream) 
23454             constructor creates images that can't be saved. Part of the fix
23455             for #76103
23456           - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
23457           - SetWindowState: Switched ShowWindow flags (part of an upcoming 
23458             bug fix for handling window state in forms properly)
23459
23460 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
23461
23462         * ThemeGtk.cs: Simplify ScrollBar drawing
23463
23464 2006-01-18  Jackson Harper  <jackson@ximian.com>
23465
23466         * Splitter.cs: Set the default dock style for the splitter control
23467         in the constructor.
23468
23469 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
23470
23471         * ThemeGtk.cs: Corrected StateType and ShadowType for
23472           gtk_paint_box
23473
23474 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
23475
23476         * Control.cs: Make use of Theme.DoubleBufferingSupported
23477         * ThemeGtk.cs:
23478           - Added drawing for flat style buttons
23479           - Added ScrollBar drawing
23480
23481 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
23482
23483         * ThemeClearlooks.cs: Removed some unneeded code.
23484         * ThemeGtk.cs: First part of ThemeGtk enhancements.
23485
23486 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
23487
23488         * LinkLabel.cs: We need to update the hover drawing when
23489           leaving the control as well.
23490
23491 2006-01-18  Jordi Mas i Hernandez <jordimash@gmail.com>
23492
23493         * DataGrid.cs: Clicking on non empty areas in the columns
23494            area was giving an exception
23495
23496 2006-01-17  Jackson Harper  <jackson@ximian.com>
23497
23498         * ThemeWin32Classic.cs:
23499         * ListView.cs: Do not draw/clip the headers when the header style
23500         is None.
23501
23502 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
23503
23504         * DataGrid.cs: Fixes 77260
23505         
23506 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
23507
23508         * DataGrid.cs: Clicking on a column on a empty grid was giving
23509           an exception
23510
23511 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
23512
23513         * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
23514           or any keypress will crash the grid.
23515
23516 2006-01-17  Mike Kestner  <mkestner@novell.com>
23517
23518         * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
23519         * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for 
23520         invisible/previously-visible items.
23521         [Fixes #76909]
23522
23523 2006-01-17  Alexander Olk  <alex.olk@googlemail.com>
23524
23525         * ThemeClearlooks.cs:
23526         - Added CL_Draw_Button method; now other theme controls that are 
23527           not derived from button or do not have a button can draw buttons
23528           too
23529         - Updated ComboBox drawing
23530         - Beautified RadioButton drawing
23531         - Corrected drawing of bottom and left tabs
23532         - Beautified DateTimePicker and MonthCalendar
23533         - Added CPDrawButton and CPDrawRadioButton
23534
23535 2006-01-16  Jackson Harper  <jackson@ximian.com>
23536
23537         * ComboBox.cs: Set the initial value of the scrollbar to the
23538         current index. Reduce the numbers of refreshs and IndexOfs called.
23539
23540 2006-01-14  Alexander Olk  <alex.olk@googlemail.com>
23541
23542         * FileDialog.cs: When the file listview is focused hitting the
23543           backspace key moves the fileview to the parent directory
23544
23545 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
23546
23547         * Form.cs: 
23548           - Added RecreateHandle call when changing taskbar visibility to 
23549             trigger reparenting in Win32 driver (Fixes #75719)
23550           - If a window has minimize or maximize buttons, it cannot have
23551             a help button
23552         * XplatUIWin32.cs:
23553           - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
23554             the toplevel form with FosterParent (A toolwindow not on the
23555             taskbar) (Fixes #75719)
23556           - Made FosterParent a toolwindow
23557
23558 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
23559
23560         * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
23561
23562 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
23563
23564         * ToolTip.cs: If SetToolTip is called from a control and the mouse
23565           is currently over that control, make sure that tooltip_window.Text
23566           gets updated
23567
23568 2006-01-13  Mike Kestner  <mkestner@novell.com>
23569
23570         * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
23571
23572 2006-01-13  Jackson Harper  <jackson@ximian.com>
23573
23574         * TreeView.cs: On MS GetNodeAt never actually factors in the X
23575         value passed.  Also redraw the selected node when we recieve
23576         focus, so tabbing between trees works correctly.
23577
23578 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
23579
23580         * MimeIcon.cs: GnomeHandler: older gnome versions don't have
23581           ~/.gconf/%gconf-tree.xml, so use
23582           .gconf/desktop/gnome/interface/%gconf.xml
23583
23584 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
23585
23586         * TextControl.cs: Draw text in gray if control is disabled
23587
23588 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
23589
23590         * TreeView.cs: Draw the focus rectangle outside the highlight, to
23591           make sure it's always visible. Fixes #76680.
23592
23593 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
23594
23595         * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
23596
23597 2006-01-13  Jonathan Chambers  <jonathan.chambers@ansys.com>
23598
23599         * PageSetupDialog.cs: Added.
23600         * PrintDialog.cs: Attributes.
23601         * PrintPreviewControl.cs: Updates.
23602         * PrintPreviewDialog.cs: Updates.
23603         
23604 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
23605
23606         * Control.cs: Undid my selection check fix, since it's not needed
23607         * TextBoxBase.cs:
23608           - Now considering the presence of hscroll/vscroll when sizing
23609             vscroll/hscroll respectively. Fixed bug #77077
23610           - Added Left/Up/Down/Right to IsInputKey list to prevent
23611             ContainerControl from stealing them. This fixes what I broke
23612             with my last checkin.
23613
23614 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com> 
23615
23616         * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
23617           I finally understand how the property can be set without a setter :-)
23618
23619 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
23620
23621         * Application.cs:
23622           - Switched RunLoop to use static Message.Create to create a 
23623             Message object
23624           - Added PreProcessMessage call in runloop for keyboard events; this
23625             is part of the fix for #77219, I overlooked this originally in the
23626             MSDN doc for PreProcessMessage
23627         * Control.cs:
23628           - Removed call to PreProcessMessage from handling of keyboard 
23629             messages; it's supposed to be done in the message pump
23630           - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
23631             per MSDN documentation.
23632           - IsInputChar: All chars are input chars by default; removed the 
23633             parent calling chain, MS does not document that
23634           - PreProcessMessage: If IsInputChar is true, we want to return false
23635             to allow dispatching of the message
23636           - When selecting the next control, now also check that we're not
23637             selecting ourselves again and therefore return a false positive.
23638         * TextBoxBase.cs:
23639           - Tried to match return values for IsInputKey and ProcessDialogKey
23640             to what MS returns; moved processing of our special keys outside
23641             ProcessDialogKey since MS does not seem to return true on those.
23642           - Moved code that previously was in ProcessDialogKey into new private
23643             ProcessKey method, which gets called upon receipt of WM_KEYDOWN
23644           - Reworked handling of WM_CHAR to not have to duplicate code from
23645             Control.cs anymore, instead we simply call down to base.
23646            
23647 2006-01-12  Jackson Harper  <jackson@ximian.com>
23648
23649         * ComboBox.cs: We always need to refresh the text area when
23650         EndUpdate is called. Fixes the combobox in the file dialog.
23651         * Control.cs: Don't create the creator_thread until the controls
23652         handle is created.  Also in InvokeRequired we check if the
23653         creator_thread is null. This gives the effect of InvokeRequired
23654         returning true if the controls handle is not created yet, and
23655         matches MS.
23656
23657 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
23658
23659         * XplatUI.cs:
23660           - Added StartLoop() driver method. This is used to allow drivers to
23661             prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
23662             loop for a particular thread
23663           - Added EndLoop() driver method. This is called once the message
23664             pump for the thread is shut down
23665           - Added SupportsTransparency method to allow the driver to indicate
23666             opacity support for windows
23667         * Form.cs:
23668           - Removed TODO attribute, completed AllowTransparency property
23669           - Added documented logic to Opacity
23670         * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
23671           ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
23672           versions of CompatibleTextRendering
23673         * X11Structs.cs: Added opacity atom to our atom enumeration
23674         * Hwnd.cs: Added opacity tracking (we need to track since the opacity
23675           of a form might be set before it's reparented by the WM, and we need
23676           the opacity value without calling up to Form)
23677         * XplatUIDriver.cs: Added StartLoop(), EndLoop() and 
23678           SupportsTransparency() driver methods
23679         * Application.cs: Now calling StartLoop and EndLoop driver methods
23680         * XplatUIX11.cs:
23681           - Added opacity atom registration
23682           - Added StartLoop()/EndLoop() methods. They're empty right now but
23683             will need to get implemented when we switch to a per-thread queue
23684           - Implemented SupportsTransparency() method
23685           - Implemented SetWindowTransparency() method
23686           - Added support for setting the opacity value when a window is
23687             reparented (since the opacity needs to be set on the WM frame)
23688         * XplatUIOSX.cs, XplatUIWin32.cs:
23689           - Added SupportsTransparency(), StartLoop() and EndLoop() methods
23690
23691 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
23692
23693         * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
23694
23695 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
23696
23697         * FileDialog.cs: Added ToolTip for MWFFileView
23698         * MimeIcon.cs: Rewrote GnomeHandler.
23699           - Get currently used gnome icon theme from
23700             ($HOME)/.gconf/%gconf-tree.xml
23701           - Make use of inherited icon themes
23702           - Support SVG icon themes like Tango via librsvg
23703
23704 2006-01-12  Miguel de Icaza  <miguel@novell.com>
23705
23706         Revert's Jackson's revert which broke 2.0 builds.   Fix both
23707         builds. 
23708         
23709         * Application.cs: Move the use_compatible_text_rendering outside
23710         the NET_2_0 define.  If we ever need to use the
23711         use_compatible_text_rendering on the individual controls they will
23712         access the variable from the common shared code paths.
23713
23714 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
23715
23716         * XplatUI.cs:
23717           - Added more granular debug options
23718           - Added method to print both window text and id
23719           - Switched debug output to use new Window() debug method
23720           - Added IsEnabled() driver method
23721           - Added EnableWindow() driver method
23722         * Form.cs:
23723           - Removed end_modal; no longer needed, new loop handles termination
23724             via 'closing' variable
23725           - If form is modal, setting DialogResult will now initiate loop
23726             termination via 'closing' variable
23727           - Added support for is_enabled/WS_DISABLED to CreateParams
23728           - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
23729             does all the work
23730           - Removed code that's now in RunLoop from ShowDialog()
23731           - Added various documented sanity checks to ShowDialog()
23732           - Added handling of WM_DESTROY message; we set 'closing' on getting
23733             the message to indicate the message pump to terminate
23734           - Added handling of new internal WM_CLOSE_INTERNAL message - it's
23735             send by the Application.ExitThread method. (We send the message
23736             to destroy the window after all other events have been
23737             processed through the queue, instead of destroying the handle 
23738             directly)
23739           - Moved code from Close() method to WM_CLOSE handler; added logic
23740             to only send close-related events if the form is not displayed
23741             modal
23742         * Splitter.cs (..ctor): Fixed typo in resource name
23743         * Control.cs:
23744           - DrawBackgroundImage: Explicitly selecting the wrap mode for the
23745             brush now
23746           - set_Cursor: Now only setting calling into XplatUI if the handle for
23747             the control is already created; this avoids implict handle creation
23748             or crashes if it's not created
23749           - set_Enabled: Now setting the enabled state via the new driver method
23750             instead of just tracking it
23751           - CreateParams: Added logic to set WS_DISABLED based on enabled state
23752           - CreateControl: Reordered event firing and method calls to more
23753             closely fire events in the order MS does. Now setting the
23754             enabled state in the driver when creating the control.
23755           - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
23756             match MS order
23757         * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
23758           MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED 
23759         * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
23760         * Hwnd.cs:
23761           - Added tracking of window enabled state (get_Enabled/set_Enabled)
23762           - Added EnabledHwnd property to easily allow a driver to find the
23763             handle of the first enabled window in the parent chain (this is
23764             used by drivers to pass up input events of disabled windows)
23765         * XplatUIDriver.cs: Added IsEnabled() method
23766         * Application.cs:
23767           - Removed crude and obsolete exiting tracking variable
23768           - Removed internal ModalRun(); replaced by RunLoop()
23769           - Implemented private CloseForms() method to allow closing all 
23770             windows owned by a particular (or all) threads
23771           - Exit() now properly closes all windows without forcing the message
23772             pump to quit
23773           - Removed obsolete InternalExit() method
23774           - Changed Run() methods to use new RunLoop() message pump
23775           - Implemented new RunLoop() method for both modal and non-modal forms
23776         * CommonDialog.cs:
23777           - get_CreateParams: Added setting of WS_DISABLED
23778           - Simplified ShowDialog(); now all the work is done in RunLoop(),
23779             invoked via Form.ShowDialog()
23780         * NativeWindow.cs: We don't remove the window from the collection when
23781           the handle is destroyed; there might still be messages for it in the
23782           queue (mainly the resulting WM_DESTROY); instead it will be removed
23783           when Control calls InvalidateHandle in the WM_DESTROY handler
23784         * XplatUIX11.cs:
23785           - CreateWindow: Added logic to handle the WS_DISABLED window style
23786           - EnableWindow: Implemented based on Hwnd.Enabled
23787           - GetMessage: Reset PostQuitState so the method can be called again
23788           - Implemented support for disabled windows (passing messages to the
23789             first enabled parent) in handling all input messages
23790           - Added optimizations for handling Expose events
23791           - Implemeted new driver method IsEnabled()
23792           - Now always resetting paint pending tracking vars when we start paint
23793           - Re-implemented UpdateWindow via just sending a WM_PAINT message
23794         * XplatUIOSX.cs: Added IsEnabled method stub
23795         * XplatUIWin32.cs: Implemented new IsEnabled() method
23796
23797 2006-01-11  Jackson Harper  <jackson@ximian.com>
23798
23799         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
23800         LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
23801         variables a little.
23802         * ColorDialog.cs: Clear out the old form before adding the new
23803         panel.  
23804
23805 2006-01-11  Jackson Harper  <jackson@ximian.com>
23806
23807         * X11Dnd.cs: Make sure to add all the text formats when adding
23808         strings to the data object.
23809         * TreeNodeCollection.cs: When adding to a sorted tree we need to
23810         do some redrawing too.  Also change the UpdateNode to an
23811         UpdateBelow so the newly added node gets painted.
23812         
23813 2006-01-11  Miguel de Icaza  <miguel@novell.com>
23814
23815         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
23816         LinkLabel.cs, PropertyGrid.cs: Implement the
23817         UseCompatibleTextRendering property for 2.x
23818
23819         * Application.cs (SetCompatibleTextRenderingDefault): Add. 
23820
23821 2006-01-11  Jackson Harper  <jackson@ximian.com>
23822
23823         * TreeView.cs: Use the property for setting the selected node so
23824         the correct events get raised.
23825         * TreeNode.cs: Update the tree when the fore/back colours of a
23826         node are set.
23827
23828 2006-01-10  Jackson Harper  <jackson@ximian.com>
23829
23830         * TreeView.cs: Allow setting SelectedNode to null.
23831
23832 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
23833
23834         * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
23835
23836 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
23837
23838         * PrintControllerWithStatusDialog.cs: Update page number in dialog.
23839
23840 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
23841
23842         * PrintDialog.cs: Added attributes and set default property values.
23843
23844 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
23845
23846         * PrintControllerWithStatusDialog.cs: 
23847         Added PrintControllerWithStatusDialog.
23848
23849 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
23850
23851         * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
23852         XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
23853
23854 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
23855
23856         * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
23857
23858 2006-01-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
23859
23860         * ComboBox.cs: Added KeyDown event handler for processing arrow keys
23861         and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
23862
23863 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
23864
23865         * MimeIcon.cs: Added internal class SVGUtil.
23866
23867 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
23868
23869         * FileDialog.cs: Don't crash if there are two files with the
23870           same name but different locations.
23871
23872 2006-01-08  John BouAntoun  <jba-mono@optusnet.com.au>
23873
23874         * MonthCalendar.cs: Fixed annoying rendering bug when selecting
23875         dates across multiple month grids. Used to not highlight entire 
23876         month, but does now.
23877         
23878 2006-01-06  Jackson Harper  <jackson@ximian.com>
23879
23880         * MonthCalendar.cs: Removed DoEvents call to prevent a running
23881         message loop. Change timer intervals to numbers that seem more
23882         natural.
23883
23884 2006-01-06  John BouAntoun  <jba-mono@optusnet.com.au>
23885
23886         * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
23887           object for location info since screen object is now implemented.
23888
23889 2006-01-05  Jackson Harper  <jackson@ximian.com>
23890
23891         * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
23892         * AsyncMethodResult.cs: We no longer use a WeakReference for the
23893         AsyncMethodResult, this is because we ALWAYS want the
23894         ManualResetEvent to get set.
23895         * Control.cs: When disposing use an async invoke to call shutdown
23896         code, so that thigns don't block on the finalizer thread.  Also
23897         check if we even have a message loop before trying to send
23898         messages, if we don't then don't bother sending messages.
23899         - No more weak references for async methods
23900         * XplatUIDriver.cs: No more weak references for async methods.
23901
23902 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
23903
23904         * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
23905           returns two FontFamily with the same name
23906
23907 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
23908
23909         * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of 
23910           drawing disabled text. Instead using the ColorGrayText color
23911
23912 2006-01-04  Jackson Harper  <jackson@ximian.com>
23913
23914         * TreeNode.cs: redraw the node when its image index is changed.
23915
23916 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
23917
23918         * RichTextBox.cs: Same fix as last, just for SelectionColor. This
23919           time I checked there are no others like it.
23920
23921 2006-01-04  Jackson Harper  <jackson@ximian.com>
23922
23923         * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
23924         this gives the behavoir I was looking for.
23925         * Control.cs: Special case Invoking EventHandlers, this matches MS
23926         and fixes part of bug #76326.
23927
23928 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
23929
23930         * ThemeClearlooks.cs, FileDialog.cs:
23931           - Reflect the latest Theme class changes
23932           - Remove Mono.Unix.Syscall.time in FileDialg and replace it 
23933             with DateTime
23934             
23935 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
23936
23937         * Theme.cs: Cache UI resource images and resize them if needed
23938
23939 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
23940
23941         * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
23942           is called. This fixes the crash in Nexxia when setting the font
23943           attributes in the chat. [However, RTF needs a look-over to make sure
23944           that all SelectionXXX methods handle the special case that selection
23945           is empty and therefore the change must be applied to all text starting
23946           at the cursor/selection start]
23947
23948 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com> 
23949
23950         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
23951           XplatUIOSX.cs: Added SendMessage and PostMessage methods
23952         * X11Keyboard.cs: Switched to new way of calling PostMessage
23953
23954 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
23955
23956         * Theme.cs: Added theme interface for images to allow the theme to
23957           control what images are used for things like FileDialog, MessageBox
23958           icons, etc.
23959         * MessageBox.cs: Now uses the new Theme icon/image interfaces
23960
23961 2006-01-03  Alexander Olk  <alex.olk@googlemail.com>
23962
23963         * FileDialog.cs:
23964           - Removed some dead code
23965           - Opening a recently used file does work now
23966           - Small UI enhancements
23967           - Refactoring
23968
23969 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
23970
23971         * FileDialog.cs: Forgot too add __MonoCS__
23972
23973 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
23974
23975         * FileDialog.cs: We are able to read recently used files now let's
23976           go on and write them.
23977
23978 2006-01-01  Alexander Olk  <alex.olk@googlemail.com>
23979
23980         * FileDialog.cs: Breathe some life into "last open"/"recently used"
23981           button
23982         * MimeIcon.cs: Do a check for the top level media type also
23983
23984 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
23985
23986         * ThemeClearlooks.cs:
23987           - Added CPDrawStringDisabled
23988           - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
23989             some chars if the text doesn't fit into text_rect
23990           - DrawListViewItem: If View = View.LargeIcon center the image;
23991             rewrote the drawing of ListViewItem.Text if View = 
23992             View.LargeIcon
23993
23994 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
23995
23996         * MimeIcon.cs: Use default KDE icon theme if there is no
23997           "48x48" directory for the current icon theme, fixes #77114
23998         * Mime.cs: Disable not working and actually not used code. 
23999         * ThemeWin32Classic.cs:
24000           - Replace "new SolidBrush" in GetControlBackBrush and
24001             GetControlForeBrush with ResPool.GetSolidBrush
24002           - Changed DrawListViewItem from private to protected virtual
24003         * FileDialog.cs:
24004           - Added form.MaximizeBox = true
24005           - Don't throw an exception if there is a broken symbolic link
24006
24007 2005-12-23  Jackson Harper  <jackson@ximian.com>
24008
24009         * TabControl.cs: Give the panels focus, keyboard navigation is
24010         fixed so this works correctly now.
24011         - We need these key events also.
24012         * ToolBar.cs: Remove some of the poor mans double buffering.
24013         
24014 2005-12-24  Alexander Olk  <alex.olk@googlemail.com>
24015
24016         * ComboBox.cs: The internal TextBox now returns the focus.
24017
24018 2005-12-23  Jackson Harper  <jackson@ximian.com>
24019
24020         * ThemeWin32Classic.cs:  Draw the text for all tab appearances.
24021
24022 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
24023
24024         * Control.cs: Removed debug code
24025         * XplatUIX11.cs: Changed DestroyChildWindows to also consider
24026           implicit children
24027
24028 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com> 
24029
24030         * Control.cs: When creating the control, update the Z-order after
24031           all it's children are created, too. (Fixes nexxia not showing
24032           picturebox bug)
24033
24034 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
24035
24036         * Control.cs: Do not update the anchoring distances if layout is
24037           suspended, instead do it once layout is resumed
24038
24039 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com> 
24040
24041         * Control.cs: 
24042           - After many hours of debugging, for both Jackson and
24043             myself, it turns out that it helps to set the parent of a control
24044             if you want to actually see it onscreen. In the spirit of that
24045             discovery, we're now setting the parent of the control and
24046             it's children when the control's handle is created. This fix
24047             will make Lutz Roeder's Reflector run happily. 
24048           - now just creating the handle instead of the whole control when
24049             getting a graphics context for the control.
24050
24051 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
24052
24053         * ScrollableControl.cs: When calculating the canvas, don't consider
24054           the scrollbar widths. Instead, predict if horizontal scrollbar
24055           will affect canvas when deciding on vertical display and vice versa.
24056
24057 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
24058
24059         * RichTextBox.cs: Set default RTF font for documents that don't
24060           have a font table (Fixes #77076)
24061
24062 2005-12-22  Jackson Harper  <jackson@ximian.com>
24063
24064         * TextBoxBase.cs: It's difficult to do, but you can have an empty
24065         clipboard. This prevents a NullRef in that case.
24066         * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
24067         clipboard. PRIMARY is for the currently selected text only. (We
24068         should implement PRIMARY at some point.
24069
24070 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
24071
24072         * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
24073           a Unicode function with a structure that was defined in Ansi way.
24074           This fixes #76942.
24075
24076 2005-12-21  Jackson Harper  <jackson@ximian.com>
24077
24078         * StatusBar.cs: Statusbar handles its fore/back colours on it's
24079         on. Because thats how it rolls. (and this avoids it using ambient
24080         colours).
24081         * ThemeWin32Classic.cs: Use the proper back color for filling.
24082         * Menu.cs: Use the system menu bar color for drawing menu
24083         bars. Using the window back color will bring ambient colours into
24084         the picture.
24085
24086 2005-12-21  Alexander Olk  <alex.olk@googlemail.com>
24087
24088         * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
24089           Bitmaps were created and not disposed.
24090
24091 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
24092
24093         * Control.cs (CreateControl): Don't do anything if the control is
24094           already created, otherwise we'd fire the OnCreated event more than
24095           once
24096
24097 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
24098
24099         * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
24100           will always match. Instead return -1. Fixes #76464.
24101
24102 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
24103
24104         * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
24105           neither the beginning nor the end of the line (Fixes bug #76479)
24106
24107 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
24108
24109         * Control.cs:
24110           - ControlNativeWindow.ControlFromHandle(): Now handling situation
24111             where handle is invalid
24112           - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
24113             instead of slower linear search
24114         * NativeWindow.cs: Don't remove the window from the hashtable until
24115           after the driver has destroyed it (since the driver might use
24116           Control.FromHandle to lookup the control object
24117         * Hwnd.cs: Added DestroyPending property to track if a window is 
24118           already destroyed as far as the driver is concerned and only hasn't
24119           yet notified the control
24120         * XplatUIX11.cs:
24121           - Activate(): Check if the window is still valid before using the 
24122             handle
24123           - Implemented DestroyChildWindow() method to mark child windows as
24124             destroyed when a window is destroyed. This prevents situations 
24125             where we might call an X method based on queued events for a
24126             window that already has been destroyed but we haven't yet pulled
24127             the destroy method from the queue.
24128           - Added a call to the new DestroyChildWindow() method to the drivers
24129             DestroyWindow code. Also now marking the destroyed window itself
24130             as pending
24131
24132 2005-12-20  Jackson Harper  <jackson@ximian.com>
24133
24134         * StatusBar.cs:
24135         * StatusBarPanel.cs: Don't calculate panel sizes on draw
24136         anymore. Just do them when needed, also track the rects of panels
24137         so that we can optimize refreshing more in the future.
24138
24139 2005-12-20  Alexander Olk  <alex.olk@googlemail.com>
24140
24141         * ColorDialog.cs: Fixed focus drawing in small color controls
24142
24143 2005-12-19  Jackson Harper  <jackson@ximian.com>
24144
24145         * InternalWindowManager.cs:
24146         * MdiWindowManager.cs: Cleanup some coordinate system changes so
24147         moving windows works properly.
24148
24149 2005-12-19  Peter Dennis Bartok  <pbartok@novell.com> 
24150
24151         * Control.cs: 
24152           - Removed call to InitLayout() from SetBoundsCore(); doc says
24153             it's only called when a control is added to a container
24154           - Split InitLayout logic, moved to separate UpdateDistances() method
24155             since we need to perform those calculations more often than just
24156             when adding the control to a container. (Needed to fix #77022)
24157           - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
24158           - Reduced the OnBindingContextChanged events count, don't send them
24159             unless the control is created, we still aren't totally matching
24160             MS, but I can't quite figure out some of their rules
24161
24162 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
24163
24164         * ThemeClearlooks.cs: Corrected distance between ProgressBar
24165           stripes
24166
24167 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
24168
24169         * ThemeClearlooks.cs:
24170           - Updated ProgressBar drawing
24171           - Corrected drawing of ScrollBars and scroll buttons
24172           - Some temporary fixes for minor pixel artefacts
24173
24174 2005-12-18  Peter Dennis Bartok  <pbartok@novell.com> 
24175
24176         * Control.cs:
24177           - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
24178             cause events to be sent in the same order as MS does.
24179           - Added ChangeParent() method to trigger various OnXXXChanged events
24180             that need to be fired when a parent changes (This is a reworking
24181             of the patch from r54254, with the X11 errors fixed)
24182           - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
24183             since on MS we get OnLayoutChanged events when calling Clear()
24184           - Changed Enabled property to consider parent state as well, if a
24185             parent is not enabled, the control will not be either
24186           - Changed Parent property to simply call Controls.Add() since that
24187             now does all the work required, this way we avoid code duplication
24188           - Threw in a few OnBindingsContextChanged calls to try and match
24189             when MS sends them. We seem to send a few too many, though.
24190           - Added call to CreateControl when adding the control to a parent.
24191             We were never calling CreateControl. Still needs some work, in
24192             some places we treat HandleCreated and ControlCreated as equal, 
24193             which is wrong
24194           - Removed obsolete commented out code from UpdateZOrder()
24195
24196 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
24197
24198         * ThemeClearlooks.cs: Updated TrackBar drawing.
24199
24200 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
24201
24202         * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
24203
24204 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
24205
24206         * FileDialog.cs: Add the Help button and the open readonly
24207           checkbox only if needed
24208
24209 2005-12-16  Jackson Harper  <jackson@ximian.com>
24210
24211         * Control.cs: Make sure we have an active menu before trying to
24212         process commands on it. Prevents menu-less forms from crashing
24213         when Alt is pressed.
24214         * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
24215         Dieter Bremes.
24216         * RichTextBox.cs: Expand statement to help out gmcs and fix the
24217         2.0 build.
24218
24219 2005-12-16  Jackson Harper  <jackson@ximian.com>
24220
24221         * InternalWindowManager.cs: Don't translate tool windows screen
24222         coordinates. This fixes windows 'bouncing' around when being moved.
24223
24224 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
24225
24226         * TextBoxBase.cs:
24227           - MaxLength now treats 2^31-1 equal to unlimited length (this is
24228             not quite MS compatible, MS uses that number only for single line
24229             and 2^32-1 for multi-line, but I figure it won't hurt keeping
24230             the limit at 2GB)
24231           - Now enforcing the MaxLength limit when entering characters
24232           - Added argument to internal Paste() method to track if it's called
24233             from programatically or via keyboard, since keyboard driven pastes
24234             need to enforce max-length
24235           - Added logic to Paste to only paste as many chars as MaxLength 
24236             allows
24237         * RichTextBox.cs: Updated to use new obey argument for internal Paste()
24238         * TextControl.cs:
24239           - Added Length property to return number of characters in document
24240           - Added private CharCount property which only tracks actual chars
24241             in the document (no linefeeds) and fires event when CharCount
24242             changes
24243           - Added tracking of character count to all methods that alter it
24244           - Added LengthChanged event to allow applications to subscribe
24245             to any changes to the document
24246
24247 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
24248
24249         * TextBox.cs: 
24250           - Removed local password_char field (moved to TextBoxBase)
24251           - Now setting the document's password var when password is
24252             set
24253         * TextBoxBase.cs:
24254           - Added password_char field (needed here so MultiLine can
24255             access it)
24256           - Added logic to MultiLine property setter to set the document's
24257             variable when password display is allowed
24258           - Removed debug code and made some debug code conditional
24259         * TextControl.cs:
24260           - Added RecalculatePasswordLine() method to handle special password
24261             char only lines
24262           - Added PasswordChar property, also added related tracking vars
24263           - Draw() method now uses local text var for grabbing text to draw,
24264             this var is set to line.text unless we're doing password display,
24265             then it is set to the pre-generated all-password-chars line
24266           - Added calling RecalculatePasswordLine() method for password lines
24267
24268 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
24269
24270         * Hwnd.cs: 
24271           - Added Reparented property to allow tracking of Window Manager
24272             reparenting actions (which affect X/Y calculations of toplevel 
24273             windows)
24274           - Made ToString() print window handles in hex
24275         * XplatUIX11.cs:
24276           - AddConfigureNotify(): Now uses reparented state off Hwnd to
24277             determine if X/Y needs offsetting
24278           - AddConfigureNotify(): Fixed offset calculations
24279           - Now adds ReparentNotify messages into the queue
24280           - Now processes ReparentNotify messages and causes a 
24281             WM_WINDOWPOSCHANGED message to be sent upstream if a window
24282             is reparented (as most likely it's X/Y coordinates are changed
24283             due to that)
24284
24285 2005-12-14  Jackson Harper  <jackson@ximian.com>
24286
24287         * XplatUIX11.cs: Tool windows still need to respek focus.
24288
24289 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
24290
24291         * Control.cs: Undid 54254 (causing XConfigure errors) so we can
24292           have a working release
24293
24294 2005-12-13  Jackson Harper  <jackson@ximian.com>
24295
24296         * Form.cs: Update styles after setting the border style regardless
24297         of whether or not the window is using a window manager.
24298
24299 2005-12-13  Jackson Harper  <jackson@ximian.com>
24300
24301         * Form.cs: We now hook into an internal window manager instead of just an
24302         MDI subsystem, this is so we can have properly behaving tool windows.
24303         * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
24304         * InternalWindowManager.cs: New internal class that acts as a
24305         window manager for tool windows and as a base for mdi windows.
24306         * MdiWindowManager.cs: New class that acts as a window manager for
24307         mdi windows.
24308
24309 2005-12-12  Jackson Harper  <jackson@ximian.com>
24310
24311         * Control.cs: Updates so we match behavoir for for implicit
24312         controls. Fixes explosions in MDI.
24313
24314 2005-12-12  Jackson Harper  <jackson@ximian.com>
24315
24316         * Control.cs: Implement Invalidate (Region).
24317
24318 2005-12-12  Peter Dennis Bartok  <pbartok@novell.com> 
24319
24320         * Control.cs: 
24321           - Changed handling of Controls.Add/Controls.Remove to fire (almost) 
24322             the same events as MS does. MS fires events for each property 
24323             except, for unknown reasons, Cursor, when the control is reparented. 
24324             I can't seem to totally match add/remove since MS also fires some 
24325             VisibleChanged events, which makes no sense. Consolidated the
24326             parenting code into a separate method so it can be called from
24327             both Add and Remove. set_Parent no longer needs any special logic
24328             as it calls the parent's add method which implicitly fires
24329             all events
24330           - Removed some obsolete code and debug output
24331           - Enabled state is inherited from parents, if this is enabled
24332
24333 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com> 
24334
24335         * Form.cs: Removed commented out code
24336
24337 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com>
24338
24339         * Control.cs:
24340           - Added internal version of Invoke, with additional argument 
24341             indicating if we're calling it from a Dispose() handler. That
24342             way we can avoid BeginInvoke throwing an exception if we're
24343             calling for an already destroyed window.
24344           - Added a dispose argument to BeginInvokeInternal, and made the
24345             check if a valid window handle chain exists conditional on
24346             it not being a dispose call
24347           - Removed code in DestroyHandle to destroy our children. Since we
24348             now handle the WM_DESTROY message we will catch all our children
24349             being destroyed.
24350           - Now calling OnHandleDestroyed from our new WM_DESTROY handler
24351         * Form.cs:
24352           - Added a field to track the application context of the form.
24353           - No need to set closing variable as response to WM_CLOSE, instead
24354             we destroy the window. We also call PostQuitMessage if the form
24355             has an application context (which makes it the main app form,
24356             which, when closed terminates the app)
24357         * XplatUI.cs:
24358           - Dropped Exit() method, it's naming was confusing
24359           - Added PostQuitMessage() which causes GetMessage to return false
24360             once the message queue is empty
24361         * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added 
24362           PostQuitMessage()
24363         * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
24364           no longer a valid XplatUI method, but left it in since it's used
24365           internally. Added empty PostQuitMessage() method.
24366         * MenuAPI.cs: Replaced call to Exit() with call to
24367           PostQuitMessage, even though this is probably no longer needed.
24368         * Hwnd.cs: Added 'pretty' ToString() to support debugging.
24369         * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
24370         * Application.cs:
24371           - Replaced call to XplatUI.Exit() with PostQuitMessage()
24372           - Removed old debug code that would call XplatUI for exception
24373             display, enabled standard exception handling (Still not enabled
24374             though, until NativeWindow's ExternalExceptionHandler define
24375             is removed
24376         * NativeWindow.cs:
24377           - Added internal method to allow control to update NativeWindow
24378             after a window has been destroyed
24379           - Added handling of already destroyed windows when calling i
24380             DestroyWindow
24381           - Added removal of handle from list on ReleaseHandle
24382         * XplatUIX11.cs:
24383           - Dropped GetMessageResult var and related code
24384           - Added PostQuitState to field to track if PostQuitMessage has been
24385             called
24386           - Dropped Exit() method
24387           - Added PostQuitMessage() method
24388           - GetMessage now will return false if PostQuitState is set and no
24389             more messages are in the queue.
24390           - Expose handler will no longer generate WM_PAINT messages if we are
24391             in PostQuitState since it's very likely any windows have already
24392             been destroyed, and since Hwnd won't get updated until we have
24393             processed the DestroyNotify we'd be causing X errors.
24394         
24395 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
24396
24397         * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
24398           Thanks to Mike for pointing out the err of my ways.
24399
24400 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
24401
24402         * Control.cs(PreProcessMessage): Moved menu handling back, but
24403           after all other key handling, to match MS (who handles Menu in
24404           DefWndProc)
24405         * Menu.cs (WndProc): Removed my brainfart
24406
24407 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
24408
24409         * Control.cs(PreProcessMessage): Removed special menu handling 
24410         * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
24411
24412 2005-12-07  Mike Kestner  <mkestner@novell.com>
24413
24414         * Control.cs : special case SYSKEYUP so that we can adjust keynav
24415         state according in tracker.
24416         * Menu.cs : promote tracker field to base class and provide a tracker
24417         lookup capability.  Add/Remove shortcuts dynamically if the top menu
24418         has a tracker. Unparent items that are removed from the collection.
24419         * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
24420         * Theme*.cs: add always_show_hotkeys field to support configurability
24421         of mnemonic display.  win32 doesn't show mnemonics until Alt is
24422         pressed.
24423
24424 2005-12-07  Jackson Harper  <jackson@ximian.com>
24425
24426         * MdiChildContext.cs: Use Control.ResetCursor.
24427         * Control.cs: ResetCursor needs to set the property so that the
24428         correct XplatUI call gets made.
24429
24430 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
24431
24432         * Control.cs: More fixes to make our key events match MS. We
24433           were not setting the modifier state on KeyData, and we were
24434           not generating any events when Alt was pressed with a key
24435           since handling of WM_SYSxxx was missing for the OnKey methods.
24436
24437 2005-12-07  Jackson Harper  <jackson@ximian.com>
24438
24439         * MdiChildContext.cs: reenable the sizing code.
24440         - When the mouse leaves a window reset its cursor.
24441
24442 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
24443
24444         * ThemeClearlooks.cs: Reflect latest Hwnd changes
24445
24446 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
24447
24448         * Hwnd.cs: Now using the theme 3d bordersize to calculate
24449           widths of Fixed3D borders
24450
24451 2005-12-07  Jackson Harper  <jackson@ximian.com>
24452
24453         * MdiClient.cs: Fix warnings. Earn Mike's love.
24454
24455 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
24456
24457         * ThemeClearlooks.cs:
24458           - Adjusted mouse over button color
24459           - Added first parts of CheckBox drawing
24460           - Added correct color for selected text background
24461           - Fixed ComboBox drawing
24462           - Added CPDrawBorder3D and CPDrawBorder
24463
24464 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
24465
24466         * XplatUIX11.cs: Added call to XBell for AudibleAlert
24467
24468 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com> 
24469
24470         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
24471           XplatUIOSX.cs: Added AudibleAlert() method to have a means to
24472           alert users via sound. We could add an enum arg with different
24473           types of alerts in the future
24474
24475 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
24476
24477         * Control.cs: Fix behaviour problems pointed out by Mike
24478
24479 2005-12-05  Mike Kestner  <mkestner@novell.com>
24480
24481         * StatusBarPanel.cs: add Invalidate method and hook it into all the
24482         prop setters.  Calls parent.Refresh for now, but could be maybe be
24483         optimized with an internal method on StatusBar at some point.
24484         [Fixes #76513]
24485
24486 2005-12-05  Peter Dennis Bartok  <pbartok@novell.com> 
24487
24488         * RichTextBox.cs: Implemented get_SelectionColor
24489
24490 2005-12-05  Alexander Olk  <alex.olk@googlemail.com>
24491
24492         * ThemeClearlooks.cs:
24493           - Removed dead code
24494           - Draw black button border only if button is Form.AcceptButton
24495           - Draw correct button color for pressed RadioButton if the mouse 
24496             has entered the button
24497           - Updated ProgressBar drawing!
24498           - Updated CPDrawSizeGrip drawing
24499           - Updated StatusBarPanel drawing
24500
24501 2005-12-05  Mike Kestner  <mkestner@novell.com>
24502
24503         * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
24504         * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
24505
24506 2005-12-04  Alexander Olk  <alex.olk@googlemail.com>
24507
24508         * ThemeClearlooks.cs: Initial check-in, activate with
24509           export MONO_THEME=clearlooks
24510         * ThemeEngine.cs: Added ThemeClearlooks
24511
24512 2005-12-03  Mike Kestner  <mkestner@novell.com>
24513
24514         * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
24515         [Fixes #76897]
24516
24517 2005-12-02  Jackson Harper  <jackson@ximian.com>
24518
24519         * Form.cs: If the child form has no menu the default main menu is
24520         used as the active menu.
24521
24522 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com> 
24523
24524         * ListBox.cs: Check if any items exist before trying to resolve 
24525           coordinates into items
24526
24527 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
24528
24529         * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
24530           as the second color for the background hatch
24531
24532 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
24533
24534         * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
24535         * RichTextBox.cs: FormatText position arguments are 1-based, now making
24536           sure that what we pass to FormatText is always 1-based. Fixes #76885
24537
24538 2005-11-29  Miguel de Icaza  <miguel@novell.com>
24539
24540         * NumericUpDown.cs (EndInit): When we are done initializing,
24541         reflect any updates on the UI.
24542
24543 2005-12-02  Jackson Harper  <jackson@ximian.com>
24544
24545         * ImplicitHScrollBar.cs:
24546         * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
24547         their container controls.
24548         * TreeView.cs: Use the new implicit scrollbars.
24549
24550 2005-12-02  Jackson Harper  <jackson@ximian.com>
24551
24552         * TreeView.cs: Make top_node internal so the TreeNodeCollections
24553         can play with it.
24554         * TreeNodeCollection.cs: If we remove the topnode we need to
24555         update topnode to the next node in line.
24556         - When clearing nodes go through the same process as removing
24557         them, so they get depareneted and checked if they are top node.
24558
24559 2005-12-01  Jackson Harper  <jackson@ximian.com>
24560
24561         * TreeView.cs: When imagelists are used the image area is
24562         selectable as well as the text.
24563         - If there are no selected nodes select the first one.
24564         * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
24565         so don't do it more then we need to.
24566
24567 2005-12-01  Jackson Harper  <jackson@ximian.com>
24568
24569         * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
24570         that arrows can be scaled.
24571
24572 2005-12-01  Jackson Harper  <jackson@ximian.com>
24573
24574         * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
24575         fail. Patch by Dieter Bremes
24576
24577 2005-11-30  Jackson Harper  <jackson@ximian.com>
24578
24579         * Form.cs: Property is 2.0 only
24580         * PrintDialog.cs: Signature fix.
24581
24582 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
24583
24584         * TextControl.cs: 
24585           - No longer artificially moves text 2 pixels down (now that we have
24586             borders this is no longer needed)
24587           - Added calcs for left, hanging and right indent
24588
24589 2005-11-23  Mike Kestner  <mkestner@novell.com>
24590
24591         * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
24592
24593 2005-11-30  Jackson Harper  <jackson@ximian.com>
24594
24595         * MdiChildContext.cs: Set the cloned menus forms, as these don't
24596         get cloned as part of CloneMenu ().
24597         * Menu.cs: Make sure the parent of the items get set correctly
24598         when they are added.  And the owners are notified of the changes.
24599         * Form.cs: Create an ActiveMenu property, so that when MDI is used
24600         we can change the menu being displayed/handled by the form without
24601         changing the menu assosciated with the form.
24602         - Don't let Mdi children draw/handle menus.
24603         
24604 2005-11-30  Jackson Harper  <jackson@ximian.com>
24605
24606         * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
24607         a MenuChanged event. Just to make the API a little more
24608         consistent.
24609         * MainMenu.cs:
24610         * MenuItem.cs: Use the new OnMenuChanged
24611         * MdiChildContext.cs: Handle menu merging.
24612         * Form.cs: Implement MergedMenu.
24613         
24614 2005-11-30  Jackson Harper  <jackson@ximian.com>
24615
24616         * Menu.cs: We were misusing Add. Add goes behind the specified
24617         index according to the docs, and does not replace the specified
24618         index. So I added an Insert method.
24619
24620 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
24621
24622         * TextBoxBase.cs:  Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
24623           Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
24624           is for Jackson
24625         * RichTextBox.cs: Added calls to base for DnD events
24626
24627 2005-11-28  Peter Dennis Bartok  <pbartok@novell.com>
24628
24629         * TextControl.cs:
24630           - Fixed drag-selection related crash; style fixes
24631           - Implemented undo class
24632             o Implemented method to capture document state for specified
24633               range in document tree
24634             o Implemented method to restore captured document state
24635             o Implemented cursor tracking
24636             o Implemented basic undo stack
24637           - Added undo cursor tracking to methods altering cursor location
24638           - Added undo tracking to selection deletion (still missing
24639             other text-altering hookups)
24640         * RichTextBox.cs:
24641           - Added SelectionLength property
24642           - Implemented CanPaste()
24643           - Implemented Paste()
24644           - Added missing protected methods
24645           - Fixed RTF->Document conversion; now uses font index 0 and color 
24646             index 0 as the default font for the parsed text
24647           - Fixed RTF<->Document font size translation
24648           - Fixed RTF generation, now properly handles cross-tag boundaries
24649             for single line selection
24650           - No longer always appends blank line to generated RTF
24651           - Removed TODOs
24652           - Added missing attributes
24653           - Hooked up undo-related methods
24654         * TextBoxBase.cs:
24655           - Implemented Copy()
24656           - Implemented Paste()
24657           - Implemented Cut()
24658           - Fixed caret mis-behaviour on backspace across line-boundaries
24659
24660 2005-11-29  Jackson Harper  <jackson@ximian.com>
24661
24662         * MdiClient.cs: Add a method for activating mdi children. Very
24663         basic right now. I imagine someday it might need more girth.
24664         * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
24665         children windows names are added to the menu item.
24666         * ThemeWin32Classic.cs: Draw the arrow if the item is an
24667         mdilist. This happens regardless of whether or not there are any
24668         mdi windows to see in the list, and according to my tests happens
24669         before the items are even added. Also happens if there isn't even
24670         an mdi client to get windows from.
24671
24672 2005-11-29  Alexander Olk  <alex.olk@googlemail.com>
24673
24674         * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
24675         * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
24676
24677 2005-11-29  Jordi Mas i Hernandez <jordimash@gmail.com>
24678
24679         * DataGridTableStyle.cs:
24680           - Create always the styles for the missing columns even if they are
24681             provided by the user (not default table style)
24682         * DataGrid.cs:
24683           - Fixes bug 76770
24684           - Fixes SetDataBinding (always re-attach source)
24685           - Fixes SetNewDataSource (only clear styles if they are not for 
24686             this source)
24687          -  Expands OnTableStylesCollectionChanged to handle style refresh 
24688             and remove properly
24689
24690 2005-11-29  Jackson Harper  <jackson@ximian.com>
24691
24692         * FileDialog.cs: Implement missing bits, remove some dead
24693         code.
24694         * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
24695         creation of the panel so that the options set on the dialog are
24696         seen when the panel is created.
24697         * TreeView.cs: raise a click when items are clicked.
24698         
24699 2005-11-29  Jackson Harper  <jackson@ximian.com>
24700
24701         * MdiClient.cs: Pass some signature methods through to base.
24702
24703 2005-11-28  Jackson Harper  <jackson@ximian.com>
24704
24705         * ListView.cs: Raise the click event when items are clicked.
24706
24707 2005-11-28  Jackson Harper  <jackson@ximian.com>
24708
24709         * MdiClient.cs: Make this algorithm even more beautiful.  And fix
24710         a nullref.
24711
24712 2005-11-27  Alexander Olk  <alex.olk@googlemail.com>
24713
24714         * ThemeNice.cs: - Removed 1 pixel bitmaps
24715           - Use SmoothingMode.AntiAlias where it makes sense
24716             (ScrollButton arrow for example)
24717           - Enhanced Button focus drawing
24718           - Fixed ComboBox drawing (no artefacts anymore, focus
24719             rectangle is back again, reduced size of ComboButton, etc.)
24720           - Fixed RadioButton focus drawing for Appearence.Button
24721           - Slight ScrollButton redesign
24722           - Some LinearGradientBrush size fixes
24723           - GroupBoxes have now rounded edges
24724           - Fixed StatusBar drawing
24725
24726 2005-11-25  Alexander Olk  <alex.olk@googlemail.com>
24727
24728         * ThemeNice.cs: - Remove dead code
24729           - use correct background colors for menus, etc.
24730           - Fake pixel drawing with 1 pixel bitmaps
24731
24732 2005-11-24  Jackson Harper  <jackson@ximian.com>
24733
24734         * MdiClient.cs: Size the scrollbars when resizing the window.
24735         - Resize the maximized windows when the client is resized
24736         * Form.cs: Make the child context available
24737         
24738 2005-11-23  Jackson Harper  <jackson@ximian.com>
24739
24740         * MdiChildContext.cs: Don't size windows if they are maximized.
24741
24742 2005-11-23  Mike Kestner  <mkestner@novell.com>
24743
24744         * ContextMenu.cs: use MenuTracker.
24745         * Control.cs: remove menu handle usage.
24746         * Form.cs: remove menu handle usage.
24747         * Hwnd.cs: remove menu handle usage.
24748         * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
24749         motion and clicks to the new Tracker handlers.
24750         * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
24751         and handle usage.
24752         * MenuAPI.cs: refactored to combine popup and menubar event handling.
24753         Killed the MENU and MENUITEM data types and associated collections
24754         since we now keep the info on Menu and MenuItem. Expanded TRACKER into
24755         MenuTracker class that exposes the leftovers from the old MenuAPI
24756         static methods. Restructured Capture handling so that only one grab is
24757         done for the entire menu hierarchy instead of handing off grabs to
24758         submenus. Tracker now has an invisible control to Capture when active.
24759         * MenuItem.cs: add sizing accessors, kill Create
24760         and handle usage.
24761         * Theme.cs: remove menu handle and MENU(ITEM) usage.
24762         * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
24763         MENU(ITEM). remove menu handle usage, use Menu directly.
24764         * XplatUIDriver.cs: remove menu handle usage.
24765         * XplatUIOSX.cs: remove menu handle usage.
24766         * XplatUIWin32.cs: remove menu handle usage.
24767         * XplatUIX11.cs: remove menu handle usage.
24768
24769 2005-11-22  Jackson Harper  <jackson@ximian.com>
24770
24771         * Hwnd.cs: Don't compute the menu size for
24772         DefaultClientRectangle.
24773         - Reenable menu sizes being computed for GetClienRectangle.
24774         * Form.cs: Remove comment of trechery
24775         
24776 2005-11-22  Jackson Harper  <jackson@ximian.com>
24777
24778         * Hwnd.cs: The adjustments for the menu bar are made when it is
24779         attached to the form.
24780
24781 2005-11-19  Jackson Harper  <jackson@ximian.com>
24782
24783         * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
24784         (just like on windows).
24785
24786 2005-11-19  Jackson Harper  <jackson@ximian.com>
24787
24788         * MdiChildContext.cs: Handle all the buttons ourselves. We can't
24789         use real buttons anymore because they are in non client area. The
24790         one TODO here is that I need to somehow invalidate a section of
24791         the non client area.
24792
24793 2005-11-18  Jackson Harper  <jackson@ximian.com>
24794
24795         * Control.cs: Put the enum check back in now that MDI doesnt have
24796         to use this to set border styles.
24797         * Form.cs: Only set mdi child windows borders if the handle has
24798         been created.
24799         * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
24800         this directly on to the driver.
24801         - Get the move start position before adjusting for the titlebar
24802         height, this fixes the windows "skipping" when they are first
24803         moved.
24804
24805 2005-11-18  Jackson Harper  <jackson@ximian.com>
24806
24807         * XplatUIX11.cs: Just compute the mdi borders separately as they
24808         don't totally match up with normal form borders.
24809
24810 2005-11-18  Jackson Harper  <jackson@ximian.com>
24811
24812         * Control.cs: Set WS_ styles for borders, so that the driver does
24813         not have to retrieve the control instance to figure out what kind
24814         of borders it should have.
24815         * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
24816         driver can know its an mdi child easily.
24817         * XplatUIX11.cs: Get the border styles and whether the window is
24818         MDI from the Styles and ExStyles params instead of having to get a
24819         control. This prevents a chicken and egg problem.       
24820
24821 2005-11-18  Jackson Harper  <jackson@ximian.com>
24822
24823         * MdiClient.cs: Fix typo so scrollbars show up correctly.
24824
24825 2005-11-18  Jackson Harper  <jackson@ximian.com>
24826
24827         * MdiClient.cs: Calculate when to add and remove scrollbars
24828         correctly.
24829         * MdiChildContext.cs: Adjust the y position to take the titlebar
24830         into account.
24831         - No height for FormBorderStyle.None
24832
24833 2005-11-18  Jackson Harper  <jackson@ximian.com>
24834
24835         * Control.cs: Allow non enum values to be used for
24836         InternalBorderStyle.  MDI does this to set a special border style.
24837         - New utility methods for converting points to/from client coords
24838         - Add the newly created control to the Controls collection before
24839         updating its style. This way UpdateStyle can walk the control
24840         heirarchy to find the control if needed.
24841         so I don't need to create a new Point object all the time.
24842         * Form.cs: Let MDI windows handle their border styles.
24843         - Set styles on MDI windows so the correct title style is derived.
24844         * MdiChildContext.cs: Move all the painting and window handling
24845         into the non client area.
24846         - Use correct sizing and put correct buttons on frames based on
24847         the FormBorderStyle.
24848         - Notify the mdi client about scrolling
24849         - Need to handle the buttons ourselves now, because they are all
24850         in non client areas and we can't add controls there.
24851         * MdiClient.cs: Halfway to scrolling, this implementation is
24852         somewhat broken though, we need to check to make sure other
24853         windows aren't causing scrolling before removing the bars. Also
24854         the bars need to be drawn on top, maybe I can switch implicit
24855         controls to be on top.
24856         * Hwnd.cs: caption_height and tool_caption_height are now
24857         properties of an hwnd, this way they can be set by the driver
24858         based on the type of window they are.  In X11 the window manager
24859         handles the decorations so caption_height is zero unless its an
24860         MDI window.
24861         - Add 3 pixel borders for MDI windows (0xFFFF).
24862         - Get rid of some code duplication, have DefaultClientRectanle
24863         just call GetClientRectangle.
24864         * XplatUIX11.cs: Pass caption_height and tool_caption_height to
24865         Hwnd now.
24866         - Set border styles differently for mdi windows.
24867         * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
24868         Hwnd now.
24869         
24870 2005-11-15  Mike Kestner  <mkestner@novell.com>
24871
24872         * Menu.cs: when adding an item to the collection, if item is already 
24873         parented, remove it from the parent.
24874
24875 2005-11-13  Alexander Olk  <alex.olk@googlemail.com>
24876
24877         * X11DesktopColors.cs: Added KDE support
24878
24879 2005-11-11  Peter Dennis Bartok  <pbartok@novell.com>
24880
24881         * XplatUIWin32.cs: 
24882           - Clipboard methods now can translate Rtf format
24883           - No longer removes clipboard contents whenever a new format is added
24884             to allow placing multiple formats on the clipboard
24885         * Clipboard.cs: Clipboard now supports getting a IDataObject and
24886           will place all formats contained in it onto the clipboard. Also
24887           now cleans the clipboard before placing a new object onto it
24888         * RichTextBox.cs:
24889           - Implemented set_Rtf
24890           - Implemented set_SelectedRtf
24891           - Created InsertRTFFromStream() method to allow single code base
24892             for all properties and methods that insert RTF into document
24893           - Removed debug output
24894         * TextControl.cs:
24895           - Fixed Delete(int) to fix up line numbers
24896           - Fixed ReplaceSelection to combine start and end line
24897           - Fixed serious DeleteChars bug that would leave the document tree
24898             broken
24899           - Improved DumpTree with several logic checks to detect broken
24900             document trees
24901           - Removed debug lines
24902           - Fixed Caret.WordForward/WordBack moving code, now always also 
24903             updates caret.tag (fixes crash when word-selecting across tag
24904             boundaries via keyboard)
24905           - Added Insert() method for inserting multiline text into documents
24906           - Fixed DeleteChars() calculation errors that would cause a broken
24907             tag chain with multiple tag lines
24908           - DeleteChars() no longer crashes on multi-tag lines if not all tags
24909           - Split() no longer moves caret if split is at caret location
24910           - ReplaceSelection() now updates the cursor and re-displays it
24911           - ReplaceSelection() now uses new Insert() method to avoid code
24912             duplication
24913           - FormatText() can now handle formatting partial lines
24914         * TextBoxBase.cs:
24915           - Append now uses new TextControl.Insert() method (this avoids 
24916             duplicate code)
24917           - Implemented Ctrl-X (Cut) (
24918           - Implemented Ctrl-C (Copy)
24919           - Implemented Ctrl-V (Paste) (Still some bugs related to screen 
24920             regeneration when pasting text; roundtripping Copy&Paste within
24921             edit control still fails due to some calculation bugs in GenerateRTF)
24922           - The Delete key will now remove the current selection if it is visible
24923         * TextBox.cs: Removed debug lines
24924         * XplatUI.cs: Trigger initialization of DataFormats (which requires the
24925           driver to be initialized and can't therefore be done via a static ctor)
24926
24927 2005-11-10  Peter Dennis Bartok  <pbartok@novell.com>
24928
24929         * TextControl.cs: Added backend code for finding char arrays and strings
24930         * TextBoxBase.cs:
24931           - Added mouse wheel scroll support
24932           - Added support for VScroll and HScroll events
24933         * RichTextBox.cs:
24934           - Implemented all seven Find() variants
24935           - Implemented GetCharFromPosition()
24936           - Implemented GetCharIndexFromPosition()
24937           - Implemented GetLineFromIndex()
24938           - Implemented GetPositionFromCharIndex();
24939           - Implemented SaveFile for PlainText and UnicodeText
24940           - Fixed set_Font, now setting a new font applies that font to
24941             the whole document
24942           - Implemented generic Document to RTF converter
24943           - Implemented SaveFile for RichText format (still missing unicode
24944             conversion for non-ansi chars)
24945           - Implemented get_Rtf
24946           - Implemented get_SelectedRtf
24947
24948 2005-11-09  Peter Dennis Bartok  <pbartok@novell.com>
24949
24950         * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
24951           to allow any captures to be released before triggering OnClick. This
24952           way a click handler may capture the mouse without interference.
24953         * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
24954           This way we send them even though X may not allow a grab (if the window
24955           isn't visible, for example)
24956
24957 2005-11-08  Pedro Martinez Julia <pedromj@gmail.com>
24958
24959         * DataGridViewRowEventArgs.cs: DataGridView implementation
24960         * DataGridViewElement.cs: DataGridView implementation
24961         * DataGridViewComboBoxCell.cs: DataGridView implementation
24962         * DataGridViewDataErrorContexts.cs: DataGridView implementation
24963         * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
24964         * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
24965         * ImageLayout.cs: DataGridView implementation
24966         * DataGridViewComboBoxColumn.cs: DataGridView implementation
24967         * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
24968         * DataGridViewSelectionMode.cs: DataGridView implementation
24969         * IDataGridViewEditingControl.cs: DataGridView implementation
24970         * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
24971         * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
24972         * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
24973         * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
24974         * DataGridViewColumnSortMode.cs: DataGridView implementation
24975         * DataGridView.cs: DataGridView implementation
24976         * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
24977         * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
24978         * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
24979         * Padding.cs: DataGridView implementation
24980         * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
24981         * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
24982         * DataGridViewRowEventHandler.cs: DataGridView implementation
24983         * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
24984         * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
24985         * DataGridViewButtonCell.cs: DataGridView implementation
24986         * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
24987         * DataGridViewEditMode.cs: DataGridView implementation
24988         * DataGridViewCellValueEventArgs.cs: DataGridView implementation
24989         * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
24990         * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
24991         * DataGridViewCheckBoxColumn.cs: DataGridView implementation
24992         * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
24993         * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
24994         * DataGridViewCellEventHandler.cs: DataGridView implementation
24995         * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
24996         * DataGridViewCellStyleConverter.cs: DataGridView implementation
24997         * DataGridViewSelectedRowCollection.cs: DataGridView implementation
24998         * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
24999         * DataGridViewColumnEventArgs.cs: DataGridView implementation
25000         * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
25001         * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
25002         * QuestionEventArgs.cs: DataGridView implementation
25003         * IDataGridViewEditingCell.cs: DataGridView implementation
25004         * DataGridViewTriState.cs: DataGridView implementation
25005         * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
25006         * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
25007         * DataGridViewColumnCollection.cs: DataGridView implementation
25008         * DataGridViewCellValueEventHandler.cs: DataGridView implementation
25009         * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
25010         * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
25011         * DataGridViewColumn.cs: DataGridView implementation
25012         * DataGridViewCellBorderStyle.cs: DataGridView implementation
25013         * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
25014         * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
25015         * DataGridViewRow.cs: DataGridView implementation
25016         * DataGridViewImageCellLayout.cs: DataGridView implementation
25017         * DataGridViewImageCell.cs: DataGridView implementation
25018         * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
25019         * DataGridViewCheckBoxCell.cs: DataGridView implementation
25020         * DataGridViewHeaderCell.cs: DataGridView implementation
25021         * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
25022         * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
25023         * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
25024         * DataGridViewTextBoxColumn.cs: DataGridView implementation
25025         * QuestionEventHandler.cs: DataGridView implementation
25026         * DataGridViewCellStyleScopes.cs: DataGridView implementation
25027         * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
25028         * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
25029         * DataGridViewCell.cs: DataGridView implementation
25030         * DataGridViewCellEventArgs.cs: DataGridView implementation
25031         * DataGridViewClipboardCopyMode.cs: DataGridView implementation
25032         * DataGridViewCellStyle.cs: DataGridView implementation
25033         * DataGridViewColumnHeaderCell.cs: DataGridView implementation
25034         * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
25035         * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
25036         * TextFormatFlags.cs: DataGridView implementation
25037         * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
25038         * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
25039         * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
25040         * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
25041         * DataGridViewButtonColumn.cs: DataGridView implementation
25042         * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
25043         * HandledMouseEventArgs.cs: DataGridView implementation
25044         * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
25045         * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
25046         * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
25047         * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
25048         * DataGridViewRowCollection.cs: DataGridView implementation
25049         * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
25050         * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
25051         * DataGridViewHitTestType.cs: DataGridView implementation
25052         * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
25053         * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
25054         * DataGridViewColumnEventHandler.cs: DataGridView implementation
25055         * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
25056         * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
25057         * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
25058         * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
25059         * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
25060         * DataGridViewContentAlignment.cs: DataGridView implementation
25061         * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
25062         * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
25063         * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
25064         * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
25065         * DataGridViewPaintParts.cs: DataGridView implementation
25066         * DataGridViewCellCollection.cs: DataGridView implementation
25067         * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
25068         * DataGridViewImageColumn.cs: DataGridView implementation
25069         * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
25070         * DataGridViewElementStates.cs: DataGridView implementation
25071         * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
25072         * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
25073         * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
25074         * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
25075         * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
25076         * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
25077         * DataGridViewRowHeaderCell.cs: DataGridView implementation
25078         * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
25079         * DataGridViewTextBoxCell.cs: DataGridView implementation
25080         * DataGridViewBand.cs: DataGridView implementation
25081         * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
25082         * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
25083         * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
25084         * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
25085         * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
25086         * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
25087         * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
25088         * DataGridViewSelectedCellCollection.cs: DataGridView implementation
25089         * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
25090         * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
25091         * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
25092
25093 2005-11-08  Peter Dennis Bartok  <pbartok@novell.com>
25094
25095         * ThemeWin32Classic.cs: 
25096           - Draw the outside focus rectangle around buttons
25097           - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
25098             doesn't use end caps for every dash of a line anymore. This
25099             workaround ignores the forecolor.
25100
25101 2005-11-08  Kornél Pál  <kornelpal@hotmail.com>
25102
25103         * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
25104           endian safe.
25105
25106 2005-11-07  Jackson Harper  <jackson@ximian.com>
25107
25108         * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
25109
25110 2005-11-07  Jackson Harper  <jackson@ximian.com>
25111
25112         * ScrollableControl.cs: Calculate the maximum and change vars
25113         (more) correctly so that scrollbars appear as a sensible size.
25114
25115 2005-11-04  Jackson Harper  <jackson@ximian.com>
25116
25117         * TreeNodeCollection.cs: Refresh when nodes are cleared from the
25118         collection.
25119         * TreeView.cs: When the tree is sorted null out the top_node so
25120         that it is recalculated.
25121         - Use dotted lines instead of dashed lines to match MS better.
25122
25123 2005-11-04  Jordi Mas i Hernandez <jordimash@gmail.com>
25124
25125         * ListView.cs: 
25126           - Implements key search for items. Useful when browsing files with FileDialog
25127           - When changing view mode or when clear the items reset scrollbar positions
25128
25129 2005-11-04  Jackson Harper  <jackson@ximian.com>
25130
25131         * CurrencyManager.cs: Implement the MetaDataChanged event, the
25132         Reset method, and the CheckEmpty. CheckEmpty is just a total guess
25133         as to what the method may do as there is no real way of creating a
25134         derived CurrencyManager and calling the method. 
25135
25136 2005-11-03  Jackson Harper  <jackson@ximian.com>
25137
25138         * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
25139         * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
25140         method which seems to just be used internally to refresh the tabs.
25141
25142 2005-11-03  Jackson Harper  <jackson@ximian.com>
25143
25144         * TabControl.cs: Implement the remove method. Fix some broken
25145         comments.
25146
25147 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
25148
25149         * DateTimePicker.cs:
25150           - Added missing DateTimePickerAccessibleObject class
25151           - Added missing events
25152           - Added OnFontChanged method
25153         * Form.cs: Added missing attributes
25154         * TreeView.cs: Added missing attributes
25155
25156 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com> 
25157
25158         * GridItemCollection.cs: Fix signatures
25159
25160 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
25161
25162         * XplatUI.cs: Updated build rev/date
25163         * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs, 
25164           DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
25165         * Application.cs: Trigger context-specific ExitThread events
25166
25167 2005-11-03  Jackson Harper  <jackson@ximian.com>
25168
25169         * Menu.cs:
25170         * MainMenu.cs:
25171         * GridTableStylesCollection.cs:
25172         * Timer.cs:
25173         * TabPage.cs:
25174         * HelpProvider.cs:
25175         * StatusBar.cs:
25176         * MonthCalendar.cs: Signature fixes
25177
25178 2005-11-03  Jackson Harper  <jackson@ximian.com>
25179
25180         * TreeNodeCollection.cs: Remove should not be virtual.
25181         * TreeView.cs: Implement the last of the missing methods.
25182
25183 2005-11-03  Jackson Harper  <jackson@ximian.com>
25184
25185         * TreeNodeConverter.cs: Implement to get off my class-status back.
25186
25187 2005-11-03  Jackson Harper  <jackson@ximian.com>
25188
25189         * TreeView.cs: Hookup the bits for drag and drop.
25190         * TreeNode.cs: Don't cache the tree_view or index anymore, now
25191         that nodes can be moved from tree to tree easily this just causes
25192         all sorts of problems.
25193         * TreeNodeCollection: Don't need to give treenodes an index and
25194         treeview anymore when they are added, these are computed on the
25195         fly. Also make sure to remove a node before its added.
25196
25197 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
25198
25199         * TextControl.cs:
25200           - Added CaretSelection enum
25201           - Added comparison methods to Marker struct, makes selection code
25202             more readable
25203           - Added SelectionStart and SelectionEnd as 'moveable' location for
25204             the CaretDirection enum and handler
25205           - Added selection_prev variable to track optimized invalidation for
25206             word and line selection
25207           - Added SelectionVisible property (returns true if there is a valid 
25208             selection)
25209           - Switched CaretHasFocus to only display the caret if there is no
25210             visible selection
25211           - Avoiding StringBuilder.ToString to retrieve a single char, instead
25212             using the direct character index; should be much faster
25213           - Added various conditional debug statements
25214           - Fixed invalidation calculation for selection ranges
25215           - Added ExpandSelection() method to support word and line selection
25216           - Switched SetSelectionToCaret to use new Marker compare overloads
25217           - Added central IsWordSeparator() method to determine word 
25218             separators/whitespace and FindWordSeparator() to streamline common
25219             usage of IsWordSeparator()
25220         * TextBoxBase.cs:
25221           - Removed unneeded grabbed variable, it was just mirroring
25222             Control.Capture
25223           - No longer firing OnTextChanged event when Text setter is called,
25224             since the base will fire the event for us
25225           - Added handling of Ctrl-Up/Down selection
25226           - Added handling of Shift-Cursorkey selection
25227           - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
25228             words
25229           - Added handling of Shift and Ctrl-Shift-Home/End selection
25230           - Removed some debug output
25231           - Added handling for single/double/tripple-click to place caret/
25232             select word/select line respectively (Fixes bug #76031)
25233           - Added support for drag expansion of word/line selection
25234         * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
25235           current selection
25236
25237 2005-11-02  Jackson Harper  <jackson@ximian.com>
25238
25239         * X11Dnd.cs: If the drag is going to and from a MWF window just
25240         copy the data instead of sending it out through the X Selection
25241         mechanism.
25242
25243 2005-11-02  Jackson Harper  <jackson@ximian.com>
25244
25245         * X11Dnd.cs:
25246         * XplatUIX11.cs: When in a drag we don't want motion notify
25247         messages to get passed on to the other controls. This prevents
25248         mouse move messages from showing up in the drag source.
25249
25250 2005-11-02  Jackson Harper  <jackson@ximian.com>
25251
25252         * X11Dnd.cs: Remove unneeded call to XAllowEvents.  Make sure that
25253         the correct button is release to end a drag.
25254         * XplatUIX11.cs: Make the button state internal so the drag system
25255         can access it.  Dragging needs to know about all button releases,
25256         not just left button.
25257
25258 2005-11-02  Miguel de Icaza  <miguel@novell.com>
25259
25260         * Form.cs (Icon): If the icon is null, reset the icon to the
25261         default value. 
25262
25263         * Cursor.cs: When writing the AND-mask bitmap do not include the
25264         number of colors, but hardcode those to two (black and white),
25265         fixes the loading of color cursors (Paint Dot Net).
25266
25267         * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
25268         turn off autoscaling.
25269
25270         * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
25271
25272 2005-11-02  Jackson Harper  <jackson@ximian.com>
25273
25274         * X11Dnd.cs: Make sure to send a status message if the pointer
25275         enters a control that can not accept a drop, otherwise the cursor
25276         isn't updated correctly. Also tried to compress the lines of code
25277         a bit.
25278
25279 2005-11-02  Jackson Harper  <jackson@ximian.com>
25280
25281         * X11Dnd.cs: Change cursors based on drag action. Also attempt to
25282         set actions correctly.  This isn't perfect as XDND and win32 have
25283         some differences on how you allow actions. I'll clear this up by
25284         adding a path for drag from MWF to MWF windows.
25285         * XplatUIX11.cs: Hook into the dnd system.
25286
25287 2005-11-02  Jordi Mas i Hernandez <jmas@softcatala.org>
25288
25289         * ListView.cs: Fixes scroll bar visibility. Hide them if they were
25290         previously shown but they are no longer need it. Very obvious when 
25291         browsing files with FileDialog.
25292
25293 2005-11-01  Peter Dennis Bartok  <pbartok@novell.com>
25294
25295         * Control.cs: We always need to call OnPaintBackground. We pretty much
25296           ignore AllPaintingInWmPaint and always do the painting there, whether 
25297           it's set or not, since we always ignore the WM_ERASEBKGND message 
25298           (which we don't generate on X11). This fixes #76616.
25299         * Panel.cs: Removed unneeded background painting. This happens properly
25300           in Control.cs already
25301
25302 2005-10-31  Mike Kestner  <mkestner@novell.com>
25303
25304         * Menu.cs: Add items to collection before setting their index.
25305         * MenuItem.cs : add range checking with ArgumentException like MS.
25306         [Fixes #76510]
25307
25308 2005-10-31  Jackson Harper  <jackson@ximian.com>
25309
25310         * ListBox.cs: Invalidate if the area is visible at all not just
25311         contained in the visible rect. Fixes unselection of semi visible
25312         items.
25313
25314 2005-10-31  Jackson Harper  <jackson@ximian.com>
25315
25316         * Control.cs: Consistently name the dnd methods. Make them
25317         internal so we can override them to match some MS behavoir
25318         internally.
25319         * Win32DnD.cs: Use the new consistent names.
25320
25321 2005-10-31  Jackson Harper  <jackson@ximian.com>
25322
25323         * TreeView.cs: Don't draw the selected node when we lose focus.
25324
25325 2005-10-31  Jackson Harper  <jackson@ximian.com>
25326
25327         * X11Dnd.cs: We still need to reset the state even though a full
25328         reset isn't being done, otherwise status's still get sent all over
25329         the place.
25330
25331 2005-10-31  Jackson Harper  <jackson@ximian.com>
25332
25333         * Control.cs: Make the dnd_aware flag internal so the dnd
25334         subsystem can check it. Catch exceptions thrown in dnd handlers to
25335         match MS behavoir.
25336         * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
25337         * X11Dnd.cs: Handle null data in the converters. Set the XDND
25338         version when sending a XdndEnter. Use the control/hwnd dnd_aware
25339         flags to reduce the number of dnd enters/status's sent.
25340
25341 2005-10-31  Jackson Harper  <jackson@ximian.com>
25342
25343         * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
25344
25345 2005-10-31  Jordi Mas i Hernandez <jordi@ximian.com>
25346
25347         * PictureBox.cs: Fixes 76512
25348
25349 2005-10-28  Jackson Harper  <jackson@ximian.com>
25350
25351         * X11Dnd.cs: Early implementation to support winforms being a drag
25352         source for data on X11. Also restructured the converters so they
25353         can go both ways now.
25354         * XplatUIX11.cs: Tie ins to the the Dnd stuff.
25355         
25356 2005-10-27  Peter Dennis Bartok  <pbartok@novell.com>
25357
25358         * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
25359           clipboard requests
25360
25361 2005-10-27  Jackson Harper  <jackson@ximian.com>
25362
25363         * TreeNode.cs: Implement serialization so my DnD examples will work.
25364
25365 2005-10-24  Kornél Pál  <kornelpal@hotmail.com>
25366
25367         * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
25368           TreeView.cs: Don't dispose objects that are not owned.
25369           
25370 2005-10-24  Peter Dennis Bartok  <pbartok@novell.com>
25371
25372         * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
25373           should retrieve the current cursor and report that, but XplatUI
25374           doesn't (yet) have an interface for that (and I'm not sure I even
25375           can, on X11)
25376         * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
25377           until any message loop processing is done (and the WM_SETCURSOR
25378           replaces the cursor to the proper one)
25379         * XplatUIX11.cs: 
25380           - Fixed override behaviour, we can't set the cursor globally on X11, 
25381             just for our windows.
25382           - Invalidating the System.Drawing X11 display handle when we are
25383             shutting down
25384         * Control.cs: Fix to make csc happy
25385
25386 2005-10-23  Peter Dennis Bartok  <pbartok@novell.com>
25387
25388         * TextBoxBase.cs: 
25389           - get_Text: Add last line (without trailing newline) to returned
25390             value (Fixes 76212)
25391           - get_TextLength: Count last line in returned length
25392           - ToString: Call Text property instead of duplicating code
25393
25394 2005-10-23  Kornél Pál  <kornelpal@hotmail.com>
25395
25396         * ImageList.cs: Dispose ImageAttributes objects.
25397
25398 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
25399
25400         * ImageList.cs: Use attribute constructors with less arguments where
25401           possible.
25402
25403 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
25404
25405         * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
25406           Use typeof instead of strings when assembly is referenced. Added
25407           some more comments.
25408
25409 2005-10-21  Jackson Harper  <jackson@ximian.com>
25410
25411         * ListView.cs: Raise a double click event. Also tried to somewhat
25412         fix when the selectedindexchanged event is raised. Its still
25413         broken though.
25414
25415 2005-10-21  Jackson Harper  <jackson@ximian.com>
25416
25417         * TreeView.cs: New method to invalidate the plus minus area of a
25418         node without invalidating the whole node (maybe this can be used
25419         in some more places).
25420         * TreeNodeCollection.cs: When adding to an empty node we need to
25421         invalidate its plus minus area so the little block shows up.
25422         
25423 2005-10-21  Jackson Harper  <jackson@ximian.com>
25424
25425         * TreeView.cs: Make sure that when we invalidate a node the bounds
25426         are big enough to cover the selected box and the focus
25427         rectangle. Use a different colour for the lines connecting nodes
25428         so they show up with all themes.
25429
25430 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
25431
25432         * NativeWindow.cs: Don't call anything that could call into the driver,
25433           we might be on a different thread.
25434
25435 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com> 
25436
25437         * Control.cs(Dispose): Since Dispose might run on a different thread,
25438           make sure that we call methods that could call into the driver via
25439           invoke, to avoid thread issues
25440
25441 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
25442
25443         * XplatUI.cs: Removed finalizer
25444         * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
25445           not allowing to be called on the finalizer thread.
25446
25447 2005-10-21  Kornél Pál  <kornelpal@hotmail.com>
25448
25449         * ImageList.cs:
25450           - Reverted r51889 and r51891.
25451           - Added ImageListItem class that stores unmodified image items and image
25452             properties required to create list images until handle is created.
25453           - Added AddItem and moved image creation logic to AddItemInternal.
25454           - Added CreateHandle method that creates images based on unmodified items.
25455           - Added DestroyHandle that changes state to store unmodified items.
25456           - Add and AddStrip methods no more create handle.
25457           - ReduceColorDepth has no return value.
25458           - Dispose destroys handle.
25459           - Modified other methods to reflect the above changes.
25460           - Implemented key support.
25461           - Added profile 2.0 members and attributes.
25462           - Added private Reset and ShouldSerialize methods that provide the same
25463             behavior as MS.NET but the Visual Studio .NET designer seems to ignore
25464             them as they are private.
25465           - Added some more comments about implementation details.
25466
25467 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
25468
25469         * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
25470
25471 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
25472
25473         * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
25474
25475 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
25476
25477         * DataGridDrawingLogic.cs: Fixes column hit calcultation
25478         * DataGridColumnStyle.cs: Remove debug message
25479
25480 2005-10-20  Jackson Harper  <jackson@ximian.com>
25481
25482         * TreeView.cs: We can always get input keys regardless of whether
25483         or not editing is enabled. They are used for navigation.
25484
25485 2005-10-20  Jackson Harper  <jackson@ximian.com>
25486
25487         * TreeNode.cs: Use the viewport rect for determining if a node
25488         needs to be moved for visibility. Don't use Begin/End edit. This
25489         calls a full refresh when its done.
25490         * TreeView.cs: New SetBottom works correctly.  Make the viewport
25491         rect property internal so the treenodes can see it. When clicking
25492         on a node we need to ensure that its visible because it might just
25493         be partly visible when clicked.
25494
25495 2005-10-20  Jackson Harper  <jackson@ximian.com>
25496
25497         * TreeNodeCollection.cs: Remove debug code.
25498
25499 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
25500
25501         * Datagrid.cs: Implements column sorting in Datagrid
25502         * DataGridColumnStyle.cs: Implements column sorting in Datagrid
25503
25504 2005-10-20  Jackson Harper  <jackson@ximian.com>
25505
25506         * TreeNodeCollection.cs: Remove items properly. Update the correct
25507         area after removing them.
25508
25509 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
25510
25511         * Datagrid.cs: Should not call base.OnPaintBackground
25512
25513 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
25514
25515         * XplatUIX11.cs (GetMessage):
25516           - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
25517             window instead of client window
25518           - Now properly calculates NC_xBUTTONUP message coordinates
25519           - ScreenToMenu now properly calculates it's coordinates of whole 
25520             window, since menus are in the whole window, not in the client
25521             window
25522           - Added WholeToScreen coordinate translation method
25523
25524 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com> 
25525
25526         * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
25527           want to return a message, loop back to the beginning of the function
25528           and grab the next real message to process instead.
25529
25530 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
25531
25532         * Splitter.cs: Properly set limits if no filler control is used
25533
25534 2005-10-19  Jackson Harper  <jackson@ximian.com>
25535
25536         * ColorDialog.cs: Don't show the help button if it is not enabled
25537         instead of disabling it (this is what MS does). Don't create the
25538         panel until the dialog is run, otherwise the vars (such as
25539         ShowHelp) are not set yet.
25540
25541 2005-10-19  Jackson Harper  <jackson@ximian.com>
25542
25543         * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
25544         are reduced when adding nodes.
25545         * TreeNode.cs:
25546         * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
25547         tree.
25548         
25549 2005-10-19  Jackson Harper  <jackson@ximian.com>
25550
25551         * FolderBrowserDialog.cs: End editing our treeview so the window
25552         actually gets refreshed.
25553
25554 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
25555
25556         * Control.cs: Fixed logic flip on when to call OnPaintBackground. 
25557           Obsoleted handling of WM_ERASEBKGND, now always draws our background
25558           inside of WM_PAINT
25559
25560 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
25561
25562         * MenuAPI.cs: Returns after Hidding window
25563         * XplatUIX11.cs: Added TODO found while debugging menu issues
25564
25565 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
25566
25567         * XplatUIX11.cs: Do not re-map the whole window when it's size
25568           becomes non-zero unless it's supposed to be actually visible
25569
25570 2005-10-18  Jackson Harper  <jackson@ximian.com>
25571
25572         * TreeView.cs: We don't need to keep a count anymore.
25573         * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
25574         use the Grow method.
25575
25576 2005-10-18  Jackson Harper  <jackson@ximian.com>
25577
25578         * TreeNodeCollection.cs: Insert is not supported on arrays, so
25579         implement it manually here.
25580
25581 2005-10-18  Jackson Harper  <jackson@ximian.com>
25582
25583         * ImageList.cs: Dont kill the list when the colour depth is
25584         changed, just change the colour depth of all the images.
25585         - Same goes for setting the image size. Just resize them all
25586         instead of killing the list softly.
25587
25588 2005-10-18  Jackson Harper  <jackson@ximian.com>
25589
25590         * Control.cs: Don't invalidate empty rectangles.
25591
25592 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
25593
25594         * ListViewItem.cs:
25595           - Adds checked item to the Checked/Item lists (where empty before)
25596           - Do not add items to the Selected lists if they are already present
25597         * ListView.cs:
25598           - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
25599           - When deleting items make sure that we delete them for the Selected
25600           and Checked list also.
25601
25602 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
25603
25604         * Label.cs: Dispose objects no longer used
25605         * ThemeWin32Classic.cs: Dispose objects no longer used
25606
25607 2005-10-18  Jackson Harper  <jackson@ximian.com>
25608
25609         * TabControl.cs: Don't refresh the whole control when the tabs are
25610         scrolled, we just need to refresh the tab area.
25611
25612 2005-10-17  Jackson Harper  <jackson@ximian.com>
25613
25614         * XplatUIX11.cs: Compress code a little bit. Only calculate the
25615         after handle when we need it.
25616
25617 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
25618
25619         * Control.cs: When the parent size changes, recalculate anchor 
25620           positions. Partial fix for #76462
25621
25622 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
25623
25624         * ThemeWin32Classic.cs: Make sure the picturebox has it's background 
25625           drawn. Fixes #76462
25626
25627 2005-10-17  Jackson Harper  <jackson@ximian.com>
25628
25629         * MonthCalendar.cs: Don't create the numeric up down until our
25630         handle is created. Otherwise our handle is created in the
25631         constructor and we don't know if we are a WS_CHILD or WS_POPUP
25632         yet.
25633
25634 2005-10-17  Jackson Harper  <jackson@ximian.com>
25635
25636         * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
25637         correctly.
25638
25639 2005-10-17  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
25640         * TreeNode.cs : small logical fix (was using local var instead of field)
25641         
25642 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
25643
25644         * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
25645
25646 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
25647
25648         * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
25649
25650 2005-10-16  Peter Dennis Bartok  <pbartok@novell.com> 
25651
25652         * Control.cs: 
25653           - Re-implemented anchoring code. My first version was really broken.
25654             This fixes bug #76033. Unlike the previous implementation we will
25655             no longer have round errors since all numbers are calculated from
25656             scratch every time. Removed various anchor-related obsolete vars.
25657           - InitLayout no longer causes layout event firing and layout to be 
25658             performed
25659
25660 2005-10-16  Jackson Harper  <jackson@ximian.com>
25661
25662         * Hwnd.cs: Compute invalid area correctly (fixes my last commit
25663         which was broken).
25664
25665 2005-10-16  Jackson Harper  <jackson@ximian.com>
25666
25667         * TabControl.cs: Remove debug code.
25668
25669 2005-10-16  Jackson Harper  <jackson@ximian.com>
25670
25671         * XEventQueue.cs: Increase the default queue size (very simple
25672         apps needed to grow the queue).
25673         * Hwnd.cs: No finalizer so we don't need to suppress
25674         finalization. Compute the invalid area manually so a new rectangle
25675         does not newto be created.
25676         * ScrollableControl.cs: Don't set any params (otherwise visibility
25677         isn't set correctly).
25678         * MdiChildContext.cs: New constructor takes the mdi parent so it
25679         doesn't have to be computed and avoids a crash on windows. Draw
25680         the window icon properly, and allow the text to be seen.
25681         * Form.cs: Use new MdiChildContext constructor. Make sure the
25682         child context isn't null in wndproc.
25683         * TabControl.cs: Don't set focus, this is muddling keyboard
25684         behavoir. Expand the tab rows when a window size increase will
25685         allow extra tabs to be seen. Don't allow tabs smaller than the
25686         width of a window to be scrolled out of view.
25687         * TreeNode.cs:
25688         * TreeView.cs: Use measure string to calculate a nodes width, the
25689         width is cached and only updated when the text or the font is
25690         changed. Don't check for expand/collapse clicks on the first level
25691         nodes if root lines are disabled.
25692         
25693 2005-10-16  Ritvik Mayank  <mritvik@novell.com>
25694
25695         * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
25696
25697 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
25698
25699         * DataGridBoolColumn.cs: fixes warning
25700
25701 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
25702
25703         * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
25704         to match more to match more precisely the MS Net behavior
25705
25706 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
25707
25708         * Hwnd.cs: Added field to track if window is mapped
25709         * XplatUIX11.cs: 
25710           - Unmap windows if they become 0-size, re-map when 
25711             they are >0 again; fixes #76035
25712           - Re-set our error handler after initializing X11Desktop
25713             to override any error handlers Gtk or whatever was called
25714             may have set.
25715
25716 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
25717
25718         * CheckedListBox.cs: Removed unused vars
25719         * ListView.cs: Fixed signatures
25720         * RichTextBox.cs: Removed unused vars
25721         * TextBoxBase.cs: Removed unused vars
25722         * XplatUIWin32.cs: Removed unused vars
25723         * XplatUIX11.cs: Removed unused vars
25724         * XplatUI.cs: Updated version and date to latest published
25725
25726 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
25727
25728         * Cursor.cs: Added private .ctor to work around a bug in
25729           resourceset (Thanks to Geoff Norton for the help on this)
25730         * SplitterEventArgs.cs: Made fields accessible so we don't
25731           waste boatloads of objects and can reuse the same one
25732           in Splitter
25733         * XplatUIWin32.cs(DrawReversibleLine): Now also considers
25734           any captions and borders when generating screen coordinates
25735         * Splitter.cs: Reimplemented control, now fully complete, uses
25736           rubberband drawing, supports and obeys all properties, has
25737           proper cursors
25738
25739 2005-10-13  Miguel de Icaza  <miguel@novell.com>
25740
25741         * Form.cs (Form): Setup default values for autoscale and
25742         autoscale_base_size;  Make these instance variables, not static
25743         variables. 
25744
25745         (OnLoad): on the first load, adjust the size of the form.
25746
25747 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
25748
25749         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added 
25750           width argument to DrawReversibleRectangle()
25751         * XplatUIWin32.cs, XplatUIX11.cs: 
25752           - Implemented width for DrawReversibleRectangle()
25753           - Added logic to DrawReversibleRectangle that recognizes a zero
25754             width or height and only draws a line in that situation
25755         
25756 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com> 
25757
25758         * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
25759         * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
25760         * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
25761           method (it uses our FosterParent window to get a graphics context)
25762
25763 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com>
25764
25765         * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground 
25766           and SetWindowBackground methods
25767         * Control.cs:
25768           - Setting proper ControlStyles
25769           - We no longer call XplatUI.SetWindowBackground and XplatUI.
25770             EraseWindowBackground, instead we draw the window background
25771             ourselves in PaintControlBackground. This behaviour is
25772             required to match MS, where, when OnPaintBackground is not
25773             called, the background is not drawn.
25774           - Removed unneeded Refresh() in set_Text
25775         * Hwnd.cs: Dropped the ErasePending support. No longer needed
25776         * XplatUIX11.cs:
25777           - Created DeriveStyles method to translate from CreateParams to
25778             FormBorderStyle and TitleStyle, also handles BorderStyle (which
25779             matches FormBorderStyle enum values)
25780           - Consolidated SetHwndStyles and CalculateWindowRect border/title
25781             style calculations into single DeriveStyles method
25782           - Fixed CreateWindow to (finally) use Gravity. This prevents X11
25783             from redrawing the whole window on any resize or expose.
25784           - Fixed CreateWindow usage of SetWindowValuemask. Before not
25785             all styles were applied to our whole/client window appropriately
25786           - Removed EraseWindowBackground() and SetWindowBackground() methods
25787           - Removed handling of WM_ERASEBKGND message from DefWndProc, we
25788             no longer clear/redraw the background through X
25789           - Removed handling of erase_pending bit, we have no use for it (or
25790             so it seems)
25791         * XplatUIOSX.cs:
25792           - Removed generation and handling of WM_ERASEBKGND message
25793           - Removed EraseWindowBackground() and SetWindowBackground() methods
25794           - Removed handling of hwnd.ErasePending flag
25795         * XplatUIWin32.cs:
25796           - Removed EraseWindowBackground() and SetWindowBackground() methods
25797           - We no longer call EraseWindowBackground on PaintEventStart, we 
25798             ignore the fErase flag, erasing is handled in Control in the
25799             background handler
25800         * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
25801           LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
25802           TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs, 
25803           CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs, 
25804           DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, 
25805           TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
25806           DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
25807
25808 2005-10-12  Jonathan Chambers <jonathan.chambers@ansys.com>
25809
25810         * PropertyGrids.cs: Get sub properties
25811         * PropertyGridView.cs: Fix drawing code
25812
25813 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
25814
25815         * ListBox.cs: Fixes 76383
25816
25817 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
25818
25819         * DataGridTextBoxColumn.cs: Sets location and size before attachment
25820         * ThemeWin32Classic.cs: Fixes border drawing and calculations
25821         * DataGridDrawingLogic.cs: Fixes border drawing and calculations
25822
25823
25824 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
25825
25826         * ComboBox.cs: Fixes border drawing
25827
25828 2005-10-10  Miguel de Icaza  <miguel@novell.com>
25829
25830         * MimeIcon.cs: Ignore errors if the file can not be read.
25831
25832 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
25833
25834         * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
25835          - Fixed border calculations
25836          - Fixed horizontal scrolling in single column listboxes
25837          - Fixed drawing issues
25838
25839 2005-10-10  Peter Dennis Bartok  <pbartok@novell.com>
25840
25841         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to 
25842           FormBorderStyle enum
25843         * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added 
25844           code to determine FormBorderStyles from CreateParams
25845         * Form.cs:
25846           - Fixed bug where we'd set the wrong window styles if we were
25847             not creating an MDI window
25848           - Added call to XplatUI.SetBorderStyle when form borders are set
25849         * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
25850         * Hwnd.cs:
25851           - Removed obsolete edge style
25852           - Switched from BorderStyle to FormBorderStyle
25853         
25854 2005-10-10  Jackson Harper  <jackson@ximian.com>
25855
25856         * Form.cs: Use the property to get the window handle instead of
25857         accessing it directly. Prevents a null reference exception.
25858
25859 2005-10-10  Jackson Harper  <jackson@ximian.com>
25860
25861         * TreeView.cs: Don't adjust the rect given to DrawString now that
25862         our libgdiplus draws correctly.
25863
25864 2005-10-08  Jackson Harper  <jackson@ximian.com>
25865
25866         * TreeView.cs: Don't try to find the clicked on node if there are
25867         no nodes in the tree.
25868
25869 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
25870
25871         * RichTextBox.cs:
25872
25873           restore
25874
25875 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
25876
25877         * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
25878           ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
25879           ErrorProvider.cs:
25880           Use ResPool for brushes and dispose System.Drawing objects that
25881           are not used anymore.
25882
25883 2005-10-07  Jackson Harper  <jackson@ximian.com>
25884
25885         * MdiChildContext.cs: Use the new borders instead of drawing them
25886         ourselves.
25887
25888 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
25889
25890         * Calling UpdateBounds after changing the window's BorderStyle 
25891         since the style can change the ClientSize
25892
25893 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
25894
25895         * Control.cs: Made PaintControlBackground virtual
25896         * Panel.cs: Overriding PaintControlBackground instead of using paint
25897           event; paint event method was interfering with 'real' users of the
25898           event.
25899
25900 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
25901
25902         * ThemeWin32Classic.cs: remove border drawing since it is handled
25903         by the base control class now and was causing double border drawing.
25904
25905 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
25906
25907         * Panel.cs: Redraw our background on paint. Not a pretty solution,
25908           but it does seem to match MS behaviour. This fixes bug #75324
25909
25910 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
25911
25912         * XplatUIX11.cs: A better DrawReversibleRectangle version, however
25913           somewhat hackish looking
25914
25915 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
25916
25917         * TextBoxBase.cs:
25918           - We now accept Enter even if AcceptEnter is false, if the containing
25919             form does not have an AcceptButton configured (fixes bug #76355)
25920           - Calculations are now fixed to no longer use Width/Height, but
25921             ClientSize.Width/Height, since we now support borders (this was
25922             a result of fixing borders and therefore bug #76166)
25923           - We no longer show the horizontal scrollbar if TextBox.WordWrap is 
25924             true (fixes bug #76354)
25925         
25926 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
25927
25928         * Control.cs: 
25929           - Defaulting BorderStyle and setting it in XplatUI when our window 
25930             is created
25931           - Added enum check to InternalBorderStyle setter
25932         * XplatUIX11.cs: 
25933           - Added drawing of window borders
25934           - Now properly calculates WM decorations offset for toplevel 
25935             windows (fixes bug #74763)
25936         * XplatUIWin32.cs: 
25937           - Implemented BorderStyles for windows (we're letting win32 draw 
25938             the border for us)
25939           - Fixed the signature for SetWindowLong
25940         * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
25941           ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for 
25942           setting borders
25943         * UpDownBase.cs: Remove drawing of borders, this is handled by
25944           the driver, outside the client area
25945         * ListView.cs: Removed bogus border calculations. The control should
25946           be oblivious to borders, since those are not part of the client
25947           area. 
25948         * X11DesktopColors.cs: Commented out (currently) unneeded variables
25949         * ThemeWin32Classic.cs: Removed border calculations from ListView 
25950           drawing code
25951
25952 2005-10-06  Jackson Harper  <jackson@ximian.com>
25953
25954         * MdiChildContext.cs: Clear out the old virtual position remove
25955         all the unneeded calls to CreateGraphics.
25956
25957 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
25958
25959         * TextControl.cs: Use proper color for highlighted text; fixes #76350
25960
25961 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
25962
25963         * Form.cs: 
25964           - Added loading and setting of our new default icon
25965           - Only set icon if window is already created
25966
25967 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
25968
25969         * Label.cs:
25970           - Do not explicitly set the foreground and background colors, to
25971             allow inheriting from parents (fixes #76302)
25972           - Use Control's InternalBorderStyle property to deal with borders
25973
25974 2005-10-06  Jackson Harper  <jackson@ximian.com>
25975
25976         * MdiChildContext.cs: Use the new xplatui function to draw a
25977         reversible rect.
25978
25979 2005-10-06  Jackson Harper  <jackson@ximian.com>
25980
25981         * Form.cs: Add the parent before creating the child context cause
25982         we need the parent when setting up the child.
25983
25984 2005-10-06  Jackson Harper  <jackson@ximian.com>
25985
25986         * FolderBrowserDialog.cs: redo the tree population code so a
25987         second thread isn't used. Should be a lot faster and more stable
25988         now.
25989
25990 2005-10-05  Jackson Harper  <jackson@ximian.com>
25991
25992         * TreeView.cs: There are no expand/collapse boxes if the node has
25993         no children.
25994
25995 2005-10-05  Jackson Harper  <jackson@ximian.com>
25996
25997         * X11DesktopColors.cs: Get menu colours for the gtk theme.
25998
25999 2005-10-05  Alexander Olk  <alex.olk@googlemail.com>
26000
26001         * FileDialog.cs: Fix InitialDirectory
26002
26003 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
26004
26005         * ComboBox.cs:
26006                 - Fixes changing between styles
26007                 - Fixes simple mode
26008                 - Fixes last item crashing when navigating with keyboard
26009
26010 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
26011
26012         * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
26013
26014 2005-10-05  Jackson Harper  <jackson@ximian.com>
26015
26016         * TreeView.cs: If updating the root node do a full refresh.
26017         * TreeNode.cs: The root node should be expanded by default. Also
26018         added a utility prop to tell if we are the root node.
26019         * TreeNodeCollection.cs: Only refresh if the node we are being
26020         added to is expanded. Also added a comment on a potential
26021         optimization.
26022         
26023 2005-10-04  Peter Dennis Bartok  <pbartok@novell.com>
26024
26025         * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize() 
26026           in dispose method. Fixes #76330
26027
26028 2005-10-04  Jordi Mas i Hernandez <jordi@ximian.com>
26029
26030         * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
26031
26032                 - Implements vertical and horizontal scrolling using XplatUI
26033                 - Fixes keyboard navagation
26034                 - Fixes EnsureVisible
26035                 - Drawing fixes
26036                 - Handles and draws focus properly
26037
26038
26039 2005-10-04  Kornél Pál  <kornelpal@hotmail.com>
26040
26041         * ImageList.cs: Use upper case initials for internal fields. ImageStream:
26042           Create handle. NET_2_0: Destroy handle when value is null.
26043
26044 2005-10-03  Jackson Harper  <jackson@ximian.com>
26045
26046         * ScrollBar.cs: My last scrollbar patch was broken. This is a
26047         revert and a new patch to prevent the thumb from refreshing so
26048         much.
26049
26050 2005-10-02  Jackson Harper  <jackson@ximian.com>
26051
26052         * ScrollBar.cs: Don't update position if it hasn't actually
26053         changed. This occurs when you hold down the increment/decrement
26054         buttons and the thumb gets to the max/min.
26055
26056 2005-10-01  Jackson Harper  <jackson@ximian.com>
26057
26058         * Form.cs:
26059         * MdiChildContext.cs:
26060         * MdiClient.cs: Implement ActiveMdiChild in Form.
26061
26062 2005-10-01  Jordi Mas i Hernandez <jordi@ximian.com>
26063
26064         * ComboBox.cs: Include ComboBoxEdit flag for the edit item
26065
26066 2005-10-01  Peter Dennis Bartok  <pbartok@novell.com>
26067
26068         * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
26069           be found
26070
26071 2005-09-30  Jackson Harper  <jackson@ximian.com>
26072
26073         * ListBox.cs: Don't do a full refresh unless some data has
26074         actually changed.
26075
26076 2005-09-30  Jackson Harper  <jackson@ximian.com>
26077
26078         * TreeView.cs: Make sure that the checkboxes size is factored in
26079         even when not visible.
26080
26081 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
26082
26083         * FileDialog.cs: Fix Jordi's build break
26084
26085 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
26086
26087         * FileDialog.cs: 
26088                 - Use standard the Windows colours for the combobox as espected
26089                 - Dispose objects that use resouces when no longer need them
26090
26091 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
26092
26093         * X11DesktopColors.cs: Initial incomplete implementation
26094         * XplatUIX11.cs: Added call to initialize X11DesktopColors
26095
26096 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com>
26097
26098         * Theme.cs: 
26099           - Switched Theme color names to match the names defined in 
26100             System.Drawing.KnownColors. Life's hard enough, no need to make 
26101             it harder.
26102           - Added setters to all theme color properties so themes can set
26103             their color schemes. The setters also propagate the color changes
26104             to System.Drawing.KnownColors via reflection
26105         * ControlPaint.cs,  Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
26106           ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
26107           DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
26108           use the new, more logical theme color names
26109         * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
26110           post-NT colors
26111         * ThemeWin32Classic.cs:
26112           - Removed code to set the old classic Windows colors. Instead it
26113             now relies on the colors returned by System.Drawing.KnownColors
26114             which will be either modern static colors (Unix) or colors
26115             read from the user's configuration (Win32)
26116           - Updated to use the new, more logical theme color names
26117           - Switched DataGrid drawing code to use only Theme colors instead of
26118             a mix of System.Drawing.KnownColors and Theme colors
26119           - DrawFrameControl(): Removed code that fills the button area, the
26120             fill would overwrite any previous fill done by a control. This
26121             fixes bug #75338 
26122           - Added DrawReversibleRectangle() stub
26123         * ScrollableControl.cs: Set visible state to false when scrollbars
26124           are removed (pdn fix)
26125         * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added 
26126           DrawReversibleRectangle() method to allow drawing primitive 
26127           'rubber bands'
26128         * XplatUIX11.cs: Implemented DrawReversibleRectangle()
26129
26130 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
26131
26132         * ImageList.cs: Add(Icon): Create handle.
26133
26134 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
26135
26136         * ListView.cs:
26137         * ThemeWin32Classic.cs:
26138                 - Fixes detail mode
26139                 - Sets clippings
26140                 - Issues with drawing
26141
26142 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
26143
26144         * ImageList.cs: Moved RecreateHandle back to ImageList as event
26145           source has to be the ImageList.
26146
26147 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
26148
26149         * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
26150
26151 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
26152
26153         * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
26154
26155 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
26156
26157         * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
26158
26159 2005-09-29  Jonathan Chambers <jonathan.chambers@ansys.com>
26160         * GridItem.cs: Fixed TODOs
26161         * GridItemCollection.cs: Added ICollection interface
26162
26163 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
26164
26165         * ImageList.cs: Resize icons when needed.
26166
26167 2005-09-29  Jordi Mas i Hernandez <jordi@ximian.com>
26168
26169         * ListViewItem.cs
26170                 - Fixes GetBounds and returns on screen rects
26171         * ListView.cs:
26172                 - Fixes vertical and horzintal scrolling of items
26173         * ThemeWin32Classic.cs:
26174                 - Fixes drawing
26175                 
26176 2005-09-29  Raja R Harinath  <harinath@gmail.com>
26177
26178         * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
26179
26180 2005-09-29  Kornél Pál  <kornelpal@hotmail.com>
26181
26182         * ImageList.cs: Added comments about handle creation. Moved Handle,
26183           HandleCreated and OnRecreateHandle implementations to ImageCollection.
26184           Handle is created in Add methods.
26185
26186 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
26187          
26188         * DataGridDrawingLogic.cs: 
26189                 - Takes rows into account on Colum calculations
26190                 - Returns the column when clickig
26191         * DataGrid.cs:
26192                 - Fixes default HitTestInfo values
26193                 - Fixes HitTestInfo.ToString
26194                 - Fixes ResetBackColor          
26195         
26196 2005-09-28  Jackson Harper  <jackson@ximian.com>
26197
26198         * MdiChildContext.cs: Obey rules for fixed sized windows (no
26199         sizing or cursor changes). Also added some temp code to draw the
26200         titlebars text (Makes dev a little easier).
26201
26202 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
26203
26204         * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
26205
26206 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
26207          
26208         * ListBox.cs: Fixes bug 76253
26209
26210 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
26211
26212         * ImageList.cs: Added comments about the current implementation. Added
26213           ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
26214           Format32bppArgb to preserve transparency and can use Graphics.FromImage
26215           while using the specified ColorDepth. ReduceColorDepth uses unsafe code
26216           with Bitmap.LockBits for better performance. Revised the whole file to
26217           match MS.NET behaviour and provide better performance. Non-public
26218           interface members are calling public members even when they throw
26219           NotSupportedException for better maintainability. Moved ColorDepth,
26220           ImageSize, ImageStream and TransparentColor implementations to
26221           ImageCollection for better performance as these properties are not used
26222           by ImageList.
26223         * ImageListStreamer.cs: Added a new internal constructor that takes an
26224           ImageList.ImageCollection and serializes Images based on
26225           ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
26226           match ImageList property name.
26227
26228 2005-09-28  Kazuki Oikawa <kazuki@panicode.com>
26229
26230         * ListBox.cs: Fixes IndexFromPoint for last item
26231
26232 2005-09-27  Jackson Harper  <jackson@ximian.com>
26233
26234         * Form.cs: Set the position of new mdi children correctly.
26235
26236 2005-09-27  Jackson Harper  <jackson@ximian.com>
26237
26238         * MdiClient.cs: New mdi children need to be added to the back of
26239         the controls collection so the zorder is set correctly. Also add a
26240         count of all the child windows that have been created.
26241
26242 2005-09-27  Jackson Harper  <jackson@ximian.com>
26243
26244         * Form.cs (CreateParams): Setup MDI forms correctly.
26245
26246 2005-09-27  Jackson Harper  <jackson@ximian.com>
26247
26248         * MdiChildContext.cs:
26249         * MonthCalendar.cs:
26250         * UpDownBase.cs:
26251         * ListBox.cs:
26252         * ListView.cs:
26253         * TextBoxBase.cs:
26254         * TreeView.cs:
26255         * ScrollableControl.cs:
26256         * ComboBox.cs: Add implicit controls using the new implict control
26257         functionality in ControlCollection. Also try to block multiple
26258         control add in a suspend/resume layout to save some cycles.
26259         
26260 2005-09-27  Jackson Harper  <jackson@ximian.com>
26261
26262         * Control.cs: Add functionality to the controls collection to add
26263         'implicit controls' these are controls that are created by the
26264         containing control but should not be exposed to the user. Such as
26265         scrollbars in the treeview.
26266         * Form.cs: The list var of the ControlsCollection is no longer
26267         available because of the potential of implicit controls getting
26268         ignored by someone accessing the list directly.
26269
26270 2005-09-26  Peter Dennis Bartok  <pbartok@novell.com>
26271
26272         * Control.cs: Fixed SetChildIndex; it no longer causes a child to
26273           loose it's parent. (Fixed bug introduced in r49103 when we added
26274           setting the child parent to null on Remove)
26275
26276 2005-09-26  Gert Driesen  <drieseng@users.sourceforge.net>
26277
26278         * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
26279         * Splitter.cs: Added missing attributes for BorderStyle property.
26280         * TextBoxBase.cs: Marked Calculate* methods internal.
26281         * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
26282         MS.NET.
26283
26284 2005-09-26  Jordi Mas i Hernandez <jordi@ximian.com>
26285          
26286         * ListBox.cs: Fixes navigation to the last item in multicolumn lists
26287
26288 2005-09-25  Jackson Harper  <jackson@ximian.com>
26289
26290         * TreeView.cs: Update the node bounds correctly regardless of
26291         whether the node is visible.
26292
26293 2005-09-25  Jackson Harper  <jackson@ximian.com>
26294
26295         * ImageList.cs: Don't dispose the image after it is added to the
26296         image list. Only reformat images that need to be resized.
26297
26298 2005-09-25  Jackson Harper  <jackson@ximian.com>
26299
26300         * ImageList.cs: Don't set the format when changing the image.
26301
26302 2005-09-25  Jackson Harper  <jackson@ximian.com>
26303
26304         * TreeView.cs: We can't just assume the node has a font. Use the
26305         treeviews font if no node font is available.
26306
26307 2005-09-25  Jackson Harper  <jackson@ximian.com>
26308
26309         * TreeView.cs: Allow the scrollbars to be reset with negative
26310         values.
26311         - Don't add scrollbars to negative sized windows.
26312
26313 2005-09-23  Jackson Harper  <jackson@ximian.com>
26314
26315         * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
26316         old Mono.Posix. Also remove some stray code that shouldn't have
26317         been committed.
26318
26319 2005-09-23  Jackson Harper  <jackson@ximian.com>
26320
26321         * TreeView.cs: Attempt at proper sizing of the horizontal
26322         scrollbar. Also don't resize the scrollbars unless they are
26323         visible.
26324
26325 2005-09-23  Jackson Harper  <jackson@ximian.com>
26326
26327         * TreeView.cs: We don't need to expand the invalid area when the
26328         selection changes, as this is all drawn in the node's bounding
26329         box. The area needs to be expanded (previous typo was contracting
26330         it) when the focus rect moves.
26331
26332 2005-09-23  Jackson Harper  <jackson@ximian.com>
26333
26334         * TreeView.cs: Display the selection box under the correct
26335         circumstances. We were rendering white text with no selection box
26336         before.
26337
26338 2005-09-23  Peter Dennis Bartok  <pbartok@novell.com>
26339
26340         * TextControl.cs(Split): Now updates selection start/end if it points 
26341           into a line that's being split. Fixes a FIXME and bug #75258
26342
26343 2005-09-23  Jackson Harper  <jackson@ximian.com>
26344
26345         * Binding.cs:
26346         * ListControl.cs: Don't use the path when retrieving binding
26347         managers from the binding context. My bat sense tells me that the
26348         path is only used on insertion.
26349
26350 2005-09-22  Jackson Harper  <jackson@ximian.com>
26351
26352         * Splitter.cs: Set the cursor an easier way. (Thanks peter).
26353
26354 2005-09-22  Jackson Harper  <jackson@ximian.com>
26355
26356         * Splitter.cs: There are special cursors used for splitting.
26357         * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
26358
26359 2005-09-22  Jackson Harper  <jackson@ximian.com>
26360
26361         * Splitter.cs: Change the cursor appropriately when the splitter
26362         is moused over, so the user actually knows there is a splitter
26363         there.
26364
26365 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
26366
26367        * Label.cs : Fix ToString method to give same output as MS.NET
26368
26369 2005-09-22  Jackson Harper  <jackson@ximian.com>
26370
26371         * TreeView.cs: Create the scrollbars when the handle is created
26372         and add them right away, just make them invisble. Also account for
26373         the window being shrunk vertically to the point that the vert
26374         scrollbar needs to be added.
26375         - Remove some 0.5 adjustments to get around anti aliasing issues.
26376         
26377 2005-09-22  Jordi Mas i Hernandez <jordi@ximian.com>
26378          
26379         * MainMenu.cs: Fixes default value
26380         * MenuItem.cs: Fixes default value
26381
26382 2005-09-22  Kazuki Oikawa  <kazuki@panicode.com>
26383
26384         * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
26385
26386 2005-09-21  Jackson Harper  <jackson@ximian.com>
26387
26388         * Control.cs: Don't try to set the border style on the window if
26389         it hasn't been created. When the window is created the border
26390         style will be used.
26391
26392 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
26393
26394         * Control.cs (Update): Don't call XplatUI if we don't have a
26395           window handle yet
26396
26397 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
26398
26399         * ContainerControl.cs: Instead of throwing an exception, print
26400           a one-time warning about Validate not being implemented
26401         * XplatUIWin32.cs: Removed debug output
26402
26403 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
26404
26405         * Control.cs: Only set XplatUI background if we expect the windowing
26406           system to handle the background. This stops controls that draw their
26407           own background from flickering
26408
26409         * XplatUIX11.cs: Support custom visuals and colormaps for window 
26410           creation. This allows, amongst other things, using MWF X11 windows 
26411           with OpenGL.
26412
26413 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
26414
26415         * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
26416           CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
26417           GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
26418           SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
26419           TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
26420           IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
26421           KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
26422           RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
26423           ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
26424           ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
26425           GridColumnStylesCollection.cs, 
26426           IDataGridColumnStyleEditingNotificationService.cs,
26427           PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
26428           MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
26429           GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs, 
26430           TreeNodeCollection.cs, AmbientProperties.cs, 
26431           RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
26432           DataObject.cs, ErrorProvider.cs, Splitter.cs,
26433           DataGridLineStyle.cs, Shortcut.cs, Control.cs,
26434           FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
26435           BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
26436           IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
26437           FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
26438           IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
26439           NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
26440           PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
26441           SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
26442           FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
26443           DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
26444           ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
26445           RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
26446           MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
26447           ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
26448           CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
26449           MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
26450           NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
26451           ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
26452           SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
26453           Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
26454           RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
26455           DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
26456           ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
26457           PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
26458           DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
26459           ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
26460           AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
26461           RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
26462           CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
26463           SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
26464           Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
26465           SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
26466           ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
26467           TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
26468
26469 2005-09-21  Jackson Harper  <jackson@ximian.com>
26470
26471         * TreeNode.cs: Call Before/After Expand not Collapse when
26472         expanding.
26473
26474 2005-09-20  Jackson Harper  <jackson@ximian.com>
26475         
26476         * XplatUIX11.cs: Use the more hand looking hand (in most themes).
26477
26478 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
26479          
26480         * ListViewItem.cs:
26481                 - Fixes bug 76120
26482                 - Fixes proper storing of subitems
26483                 - Fixes not updated items
26484
26485 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com>
26486
26487         * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
26488           things if our window handle isn't created yet. Also disabled 
26489           debug for TextBoxBase
26490
26491 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com> 
26492
26493         * MenuAPI.cs: Remove filtering of events to allow menu usage
26494
26495 2005-09-20  Miguel de Icaza  <miguel@novell.com>
26496
26497         * Cursor.cs: Allow null to be passed to Cursor.Current.
26498
26499 2005-09-20  Alexander Olk  <alex.olk@googlemail.com>
26500
26501         * ThemeWin32Classic.cs:
26502           - Change some private methods/fields to protected virtual so that 
26503             they can be accessed and overriden in derived classes
26504           - First refactoring of some methods. Derived themes now don't 
26505             need to duplicate the complete code from ThemeWin32Classic
26506         * ThemeNice.cs:
26507           - Added nice StatusBar
26508           - Derive from ThemeWin32Classic and not Theme
26509           - Removed duplicate ThemeWin32Classic code
26510
26511 2005-09-20  Miguel de Icaza  <miguel@novell.com>
26512
26513         * Control.cs (ControlCollection.Add): If the value null is passed
26514         the control is ignored. 
26515
26516         Optimize this loop.
26517
26518 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com> 
26519
26520         * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
26521           PostQuitMessage state.
26522         * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
26523
26524 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com>
26525
26526         * Application.cs: Our constructor will never get called, move 
26527           initialization to fields; fixes bug #75933
26528
26529 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
26530
26531         * FileDialog.cs :
26532                 - Allow files to be selected properly using file name
26533                 combo box.
26534                 - Add ability to change diretory (absolute / relative)
26535                 using file name combo box.
26536
26537 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
26538          
26539         * ListBox.cs: 
26540                 - Fixes Multicolumn listboxes item wrong calculations
26541                 - Allows to click when only one item is in the listbox
26542                 - Fixes crash when no items using keyboard navigation
26543
26544 2005-09-16  Alexander Olk  <alex.olk@googlemail.com>
26545
26546         * ComboBox.cs: Reverted almost everything from the latest patch which
26547           broke ComboBox
26548
26549 2005-09-16  Kazuki Oikawa <kazuki@panicode.com>
26550         
26551         * ToolTip.cs:
26552                 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
26553         * ComboBox.cs:
26554                 - When DropDownStyle is Simple, it does not show scrollbar 
26555                 to the last item of the list.
26556                 - When DropDownStyle is Simple, it crashed when the list was 
26557                 scrolled down with the down cursor key.
26558                 - Fixed a bug that when DropDownStyle is DropDownList, the 
26559                 selected item was not shown.
26560                 - The position of the selected item was not preserved when 
26561                 the next dropdown happened.
26562         * ThemeWin32Classic.cs:
26563                 - Items were wrapped at the right end.
26564         * CheckedListBox.cs:
26565                 - Fixed Add method
26566         * ListBox.cs:
26567                 - Items should be fully shown.
26568                 - When resizing and vertical scrollbar disappeared, the item 
26569                 of index 0 should be on the top of the list.
26570                 - GetItemRectangle should consider the size of ver. scrollbar
26571         * StatusBar.cs:
26572                 - SizingGrip area should not be allocated when it is not 
26573                 displayed.
26574                 - Now it reflects MinWidth of the containing panel and 
26575                 fixed a crash that happens when its width becomes so small.
26576
26577 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
26578
26579         * CheckedListBox.cs: Fixes bug 76028
26580         * ListBox.cs: Fixes bug 76028
26581
26582 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
26583
26584         * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
26585         * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
26586
26587 2005-09-12  Jordi Mas i Hernandez <jordi@ximian.com>
26588
26589         * XplatUIX11.cs: fixes System.NullReferenceException in some situations
26590
26591 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
26592
26593         * IRootGridEntry.cs: Changed namespace to PropertyGridInternal 
26594
26595 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
26596
26597         * IRootGridEntry.cs: Added
26598         * PropertyGridCommands.cs: Added
26599         * PropertiesTab.cs: Added missing methods and property
26600         * PropertyGridView.cs: Made class internal
26601         * PropertyGridTextBox.cs: Made class internal
26602
26603 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
26604
26605         * MimeIcon.cs: Try to check some other environment variables
26606           if "DESKTOP_SESSION" returns "default"
26607
26608 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
26609
26610         * ThemeNice.cs: Corrected background colors (e.g. menus)
26611         * ColorDialog.cs: Use correct background colors for controls
26612
26613 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
26614
26615         * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
26616
26617 2005-09-08  Peter Dennis Bartok  <pbartok@novell.com>
26618
26619         * RichTextBox.cs: Added initial implementation
26620         * lang.cs: Removed. Was accidentally checked in long time ago
26621         * TODO: Removed. Contents were obsolete
26622
26623 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
26624                                                                                 
26625         * PropertiesTab.cs : Added
26626
26627 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
26628                                                                                 
26629         * PropertyGrid.cs : Update
26630         * PropertyGridView.cs : Update
26631         * System.Windows.Forms.resx : Added images and strings
26632
26633 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com> 
26634
26635         * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
26636  
26637 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com>
26638
26639         * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
26640           a busy loop right after the Ungrab the X11 display is otherwise 
26641           blocked
26642
26643 2005-09-06  Jordi Mas i Hernandez <jordi@ximian.com>
26644
26645         * ThemeWin32Classic.cs: Optimise the use of clipping
26646
26647 2005-09-05  Jordi Mas i Hernandez <jordi@ximian.com>
26648
26649         * DataGrid.cs: fixes recursion bug
26650
26651 2005-09-03  Alexander Olk  <alex.olk@googlemail.com>
26652
26653         * ThemeNice.cs: 
26654           - Draw RadioButton and CheckBox Buttons with DrawButtonBase
26655           - Cleanup
26656
26657 2005-09-02  Alexander Olk  <alex.olk@googlemail.com>
26658
26659         * ThemeNice.cs: Draw nice ProgressBars
26660
26661 2005-09-01  Miguel de Icaza  <miguel@novell.com>
26662
26663         * VScrollBar.cs: Another buglet found by Aaron's tool. 
26664
26665         * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
26666         bug finder.
26667
26668 2005-08-30  Alexander Olk  <alex.olk@googlemail.com>
26669
26670         * ThemeNice.cs:
26671           - Added nicer menu drawing
26672           - Updated DrawTab
26673           - some refactoring
26674
26675 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
26676
26677         * CreateParams.cs (ToString): Made output match MS
26678         * Control.cs (Text): Don't set Text or Focus via XplatUI unless 
26679             handle is already created (to avoid forcing window creation)
26680         * XplatUIX11.cs: Set window text to caption after creating window,
26681           in case Text was set before window was created
26682         * Form.cs: Use this.Text instead of a static string as caption
26683
26684 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
26685
26686         * NotifyIcon.cs: Don't set the window to visible; this screws
26687           up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
26688           OnPaint without a bitmap)
26689         * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't 
26690           happen very often anyway; we could add the check to the WM_PAINT 
26691           event generation code
26692
26693 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
26694
26695         * NotifyIcon.cs: Fill the icon area with a background color, to 
26696           avoid 'residue' when transparent icons are drawn
26697         * XplatUIX11.cs:
26698           - Handle whole_window == client_window when destroying windows
26699           - SystrayAdd(): Set client_window to whole_window value to
26700             get mouse and other events passed to NotifyIcon
26701
26702 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
26703
26704         * Form.cs: Set proper default for Opacity property
26705         * NotifyIcon.cs:
26706           - ShowSystray(): Don't bother creating telling the OS
26707             about the systray item if no icon is provided
26708           - Now handles WM_NCPAINT message to deal with whole/client window
26709             split
26710           - Create window as visible to not get caught by Expose optimization
26711         * Hwnd.cs: Removed debug message
26712         * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
26713           StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched 
26714             PaintEventStart/End to use new client argument
26715         * TextBoxBase.cs:
26716           - Commented out debug messages
26717           - Switched PaintEventStart/End to use new client argument
26718         * XplatUI.cs: Added client window bool to PaintEventStart()/
26719           PaintEventEnd() calls, to support drawing in non-client areas
26720         * XplatUIDriver.cs: 
26721           - Added client window bool to PaintEventStart()/PaintEventEnd() 
26722             calls, to support drawing in non-client areas
26723           - Added conditional compile to allow using MWF BeginInvoke 
26724             on MS runtime
26725         * XplatUIX11.cs:
26726           - Added some conditional debug output
26727           - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
26728             whole/client window split
26729           - Implemented handling of client argument to PaintEventStart()/End()
26730         * Control.cs:
26731           - Throw exception if BeginInvoke() is called and the window handle
26732             or one of the window's parent handles is not created
26733           - Added conditional compile to allow using MWF BeginInvoke on
26734             MS runtime
26735           - get_Parent(): Only sets parent if handle is created. This avoids
26736             forcing window handle creation when parent is set.
26737           - Now fires Layout and Parent changed events in proper order
26738           - Switched to use Handle instead of window.Handle for Z-Order setting,
26739             the get_Parent() patch above causes us to possibly get null for 'window'
26740           - Implemented handling of client argument to PaintEventStart()/End()
26741           - Now reports back to windows that WM_SETCURSOR was handled (to avoid
26742             default handling)
26743           - Now sends a Refresh() to all child windows when Refresh() is called
26744
26745 2005-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
26746
26747         * Form.cs: Added (non-functional) Opacity property
26748         * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
26749
26750 2005-08-29  Alexander Olk  <xenomorph2@onlinehome.de>
26751         * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
26752           use export MONO_THEME=nice to activate it.
26753           Currently supported controls:
26754           - Button
26755           - ComboBox
26756           - ScrollBar
26757           - TabControl (TabAlignment.Top only, other will follow)
26758         * ThemeEngine.cs: Add theme nice
26759         * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
26760           if enabled
26761
26762 2005-08-25  Jonathan Chambers  <jonathan.chambers@ansys.com> 
26763
26764         * Splitter.cs: Resize docked control and its neighbor.
26765
26766 2005-08-24  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
26767         -- Making Windows with Menus layout correctly --
26768         * Form.cs : The first leg of the fix
26769                 Menu setter - adjust Client Size as needed to make space for the menu
26770                 SetClientSizeCore - doesn't call base version to be able to pass the 
26771                         menu handle to XplatUI.CalculateWindowRect
26772         * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
26773         * XplatUIX11.cs: The critical second leg of the fix
26774                 GetWindowPos needs to use a recalculated client_rect
26775                 so that resizing the window doesn't break layout of child controls. 
26776                 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
26777                 Lots of \t\n killed
26778
26779 2005-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
26780
26781         * Label.cs: Now properly recalculates width and height on Font and Text
26782           changes if AutoSize is set
26783
26784 2005-08-19  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
26785         * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
26786
26787 2005-08-19  Jordi Mas i Hernandez <jordi@ximian.com>
26788
26789         * ImageList.cs: Makes ToString method compatible with MS
26790
26791 2005-08-18  Jordi Mas i Hernandez <jordi@ximian.com>
26792
26793         * MenuAPI.cs: fixes bug 75716
26794
26795 2005-08-11 Umadevi S <sumadevi@novell.com>
26796         * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
26797
26798 2005-08-11 Umadevi S <sumadevi@novell.com>
26799         * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
26800
26801 2005-08-10  Umadevi S <sumadevi@novell.com>
26802         * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
26803
26804 2005-08-07  Jordi Mas i Hernandez <jordi@ximian.com>
26805
26806         * Menu.cs: fixes bug 75700
26807         * MenuAPI.cs: fixes navigation issues
26808
26809 2005-08-09  Umadevi S <sumadevi@novell.com>
26810         * CheckedListBox.cs - simple fix for GetItemChecked.
26811
26812 2005-08-08  Jordi Mas i Hernandez <jordi@ximian.com>
26813
26814         * ComboBox.cs: Serveral fixes
26815         * ListBox.cs: Serveral fixes
26816
26817 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
26818
26819         * ComboBox.cs: Fixes FindString methods and GetItemHeight
26820         * ListBox.cs: Fixes FindString methods
26821
26822 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
26823
26824         * DataGrid.cs: fixes bugs exposed by new tests
26825
26826 2005-08-04  Peter Dennis Bartok  <pbartok@novell.com> 
26827
26828         * Mime.cs: Compile Mono assembly references only if compiling
26829           with Mono (Allows to build with VS.Net again)
26830
26831 2005-07-28  Marek Safar  <marek.safar@seznam.cz>
26832
26833         * Control.cs (PaintControlBackground): Draw background image
26834         corrrectly.
26835         (CheckForIllegalCrossThreadCalls): Stubbed.
26836         
26837         * Form.cs (OnCreateControl): Center when should be centered.
26838         
26839         * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
26840
26841 2005-07-19  Jordi Mas i Hernandez <jordi@ximian.com>
26842
26843         * Binding.cs: Binding to properties should be case unsensitive
26844
26845 2005-07-18 vlindos@nucleusys.com
26846
26847         * DataGrid.cs: fixes setmember order
26848
26849 2005-07-07  Alexander Olk  <xenomorph2@onlinehome.de>
26850
26851         * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
26852         * FileDialog.cs: FileDialog is now resizable and uses the new
26853           MimeIconEngine
26854
26855 2005-07-06  Jordi Mas i Hernandez <jordi@ximian.com>
26856
26857         * DataGridTextBoxColumn.cs: default value
26858         * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
26859         * GridTableStylesCollection.cs: fixes checking MappingName
26860         * DataGridDrawingLogic.cs: fixes drawing logic issues
26861         * DataSourceHelper.cs: rewritten to make compatible with more data sources
26862         * DataGrid.cs: fixes    
26863
26864 2005-07-06  Alexander Olk  <xenomorph2@onlinehome.de>
26865
26866         * MimeGenerated.cs: Use case sensitive comparer for
26867           NameValueCollections
26868
26869 2005-07-01  Jordi Mas i Hernandez <jordi@ximian.com>
26870
26871         * DataGridTextBoxColumn.cs: bug fixes, code refactoring 
26872         * ThemeWin32Classic.cs: bug fixes, code refactoring
26873         * DataGridDrawingLogic.cs:  bug fixes, code refactoring
26874         * DataGrid.cs: bug fixes, code refactoring
26875         * DataGridTextBox.cs: bug fixes, code refactoring
26876         * DataGridColumnStyle.cs:  bug fixes, code refactoring
26877         * Theme.cs:  bug fixes, code refactoring
26878
26879 2005-07-01  Peter Bartok  <pbartok@novell.com> 
26880
26881         * TextControl.cs: Quick fix for the reported crash on ColorDialog
26882           and other text box usage
26883
26884 2005-07-01  Jackson Harper  <jackson@ximian.com>
26885
26886         * TabControl.cs: Make sure the bottom of the tab covers the pages
26887         border.
26888
26889 2005-06-30  Peter Bartok  <pbartok@novell.com> 
26890
26891         * Form.cs (ShowDialog): Assign owner of the dialog
26892         * TextBoxBase.cs: Always refresh caret size when deleting, caret
26893           might have been moved to a tag with different height
26894
26895 2005-06-30  Jackson Harper  <jackson@ximian.com>
26896
26897         * Form.cs: Don't create an infinite loop when setting focus
26898         * MenuItem.cs: Don't dirty the parents if we don't have any
26899
26900 2005-06-29  Ben Maurer  <bmaurer@ximian.com>
26901
26902         * LibSupport.cs: Rename
26903
26904 2005-06-29  Peter Bartok  <pbartok@novell.com>
26905
26906         * TextBoxBase.cs: Re-align caret after deleting a character
26907         * TextControl.cs:
26908           - DeleteChars(): Ensure that tag covers the provided position
26909           - StreamLine(): Drop reference for dropped tag
26910
26911 2005-06-29  Peter Bartok  <pbartok@novell.com> 
26912
26913         * TextControl.cs: 
26914           - Selections now work properly, anchoring at the initial location
26915             and properly extending in either direction (SetSelectionToCaret(),
26916             SetSelectionStart() and SetSelectionEnd())
26917           - No longer redraws the whole control on selection change, now
26918             calculates delta between previous and new selection and only
26919             invalidates/redraws that area
26920           - Fixed FindPos() math off-by-one errors
26921           - Changed DeleteChars() to verify the provided tag covers the
26922             provided position, selections may have a tag that doesn't cover
26923             the position if the selection is at a tag border
26924           - Fixed off-by-one errors in DeleteChars()
26925           - Added missing streamlining check in DeleteChars() to remove
26926             zero-length tags
26927           - Implemented Invalidate() method, now properly calculates exposures
26928             between two given lines/positions
26929           - Implemented SetSelection()
26930           - Obsoleted and removed FixupSelection()
26931           - Improved RecalculateDocument() logic, removing code duplication
26932
26933 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26934
26935         * LibSupport.cs: changes to match different input/output arguments.
26936
26937 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26938
26939         * LibSupport.cs: added libsupport.so init routine.
26940
26941 2005-06-29  Jordi Mas i Hernandez <jordi@ximian.com>
26942         
26943         * ControlBindingsCollection.cs
26944                 - Throws an exception on null datasource when adding
26945                 - Checks for duplicated bindings when adding
26946
26947 2005-06-28  Jackson Harper  <jackson@ximian.com>
26948
26949         * TreeView.cs (OnKeyDown): Support left and right properly
26950         (navigates as well as expanding and collapsing.
26951         - Add support for Multiply, this expands all the selected nodes
26952         children.
26953         - Fix some tabbing.
26954
26955 2005-06-28  Jackson Harper  <jackson@ximian.com>
26956
26957         * TreeView.cs: Implement keyboard navigation, currently supports,
26958         LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
26959         support for toggling checkboxes with the space bar.
26960
26961 2005-06-28  Jackson Harper  <jackson@ximian.com>
26962
26963         * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
26964         tree.
26965
26966 2005-06-28  Jackson Harper  <jackson@ximian.com>
26967
26968         * TreeView.cs: Add missing event.
26969
26970 2005-06-27  Peter Bartok  <pbartok@novell.com> 
26971
26972         * TextControl.cs:
26973           - Made line ending size configurable (now allows for counting 
26974             lineendings as \n or \r\n)
26975           - Added margin to viewport to keep caret visible on right side
26976           - Fixed translation routines for line/pos to documentpos to consider
26977             cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
26978           - Fixed some line-endings to be unix style
26979           - Fixed Document.FormatText to perform it's calculations 1-based
26980           - Added descriptions for a few methods that might otherwise get 
26981             used wrong
26982           - Added NOTE section with some basic conventions to remember at 
26983             the top of the file
26984           - Major fixup for RichTextBox selection drawing:
26985             * Fixed crashes when multiple tags on a single line were selected
26986             * fixed selection box drawing not overlaying text
26987             * fixed bogus offset calculation for tags not starting at index 1
26988             * Switched behaviour from using multiple Substrings of a 
26989               StringBuilder.ToString() to using multiple 
26990               StringBuilder.ToString(start, length) statements, hoping this is
26991               faster (kept original version commented out in the code, in case
26992               original version was faster)
26993         * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if 
26994           alignment != Left
26995         * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
26996           call it as well
26997
26998 2005-06-27  Jackson Harper  <jackson@ximian.com>
26999
27000         * TabControl.cs: Move to the left and right with the arrow
27001         keys. These keys don't cycle beyond first and last like
27002         tab. Refresh all the tabs when scrolling them to the left or
27003         right.
27004
27005 2005-06-27  Jackson Harper  <jackson@ximian.com>
27006
27007         * TabControl.cs:
27008           - ToString: Added method
27009           - CreateParams: Remove TODO and comment
27010           - OnKeyDown: Cycle through bounds properly.
27011           - SelectedIndex: Scroll to the right or left if we need to
27012           display the newly selected tab.
27013
27014 2005-06-23  Jackson Harper  <jackson@ximian.com>
27015
27016         * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
27017         set.
27018
27019 2005-06-23  Jackson Harper  <jackson@ximian.com>
27020
27021         * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
27022         CTRL-SHIFT-TAB, and HOME, END are there any others?
27023
27024 2005-06-23  Jackson Harper  <jackson@ximian.com>
27025
27026         * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
27027
27028 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
27029         
27030         * DataGridTextBoxColumn.cs: fixes and enhancements
27031         * ThemeWin32Classic.cs: fixes and enhancements
27032         * DataGridBoolColumn.cs:  fixes and enhancements
27033         * DataGridDrawingLogic.cs:  fixes and enhancements
27034         * CurrencyManager.cs: fixes and enhancements
27035         * DataGrid.cs: fixes and enhancements
27036         * DataGridColumnStyle.cs:  fixes and enhancements
27037
27038 2005-06-22  Jackson Harper  <jackson@ximian.com>
27039
27040         * TabControl.cs: Add some missing methods that just call into the
27041         base. Make the TabPageCollection's IList interface behave in the
27042         same manner as the MS implementation.
27043
27044 2005-06-22  Peter Bartok  <pbartok@novell.com> 
27045
27046         * TextControl.cs: Added sanity check
27047         * TextBoxBase.cs: 
27048           - Fixed wrapping behaviour, don't set wrap on single line controls
27049             (this fixes the breakage of colordialog introduced in an earlier
27050              checkin)
27051           - Added rudimentary support for autoscrolling right-aligned controls
27052             (still needs fixing, also, center alignment scroll is missing)
27053
27054 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
27055         
27056         * ScrollBar.cs: Fixes thumbpos on Maximum values
27057
27058 2005-06-21  Jonathan Chambers <jonathan.chambers@ansys.com>
27059         
27060         * PropertyGridView.cs: Pass context information to UITypeEditors 
27061
27062 2005-06-21  Peter Bartok  <pbartok@novell.com> 
27063
27064         * TextBoxBase.cs:
27065           - Now calling PositionCaret with absolute space coordinates
27066           - Enabled vertical scrolling
27067           - Better tracking of scrollbar changes, tied into WidthChange
27068             event
27069           - Improved cursor tracking
27070           - Removed debug output
27071         * TextControl.cs:
27072           - PositionCaret coordinates are now works in absolute space, not 
27073             the canvas
27074           - Improved tracking of document size
27075           - Added events for width and height changes
27076
27077 2005-06-21  Peter Bartok  <pbartok@novell.com>
27078
27079         * Form.cs: Set focus to active control when form is activated
27080         * TextControl.cs: 
27081           - Added word-wrap functionality to RecalculateLine() 
27082           - Added some short function descriptions for VS.Net to aid in
27083             writing dependent controls
27084           - Added Caret property, returning the current coords of the caret
27085           - Added ViewPortWidth and ViewPortHeight properties
27086           - Added Wrap property
27087           - Added CaretMoved event
27088           - Removed some old debug code
27089           - Split() can now create soft splits
27090           - Added PreviousTag()/NextTag() to allow walking "tag-lists"
27091           - Added method to format existing text
27092           - Fixed size/alignment calculations to use viewport
27093           - RecalculateDocument now can handle changing line-numbers while
27094             calculating lines
27095
27096         * TextBox.cs:
27097           - Added some wrap logic, we don't wrap if alignment is not left
27098           - Added casts for scrollbar var, base class switched types to
27099             also support RichTextBoxA
27100           - Implemented handling of scrollbar visibility flags
27101
27102         * TextBoxBase.cs:
27103           - Switched scrollbars type to RichTextBoxScrollBars to support
27104             RichTextBox
27105           - Added tracking of canvas width/height
27106           - Switched scrollbars to be not selectable (to keep focus on text)
27107           - Added central CalculateDocument() method to handle all redraw
27108             requirements
27109           - Added ReadOnly support
27110           - Added WordWrap support
27111           - Fixed handling of Enter key (we now treat it as a DialogKey)
27112           - Fixed caret positioning when h or v scroll is not zero
27113           - Fixed placing/generation of vertical scrollbar
27114           - Added CalculateScrollBars() method to allow updating scrollbar
27115             limits and visibility
27116           - Fixed handling of horizontal scroll
27117           - Added handling of vertical scroll
27118           - Implemented auto-'jump' when caret moves to close to a left or
27119             right border and there is text to be scrolled into view (currently
27120             there's the potential for a stack overflow, until a bug in
27121             scrollbar is fixed)
27122
27123 2005-06-21  Geoff Norton  <gnorton@customerdna.com>
27124         
27125         * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
27126
27127 2005-06-19  Alexander Olk  <xenomorph2@onlinehome.de>
27128
27129         * Mime.cs:
27130         - added inodes.
27131         - return application/x-zerosize for files with size zero
27132           (if no extension pattern matches).
27133         - check matches collection for strings too.
27134         - return only the first mime type if the name value
27135           collection has more than one mime type.
27136
27137 2005-06-18  Jonathan Chambers <jonathan.chambers@ansys.com>
27138         
27139         * PropertyGrid.cs: Cleaned up some TODOs
27140         * PropertyGridView.cs: Added support for UITypeEditors
27141
27142 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
27143         
27144         * DataGrid.cs: clears cached value
27145
27146 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
27147
27148         * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
27149         * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
27150         * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
27151         * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
27152         
27153 2005-06-16  Jordi Mas i Hernandez <jordi@ximian.com>
27154
27155         * ThemeWin32Classic.cs: fixes colour
27156
27157 2005-06-15  Peter Bartok  <pbartok@novell.com>
27158
27159         * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
27160         * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
27161         * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
27162         * Control.cs: Added some MWFCategory and MWFDescription attributes
27163         * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
27164
27165 2005-06-15  Alexander Olk  <xenomorph2@onlinehome.de>
27166
27167         * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
27168         usage
27169
27170 2005-06-14  Jordi Mas i Hernandez <jordi@ximian.com>
27171
27172         * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
27173         * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
27174         * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
27175         * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
27176         * DataGrid.cs: default datagrid settings for Default Styles, fixes
27177         * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
27178
27179 2005-06-13  Jackson Harper  <jackson@ximian.com>
27180
27181         * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
27182         isn't printed when the user enables dropping. (X11 does accept
27183         drops).
27184         
27185 2005-06-13  Jackson Harper  <jackson@ximian.com>
27186
27187         * TreeView.cs: Remove some TODOS.
27188
27189 2005-06-13  Jackson Harper  <jackson@ximian.com>
27190
27191         * Form.cs: Hook into the mdi framework.
27192         * MdiClient.cs: Use the base control collections add method so
27193         parents get setup correctly. Set the default back colour and dock
27194         style.
27195         * MdiChildContext.cs: New class, this bad actor handles an
27196         instance of an MDI window. Right now there is only basic
27197         support. You can drag, close, and resize windows. Minimize and
27198         Maximize are partially implemented.
27199
27200 2005-06-13  Jackson Harper  <jackson@ximian.com>
27201
27202         * XplatUIX11.cs: Mash numbers together properly, otherwise we get
27203         freaky when both vals are negative. NOTE: There are probably other
27204         places in XplatUIX11 that this needs to be done.
27205
27206 2005-06-13  Jordi Mas i Hernandez <jordi@ximian.com>
27207
27208         * DataGrid.cs: implement missing methods, move KeyboardNavigation
27209         * DataGridColumnStyle.cs: fixes signature
27210
27211 2005-06-12  Jackson Harper  <jackson@ximian.com>
27212
27213         * XplatUIX11.cs: Use sizing cursors similar to the ones on
27214         windows.
27215
27216 2005-06-11  Jackson Harper  <jackson@ximian.com>
27217
27218         * StatusBarPanel.cs: Signature cleanups. Implement
27219         BeginInit/EndInit.
27220
27221 2005-06-10  Jordi Mas i Hernandez <jordi@ximian.com>
27222
27223         * DataGridTextBoxColumn.cs: Honors aligment
27224         * GridColumnStylesCollection.cs: Contains is case unsensitive
27225         * GridTableStylesCollection.cs: several fixes
27226         * DataGridTableStyle.cs: default column creation
27227         * DataGridDrawingLogic.cs: fixes
27228         * CurrencyManager.cs: ListName property
27229         * DataGrid.cs: multiple styles support
27230         * DataGridColumnStyle.cs: fixes
27231         
27232
27233 2005-06-10  Peter Bartok  <pbartok@novell.com>
27234
27235         * Control.cs(Select): Moved SetFocus call to avoid potential
27236           loops if controls change the active control when getting focus
27237         * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
27238           the up/down buttons
27239
27240 2005-06-10  Matthias Felgner  <matthiasf@voelcker.ocm>
27241
27242         * ImageListConverter.cs: Implemented
27243
27244 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
27245
27246         * MonthCalendar.cs: Wired in NumericUpDown control for year
27247
27248 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
27249
27250         * MonthCalendar.cs: Removed MonoTodo attributes on Click and
27251           DoubleClick events, since they are not meant to be fired.
27252
27253 2005-06-09  Peter Bartok  <pbartok@novell.com>
27254
27255         * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
27256           Jonathan's standalone controls into MWF, implemented missing
27257           events, attributes and methods; added xxxAccessible classes
27258         * AccessibleObject.cs: Made fields internal so other classes
27259           can change them if needed
27260
27261 2005-06-09  Jonathan Gilbert  <2a5gjx302@sneakemail.com>
27262
27263         * UpDownBase.cs: Complete implementation
27264         * NumericUpDown.cs: Complete implementation
27265         * DomainUpDown.cs: Complete implementation
27266
27267 2005-06-09  Jordi Mas i Hernandez <jordi@ximian.com>
27268
27269         * DataGridTextBoxColumn.cs: drawing fixes
27270         * DataGridCell.cs: fixes ToString method to match MSNet
27271         * DataGridTableStyle.cs: fixes
27272         * DataGridBoolColumn.cs: fixes, drawing
27273         * DataGridDrawingLogic.cs: fixes, new methods
27274         * DataGridTextBox.cs: Keyboard and fixes
27275         * DataGrid.cs:
27276                 - Keyboard navigation
27277                 - Scrolling fixes
27278                 - Row selection (single, multiple, deletion, etc)
27279                 - Lots of fixes
27280         
27281 2005-06-07  Jackson Harper  <jackson@ximian.com>
27282
27283         * ThemeWin32Classic.cs: Clear the background area when drawing
27284         buttons.
27285
27286 2005-06-06  Peter Bartok  <pbartok@novell.com>
27287
27288         * ImageListStreamer.cs: Fixed signature for GetData
27289         * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
27290         * ComboBox.cs:
27291           - Added missing ChildAccessibleObject class
27292           - Added missing OnXXXFocus overrides, switched to using those
27293             instead of the event handler
27294         * Control.cs:
27295           - Added Parent property for ControlAccessibleObject
27296           - Fixed signatures
27297           - Fixed attributes
27298           - Added ResetBindings()
27299         * ListBindingConverter.cs: Implemented some methods
27300         * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
27301         * ImageList.cs: Implemented basic handle scheme, removed TODOs
27302         * ContainerControl.cs: Fixed signature, now subscribing to the
27303           ControlRemoved event instead of overriding the handler, LAMESPEC
27304         * CurrencyManager.cs: Added missing attribute
27305         * MonthCalendar.cs: Added missing properties
27306
27307 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
27308
27309         * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
27310         
27311 2005-06-06  Gaurav Vaish and Ankit Jain
27312
27313         * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
27314         * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
27315         
27316 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
27317
27318         * Control.cs: fixes CreateParams Width / Height.
27319
27320 2005-06-05  Peter Bartok  <pbartok@novell.com>
27321
27322         * Win32DnD.cs: Removed compilation warnings
27323
27324 2005-06-05  Peter Bartok  <pbartok@novell.com>
27325
27326         * Control.cs (CreateParams): Since we don't know if one of the
27327           properties we use is overridden, lets make sure if we fail accessing
27328           we continue with a backup plan
27329
27330 2005-06-05  Peter Bartok  <pbartok@novell.com>
27331
27332         * Win32DnD.cs:
27333           - Removed debug output
27334           - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
27335             struct
27336           - Plugged resource leak
27337         * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
27338           MS size
27339
27340 2005-06-05  Peter Bartok  <pbartok@novell.com>
27341
27342         * XplatUIWin32.cs: Removed DnD code
27343         * Win32DnD.cs: Implemented drop source and drop target functionality
27344
27345 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
27346
27347         * UpDownBase.cs: remove duplicate addition of event, enable some code
27348         that was commented out.
27349         * NumericUpDown.cs: added missing attributes and Hexadecimal property.
27350         Validate input when a key is pressed. It works fine now for every
27351         combination of Hexadecimal. Only missing some drawing love when sharing
27352         space with other controls.
27353
27354 2005-06-04  Peter Bartok  <pbartok@novell.com>
27355
27356         * Control.cs:
27357           - We need to pass a window for DragDrop, so enable callback events
27358           - Added DnD callback events when being a DragSource
27359         * XplatUI.cs (StartDrag): Added window handle argument
27360         * XplatUIDriver.cs (StartDrag): Added window handle argument
27361         * QueryContinueDragEventArgs: Made fields internally accessible so
27362           drivers can set them
27363         * GiveFeedbackEventArgs: Made fields internally accessible so drivers
27364           can set them
27365
27366 2005-06-03  Jordi Mas i Hernandez <jordi@ximian.com>
27367
27368         * DataGridTextBoxColumn.cs: column text editing
27369         * DataGridTableStyle.cs: Respect columns styles created by the user
27370         * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
27371         * DataGridBoolColumn.cs: bool column editing
27372         * DataGrid.cs: fixes to scrolling, properties, etc
27373         * DataGridTextBox.cs: handle keyboard
27374         * DataGridColumnStyle.cs: fixes
27375
27376 2005-06-02  Jackson Harper  <jackson@ximian.com>
27377
27378         * ImageListStreamer.cs: Somewhat broken implementation of
27379         GetObjectData. The RLE needs some work to match MS properly.
27380
27381 2005-06-02  Jackson Harper  <jackson@ximian.com>
27382
27383         * X11Dnd.cs: Attempting to keep at least one file in MWF
27384         monostyled.
27385
27386 2005-06-02  Peter Bartok  <pbartok@novell.com>
27387
27388         * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
27389           that way
27390
27391 2005-06-02  Peter Bartok  <pbartok@novell.com>
27392
27393         * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
27394         * XplatUI.cs: Added DoDragDrop() method
27395         * XplatUIDriver.cs: Added DoDragDrop() method
27396
27397 2005-06-02  Jackson Harper  <jackson@ximian.com>
27398
27399         * Splitter.cs: Implement BorderStyle.
27400
27401 2005-06-02  Jackson Harper  <jackson@ximian.com>
27402
27403         * XplatUIX11.cs: Tie into the X11Dnd subsystem.
27404         * X11Dnd.cs: New file. A subsystem that handles drag and drop on
27405         X11 using XDND.
27406
27407 2005-06-02  Peter Bartok  <pbartok@novell.com>
27408
27409         * DataObject.cs:
27410           - Added Data setter
27411           - Fixed broken insertion code for SetData, now also
27412             overwrites any existing entry of the same format name
27413         * Hwnd.cs: Added list of pointers that automatically gets
27414           freed when the window is disposed
27415         * XplatUI.cs: Call driver initialization method when loading
27416           a driver
27417         * Control.cs:
27418           - OnDragLeave takes EventArgs, not DragEventArgs
27419           - Added setting of WS_EX_ACCEPTFILES style when dropping is
27420             supported
27421           - Forces style update when drop state changes
27422         * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
27423           not perfect since we cannot (yet) call the IDataObject.GetData()
27424           method, we keep getting 0x80004005 error, dunno why)
27425
27426 2005-06-02  Peter Bartok  <pbartok@novell.com>
27427
27428         * DragEventArgs.cs: Make fields internal so we can cache the
27429           object and re-set the fields from XplatUI
27430
27431 2005-06-02  Jackson Harper  <jackson@ximian.com>
27432
27433         * Control.cs: Add some internal methods so the DnD subsystem can
27434         raise DnD events. Also call into the driver when AllowDrop is set.
27435         * XplatUI.cs:
27436         * XplatUIDriver.cs: New method for setting whether or not a window
27437         is allowed to accept drag and drop messages.
27438                 
27439 2005-06-01  Jordi Mas i Hernandez <jordi@ximian.com>
27440         
27441         * ScrollBar.cs: Make sure that values sent in Scroll events
27442         are always between Maximum and Minimum.
27443
27444 2005-06-01  Marek Safar  <marek.safar@seznam.cz>
27445
27446         * Menu.cs: Call MenuChanged when menuitem visibility has been
27447         changed.
27448         * MenuItem.cs: Rebuild menu when item is (not) visible.
27449         * MainMenu.cs: MainMenu has special MenuChanged.
27450         * Theme.cs: Caption and FrameBorderSize are not fixed.
27451         * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
27452         * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
27453         * XplatUIX11.cs,
27454         * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
27455         * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
27456
27457 2005-05-30  Jackson Harper  <jackson@ximian.com>
27458
27459         * DataFormat.cs: We can't statically initialize this stuff because
27460         it calls into the xplatui and could create a loop. So we lazy init
27461         it.
27462
27463 2005-05-28  Jackson Harper  <jackson@ximian.com>
27464
27465         * Control.cs: Proper implementation of Product(Name/Version).
27466
27467 2005-05-27  Jackson Harper  <jackson@ximian.com>
27468
27469         * DataObject.cs: Dont crash if no data is found.
27470
27471 2005-05-26  Rafael Teixeira  <rafaelteixeirabr@hotmail.com>
27472         * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
27473                 as per status page, guessing it should be set to true
27474
27475 2005-05-26  Jordi Mas i Hernandez <jordi@ximian.com>
27476
27477         * DataGridTextBoxColumn.cs: Draws text and basic text formatting
27478         * DataGridTableStyle.cs: set proper formatting text, def header text
27479         * ThemeWin32Classic.cs: new themable paramaters
27480         * DataGridBoolColumn.cs: paint check box, get data, fixes
27481         * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
27482         * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
27483         * DataGridColumnStyle.cs: fixes
27484         * Theme.cs: new themable paramaters
27485                 
27486 2005-05-26  Peter Bartok  <pbartok@novell.com>
27487
27488         * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
27489
27490 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
27491         * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
27492
27493 2005-05-24  Peter Bartok  <pbartok@novell.com>
27494
27495         * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
27496           Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
27497           Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
27498           FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
27499           NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
27500           ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
27501           DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
27502           AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
27503           DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
27504           StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
27505           missing attributes, etc
27506         * DataGridPreferredColumnWidthTypeConverter.cs: Added
27507
27508 2005-05-24  Peter Bartok  <pbartok@novell.com>
27509
27510         * Help.cs: Added, implemented trivial functions, throws up MessageBox
27511           when user tries to get help
27512         * DataObject.cs, DataFormats.cs, LinkArea.cs,
27513           SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
27514           to suppress warnings
27515         * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
27516           avoid unreachable code warning
27517
27518 2005-05-20  Peter Bartok  <pbartok@novell.com>
27519
27520         * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
27521
27522 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
27523
27524         * DataGridTextBoxColumn.cs: Basic painting methods
27525         * DataGridTableStyle.cs: Set table style in the column
27526         * ThemeWin32Classic.cs: Use Theme for colors
27527         * DataGridDrawingLogic.cs: Implement more drawing
27528         * DataGrid.cs: drawing, theming, enhacements, fixes
27529         * DataGridColumnStyle.cs: fixes, drawing
27530         * Theme.cs: theming for Datagrid
27531
27532 2005-05-20  Peter Bartok  <pbartok@novell.com>
27533
27534         * Cursor.cs: Implemented GetObjectData() method
27535
27536 2005-05-20  Peter Bartok  <pbartok@novell.com>
27537
27538         * Cursors.cs: Added setting of cursor name
27539         * Cursor.cs:
27540           - Implemented constructors
27541           - Implemented Draw and DrawStretched
27542           - Implemented Current property
27543           - Implemented == and != operators
27544           - Implemented Dispose()
27545           - Implemented ToString
27546           - Added missing attributes
27547         * XplatUIX11.cs:
27548           - Added missing reset for OverrideCursor when DoEvents is called
27549           - Fixed creation of cursor, logic was wrong
27550         * XplatUIWin32.cs:
27551           - Added missing reset for OverrideCursor when DoEvents is called
27552           - Fixed creation of cursor, bit arrays were swapped
27553         * Clipboard.cs: Removed obsolete MonoTODO attribute
27554
27555 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
27556
27557         * ComboBox.cs: fixes OnSelectedItemChanged
27558         * ControlBindingsCollection.cs: fixes item range check
27559
27560 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
27561
27562         * UpDownBase.cs:
27563                 - Calc preferred height properly
27564                 - Implement missing properties
27565                 
27566         * NumericUpDown.cs: Implement missing events
27567
27568 2005-05-19  Jackson Harper  <jackson@ximian.com>
27569
27570         * TabControl.cs: New method that resizes the tab pages before
27571         redrawing them. This as needed as the control is double buffered
27572         and sizing will not be recalculated unless ResizeTabPages is
27573         called.
27574         * TabPage.cs: Set base.Text instead of Text in the constructor so
27575         that UpdateOwner does not get called. Use the new Redraw method of
27576         TabControl instead of Refresh so the sizing is recalculated.
27577         * ThemeWin32Classic.cs: Draw the text for button tabs.
27578
27579 2005-05-19  Jackson Harper  <jackson@ximian.com>
27580
27581         * Control.cs: Paint control background images. Fix typo where
27582         PaintControlBackground was not getting called correctly.
27583
27584 2005-05-19  Peter Bartok  <pbartok@novell.com>
27585
27586         * ScrollableControl.cs (DisplayRectangle): Undid my last change until
27587           I can investigate, apparently I broke FileDialog
27588
27589 2005-05-19  Marek Safar  <marek.safar@seznam.cz>
27590
27591         * AxHost.cs: Some simple properties.
27592         * Control.cs: window must be accessible after ctor.
27593         * Form.cs: Added TransparencyKey property.
27594         * TextBoxBase.cs: Implemented Clear. Text property can be null.
27595         * XplatUIWin32.cs: SetBorderStyle implemented.
27596
27597 2005-05-18  Peter Bartok  <pbartok@novell.com>
27598
27599         * DataObject.cs: Entries are not global but particular to the
27600           DataObject, now it behaves that way
27601         * XplatUIWin32.cs: Implemented Clipboard methods
27602         * Clipboard.cs: Implemented
27603         * ScrollableControl.cs (DisplayRectangle): Fixed calculation
27604         * XplatUIOSX.cs: Updated to final clipboard prototypes
27605         * XplatUIX11.cs: Implemented Clipboard methods
27606         * XplatUIDriver.cs: Updated to final clipboard prototypes
27607         * XplatUIStructs.cs:
27608           - Added BITMAPINFOHEADER struct
27609           - Added ClipboardFormats enum
27610         * X11Structs.cs:
27611           - Added ClipboardStruct
27612           - Added Atom enum items for clipboard types
27613           - Fixed atom types for Selection event structures
27614         * DataFormats.cs:
27615           - Added internal properties and methods for drivers to enumerate
27616             all known formats
27617           - Switched initialization method to allow drivers to assign their
27618             own IDs even for the MS predefined clipboard IDs
27619         * XplatUI.cs: Updated to final clipboard interface
27620
27621 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
27622         * PropertyGridView.cs: Fixed compiler warnings.
27623
27624 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
27625         * PropertyGrid.cs: Added some event calls
27626         * PropertyGridView.cs: Change drawing code to use double buffering
27627         * PropertyGridTextBox.cs: Changed Text property name
27628         * GridItem.cs: Added Bounds property.
27629         * GridEntry.cs: Added Bounds property.
27630
27631 2005-05-17  Lluis Sanchez Gual  <lluis@novell.com>
27632
27633         * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
27634         since GetType() may not return the correct type if the object is
27635         a remoting proxy.
27636
27637 2005-05-17  Jordi Mas i Hernandez <jordi@ximian.com>
27638
27639         * TreeNodeCollection.cs: fixes get/set item ranges
27640         
27641 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
27642
27643         * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
27644                 
27645 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
27646
27647         * ComboBox.cs: Fix item range comparation
27648         * ListView.cs: Fix item range comparation
27649
27650 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
27651
27652         * FontDialog.cs:
27653           - Clear example panel when OnPaint is called
27654           - Better solution for displaying the example panel text
27655           - Select default indexes in the ListBoxes
27656
27657 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
27658
27659         * XplatUIOSX.cs: Avoid painting into invisible views.  Fixes #74926
27660
27661 2005-05-11  Peter Bartok  <pbartok@novell.com>
27662
27663         * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
27664         * SelectionRangeConverter.cs: Implemented
27665         * PropertyGrid.cs: Fixed attribute value
27666         * Control.cs:
27667           - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
27668           - Added Sebastien Pouliot's CAS Stack Propagation fixes
27669         * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
27670           that's common to all drivers. First methods to go there are
27671           Sebastien Pouliot's CAS Stack Propagation helper methods
27672         * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
27673           Sebastien Pouliot for CAS Stack Propagation
27674
27675 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
27676
27677         * OSXStructs.cs:
27678           XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
27679
27680 2005-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
27681
27682         * DataGridTextBoxColumn.cs: fixed some members
27683         * GridColumnStylesCollection.cs: indexed column is case insensitive
27684         * DataGridTableStyle.cs: fixes
27685         * ThemeWin32Classic.cs: add new theme parameter
27686         * Theme.cs: add new theme parameter
27687         * DataGridDrawingLogic.cs: Datagrid's drawing logic
27688         * DataGrid.cs: fixes, new internal properties, etc.
27689         * DataGridColumnStyle.cs: allows to set grid value
27690         *
27691
27692 2005-05-10  Peter Bartok  <pbartok@novell.com>
27693
27694         * AccessibleObject.cs:
27695           - Removed MonoTODO attribute on help, method is correct
27696           - Fixed Bounds property
27697         * AxHost.cs: Moved MonoTODO
27698         * ButtonBase.cs: Now setting AccessibleObject properties
27699         * RadioButton.cs: Setting proper AccessibleObject role
27700         * CheckBox.cs: Setting proper AccessibleObject role
27701         * ControlBindingsCollection.cs: Added properties, methods and attributes
27702         * DataFormats.cs: Fixed awkward internal API, and changed to enable
27703           userdefined DataFormats.Format items as well
27704         * ListControl.cs: Removed data_member from the public eye
27705         * OpenFileDialog.cs:
27706           - Made class sealed
27707           - Added missing attributes
27708         * SaveFileDialog.cs: Added missing attributes
27709         * ImageListStreamer.cs: Fixed code that caused warnings
27710         * LinkLabel.cs: Removed unreachable code
27711         * TreeView.cs: Fixed code that caused warnings
27712         * PropertyGridView.cs: Fixed code that caused warnings
27713         * GridColumnStylesCollection.cs: Added missing attributes
27714         * GridTableStylesCollection: Added missing attribute
27715         * PropertyManager: Added .ctor
27716         * SecurityIDType: Added
27717         * DataObject.cs: Implemented class
27718         * LinkArea.cs: Added missing attribute
27719
27720 2005-05-11  Jordi Mas i Hernandez <jordi@ximian.com>
27721
27722         * RadioButton.cs: call base method to allow to fire OnClick event
27723         * UpDownBase.cs: OnMouseUp call base method
27724         * CheckedListBox.cs: call base method before returning
27725         * TrackBar.cs: call base method before returning
27726         
27727
27728 2005-05-10  Peter Bartok  <pbartok@novell.com>
27729
27730         * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
27731           for messages
27732
27733 2005-05-10  Peter Bartok  <pbartok@novell.com>
27734
27735         * DataFormats.cs: Implemented
27736         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
27737           XplatUIX11.cs: Added Clipboard APIs
27738         * XplatUIWin32.cs: Implemented Clipboard APIs
27739         * FolderBrowserDialog.cs: Added missing event, attributes
27740
27741 2005-05-10  Jordi Mas i Hernandez <jordi@ximian.com>
27742
27743         * CheckBox.cs: call base method to allow to fire OnClick event
27744
27745 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
27746
27747         * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
27748
27749 2005-05-06  Peter Bartok  <pbartok@novell.com>
27750
27751         * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
27752         * Screen.cs: Implemented
27753         * HelpNavigator.cs: Added
27754         * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
27755           property
27756         * HelpProvider.cs: Implemented all we can do until we have a CHM
27757           help library (which means that "What's This" does work now)
27758
27759 2005-05-06  Jackson Harper  <jackson@ximian.com>
27760
27761         * XplatUIX11.cs: Fix waking up the main loop.
27762                 
27763 2005-05-05  Peter Bartok  <pbartok@novell.com>
27764
27765         * XplatUI.cs: Updated revision
27766         * Form.cs: Removed enless loop
27767         * GroupBox.cs (OnPaint): Added call to base.OnPaint()
27768         * Label.cs (OnPaint): Added call to base.OnPaint()
27769         * ToolTip.cs: Made ToolTipWindow reusable for other controls
27770         * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
27771         * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
27772         * AxHost.cs: Added
27773         * ButtonBase.cs: Moved base.OnPaint() call to end of method
27774         * ThemeWin32Classic.cs: Replaced references to ToolTip with references
27775           to ToolTip.ToolTipWindow for drawing and size methods; this allows
27776           reuse of ToolTipWindow by other controls
27777         * SizeGrip.cs: Moved base.OnPaint() call to end of method
27778         * XplatUIX11.cs: Now clipping drawing area (experimental)
27779         * PictureBox.cs: Moved base.OnPaint() call to end of method
27780         * Theme.cs: Fixed ToolTip abstracts to match new format
27781         * ErrorProvider.cs: Implemented
27782
27783 2005-05-05  Jordi Mas i Hernandez <jordi@ximian.com>
27784
27785         * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
27786         * LinkLabel.cs:
27787                 - Adds cursors
27788                 - Handles focus
27789                 - Implements LinkBehavior
27790                 - Fixes many issues
27791
27792 2005-05-03  Jackson Harper  <jackson@ximian.com>
27793
27794         * ListView.cs: Calculate the scrollbar positioning on resize and
27795         paint, so they get put in the correct place.
27796
27797 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
27798
27799         * ColorDialogs.cs: The small color panels are now handled by
27800           SmallColorControl. This fixes drawing of the focus rectangle
27801           and adds a 3D border.
27802
27803 2005-05-03  Peter Bartok  <pbartok@novell.com>
27804
27805         * Control.cs: Modified version of Jonathan Chamber's fix for
27806           double-buffering
27807
27808 2005-05-03  Jackson Harper  <jackson@ximian.com>
27809
27810         * ListView.cs: Remove redraw variable. Control now handles whether
27811         or not a redraw needs to be done, and will only raise the paint
27812         event if redrawing is needed.
27813
27814 2005-05-03  Jackson Harper  <jackson@ximian.com>
27815
27816         * Splitter.cs: No decorations for the splitter form. Cache the
27817         hatch brush.
27818
27819 2005-05-03  Jackson Harper  <jackson@ximian.com>
27820
27821         * TreeView.cs: Use dashed lines to connect nodes. Use the
27822         ControlPaint method for drawing the focus rect instead of doing
27823         that in treeview.
27824
27825 2005-05-02  Peter Bartok  <pbartok@novell.com>
27826
27827         * LinkLabel.cs: Fixed the fixes from r43566 and 43521
27828
27829 2005-04-29  Jackson Harper  <jackson@ximian.com>
27830
27831         * ThemeWin32Classic.cs: Don't clear the GC that will clear the
27832         entire image buffer. Just clear the clipping rectangle.
27833
27834 2005-04-29  Jackson Harper  <jackson@ximian.com>
27835
27836         * ThemeWin32Classic.cs: Don't draw list view items that are
27837         outside the clipping rectangle.
27838
27839 2005-04-29  Jordi Mas i Hernandez <jordi@ximian.com>
27840
27841         * ListBox.cs: added horizontal item scroll
27842
27843 2005-04-29  Jackson Harper  <jackson@ximian.com>
27844
27845         * ThemeWin32Classic.cs: Remove some old debug code that was
27846         causing flicker with the new double buffering code.
27847
27848 2005-04-29  John BouAntoun  <jba-mono@optusnet.com.au>
27849
27850         * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
27851         behave like combobox and comboboxlist (still not sure if this is
27852         correct though).
27853
27854 2005-04-28  Jackson Harper  <jackson@ximian.com>
27855
27856         * ThemeWin32Classic.cs: Don't fill the middle of progress
27857         bars. This fills areas outside of the clip bounds that don't need
27858         to be filled.
27859
27860 2005-04-28  Jackson Harper  <jackson@ximian.com>
27861
27862         * Control.cs: Don't expose functionality to touch the image buffers.
27863         * ProgressBar.cs:
27864         * ListView.cs: We do not need to (and no longer can) manipulate
27865         the image buffers directly. All of this is handled by Control.
27866
27867 2005-04-28  Peter Bartok  <pbartok@novell.com>
27868
27869         * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
27870           RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
27871           RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
27872
27873 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
27874
27875         * Combobox:
27876                 - Adjust control's height for non-simple comboboxes (bug fix)
27877                 - Remove dead code
27878         * MenuAPI.cs: remove unused var
27879         * ScrollBar.cs: remove unsed var
27880                  
27881         * ListBox.cs: unselect items when clearing
27882
27883 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
27884
27885         * ListControl.cs: honors OnPositionChanged and default Selected Item
27886         * ListBox.cs: unselect items when clearing
27887
27888 2005-04-27  Jackson Harper  <jackson@ximian.com>
27889
27890         * X11Keyboard.cs: Initialize a default keyboard and give a warning
27891         if a "correct" keyboard is not found. This will make us not crash,
27892         but might give some users bad keyboard layouts...seems to be the
27893         same thing rewind does.
27894
27895 2005-04-27  Jackson Harper  <jackson@ximian.com>
27896
27897         * BindingManagerBase.cs: Attach the current/position changed
27898         handlers to their respective events.
27899
27900 2005-04-27  Jackson Harper  <jackson@ximian.com>
27901
27902         * Control.cs: Make sure that the first WM_PAINT does a full draw,
27903         not just a blit.
27904         * ThemeWin32Classic.cs: Don't fill the background for picture
27905         boxes. This could overright user drawing.
27906         * ComboBox.cs: Just fill the clipping rect not the entire client
27907         rect when drawing the background. This prevents pieces of the
27908         image buffer from getting overwritten and is theoretically faster.
27909
27910 2005-04-26  Jordi Mas i Hernandez <jordi@ximian.com>
27911
27912         * ComboBox.cs: Databinding support fixes, fire missing events
27913         * ListControl.cs: implement missing methods and properties, fixes
27914         * ThemeWin32Classic.cs: Databiding support on Drawing
27915         * CheckedListBox.cs: Databinding support fixes, fire missing events
27916         * ListBox.cs: Databinding support fixes, fire missing events
27917         
27918 2005-04-25  Peter Bartok  <pbartok@novell.com>
27919
27920         * LinkLabel.cs: Length of LinkArea is not allowed to be negative
27921
27922 2005-04-25  Jackson Harper  <jackson@ximian.com>
27923
27924         * TreeView.cs: Use the horizontal scrollbars height not width when
27925         determining how much of the client area is available.
27926
27927 2005-04-25  Jackson Harper  <jackson@ximian.com>
27928
27929         * Control.cs: Double buffering is handled differently now. As per
27930         the spec, the extra buffer is created in the WM_PAINT message and
27931         passed down to the control's drawing code.
27932         * GroupBox.cs:
27933         * Label.cs:
27934         * CheckBox.cs:
27935         * ProgressBar.cs:
27936         * RadioButton.cs:
27937         * ColorDialog.cs:
27938         * ComboBox.cs:
27939         * PropertyGridView.cs:
27940         * UpDownBase.cs:
27941         * MessageBox.cs:
27942         * MenuAPI.cs:
27943         * ListView.cs:
27944         * ButtonBase.cs:
27945         * SizeGrip.cs:
27946         * ScrollBar.cs:
27947         * ListBox.cs:
27948         * TrackBar.cs:
27949         * ToolBar.cs:
27950         * PictureBox.cs:
27951         * DateTimePicker.cs:
27952         * StatusBar.cs:
27953         * TreeView.cs: Update to new double buffering system.
27954         * MonthCalendar.cs: Uncomment block, as Capture is now
27955         working. Update to new double buffering
27956         * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
27957         * PaintEventArgs.cs: New internal method allows us to set the
27958         graphics object. This is used for double buffering.
27959         * ThemeWin32Classic.cs: Give the picture box drawing code a clip
27960         rectangle. The internal paint_area var has been removed from
27961         StatusBar. The clipping rect should be used instead.
27962         * Theme.cs: Give the PictureBox drawing method a clipping rect.
27963         * TabPage.cs: The RefreshTabs method was removed, so just call the
27964         tab controls Refresh method now.
27965         * TabControl.cs: Update to new double buffering. Make sure the
27966         handle is created before sizing the tab pages, otherwise we will
27967         get stuck in a loop.
27968
27969 2005-04-24  Borja Sanchez Zamorano <borsanza@gmail.com>
27970
27971         * LinkLabel.cs: Fix typo, bug #74719; patch
27972           from Borja Sanchez Zamorano
27973
27974 2005-04-22  Jackson Harper  <jackson@ximian.com>
27975
27976         * TreeNode.cs: Implement Handle stuff.
27977         * TreeView.cs: Utility methods so nodes can get/lookup by handle.
27978
27979 2005-04-22  Jordi Mas i Hernandez <jordi@ximian.com>
27980
27981         * DataGridTextBoxColumn.cs: call base constructors, fixes
27982         * GridColumnStylesCollection.cs: missing events, methods, and functionality
27983         * GridTableStylesCollection.cs: fixes, check duplicate mapping names
27984         * DataGridTableStyle.cs: implements create default column styles
27985         * DataGridBoolColumn.cs: which types can handle
27986         * DataGrid.cs: missing methods, fixes, new functionality
27987         * DataGridColumnStyle.cs: fixes
27988
27989 2005-04-20  Alexander Olk  <xenomorph2@onlinehome.de>
27990         * FolderBrowserDialog.cs:
27991         - Use a thread to fill the TreeView
27992         - Adjusted some sizes
27993
27994 2005-04-19  Peter Bartok  <pbartok@novell.com>
27995
27996         * LinkLabel.cs: (Re-)create the pieces when setting the Text
27997           property. Fixes #74360.
27998
27999 2005-04-19  Jackson Harper  <jackson@ximian.com>
28000
28001         * XEventQueue.cs: Lock when getting the lockqueue size.
28002         * PictureBox.cs: Call base OnPaint
28003         
28004 2005-04-19  Peter Bartok  <pbartok@novell.com>
28005
28006         * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
28007           messages were no longer being processed (this broke BeginInvoke)
28008
28009           
28010 2005-04-18  Jackson Harper  <jackson@ximian.com>
28011
28012         * TreeView.cs: buglet that caused node images to get drawn
28013         regardless of whether or not they were in the clipping rectangle.
28014
28015 2005-04-18  Jackson Harper  <jackson@ximian.com>
28016
28017         * CurrencyManager.cs: There are four rules for GetItemProperties:
28018         - If the type is an array use the element type of the array
28019         - If the type is a typed list, use the type
28020         - If the list contains an Item property that is not an object, use
28021         that property
28022         - use the first element of the list if there are any elements in
28023         the list.
28024         
28025 2005-04-17  Jackson Harper  <jackson@ximian.oom>
28026
28027         * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
28028         click. This handles offsets for scrolling properly and reduces
28029         memory. Also fixed GetNode to not offset now that TopNode works
28030         properly.
28031         * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
28032         
28033 2005-04-17  Jackson Harper  <jackson@ximian.com>
28034
28035         * CursorConverter.cs: Initial implementation.
28036
28037 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
28038
28039         * ListControl.cs: work towards complex data binding support on ListControl
28040         * CurrencyManager.cs: work towards complex data binding support on ListControl
28041         * ListBox.cs: work towards complex data binding support on ListControl
28042
28043
28044 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
28045
28046         * GridTableStylesCollection.cs: fixes name and constructor
28047         * DataGridTableStyle.cs: fixes
28048         * DataGridBoolColumn.cs: fixes names and constructors
28049         * DataGrid.cs: define methods and properties. Some init implementations
28050         * DataGridCell.cs: define methods and properties. Some init implementations
28051         * GridTablesFactory.cs: Define methods and properties
28052
28053 2005-04-15  Geoff Norton  <gnorton@customerdna.com>
28054
28055         * XplatUIOSX.cs:  Handle proper mouse tracking even if the current
28056         graphics port changes.  We still want the coordinates in global screen
28057         coordinates.
28058
28059 2005-04-14  Jackson Harper  <jackson@ximian.com>
28060
28061         * TreeView.cs: Handle clicks when plus minus is disabled. Don't
28062         check plus minus or checkbox clicks unless those features are enabled.
28063
28064 2005-04-14  Jackson Harper  <jackson@ximian.com>
28065
28066         * TreeView.cs: Add methods for setting the top and bottom visible
28067         nodes. TreeNode::EnsureVisible uses these methods.
28068         * TreeNode.cs: Implement EnsureVisible
28069
28070 2005-04-13  Jordi Mas i Hernandez <jordi@ximian.com>
28071
28072         * Form.cs: Pospone menu assignation if the window has not been created yet
28073         * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
28074         size and position
28075
28076 2005-04-12  Jackson Harper  <jackson@ximian.com>
28077
28078         * TreeView.cs: Set the TopNode properly when scrolling
28079         occurs. This has the added benifit of reducing the amount of
28080         walking that needs to be done when drawing. Also removed an old
28081         misleading TODO.
28082         * OpenTreeNodeEnumerator.cs: Fix moving backwards.
28083         
28084 2005-04-11  Jordi Mas i Hernandez <jordi@ximian.com>
28085
28086         * Timer.cs: fixes interval setting when the timer is already enabled
28087         
28088 2005-04-10  Alexander Olk  <xenomorph2@onlinehome.de>
28089
28090         * FolderBrowserDialog.cs: First approach
28091
28092 2005-04-09  Peter Bartok  <pbartok@novell.com>
28093
28094         * FolderBrowserDialog: Added
28095
28096 2005-04-07  Jordi Mas i Hernandez <jordi@ximian.com>
28097
28098         * LinkLabel.cs: move drawing code into the theme
28099         * ThemeWin32Classic.cs: drawing code and painting background bugfix
28100         * Theme.cs: define DrawLinkLabel method
28101
28102 2005-04-05  Jackson Harper  <jackson@ximian.com>
28103
28104         * BindingContext.cs: Use weak references so these bad actors don't
28105         stay alive longer then they need to.
28106
28107 2005-04-05  Jackson Harper  <jackson@ximian.com>
28108
28109         * ListControl.cs: Basic implementation of complex databinding.
28110         * ComboBox.cs:
28111         * ListBox.cs: Add calls to ListControl databinding methods.
28112
28113 2005-04-05  Alexander Olk  <xenomorph2@onlinehome.de>
28114
28115         * FileDialog.cs:
28116           - Don't change PopupButtonState to Normal when the
28117             PopupButton gets pressed several times.
28118           - Renamed ButtonPanel to PopupButtonPanel
28119
28120 2005-04-05  Jordi Mas i Hernandez <jordi@ximian.com>
28121
28122         * ColorDialog.cs: Use cached objects instead of creating them
28123         * LinkLabel.cs: Use cached objects instead of creating them
28124         * Splitter.cs: Use cached objects instead of creating them
28125         * FontDialog.cs: Use cached objects instead of creating them
28126         * PropertyGridView.cs: Use cached objects instead of creating them
28127         * MessageBox.cs: Use cached objects instead of creating them
28128         * FileDialog.cs: Use cached objects instead of creating them
28129         * ThemeWin32Classic.cs: Use cached objects instead of creating them
28130         * TreeView.cs: Use cached objects instead of creating them
28131         
28132 2005-04-04  Jordi Mas i Hernandez <jordi@ximian.com>
28133
28134         * Control.cs: use Equals to compare the font since no == op
28135         * ScrollBar.cs: use Equals to compare the font since no == op
28136
28137 2005-04-04  Alexander Olk  <xenomorph2@onlinehome.de>
28138
28139         * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
28140
28141 2005-04-01  Jackson Harper  <jackson@ximian.com>
28142
28143         * Binding.cs: Implement IsBinding.
28144         * BindingManagerBase.cs:
28145         * PropertyManager.cs:
28146         * CurrencyManager.cs: Add IsSuspended property.
28147
28148 2005-04-01  Jackson Harper  <jackson@ximian.com>
28149
28150         * Binding.cs: Had some IsAssignableFrom calls backwards.
28151
28152 2005-04-01  Jackson Harper  <jackson@ximian.com>
28153
28154         * Binding.cs: Handle null data members when pulling data.
28155         * PropertyManager.cs: Handle the data member being a property that
28156         does not exist.
28157
28158 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
28159
28160         * DataGridTextBoxColumn.cs: fixes signature
28161         * DataGrid.cs: calls right constructor
28162
28163 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
28164
28165         * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
28166         * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
28167         * GridTableStylesCollection.cs: implements GridTableStylesCollection
28168         * DataGridTableStyle.cs: implements DataGridTableStyle
28169         * DataGridBoolColumn.cs: implements DataGridBoolColumn
28170         * DataGridTextBox.cs: implements DataGridTextBox
28171         * DataGridColumnStyle.cs: implements DataGridColumnStyle
28172
28173 2005-03-31  Alexander Olk  <xenomorph2@onlinehome.de>
28174
28175         * FileDialog.cs: Added simple PopupButton class for ButtonPanel
28176
28177 2005-03-29  Peter Bartok  <pbartok@novell.com>
28178
28179         * Application.cs:
28180           - Properly implemented CompanyName property
28181           - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
28182             returns a path that includes CompanyName, ProductName and
28183             Version (fixes bug #70330)
28184
28185 2005-03-29  Stefan Buehler  <sbuehler@gmx.ch>
28186
28187         * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
28188           fixes bug #72588.
28189
28190 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
28191
28192         * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
28193         
28194           - Added ReadOnly CheckBox
28195           - Further refactoring: moved some code from Open-/SaveFileDialog
28196             to FileDialog
28197
28198 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
28199
28200         * OpenFileDialog.cs: Fixed CheckFileExists
28201         * FileDialog.cs:
28202           Moved FileView and DirComboBox outside FileDialog class.
28203           They can now be used outside FileDialog
28204
28205 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
28206
28207         * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
28208         * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
28209
28210 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
28211
28212         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
28213           - Added missing CreatePrompt property in SaveDialog
28214           - Overall SaveDialog handling should be better now
28215           - Added non standard ShowHiddenFiles property
28216           - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
28217           - Added InitialDirectory and RestoreDirectory support
28218
28219 2005-03-26  Alexander Olk  <xenomorph2@onlinehome.de>
28220
28221         * FileDialog.cs: Made dirComboBox usable
28222
28223 2005-03-24  Alexander Olk  <xenomorph2@onlinehome.de>
28224
28225         * FileDialog.cs: Added Filter support (case sensitiv)
28226
28227 2005-03-24  Jackson Harper  <jackson@ximian.com>
28228
28229         * TabControl.cs: Need a couple more pixels for the lines.
28230
28231 2005-03-23  Jackson Harper  <jackson@ximian.com>
28232
28233         * TabControl.cs: Give the tab page focus when it is selected.
28234
28235 2005-03-23  Jackson Harper  <jackson@ximian.com>
28236
28237         * TabControl.cs: Account for the drawing of tabs borders when
28238         invalidating. If the slider was clicked dont do click detection on
28239         the tabs.
28240
28241 2005-03-23  Jackson Harper  <jackson@ximian.com>
28242
28243         * TabControl.cs: Fix typo, emilinates an unneeded expose event.
28244
28245 2005-03-22  Jonathan Chambers  <jonathan.chambers@ansys.com>
28246
28247         * CategoryGridEntry.cs: Added
28248         * GridItem.cs: Added helper properties
28249         * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
28250         * GridEntry.cs: Updated code for collection
28251         * PropertyGrid.cs: Cleaned up some formatting
28252         * PropertyGridView.cs: Added drop down functionality for enums.
28253         * GridItemCollection.cs: Added enumerator logic
28254         * PropertyGridEntry.cs: Added
28255
28256 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
28257
28258         * FileDialog.cs:
28259           - Removed unnecessary commented code
28260           - Fixed handling for entering the filename manually in the combobox
28261
28262 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
28263
28264         * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
28265
28266 2005-03-18  Peter Bartok  <pbartok@novell.com>
28267
28268         * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
28269           them being touching the border
28270
28271 2005-03-18  Peter Bartok  <pbartok@novell.com>
28272
28273         * TextControl.cs: Quick hack to center text better
28274
28275 2005-03-18  Peter Bartok  <pbartok@novell.com>
28276
28277         * ControlPaint.cs:
28278           - Don't throw NotImplemented exceptions, just print a notice once
28279             instead (requested by Miguel). This makes running existing SWF
28280             apps a bit easier
28281         * Control.cs:
28282           - Commented out Drag'N'Drop XplatUI call (no driver support yet)
28283           - Added context menu trigger on right click
28284         * Panel.cs: Trigger invalidate on resize
28285         * StatusBar.cs:
28286           - Removed old double-buffer drawing
28287           - Added ResizeRedraw style to force proper update of statusbar
28288         * ListView.cs:
28289           - Removed debug output
28290         * ThemeWin32Classic.cs:
28291           - Fixed drawing of status bar, now draws Text property if there
28292             are no defined panels
28293
28294 2005-03-18  Jackson Harper  <jackson@ximian.com>
28295
28296         * ImageList.cs: When the image stream is set pull all the images
28297         from it.
28298         * ImageListStreamer.cs: Implement reading image list streams.
28299
28300 2005-03-18  Peter Bartok  <pbartok@novell.com>
28301
28302         * ThemeWin32Classic.cs (DrawPictureBox):
28303           - Fixed calculations for centered drawing
28304           - Fixed drawing for normal mode, not scaling the image on normal
28305
28306 2005-03-18  Peter Bartok  <pbartok@novell.com>
28307
28308         * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
28309           textbox
28310         * FileDialog.cs:
28311           - Made Open/Save button the accept button for FileDialog
28312           - Tied the cancel button to the IButtonControl cancel button
28313           - Save/Open now properly builds the pathname
28314           - Now handles user-entered text
28315           - Preventing crash on right-click if no item is selected
28316           - Fixed Text property, now uses contents of textbox
28317           - Fixed SelectedText property, now just returns the text part that
28318             is selected in the text box
28319
28320 2005-03-18  Jackson Harper  <jackson@ximian.com>
28321
28322         * ThemeWin32Classic.cs: Use the proper func for drawing the focus
28323         rect, make sure to de-adjust the interior rect after drawing the
28324         tab text.
28325
28326 2005-03-18  Peter Bartok  <pbartok@novell.com>
28327
28328         * MenuAPI.cs: Remove menu *before* executing selected action to
28329           prevent the menu from 'hanging around'
28330           
28331 2005-03-17  Geoff Norton  <gnorton@customerdna.com>
28332
28333         * XplatUIOSX.cs: Implemented WorkingArea property
28334
28335 2005-03-17  Peter Bartok  <pbartok@novell.com>
28336
28337         * XplatUIX11.cs: Fixed menu coord calculations
28338         * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
28339           for calculating offsets
28340
28341 2005-03-17  Peter Bartok  <pbartok@novell.com>
28342
28343         * Hwnd.cs: Do not consider menu presence for default client
28344           rectangle location/size
28345         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
28346           XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
28347           translation functions
28348         * FileDialog.cs: Fixed (what I presume is a) typo
28349
28350 2005-03-17  Jonathan Gilbert  <logic@deltaq.org>
28351
28352         * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
28353           X access (avoids X-Async errors)
28354
28355 2005-03-16  Jackson Harper  <jackson@ximian.com>
28356
28357         * TabControl.cs: Raise the SelectedIndexChanged event.
28358
28359 2005-03-16  Alexander Olk  <xenomorph2@onlinehome.de>
28360
28361         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
28362           - Removed vertical ToolBar and replaced it with a custom panel
28363             (desktop and home button already work)
28364           - Added Help button (some controls get resized or relocated then)
28365           - Draw correct text depending on Open or Save.
28366           - Fixed some typos...
28367
28368 2005-03-16  Jordi Mas i Hernandez <jordi@ximian.com>
28369
28370         * ScrollBar.cs:
28371           - Only change Maximum and Minimum when need it (bug fix)
28372
28373 2005-03-15  Peter Bartok  <pbartok@novell.com>
28374
28375         * Form.cs: Use Handle for icon, to trigger creation if
28376           the window does not yet exist
28377         * Control.cs:
28378           - CanSelect: Slight performance improvement
28379           - Focus(): Preventing possible recursion
28380           - Invalidate(): Removed ControlStyle based clear flag setting
28381           - WM_PAINT: fixed logic for calling OnPaintBackground
28382           - WM_ERASEBKGND: Fixed logic, added call to new driver method
28383             EraseWindowBackground if the control doesn't paint background
28384         * XplatUIWin32.cs:
28385           - Moved EraseWindowBackground() method to internal methods
28386           - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
28387             is sent via SendMessage on BeginPaint call on Win32
28388         * XplatUIX11.cs:
28389           - Added EraseWindowBackground() method
28390           - No longer sends WM_ERASEBKGND on .Expose, but on call to
28391             PaintEventStart, which more closely matches Win32 behaviour
28392           - Fixed Invalidate() call, now updates new ErasePending Hwnd property
28393           - Fixed SetFocus() to properly deal with client and whole windows
28394         * Hwnd.cs: Added ErasePending property
28395         * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
28396         * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
28397
28398 2005-03-12  Geoff Norton  <gnorton@customerdna.com>
28399
28400         * XplatUIOSX.cs:
28401           - Fix hard loop when timers exist.
28402           - Fix bugs with middle and right click for 3 button mice.
28403
28404 2005-03-11  Peter Bartok  <pbartok@novell.com>
28405
28406         * XplatUIX11.cs:
28407           - get_WorkingArea: Need to call X directly, GetWindowPos only
28408             returns cached data now
28409           - Added sanity check to GetWindowPos hwnd usage
28410
28411 2005-03-11  Jackson Harper  <jackson@ximian.com>
28412
28413         * BindingManagerBase.cs: This method isn't used anymore as
28414         PullData now updates the data in the control.
28415
28416 2005-03-11  Jordi Mas i Hernandez <jordi@ximian.com>
28417
28418         * Form.cs: fixes menu drawing on X11
28419         * MenuAPI.cs:  fixes menu drawing on X11
28420
28421 2005-03-11  Peter Bartok  <pbartok@novell.com>
28422
28423         * Control.cs: Changed OnCreateControl behaviour based on a suggestion
28424           from Jonathan Gilbert; should fix bug #73606
28425         * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
28426           in Screen coordinates. Thanks, Jordi.
28427         * Form.cs: Added missing attribute
28428
28429 2005-03-11  Peter Bartok  <pbartok@novell.com>
28430
28431         * Form.cs:
28432           - Rudimentary Mdi support
28433           - Removed outdated FormParent code
28434           - Implemented lots of missing properties and methods, still missing
28435             transparency support
28436           - Added missing attributes
28437           - Implemented support for MaximumBounds
28438           - Added firing of various events
28439         * XplatUI.cs: Added SetIcon() method
28440         * XplatUIDriver.cs: Added SetIcon() abstract
28441         * XplatUIOSX.cs: Stubbed out SetIcon() method
28442         * XplatUIX11.cs:
28443           - Implemented SetIcon() support
28444           - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
28445           - Switched to unix line endings
28446         * XplatUIWin32.cs:
28447           - Made POINT internal so for can access it as part of MINMAX
28448           - Implemented SetIcon() support
28449           - Implemented support for CLIENTCREATESTRUCT (but might have to drop
28450             native Mdi support again, might have to go managed)
28451         * Control.cs: Now fires the StyleChanged event
28452         * MdiClient.cs: Added; still mostly empty
28453
28454 2005-03-10  Peter Bartok  <pbartok@novell.com>
28455
28456         * SaveFileDialog.cs: Added emtpy file
28457
28458 2005-03-08  Peter Bartok  <pbartok@novell.com>
28459
28460         * Control.cs: Fixed bug #73190; now invokes CreateControl (which
28461           in turn triggers OnCreateContro) when creating a handle for the
28462           first time.
28463         * TextControl.cs: Fixed endless loop in certain cases when
28464           replacing the current selection
28465
28466 2005-03-08  Jordi Mas i Hernandez <jordi@ximian.com>
28467
28468         * ScrollBar.cs:
28469           - Honors NewValue changes in Scroll events allowing apps to change it
28470           - Adds First and Last Scroll events
28471           - Fixes Thumb events
28472
28473 2005-03-07  Peter Bartok  <pbartok@novell.com>
28474
28475         * Hwnd.cs: Added DefaultClientRectangle property
28476         * XplatUI.cs: Now using the X11 driver Where() method, which provides
28477           more detailed debug information
28478         * XplatUIX11.cs:
28479           - Fixed size-change feedback loop, where we would pull an old size
28480             off the queue and mistakenly change our window's size to an
28481             earlier value
28482           - Now compressing ConfigureNotify events, to reduce looping and
28483             redraw issues
28484         * TextBoxBase.cs: Preventing crash when no text is set and ToString()
28485           is called
28486
28487 2005-03-07  Jackson Harper  <jackson@ximian.com>
28488
28489         * Binding.cs: Push data pushes from data -> property. Check if the
28490         property is readonly when attempting to set it.
28491
28492 2005-03-07  Jackson Harper  <jackson@ximian.com>
28493
28494         * Binding.cs: Format and parse data correctly. Use ASsignableFrom
28495         instead of IsSubclassOf. Pulling data now sets the value on the
28496         control.
28497         * PropertyManager.cs:
28498         * CurrencyManager.cs: Just need to pull data when updating now,
28499         because PullData will set the value on the control.
28500
28501 2005-03-04  Jackson Harper  <jackson@ximian.com>
28502
28503         * Binding.cs: Implement data type parsing and converting on pulled
28504         data. TODO: Are there more ways the data can be converted?
28505
28506 2005-03-04  Jackson Harper  <jackson@ximian.com>
28507
28508         * Binding.cs: Support <Property>IsNull checks. Also bind to the
28509         controls Validating method so we can repull the data when the
28510         control loses focus.
28511
28512 2005-03-03  Jordi Mas i Hernandez <jordi@ximian.com>
28513
28514         * ColumnHeader.cs:
28515           - Fixes null string format
28516           
28517         * ListView.cs:
28518           - Adds enum type checks
28519           - Fixes redrawing and recalc need after changing some properties
28520           - Fixes on focus_item set after the event
28521           - Fixes adding columns after the control has been created
28522           
28523         * ThemeWin32Classic.cs:
28524           - Fixes CheckBox focus rectangle
28525           - Fixes ColumnHeader drawing
28526
28527
28528 2005-03-03  Jackson Harper  <jackson@ximian.com>
28529
28530         * Binding.cs: Bind to <Property>Changed events so we can detect
28531         when properties are changed and update the data.
28532
28533 2005-03-02  Jordi Mas i Hernandez <jordi@ximian.com>
28534
28535         * ImageList.cs:
28536           - Changes 32-bit pixel format to Format32bppArgb to allow transparency
28537           - Fixes ImageList constructor with ImageList container
28538           - Fixes image scaling (wrong parameters at DrawImage)
28539
28540 2005-02-02  Jackson Harper  <jackson@ximian.com>
28541
28542         * Binding.cs: Make property searches case-insensitive. Eliminate
28543         some duplicated code.
28544
28545 2005-03-01  Jordi Mas i Hernandez <jordi@ximian.com>
28546
28547         * ComboBox.cs:
28548                 - Handle focus event
28549                 - Fix scrollbar events
28550                 - Discard highlighted item if remove it
28551                 - Fixes SelectedItem with strings
28552
28553 2005-03-01  Peter Bartok  <pbartok@novell.com>
28554
28555         * Control.cs:
28556           - Fixed Visible property, now follows (once again) parent chain
28557             to return false if any control in the chain is visible=false
28558           - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
28559           - Fixed several places where is_visible instead of Visible was used
28560           - Implemented FIXME related to focus selection when setting focused
28561             control to be invisible
28562
28563         * XplatUIWin32.cs: Now using proper method to find out if window is
28564           visible. Thanks to Jordi for pointing it out
28565
28566 2005-02-28  Jordi Mas i Hernandez <jordi@ximian.com>
28567
28568         * ComboBox.cs: show/hide scrollbar instead of creating it
28569
28570 2005-02-27  Jackson Harper  <jackson@ximian.com>
28571
28572         * CurrencyManager.cs: Add PositionChanged stuff.
28573
28574 2005-02-27  Peter Bartok  <pbartok@novell.com>
28575
28576         * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
28577         * XplatUIOSX.cs: Added GetMenuOrigin() stub
28578         * XplatUIWin32.cs: Implemented GetMenuOrigin()
28579         * XplatUIX11.cs:
28580           - Implemented GetMenuDC()
28581           - Implemented GetMenuOrigin()
28582           - Implemented ReleaseMenuDC()
28583           - Implemented generation of WM_NCPAINT message
28584           - Implemented generation and handling of WM_NCCALCSIZE message
28585         * Form.cs: Added debug helper message for Jordi's menu work
28586         * Hwnd.cs:
28587           - Modified ClientRect property; added setter, fixed getter to handle
28588             setting of ClientRect
28589           - Added MenuOrigin property
28590
28591 2005-02-26  Peter Bartok  <pbartok@novell.com>
28592
28593         * XplatUIX11.cs:
28594           - Destroys the caret if a window that's being destroyed contains it
28595           - Ignores expose events coming from the X11 queue for windows that
28596             already are destroyed
28597           - Now uses the proper variable for handling DestroyNotify, before we
28598             marked the wrong window as destroyed
28599           - Improved/added some debug output
28600
28601 2005-02-26  Peter Bartok  <pbartok@novell.com>
28602
28603         * X11Keyboard.cs: Fixes to work on 64bit systems
28604
28605 2005-02-26  Peter Bartok  <pbartok@novell.com>
28606
28607         * Control.cs:
28608           - Now calling OnHandleDestroyed from DestroyHandle()
28609             instead of Dispose()
28610           - Removed bogus call to controls.Remove() from DestroyHandle()
28611
28612 2005-02-26  Peter Bartok  <pbartok@novell.com>
28613
28614         * Control.cs: Properly destroy child windows when our handle is
28615           destroyed
28616
28617 2005-02-25  Peter Bartok  <pbartok@novell.com>
28618
28619         * XplatUI.cs:
28620           - Added 'DriverDebug' define to allow tracing XplatUI API calls
28621           - Alphabetized Static Methods and Subclasses
28622
28623         * XplatUIX11.cs:
28624           - Added XException class to allow custom handling of X11 exceptions
28625           - Created custom X11 error handler, tied into XException class
28626           - Added support for MONO_XEXCEPTIONS env var to allow the user
28627             to either throw an exception on X errors or continue running
28628             after displaying the error
28629           - Added handling of DestroyNotify message
28630           - Added handler for CreateNotify message (still disabled)
28631           - Improved (tried to at least) Where method to provide file and lineno
28632         * X11Structs.cs:
28633           - Added XErrorHandler delegate
28634           - Added XRequest enumeration (to suppor translation of errors)
28635
28636 2005-02-25  Jackson Harper  <jackson@ximian.com>
28637
28638         * PropertyManager.cs: Implement editing features
28639         * CurrencyManager.cs:
28640         * Binding.cs: First attempt at UpdateIsBinding
28641         * BindingManagerBase.cs: Call UpdateIsBinding before
28642         pushing/pulling data.
28643
28644 2005-02-25  Jordi Mas i Hernandez <jordi@ximian.com>
28645
28646         * MenuAPI.cs: Respect disabled items
28647         * ThemeWin32Classic.cs
28648                 - Caches ImageAttributes creation for DrawImageDisabled
28649                 - Fixes vertical menu line drawing
28650                 - Draws disabled arrows in disable menu items
28651
28652 2005-02-24  Peter Bartok  <pbartok@novell.com>
28653
28654         * Hwnd.cs:
28655           - Added UserData property to allow associating arbitrary objects
28656             with the handle
28657           - Fixed leak; now removing Hwnd references from static windows array
28658         * XplatUIWin32.cs:
28659           - Fixed Graphics leak in PaintEventEnd
28660           - Removed usage of HandleData, switched over to Hwnd class
28661         * HandleData.cs: Removed, obsoleted by Hwnd.cs
28662
28663 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
28664
28665         * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
28666         * ScrollBar.cs: Fixes bug
28667         * TrackBar.cs: removes death code, clipping, mimize refreshes,
28668          keyboard navigation enhancements
28669
28670 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
28671
28672         * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
28673         * GroupBox.cs: Add control styles
28674         * Label.cs: Add control styles
28675         * UpDownBase.cs: Add control styles
28676         * ListBox.cs: Add control styles
28677         * XplatUIWin32.cs: Fixes wrong parameter order
28678
28679
28680 2005-02-23  Chris Bacon  <chris.bacon@docobo.co.uk>
28681
28682         * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
28683
28684 2005-02-23  Jackson Harper  <jackson@ximian.com>
28685
28686         * PropertyManager.cs: Implement property binding. This doesn't
28687         seem to work yet though as (I think) there are some bugs in
28688         System.ComponentModel.PropertyDescriptor.
28689         * BindingContext.cs: Use new PropertyManager constructor.
28690
28691 2005-02-23  Jordi Mas i Hernandez <jordi@ximian.com>
28692
28693         * ProgressBar.cs: use clip region in ProgressBar
28694         * ThemeWin32Classic.cs: use clip region in ProgressBar
28695
28696 2004-02-22  Jackson Harper  <jackson@ximian.com>
28697
28698         * BindingsCollection.cs: Remove some debug code.
28699
28700 2005-02-22  Jackson Harper  <jackson@ximian.com>
28701
28702         * BindingContext.cs:
28703         * ControlBindingsCollection.cs:
28704         * CurrencyManager.cs:
28705         * Binding.cs:
28706         * BindingManagerBase.cs: Initial implementation
28707         * BindingsCollection.cs: Add an internal contains method that the
28708         BindingManagerBase uses to ensure bindings aren't added twice to
28709         the collection.
28710         * PropertyManager.cs: Stubbed out.
28711         * Control.cs:
28712         * ContainerControl.cs: Hook up databinding
28713         
28714 2005-02-22  Geoff Norton  <gnorton@customerdna.com>
28715
28716         * XplatUIOSX.cs:
28717           OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
28718           Fixed Invalidate/Update chain.
28719           Fixed tons of other minor bugs (this is almost a complete rewrite).
28720
28721 2005-02-22  Jordi Mas i Hernandez <jordi@ximian.com>
28722
28723         * ComboBox.cs: do subcontrol creation when the control is created
28724
28725 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
28726
28727         * Label.cs: fixes image drawing (image and imagelist)
28728         * ThemeWin32Classic.cs: cache brushes
28729         
28730 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
28731
28732         * Form.cs: Move menu drawing code to Theme class
28733         * ComboBox.cs: Move ComboBox drawing code to Theme class
28734         * MenuItem.cs: Move menu drawing code to Theme class
28735         * MenuAPI.cs: Move menu drawing code to Theme class
28736         * ThemeWin32Classic.cs: New methods
28737         * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
28738         * ListBox.cs: Move Listbox drawing code to Theme class
28739         * Theme.cs: New methods
28740
28741 2005-02-20  Peter Bartok  <pbartok@novell.com>
28742
28743         * Control.cs:
28744           - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
28745             only process mnemonics on those)
28746           - Fixed event sequence for key handling; first calling
28747             ProcessKeyEventArgs now
28748         * TextBoxBase.cs:
28749           - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
28750             for processing non-character keys
28751           - Fixed WM_CHAR to generate proper event sequence before processing
28752         * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
28753           generation
28754
28755 2005-02-19  Peter Bartok  <pbartok@novell.com>
28756
28757         * UserControl.cs: Added TextChanged event; added attributes
28758         * SizeGrip.cs: Implemented resizing and optional display of grip
28759         * Form.cs: Fixed attribute
28760         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
28761           Changed meaning of ScrollWindow bool argument; instead of the
28762           clear attribute (which will be true usually anyway), it gives the
28763           option of moving child controls as well.
28764         * XplatUIX11.cs:
28765           - Changed to match new ScrollWindow argument
28766           - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
28767             now handles the implicit parent window a WM puts around us
28768         * ScrollableControl.cs: Implemented (not the prettiest, but it seems
28769           to work)
28770         * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
28771         * TreeView.cs: Adjusted to new ScrollWindow arguments
28772
28773 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
28774
28775         * Form.cs: Menu integration with non-client area
28776         * MenuItem.cs: Menu integration with non-client area
28777         * MenuAPI.cs: Menu integration with non-client area
28778
28779 2005-02-18  Peter Bartok  <pbartok@novell.com>
28780
28781         * MethodInvoker.cs: Added
28782         * MdiLayout.cs: Added
28783         * SendKeys.cs: Started implementation
28784         * ErrorIconAlignment.cs: Added
28785
28786 2005-02-18  Peter Bartok  <pbartok@novell.com>
28787
28788         * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
28789         * Form.cs: Added handling for Menu-related Non-client messages
28790
28791 2005-02-17  Peter Bartok  <pbartok@novell.com>
28792
28793         * UpDownBase.cs: Fixed typo, compilation errors
28794         * DomainUpDown.cs: Fixed attribute value
28795
28796 2005-02-16  Miguel de Icaza  <miguel@novell.com>
28797
28798         * UpDownBase.cs: Attach entry events.
28799         Propagate events.
28800         Add ForeColor property, Focused, InterceptArrowKeys (interception
28801         does not work yet).
28802
28803 2005-02-17  Jordi Mas i Hernandez <jordi@ximian.com>
28804
28805         * Form.cs:
28806                 - Redraw non client are on Setmenu
28807                 - Calc proper menu starting point
28808
28809 2005-02-17  Peter Bartok  <pbartok@novell.com>
28810
28811         * Application.cs: Fixed message_filter check
28812
28813 2005-02-17  Peter Bartok  <pbartok@novell.com>
28814
28815         * Application.cs: Now calls registered message filters
28816         * DockStyle.cs: Fixed attribute
28817         * Form.cs: Fixed attribute
28818         * Menu.cs: Fixed attribute
28819         * ToolTip.cs: Fixed attribute
28820         * TreeNode.cs: Added missing attributes and arranged in regions
28821         * PropertyGrid.cs: Fixed signatures
28822         * TreeNodeCollection.cs: Added attributes
28823         * Splitter.cs: Added missing attributes; arranged into regions
28824         * TabPage.cs: Added missing attributes; arranged into regions
28825         * TextBoxBase.cs: Added missing attributes
28826         * TextBox.cs: Added missing attributes
28827         * ArrangeDirection.cs: Added missing attributes
28828         * TreeNodeConverter.cs: Added stub (needed for TreeNode)
28829         * ToolBarButton.cs: Fixed attributes
28830         * AnchorStyles.cs: Fixed attribute
28831         * TrackBar.cs: Fixed attributes
28832         * TabControl.cs: Added missing attributes and arranged into regions
28833         * ToolBar.cs: Fixed attribute
28834         * StatusBar.cs: Fixed signature, organized into regions and added
28835           attributes
28836         * StatusBarPanel.cs: Fixed attributes
28837         * ContentsResizedEventArgs.cs: Implemented
28838         * ContentsResizedEventHandler.cs: Implemented
28839         * DateBoldEventArgs.cs: Implemented
28840         * DateBoldEventHandler.cs: Implemented
28841         * UpDownEventArgs.cs: Implemented
28842         * UpDownEventHandler.cs: Implemented
28843         
28844 2005-02-16  Jordi Mas i Hernandez <jordi@ximian.com>
28845
28846         * Form.cs: first Menu NC refactoring
28847         * MenuAPI.cs: first Menu NC refactoring
28848         
28849 2005-02-16  Peter Bartok  <pbartok@novell.com>
28850
28851         * ImeMode.cs: Added missing attributes
28852         * Menu.cs: Fixed attribute
28853         * GroupBox.cs: Fixed attribute
28854         * Label.cs: Fixed attribute
28855         * ColorDialog.cs (RunDialog): Removed TODO attribute
28856         * ComboBox.cs: Fixed attributes
28857         * ListControl.cs: Added missing attributes
28858         * PropertyGrid.cs: Fixed attributes
28859         * Control.cs: Fixed attributes
28860         * ListViewItem.cs: Added TypeConverter attribute
28861         * NotifyIcon.cs: Fixed attributes
28862         * ListView.cs: Fixed attributes
28863         * ButtonBase.cs: Fixed attribute
28864         * ImageList.cs: Added missing attributes
28865         * ContainerControl.cs: Fixed signature
28866         * CheckedListBox.cs: Fixed attribute; added missing attributes
28867         * Panel.cs: Fixed attributes
28868         * PropertyTabChangedEventArgs.cs: Added missing attribute
28869         * PropertyValueChangedEventArgs.cs: Added missing attribute
28870         * Binding.cs: Fixed attribute
28871         * ListViewItemConverter: Implemented ListViewSubItemConverter class
28872         * ListBox.cs: Fixed attribute; added missing attributes;
28873         * ScrollableControl.cs: Added missing attributes
28874         * PictureBox.cs: Added missing attributes; implemented missing property
28875         * DateTimePicker.cs: Added missing attributes
28876         * Theme.cs (ToolWindowCaptionHeight): Fixed type
28877         * MonthCalendar.cs: Fixed attributes
28878         * StatusBarPanel.cs: Added missing attributes
28879         * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
28880
28881 2005-02-16  Peter Bartok  <pbartok@novell.com>
28882
28883         * TextBoxBase.cs: The previous method to enforce height yet remember
28884           the requested high was less than ideal, this is an attempt to do
28885           it better.
28886         * Control.cs: Added comment about possible problem
28887         * Copyright: Updated format
28888         * GridItemType.cs: Fixed swapped values
28889
28890 2005-02-15  Jackson Harper  <jackson@ximian.com>
28891
28892         * BaseCollection.cs: Use property so we never access an
28893         uninitialized list. Also initialize the list in the property.
28894
28895 2005-02-15  Peter Bartok  <pbartok@novell.com>
28896
28897         * GroupBox.cs (ProcessMnemonic): Implemented
28898         * Label.cs (ProcessMnemonic): Implemented
28899         * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
28900           hotkeys
28901
28902 2005-02-15  Peter Bartok  <pbartok@novell.com>
28903
28904         * RadioButton.cs (ProcessMnemonic): Implemented
28905         * CheckBox.cs (ProcessMnemonic): Implemented
28906         * Control.cs:
28907           - Added handling of WM_SYSxxx keyboard messages to support mnemonic
28908             handling
28909           - Added internal method to allow calling ProcessMnemonic from other
28910             controls
28911         * ContainerControl.cs:
28912           - Started support for handling validation chain handling
28913           - Implemented ProcessMnemonic support
28914           - Added Select() call to Active, to make sure the active control
28915             receives focus
28916         * Form.cs: Setting toplevel flag for Forms (this was lost in the
28917           FormParent rewrite)
28918         * ThemeWin32Classic.cs:
28919           - DrawCheckBox(): Fixed stringformat to show hotkeys
28920           - DrawRadioButton(): Fixed stringformat to show hotkeys
28921         * CommonDialog.cs: Removed WndProc override, not needed
28922
28923 2005-02-14  Peter Bartok  <pbartok@novell.com>
28924
28925         * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
28926           missed those in the rewrite
28927
28928 2005-02-14  Miguel de Icaza  <miguel@novell.com>
28929
28930         * NumericUpDown.cs (Increment, ToString): Add.
28931         (DecimalPlaces): implement.
28932         
28933         Add attributes.
28934         
28935         * UpDownBase.cs: Add the designer attributes.
28936
28937 2005-02-13  Peter Bartok  <pbartok@novell.com>
28938
28939         * Panel.cs: Removed border_style, now in Control
28940         * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
28941           ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
28942
28943 2005-02-13  Peter Bartok  <pbartok@novell.com>
28944
28945         * MouseButtons.cs: Added missing attributes
28946         * XplatUIStructs.cs: Added enumeration for title styles
28947         * LeftRightAlignment.cs: Added missing attributes
28948         * Hwnd.cs: Switched to use client_window as handle (slower, but makes
28949           it compatible with Graphics.FromHwnd()
28950         * SelectedGridItemChangedEventArgs.cs: Fixed property type
28951         * Keys.cs: Added missing attributes
28952         * SelectionRange.cs: Added missing attributes
28953         * SelectionRangeConverter.cs: Added
28954         * XplatUI.cs:
28955           - Introduced SetBorderStyle, SetMenu, GetMenuDC and
28956             ReleaseMenuDC methods
28957           - Renamed ReleaseWindow to UngrabWindow
28958           - Added proper startup notice to allow version identification
28959         * Form.cs:
28960           - Added missing attributes
28961           - Removed FormParent concept
28962         * Label.cs: Removed border_style field, now in Control
28963         * RadioButton.cs: Now properly selects RadioButton when focus is
28964           received
28965         * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
28966         * Control.cs:
28967           - Added missing attributes
28968           - Added borderstyle handling
28969           - Removed FormParent concept support
28970           - Fixed calls to XplatUI to match changed APIs
28971           - Fixed bug that would case us to use disposed Graphics objects
28972           - Removed unneeded internal methods
28973           - PerformLayout(): Fixed to handle DockStyle.Fill properly
28974           - SelectNextControl(): Fixed to properly check common parents
28975         * TextBoxBase.cs: Removed border_style field (now in Control)
28976         * MessageBox.cs:
28977           - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
28978             fixed calculations for form size
28979           - Added support for localized strings and icons
28980           - Improved form size calculations, added border
28981         * ListView.cs: Removed border_style field (now in Control)
28982         * X11Structs.cs: Moved several structs from X11 driver here
28983         * X11Keyboard.cs: Changed debug message
28984         * Application.cs: Removed FormParent concept support
28985         * CommonDialog.cs:
28986           - Resetting end_modal flag
28987           - Removed FormParent concept support
28988         * NativeWindow.cs: Removed FormParent concept support
28989         * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
28990           Client area and Non-Client whole window to allow support for WM_NC
28991           messages
28992         * XplatUIOSX.cs: Updated to match latest driver spec; added exception
28993           prevent using it until it supports Hwnd as per Geoff Norton's request
28994         * ToolBar.cs: Fixed drawing, was not doing proper drawing
28995         * PictureBox.cs: Removed border_style field, now in Control
28996         * XplatUIWin32.cs: Added new driver methods
28997
28998 2005-02-12  Peter Bartok  <pbartok@novell.com>
28999
29000         * OpacityConverter.cs: Implemented
29001         * Hwnd.cs: Internal class to support drivers that need to emulate
29002           client area/non-client area window behaviour
29003
29004 2005-02-11  Peter Bartok  <pbartok@novell.com>
29005
29006         * KeysConverter.cs: Implemented
29007
29008 2005-02-11  Jordi Mas i Hernandez <jordi@ximian.com>
29009
29010         * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
29011         * LinkLabel: Added missing attributes
29012         * MainMenu.cs: fixes ToString
29013         * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
29014         * ListBox.cs: fixes event position
29015         * TrackBar.cs: adds missing attributes and events
29016         
29017 2005-02-10  Jordi Mas i Hernandez <jordi@ximian.com>
29018
29019         * MenuItem.cs: Use SystemInformation and bug fixes
29020         * MenuAPI.cs: Use SystemInformation and bug fixes
29021
29022 2005-02-09  Jackson Harper  <jackson@ximian.com>
29023
29024         * X11Keyboard.cs: We ignore some keys, but still need to set/reset
29025         their keystate otherwise things like VK_MENU get stuck "on".
29026
29027 2005-02-09  Kazuki Oikawa <kazuki@panicode.com>
29028
29029         * ListBox.cs: Fixes AddRange bug
29030         
29031 2005-02-09  Jordi Mas i Hernandez <jordi@ximian.com>
29032
29033         * ProgressBar.cs
29034                 - Add missing attributes
29035                 - Add missing method
29036                 
29037         * CheckedListBox.cs: Added missing attributes
29038                 - Add missing attributes
29039                 - Remove extra method
29040         
29041         * ComboBox.cs: Added missing attributes
29042         * VScrollBar.cs: Added missing attributes
29043         * ScrollBar.cs:  Added missing attributes
29044         * ListBox.cs: Fixes signature, add missing consts
29045         * LinkArea.cs:   Added missing attributes
29046         
29047
29048 2005-02-08  Peter Bartok  <pbartok@novell.com>
29049
29050         * Menu.cs: Added missing attributes
29051         * MainMenu.cs: Added missing attributes
29052         * GroupBox.cs: Added missing attributes
29053         * Label.cs: Added missing attributes
29054         * CheckBox.cs: Implemented CheckBoxAccessibleObject class
29055         * ColorDialog.cs:
29056           - Added Instance and Options properties
29057           - Added missing attributes
29058         * Cursor.cs: Made Serializable
29059         * NotifyIcon: Added missing attributes
29060         * MenuItem.cs: Added missing attributes
29061         * TextBoxBase.cs: Implemented AppendText() and Select() methods
29062         * Panel.cs: Added Missing attributes
29063         * MonthCalendar.cs: Fixed CreateParams
29064
29065 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
29066         
29067         * LinkLabel.cs:
29068                 - Fixes signature
29069                 - Fixes issues with links
29070                 - Adds the class attributes
29071
29072 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
29073         
29074         * ComboBox.cs:
29075                 - Fixes button when no items available in dropdown
29076                 - Fixes repainting problems
29077                 - Adds the class attributes
29078                 
29079 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
29080
29081         * XplatUIOSX.cs: Detect the menu bar and title bar height from
29082         the current theme.  Cache these on startup.
29083
29084 2005-02-07  Jackson Harper  <jackson@ximian.com>
29085
29086         * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
29087         the scrollbar buttons when they are depressed.
29088
29089 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
29090
29091         * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
29092         Get the display size from the main displayid.  We currently dont
29093         support multiple display configurations.
29094
29095 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
29096
29097         * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
29098
29099 2005-02-07  Miguel de Icaza  <miguel@novell.com>
29100
29101         * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
29102
29103 2005-02-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
29104
29105         * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
29106
29107 2005-02-04  Jackson Harper  <jackson@ximian.com>
29108
29109         * ThemeWin32Classic.cs: Respect the clipping rect when
29110         drawing. Only fill the intersection of clips and rects so there
29111         isn't a lot of large fills.
29112         * ScrollBar.cs: Pass the correct clipping rect to the theme
29113         engine. Remove some debug code.
29114
29115 2005-02-05  John BouAntoun  <jba-mono@optusnet.com.au>
29116         
29117         * DateTimePicker.cs:
29118                 - Fixed crash on DateTime.Parse, use Constructor instead
29119
29120 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
29121         
29122         * MenuItem.cs:
29123         * MenuAPI.cs:
29124                 - Owner draw support (MeasureItem and DrawItem)
29125
29126 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
29127         
29128         *  Menu.cs:
29129                 - Implements FindMergePosition and MergeMenu functions (very poor documented)
29130                 - Fixes MenuItems.Add range
29131         * MenuItem.cs:
29132                 - MergeMenu and Clone and CloneMenu functions
29133
29134 2005-02-03  Jackson Harper  <jackson@ximian.com>
29135
29136         * ScrollBar.cs: Make abstract
29137         * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
29138         is abstract.
29139
29140 2005-02-03  Jackson Harper  <jackson@ximian.com>
29141
29142         * ScrollBar.cs: First part of my scrollbar fixups. This removes
29143         all the unneeded refreshes and uses invalidates with properly
29144         computed rects.
29145
29146 2005-02-03  Peter Bartok  <pbartok@novell.com>
29147
29148         * ComponentModel.cs: Added
29149         * IDataGridEditingService.cs: Added
29150         * Timer.cs: Added missing attributes
29151         * ToolTip.cs: Added missing attributes
29152
29153 2005-02-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
29154
29155         * PropertyGridView.cs: Added. Patch by Jonathan Chambers
29156
29157 2005-02-03  Peter Bartok  <pbartok@novell.com>
29158
29159         * ListBox.cs: Added missing attributes
29160
29161 2005-02-03  Jordi Mas i Hernandez <jordi@ximian.com>
29162         
29163         * ListBox.cs:
29164                 - Fixes font height after font change
29165                 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
29166                 
29167 2005-02-02  Peter Bartok  <pbartok@novell.com>
29168
29169         * HandleData.cs: Introduced static methods to allow class
29170           to be more self-contained and track it's own HandleData objects
29171         * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
29172           HandleData to use new static methods
29173
29174 2005-02-02  Jordi Mas i Hernandez <jordi@ximian.com>
29175
29176         * Combobox.cs:
29177                 - Fixes default size and PreferredHeight
29178                 - Missing events
29179                 - ObjectCollection.Insert implementation
29180                 
29181         * ListControl.cs
29182                 - Fixes signature
29183         * ListBox.cs:
29184                 - Several fixes
29185                 - ObjectCollection.Insert implementation
29186                 - No selection after clean
29187                 - Small fixes
29188
29189 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
29190
29191         * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
29192
29193 2005-02-01  Jordi Mas i Hernandez <jordi@ximian.com>
29194
29195         * Combobox.cs:
29196                 - Caches ItemHeight calculation for OwnerDrawVariable
29197                 - Handles dropdown properly
29198                 - Fixes several minor bugs
29199
29200 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
29201
29202         * ListBox.cs:
29203                 - Fixes 71946 and 71950
29204                 - Fixes changing Multicolumn on the fly
29205                 - Fixes keyboard navigation on Multicolumn listboxes
29206
29207 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
29208         
29209         * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
29210         crash reporter log.
29211
29212 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
29213
29214         * XplatUIOSX.cs: Allow applications to actually exit.
29215
29216 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
29217
29218         * XplatUIOSX.cs: SetWindowStyle implemented.  Reposition views in
29219         their parent at creation time rather than lazily later.  Fixes a major
29220         regression we were experiencing.
29221
29222 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
29223
29224         * ThemeWin32Classic.cs: more date time picker painting fixes
29225         * DateTimePicker.cs: more monthcalendar drop down fixes
29226         * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
29227
29228 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
29229
29230         * ScrollBar.cs:
29231                 - When moving the thumb going outside the control should stop the moving
29232                 - Adds the firing of missing events
29233                 - Fixes no button show if Size is not specified
29234                 - End / Home keys for keyboard navigation
29235
29236 2005-01-30  Peter Bartok  <pbartok@novell.com>
29237
29238         * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
29239           sanity check to prevent theoretical loop
29240         * XplatUIWin32.cs (SetVisible): Removed debug output
29241         * XplatUIX11.cs (SystrayChange): Added sanity check
29242         * ScrollableControl.cs (OnVisibleChanged): Now calls base method
29243         * Control.cs (OnVisibleChanged): Added workaround for ParentForm
29244           behaviour, valid until the X11 client window rewrite is done
29245         * TextBox.cs (ctor): Setting proper default foreground and background
29246           colors
29247
29248 2005-01-30      John BouAntoun  <jba-mono@optusnet.com.au>
29249
29250         * Theme: Added DrawDateTimePicker to interface
29251         * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
29252         * DateTimePicker.cs: Created (still needs keys and painting code)
29253         * DateTimePickerFormat.cs: added
29254         * MonthCalendar.cs: fixed CreateParams for popup window mode
29255           
29256 2005-01-29  Peter Bartok  <pbartok@novell.com>
29257
29258         * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
29259           this should also the calculations for ligher/darker
29260         * Theme.cs: Fixed defaults for ScrollBar widths/heights
29261
29262 2005-01-29  Peter Bartok  <pbartok@novell.com>
29263
29264         * ArrangeDirection.cs: Added
29265         * ArrangeStartingPositon.cs: Added
29266         * SystemInformation.cs: Implemented
29267         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
29268           XplatUIX11.cs, Theme.cs: Added/implemented new static properties
29269           used by SystemInformation class
29270         * X11Strucs.cs: Added XSizeHints structure
29271         * MenuAPI.cs:
29272           - Fixed CreateParams to make sure the menu window is always visible
29273           - TrackPopupMenu: Added check to make sure we don't draw the
29274             menu offscreen
29275
29276 2005-01-29  Peter Bartok  <pbartok@novell.com>
29277
29278         * HandleData.cs: Added method for altering invalid area
29279         * TextBoxBase.cs: Implemented TextLength
29280
29281 2005-01-28  Peter Bartok  <pbartok@novell.com>
29282
29283         * XplatUIX11.cs: Improvement over last patch, not sending
29284           the WM_PAINT directly anymore, instead we scroll any pending
29285           exposed areas and let the system pick out the WM_PAINT later
29286
29287 2005-01-28  Peter Bartok  <pbartok@novell.com>
29288
29289         * SWF.csproj: Deleted, no longer used. Instead,
29290           Managed.Windows.Forms/SWF.csproj should be used
29291         * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
29292           directly, to avoid a potential race condition with the next
29293           scroll
29294
29295 2005-01-28  Peter Bartok  <pbartok@novell.com>
29296
29297         * XplatUI.cs: Made class internal
29298
29299 2005-01-28  Jordi Mas i Hernandez <jordi@ximian.com>
29300
29301         * CheckedListBox.cs:
29302                 - Draw focus
29303                 - Fixed Drawing
29304                 - Missing methods and events
29305
29306 2005-01-27  Peter Bartok  <pbartok@novell.com>
29307
29308         * Application.cs (Run): Don't use form if we don't have one
29309
29310 2005-01-27  Peter Bartok  <pbartok@novell.com>
29311
29312         * TextBoxBase.cs (get_Lines): Fixed index off by one error
29313
29314 2005-01-27  Peter Bartok  <pbartok@novell.com>
29315
29316         * GridEntry.cs: Added; Patch by Jonathan S. Chambers
29317         * GridItem.cs: Added; Patch by Jonathan S. Chambers
29318         * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
29319         * GridItemType.cs: Added; Patch by Jonathan S. Chambers
29320         * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
29321         * PropertySort.cs: Added; Patch by Jonathan S. Chambers
29322         * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
29323         * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
29324         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
29325         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
29326         * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
29327         * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
29328
29329 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
29330
29331         * Combobox.cs:
29332                 - Draw focus on Simple Combobox
29333                 - Fixes drawing issues
29334                 - fixes 71834
29335
29336 2005-01-27  Peter Bartok  <pbartok@novell.com>
29337
29338         * Form.cs:
29339           - Place window in default location, instead of hardcoded 0/0
29340           - Send initial LocationChanged event
29341         * Control.cs:
29342           - UpdateBounds after creation to find out where the WM placed us
29343           - Make sure that if the ParentForm changes location the Form
29344             is notified
29345         * XplatUIX11.cs: XGetGeometry will not return the coords relative
29346             to the root, but to whatever the WM placed around us.
29347             Translate to root coordinates before returning toplevel
29348             coordinates
29349         * XplatUIWin32.cs: Removed debug output
29350         * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
29351           flag to GetWindowPos, to allow translation of coordinates on X11
29352
29353 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
29354
29355         * ListBox.cs: connect LostFocus Event
29356
29357 2005-01-27  Peter Bartok  <pbartok@novell.com>
29358
29359         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
29360           XplatUIX11.cs: Extended the Systray API
29361         * Form.cs: Removed debug output
29362         * Application.cs: Fixed focus assignment, always need to call
29363           XplatUI.Activate() since Form.Activate() has rules that may
29364           prevent activation
29365         * NotifyIcon.cs: Should be complete now
29366         * ToolTip.cs: Worked around possible timer bug
29367
29368 2005-01-27  Jackson Harper  <jackson@ximian.com>
29369
29370         * TabControl.cs:
29371         - Only invalidate the effected tabs when the
29372         selected index changes. This reduces drawing and gets rid of some
29373         flicker.
29374         - Only refresh if the tabs need to be shifted, otherwise only
29375         invalidate the slider button.
29376         - On windows the tabs are not filled to right if the slider is
29377         visible.
29378         
29379 2005-01-27  Jackson Harper  <jackson@ximian.com>
29380
29381         * TabControl.cs: Only refresh on mouseup if we are showing the
29382         slider. Also only invalidate the button whose state has changed.
29383
29384 2005-01-26  Peter Bartok  <pbartok@novell.com>
29385
29386         * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
29387         * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
29388           and SystrayRemove() methods
29389         * XplatUIOSX.cs: Stubbed Systray methods
29390         * XplatUIX11.cs:
29391           - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
29392             methods
29393           - Fixed broken XChangeProperty calls (marshalling messed up things)
29394         * X11Structs.cs: Added enums and structs required for Size hinting
29395         * NotifyIcon.cs: Added & implemented
29396
29397 2005-01-26  Jackson Harper  <jackson@ximian.com>
29398
29399         * TabControl.cs: Space vertically layed out tabs properly.
29400
29401 2005-01-26  Peter Bartok  <pbartok@novell.com>
29402
29403         * Form.cs (CreateClientParams): Always set the location to 0,0
29404           since we're a child window.
29405
29406         * Control.cs (SetVisibleCore): Always explicitly setting the location
29407           of a toplevel window, apparently X11 doesn't like to move windows
29408           while they're not mapped.
29409
29410 2005-01-26  Jackson Harper  <jackson@ximian.com>
29411
29412         * TabControl.cs: Implement FillToRight size mode with vertically
29413         rendered tabs.
29414
29415 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
29416
29417         * ControlPaint.cs, ThemeWin32Classic.cs
29418                 - Fixes DrawFocusRectangle
29419
29420 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
29421
29422         * MenuAPI.cs:
29423                 - MenuBar tracking only starts when item is first clicked
29424                 - Fixes menu hidding for multiple subitems
29425                 - Unselect item in MenuBar when item Executed
29426                 - Fixes bug 71495
29427
29428 2005-01-25  Jordi Mas i Hernandez <jordi@ximian.com>
29429
29430         * ListControl.cs:
29431                 - IsInputKey for ListBox
29432         * ListBox.cs:
29433                 - Focus item
29434                 - Shift and Control item selection
29435                 - Implement SelectionMode.MultiExtended
29436                 - Fixes RightToLeft
29437         * ComboBox.cs:
29438                 - IsInputKey implemented
29439                 - Do not generate OnTextChangedEdit on internal txt changes
29440                 
29441 2005-01-23  Peter Bartok  <pbartok@novell.com>
29442
29443         * AccessibleObject.cs: Partially implemented Select()
29444         * MonthCalendar.cs: Added missing attributes and events
29445         * Form.cs: Fixed CreateParams behaviour, now controls derived from
29446           form can properly override CreateParams.
29447         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
29448           XplatUIX11.cs: Dropped RefreshWindow method, not needed if
29449           Control performs Invalidate & Update
29450         * NativeWindow (CreateHandle): Added special handling for Form
29451           and Form.FormParent classes to allow overriding of From.CreateParams
29452         * Control.cs:
29453           - ControlNativeWindow: Renamed 'control' variable to more intuitive
29454             name 'owner'
29455           - ControlNativeWindow: Added Owner property
29456           - Removed usage of Refresh() on property changes, changed into
29457             Invalidate(), we need to wait until the queue is processed for
29458             updates, direct calls might cause problems if not all vars for
29459             Paint are initialized
29460           - Added call to UpdateStyles() when creating the window, to set any
29461             styles that CreateWindow might have ignored.
29462           - Added support for Form CreateParent overrides to UpdateStyles()
29463         * MessageBox.cs: Removed no longer needed FormParent override stuff,
29464           CreateParams are now properly overridable
29465         * CommonDialog.cs: Removed no longer needed FormParent override stuff,
29466           CreateParams are now properly overridable
29467
29468 2005-01-23  Miguel de Icaza  <miguel@ximian.com>
29469
29470         * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
29471         OnTextBoxChanged.
29472
29473         Capture LostFocus and OnTextBoxChanged.  The later introduces a
29474         recursive invocation that I have not figured out yet.
29475
29476         Reset the timer when not using (it was accumulating).
29477
29478
29479         (OnTextBoxChanged): Set UserEdit to true here to track whether the
29480         user has made changes that require validation.
29481
29482         Reset changing to avoid loops.
29483
29484 2005-01-22  Miguel de Icaza  <miguel@ximian.com>
29485
29486         * NumericUpDown.cs: Display value at startup.
29487
29488         * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
29489         ValidateEditText.
29490
29491         * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
29492         filled in.  Added some basic parsing of text.
29493
29494         Still missing the OnXXX method overrides, and figuring out the
29495         events that must be emitted.
29496
29497         * UpDownBase.cs: Handle UserEdit on the Text property.
29498         
29499 2005-01-22  Jordi Mas i Hernandez <jordi@ximian.com>
29500
29501         * ComboBox.cs:
29502           - Fixes IntegralHeight
29503           - ToString method
29504
29505 2005-01-21  Jackson Harper  <jackson@ximian.com>
29506
29507         * TabControl.cs: Set the SelectedIndex property when SelectedTab
29508         is set so that the page visibility is updated and the tabs are
29509         sized correctly.
29510
29511 2005-01-21  Jackson Harper  <jackson@ximian.com>
29512
29513         * TabControl.cs: Use cliping rectangle for blitting. Give the
29514         theme the clipping rect so we can do clipping while
29515         drawing. Remove some debug code.
29516
29517 2005-01-21  Jackson Harper  <jackson@ximian.com>
29518
29519         * TabPage.cs: Add a new method so tab pages can force the tab
29520         control to recalculate the tab page sizes.
29521         * TabControl.cs: UpdateOwner needs to make the tab control recalc
29522         sizes.
29523
29524 2005-01-20  Jackson Harper  <jackson@ximian.com>
29525
29526         * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
29527
29528 2005-01-20  Jackson Harper  <jackson@ximian.com>
29529
29530         * TreeView.cs: Set the bounds for nodes properly. They were
29531         getting screwed up when checkboxes were not enabled, but images
29532         were.
29533
29534 2005-01-20  Jordi Mas i Hernandez <jordi@ximian.com>
29535
29536         * ListBox.cs:
29537                 - Owner draw support
29538                 - Fixes
29539                 
29540 2005-01-20  Jackson Harper  <jackson@ximian.com>
29541
29542         * XplatUIStructs.cs: More misc keys
29543         * X11Keyboard.cs: Ignore some control keys.
29544
29545 2005-01-20  Jackson Harper  <jackson@ximian.com>
29546
29547         * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
29548         * X11Keyboard.cs: Set the AltGr mask when we get a key event.
29549
29550 2005-01-19  Peter Bartok  <pbartok@novell.com>
29551
29552         * Control.cs: Un-selecting the control when it is loosing focus
29553
29554 2005-01-19  Jackson Harper  <jackson@ximian.com>
29555
29556         * TreeView.cs: Hook up to the text controls leave event so we can
29557         end editing when the users clicks outside the text box.
29558         
29559 2005-01-19  Jackson Harper  <jackson@ximian.com>
29560
29561         * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
29562         get set in the conversion array.
29563
29564 2005-01-19  Peter Bartok  <pbartok@novell.com>
29565
29566         * Application.cs (ModalRun): Added a call to CreateControl to ensure
29567           focus is properly set
29568         * Button.cs:
29569           - Added missing attributes
29570           - removed styles, those are already set in the base class
29571         * ButtonBase.cs:
29572           - Added missing attributes
29573           - Added clip window styles
29574         * CheckBox.cs: Added missing attributes
29575         * CommonDialog.cs:
29576           - FormParentWindow.CreateParams: Added required clip styles
29577         * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
29578           also filters modifier keys
29579         * MessageBox.cs:
29580           - Added assignment of Accept and Cancel button to enable Enter
29581             and Esc keys in MessageBox dialogs
29582           - FormParentWindow.CreateParams: Added required clip styles
29583         * RadioButton.cs: Added missing attributes
29584         * TextControl.cs: No longer draws selection if control does not
29585           have focus
29586         * TextBoxBase.cs:
29587           - Now draws simple rectangle around test area to make it obvious
29588             there's a control. This is a hack until we properly support borders
29589           - A few simple fixes to support selections better, now erases selected
29590             text when typing, and resets selection when using movement keys
29591
29592 2005-01-19  Miguel de Icaza  <miguel@ximian.com>
29593
29594         * UpDownBase.cs: Added some new properties.
29595
29596         * DomainUpDown.cs: Implement a lot to get my test working.
29597
29598 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
29599
29600         * XplatUIOSX.cs: Fix a minor bug to bring the close box back
29601
29602 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
29603
29604         * OSXStructs (WindowAttributes): Fixed csc complaints
29605
29606 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
29607
29608         * XplayUIOSX.cs:
29609           OSXStructs.cs: Initial refactor to move enums and consts into
29610           OSXStructs and use them in the driver for greater readability.
29611
29612 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
29613
29614         * XplatUIOSX.cs: Initial support for Standard Cursors.
29615         * OSXStructs.cs: Move our structs here; added ThemeCursor enum
29616
29617 2005-01-19  Jordi Mas i Hernandez <jordi@ximian.com>
29618
29619         * ComboBox.cs: ability to change style when the ctrl is already
29620         created, missing methods and events, bug fixes, signature fixes
29621
29622 2005-01-19  Peter Bartok  <pbartok@novell.com>
29623
29624         * Cursors.cs (ctor): Added ctor to fix signature
29625
29626 2005-01-18  Peter Bartok  <pbartok@novell.com>
29627
29628         * Button.cs: Implemented DoubleClick event
29629         * ButtonBase.cs:
29630           - Fixed keyboard handling to behave like MS, where the press of
29631             Spacebar is equivalent to a mousedown, and the key release is
29632             equivalent to mouseup. Now a spacebar push will give the same
29633             visual feedback like a mouse click.
29634           - Added missing attributes
29635           - Added ImeModeChanged event
29636           - Added support for generating DoubleClick event for derived classes
29637         * CheckBox.cs:
29638           - Implemented DoubleClick event
29639           - Added missing attributes
29640         * CommonDialog.cs: Added missing attribute
29641         * ContextMenu.cs: Added missing attributes
29642         * RadioButton.cs:
29643           - AutoChecked buttons do not allow to be unselected when clicked
29644             (otherwise we might end up with no selected buttons in a group)
29645           - Added missing attributes
29646           - Implemented DoubleClickEvent
29647         * ThreadExceptionDialog.cs: Enabled TextBox code
29648
29649 2005-01-18  Peter Bartok  <pbartok@novell.com>
29650
29651         * Form.cs: Removed debug output
29652         * Button.cs: Added support for DoubleClick method
29653
29654 2005-01-18  Peter Bartok  <pbartok@novell.com>
29655
29656         * Form.cs:
29657           - Added method to parent window that allows triggering size
29658             calculations when a menu is added/removed
29659           - set_Menu: Cleaned up mess from early days of Form and Control,
29660             now properly triggers a recalc when a menu is added/removed
29661           - Added case to select form itself as focused form if no child
29662             controls exist
29663           - Added PerformLayout call when showing dialog, to ensure properly
29664             placed controls
29665         * Control.cs:
29666           - Select(): Made internal so Form can access it
29667           - Focus(): Only call Xplat layer if required (avoids loop), and sets
29668             status
29669         * Application.cs (Run): Removed hack and calls PerformLayout instead
29670           to trigger calculation when Form becomes visible
29671
29672 2005-01-18  Jordi Mas i Hernandez <jordi@ximian.com>
29673
29674         * ComboBox.cs: fixes for ownerdraw
29675
29676 2005-01-18  Peter Bartok  <pbartok@novell.com>
29677
29678         * TextControl.cs:
29679           - Sentinel is no longer static, each Document gets it's own, this
29680             avoids locking or alternatively overwrite problems when more
29681             than one text control is used simultaneously.
29682           - Switched to use Hilight and HilightText brushes for text selection
29683
29684         * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
29685
29686 2005-01-18  Peter Bartok  <pbartok@novell.com>
29687
29688         * Control.cs:
29689           - Hooked up the following events:
29690                 o ControlAdded
29691                 o ControlRemoved
29692                 o HandleDestroyed
29693                 o ImeModeChanged
29694                 o ParentChanged
29695                 o TabStopChanged
29696                 o Invalidated
29697                 o SystemColorsChanged
29698                 o ParentFontChanged
29699                 o Move
29700           - Removed debug output
29701           - Added a call to the current theme's ResetDefaults when a color change
29702             is detected
29703         * Form.cs: Now setting the proper ImeMode
29704         * Theme.cs: Defined a method to force recreation of cached resources
29705           and rereading of system defaults (ResetDefaults())
29706         * ThemeWin32Classic.cs: Added ResetDefaults() stub
29707
29708 2005-01-17  Peter Bartok  <pbartok@novell.com>
29709
29710         * Control.cs: Added missing attributes
29711
29712 2005-01-17  Jackson Harper  <jackson@ximian.com>
29713
29714         * TreeNode.cs: Implement editing. Add missing properties selected
29715         and visible.
29716         * TreeView.cs: Implement node editing. Also some fixes to use
29717         Invalidate (invalid area) instead of Refresh when selecting.
29718
29719 2005-01-17  Peter Bartok  <pbartok@novell.com>
29720
29721         * Control.cs:
29722           - Implemented InvokeGotFocus() method
29723           - Implemented InvokeLostFocus() method
29724           - Implemented InvokePaint() method
29725           - Implemented InvokePaintBackground() method
29726           - Implemented InvokeClick() method
29727           - Implemented FindForm() method
29728           - Implemented RectangleToClient() method
29729           - Implemented ClientToRectangle() method
29730           - Implemented ResetBackColor() method
29731           - Implemented ResetCursor() method
29732           - Implemented ResetFont() method
29733           - Implemented ResteForeColor() method
29734           - Implemented ResetImeMode() method
29735           - Implemented ResetLeftToRight() method
29736           - Implemented ResetText() method
29737           - Implemented Scale() methods
29738           - Implemented ScaleCore() method
29739           - Implemented Update() method
29740           - Removed unused variables
29741           - Stubbed AccessibilityNotifyClients and
29742             ControlAccessibleObject.NotifyClients() methods (dunno what to do
29743             with those yet)
29744           - Now setting proper default for RightToLeft property
29745           - Fixed bug in SetClientSizeCore that would cause windows to get
29746             really big
29747           - Now sending Click/DoubleClick events
29748           - Now selecting controls when left mouse button is clicked on
29749             selectable control
29750         * AccessibleEvents.cs: Added
29751         * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
29752         * XplatUIOSX.cs: Stubbed UpdateWindow() method
29753         * XplatUIWin32.cs: Implemented UpdateWindow() method
29754         * XplatUIX11.cs: Implemented UpdateWindow() method
29755         * Form.cs: Removed stray semicolon causing CS0162 warning
29756         * ThemeWin32Classic.cs: Fixed unused variable warnings
29757         * ScrollableControl.cs: Now calls base method for ScaleCore
29758         * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
29759           style to avoid interference with internal click handler (which is
29760           different than standard Control click handling)
29761         * RadioButton.cs:
29762           - Now unchecks all sibling radio buttons when control is
29763             selected (Fixes #68756)
29764           - Removed internal tabstop variable, using the one inherited from
29765             Control
29766
29767 2005-01-17  Jackson Harper  <jackson@ximian.com>
29768
29769         * NavigateEventArgs.cs: Fix base type.
29770         * LinkLabel.cs: Sig fix
29771         
29772 2005-01-17  Jackson Harper  <jackson@ximian.com>
29773
29774         * TreeView.cs: Only invalidate the effected nodes bounds when
29775         selecting nodes.
29776
29777 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
29778
29779         * XplatUIWin32.cs: fixes Win32 marshaling
29780         * XplatUIX11.cs: fixes method signature
29781
29782 2005-01-17  Peter Bartok  <pbartok@novell.com>
29783
29784         * XplatUIX11.cs: Clean up resources when we no longer need them
29785
29786 2005-01-17  Peter Bartok  <pbartok@novell.com>
29787
29788         * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
29789           OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
29790           and DestroyCursor() methods.
29791         * Cursor.cs: Partially implemented, now supports standard cursors;
29792           still contains some debug code
29793         * Cursors.cs: Implemented class
29794         * Control.cs:
29795           - WndProc(): Added handling of WM_SETCURSOR message, setting the
29796             appropriate cursor
29797           - Implemented Cursor property
29798           - Replaced break; with return; more straightforwar and possibly
29799             faster
29800           - Now properly setting the result for WM_HELP
29801         * X11Structs.cs: Added CursorFontShape enum
29802         * XplatUIStructs.cs:
29803           - Added StdCursor enum (to support DefineStdCursor() method)
29804           - Added HitTest enum (to support sending WM_SETCURSOR message)
29805         * XplatUIX11.cs:
29806           - Now sends the WM_SETCURSOR message
29807           - Implemented new cursor methods
29808         * XplatUIOSX.cs: Stubbed new cursor methods
29809         * XplatUIWin32.cs:
29810           - Implemented new cursor methods
29811           - Added GetSystemMetrics function and associated enumeration
29812
29813 2005-01-15  Peter Bartok  <pbartok@novell.com>
29814
29815         * Control.cs:
29816           - WndProc(): Now handles EnableNotifyMessage
29817           - SelectNextControl(): Fixed bug where if no child or sibling
29818             controls exist we looped endlessly
29819
29820 2005-01-14  Jackson Harper  <jackson@ximian.com>
29821
29822         * TreeView.cs: Recalculate the tab pages when a new one is added
29823         so that the proper bounding rects are created.
29824
29825 2005-01-14  Jackson Harper  <jackson@ximian.com>
29826
29827         * TreeView.cs: Draw a gray box instead of a grip in the lower
29828         right hand corner when there are both horizontal and vertical
29829         scroll bars.
29830
29831 2005-01-14  Jackson Harper  <jackson@ximian.com>
29832
29833         * Control.cs: When erasing backgrounds use FromHwnd instead of
29834         FromHdc when there is a NULL wparam. This occurs on the X driver.
29835         * XplatUIX11.cs: Set the wparam to NULL.
29836
29837 2005-01-13  Jackson Harper  <jackson@ximian.com>
29838
29839         * PictureBox.cs: Implement missing methods (except ToString, need
29840         to test that on windows) and events. When visibility is changed we
29841         need to redraw the image because the buffers are killed. When size
29842         is changed refresh if the sizemode needs it.
29843
29844 2005-01-13  Peter Bartok  <pbartok@novell.com>
29845
29846         * Control.cs (SelectNextControl): Was using wrong method to select
29847           a control
29848
29849 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
29850
29851         * ComboBox.cs: fixes dropstyle
29852
29853 2005-01-13  Peter Bartok  <pbartok@novell.com>
29854
29855         * Form.cs:
29856           - Implemented Select() override
29857           - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
29858           - Now sets keyboard focus on startup
29859         * Control.cs (SelectNextControl): Now properly handles directed=true
29860         * TextBoxBase.cs:
29861           - WndProc: Now passes tab key on to base if AcceptTabChar=false
29862           - Added (really bad) focus rectangle (mostly for testing)
29863         * TextBox.cs: Added code to handle getting/loosing focus and invalidating
29864           to enforce redraw on focus changes
29865         * ContainerControl.cs:
29866           - Fixed detection of Shift-Tab key presses
29867           - Fixed traversal with arrow keys
29868         * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
29869           gonna keep this or if it's complete yet
29870         
29871 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
29872
29873         * ComboBox.cs: missing properties, fixes
29874
29875 2005-01-13  Peter Bartok  <pbartok@novell.com>
29876
29877         * Panel.cs (ctor): Setting Selectable window style to off
29878         * Splitter.cs (ctor): Setting Selectable window style to off
29879         * GroupBox.cs (ctor): Setting Selectable window style to off
29880         * Label.cs (ctor): Setting Selectable window style to off
29881
29882 2005-01-12  Miguel de Icaza  <miguel@ximian.com>
29883
29884         * UpDownBase.cs (InitTimer): If the timer has been already
29885         created, enable it.
29886
29887         Use a TextBox instead of a Label.
29888
29889 2005-01-12  Jackson Harper  <jackson@ximian.com>
29890
29891         * TreeView.cs: Refresh the tree after sorting the nodes. Always
29892         draw the connecting node lines (when ShowLines is true).
29893         * TreeNode.cs: The nodes index can now be updated. This is used
29894         when a node collection is sorted.
29895         * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
29896         insert or an existing unsorted node collection can be sorted.
29897         
29898 2005-01-12  Peter Bartok  <pbartok@novell.com>
29899
29900         * ContainerControl.cs: Implemented ProcessDialogKeys()
29901
29902 2005-01-12  Peter Bartok  <pbartok@novell.com>
29903
29904         * Control.cs:
29905           - Implemented SelectNextControl() method
29906           - Several focus related bug fixes
29907           - Fixed Docking calculations to match MS documentation and
29908             behaviour
29909
29910 2005-01-12  Jordi Mas i Hernandez <jordi@ximian.com>
29911
29912         * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
29913         bug fixes
29914
29915 2005-01-12  Peter Bartok  <pbartok@novell.com>
29916
29917         * Control.cs:
29918           - Fixed broken Contains() method
29919           - Implemented GetNextControl() method. Finally. This is the pre-
29920             requisite for focus handling.
29921
29922 2005-01-12  Peter Bartok  <pbartok@novell.com>
29923
29924         * OSXStrucs.cs: Added
29925
29926 2005-01-12  Peter Bartok  <pbartok@novell.com>
29927
29928         * XplatUIWin32.cs:
29929           - Removed PeekMessageFlags
29930           - Implemented SetWindowStyle() method
29931         * XplatUIStructs.cs: Added PeekMessageFlags
29932         * X11Structs: Added missing border_width field to XWindowChanges struct
29933         * XplatUIX11.cs:
29934           - PeekMessage: Now throws exception if flags which are not yet
29935             supported are passed
29936           - Implemented SetWindowStyle() method
29937           - Fixed SetZOrder to handle AfterHwnd properly
29938         * XplatUI.cs: Added SetWindowStyle() method
29939         * XplatUIDriver.cs: Added SetWindowStyle() abstract
29940         * Control.cs:
29941           - Implemented UpdateStyles() method
29942           - Implemented UpdateZOrder() method
29943         * XplatUIOSX.cs: Added SetWindowStyle() stub
29944
29945 2005-01-12  Geoff Norton  <gnorton@customerdna.com>
29946
29947         * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
29948         button mouse).
29949
29950
29951 2005-01-11  Jackson Harper  <jackson@ximian.com>
29952
29953         * TreeView.cs: Still need to draw lines to siblings even if out of
29954         the current node is out of the clip.
29955
29956 2005-01-11  Jackson Harper  <jackson@ximian.com>
29957
29958         * TreeView.cs: When setting the hbar/vbar/grip position use
29959         SetBounds so that perform layout is only called once. Also suspend
29960         and resume layout so layout is only done once for all controls.
29961         - Removed some debug fluff
29962         * SizeGrip.cs: Call base implmentation in overriding methods.
29963         - When visibility is changed the drawing buffers are killed so we
29964         need to redraw.
29965
29966 2005-01-11  Jackson Harper  <jackson@ximian.com>
29967
29968         * TreeView.cs: Calculate the open node count while drawing. This
29969         saves us an entire tree traversal for every paint operation. Use
29970         a member var for the open node count so less vars are passed around.
29971
29972 2005-01-11  John BouAntoun  <jba-mono@optusnet.com.au>
29973
29974         * MonthCalendar.cs:
29975         - fixed selection to use mousemove, not mouse polling on timer
29976         * ThemeWin32Classic.cs
29977         - removed redundant unused variable "no_more_content"
29978         
29979 2005-01-11  Peter Bartok  <pbartok@novell.com>
29980
29981         * XplatUIX11.cs (DoEvents): Needs to return when no more events
29982           are pending, so it now calls PeekMessage instead of GetMessage;
29983           implemented a incomplete version of PeekMessage
29984         
29985 2005-01-11  Peter Bartok  <pbartok@novell.com>
29986
29987         * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
29988           I18n issues
29989         * TextBoxBase.cs: Added sending of TextChanged event
29990
29991 2005-01-10  Jackson Harper  <jackson@ximian.com>
29992
29993         * TreeView.cs: Try not to draw outside the clipping rectangle on
29994         each node element.
29995
29996 2005-01-10  Jordi Mas i Hernandez <jordi@ximian.com>
29997
29998         * ComboBox.cs: keyboard navigation, item navigation, bug fixes
29999
30000 2005-01-10  Jackson Harper  <jackson@ximian.com>
30001
30002         * TreeView.cs:
30003         - Implement fast scrolling. Now only the newly
30004         exposed nodes are drawn and the old image is moved using the
30005         XplatUI::ScrollWindow method.
30006         - Factor in height of nodes when calculating whether or not the
30007         node is in the clipping rect.
30008
30009 2005-01-10  Jackson Harper  <jackson@ximian.com>
30010
30011         * TreeNodeCollection.cs: Refresh the tree when a new node is added.
30012
30013 2005-01-10  Peter Bartok  <pbartok@novell.com>
30014
30015         * Application.cs: Added temporary hack to resolve all our resize
30016           required issues on startup. This will get fixed properly at
30017           some point in the future
30018
30019 2005-01-10  Jackson Harper  <jackson@ximian.com>
30020
30021         * SizeGrip.cs: New internal class that is used as a sizing
30022         grip control...hence the name.
30023
30024 2005-01-10  Peter Bartok  <pbartok@novell.com>
30025
30026         * Control.cs: Implemented proper TabIndex handling, now assigning
30027           a tabindex when a control is added to a container
30028         * GroupBox.cs (ctor): Now sets the Container style bit, required
30029           for Control.GetNextControl()
30030
30031 2005-01-09  Jackson Harper  <jackson@ximian.com>
30032
30033         * TextBoxBase.cs: Clear window when scrolling (fixes build).
30034
30035 2005-01-09  Peter Bartok <pbartok@novell.com>
30036
30037         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
30038           XplatUIX11.cs: Added ability to control ScrollWindow expose and
30039           an overload for ScrollWindow to allow only scrolling a rectangle
30040
30041 2005-01-09  Peter Bartok <pbartok@novell.com>
30042
30043         * Form.cs:
30044           - Implemented SetDesktopBounds method
30045           - Implemented SetDesktopLocation method
30046
30047 2005-01-08  Jackson Harper  <jackson@ximian.com>
30048
30049         * TreeView.cs: Only set the vbar's Maximum and LargeChange when
30050         the node count has changed, this removes to VScroll::Refresh calls
30051         when drawing.
30052
30053 2005-01-08  Geoff Norton  <gnorton@customerdna.com>
30054
30055         * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
30056
30057 2005-01-07  Jackson Harper  <jackson@ximian.com>
30058
30059         * TreeNode.cs: Just update the single node when it is
30060         checked. Don't refresh after toggling, the Expand/Collapse already
30061         handles this.
30062         * TreeView.cs: Respect clipping a little more when drawing. Try
30063         not to redraw things that don't need to be redrawn. Just hide the
30064         scrollbars when they are no longer needed instead of removing
30065         them, so they don't have to be created again and again.
30066         
30067 2005-01-07  Geoff Norton  <gnorton@customerdna.com>
30068
30069         * XplatUIOSX.cs (SetCaretPos):  We need to translate the view
30070         coordinates to window space to place the caret properly, FIXED.
30071         Implement GetWindowState & SetWindowState
30072
30073 2005-01-06  Peter Bartok <pbartok@novell.com>
30074
30075         * Form.cs:
30076           - Implemented ClientSize property
30077           - Implemented DesktopBounds property
30078           - Implemented DesktopLocation property
30079           - Implemented IsRestrictedWindow property
30080           - Implemented Size property
30081           - Implemented TopLevel property
30082           - Implemented FormWindowState property
30083         * Control.cs:
30084           - Implemented GetTopLevel() method
30085           - Implemented SetTopLevel() method
30086         * X11Structs.cs (Atom):
30087           - Added AnyPropertyType definition
30088           - Added MapState definiton and updated XWindowAttribute struct
30089         * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
30090         * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
30091         * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
30092         * XplatUIWin32.cs:
30093           - Implemented GetWindowState() and SetWindowState() methods
30094           - Fixed Win32GetWindowLong return type
30095         * XplatUIX11.cs:
30096           - Introduced central function for sending NET_WM messages
30097           - Implemented GetWindowState() and SetWindowState() methods
30098         * TextBoxBase.cs (set_Lines):
30099           - Now uses Foreground color for text added via Text property (Duh!)
30100           - Added code to remember programmatically requested size (fixes
30101             behaviour when Multiline is set after Size)
30102           - Added AutoSize logic
30103
30104 2005-01-06  Jackson Harper  <jackson@ximian.com>
30105
30106         * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
30107
30108 2005-01-06  Jackson Harper  <jackson@ximian.com>
30109
30110         * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
30111         set to less then 0.
30112
30113 2005-01-06  Jackson Harper  <jackson@ximian.com>
30114
30115         * ScrollableControl.cs: Lazy init the scrollbars.
30116         
30117 2005-01-06  Jackson Harper  <jackson@ximian.com>
30118
30119         * Theme.cs: Speed up getting pens and solid brushes, by using
30120         their ARGB as a hash instead of tostring and not calling Contains.
30121
30122 2005-01-06  Peter Bartok <pbartok@novell.com>
30123
30124         * Form.cs:
30125           - Implemented OnActivated and OnDeactivate event trigger
30126           - Implemented Activate() method
30127           - Fixed ShowDialog() to activate the form that was active before
30128             the dialog was shown
30129         * XplatUIX11.cs:
30130           - Added global active_window var that tracks the currently active
30131             X11 window
30132           - Now always grabs Property changes from the root window to always
30133             catch changes on the active window property
30134           - Added code to PropertyNotify handler to send Active/Inactive
30135             messages when state changes. This puts X11 and Win32 en par on
30136             WM_ACTIVATE notifications (except for double notifications when
30137             the user clicks away from our modal window to another one of our
30138             windows)
30139
30140 2005-01-05  Jackson Harper  <jackson@ximian.com>
30141
30142         * ImageList.cs: Implment ctor
30143
30144 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
30145
30146         * XplatUIOSX.cs: Implement Activate/SetTopmost
30147
30148 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
30149
30150         * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
30151
30152 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
30153
30154         * XplatUIOSX.cs: Implement GetActive/SetFocus.
30155
30156 2005-01-05  Peter Bartok <pbartok@novell.com>
30157
30158         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
30159           XplatUIOSX.cs: Added GetActive method to return the currently
30160           active window for the application (or null, if none is active)
30161         * Form.cs:
30162           - Implemented ActiveForm
30163           - Commented out owner assignment for modal dialogs (causes problems
30164             on Win32, since the owner will be disabled)
30165           - Reworked some Active/Focus handling (still incomplete)
30166         * CommonDialog.cs: Commented out owner assignment for modal dialogs
30167           (causes problems on Win32, since the owner will be disabled)
30168         * IWin32Window: Added ComVisible attribute
30169
30170 2005-01-05  Peter Bartok <pbartok@novell.com>
30171
30172         * ToolTip.cs (WndProc): Enable setting focus now that we have the
30173           required XplatUI functions.
30174
30175 2005-01-05  Peter Bartok <pbartok@novell.com>
30176
30177         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
30178           XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
30179           to implement focus and activation handling; still incomplete and
30180           with debug output
30181
30182 2005-01-04  Peter Bartok <pbartok@novell.com>
30183
30184         * TextBoxBase.cs: Changed access level for Document property to
30185           match switch to internal for TextControl
30186
30187 2005-01-04  Peter Bartok <pbartok@novell.com>
30188
30189         * AccessibleObject: Added ComVisible attribute
30190
30191 2005-01-04  Jackson Harper  <jackson@ximian.com>
30192
30193         * X11Keyboard.cs: Remove unneeded var.
30194
30195 2005-01-04  Jackson Harper  <jackson@ximian.com>
30196
30197         * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
30198         but PAINT.
30199         * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
30200         ClientMessage. This makes apps exit cleanly (more often).
30201         
30202 2005-01-04  Jackson Harper  <jackson@ximian.com>
30203
30204         * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
30205         handling focus, return correct colors and fonts,
30206         * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
30207         handle selection, horizontal scrolling, and mouse interaction.
30208
30209 2005-01-04  Peter Bartok <pbartok@novell.com>
30210
30211         * ICommandExecutor.cs: Added
30212         * IDataGridColumnStyleEditingNotificationService.cs: Added
30213         * IFeatureSupport.cs: Added
30214         * IFileReaderService.cs: Added
30215         * IDataObject.cs: Added ComVisible attribute
30216         * AmbientProperties.cs: Added
30217         * BaseCollection.cs: Added missing attributes
30218         * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
30219         * BaseCollection.cs: Added missing attributes
30220         * Binding.cs: Added TypeConverter attribute
30221         * BindingContext.cs: Added DefaultEvent attribute
30222         * BindingsCollection.cs: Added DefaultEvent attribute
30223         * Button.cs: Added DefaultValue attribute
30224         * DragEventArgs.cs: Added ComVisible attribute
30225         * GiveFeedbackEventArgs.cs: Added ComVisible attribute
30226         * KeyEventArgs.cs: Added ComVisible attribute
30227         * KeyPressEventArgs.cs: Added ComVisible attribute
30228         * MouseEventArgs.cs: Added ComVisible attribute
30229         * NavigateEventArgs.cs: Added
30230         * NavigateEventHandler.cs: Added
30231         * FeatureSupport.cs: Added
30232         * OSFeature.cs: Added
30233         * Theme.cs: Added abstract Version property to support OSFeature
30234         * ThemeWin32Classic.cs: Added Version property to
30235           support OSFeature.Themes
30236         * ProgressBar.cs: Removed OnPaintBackground override, not required since
30237           the proper styles to avoid background drawing are set, also doesn't
30238           match MS signature
30239         * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
30240         * QueryContinueDragEventArgs.cs: Added ComVisible attribute
30241         * ScrollEventArgs.cs: Added ComVisible attribute
30242         * SplitterEventArgs.cs: Added ComVisible attribute
30243         * AccessibleSelection.cs: Added Flags attribute
30244         * Appearance.cs: Added ComVisible attribute
30245         * Border3DSide.cs: Added ComVisible attribute
30246         * Border3DStyle.cs: Added ComVisible attribute
30247         * BorderStyle.cs: Added ComVisible attribute
30248         * DragAction.cs: Added ComVisible attribute
30249         * ErrorBlinkStyle.cs: Added
30250         * ScrollEventType.cs: Added ComVisible attribute
30251         * AnchorStyles.cs: Added Editor attribute
30252         * DockStyle.cs: Added Editor attribute
30253         * HorizontalAlignment.cs: Added ComVisible attribute
30254         * HelpEventArgs.cs: Added ComVisible attribute
30255         * PaintEventArgs.cs: Added IDisposable
30256
30257 2005-01-04  Peter Bartok <pbartok@novell.com>
30258
30259         * TextControl.cs: Switched Line, LineTag and Document classes to
30260           internal
30261
30262 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
30263
30264         * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
30265         Simple mode, fixes, IntegralHeight, etc.
30266
30267 2005-01-04  Peter Bartok <pbartok@novell.com>
30268
30269         * TextBoxBase.cs: Using proper font variable now
30270
30271 2005-01-04  Peter Bartok <pbartok@novell.com>
30272
30273         * Form.cs (ShowDialog): Set parent to owner, if provided
30274         * GroupBox.cs: Removed unused vars
30275         * TextControl.cs:
30276           - Added GetHashCode() for Document and LineTag classes
30277           - Removed unused variables
30278           - Added CharIndexToLineTag() and LineTagToCharIndex() methods
30279             to allow translation between continuous char position and line/pos
30280         * CheckBox.cs: Removed vars that are provided by base class
30281         * RadioButton.cs: Removed vars that are provided by base class, added
30282           new keyword where required
30283         * LinkLabel.cs: Added new keyword where required
30284         * Control.cs (WndProc): Removed unused variable
30285         * TextBoxBase.cs:
30286           - Finished SelectionLength property
30287           - Implemented SelectionStart property
30288           - Implemented Text property
30289           - Removed unused vars
30290         * MessageBox.cs: Added new keyword where required
30291         * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
30292           WndProc signature
30293         * MenuAPI.cs: Added new keyword where required
30294         * ButtonBase.cs: Removed vars that are provided by base class, added
30295           new keyword where required
30296         * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
30297           argument to double, to allow compiling with csc 2.0 (Atsushi ran
30298           into this)
30299         * Application.cs (Run): Now triggers the ThreadExit event
30300         * CommonDialog.cs: Added new keyword where required; now properly sets
30301           parent (owner) for dialog
30302         * XplatUIX11.cs: Commented out unused vars
30303         * StatusBar.cs: Fixed signature for Text property
30304         * TabPage.cs: Undid Jordi's removal of unused var, now using the var
30305
30306 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
30307
30308         * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
30309         TrackBar.cs, MonthCalendar.cs: remove unused vars
30310
30311 2005-01-03  Jackson Harper  <jackson@ximian.com>
30312
30313         * ThemeWin32Classic.cs:
30314         * X11Keyboard.cs: Remove unused vars.
30315
30316 2005-01-03  Peter Bartok  <pbartok@novell.com>
30317
30318         * TextBox.cs:
30319           - set_Text: Tied into TextControl
30320           - set_TextAlignment: Tied into TextControl
30321         * TextControl.cs:
30322           - Added alignment properties and implemented alignment handling
30323             and drawing (still has a bug, not generating proper expose events)
30324           - Added new Line() constructor to allow passing the line alignment
30325           - Fixed selection setting, properly handling end<start now
30326           - Added aligment considerations to RecalculateDocument()
30327         * TextBoxBase.cs:
30328           - Now properly enforces control height for single line controls
30329           - Added support for CharacterCasing
30330           - Added IsInputKey override
30331           - Fixed Keys.Enter logic
30332           - Added SetBoundsCore override
30333           - Fixed mouse selection handling
30334
30335 2005-01-03  Jackson Harper  <jackson@ximian.com>
30336
30337         * TreeView.cs:
30338           - Collapse and uncheck all nodes when CheckBoxes is disabled.
30339           - Checkboxes are always aligned to the bottom of the node,
30340           regardless of item height.
30341           - Use the node bounds to draw the text so we can center it when
30342           the item height is greater then the font height.
30343           - Node::Bounds are only the text part of the node.
30344         * TreeNode.cs: New method to combine collapsing and unchecking all
30345           nodes recursively.
30346
30347 2005-01-02  Jackson Harper  <jackson@ximian.com>
30348
30349         * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
30350         * TreeNode.cs: Add a bounding box for the checkbox, refresh the
30351         tree when a check is changed. TODO: Only refresh the checked node.
30352
30353 2004-12-30  Jackson Harper  <jackson@ximian.com>
30354
30355         * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
30356         * TreeNode.cs: When collapsing make sure to never collapse the
30357         root node.
30358
30359 2004-12-29  Jackson Harper  <jackson@ximian.com>
30360
30361         * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
30362         
30363 2004-12-28  Zoltan Varga  <vargaz@freemail.hu>
30364
30365         * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
30366
30367 2004-12-28  Peter Bartok  <pbartok@novell.com>
30368
30369         * MessageBox.cs (get_CreateParams): Don't use owner var if it's
30370           not yet assigned
30371
30372 2004-12-28  Peter Bartok  <pbartok@novell.com>
30373
30374         * Control.cs (WndProc): Added WM_HELP handler, now generates
30375           HelpRequested event
30376         * Form.cs: Added HelpButton property and required support code
30377         * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
30378
30379 2004-12-28  Peter Bartok  <pbartok@novell.com>
30380
30381         * CommonDialog.cs:
30382           - Made DialogForm.owner variable internal
30383           - Added check to ensure owner form is set before setting
30384             owner properties in CreateParams
30385
30386 2004-12-28  Geoff Norton  <gnorton@customerdna.com>
30387
30388         * XplatUIOSX.cs: Implement mouse hovering.  Fix QDPoint struct to avoid
30389           swizzling.  Implement ClientToScreen and ScreenToClient.  Implement
30390           GetCursorPos.  Fix major visibility issues.  Rework the windowing
30391           system to support borderless/titleless windows (implements menus).
30392           Fix GetWindowPos.  Implement initial background color support for
30393           views.
30394
30395 2004-12-28  Peter Bartok  <pbartok@novell.com>
30396
30397         * Form.cs (get_CreateParams): Make sure we have an owner before using
30398           the owner variable. Implement proper default if no owner exists
30399
30400 2004-12-28  Peter Bartok  <pbartok@novell.com>
30401
30402         * In preparation for making Managed.Windows.Forms the default build target
30403           for System.Windows.Forms, the following stubbed files were added.
30404           Dialogs are currently being implemented by contributors and are only
30405           short-term place holders.
30406         * ColorDialog.cs: Initial check-in (minmal stub)
30407         * DataGrid.cs: Initial check-in (minimal stub)
30408         * DataGridLineStyle.cs: Initial check-in (minimal stub)
30409         * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
30410         * DataGridTableStyle.cs: Initial check-in (minimal stub)
30411         * FontDialog.cs: Initial check-in (minimal stub)
30412         * FileDialog.cs: Initial check-in (minimal stub)
30413         * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
30414         * GridTableStylesCollection.cs: Initial check-in (minimal stub)
30415         * OpenFileDialog: Initial check-in (minimal stub)
30416         * IComponentEditorPageSite.cs: Initial check-in
30417         * Splitter.cs: Initial check-in (for Jackson)
30418         * SplitterEventArgs.cs: Initial check-in (for Jackson)
30419         * SplitterEventHandler.cs: Initial check-in (for Jackson)
30420         * TextBox.cs: Initial check-in; still needs some wiring to
30421           TextControl backend
30422         * Form.cs: Implemented ControlBox property
30423         * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
30424         * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
30425         * TextControl.cs: Added selection functionality; added todo header
30426         * TextBoxBase.cs:
30427           - Implemented Lines property
30428           - Implemented TextHeight property
30429           - Implemented SelectedText property
30430           - Implemented SelectionLength property
30431           - Implemented SelectAll method
30432           - Implemented ToString method
30433           - Removed and cleaned up some debug code
30434           - Implemented (still buggy) mouse text selection
30435
30436 2004-12-27  Jordi Mas i Hernandez <jordi@ximian.com>
30437
30438         * ComboBox.cs: Complete DropDownList implementation, fixes.
30439
30440 2004-12-26  Jordi Mas i Hernandez <jordi@ximian.com>
30441
30442         * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
30443         * ComboBoxStyle.cs: ComboBoxStyle enum
30444         * ComboBox.cs: Initial work on ComboBox control
30445
30446 2004-12-21  Peter Bartok  <pbartok@novell.com>
30447
30448         * Control.cs (ctor, CreateParams): Moved setting of is_visible
30449           forward so that anything that creates a window gets the default,
30450           also no longer uses Visible property in CreateParams to avoid
30451           walking up the parent chain and possibly get the wrong visible
30452           status. Fixed IsVisible to no longer walk up to the parent.
30453
30454 2004-12-21  Peter Bartok  <pbartok@novell.com>
30455
30456         * Form.cs (ShowDialog): Unset modality for the proper window
30457  
30458 2004-12-20  Peter Bartok  <pbartok@novell.com>
30459
30460         * CommonDialog.cs: Initial check-in
30461
30462 2004-12-20  Peter Bartok  <pbartok@novell.com>
30463
30464         * Control.cs (Visible): Now uses the parent window instead of the
30465           client area window for the property
30466
30467         * Form.cs
30468           - ShowDialog(): Now uses the proper window for modality
30469           - The default visibility state for the form parent is now false. This
30470             will prevent the user from seeing all the changes to the form and
30471             its controls before the application hits Application.Run()
30472           - Removed some stale commented out code
30473
30474         * NativeWindow.cs:
30475           - Added FindWindow() method to have a method to check for existence
30476             of a window handle
30477           - Added ability to override default exception handling (for example
30478             when debugging with VS.Net; to do this the ExternalExceptionHandler
30479             define must be set
30480           - Removed some useless debug output
30481
30482         * XplatUIX11.cs:
30483           - Removed r37929 (SetModal patch from Ashwin Bharambe), was
30484             not working as expected
30485           - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
30486             property to allow switching back to the modal window if focus is
30487             given to another one of our windows (Application Modal)
30488           - Now only sets override_redirect if we create a window
30489             without WS_CAPTION
30490           - Moved EventMask selection before mapping of newly created window
30491             so we can catch the map event as well
30492           - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
30493           - Added various Atom related DllImports
30494           - Implemented Exit() method
30495           - .ctor() : No longer shows window if WS_VISIBLE is not defined
30496             in the CreateParams
30497
30498         * MessageBox.cs: Now properly deals with the FormParent window by
30499           providing an override the FormParent CreateParams property to
30500           set as POPUP instead of OVERLAPPED window.
30501
30502 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
30503
30504         * XplatUIOSX.cs: Implement DestroyWindow.  Implement ScrollWindow
30505         Minor code cleanup.
30506
30507 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
30508         
30509         * XplatUIOSX.cs (SetModal): Implement this method on OSX.
30510
30511 2004-12-18  Peter Bartok  <pbartok@novell.com>
30512
30513         * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
30514           implementing SetModal() method
30515
30516 2004-12-18  Peter Bartok  <pbartok@novell.com>
30517
30518         * X11Structs.cs (XGCValues): Fixed type of function element
30519         * XplatUI.cs: Added ScrollWindow() method
30520         * XplatUIDriver.cs: Added ScrollWindow() abstract
30521         * XplatUIWin32.cs: Implemented ScrollWindow() method
30522         * XplatUIX11.cs: Implemented ScrollWindow() method
30523         * XplatUIOSX.cs: Stubbed out ScrollWindow() method
30524
30525 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
30526
30527         * XplatUIOSX.cs:  Fix cursor to use an Invert instead of drawing it
30528         Some more keyboard support (INCOMPLETE)
30529
30530 2004-12-17  Peter Bartok  <pbartok@novell.com>
30531
30532         * TextControl.cs:
30533         - Added color attribute to line tags.
30534         - Added color argument to all functions dealing with tags
30535         - Added color argument support to various functions
30536         - Fixed miss-calculation of baseline/shift in certain circumstances
30537
30538         * TextBoxBase.cs: Added new color option to test code
30539
30540 2004-12-17  Jackson Harper  <jackson@ximian.com>
30541
30542         * TreeNode.cs:
30543         * MonthCalendar.cs: Signature fixes
30544
30545 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
30546
30547         * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
30548         keyboard event moved it.  Create a new graphics context for each paint resolves this
30549
30550 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
30551
30552         * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
30553         Make caret exist and go blink blink.  Initial keyboard support.
30554         Fix exception handler, Add Invalidate support.  Change way RefreshWindow
30555         works.
30556
30557 2004-12-17  Jackson Harper  <jackson@ximian.com>
30558
30559         * XplatUIStructs.cs: Updated set of virtual keycodes.
30560         * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
30561
30562 2004-12-17  Jackson Harper  <jackson@ximian.com>
30563
30564         * XplatUIX11.cs: Prune old keyboard code.
30565
30566 2004-12-17  Jackson Harper  <jackson@ximian.com>
30567
30568         * XplatUIX11.cs: When generating mouse wparams get the modifier
30569         keys from the ModifierKeys property.
30570
30571 2004-12-17  Jackson Harper  <jackson@ximian.com>
30572
30573         * X11Keyboard.cs: Send up/down input when generating
30574         messages. Remove some unused vars.
30575
30576 2004-12-17  Jackson Harper  <jackson@ximian.com>
30577
30578         * TabControl.cs:
30579         * TreeView.cs: get rid of warnings.
30580
30581 2004-12-17  Jackson Harper  <jackson@ximian.com>
30582
30583         * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
30584
30585 2004-12-17  Jordi Mas i Hernandez <jordi@ximian.com>
30586
30587         * ListBox.cs: bug fixes, changes for CheckedListBox.cs
30588           CheckedListBox.cs: Implementation
30589
30590 2004-12-17  Peter Bartok  <pbartok@novell.com>
30591
30592         * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
30593
30594 2004-12-16  Peter Bartok  <pbartok@novell.com>
30595
30596         * TextControl.cs:
30597           - InsertCharAtCaret(): Fixed start pos fixup
30598           - CaretLine_get: No longer derives the line from the tag, the tag
30599             could be stale if lines in the document have been added or deleted
30600           - RebalanceAfterDelete(): Fixed bug in balancing code
30601           - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
30602           - Line.Streamline(): Now can also elminate leading empty tags
30603           - DumpTree(): Added a few more tests and prevented exception on
30604             uninitialized data
30605           - Added Debug section for Combining lines
30606           - Delete(): Now copies all remaining properties of a line
30607           
30608         * TextBoxBase.cs:
30609           - Left mousebutton now sets the caret (and middle button still acts
30610             as formatting tester, which must go away soon)
30611           - Added Debug section for Deleting/Combining lines
30612           - Fixed calculations for UpdateView after Combining lines
30613
30614 2004-12-16  Peter Bartok  <pbartok@novell.com>
30615
30616         * TextControl.cs: Now properly aligns text on a baseline, using the
30617           new XplatUI.GetFontMetrics() method. Simplified several calculations
30618         * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
30619           defined
30620
30621 2004-12-16  Peter Bartok  <pbartok@novell.com>
30622
30623         * XplatUI.cs: Added GetFontMetrics() method
30624         * XplatUIDriver.cs: Added GetFontMetrics() abstract
30625         * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
30626           into libgdiplus, our private GetFontMetrics function
30627         * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
30628         * XplatUIWin32.cs: Implemented GetFontMetrics() method
30629
30630 2004-12-16  Jackson Harper  <jackson@ximain.com>
30631
30632         * XplatUIStruct.cs: Add enum for dead keys
30633         * X11Keyboard.cs: Map and unmap dead keys.
30634
30635 2004-12-16  Jackson Harper  <jackson@ximian.com>
30636
30637         * X11Keyboard.cs: Detect and use the num lock mask.
30638
30639 2004-12-16  Peter Bartok  <pbartok@novell.com>
30640
30641         * Control.cs (CreateGraphics): Added check to make sure the
30642           handle of the window exists before calling Graphics.FromHwnd()
30643
30644 2004-12-16  Peter Bartok  <pbartok@novell.com>
30645
30646         * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
30647           contains a lot of code that's not supposed to be there for the
30648           real thing, but required for developing/testing the textbox
30649           backend.
30650
30651 2004-12-16  Peter Bartok  <pbartok@novell.com>
30652
30653         * TextControl.cs:
30654         - Fixed Streamline method
30655         - Added FindTag method to Line
30656         - Added DumpTree method for debugging
30657         - Added DecrementLines() method for deleting lines
30658         - Fixed UpdateView to update the cursor to end-of-line on single-line
30659           updates
30660         - Added PositionCaret() method
30661         - Fixed MoveCaret(LineDown) to move into the last line, too
30662         - Added InsertChar overload
30663         - Fixed InsertChar tag offset calculations
30664         - Added DeleteChar() method
30665         - Added Combine() method for folding lines
30666         - Fixed Delete() method, no longer allocates wasted Line object and
30667           now copies all properties when swapping nodes
30668         - Delete() method now updates document line counter
30669
30670 2004-12-15  Jackson Harper  <jackson@ximian.com>
30671
30672         * XplatUIX11.cs: Get the modifier keys from the keyboard driver
30673         * X11Keyboard.cs: Expose the currently selected modifier keys
30674         through a property.
30675
30676 2004-12-15  Peter Bartok  <pbartok@novell.com>
30677
30678         * TextControl.cs: Initial check-in. Still incomplete
30679
30680 2004-12-15  Jackson Harper  <jackson@ximian.com>
30681
30682         * TreeNode.cs:
30683         * TreeView.cs: Fix build on csc (second time today ;-))
30684
30685 2004-12-15  Jackson Harper  <jackson@ximian.com>
30686
30687         * TreeView.cs: Store the treenodes plus/minus box bounds when it
30688         is calculated and use this for click testing.
30689         * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
30690
30691 2004-12-15  Jackson Harper  <jackson@ximian.com>
30692
30693         * TreeView.cs: Pass the nodes image index to the image list when
30694         drawing that image.
30695
30696 2004-12-15  Jackson Harper  <jackson@ximian.com>
30697
30698         * X11Keyboard.cs: Set messages hwnd.
30699         * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
30700         post_message calls.
30701
30702 2004-12-15  Jackson Harper  <jackson@ximian.com>
30703
30704         * X11Keyboard.cs: Fix to compile with csc.
30705         
30706 2004-12-15  Jackson Harper  <jackson@ximian.com>
30707
30708         * X11Structs.cs: Add key mask values
30709         * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
30710         * X11Keyboard.cs: New file - Extrapolates and interpolates key
30711         down/up foo into WM_CHAR foo
30712         * KeyboardLayouts.cs: Common keyboard layouts
30713         * XplatUIX11.cs: Add the keyboard driver. Add functionality to
30714         post messages into the main queue.
30715
30716 2004-12-13  Jordi Mas i Hernandez <jordi@ximian.com>
30717
30718         * Button.cs: implement ProcessMnemonic
30719         * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
30720           brushes everytime
30721         * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
30722         * ButtonBase.cs: Show HotkeyPrefix (not the &)
30723
30724 2004-12-12  John BouAntoun  <jba-mon@optusnet.com.au>
30725         
30726         * MonthCalendar.cs: Implemented click-hold for next/previous month
30727           and date selection
30728           
30729 2004-12-11  Peter Bartok  <pbartok@novell.com>
30730
30731         * X11Structs.cs:
30732           - Added XKeyboardState (moved from XplatUIX11.cs)
30733           - Added XCreateGC related enums and structures
30734           - Added GXFunction for XSetFunction
30735
30736         * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
30737
30738         * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
30739           CaretVisible() calls
30740
30741         * ToolTip.cs: Added code to prevent stealing focus from app windows
30742
30743         * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
30744           DestroyCaret, SetCaretPos and CaretVisible)
30745
30746         * XplatUIX11.cs:
30747           - Added implementation for caret functions
30748           - Moved hover variables into a struct, to make it a bit easier
30749             on the eyes and to debug
30750           - Removed XKeyboardState (moved to XplatUIX11.cs)
30751           - Moved Keyboard properties into the properties region
30752
30753         * Control.cs (get_Region): Control.CreateGraphics is the appropriate
30754           call to get a graphics context for our control
30755
30756         * XplatUIOSX.cs: Added empty overrides for the new caret functions
30757
30758         * TreeView.cs: Fixed bug. No matter what color was set it would always
30759           return SystemColors.Window
30760
30761         * XplatUIWin32.cs: Implemented caret overrides
30762
30763 2004-12-10  Jordi Mas i Hernandez <jordi@ximian.com>
30764
30765         * ListBox.cs: fire events, implement missing methods and properties,
30766         sorting.
30767
30768 2004-12-10  John BouAntoun <jba-mono@optusnet.com.au>
30769
30770         * MonthCalendar.cs: invalidation bug fixing
30771         * ThemeWin32Classic.cs: paint fixing
30772
30773 2004-12-09  Geoff Norton  <gnorton@customerdna.com>
30774
30775         * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
30776         prepare the CGContextRef there now.
30777
30778 2004-12-09  John BouAntoun <jba-mono@optusnet.com.au>
30779
30780         * MonthCalendar.cs:
30781           - optimisationL only invalidate areas that have changed
30782         * ThemeWin32Classic.cs:
30783           - only paint parts that intersect with clip_area
30784
30785 2004-12-09  Peter Bartok  <pbartok@novell.com>
30786
30787         * Application.cs: Undid changes from r37004 which cause problems
30788         on X11
30789
30790 2004-12-09  Ravindra  <rkumar@novell.com>
30791
30792         * ToolBar.cs: Added support for displaying ContextMenu
30793         attached to a button on ToolBar.
30794         * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
30795         property.
30796
30797 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
30798
30799         * Label.cs: autosize works in text change and removes unnecessary
30800         invalidate
30801
30802 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
30803
30804         * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
30805         remove warnings
30806
30807 2004-12-08  Geoff Norton  <gnorton@customerdna.com>
30808
30809         * XplatUIOSX.cs: Added mouse move/click/grab support
30810         Remove some debugging WriteLines not needed anymore.
30811         Add window resizing/positioning.
30812         Fix visibility on reparenting.
30813
30814 2004-12-08  Peter Bartok  <pbartok@novell.com>
30815
30816         * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
30817
30818 2004-12-07  Geoff Norton  <gnorton@customerdna.com>
30819
30820         * XplatUIOSX.cs: Initial checkin
30821         * XplatUI.cs: Use the Quartz driver if the environment is set to use it
30822
30823 2004-12-03  Ravindra <rkumar@novell.com>
30824
30825         * ListView.cs: Added some keybindings and fixed scrolling.
30826         ScrollBars listen to ValueChanged event instead of Scroll
30827         Event. This would let us take care of all changes being
30828         done in the scrollbars' values programmatically or manually.
30829         * ListView.cs (CanMultiselect): Added a check for shift key.
30830         * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
30831         * ListViewItem.cs (Clone): Fixed. We need to make a copy
30832         of ListViewSubItemCollection as well.
30833
30834 2004-12-06  Peter Bartok <pbartok@novell.com>
30835
30836         * Control.cs (Parent): Added check and exception to prevent
30837         circular parenting
30838
30839 2004-12-03  Jordi Mas i Hernandez <jordi@ximian.com>
30840
30841         * ListBox.cs: implemented clipping, selection single and multiple,
30842         bug fixing
30843
30844 2004-12-03  Ravindra <rkumar@novell.com>
30845
30846         * ListView.cs (ListView_KeyDown):
30847         * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
30848         when CTRL key is pressed.
30849         * ListViewItem.cs (Selected): Fixed setting the property.
30850
30851 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
30852
30853         * Application.cs (OnThreadException): Use ThreadExceptionDialog.
30854
30855         * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
30856         MinimizeBox, ShowInTaskbar, TopMost properties.
30857
30858         * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
30859         will be implemented).
30860
30861 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
30862
30863         * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
30864
30865         * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
30866         tests.
30867         
30868         * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
30869         
30870         * TreeView.cs: BackColor is Colors.Window.
30871
30872 2004-12-01  Jackson Harper  <jackson@ximian.com>
30873
30874         * TreeView.cs: When resizing the tree if the user is making it
30875         smaller we don't get expose events, so we need to handle adding
30876         the horizontal scrollbar in the size changed handler as well as
30877         the expose handler.
30878
30879 2004-12-02  Jordi Mas i Hernandez <jordi@ximian.com>
30880
30881         * DrawItemState.cs: fixes wrong enum values
30882
30883 2004-12-01  Jackson Harper  <jackson@ximian.com>
30884
30885         * TreeView.cs: Resize the hbar as well as the vbar on resize.
30886
30887 2004-12-01  Jackson Harper  <jackson@ximian.com>
30888
30889         * NodeLabelEditEventArgs.cs:
30890         * NodeLabelEditEventHandler.cs:
30891         * OpenTreeNodeEnumerator.cs:
30892         * TreeNode.cs:
30893         * TreeNodeCollection.cs:
30894         * TreeView.cs:
30895         * TreeViewAction.cs:
30896         * TreeViewCancelEventArgs.cs:
30897         * TreeViewCancelEventHandler.cs:
30898         * TreeViewEventArgs.cs:
30899         * TreeViewEventHandler.cs: Initial implementation.
30900
30901 2004-12-01  Ravindra <rkumar@novell.com>
30902
30903         * ListView.cs (CalculateListView): Fixed scrolling related
30904         calculations. Also, removed some debug statements from other
30905         places.
30906         * ListViewItem.cs: Changed access to 'selected' instance variable
30907         from private to internal.
30908         * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
30909
30910 2004-12-01  Jordi Mas i Hernandez <jordi@ximian.com>
30911
30912         * ThemeWin32Classic.cs: remove cache of brush and pens for
30913         specific controls and use the global system, fixes scrollbutton
30914         bugs (for small sizes, disabled, etc)
30915         
30916         * ScrollBar.cs: does not show the thumb for very small controls
30917         (as MS) and allow smaller buttons that the regular size
30918
30919 2004-12-01  Miguel de Icaza  <miguel@ximian.com>
30920
30921         * UpDownBase.cs: Add abstract methods for the interface.
30922         Add new virtual methods (need to be hooked up to TextEntry when it
30923         exists).
30924         Add override methods for most features.
30925         Computes the size, forces the height of the text entry.
30926
30927         * NumericUpDown.cs: Put here the current testing code.
30928
30929         * Set eol-style property on all files that do not have mixed line
30930         endings, to minimize the future problems.  There are still a few
30931         files with mixed endings, and someone should choose whether they
30932         want to move it or not.
30933
30934 2004-11-30  Jordi Mas i Hernandez <jordi@ximian.com>
30935
30936         * MonthCalendar.cs, ListView.cs: use Theme colours instead of
30937         System.Colors
30938         
30939 2004-11-30  Ravindra <rkumar@novell.com>
30940
30941         * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
30942         drawing and replaced use of SystemColors by theme colors.
30943         * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
30944         * ListView.cs (ListViewItemCollection.Add): Throw exception when
30945         same ListViewItem is being added more than once.
30946
30947 2004-11-30  John BouAntoun <jba-mono@optusnet.com.au>
30948
30949         * MonthCalendar.cs:
30950           - ControlStyles love to make the control not flicker
30951           
30952 2004-11-30  Peter Bartok  <pbartok@novell.com>
30953
30954         * CharacterCasing.cs: Added
30955
30956 2004-11-29  Peter Bartok  <pbartok@novell.com>
30957
30958         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
30959           TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
30960           I am removing these files as they conflict with already completed
30961           work. While it is fantastic to get contributions to MWF, I
30962           respectfully ask that everyone please coordinate their contributions
30963           through mono-winforms-list or #mono-winforms at this time. We're
30964           explicitly avoiding stubbing and don't want controls that don't have
30965           their basic functionality implemented in svn. Please also see
30966           http://www.mono-project.com/contributing/winforms.html
30967
30968
30969 2004-11-29  Marek Safar  <marek.safar@seznam.cz>
30970
30971         * Application.cs (ModalRun): Don't hang after exit.
30972
30973         * Theme.cs: New TreeViewDefaultSize property.
30974
30975         * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
30976         with less hardcoded SystemColors constant.
30977         Implemented TreeViewDefaultSize.
30978
30979         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
30980         TreeViewAction.cs, TreeViewEventArgs.cs: New files.
30981
30982
30983 2004-11-29  John BouAntoun <jba-mono@optusnet.com.au>
30984
30985         * MonthCalendar.cs:
30986           - Fix NextMonthDate and PrevMonthDate click moving calendar
30987
30988 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
30989
30990         * MonthCalendar.cs:
30991           - Fix usage of ScrollChange Property when scrolling months
30992
30993 2004-11-26  Jordi Mas i Hernandez <jordi@ximian.com>
30994
30995         * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
30996          - Fixes menu destroying
30997          - Support adding and removing items on already created menus
30998
30999 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
31000
31001         * MonthCalendar.cs:
31002           - Re-worked all bolded dates handling to match win32
31003         * ThemeWin32Classic.cs:
31004           - Fixed rendering with bolded dates
31005
31006 2004-11-25  Jordi Mas i Hernandez <jordi@ximian.com>
31007
31008         * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
31009         - Horizontal scroolbar
31010         - Multicolumn
31011         - Fixes
31012
31013
31014 2004-11-25  John BouAntoun <jba-mono@optusnet.com.au>
31015
31016         * MonthCalendar.cs:
31017           - Fix Usage of MaxSelectionCount from SelectionRange
31018           - Fixed Shift + Cursor Selection
31019           - Fixed Shift + (Pg up/Pg dn, Home/End) selection
31020           - Fixed normal cursor selection to be compat with win32
31021           - Fixed Shift + Mouse Click selection
31022
31023 2004-11-24  Peter Bartok <pbartok@novell.com>
31024
31025         * XplatUI.cs (DispatchMessage): Switched to return IntPtr
31026         * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
31027         * XplatUIX11.cs:
31028           - CreatedKeyBoardMsg now updates keystate with Alt key
31029           - Added workaround for timer crash to CheckTimers, Jackson will
31030             develop a proper fix and check in later
31031           - Implemented DispatchMessage
31032           - Removed calling the native window proc from GetMessage (call
31033             now moved to DispatchMessage)
31034
31035         * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
31036           the keydata (Fixes bug #69831)
31037
31038         * XplatUIWin32.cs:
31039           - (DispatchMessage): Switched to return IntPtr
31040           - Added DllImport for SetFocus
31041
31042 2004-11-24  Ravindra <rkumar@novell.com>
31043
31044         * ThemeWin32Classic.cs: Fixed ListView border and checkbox
31045         background drawing.
31046         * ListViewItem.cs: Fixed various properties, calculations
31047         and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
31048         * ListView.cs: Fixed calculations, BackColor, ForeColor properties
31049         and some internal properties. Fixed MouseDown handler and Paint
31050         method.
31051
31052 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
31053
31054         * MonthCalendar.cs: Add TitleMonth ContextMenu handling
31055
31056 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
31057
31058         * ContainerControl.cs: correct accidental check in of local changes
31059
31060 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
31061
31062         * ThemeWin32Classic.cs:
31063                 - Fixed Drawing Last month in grid (sometimes not showing)
31064         * MonthCalendar.cs:
31065                 - Fixed title width calculation bug (makeing title small)
31066
31067 2004-11-23  Peter Bartok <pbartok@novell.com>
31068
31069         * XplatUIX11.cs:
31070           - Added generation of WM_MOUSEHOVER event
31071           - Added missing assignment of async_method atom
31072           - Fixed WM_ERASEBKGND; now only redraws the exposed area
31073
31074 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
31075
31076         * ThemeWin32Classic.cs:
31077                 - Fixed Drawing of today circle when showtodaycircle not set
31078                 - fixed drawing of first and last month in the grid (gay dates)
31079         * MonthCalendar.cs:
31080                 - Fixed Drawing of today circle
31081                 - Fixed drawing of grady dates
31082                 - Fixed HitTest for today link when ShowToday set to false
31083                 - Fixed DefaultSize to obey ShowToday
31084
31085 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
31086
31087         * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
31088         * System.Windows.Forms/Theme.cs
31089         * MonthCalendar.cs: added for MonthCalendar
31090         * SelectionRange.cs: added for MonthCalendar
31091         * Day.cs: added for MonthCalendar: added for MonthCalendar
31092         * DateRangeEventArgs.cs: added for MonthCalendar
31093         * DateRangeEventHandler.cs: added for MonthCalendar
31094
31095 2004-11-22  Ravindra <rkumar@novell.com>
31096
31097         * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
31098         property.
31099
31100 2004-11-22  Miguel de Icaza  <miguel@ximian.com>
31101
31102         * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
31103         event handler.
31104         
31105         * NumericUpDown.cs: Added new implementation.
31106         * UpDownBase.cs: Added new implementation.
31107
31108         * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
31109         implementations.
31110         
31111         * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
31112         implementations.
31113
31114         * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
31115         methods.
31116
31117 2004-11-21  Miguel de Icaza  <miguel@ximian.com>
31118
31119         * Timer.cs  (Dispose): Should call the base dispose when
31120         overriding.
31121
31122 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
31123
31124         * ScrollBar.cs: updates thumb position when max, min or increment
31125         is changed
31126
31127 2004-11-21  Ravindra <rkumar@novell.com>
31128
31129         * ListView.cs: Implemented item selection, activation and
31130         column header style. Fixed properties to do a redraw, if
31131         required. Added support for MouseHover, DoubleClick, KeyDown
31132         and KeyUp event handling and some minor fixes.
31133         * ListViewItem.cs: Fixed constructor.
31134         * ThemeWin32Classic.cs: Improved drawing for ListView.
31135
31136 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
31137
31138         * ThemeWin32Classic.cs: initial listbox drawing code
31139         * DrawMode.cs: new enumerator
31140         * ListControl.cs: stubbed class
31141         * ListBox.cs: initial implementation
31142         * Theme.cs: new methods definitions
31143         * SelectionMode.cs: new enumerator
31144
31145 2004-11-17  Peter Bartok  <pbartok@novell.com>
31146
31147         * XplatUIWin32.cs: Added double-click events to the class style
31148         * Control.cs (WndProc):
31149           - Added handling of click-count to MouseDown/ MouseUp events.
31150           - Added handling of middle and right mouse buttons
31151           - Removed old debug code
31152
31153 2004-11-17  Jackson Harper  <jackson@ximian.com>
31154
31155         * XplatUIX11.cs: Use the new Mono.Unix namespace.
31156
31157 2004-11-17  Ravindra <rkumar@novell.com>
31158
31159         * ListView.cs: Added event handling for MouseMove/Up/Down.
31160         * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
31161         * ThemeWin32Classic.cs: We need to clear the graphics context and
31162         draw column header in a proper state.
31163
31164
31165 2004-11-17  Jordi Mas i Hernandez <jordi@ximian.com>
31166
31167         *  Menu.cs: fixes signature
31168
31169 2004-11-16  Peter Bartok  <pbartok@novell.com>
31170
31171         * XplatUIX11.cs (GetMessage): Implemented generation of
31172           double click mouse messages
31173
31174 2004-11-12  Jordi Mas i Hernandez <jordi@ximian.com>
31175
31176         *  Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
31177         not by menu
31178
31179 2004-11-11  Peter Bartok  <pbartok@novell.com>
31180
31181         * HandleData.cs: Added Visible property
31182         * XplatUIX11.cs (IsVisible): Now uses Visible property from
31183           HandleData
31184         * XplatUIX11.cs: Removed old debug leftovers
31185         * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
31186         * Control.cs (WndProc): Removed old debug leftovers,
31187           streamlined handling of WM_WINDOWPOSCHANGED, removed un-
31188           needed WM_SIZE handling
31189
31190 2004-11-11  Jackson Harper  <jackson@ximian.com>
31191
31192         * OwnerDrawPropertyBag.cs:
31193         * TreeViewImageIndexConverter.cs: Initial implementation
31194
31195 2004-11-10  Jackson Harper  <jackson@ximian.com>
31196
31197         * ThemeWin32Classic.cs:
31198         * TabControl.cs: instead of moving tabs by the slider pos just
31199         start drawing at the tab that is offset by the slider. This way
31200         scrolling always moves by exactly one tab.
31201
31202 2004-11-10  Jackson Harper  <jackson@ximian.com>
31203
31204         * TabControl.cs: You can only scroll left when the slider has
31205         already ben moved right.
31206         
31207 2004-11-10  Jackson Harper  <jackson@ximian.com>
31208
31209         * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
31210         the clip area.
31211         
31212 2004-11-10  Jackson Harper  <jackson@ximian.com>
31213
31214         * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
31215         clip area.
31216         
31217 2004-11-09  Jackson Harper  <jackson@ximian.com>
31218
31219         * TabControl.cs (CalcXPos): New helper method so we can determine
31220         the proper place to start drawing vertical tabs.
31221         * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
31222         
31223 2004-11-09  Jackson Harper  <jackson@ximian.com>
31224
31225         * TabControl.cs: Calculate sizing and rects for left aligned tabs.
31226         * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
31227         and Bottom, left and right are illegal values for this and
31228         multiline is enabled when the alignment is set to left or right.
31229         (DrawTab): Each alignment block should draw the text itself now
31230         because Left requires special love. Also add rendering for Left
31231         aligned tabs.
31232         
31233 2004-11-09  Jordi Mas i Hernandez <jordi@ximian.com>
31234
31235         *  Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
31236         does not destroy the windows, removes debugging messages
31237
31238 2004-11-09  jba  <jba-mono@optusnet.com.au>
31239
31240         * ThemeWin32Classic.cs
31241         (DrawButtonBase): Fix verticle text rect clipping in windows
31242         (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
31243         rendering and incorrect text rect clipping
31244         (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
31245         rendering and incorrect text rect clipping
31246         
31247 2004-11-08  Jackson Harper  <jackson@ximian.com>
31248
31249         * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
31250         bottom when they are bottom aligned so the bottoms of the tabs get
31251         displayed.
31252         * TabControl.cs (DropRow): Move rows up instead of down when the
31253         tab control is bottom aligned.
31254
31255 2004-11-08 13:59  pbartok
31256
31257         * XplatUIX11.cs:
31258           - Added handling for various window styles
31259           - Added handling for popup windows
31260           - Added SetTopmost handling
31261
31262 2004-11-08 13:55  pbartok
31263
31264         * XplatUIWin32.cs:
31265           - Added argument to SetTopmost method
31266           - Fixed broken ClientToScreen function
31267
31268 2004-11-08 13:53  pbartok
31269
31270         * XplatUIStructs.cs:
31271           - Added missing WS_EX styles
31272
31273 2004-11-08 13:53  pbartok
31274
31275         * XplatUI.cs, XplatUIDriver.cs:
31276           - Added argument to SetTopmost
31277
31278 2004-11-08 13:52  pbartok
31279
31280         * X11Structs.cs:
31281           - Added XSetWindowAttributes structure
31282           - Improved XWindowAttributes structure
31283           - Added SetWindowValuemask enum
31284           - Added window creation arguments enum
31285           - Added gravity enum
31286           - Added Motif hints structure
31287           - Added various Motif flags and enums
31288           - Added PropertyMode enum for property functions
31289
31290 2004-11-08 13:50  pbartok
31291
31292         * Form.cs:
31293           - Fixed arguments for updated SetTopmost method
31294
31295 2004-11-08 13:49  pbartok
31296
31297         * ToolTip.cs:
31298           - Fixed arguments for updated SetTopmost function
31299           - Fixed usage of PointToClient
31300
31301 2004-11-08 13:44  pbartok
31302
31303         * MenuAPI.cs:
31304           - Added Clipping of children and siblings
31305
31306 2004-11-08 13:41  pbartok
31307
31308         * MainMenu.cs:
31309           - Removed SetMenuBarWindow call. We do this in Form.cs
31310
31311 2004-11-08 13:40  jackson
31312
31313         * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
31314           scrolling jimmi in the correct location with bottom aligned tabs
31315
31316 2004-11-08 13:36  pbartok
31317
31318         * ContainerControl.cs:
31319           - Implemented BindingContext
31320           - Implemented ParentForm
31321
31322 2004-11-08 12:46  jackson
31323
31324         * TabControl.cs: Put bottom rendered tabs in the right location
31325
31326 2004-11-08 07:15  jordi
31327
31328         * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
31329           removes dead code
31330
31331 2004-11-05 17:30  jackson
31332
31333         * TabControl.cs: When selected tabs are expanded make sure they
31334           don't go beyond the edges of the tab control
31335
31336 2004-11-05 14:57  jackson
31337
31338         * TabControl.cs: Reset show_slider so if the control is resized to
31339           a size where it is no longer needed it's not displayed anymore
31340
31341 2004-11-05 13:16  jackson
31342
31343         * TabControl.cs: Make tab pages non visible when added to the
31344           control
31345
31346 2004-11-05 12:42  jackson
31347
31348         * TabControl.cs: Implement SizeMode.FillToRight
31349
31350 2004-11-05 12:16  jackson
31351
31352         * Control.cs: Do not call CreateHandle if the handle is already
31353           created
31354
31355 2004-11-05 11:46  jackson
31356
31357         * TabControl.cs: Remove superflous call to CalcTabRows
31358
31359 2004-11-05 09:07  jackson
31360
31361         * XplatUIX11.cs: Update for Mono.Posix changes
31362
31363 2004-11-05 07:00  ravindra
31364
31365         * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
31366           scrolling.
31367
31368 2004-11-04 22:47  jba
31369
31370         * ThemeWin32Classic.cs:
31371           - Fix Button rendering for FlatStyle = Flat or Popup
31372           - Fix RadioButton and CheckBox rendering when Appearance = Button
31373             (normal and flatstyle).
31374           - Correct outer rectangle color when drawing focus rectangle
31375           - Adjust button bounds to be 1 px smaller when focused
31376           - Make button not draw sunken 3d border when pushed (windows compat)
31377           - Fix CPDrawBorder3D to not make bottom right hand corner rounded
31378           - Offset the text in RadioButton and Checkbox when being rendered as
31379           a button.
31380           - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
31381           radiobuttons
31382           - Fixed disabled rendering for colored flatstyle radiobuttons (both)
31383           - Fixed disabled text rendering for normally rendered radiobuttons
31384
31385 2004-11-04 10:26  jackson
31386
31387         * TabControl.cs: Recalculate tab rows when resizing
31388
31389 2004-11-04 07:47  jordi
31390
31391         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
31392           collection completion, drawing issues, missing features
31393
31394 2004-11-04 05:03  ravindra
31395
31396         * ScrollBar.cs:
31397                 - We need to recalculate the Thumb area when
31398                 LargeChange/maximum/minimum values are changed.
31399           - We set the 'pos' in UpdatePos() method to minimum, if it's less
31400                 than minimum. This is required to handle the case if large_change is
31401                 more than max, and use LargeChange property instead of large_change
31402                 variable.
31403           - We return max+1 when large_change is more than max, like MS does.
31404
31405 2004-11-04 04:29  ravindra
31406
31407         * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
31408                 - Changed default value signatures (prefixed all with ListView).
31409                 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
31410                 ListView.
31411           - Fixed calculations for ListViewItem and implemented Clone()
31412           method.
31413
31414 2004-11-04 04:26  ravindra
31415
31416         * Theme.cs, ThemeWin32Classic.cs:
31417                 - Changed default ListView values signatures (prefixed all with
31418                 ListView).
31419           - Fixed default size values for VScrollBar and HScrollBar.
31420                 - Fixed DrawListViewItem method.
31421
31422 2004-11-04 04:05  ravindra
31423
31424         * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
31425
31426 2004-11-04 04:04  ravindra
31427
31428         * ImageList.cs: Implemented the missing overload for Draw method.
31429
31430 2004-11-03 19:29  jackson
31431
31432         * TabControl.cs: Handle dropping rows on selection properly
31433
31434 2004-11-03 11:59  jackson
31435
31436         * TabControl.cs: remove debug code
31437
31438 2004-11-03 11:52  jackson
31439
31440         * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
31441           the scrolly widgerywoo
31442
31443 2004-11-02 13:52  jackson
31444
31445         * TabControl.cs: Resize the tab pages and tabs when the tab control
31446           is resized
31447
31448 2004-11-02 13:40  jackson
31449
31450         * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
31451           selected tab to the bottom
31452
31453 2004-11-02 13:39  jackson
31454
31455         * TabPage.cs: Store the tab pages row
31456
31457 2004-11-02 12:33  jordi
31458
31459         * MenuItem.cs: fixes handle creation
31460
31461 2004-11-02 11:42  jackson
31462
31463         * TabControl.cs: signature fix
31464
31465 2004-11-02 08:56  jackson
31466
31467         * TabControl.cs: Calculate whether the tab is on an edge properly.
31468           Remove top secret debugging code
31469
31470 2004-11-01 19:57  jackson
31471
31472         * TabControl.cs: Add click handling, and proper sizing
31473
31474 2004-11-01 19:47  jackson
31475
31476         * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
31477           tab controls
31478
31479 2004-11-01 19:39  jackson
31480
31481         * TabPage.cs: add internal property to store the bounds of a tab
31482           page
31483
31484 2004-10-30 04:23  ravindra
31485
31486         * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
31487           values.
31488
31489 2004-10-30 04:21  ravindra
31490
31491         * ListView.cs, ListViewItem.cs: Added support for scrolling and
31492           fixed calculations.
31493
31494 2004-10-30 03:06  pbartok
31495
31496         * XplatUIX11.cs:
31497           - Removed extension of DllImported libs
31498
31499 2004-10-29 09:55  jordi
31500
31501         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
31502           navigation, itemcollection completion, menu fixes
31503
31504 2004-10-27 22:58  pbartok
31505
31506         * XplatUIX11.cs:
31507           - Now throws a nice error message when no X display could be opened
31508
31509 2004-10-26 13:51  jordi
31510
31511         * ListView.cs: removes warning
31512
31513 2004-10-26 03:55  ravindra
31514
31515         * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
31516           ThemeWin32Classic.cs: Some formatting for my last checkins.
31517
31518 2004-10-26 03:36  ravindra
31519
31520         * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
31521           control and default values.
31522
31523 2004-10-26 03:35  ravindra
31524
31525         * Theme.cs: Added some default values for ListView control.
31526
31527 2004-10-26 03:33  ravindra
31528
31529         * ToolBar.cs: ToolBar should use the user specified button size, if
31530           there is any. Added a size_specified flag for the same.
31531
31532 2004-10-26 03:33  ravindra
31533
31534         * ColumnHeader.cs: Added some internal members and calculations for
31535           ColumnHeader.
31536
31537 2004-10-26 03:32  ravindra
31538
31539         * ListViewItem.cs: Calculations for ListViewItem.
31540
31541 2004-10-26 03:31  ravindra
31542
31543         * ListView.cs: Added some internal members and calculations for
31544           ListView.
31545
31546 2004-10-22 13:31  jordi
31547
31548         * MenuAPI.cs: speedup menus drawing
31549
31550 2004-10-22 13:16  jackson
31551
31552         * XplatUIX11.cs: Make sure to update exposed regions when adding an
31553           expose event
31554
31555 2004-10-22 11:49  jackson
31556
31557         * Control.cs: oops
31558
31559 2004-10-22 11:41  jackson
31560
31561         * Control.cs: Check to see if the window should have its background
31562           repainted by X when drawing.
31563
31564 2004-10-22 11:31  jackson
31565
31566         * XplatUIX11.cs: When invalidating areas only use XClearArea if
31567           clear is true, this way we do not get flicker from X repainting the
31568           background
31569
31570 2004-10-22 11:28  jackson
31571
31572         * XEventQueue.cs: Queue properly
31573
31574 2004-10-21 09:38  jackson
31575
31576         * XEventQueue.cs: Fix access modifier
31577
31578 2004-10-21 09:36  jackson
31579
31580         * XEventQueue.cs: Don't loose messages
31581
31582 2004-10-21 09:22  jackson
31583
31584         * XEventQueue.cs: Don't loose messages
31585
31586 2004-10-20 04:15  jordi
31587
31588         * BootMode.cs: enum need it by SystemInfo
31589
31590 2004-10-19 21:58  pbartok
31591
31592         * XplatUIWin32.cs:
31593           - Small sanity check
31594
31595 2004-10-19 21:56  pbartok
31596
31597         * Form.cs:
31598           - Added private FormParentWindow class which acts as the container
31599             for our form and as the non-client area where menus are drawn
31600           - Added/Moved required tie-ins to Jordi's menus
31601           - Fixed/Implemented the FormStartPosition functionality
31602
31603 2004-10-19 21:52  pbartok
31604
31605         * Control.cs:
31606           - Removed unneeded locals
31607           - Added code to all size and location properties to understand and
31608             deal with the parent container of Form
31609
31610 2004-10-19 21:33  pbartok
31611
31612         * Application.cs:
31613           - Fixed to deal with new Form subclasses for menus
31614
31615 2004-10-19 17:48  jackson
31616
31617         * XEventQueue.cs: commit correct version of file
31618
31619 2004-10-19 16:50  jackson
31620
31621         * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
31622
31623 2004-10-19 16:15  jordi
31624
31625         * MenuAPI.cs: MenuBarCalcSize returns the height
31626
31627 2004-10-19 08:31  pbartok
31628
31629         * Control.cs:
31630           - Added missing call to PreProcessMessage before calling OnXXXKey
31631           methods
31632
31633 2004-10-19 00:04  ravindra
31634
31635         * ToolTip.cs: Fixed constructor.
31636
31637 2004-10-18 09:31  jordi
31638
31639         * MenuAPI.cs: menuitems in menubars do not have shortcuts
31640
31641 2004-10-18 09:26  jordi
31642
31643         * MenuItem.cs: fixes MenuItem class signature
31644
31645 2004-10-18 08:56  jordi
31646
31647         * MenuAPI.cs: prevents windows from showing in the taskbar
31648
31649 2004-10-18 00:28  ravindra
31650
31651         * ToolTip.cs: Suppressed a warning message.
31652
31653 2004-10-18 00:27  ravindra
31654
31655         * Control.cs: Default value of visible property must be true.
31656
31657 2004-10-17 23:19  pbartok
31658
31659         * ToolTip.cs:
31660           - Complete implementation
31661
31662 2004-10-17 23:19  pbartok
31663
31664         * XplatUIX11.cs:
31665           - Added EnableWindow method
31666           - Added SetModal stub
31667           - Added generation of WM_ACTIVATE message (still needs testing)
31668           - Added SetTopMost stub
31669           - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
31670
31671 2004-10-17 23:17  pbartok
31672
31673         * XplatUIWin32.cs:
31674           - Removed VirtualKeys to XplatUIStructs
31675           - Implemented SetTopMost method
31676           - Implemented EnableWindow method
31677           - Bugfix in ScreenToClient()
31678           - Bugfixes in ClientToScreen()
31679
31680 2004-10-17 22:51  pbartok
31681
31682         * XplatUIStructs.cs:
31683           - Added WS_EX styles to WindowStyles enumeration
31684
31685 2004-10-17 22:50  pbartok
31686
31687         * XplatUI.cs, XplatUIDriver.cs:
31688           - Added method for enabling/disabling windows
31689           - Added method for setting window modality
31690           - Added method for setting topmost window
31691
31692 2004-10-17 22:49  pbartok
31693
31694         * ThemeWin32Classic.cs:
31695           - Added ToolTip drawing code
31696
31697 2004-10-17 22:49  pbartok
31698
31699         * Theme.cs:
31700           - Added ToolTip abstracts
31701
31702 2004-10-17 22:47  pbartok
31703
31704         * Form.cs:
31705           - Fixed Form.ControlCollection to handle owner relations
31706           - Added Owner/OwnedForms handling
31707           - Implemented Z-Ordering for owned forms
31708           - Removed unneeded private overload of ShowDialog
31709           - Fixed ShowDialog, added the X11 incarnation of modal handling (or
31710             so I hope)
31711           - Fixed Close(), had wrong default
31712           - Added firing of OnLoad event
31713           - Added some commented out debug code for Ownership handling
31714
31715 2004-10-17 22:16  pbartok
31716
31717         * Control.cs:
31718           - Fixed/implemented flat list of controls
31719
31720 2004-10-17 22:14  pbartok
31721
31722         * Application.cs:
31723           - Added code to simulate modal dialogs on Win32
31724
31725 2004-10-17 16:11  jordi
31726
31727         * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
31728           mouse event
31729
31730 2004-10-17 13:39  jordi
31731
31732         * MenuAPI.cs: menu drawing fixes
31733
31734 2004-10-15 09:10  ravindra
31735
31736         * StructFormat.cs: General Enum.
31737
31738 2004-10-15 09:09  ravindra
31739
31740         * SizeGripStyle.cs: Enum for Form.
31741
31742 2004-10-15 09:08  ravindra
31743
31744         * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
31745           in Theme for ListView.
31746
31747 2004-10-15 09:06  ravindra
31748
31749         * ColumnHeader.cs: Flushing some formatting changes.
31750
31751 2004-10-15 09:05  ravindra
31752
31753         * ListViewItem.cs: Implemented GetBounds method and fixed coding
31754           style.
31755
31756 2004-10-15 09:03  ravindra
31757
31758         * ListView.cs: Implemented Paint method and fixed coding style.
31759
31760 2004-10-15 07:34  jordi
31761
31762         * MenuAPI.cs: fix for X11
31763
31764 2004-10-15 07:32  ravindra
31765
31766         * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
31767                 - Renamed Paint() method to Draw() for clarity. Also, moved
31768                 DrawImage() to OnPaint().
31769
31770 2004-10-15 07:25  ravindra
31771
31772         * CheckBox.cs, RadioButton.cs:
31773                 - Removed Redraw (), we get it from ButtonBase.
31774                 - Implemented Paint (), to do class specific painting.
31775
31776 2004-10-15 07:16  ravindra
31777
31778         * ButtonBase.cs:
31779                 - Redraw () is not virtual now.
31780                 - Added an internal virtual method Paint (), so that
31781                 derived classes can do their painting on their own.
31782                 - Modified OnPaint () to call Paint ().
31783
31784 2004-10-15 06:43  jordi
31785
31786         * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
31787           MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
31788
31789 2004-10-15 00:30  ravindra
31790
31791         * MessageBox.cs:
31792                 - MessageBox on windows does not have min/max buttons.
31793                 This change in CreateParams fixes this on Windows. We
31794                 still need to implement this windowstyle behavior in
31795                 our X11 driver.
31796
31797 2004-10-14 05:14  ravindra
31798
31799         * ToolBar.cs:
31800                 - Changed Redraw () to do a Refresh () always.
31801                 - Fixed the MouseMove event handling when mouse is pressed,
31802                 ie drag event handling.
31803                 - Replaced the usage of ToolBarButton.Pressed property to
31804                 ToolBarButton.pressed internal variable.
31805
31806 2004-10-14 05:10  ravindra
31807
31808         * ToolBarButton.cs:
31809                 - Added an internal member 'inside' to handle mouse move
31810                 with mouse pressed ie mouse drag event.
31811                 - Changed 'Pressed' property to return true only when
31812                 'inside' and 'pressed' are both true.
31813                 - Some coding style love.
31814
31815 2004-10-14 00:17  ravindra
31816
31817         * Form.cs: Fixed class signature. ShowDialog (Control) is not a
31818           public method.
31819
31820 2004-10-14 00:15  ravindra
31821
31822         * ButtonBase.cs: Redraw () related improvements.
31823
31824 2004-10-14 00:14  ravindra
31825
31826         * MessageBox.cs: Moved InitFormSize () out of Paint method and
31827           removed unnecessary calls to Button.Show () method.
31828
31829 2004-10-13 17:50  pbartok
31830
31831         * XplatUIX11.cs:
31832           - Formatting fix
31833           - Removed destroying of window until we solve the problem of X
31834             destroying the window before us on shutdown
31835
31836 2004-10-13 16:32  pbartok
31837
31838         * ButtonBase.cs:
31839           - Now Redraws on MouseUp for FlatStyle Flat and Popup
31840
31841 2004-10-13 14:18  pbartok
31842
31843         * XplatUIX11.cs:
31844           - Added code to destroy the X window
31845
31846 2004-10-13 14:18  pbartok
31847
31848         * XplatUIWin32.cs:
31849           - Added code to destroy a window
31850
31851 2004-10-13 14:12  pbartok
31852
31853         * ButtonBase.cs:
31854           - Added the Redraw on Resize that got dropped in the last rev
31855
31856 2004-10-13 09:06  pbartok
31857
31858         * ThemeWin32Classic.cs:
31859           - Path from John BouAntoun:
31860             * Fix check rendering (centre correctly for normal style, offset
31861               correctly for FlatStyle).
31862             * Fix border color usage (use backcolor) for FlatStyle.Popup
31863             * Use checkbox.Capture instead of checkbox.is_pressed when
31864               rendering flatstyle states.
31865
31866 2004-10-12 21:48  pbartok
31867
31868         * ThemeWin32Classic.cs:
31869           - Removed all occurences of SystemColors and replaced them with the
31870             matching theme color
31871
31872 2004-10-12 21:41  pbartok
31873
31874         * ThemeWin32Classic.cs:
31875           - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
31876             him using the function for flatstyle drawing
31877           - Changed functions to use the new version of CPDrawBorder3D
31878
31879 2004-10-12 21:15  pbartok
31880
31881         * ControlPaint.cs:
31882           - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
31883             match MS documentation. They need to return defined colors if the
31884             passed color matches the configured control color. Thanks to John
31885             BouAntoun for pointing this out.
31886
31887 2004-10-12 20:57  pbartok
31888
31889         * Control.cs:
31890           - Fix from John BouAntoun: Raise ForeColorChanged event when text
31891             color is changed
31892
31893 2004-10-12 20:46  pbartok
31894
31895         * CheckBox.cs:
31896           - Fix from John BouAntoun: Now properly sets the Appearance property
31897
31898 2004-10-12 20:45  pbartok
31899
31900         * ThemeWin32Classic.cs:
31901           - Fixes from John BouAntoun: now handles forecolors and backcolors
31902             for flatstyle rendered controls much better; It also fixes normal
31903             checkbox rendering when pushed or disabled.
31904
31905 2004-10-08 02:50  jordi
31906
31907         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
31908           work
31909
31910 2004-10-07 08:56  jordi
31911
31912         * ThemeWin32Classic.cs: Removes deletion of cached brushes
31913
31914 2004-10-06 03:59  jordi
31915
31916         * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
31917           XplatUIWin32.cs: removes warnings from compilation
31918
31919 2004-10-05 12:23  jackson
31920
31921         * RadioButton.cs: Fix ctor
31922
31923 2004-10-05 11:10  pbartok
31924
31925         * MessageBox.cs:
31926           - Partial implementation by Benjamin Dasnois
31927
31928 2004-10-05 10:15  jackson
31929
31930         * ThemeWin32Classic.cs: Improve rendering of the radio button patch
31931           by John BouAntoun
31932
31933 2004-10-05 03:07  ravindra
31934
31935         * ToolBar.cs:
31936                 - Removed a private method, Draw ().
31937                 - Fixed the ButtonDropDown event handling.
31938                 - Fixed MouseMove event handling.
31939
31940 2004-10-05 03:04  ravindra
31941
31942         * ThemeWin32Classic.cs:
31943                 - Added DrawListView method and ListViewDefaultSize property.
31944                 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
31945                 - Changed DOS style CRLF to Unix format (dos2unix).
31946
31947 2004-10-05 03:03  ravindra
31948
31949         * Theme.cs:
31950                 - Added DrawListView method and ListViewDefaultSize property.
31951
31952 2004-10-05 02:42  ravindra
31953
31954         * ToolBarButton.cs: Added an internal member dd_pressed to handle
31955           clicks on DropDown arrow.
31956
31957 2004-10-04 22:56  jackson
31958
31959         * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
31960           ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
31961           Control handle the buffers, derived classes should not have to
31962           CreateBuffers themselves.
31963
31964 2004-10-04 21:20  jackson
31965
31966         * StatusBar.cs: The control handles resizing the buffers now.
31967
31968 2004-10-04 21:18  jackson
31969
31970         * Control.cs: When resizing the buffers should be invalidated. This
31971           should be handled in Control not in derived classes.
31972
31973 2004-10-04 14:45  jackson
31974
31975         * TabPage.cs: oops
31976
31977 2004-10-04 02:14  pbartok
31978
31979         * LeftRightAlignment.cs:
31980           - Initial check-in
31981
31982 2004-10-04 01:09  jordi
31983
31984         * ThemeWin32Classic.cs: fixes right button position causing right
31985           button not showing on horizontal scrollbars
31986
31987 2004-10-02 13:12  pbartok
31988
31989         * XplatUIX11.cs:
31990           - Simplified the Invalidate method by using an X call instead of
31991             generating the expose ourselves
31992           - Added an expose when the window background is changed
31993           - Implemented ClientToScreen method
31994
31995 2004-10-02 13:08  pbartok
31996
31997         * XplatUIWin32.cs:
31998           - Added Win32EnableWindow method (test for implementing modal
31999           dialogs)
32000           - Added ClientToScreen method and imports
32001
32002 2004-10-02 13:07  pbartok
32003
32004         * XplatUI.cs, XplatUIDriver.cs:
32005           - Added ClientToScreen coordinate translation method
32006
32007 2004-10-02 13:06  pbartok
32008
32009         * KeyPressEventArgs.cs:
32010           - Fixed access level for constructor
32011
32012 2004-10-02 13:06  pbartok
32013
32014         * NativeWindow.cs:
32015           - Changed access level for the window_collection hash table
32016
32017 2004-10-02 13:05  pbartok
32018
32019         * Form.cs:
32020           - Added KeyPreview property
32021           - Added Menu property (still incomplete, pending Jordi's menu work)
32022           - Implemented ProcessCmdKey
32023           - Implemented ProcessDialogKey
32024           - Implemented ProcessKeyPreview
32025
32026 2004-10-02 13:02  pbartok
32027
32028         * Control.cs:
32029           - Added private method to get the Control object from the window
32030           handle
32031           - Implemented ContextMenu property
32032           - Implemented PointToScreen
32033           - Implemented PreProcessMessage
32034           - Implemented IsInputChar
32035           - Implemented IsInputKey
32036           - Implemented ProcessCmdKey
32037           - Completed ProcessKeyEventArgs
32038           - Fixed message loop to call the proper chain of functions on key
32039           events
32040           - Implemented ProcessDialogChar
32041           - Implemented ProcessDialogKey
32042           - Implemented ProcessKeyMessage
32043           - Implemented ProcessKeyPreview
32044           - Added RaiseDragEvent stub (MS internal method)
32045           - Added RaiseKeyEvent stub (MS internal method)
32046           - Added RaiseMouseEvent stub (MS Internal method)
32047           - Added RaisePaintEvent stub (MS Internal method)
32048           - Added ResetMouseEventArgs stub (MS Internal method)
32049           - Implemented RtlTranslateAlignment
32050           - Implemented RtlTranslateContent
32051           - Implemented RtlTranslateHorizontal
32052           - Implemented RtlTranslateLeftRight
32053           - Added generation of KeyPress event
32054
32055 2004-10-02 05:57  ravindra
32056
32057         * ListViewItem.cs: Added attributes.
32058
32059 2004-10-02 05:32  ravindra
32060
32061         * ListView.cs: Added attributes.
32062
32063 2004-10-01 11:53  jackson
32064
32065         * Form.cs: Implement the Close method so work on MessageBox can
32066           continue.
32067
32068 2004-09-30 14:06  pbartok
32069
32070         * XplatUIX11.cs:
32071           - Bug fixes
32072
32073 2004-09-30 11:34  jackson
32074
32075         * RadioButton.cs: Fix typo. Patch by John BouAntoun.
32076
32077 2004-09-30 07:26  ravindra
32078
32079         * ListViewItemConverter.cs: Converter for ListViewItem.
32080
32081 2004-09-30 07:26  ravindra
32082
32083         * SortOrder.cs: Enum for ListView control.
32084
32085 2004-09-30 07:25  ravindra
32086
32087         * ColumnHeader.cs: Supporting class for ListView control.
32088
32089 2004-09-30 07:24  ravindra
32090
32091         * ListView.cs, ListViewItem.cs: Initial implementation.
32092
32093 2004-09-30 07:20  ravindra
32094
32095         * ItemActivation.cs: Enum for ListView Control.
32096
32097 2004-09-29 20:29  pbartok
32098
32099         * XplatUIX11.cs:
32100           - Added lookup of pixel value for background color; tries to get a
32101             color 'close' to the requested color, it avoids having to create a
32102             colormap.  Depending on the display this could mean the used color
32103             is slightly off the desired color. Might have to change it to a more
32104             resource intensive colormap approach, but it will work as a
32105           workaround to avoid red screens.
32106
32107 2004-09-29 14:27  jackson
32108
32109         * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
32110
32111 2004-09-28 12:44  pbartok
32112
32113         * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
32114           HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
32115           ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
32116           Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
32117           TrackBar.cs, VScrollBar.cs:
32118           - Streamlined Theme interfaces:
32119             * Each DrawXXX method for a control now is passed the object for
32120               the control to be drawn in order to allow accessing any state the
32121               theme might require
32122
32123             * ControlPaint methods for the theme now have a CP prefix to avoid
32124               name clashes with the Draw methods for controls
32125
32126             * Every control now retrieves it's DefaultSize from the current
32127             theme
32128
32129 2004-09-28 12:17  jackson
32130
32131         * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
32132           drawing
32133
32134 2004-09-24 14:57  jackson
32135
32136         * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
32137           Gives us a nice little performance boost.
32138
32139 2004-09-24 12:02  jackson
32140
32141         * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
32142           TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
32143           Control and supporting classes. Initial checkin
32144
32145 2004-09-23 13:08  jackson
32146
32147         * Form.cs: Temp build fixage
32148
32149 2004-09-23 01:39  ravindra
32150
32151         * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
32152           ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
32153           ItemDragEventArgs.cs, ItemDragEventHandler.cs,
32154           LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
32155           EventHandlers needed by ListView Control.
32156
32157 2004-09-22 14:12  pbartok
32158
32159         * ScrollableControl.cs:
32160           - Implemented DockPadding property
32161           - Implemented AutoScroll property
32162           - Implemented AutoScrollMargin property
32163           - Implemented AutoScrollMinSize property
32164           - Implemented AutoScrollPosition property
32165           - Implemented DisplayRectangle property (still incomplete)
32166           - Implemented CreateParams property
32167           - Implemented HScroll property
32168           - Implemented VScroll property
32169           - Implemented OnVisibleChanged property
32170
32171 2004-09-22 14:09  pbartok
32172
32173         * Form.cs:
32174           - Added Form.ControllCollection class
32175           - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
32176             RemoveOwnedForm (still incomplete, missing on-top and common
32177             minimize/maximize behaviour)
32178           - Added StartPosition property (still incomplete, does not use when
32179             creating the form)
32180           - Added ShowDialog() methods (still incomplete, missing forcing the
32181             dialog modal)
32182
32183 2004-09-22 14:05  pbartok
32184
32185         * Application.cs:
32186           - Added message loop for modal dialogs
32187
32188 2004-09-22 14:02  pbartok
32189
32190         * GroupBox.cs:
32191           - Fixed wrong types for events
32192
32193 2004-09-22 14:00  pbartok
32194
32195         * Shortcut.cs, FormWindowState.cs:
32196           - Fixed wrong values
32197
32198 2004-09-22 12:01  jackson
32199
32200         * Control.cs: Text is never null
32201
32202 2004-09-20 22:14  pbartok
32203
32204         * XplatUIWin32.cs:
32205           - Fixed accessibility level for Idle handler
32206
32207 2004-09-20 18:54  jackson
32208
32209         * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
32210           XplatUIX11.cs: New message loop that uses poll so we don't get a
32211           busy loop
32212
32213 2004-09-17 10:43  pbartok
32214
32215         * ScrollBar.cs:
32216           - Fixed behaviour of arrow buttons. Now properly behaves like
32217             Buttons (and like Microsoft's scrollbar arrow buttons)
32218
32219 2004-09-17 10:14  pbartok
32220
32221         * ScrollBar.cs:
32222           - Added missing release of keyboard/mouse capture
32223
32224 2004-09-17 06:18  jordi
32225
32226         * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
32227           Theme.cs: Very early menu support
32228
32229 2004-09-16 17:45  pbartok
32230
32231         * XplatUIWin32.cs:
32232           - Fixed sending a window to the front
32233           - Added overload for SetWindowPos to avoid casting
32234
32235 2004-09-16 17:44  pbartok
32236
32237         * Control.cs:
32238           - Added SendToBack and BringToFront methods
32239
32240 2004-09-16 07:00  ravindra
32241
32242         * Copyright: Added Novell URL.
32243
32244 2004-09-16 07:00  ravindra
32245
32246         * ToolBar.cs: Invalidate should be done before redrawing.
32247
32248 2004-09-15 21:19  ravindra
32249
32250         * ColumnHeaderStyle.cs: Enum for ListView Control.
32251
32252 2004-09-15 21:18  ravindra
32253
32254         * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
32255           ListView Control.
32256
32257 2004-09-13 18:26  jackson
32258
32259         * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
32260           properly
32261
32262 2004-09-13 18:13  jackson
32263
32264         * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
32265           a second thread and post messages into the main threads message
32266           queue. This makes timing much more consistent. Both win2K and XP
32267           have a minimum timer value of 15 milliseconds, so we now do this
32268           too.
32269
32270 2004-09-13 15:18  pbartok
32271
32272         * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
32273           XplatUIX11.cs:
32274           - Added Z-Ordering methods
32275
32276 2004-09-13 10:56  pbartok
32277
32278         * Form.cs:
32279           - Fixed #region names
32280           - Moved properties and methods into their proper #regions
32281
32282 2004-09-13 10:51  pbartok
32283
32284         * Form.cs:
32285           - Added Accept and CancelButton properties
32286           - Added ProcessDialogKey() method
32287
32288 2004-09-13 08:18  pbartok
32289
32290         * IWindowTarget.cs:
32291           - Initial check-in
32292
32293 2004-09-10 21:50  pbartok
32294
32295         * Control.cs:
32296           - Added DoDragDrop() [incomplete]
32297           - Properly implemented 'Visible' handling
32298           - Added SetVisibleCore()
32299           - Implemented FindChildAtPoint()
32300           - Implemented GetContainerControl()
32301           - Implemented Hide()
32302
32303 2004-09-10 19:28  pbartok
32304
32305         * Control.cs:
32306           - Moved methods into their appropriate #regions
32307           - Reordered methods within regions alphabetically
32308
32309 2004-09-10 18:57  pbartok
32310
32311         * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
32312           - Added method to retrieve text from window
32313
32314 2004-09-10 18:56  pbartok
32315
32316         * Control.cs:
32317           - Moved some internal functions into the internal region
32318           - Implemented FontHeight
32319           - Implemented RenderRightToLeft
32320           - Implemented ResizeRedraw
32321           - Implemented ShowFocusCues
32322           - Implemented ShowKeyboardCues
32323           - Implemented FromChildHandle
32324           - Implemented FromHandle
32325           - Implemented IsMnemonic
32326           - Implemented ReflectMessage
32327           - All public and protected Static Methods are now complete
32328
32329 2004-09-10 16:54  pbartok
32330
32331         * Control.cs:
32332           - Implemented remaining missing public instance properties
32333           - Alphabetized some out of order properties
32334
32335 2004-09-10 05:51  ravindra
32336
32337         * PictureBox.cs: Added a check for null image.
32338
32339 2004-09-10 00:59  jordi
32340
32341         * GroupBox.cs: remove cvs tag
32342
32343 2004-09-09 05:25  ravindra
32344
32345         * ToolBar.cs: Make redraw accessible from ToolBarButton.
32346
32347 2004-09-09 05:23  ravindra
32348
32349         * ToolBarButton.cs: Changes in ToolBarButton need to make it's
32350           parent redraw.
32351
32352 2004-09-09 02:28  pbartok
32353
32354         * ThemeWin32Classic.cs:
32355           - Improve disabled string look
32356
32357 2004-09-09 01:15  jordi
32358
32359         * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
32360           args and handler
32361
32362 2004-09-08 23:56  ravindra
32363
32364         * ItemBoundsPortion.cs: It's enum, not a class!
32365
32366 2004-09-08 23:47  ravindra
32367
32368         * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
32369           Enums for Form.
32370
32371 2004-09-08 21:13  ravindra
32372
32373         * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
32374           ListView control.
32375
32376 2004-09-08 21:03  ravindra
32377
32378         * ThemeWin32Classic.cs: PictureBox would not draw a null image to
32379           avoid crash.
32380
32381 2004-09-08 21:01  ravindra
32382
32383         * ScrollableControl.cs: Removed unreachable code.
32384
32385 2004-09-08 06:45  jordi
32386
32387         * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
32388
32389 2004-09-08 01:00  jackson
32390
32391         * XplatUIX11.cs: Only run the timers when updating the message
32392           queue. This effectively gives X messages a higher priority then
32393           timer messages. Timers still need love though
32394
32395 2004-09-07 14:01  jackson
32396
32397         * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
32398           this for us and the handle is no longer valid.
32399
32400 2004-09-07 13:59  jackson
32401
32402         * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
32403           loop that manages to not crash. TODO: Add poll and cleanup timers
32404
32405 2004-09-07 11:12  jordi
32406
32407         * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
32408
32409 2004-09-07 03:40  jordi
32410
32411         * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
32412           fixes, methods, multiple links
32413
32414 2004-09-06 06:55  jordi
32415
32416         * Control.cs: Caches ClientRectangle rectangle value
32417
32418 2004-09-05 02:03  jordi
32419
32420         * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
32421           certain situations
32422
32423 2004-09-04 11:10  jordi
32424
32425         * Label.cs: Refresh when font changed
32426
32427 2004-09-02 16:24  pbartok
32428
32429         * Control.cs:
32430           - Added sanity check to creation of double buffer bitmap
32431
32432 2004-09-02 16:24  pbartok
32433
32434         * ButtonBase.cs:
32435           - Fixed selection of text color
32436           - Fixed handling of resize event; now properly recreates double
32437             buffering bitmap
32438           - Added missing assignment of TextAlignment
32439           - Added proper default for TextAlignment
32440
32441 2004-09-02 14:26  pbartok
32442
32443         * RadioButton.cs:
32444           - Added missing RadioButton.RadioButtonAccessibleObject class
32445
32446 2004-09-02 14:26  pbartok
32447
32448         * Control.cs:
32449           - Added missing Control.ControlAccessibleObject class
32450           - Started to implement Select()ion mechanisms, still very incomplete
32451
32452 2004-09-02 14:25  pbartok
32453
32454         * AccessibleObject.cs:
32455           - Added missing methods
32456
32457 2004-09-02 14:23  pbartok
32458
32459         * AccessibleNavigation.cs, AccessibleSelection.cs:
32460           - Initial check-in
32461
32462 2004-09-02 10:32  jordi
32463
32464         * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
32465           pool for pens, brushes, and hatchbruses
32466
32467 2004-09-01 15:30  jackson
32468
32469         * StatusBar.cs: Fix typo
32470
32471 2004-09-01 14:44  pbartok
32472
32473         * RadioButton.cs:
32474           - Fixed state
32475
32476 2004-09-01 14:39  pbartok
32477
32478         * Button.cs, RadioButton.cs:
32479           - Functional initial check-in
32480
32481 2004-09-01 14:01  pbartok
32482
32483         * CheckBox.cs:
32484           - Added missing default
32485           - Added missing region mark
32486
32487 2004-09-01 09:10  jordi
32488
32489         * Label.cs: fixes method signatures, new methods, events, fixes
32490           autosize
32491
32492 2004-09-01 07:19  jordi
32493
32494         * Control.cs: Init string variables with an empty object
32495
32496 2004-09-01 04:20  jordi
32497
32498         * Control.cs: fires OnFontChanged event
32499
32500 2004-08-31 20:07  pbartok
32501
32502         * ButtonBase.cs:
32503           - Enabled display of strings
32504
32505 2004-08-31 20:05  pbartok
32506
32507         * Form.cs:
32508           - Added (partial) implementation of DialogResult; rest needs to be
32509             implemented when the modal loop code is done
32510
32511 2004-08-31 19:55  pbartok
32512
32513         * CheckBox.cs:
32514           - Fixed to match the removal of the needs_redraw concept
32515
32516 2004-08-31 19:55  pbartok
32517
32518         * ButtonBase.cs:
32519           - Removed the rather odd split between 'needs redraw' and redrawing
32520           - Now handles the events that require regeneration (ambient
32521             properties and size)
32522
32523 2004-08-31 19:41  pbartok
32524
32525         * Control.cs:
32526           - Added firing of BackColorChanged event
32527           - Added TopLevelControl property
32528           - Fixed handling of WM_ERASEBKGRND message
32529
32530 2004-08-31 12:49  pbartok
32531
32532         * ButtonBase.cs:
32533           - Removed debug
32534           - Minor fixes
32535
32536 2004-08-31 12:48  pbartok
32537
32538         * CheckBox.cs:
32539           - Finished (famous last words)
32540
32541 2004-08-31 04:35  jordi
32542
32543         * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
32544           scrolling bugs, adds new methods
32545
32546 2004-08-30 14:42  pbartok
32547
32548         * CheckBox.cs:
32549           - Implemented CheckBox drawing code
32550
32551 2004-08-30 14:42  pbartok
32552
32553         * ButtonBase.cs:
32554           - Made Redraw() and CheckRedraw() virtual
32555           - Improved mouse up/down/move logic to properly track buttons
32556
32557 2004-08-30 09:44  pbartok
32558
32559         * CheckBox.cs:
32560           - Updated to fix broken build. Not complete yet.
32561
32562 2004-08-30 09:28  pbartok
32563
32564         * CheckState.cs:
32565           - Initial checkin
32566
32567 2004-08-30 09:17  pbartok
32568
32569         * Appearance.cs:
32570           - Initial check-in
32571
32572 2004-08-27 16:12  ravindra
32573
32574         * ToolBarButton.cs: Added TypeConverter attribute.
32575
32576 2004-08-27 16:07  ravindra
32577
32578         * ImageIndexConverter.cs: Implemented.
32579
32580 2004-08-27 14:17  pbartok
32581
32582         * Control.cs:
32583           - Removed unneeded stack vars
32584           - First attempt to fix sizing issues when layout is suspended
32585
32586 2004-08-25 15:35  jordi
32587
32588         * ScrollBar.cs: more fixes to scrollbar
32589
32590 2004-08-25 14:04  ravindra
32591
32592         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
32593           Added the missing divider code and grip for ToolBar Control.
32594
32595 2004-08-25 13:20  pbartok
32596
32597         * Control.cs:
32598           - Control now properly passes the ambient background color to child
32599             controls
32600
32601 2004-08-25 13:20  jordi
32602
32603         * ScrollBar.cs: small bug fix regarding bar position
32604
32605 2004-08-25 12:33  pbartok
32606
32607         * Timer.cs:
32608           - Now only calls SetTimer or KillTimer if the enabled state has
32609           changed
32610
32611 2004-08-25 12:33  pbartok
32612
32613         * XplatUIWin32.cs:
32614           - Fixed timer handling, now seems to work
32615           - Improved error message for window creation
32616
32617 2004-08-25 12:32  pbartok
32618
32619         * Control.cs:
32620           - Fixed generation of MouseUp message
32621
32622 2004-08-25 12:29  jordi
32623
32624         * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
32625           and fixes for progressbar
32626
32627 2004-08-24 18:43  ravindra
32628
32629         * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
32630           in ToolBar control.
32631
32632 2004-08-24 17:15  pbartok
32633
32634         * Panel.cs:
32635           - Added #region
32636           - Added missing events
32637           - Alphabetized
32638
32639 2004-08-24 17:14  pbartok
32640
32641         * StatusBar.cs, PictureBox.cs:
32642           - Now uses Control's CreateParams
32643
32644 2004-08-24 16:36  pbartok
32645
32646         * XplatUIX11.cs:
32647           - Fixed background color handling
32648           - Fixed sending of enter/leave events on a grab
32649
32650 2004-08-24 16:35  pbartok
32651
32652         * X11Structs.cs:
32653           - Refined definitions for CrossingEvent
32654
32655 2004-08-24 12:37  jordi
32656
32657         * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
32658           formmating, methods signature, and adds missing events
32659
32660 2004-08-24 12:24  jordi
32661
32662         * Control.cs: fire OnEnabledChanged event
32663
32664 2004-08-24 11:17  pbartok
32665
32666         * XplatUIWin32.cs:
32667           - Implemented SetTimer() and KillTimer()
32668
32669 2004-08-24 11:16  pbartok
32670
32671         * XplatUIX11.cs:
32672           - Now uses Remove instead of Add to kill the timer
32673
32674 2004-08-24 10:16  jackson
32675
32676         * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
32677           picture boxes in the theme now. Draw picture box borders and obey
32678           sizing modes
32679
32680 2004-08-24 05:49  jackson
32681
32682         * Timer.cs: Remove top secret debugging code
32683
32684 2004-08-24 05:34  jackson
32685
32686         * PictureBox.cs: Temp hack to make picture boxes draw their full
32687           image
32688
32689 2004-08-24 05:29  jackson
32690
32691         * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
32692           XplatUIX11.cs: Move timers to the driver level. On X they are
32693           queued by the driver and checked on idle.
32694
32695 2004-08-24 01:07  jackson
32696
32697         * XplatUIX11.cs: Use a queue for async messages instead of passing
32698           them as ClientMessages since that was totally broken. Also simply
32699           check for events and return an idle message if none are found. This
32700           gives us an idle handler, and prevents deadlocking when no messages
32701           are in the queue.
32702
32703 2004-08-23 18:19  ravindra
32704
32705         * XplatUIWin32.cs: Removed the unwanted destructor.
32706
32707 2004-08-23 17:27  pbartok
32708
32709         * ButtonBase.cs:
32710           - Finishing touches. Works now, just needs some optimizations.
32711
32712 2004-08-23 16:53  jordi
32713
32714         * ScrollBar.cs: small fix
32715
32716 2004-08-23 16:45  pbartok
32717
32718         * Application.cs:
32719           - Removed debug output
32720           - Simplifications
32721
32722 2004-08-23 16:43  jordi
32723
32724         * ScrollBar.cs: [no log message]
32725
32726 2004-08-23 16:10  pbartok
32727
32728         * Form.cs:
32729           - Fixed handling of WM_CLOSE message
32730           - Removed debug output
32731
32732 2004-08-23 16:09  pbartok
32733
32734         * Application.cs:
32735           - Added handling of Idle event
32736           - Added handling of form closing
32737           - Fixed reporting of MessageLoop property
32738           - Removed some unneeded code, should provide a bit of a speedup
32739
32740 2004-08-23 15:22  pbartok
32741
32742         * Control.cs:
32743           - Added InitLayout() method
32744           - Added code to properly perform layout when Anchor or Dock property
32745             is changed
32746           - Changed 'interpretation' of ResumeLayout. MS seems to have a
32747             LAMESPEC, tried to do it in a way that makes sense
32748
32749 2004-08-23 14:10  jordi
32750
32751         * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
32752           properties and methods
32753
32754 2004-08-23 13:55  pbartok
32755
32756         * Control.cs:
32757           - Properly fixed Jordi's last fix
32758           - Now uses Cursor's Position property instead of calling XplatUI
32759           directly
32760
32761 2004-08-23 13:44  jordi
32762
32763         * PaintEventHandler.cs: Adding missing attribute
32764
32765 2004-08-23 13:39  pbartok
32766
32767         * Cursor.cs:
32768           - Implemented Position property
32769
32770 2004-08-23 13:39  pbartok
32771
32772         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
32773           - Added method to move mouse cursor
32774
32775 2004-08-23 13:39  pbartok
32776
32777         * XplatUIX11.cs:
32778           - Fixed setting of background color
32779           - Added method to move mouse cursor
32780
32781 2004-08-23 13:16  jordi
32782
32783         * Control.cs: avoids null exception
32784
32785 2004-08-22 17:46  jackson
32786
32787         * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
32788           PictureBox
32789
32790 2004-08-22 17:40  jackson
32791
32792         * XplatUIX11.cs: Add some missing locks
32793
32794 2004-08-22 15:10  pbartok
32795
32796         * Control.cs, Form.cs:
32797           - Removed OverlappedWindow style from Control, instead it's default
32798             now is child
32799           - Made form windows OverlappedWindow by default
32800
32801 2004-08-22 13:34  jackson
32802
32803         * ScrollBar.cs: Update the position through the Value property so
32804           the OnValueChanged event is raised.
32805
32806 2004-08-22 12:04  pbartok
32807
32808         * SWF.csproj:
32809           - Added Cursor.cs and UserControl.cs
32810
32811 2004-08-22 12:03  pbartok
32812
32813         * Cursor.cs:
32814           - Started implementation, not usable yet
32815
32816 2004-08-22 12:00  pbartok
32817
32818         * UserControl.cs:
32819           - Implemented UserControl (complete)
32820
32821 2004-08-21 19:20  ravindra
32822
32823         * ToolBar.cs: Correcting the formatting mess of VS.NET.
32824
32825 2004-08-21 18:49  ravindra
32826
32827         * ToolBar.cs: Probably this completes the missing attributes in
32828           toolbar control.
32829
32830 2004-08-21 18:03  ravindra
32831
32832         * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
32833           Fixed toolbar control signatures.
32834
32835 2004-08-21 16:32  pbartok
32836
32837         * LinkLabel.cs:
32838           - Signature Fixes
32839
32840 2004-08-21 16:30  pbartok
32841
32842         * Label.cs:
32843           - Signature fixes
32844
32845 2004-08-21 16:19  pbartok
32846
32847         * Control.cs, Label.cs:
32848           - Signature fixes
32849
32850 2004-08-21 15:57  pbartok
32851
32852         * ButtonBase.cs:
32853           - Added loads of debug output for development
32854           - Fixed typo in method name
32855
32856 2004-08-21 15:52  pbartok
32857
32858         * ToolBarButtonClickEventArgs.cs:
32859           - Added missing base class
32860
32861 2004-08-21 14:53  pbartok
32862
32863         * Control.cs:
32864           - Updated to match new GrabWindow signature
32865
32866 2004-08-21 14:51  pbartok
32867
32868         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
32869           - Added method to get default display size
32870
32871 2004-08-21 14:23  pbartok
32872
32873         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
32874           - Added method to query current grab state
32875           - Added argument to allow confining a grab to a window
32876
32877 2004-08-21 14:22  pbartok
32878
32879         * Keys.cs:
32880           - Added [Flags] attribute so that modifiers can be used in bitwise
32881           ops
32882
32883 2004-08-21 14:21  pbartok
32884
32885         * TrackBar.cs, ScrollBar.cs:
32886           - Replaced direct XplatUI calls with their Control counterpart
32887
32888 2004-08-21 13:32  pbartok
32889
32890         * Control.cs:
32891           - Implemented Created property
32892
32893 2004-08-21 13:28  pbartok
32894
32895         * Control.cs:
32896           - Implemented ContainsFocus
32897
32898 2004-08-21 13:26  pbartok
32899
32900         * Control.cs:
32901           - Implemented CausesValidation
32902
32903 2004-08-21 13:21  pbartok
32904
32905         * Control.cs:
32906           - Implemented CanFocus
32907           - Implemented CanSelect
32908           - Implemented Capture
32909
32910 2004-08-21 12:35  pbartok
32911
32912         * XplatUIWin32.cs:
32913           - Fixed bug with Async message handling
32914           - Implemented getting the ModifierKeys
32915
32916 2004-08-21 12:32  jackson
32917
32918         * AsyncMethodResult.cs: Make sure we have the mutex before we
32919           release it. Fixes BeginInvoke on windows
32920
32921 2004-08-21 11:31  pbartok
32922
32923         * XplatUIWin32.cs, XplatUIX11.cs:
32924           - Drivers now return proper mouse state
32925
32926 2004-08-21 10:54  jackson
32927
32928         * Control.cs: Implement EndInvoke
32929
32930 2004-08-21 10:48  jackson
32931
32932         * Timer.cs: Remove unneeded finalizer
32933
32934 2004-08-20 19:52  ravindra
32935
32936         * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
32937           in mouse event handling in the ToolBar control.
32938
32939 2004-08-20 19:50  ravindra
32940
32941         * ImageList.cs: Changed draw method to use the arguments passed in
32942           to draw the image.
32943
32944 2004-08-20 18:58  pbartok
32945
32946         * XplatUIStructs.cs:
32947           - Added private message for async communication
32948
32949 2004-08-20 17:38  ravindra
32950
32951         * Control.cs: Made RightToLeft property virtual and removed a
32952           Console.WriteLine.
32953
32954 2004-08-20 14:39  jordi
32955
32956         * ThemeGtk.cs: use style_attach
32957
32958 2004-08-20 14:39  pbartok
32959
32960         * XplatUIWin32.cs:
32961           - Added jackson's Async code from X11 to Win32
32962
32963 2004-08-20 14:09  pbartok
32964
32965         * SWF.csproj:
32966           - Added all new files
32967
32968 2004-08-20 14:09  pbartok
32969
32970         * Control.cs:
32971           - Added call to set window background color
32972
32973 2004-08-20 14:03  pbartok
32974
32975         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
32976           - Added method for setting the window background
32977
32978 2004-08-20 14:02  pbartok
32979
32980         * XplatUIWin32.cs:
32981           - Added method for setting the background color
32982           - Added handling for erasing the window background
32983
32984 2004-08-20 13:45  jordi
32985
32986         * TrackBar.cs: fixes timer, new properties and methods
32987
32988 2004-08-20 13:34  jackson
32989
32990         * ScrollBar.cs: Use the SWF timer so callbacks are run in the
32991           correct thread
32992
32993 2004-08-20 13:22  jackson
32994
32995         * Timer.cs: Timer Tick events are now handed through Controls Async
32996           mechanism so the callbacks are executed in the same thread as X
32997
32998 2004-08-20 13:19  jackson
32999
33000         * XplatUIDriver.cs: Expose functionality to send async messages
33001           through the driver
33002
33003 2004-08-20 13:18  jackson
33004
33005         * Control.cs: Implement Begininvoke
33006
33007 2004-08-20 13:14  jackson
33008
33009         * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
33010           messages through the driver
33011
33012 2004-08-20 13:12  jackson
33013
33014         * XplatUIX11.cs: Lock before all X operations. Also added Async
33015           method functionality through XSendEvent
33016
33017 2004-08-20 13:11  jackson
33018
33019         * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
33020           This will screw up on 64 bit systems)
33021
33022 2004-08-20 13:10  jackson
33023
33024         * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
33025           Async messages through X/Win32
33026
33027 2004-08-19 19:39  pbartok
33028
33029         * XplatUIX11.cs:
33030           - Updated code to match new HandleData.DeviceContext type
33031
33032 2004-08-19 19:38  pbartok
33033
33034         * HandleData.cs:
33035           - Made DeviceContext a generic object to allow usage from various
33036           drivers
33037           - Added support for queueing Windows messages
33038
33039 2004-08-19 19:37  pbartok
33040
33041         * XplatUIWin32.cs:
33042           - Added generation of MouseEnter, MouseLeave and MouseHover events
33043           - Added cleanup on EndPaint
33044
33045 2004-08-19 19:17  pbartok
33046
33047         * Control.cs:
33048           - Added handling of WM_MOUSEHOVER
33049           - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
33050           code
33051
33052 2004-08-19 18:55  jordi
33053
33054         * ThemeGtk.cs: fixes button order
33055
33056 2004-08-19 18:12  jordi
33057
33058         * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
33059
33060 2004-08-19 17:09  pbartok
33061
33062         * Control.cs:
33063           - Added Right property
33064           - Added RightToLeft property
33065
33066 2004-08-19 16:27  jordi
33067
33068         * ThemeGtk.cs: experimental GTK theme support
33069
33070 2004-08-19 16:26  jordi
33071
33072         * ITheme.cs, Theme.cs: move themes from an interface to a class
33073
33074 2004-08-19 16:25  jordi
33075
33076         * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
33077           theme enhancaments
33078
33079 2004-08-19 16:04  pbartok
33080
33081         * XplatUIX11.cs:
33082           - Added colormap basics
33083           - Added a way to re-initialize with a different display handle
33084           - Fixed setting of the window background color
33085           - Added various X11 imports related to colors and colormaps
33086
33087 2004-08-19 15:51  pbartok
33088
33089         * X11Structs.cs:
33090           - Removed packing hints (Paolo suggested this a while back)
33091           - fixed colormap type
33092           - Added default Atom types
33093           - Added Screen and color structs and enums
33094
33095 2004-08-19 15:39  pbartok
33096
33097         * ImageList.cs:
33098           - Added missing Draw() method
33099           - Added missing RecreateHandle event
33100
33101 2004-08-19 15:30  pbartok
33102
33103         * Form.cs:
33104           - Added handling of WM_CLOSE
33105
33106 2004-08-18 13:16  jordi
33107
33108         * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
33109           a table
33110
33111 2004-08-18 09:56  jordi
33112
33113         * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
33114
33115 2004-08-17 15:31  ravindra
33116
33117         * SWF.csproj: Updated project.
33118
33119 2004-08-17 15:25  pbartok
33120
33121         * Control.cs:
33122           - Drawing improvement; don't call UpdateBounds if we are not visible
33123             (or have been minimized)
33124
33125 2004-08-17 15:24  pbartok
33126
33127         * XplatUIWin32.cs:
33128           - Finished IsVisible
33129           - Added Win32GetWindowPlacement
33130
33131 2004-08-17 15:08  jackson
33132
33133         * Panel.cs: Initial checkin of the Panel
33134
33135 2004-08-17 14:25  pbartok
33136
33137         * Control.cs:
33138           - Fixed broken handling of default window sizes
33139
33140 2004-08-17 13:29  jackson
33141
33142         * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
33143           has a large startup time.
33144
33145 2004-08-17 10:25  jackson
33146
33147         * HandleData.cs: union areas properly
33148
33149 2004-08-17 10:12  jackson
33150
33151         * HandleData.cs: union areas properly
33152
33153 2004-08-16 20:00  ravindra
33154
33155         * ToolBar.cs, ToolBarButton.cs: Added attributes.
33156
33157 2004-08-16 18:48  ravindra
33158
33159         * ToolBar.cs: Added attributes.
33160
33161 2004-08-16 17:17  ravindra
33162
33163         * SWF.csproj: Updated project.
33164
33165 2004-08-16 17:16  jackson
33166
33167         * XplatUIX11.cs: Check for more expose events before sending a
33168           WM_PAINT so they can all be grouped together. This makes dragging a
33169           window across another window redraw in a sane way.
33170
33171 2004-08-16 15:47  pbartok
33172
33173         * Control.cs:
33174           - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
33175             support OnMouseEnter/Leave()
33176           - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
33177             exposure handling
33178
33179 2004-08-16 15:46  pbartok
33180
33181         * XplatUIStructs.cs, XplatUIX11.cs:
33182           - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
33183           OnMouseEnter/Leave()
33184
33185 2004-08-16 15:34  jackson
33186
33187         * XplatUIX11.cs: Group multiple expose events in HandleData, make
33188           sure messages get the message field set to WM_NULL if they are not
33189           handled.
33190
33191 2004-08-16 15:24  jackson
33192
33193         * HandleData.cs: HandleData is used for storing message information
33194           for window handles
33195
33196 2004-08-15 17:23  ravindra
33197
33198         * ColorDepth.cs: Added attribute.
33199
33200 2004-08-15 17:23  ravindra
33201
33202         * SWF.csproj: Updated project for ToolBar Control.
33203
33204 2004-08-15 17:20  ravindra
33205
33206         * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
33207           control and also dos2unix format.
33208
33209 2004-08-15 17:13  ravindra
33210
33211         * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
33212           ToolBarButtonClickEventArgs.cs,
33213           ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
33214           ToolBarTextAlign.cs: First Implementation of ToolBar control.
33215
33216 2004-08-15 15:31  pbartok
33217
33218         * ButtonBase.cs:
33219           - First (mostly) working version
33220
33221 2004-08-13 16:15  pbartok
33222
33223         * Control.cs:
33224           - Fixed Anchor default
33225
33226 2004-08-13 15:43  pbartok
33227
33228         * Control.cs:
33229           - Changed GetCursorPos signature
33230
33231 2004-08-13 15:42  pbartok
33232
33233         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
33234           - Changed signature for GetCursorPos
33235
33236 2004-08-13 15:25  pbartok
33237
33238         * XplatUIX11.cs:
33239           - Cleanup
33240           - Fixed resizing/exposure handling
33241
33242 2004-08-13 15:22  jordi
33243
33244         * ThemeWin32Classic.cs: removes redundant code and fixes issues
33245           with tickposition
33246
33247 2004-08-13 14:55  jordi
33248
33249         * TrackBar.cs: change from wndproc to events
33250
33251 2004-08-13 13:00  jordi
33252
33253         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
33254           XplatUIX11.cs: implements PointToClient (ScreenToClient)
33255
33256 2004-08-13 12:53  pbartok
33257
33258         * XplatUIWin32.cs:
33259           - Changed GetWindowPos to also provide client area size
33260           - Fixed broken prototypes for several win32 functions
33261
33262 2004-08-13 12:53  pbartok
33263
33264         * XplatUI.cs, XplatUIDriver.cs:
33265           - Changed GetWindowPos to also provide client area size
33266
33267 2004-08-13 12:52  pbartok
33268
33269         * XplatUIX11.cs:
33270           - Added generation of WM_POSCHANGED
33271           - Changed GetWindowPos to also provide client area size
33272
33273 2004-08-13 12:52  pbartok
33274
33275         * Control.cs:
33276           - Added Dispose() and destructor
33277           - Fixed resizing and bounds calculation
33278           - Fixed Layout
33279           - Added memory savings for invisible windows
33280
33281 2004-08-13 12:46  jordi
33282
33283         * TrackBar.cs: adds timer and grap window
33284
33285 2004-08-13 10:25  jackson
33286
33287         * Timer.cs: SWF Timer
33288
33289 2004-08-12 16:59  pbartok
33290
33291         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
33292           - Implemented method to get current mouse position
33293
33294 2004-08-12 14:29  jordi
33295
33296         * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
33297           enhancement, fix mouse problems, highli thumb, etc
33298
33299 2004-08-12 13:31  pbartok
33300
33301         * Control.cs:
33302           - Fixed Anchoring bugs
33303
33304 2004-08-12 13:01  jackson
33305
33306         * StatusBar.cs: Don't forget things
33307
33308 2004-08-12 12:54  jackson
33309
33310         * ThemeWin32Classic.cs: Handle owner draw status bars
33311
33312 2004-08-12 12:54  jackson
33313
33314         * StatusBar.cs: Implement missing properties, events, and methods.
33315           Handle mouse clicking
33316
33317 2004-08-12 10:19  jackson
33318
33319         * StatusBarPanelClickEventArgs.cs,
33320           StatusBarPanelClickEventHandler.cs: Classes for handling status
33321           bar panel click events
33322
33323 2004-08-12 10:10  jackson
33324
33325         * Control.cs: Add missing properties
33326
33327 2004-08-12 09:46  pbartok
33328
33329         * BindingsManagerBase.cs:
33330           - Name changed to BindingManagerBase.cs
33331
33332 2004-08-12 09:25  jordi
33333
33334         * ScrollableControl.cs: calls ctrlbase instead of exeception
33335
33336 2004-08-11 16:28  pbartok
33337
33338         * InputLanguageChangingEventArgs.cs:
33339           - Never check in before compiling. Fixes the last check-in
33340
33341 2004-08-11 16:26  pbartok
33342
33343         * InputLanguageChangingEventArgs.cs:
33344           - More signature fixes
33345
33346 2004-08-11 16:20  pbartok
33347
33348         * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
33349           Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
33350           ImageListStreamer.cs, InputLanguage.cs,
33351           InputLanguageChangedEventArgs.cs,
33352           InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
33353           LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
33354           ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
33355           XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
33356           - Signature fixes
33357
33358 2004-08-11 16:16  pbartok
33359
33360         * Application.cs:
33361           - Fixed Signature
33362           - Added .Net 1.1 method
33363
33364 2004-08-11 15:25  pbartok
33365
33366         * SWF.csproj:
33367           - Fixed BindingManagerBase.cs filename
33368
33369 2004-08-11 15:22  pbartok
33370
33371         * BindingManagerBase.cs:
33372           - Was checked in with wrong filename
33373
33374 2004-08-11 14:50  pbartok
33375
33376         * SWF.csproj:
33377           - Updated
33378
33379 2004-08-11 13:41  jordi
33380
33381         * XplatUIWin32.cs: Fixes ClientRect
33382
33383 2004-08-11 13:19  pbartok
33384
33385         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
33386           XplatUIX11.cs:
33387           - We had SetWindowPos and MoveWindow to set window positions and
33388             size, removed MoveWindow. We have GetWindowPos, so it made sense to
33389             keep SetWindowPos as matching counterpart
33390           - Added some X11 sanity checking
33391
33392 2004-08-11 12:59  pbartok
33393
33394         * Control.cs:
33395           - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
33396             (It seems that SetBounds is just a front for SetBoundsCore and
33397              SetBoundsCore updates the underlying window system and
33398              UpdateBounds is responsible for updating the variables associated
33399              with the Control and sending the events)
33400           - Major cleanup of Size handling; we now have two sizes, client_size
33401             and bounds. Bounds defines the window with decorations, client_size
33402             without them.
33403
33404 2004-08-11 12:55  pbartok
33405
33406         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
33407           - Added method to calculate difference between decorated window and
33408             raw client area
33409
33410 2004-08-11 12:54  pbartok
33411
33412         * Label.cs:
33413           - Forcing redraw on resize
33414
33415 2004-08-11 11:43  pbartok
33416
33417         * ImageList.cs:
33418           - Removed disposing of the actual images when the list is disposed
33419
33420 2004-08-11 09:13  pbartok
33421
33422         * Control.cs:
33423           - Now properly reparents windows
33424
33425 2004-08-11 08:37  pbartok
33426
33427         * Control.cs:
33428           - Duh!
33429
33430 2004-08-11 07:47  pbartok
33431
33432         * Control.cs:
33433           - Rewrote the collection stuff. Might not be as fast now, not
33434             keeping the number of children around and accessible directly, but
33435             it's more straightforward
33436
33437 2004-08-11 07:44  pbartok
33438
33439         * AccessibleObject.cs:
33440           - Fixed to match ControlCollection rewrite
33441
33442 2004-08-11 07:43  pbartok
33443
33444         * ImageList.cs:
33445           - Added missing creation of the collection list
33446
33447 2004-08-10 20:08  jackson
33448
33449         * StatusBar.cs: Get the paint message from WndProc
33450
33451 2004-08-10 19:31  jackson
33452
33453         * ThemeWin32Classic.cs: Create Brushes as little as possible
33454
33455 2004-08-10 19:20  jackson
33456
33457         * UICues.cs: Add Flags attribute
33458
33459 2004-08-10 19:19  jackson
33460
33461         * StatusBarPanel.cs: Signature cleanup
33462
33463 2004-08-10 19:10  jackson
33464
33465         * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
33466           Initial implementation of status bar item drawing
33467
33468 2004-08-10 17:27  jordi
33469
33470         * TrackBar.cs: add missing methods, properties, and restructure to
33471           hide extra ones
33472
33473 2004-08-10 16:24  jackson
33474
33475         * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
33476           ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
33477           attribute
33478
33479 2004-08-10 13:21  jordi
33480
33481         * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
33482           enhancements and standarize on win colors defaults
33483
33484 2004-08-10 12:52  jackson
33485
33486         * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
33487           ThemeWin32Classic.cs: Implement DrawItem functionality
33488
33489 2004-08-10 12:47  jordi
33490
33491         * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
33492
33493 2004-08-10 12:32  jordi
33494
33495         * Control.cs: throw ontextchange event
33496
33497 2004-08-10 11:43  pbartok
33498
33499         * Control.cs:
33500           - Added more to the still unfinished Dock/Anchor layout code
33501
33502 2004-08-10 11:39  pbartok
33503
33504         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
33505           - Added GetWindowPos method
33506
33507 2004-08-10 11:36  pbartok
33508
33509         * XplatUIWin32.cs:
33510           - Implemented several methods
33511
33512 2004-08-10 09:47  jackson
33513
33514         * TrackBar.cs: Allow control to handle buffering
33515
33516 2004-08-10 09:41  jackson
33517
33518         * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
33519
33520 2004-08-10 09:24  jackson
33521
33522         * Label.cs, LinkLabel.cs: Let Control handle buffering.
33523
33524 2004-08-10 09:09  jackson
33525
33526         * StatusBar.cs: Let Control handle all the buffering.
33527
33528 2004-08-10 09:08  jackson
33529
33530         * Control.cs: Control will now handle the buffering code, so each
33531           control does not have to implement this.
33532
33533 2004-08-10 08:34  jackson
33534
33535         * XplatUIDriver.cs: Use default colors from the theme
33536
33537 2004-08-09 17:12  pbartok
33538
33539         * ImageList.cs:
33540           - Fixed several bugs Ravindra pointed out
33541
33542 2004-08-09 16:11  pbartok
33543
33544         * Control.cs:
33545           - Added incomplete dock layout code
33546           - Added support for mouse wheel
33547
33548 2004-08-09 16:09  pbartok
33549
33550         * XplatUIX11.cs:
33551           - Added handling for middle and right mousebutton
33552           - Added handling for mouse wheel
33553           - Added handling for key state and mouse state and position
33554           - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
33555           messages
33556
33557 2004-08-09 15:40  jackson
33558
33559         * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
33560           StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
33561           checkin
33562
33563 2004-08-09 15:37  jackson
33564
33565         * StatusBar.cs: Initial implementation of StatusBar
33566
33567 2004-08-09 15:36  jackson
33568
33569         * ITheme.cs: Add support for drawing status bar and getting status
33570           bar item sizes
33571
33572 2004-08-09 15:35  pbartok
33573
33574         * MouseButtons.cs:
33575           - Fixed values
33576
33577 2004-08-09 15:34  jackson
33578
33579         * ThemeWin32Classic.cs: Add support for drawing status bar and get
33580           status bar item sizes
33581
33582 2004-08-09 15:21  jackson
33583
33584         * ThemeWin32Classic.cs: Use known colors for default control
33585           colours
33586
33587 2004-08-09 15:12  jackson
33588
33589         * ThemeWin32Classic.cs: Make the default font static, it is static
33590           in control so this doesn't change functionality and creating fonts
33591           is sloooooow.
33592
33593 2004-08-09 14:56  pbartok
33594
33595         * X11Structs.cs:
33596           - Added GrabMode enum
33597
33598 2004-08-09 14:55  pbartok
33599
33600         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
33601           - Removed Run method, was only required for initial development
33602
33603 2004-08-09 14:51  pbartok
33604
33605         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
33606           - Implemented GrabWindow/ReleaseWindow methods to allow pointer
33607           capture
33608
33609 2004-08-09 13:48  pbartok
33610
33611         * XplatUIX11.cs:
33612           - Fixed default sizing for child windows
33613
33614 2004-08-09 12:56  pbartok
33615
33616         * XplatUIX11.cs:
33617           - Added generation of WM_DESTROY message
33618           - Added handling of window manager induced shutdown
33619
33620 2004-08-09 11:31  jackson
33621
33622         * ThemeWin32Classic.cs: New names for control properties
33623
33624 2004-08-09 11:25  jackson
33625
33626         * Control.cs: Use new color names
33627
33628 2004-08-09 11:02  jackson
33629
33630         * XplatUI.cs: Get default window properties from the theme
33631
33632 2004-08-09 11:01  jackson
33633
33634         * ITheme.cs: The theme engine now controls default window
33635           properties
33636
33637 2004-08-09 11:00  jackson
33638
33639         * ThemeWin32Classic.cs: Add default window color properties
33640
33641 2004-08-09 10:17  jackson
33642
33643         * ThemeWin32Classic.cs: Use correct default back color
33644
33645 2004-08-09 10:05  jackson
33646
33647         * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
33648           the theme now.
33649
33650 2004-08-09 09:56  jackson
33651
33652         * XplatUI.cs: Remove defaults, these are handled by the theme now.
33653
33654 2004-08-09 09:54  jackson
33655
33656         * Control.cs: Get default properties from the theme.
33657
33658 2004-08-09 09:53  jackson
33659
33660         * ITheme.cs: Themes now handle default control properties
33661
33662 2004-08-09 09:53  jackson
33663
33664         * ThemeWin32Classic.cs: Themes now handle default control
33665           properties so coloring will be consistent
33666
33667 2004-08-08 16:54  jordi
33668
33669         * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
33670
33671 2004-08-08 15:08  jordi
33672
33673         * XplatUIX11.cs: fixes keyboard crash
33674
33675 2004-08-08 13:47  jordi
33676
33677         * Label.cs: add cvs header info
33678
33679 2004-08-08 12:09  jackson
33680
33681         * ThemeWin32Classic.cs: Add pen_buttonface
33682
33683 2004-08-08 11:52  jordi
33684
33685         * Label.cs, LinkLabel.cs: [no log message]
33686
33687 2004-08-08 11:34  jordi
33688
33689         * ThemeWin32Classic.cs: Use Windows Standard Colours
33690
33691 2004-08-07 17:32  jordi
33692
33693         * TrackBar.cs: throw exceptions of invalid enums values
33694
33695 2004-08-07 17:31  jordi
33696
33697         * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
33698           draw method name
33699
33700 2004-08-07 16:56  jackson
33701
33702         * HorizontalAlignment.cs: Initial checkin
33703
33704 2004-08-07 13:16  jordi
33705
33706         * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
33707           methods
33708
33709 2004-08-07 13:05  jordi
33710
33711         * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
33712           GetSysColor defines
33713
33714 2004-08-06 18:01  pbartok
33715
33716         * ThemeWin32Classic.cs:
33717           - Fixed some rounding issues with float/int
33718
33719 2004-08-06 18:00  jackson
33720
33721         * DockStyle.cs, AnchorStyles.cs:
33722
33723                   Add flags and serializable attributes.
33724
33725 2004-08-06 17:46  pbartok
33726
33727         * XplatUIX11.cs:
33728           - Implemented GetParent
33729
33730 2004-08-06 17:18  pbartok
33731
33732         * TrackBar.cs:
33733           - Fixed some rounding issues with float/int
33734
33735 2004-08-06 17:17  pbartok
33736
33737         * X11Structs.cs, XplatUIX11.cs:
33738           - Fixed Refresh and Invalidate
33739
33740 2004-08-06 15:30  pbartok
33741
33742         * Control.cs, X11Structs.cs, XplatUIX11.cs:
33743           - Fixed recursive loop when resizing
33744           - Improved/fixed redrawing on expose messages
33745
33746 2004-08-06 09:53  jordi
33747
33748         * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
33749           keyboard navigation
33750
33751 2004-08-06 08:02  pbartok
33752
33753         * X11Structs.cs, XplatUIX11.cs:
33754           - Fixed reparenting
33755           - Fixed window border creation
33756
33757 2004-08-05 15:38  pbartok
33758
33759         * XplatUIX11.cs:
33760           - Attempted fix for reparenting problems
33761
33762 2004-08-04 15:14  pbartok
33763
33764         * Control.cs:
33765           - Fixed Invalidation bug (calculated wrong client area)
33766           - Added ClientSize setter
33767
33768 2004-08-04 15:13  pbartok
33769
33770         * Form.cs:
33771           - Added AutoScale properties
33772
33773 2004-08-04 15:13  pbartok
33774
33775         * SWF.csproj:
33776           - Added latest files
33777
33778 2004-08-04 14:11  pbartok
33779
33780         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
33781           XplatUIX11.cs:
33782           - Added Invalidate handling
33783
33784 2004-08-03 17:09  jordi
33785
33786         * XplatUIDriver.cs: fixes spelling mistake
33787
33788 2004-07-27 09:53  jordi
33789
33790         * TrackBar.cs: fixes trackbar events, def classname, methods
33791           signature
33792
33793 2004-07-27 09:29  jordi
33794
33795         * ScrollBar.cs: fixes scrollbar events
33796
33797 2004-07-27 04:38  jordi
33798
33799         * Control.cs: changes to be able to run winforms samples
33800
33801 2004-07-26 11:42  jordi
33802
33803         * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
33804           ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
33805
33806 2004-07-26 05:41  jordi
33807
33808         * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
33809           MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
33810           implementation
33811
33812 2004-07-22 09:22  jordi
33813
33814         * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
33815           check link overlapping, implement events, and fixes
33816
33817 2004-07-21 10:28  jordi
33818
33819         * DialogResult.cs, IButtonControl.cs: fixes comments filenames
33820
33821 2004-07-21 10:19  jordi
33822
33823         * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
33824           LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
33825           LinkLabelLinkClickedEventArgs.cs,
33826           LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
33827           XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
33828           implementation
33829
33830 2004-07-19 13:09  jordi
33831
33832         * Control.cs, Label.cs: label control re-written: added missing
33833           functionlity, events, and properties
33834
33835 2004-07-19 10:49  jordi
33836
33837         * Control.cs: fixes SetBounds logic
33838
33839 2004-07-19 01:29  jordi
33840
33841         * Control.cs: Call RefreshWindow only if the window has created
33842
33843 2004-07-15 14:05  pbartok
33844
33845         * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
33846           - Implemented ImageList and ImageList.ImageCollection classes
33847           - Added ColorDepth enumeration
33848           - Updated SWF VS.Net project
33849
33850 2004-07-15 11:06  jordi
33851
33852         * XplatUIStructs.cs: added MsgButons enum
33853
33854 2004-07-15 11:03  jordi
33855
33856         * Control.cs: added basic mouse handeling events
33857
33858 2004-07-15 03:38  jordi
33859
33860         * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
33861           Vertical TrackBar control implementation
33862
33863 2004-07-13 09:33  jordi
33864
33865         * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
33866
33867 2004-07-13 09:31  jordi
33868
33869         * Control.cs, Form.cs: commit: new properties and fixes form size
33870           problems
33871
33872 2004-07-09 14:13  miguel
33873
33874         * ProgressBar.cs: Spelling
33875
33876 2004-07-09 11:25  pbartok
33877
33878         * ProgressBar.cs:
33879           - Removed usage of Rectangle for drawing. Miguel pointed out it's
33880           faster
33881
33882 2004-07-09 11:17  miguel
33883
33884         * ProgressBar.cs: 2004-07-09  Miguel de Icaza  <miguel@ximian.com>
33885
33886                 * ProgressBar.cs: Fixed spelling for `block'
33887
33888                 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
33889                 style guidelines.
33890
33891                 Avoid using the += on rect.X, that exposed a bug in the compiler.
33892
33893 2004-07-08 23:21  pbartok
33894
33895         * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
33896           AnchorStyles.cs, Application.cs, ApplicationContext.cs,
33897           BaseCollection.cs, Binding.cs, BindingContext.cs,
33898           BindingMemberInfo.cs, BindingsCollection.cs,
33899           BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
33900           BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
33901           ButtonState.cs, CaptionButton.cs, CheckBox.cs,
33902           ContainerControl.cs, Control.cs, ControlEventArgs.cs,
33903           ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
33904           ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
33905           CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
33906           DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
33907           FrameStyle.cs, GiveFeedbackEventArgs.cs,
33908           GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
33909           HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
33910           IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
33911           InputLanguageChangedEventArgs.cs,
33912           InputLanguageChangedEventHandler.cs,
33913           InputLanguageChangingEventArgs.cs,
33914           InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
33915           InvalidateEventArgs.cs, InvalidateEventHandler.cs,
33916           KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
33917           KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
33918           LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
33919           MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
33920           PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
33921           QueryAccessibilityHelpEventArgs.cs,
33922           QueryAccessibilityHelpEventHandler.cs,
33923           QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
33924           RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
33925           ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
33926           ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
33927           TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
33928           UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
33929           XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
33930           XplatUIX11.cs, lang.cs:
33931           - Initial check-in
33932
33933