68f73685adafa53e90969ff17c7b0b605f3ffe90
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
1 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
2
3         * BindingNavigator.cs : fixed bugs revealed by new nunit tests
4
5 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
6
7         * ToolStripDropDownItem.cs: Lazy initialize the DropDown.  This prevents
8         us from created dropdowns for menu items that do not have subitems.
9         * ToolStripItem.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs:
10         Check HasDropDownItems before calling DropDown so a dropdown will not be
11         created if it isn't needed.
12
13 2007-04-24  Jackson Harper  <jackson@ximian.com>
14
15         * TreeView.cs: Set the first node to the selected node when we get
16         focus if there is no selected node.
17
18 2007-04-24  Andreia Gaita  <avidigal@novell.com>
19
20         * MimeIcon.cs: remove using blocks so that image streams are
21         not disposed of. Fixes #80151
22
23 2007-04-24  Jackson Harper  <jackson@ximian.com>
24
25         * TextBoxBase.cs: Fixup the height of textboxes when the control
26         is created.
27
28 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
29
30         * ToolStrip.cs: Fully implement GetNextItem.  Call OnParentRightToLeftChanged
31         for each ToolStripItem when the parent's RightToLeftChanged is called.
32
33 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
34
35         * ComboBox.cs: Forward ContextMenu to the underlying textbox, if any.
36           Fixes #80163.
37         * Control.cs: Replace GetContextMenuInternal() with ContextMenuInternal
38           property, so that the setter can be overriden too.
39         * TextBox.cs: Change GetContextMenuInternal() to use
40           ContextMenuInternal.
41
42 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
43
44         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
45           #81406.
46
47 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
48
49         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
50           #81406.
51
52 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
53
54         * MaskedTextBox.cs: Commit this so nobody else starts working on it and
55           avoid duplicate work. Mostily skeleton code, it's not working at
56           all yet.
57
58 2007-04-20  Leszek Ciesielski <skolima@gmail.com>
59
60         * NotifyIcon.cs : stub for MouseClick event
61         * Application.cs: stub for SetUnhandledExceptionMode
62
63 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
64
65         * BindingNavigator.cs : Initial (partial) implementation
66
67 2007-04-23  Jackson Harper  <jackson@ximian.com>
68
69         * TreeView.cs: Do not create the treeview's handle when setting
70         the scroll position.
71         - ExpandAll needs to compute the scrollbars so it knows which
72         position to set the bar too.
73         * TreeNode.cs: 
74         * TreeNodeCollection.cs: Pass new flag to UpdateScrollBars
75
76 2007-04-23  Jackson Harper  <jackson@ximian.com>
77
78         * TextBoxBase.cs: Non multiline textboxes shouldn't take the enter
79         key. Fixes #81408.
80
81 2007-04-23  Jonathan Pobst  <monkey@jpobst.com>
82
83         * ToolStripItem.cs: Make GetImageSize internal.
84         * ToolStripMenuItem.cs: Use GetImageSize to determine the size we
85         need to draw an item.  Fixes a reported issue where images on menus
86         that were not 16x16 were drawing incorrectly.
87
88 2007-04-21  Miguel de Icaza  <miguel@novell.com>
89
90         * Padding.cs: Use the converter, fixes the resgen2 issue with
91         XMLNotePad. 
92
93 2007-04-21  Jackson Harper  <jackson@ximian.com>
94
95         * TreeView.cs: Dont try to unhighlight the selected node if there
96         isn't a selected node.
97
98 2007-04-21  Jackson Harper  <jackson@ximian.com>
99
100         * UpDownBase.cs:
101         * TextBoxBase.cs:
102         * ListView.cs:
103         * ListBox.cs:
104         * TreeView.cs: Use the InternalBorderStyle property to set the
105         initial border style, this forces the client rectangle to be sized
106         correctly.
107
108 2007-04-20  Jackson Harper  <jackson@ximian.com>
109
110         * TreeView.cs: Simplify scrolling to the last node after expanding
111         all.
112         - Fix some off by ones with setting the bottom.
113
114 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
115
116         * Control.cs: Use DefaultSize for Size, calculate ClientSize from
117         that.  We were incorrectly doing it the other way around.  Also,
118         update ClientSize if we change the BorderStyle before the control
119         is created.
120
121 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
122
123         * XplatUI.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
124         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
125         XplatUIDriver.Caption to CaptionHeight. Spaces to tabs.
126         * XplatUIDriver.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
127         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
128         Caption to CaptionHeight.
129         * XplatUIX11.cs: Renamed Caption to CaptionHeight.
130         * Theme.cs: Modified Border3DSize, BorderSize, CaptionButtonSize
131         and FixedFrameBorderSize to return value from current XplatUI driver.
132         * XplatUIWin32.cs: Implemented Border3DSize, BorderSize,
133         CaptionButtonSize, DragFullWindows, DoubleClickSize, DoubleClickTime
134         and FixedFrameBorderSize using win32 API. Renamed Caption to
135         CaptionHeight.
136         * XplatUIOSX.cs: Renamed Caption to CaptionHeight.
137         * SystemInformation.cs: Fixed typo in BorderSize.
138
139 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
140
141         * XplatUI.cs: Added MenuAccessKeysUnderlined.
142         * XplatUIDriver.cs: Added MenuAccessKeysUnderlined.
143         * XplatUIX11.cs: Implemented MenuAccessKeysUnderlined by always
144         returning false.
145         * Theme.cs: Modified MenuAccessKeysUnderlined to return corresponding
146         value from XplatUI driver.
147         * XplatUIWin32.cs: Implemented MenuAccessKeysUnderlined using
148         SystemParametersInfo.
149         * ThemeWin32Classic.cs: Remove obsolete MenuAccessKeysUnderlined
150         override.
151         * XplatUIOSX.cs: Implemented MenuAccessKeysUnderlind by always
152         returning false.
153
154 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
155
156         * XplatUIX11.cs, Hwnd.cs: Remove warnings.
157
158 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
159
160         * MessageBox.cs, XplatUIX11.cs, Hwnd.cs: Remove warnings.
161
162 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
163
164         * ToolStripManager.cs: Fix a reported InvalidCastException when unmerging
165         MenuStrips that contain ToolStripSeparators.
166
167 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
168
169         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Add
170           DefineStdCursorBitmap.
171         * Cursor.cs: Add an internal constructor so that the Cursor knows if it
172           has been created off a standard cursor. This is used to get a
173           bitmap of the standard cursor when Draw or DrawStretched is called
174           in order to draw the cursor.
175         * X11Structs.cs: Added XcursorImage and XcursorImages.
176         * XplatUIX11.cs, XplatUIWin32.cs: Add and implement
177           DefineStdCursorBitmap.
178         * Cursors.cs: Update all relevant creations of Cursor to use the new
179           internal constructor.
180
181 2007-04-19  Jackson Harper  <jackson@ximian.com>
182
183         * TextBox.cs: Move the has_been_focused into the base control, so
184         some of the text adding methods can manipulate it (probably time
185         for a better name for this flag too).
186         - Call a new version of selectall that doesn't scroll
187         * TextBoxBase.cs: When we append text, if the document is empty,
188         don't scroll.  If the document has text already, we scroll to the
189         end of the appended text.
190         - When the text is changed, we reset the has_been_focused, so the
191         next time the control gets focused, all the text is selected.
192
193 2007-04-19  Jackson Harper  <jackson@ximian.com>
194
195         * TextControl.cs: Move the margins to the document, add a method
196         so the margin sizes can be updated.
197         * TextBoxBase.cs: When the border style is changed, update the
198         border sizes.
199
200 2007-04-19  Jonathan Pobst  <monkey@jpobst.com>
201
202         * Control.cs: Respect DefaultPadding.
203         * GroupBox.cs: Implement DefaultPadding, DisplayRectangle takes
204         padding into account.
205         * ToolStrip.cs: Remove setting padding to DefaultPadding in constructor.        
206
207 2007-04-19  Jackson Harper  <jackson@ximian.com>
208
209         * TextControl.cs: Oops, we need to use the ClientRect not the
210         bounds here.
211
212 2007-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
213
214         * ListView.cs: In ItemControl.ItemsMouseDown, take into
215         account the double clicks when CheckBoxes are used and
216         the pointer is inside the checkbox. Fixes part of #81191.
217
218 2007-04-18  Jackson Harper  <jackson@ximian.com>
219
220         * TextControl.cs: Pressing the end key shouldn't move the caret
221         past the line ending.
222         * TextBoxBase.cs: We can still delete if we are in the line
223         ending and the combine will just kill the existing line ending.
224
225 2007-04-18  Jackson Harper  <jackson@ximian.com>
226
227         * TextControl.cs: We can't move lines, then invalidate their
228         bounds, we need to get the old bounds and combine that with the
229         new bounds.
230         * TextBoxBase.cs: Before combining two lines for a delete, we need
231         to invalidate the area of the old line, since that will be moved
232         in the combine operation.
233
234 2007-04-18  Everaldo Canuto  <everaldo@simios.org>
235
236         * LinkLabel.cs: In OnPaint invoke draw background to fix problems
237         with transparent background. Fixes #80482.
238
239 2007-04-18  Jonathan Pobst  <monkey@jpobst.com>
240
241         * PictureBox.cs: Refresh on resize when SizeMode = Zoom.
242         * ThemeWin32Classic.cs: Implement PictureBox.SizeMode = Zoom.
243         [Fixes bug #81391]
244
245 2007-04-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
246
247         * CreateParams.cs: Add a couple of helper methods and do a less string
248           concatenation in ToString.
249         * XplatUIX11.cs: Add an TranslateClientRectangleToXClientRectangle
250           overload that takes a Control parameter, since this method may be
251           called before a control is assigned to the hwnd (from
252           CreateWindow), and update CreateWindow to use the new overload. In
253           GetMenuOrigin subtract the title bar from the y position if the
254           form has a window manager (since we're painting it and not X).
255         * XplatUIWin32.cs: If we can get a form in GetMenuOrigin use the form's
256           CreateParams to calculate the origin (since border sizes may vary).
257           In ScreenToMenu only subtract the title height if we actually have
258           a title.
259         * MdiWindowManager.cs: Override MenuHeight to always return 0, since
260           mdi children never have menus of themselves.
261         * InternalWindowManager.cs: Implement menu handling like form does.
262           Added GetMenuOrigin to calculate the menu origin, can't use the
263           CreateParams from the form like normally since it's lying.
264         * Hwnd.cs: Implement GetBorderSize better (in the sense more
265           windows-like) and add Inflate and comparison operators to the
266           Borders type. When calculating MenuOrigin and it's a form with a
267           window manager, use the window manager to calculate it.
268
269 2007-04-17  Chris Toshok  <toshok@ximian.com>
270
271         * Control.cs (CreateControl): turns out in 2.0 we don't need this
272         OnBindingContextChanged thing here.  It's only generated from
273         ContainerControl.OnCreateControl.  Fixes a newly written unit test
274         - BindingTest.BindingContextChangedTest4.
275         
276 2007-04-17  Jackson Harper  <jackson@ximian.com>
277
278         * ScrollBar.cs: When setting values, make sure the current
279         position stays within the new values range.
280
281 2007-04-17  Chris Toshok  <toshok@ximian.com>
282
283         * Control.cs (CreateControl): talk about a bizarre corner case.
284         Don't emit OnBindingContextChanged here if we're a parentless
285         control (i.e. if we're a form.).  Fixes
286         BindingTest.BindingContextChangedTest2.
287
288 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
289
290         * ButtonBase.cs: Remove TextFormatFlags.WordBreak to mimic same behavior 
291         from win32. Fixes #81255.
292
293 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
294
295         * ThemeWin32Classic.cs: Remove text offset from DrawButtonText as it is
296         already present in CalculateButtonTextAndImageLayout.
297
298 2007-04-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
299
300         * XplatUIX11.cs: When setting min/max size for a window we need to
301           translate the coordinates to x coordinates. Create an overload of
302           SetWindowMinMax that takes a CreateParams handling this, and change
303           SetWMStyles to call this function (can't use Control.FromHandle in
304           the SetWindowMinMax to get the control/CreateParams from the handle
305           because the handle might not have been assigned to the control
306           yet). Fixes #81371.
307
308 2007-04-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
309
310         * ListView.cs: In ItemControl.ItemMouseDown, don't change check state
311         if StateImageList is non-null and it has less than two items (match MS
312         behaviour). Also, in HandleNavKeys handle the Space key, calling
313         the new ToggleItemsCheckState method, which tries to change the
314         checked state of the selected items. Fixes part of #81191.
315
316 2007-04-16  Jackson Harper  <jackson@ximian.com>
317
318         * RichTextBox.cs: namespace cleanup.
319
320 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
321
322         * XplatUIWin32.cs: Back last parameter to true in SetClipRegion.
323
324 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
325
326         [Fixes #79447]
327         * Control.cs: Call invalidate in set_Region.
328
329         * XplatUIX11.cs, XplatUIWin32.cs: Remove invalidate from SetClipRegion as
330         it dont works here.
331
332 2007-04-16  Jackson Harper  <jackson@ximian.com>
333
334         * TextBoxBase.cs: When enter is pressed, we need to update all
335         lines below the current.
336
337 2007-04-16  Jonathan Pobst  <jpobst@monkey.com>
338
339         * MdiClient.cs: Implement implicit menu merging for MDI
340         children.  When a child form is active, if it has a menustrip
341         and the parent form has a MainMenuStrip, automatically merge
342         the menus.
343
344 2007-04-15  Andreia Gaita  <avidigal@novell.com>
345
346         * TabControl.cs: Refactored sizing methods to not repeat
347         code all over the place. Tab bounds are now calculated
348         as if alignment is top and single line, and only when 
349         setting the bounds are the positions adjusted according
350         to alignment. Replaced hardcoded positions, spacings and
351         paddings by getting the values the ThemeEngine. 
352         Fixes #79619.
353         
354         * Theme.cs: Change TabControl properties and methods so
355         that all start with TabControl*. Added more properties
356         to help remove hardcoded values on tabcontrol.
357         Add CPDrawBorder3D declaration so the Theming classes
358         can access it.
359         
360         * ThemeClearlooks.cs, ThemeNice.cs: Method signature changes from Theme.
361
362         * ThemeWin32Classic.cs: Rector TabControl out to the TabControlPainter
363         on the Theming namespace, and call the appropriate methods here.
364         Change CPDrawBorder3D to public.
365
366 2007-04-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
367
368         * Control.cs: In WmRButtonUp, send the WM_CONTEXTMENU message to
369         the control after firing the OnMouseUp event, instead of sending
370         the message before the mentioned event. This is so we can match the
371         MS behaviour. Fixes part of #80385.
372
373 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
374
375         * ToolStripItem.cs: Call the RightToLeftChanged event when setting the
376         RightToLeft property.
377
378 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
379
380         * ToolStrip.cs: Add properties and internal methods to support merging.
381         * ToolStripItem.cs: Add MergeAction and MergeIndex.
382         * ToolStripItemCollection.cs: Add Insert and Remove methods that do
383         not trigger reparenting or layouts.
384         * ToolStripManager.cs: Add Merge and RevertMerge methods.
385         * ToolStripOverflow.cs: Add a convenience method to find the ToolStrip that
386         is hosting the overflow menu.
387
388 2007-04-13  Jackson Harper  <jackson@ximian.com>
389
390         * TextControl.cs: Set the line ending correctly for the first
391         inserted line.
392
393 2007-04-13  Sebastien Pouliot  <sebastien@ximian.com>
394
395         * Theme.cs: Update GetMethod to get the new definition for 
396         KnownColors.Update (and fix theme color updates).
397
398 2007-04-12  Everaldo Canuto  <everaldo@simios.org>
399
400         * MessageBox.cs: Fix some test and button position.
401
402 2007-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
403
404         * Form.cs: Consider the implicit controls in
405         GetRealChildAtPoint. We need it since this method
406         is called on Form when handling the some messages in
407         WndProc, and need to consider those implicit ones too.
408         Fixes #80385.
409
410 2007-04-12  Jonathan Pobst  <monkey@jpobst.com>
411
412         * ToolStripMenuItem.cs: Display the ShortcutKeyDisplayString even
413         if there are no ShortcutKeys set.
414         * ToolStripProfessionalRenderer.cs: If an item has had its BackColor
415         set, use it when painting.
416
417 2007-04-12  Jackson Harper  <jackson@ximian.com>
418
419         * TextControl.cs: Fix some off-by-one issues in line duplication
420         and insertion in the undo manager. Also, overwrite the first tag
421         of a line on insert, if it is just a zero lengthed tag. This
422         prevents us from getting an extra stranded tag at the beginning of
423         the first line.
424
425 2007-04-11  Everaldo Canuto  <everaldo@simios.org>
426
427         * Label.cs: Remove check for handle created in CalcAutoSize, we need 
428         to calculated proper size including when handle was not created yet.
429
430 2007-04-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
431
432         * MdiWindowManager.cs: When moving a form, allow the form to be moved
433           when the mouse is outside of it's parent's client rectangle. Fixes
434           #79982 (take 3, part 2).
435
436 2007-04-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
437
438         * X11Structs.cs: Add a few ToString() overrides.
439         * XplatUIX11.cs: Added GetTopLevelWindowLocation to try to calculate
440           the window location in a window-manager independent way. Reworked
441           FrameExtents, it now actually works. Reworked AddConfigureNotify
442           and ReparentNotify handling to use GetTopLevelWindowLocation
443           instead of the earlier, more hacky solution. Reworked SetWMStyles,
444           hopefully for the better: we now set _NET_WM_WINDOW_TYPE* for all
445           windows, DIALOG for modal windows, UTILITY for toolboxes and NORMAL
446           for all other windows (fixes #81281 part 1), a toolwindow is hidden
447           from the taskbar if it has a parent (fixes #81281 part 2 for kwin),
448           and generally refactored to do as few calculations as possible
449           inside the lock.
450
451 2007-04-09  Sebastien Pouliot  <sebastien@ximian.com>
452
453         * Theme.cs: Change "reflective-contract" between MWF and SD to 
454         minimize # of calls, avoid Color serialization and avoid updating 
455         every "known colors" each time a single one is updated.
456
457 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
458
459         * DataGridTextBoxColumn.cs: Only set IsInEditOrNavigateMode to false
460         when not readonly and the text is explicitly set. Code style updates.
461         * DataGridTableStyle.cs: Removed extra line.
462         * DataGrid.cs: Code style updates. Removed extra whitespace.
463         * DataGridColumnStyle.cs: Code style updates. Removed extra 
464         whitespace.
465
466 2007-04-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
467
468         * XplatUIX11.cs: Added comment that "fixes" #80021.
469
470 2007-04-09  Jackson Harper  <jackson@ximian.com>
471
472         * TextControl.cs: We don't need this -1 on the line count anymore.
473
474 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
475
476         * DataGridTextBoxColumn.cs: In Commit, use TypeConverter to convert
477         entered value to underlying type, and convert it back to a string to
478         apply formatting. Modified GetFormattedValue to use TypeConverter
479         if available.
480
481 2007-04-08  Gert Driesen  <drieseng@users.sourceforge.net>
482
483         * ListViewItem.cs: Added null checks. Avoid duplicating code in ctors.
484         Use SubItems property when we want to ensure there's at least one
485         subitem. Modified SubItems property to ensure there's always at least
486         one subitem. Avoid using ListViewSubItemCollection.AddRange to match
487         the NRE's reported by MS.
488
489 2007-04-07  Gert Driesen  <drieseng@users.sourceforge.net>
490
491         * ProgressBar.cs: On 2.0 profile, default forecolor is Highlight. Added
492         ResetForeColor override on 2.0. Fixed a few API compatibility issues.
493         Spaces to tabs. Removed extra tabs.
494
495 2007-04-06  Jonathan Pobst  <monkey@jpobst.com>
496
497         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
498         infinite loop.  (Forgot to copy to the horizontal toolstrip case.)
499
500 2007-04-06  Jackson Harper  <jackson@ximian.com>
501
502         * TextBoxBase.cs: When a delete removes a line, recalculate all
503         lines below that line (they need to get offsets setup correctly)
504         and invalidate.
505
506 2007-04-05  Jackson Harper  <jackson@ximian.com>
507
508         * TextControl.cs: We need to invalidate across the width of the
509         document when we are invalidating multiple lines.
510         * TextBoxBase.cs: Don't delete into the line ending.
511
512 2007-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
513
514         * ListView.cs: Restore the check for the MouseHover event
515         in ListView. It looks like the ListView fires more than one MouseHover
516         event when HoverSelection is true  _only_ in weird-corner scenarios, but
517         in most of the cases it only fires one. Also, add the 2.0 ItemMouseHover
518         event.
519
520 2007-04-05  Mike Kestner  <mkestner@novell.com>
521
522         * ListView.cs : raise MouseDown before updating selection.
523         [Fixes #80373 tab 1&3]
524
525 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
526
527         * ToolStripRenderer.cs: Add static method to mirror image.
528         * ToolStripProfessionalRenderer.cs: Support ImageTransparentColor
529         and RightToLeftAutoMirrorImage.
530         * ToolStripItem.cs: Remove MonoTODO from ImageTransparentColor.
531
532 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
533
534         * ToolStripSplitStackLayout.cs: Support Alignment property.
535         * ToolStripItem.cs: Remove MonoTODO from the Alignment property.
536
537 2007-04-05  Jackson Harper  <jackson@ximian.com>
538
539         * TextControl.cs: Move around the line endings when crossing line
540         boundaries.
541         - When combining lines, strip the ending text off the first line.
542
543 2007-04-05  Jackson Harper  <jackson@ximian.com>
544
545         * TextControl.cs:
546         * TextBoxBase.cs: Try to never move the cursor into the line
547         ending.
548         
549 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
550
551         * ToolStripItem.cs: Make sure we aren't firing mouse events when
552         the item is disabled.  Also add a few missing methods.
553
554 2007-04-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
555
556         * ListView.cs: We don't need the MouseEnter/MouseLeave check
557         to fire just one MouseHover event when HoverSelection is true, since
558         .Net does fire more than one MouseHover event in that scenario. Also,
559         fix the selection in HoverSelection, by invoking UpdateMultiSelect
560         if MultiSelect is true, instead of only setting ListViewItem.Selected.
561         Finally, we need to reset the Hover logic in MouseMove, even when we
562         don't have a selected item.
563
564 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
565
566         * ToolStrip.cs: Add several missing methods, properties, and events.
567
568 2007-04-04  Chris Toshok  <toshok@ximian.com>
569
570         * DataGridTextBoxColumn.cs: set the bounds of the text box to
571         (0,0,0,0) in Commit, as MS does.
572
573         * DataGrid.cs: call EndEdit() from Select() as microsoft does, and
574         make sure we set CurrentRow on a row header click *before* calling
575         Select.  This moves the current cell (and the textbox) to the new
576         row.  The call to Select then hides the textbox, giving us the
577         correct behavior.  Fixes #80362.
578
579         * CurrencyManager.cs (UpdateIsBinding): raise ItemChanged (-1).
580         (ListChangedHandler): reorder the position/current changed events,
581         and call UpdateIsBinding in the ItemAdded case.
582
583         * GridColumnStylesCollection.cs: add some columns events, one of
584         which raises the CollectionChanged event.
585
586 2007-04-04  Jackson Harper  <jackson@ximian.com>
587
588         * TextControl.cs: When we delete multiple selection lines
589         invalidate the selection area, don't need to do that for single
590         lines because the final update view will handle it.
591
592 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
593
594         * Control.cs: When we CreateControl, we need to also create all of the
595         control's children.  The child's OnLoad must also fire before the parent's
596         OnLoad.  Fixes the toolbox size in PDN.
597
598 2007-04-04  Jackson Harper  <jackson@ximian.com>
599
600         * TextBoxBase.cs: When the user presses enter, insert a line
601         ending into the text. (Maybe this would be a good spot for
602         Environment.NewLine).
603         * TextControl.cs: Remove undo manager hack, line endings get
604         inserted properly now.
605         
606 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
607
608         * MenuAPI.cs: 
609         - Remove unneeded parameters in UpdateCursor.
610         - Fix UpdateCursor to check if menu is active.
611         - Call UpdateCursor when menu deactivate my click.
612         [Fixes remaining issues from #80410]
613
614 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
615
616         * Control.cs: GetRealChildAtPoint method added, it make an
617         recursive child control search for the point. 
618
619         * Form.cs: Makes use of GetRealChildAtPoint in mouse event after closes
620         menu.
621
622         * MenuAPI.cs: Makes use of GetRealChildAtPoint in UpdateCursor.
623
624 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
625
626         * Form.cs: Fix mouse position when send back mouse event after closes
627         menu.
628
629 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
630
631         * Form.cs: Simplify the BUTTONDOWN for active tracker.
632
633 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
634
635         * Control.cs: Fix an issue where if a user resized a control inside
636         a sizing method like OnResize, we would overwrite their explicit
637         value.  Also, only call DefaultSize once in the constructor instead
638         of 4 times.  Also, do not call SetBoundsCore from SetBounds if 
639         nothing actually changed.
640
641 2007-04-03  Jackson Harper  <jackson@ximian.com>
642
643         * TextControl.cs: Don't attempt to copy text for lines with no
644         text in them (technically this shouldn't happen, but we aren't
645         always inserting line endings when we should be).
646
647 2007-04-03  Jackson Harper  <jackson@ximian.com>
648
649         * TextBoxBase.cs: Calculate the scrollbars before calculating the
650         document, because this sets some of the document size properties
651         that are needed.
652
653 2007-04-03  Jackson Harper  <jackson@ximian.com>
654
655         * TextBoxBase.cs: We need to calculate maximums even if this is
656         not a multiline control, because the maxs are used for scrolling.
657         - Display the caret after doing a page up/down, we need to
658         manually display it because a proper CaretMoved event isn't
659         triggered (this is because of the way the math is done to
660         determine how far to scroll).
661
662 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
663
664         * ToolBar.cs: Fix some breakage caused by the SetBoundsCore change.
665         (ToolBar was relying on SetBoundsCore to default the values sent 
666         base off of BoundsSpecified.)
667
668 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
669
670         * DateTimePicker.cs: Change Text so that when a null value or empty
671           string is assigned to the test we always raise ValueChanged and
672           TextChanged (earlier implementation would only raise ValueChanged
673           if the current date value was different from DateTime.Now).
674
675 2007-04-03  Andreia Gaita <avidigal@novell.com> 
676
677         * ButtonBase: Call update after invalidation, fixes #80194
678
679 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
680
681         * ThemeWin32Classic.cs: Draw StatusBar using double buffering. Fixes
682           #79335.
683
684 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
685
686         * XplatUIX11.cs: SetWMStyles: If the control is a form with
687           FormBorderStyle = None, don't give the window any decorations.
688           Fixes #81276.
689
690 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
691
692         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
693         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style
694           to check for is a mix of several styles (such as WS_CAPTION for
695           instance).
696         * Control.cs: Don't paint an area bigger than the client area when
697           painting the background colour. Add an internal GetCreateParams.
698           Update calls to XplatUI.CalculateWindowRect due to API change.
699         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole
700           window's size, and handle WM_NCCALCSIZE in DefWndProc to calculate
701           the size if it hasn't been handled by any windows. When creating
702           and moving windows, X wants the location of the entire window, but
703           the size of the client window, so add
704           TranslateClientRectangleToXClientRectangle,
705           TranslateWindowSizeToXWindowSIze and
706           TranslatedXWindowSizeToWindowSize to cope with this, and call them
707           before every window creation and move. Update CalculateWIndowRect
708           to use Hwnd.GetWindowRect (one step towards removing DeriveStyles).
709           In AddConfigureNotify don't do anything if the hwnd is a zombie
710           (fixes the BadWindow we were getting while running the tests),
711           always calculate the offsets when it's a parentless window, not
712           only when reparented, and translate the window size, since we're
713           getting the client size of the whole window, excluding entire
714           window.
715         * Theme.cs: Added BorderSizableSize.
716         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
717           anymore. Update calls to XplatUI.CalculateWindowRect due to API
718           chang
719         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API
720           change. Fake the window styles here instead of in XplatUIWin32 so
721           that all back-ends get the same window styles (and it's Form that's
722           deciding when to use wm, not the Win32 backend anyways)
723         * Hwnd.cs: Completely reworked GetWindowRectangle and
724           GetClientRectangle - they are now passed a CreateParams and they
725           only use Style and ExStyle to determine the rectangles (they should
726           now work just like Win32AdjustWindowRectEx - though quite a few
727           special cases are probably missing). They should also be 100%
728           complimentary (i.e. GetWindowRectangle (GetClientRectangle (rect))
729           == rect), and all numbers (borders, menu sizes) are taken from the
730           current theme. Added a GetBorders helper function that will return
731           the borders for any given CreateParams (including captions and
732           menus), and GetBorderSize that returns the given border size only.
733         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
734           Hwnd.GetClientRectangle.
735
736 2007-04-02  Chris Toshok  <toshok@ximian.com>
737
738         * DataGridBoolColumn.cs: rewrite things a bit, and fix up the
739         logic between the values we present to the user and the values
740         which are stored in the column's property.  Also, don't call
741         GetPreferredSize - it's virtual. Along the way, fix bug #80965.
742
743 2007-04-02  Jackson Harper  <jackson@ximian.com>
744
745         * TextBoxBase.cs: Scroll faster!
746
747 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
748
749         * StatusStrip.cs: Layout fixes for PDN.
750         * ToolStrip.cs: Set item's available to true, and placement to main when
751         added.
752         * ToolStripItem.cs: Fix an Available issue, check that Parent is really
753         changing in setter before doing any work, add InternalVisible.
754         * ToolStripPanel.cs: Remove unused variable to fix compiler warning.
755         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
756         infinite loop.
757
758 2007-04-02  Jackson Harper  <jackson@ximian.com>
759
760         * TextBox.cs: LBUTTON does not make the textbox select all of it's
761         text on focus.
762
763 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
764
765         * XplatUIWin32.cs: Use the previous change in SetParent for forms only.
766           Makes ToolStripComboBoxes show up again.
767
768 2007-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
769
770         * ListView.cs: Add a hover_pending field in ListView
771         to fire just one OnMouseHover event for each MouseEnter/MouseLeave
772         cycle (we are resetting the MouseHover logic in XplatUI
773         to handle HoverSelection). Fixes #80429.
774
775 2007-04-02  Jackson Harper  <jackson@ximian.com>
776
777         * TextControl.cs: Make sure the attributes get set on the last
778         tag.
779         - Still have to do the end tag if we have stepped all the ways to
780         the end.
781
782 2007-04-02  Sebastien Pouliot  <sebastien@ximian.com>
783
784         * XplatUIOSX.cs, XplatUIX11.cs, XplatUIX11GTK.cs: Remove dependency
785         on an internal libgdiplus call when the information is already 
786         available via the public API.
787
788 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
789
790         * Control.cs: Call ContainerControl.ChildControlRemoved whenever a
791           control is removed from a control collecftion.
792         * XplatUIX11.cs: The first location for toplevel form is (22, 22).
793           Fixes FormPropertyTest (failed on rare occasions).
794         * XplatUIWin32.cs: Add a workaround in SetParent for strange behaviour
795           of Win32SetParent (when changing from no parent to a parent it
796           might add the new parent's location in screen coordinates to this
797           window's location).
798         * Form.cs: Rework ChangingParent once again, now the handle is
799           recreated whenever a FormWindowManager is added or removed (that is
800           whenever a normal form is parented or abandoned). Also change
801           CreateParams so that all non-toplevel windows always get the
802           specified sice (StartupPosition is never considered for
803           non-TopLevel forms).
804         * ContainerControl.cs: Add ChildControlRemoved, the container control
805           needs to be notified when a control is removed from it's
806           collection, in the case the removed control is the active control.
807
808 2007-04-02  Jackson Harper  <jackson@ximian.com>
809
810         * RichTextBox.cs: Use the new methods for setting the font and
811         color, these methods set the specified attribute without
812         overriding the other attributes.
813
814 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
815
816         * ToolStripPanel.cs: Fixes for better layouts in PDN.
817
818 2007-03-31  Gert Driesen  <drieseng@users.sourceforge.net>
819
820         * TextBox.cs: Added internal ChangeBackColor method to special-case
821         Color.Empty. Added check for invalid ScrollBars value.
822         * TextBoxBase.cs: Added internal ChangeBackColor method.
823         * RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added
824         internal ChangeBackColor method to special-case Color.Empty. Added
825         check for invalid ScrollBars value.
826
827 2007-03-30  Everaldo Canuto  <everaldo@simios.org>
828
829         * MenuItem.cs: On invalidate prevent form to create handle. [Fixes #81272]
830
831 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
832
833         * ScollableControl.cs: Add HorizontalScroll and VerticalScroll properties.
834         * ScrollProperties.cs, HScrollProperties.cs, VScrollProperties.cs: Added.
835         [Based on submitted patch from Olivier Duff.]
836
837 2007-03-30  Jackson Harper  <jackson@ximian.com>
838
839         * TextBox.cs: Only select all on initial focus if the user has not
840         specified a selection area.
841
842 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
843
844         * UserControl.cs: Override CreateParams.
845
846 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
847
848         [ Fixes #80995 ]
849
850         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
851         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style to
852           check for is a mix of several styles (such as WS_CAPTION for instance).
853         * Control.cs: Don't paint an area bigger than the client area when painting
854           the background colour. Add an internal GetCreateParams. Update calls to
855           XplatUI.CalculateWindowRect due to API change.
856         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole window's
857           size, and handle WM_NCCALCSIZE in DefWndProc to calculate the size if it
858           hasn't been handled by any windows. When creating and moving windows, X
859           wants the location of the entire window, but the size of the client
860           window, so add TranslateClientRectangleToXClientRectangle,
861           TranslateWindowSizeToXWindowSIze and TranslatedXWindowSizeToWindowSize
862           to cope with this, and call them before every window creation and move.
863           Update CalculateWIndowRect to use Hwnd.GetWindowRect (one step towards
864           removing DeriveStyles). In AddConfigureNotify don't do anything if the
865           hwnd is a zombie (fixes the BadWindow we were getting while running the
866           tests), always calculate the offsets when it's a parentless window, not
867           only when reparented, and translate the window size, since we're getting
868           the client size of the whole window, excluding entire window.
869         * Theme.cs: Added BorderSizableSize.
870         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
871           anymore. Update calls to XplatUI.CalculateWindowRect due to API change.
872         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API change.
873           Fake the window styles here instead of in XplatUIWin32 so that all
874           back-ends get the same window styles (and it's Form that's deciding when
875           to use wm, not the Win32 backend anyways)
876         * Hwnd.cs: Completely reworked GetWindowRectangle and GetClientRectangle -
877           they are now passed a CreateParams and they only use Style and ExStyle
878           to determine the rectangles (they should now work just like
879           Win32AdjustWindowRectEx - though quite a few special cases are probably
880           missing). They should also be 100% complimentary (i.e. GetWindowRectangle
881           (GetClientRectangle (rect)) == rect), and all numbers (borders, menu
882           sizes) are taken from the current theme. Added a GetBorders helper
883           function that will return the borders for any given CreateParams
884           (including captions and menus), and GetBorderSize that returns the given
885           border size only.
886         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
887           Hwnd.GetClientRectangle.
888
889 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
890
891         * Form.cs: Don't layout mdi children on MdiParent creation, the initial
892           layout of the mdi children is handled by CreateParams. Fixes
893           #79964,
894
895 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
896
897         * MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is
898         processed.
899
900         * Form.cs: When active tracker mouse down is not processed, send event 
901         back to control inside mouse position. [Fixes #81227]
902
903 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
904
905         * ComboBox.cs: Override the ComboListBox's ActivateOnShow property and
906         remove WS_VISIBLE from CreateParams to prevent combobox dropdowns from
907         stealing focus from the active form on Windows.  (Control will be made
908         visible in ShowWindow.)
909
910 2007-03-29  Mike Kestner  <mkestner@novell.com>
911
912         * ImageList.cs : add internal Changed event.
913         * ListView.cs : hook up to StateImageList.Changed to perform
914         invalidations when the the state icon list changes. [Fixes #81191]
915
916 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
917
918         * ToolTip.cs: Override the ToolTipWindow's ActivateOnShow property
919         to prevent tooltips from stealing focus from the active form on Windows.
920
921 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
922
923         * ThemeWin32Classic.cs: Small stetic fixes in notifyicon balloon. 
924
925         * ThemeClearlooks.cs: Implement notifyicon balloon for clearlooks theme.
926
927 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
928
929         * NotifyIcon.cs, ThemeWin32Classic.cs: Icon support added to notifyicon
930         balloons.
931
932 2007-03-29  Jackson Harper  <jackson@ximian.com>
933
934         * TextControl.cs: When deleting text from non multiline textboxes,
935         we need to update the entire document, because line offsets will
936         be shifting.
937
938 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
939
940         * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method
941         added to theme, now we can create themes that uses diferent notify engines
942         like notification-daemon from galago project or growl for Mac OS.
943
944 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
945
946         * NotifyIcon.cs: Prevent Balloon to show in task bar.
947
948 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
949
950         * XplatUIX11.cs: Prevent system to open more than one balloon.
951
952         * NotifyIcon.cs: Prevent system to open more than one balloon and remove
953         some compiler warning messages.
954
955 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
956
957         [Fixes #79149]
958
959         * XplatUIX11.cs: Implement SystrayBalloon for X11 systems.
960
961         * ThemeWin32Classic.cs, Theme.cs: DrawBalloonWindow and BalloonWindowRect 
962         implemented, this methods is used by NotifyIcon.BalloonWindow class.
963
964         * NotifyIcon.cs: BalloonWindow class added to support Balloon in X11 
965         systems.
966
967 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
968
969         * ListViewItem.cs: Forgot to make Invalidate internal.
970
971 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
972
973         * ListView.cs: Add a InvalidateSelection method to
974         invalidate methods which are currently selected, and call
975         it when setting FullRowSelect and HideSelection, instead of
976         calling Redraw.
977
978 2007-03-28  Chris Toshok  <toshok@ximian.com>
979
980         * XplatUIX11.cs (UnmapWindow): reindent this block.
981
982         * DataGrid.cs (UpdateSelectionAfterCursorMove): we need to update
983         the selection_start if we're moving the selection (that is, not
984         extending it). Fixes bug #80461.
985
986 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
987
988         * ProgressBar.cs: Make the default MarqueeAnimationSpeed = 100.
989         * ToolStripPanel.cs: Fix RowMargin, Renderer, RenderMode, and
990         create private ControlCollection.
991
992 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
993
994         * Control.cs: We need to call OnVisibleChanged for our implicit
995         children as well as our normal children.  Fixes scrollbars in
996         comboboxes not showing up.
997
998 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
999
1000         * Control.cs, Form.cs: Anywhere we call CreateHandle, we need to do
1001         the check for IsHandleCreated first.  The check in CreateHandle is not
1002         good enough because CreateHandle can be overriden, and the override 
1003         should not be called if the handle is already created.
1004
1005 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
1006
1007         * ToolStrip.cs: Remove MonoTODO for tooltips.
1008         * ToolStripComboBox.cs: Fix MonoTODO for DropDownHeight and events.
1009         * ToolStripContainer.cs: Add custom ControlCollection class.
1010         * ToolStripContentPanel.cs: Fix Renderer setting to match MS behavior.
1011         * ToolStripDropDown.cs: Add some missing properties/methods.
1012         * ToolStripDropDownMenu.cs: Override OnLayout and SetDisplayedItems.
1013         * ToolStripItem.cs: Remove MonoTODO for tooltips.
1014         * ToolStripManager.cs: Add IsShortcutDefined.
1015         * ToolStripOverflow.cs: Override LayoutEngine.
1016         * ToolStripProgressBar.cs: Add MarqueeAnimationSpeed.
1017         * ToolStripSeparator.cs: Add ImageKey.
1018
1019 2007-03-28  Jackson Harper  <jackson@ximian.com>
1020
1021         * TextControl.cs: If a char delete removes a line ending, we need
1022         to update the ending style.
1023         - Make sure the line ending calcs get called.
1024
1025 2007-03-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1026
1027         * XplatUIX11.cs: CreateWindow: Remove old default form location code,
1028           it was making the new code not work. Fixed a typo in the new code
1029           as well. Fixes #79826.
1030
1031 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
1032
1033         * XplatUIWin32.cs:
1034         - NIF_STATE and NIF_INFO added to NotifyIconFlags.
1035         - NOTIFYICONDATA properties sizes fixed, szTip is 128, not 64.
1036         - SystrayBalloon method implemented.
1037         [Add support for notifyicon balloon on win32, #79149]
1038
1039 2007-03-27  Mike Kestner  <mkestner@novell.com>
1040
1041         * ThemeWin32Classic.cs : update StateImageList selection to mirror
1042         the ms behavior when only one image is added to the list.
1043         [Fixes #81191]
1044
1045 2007-03-27  Jackson Harper  <jackson@ximian.com>
1046
1047         * TextControl.cs: Improvements to non multiline line ending
1048         drawing/measuing.
1049
1050 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
1051
1052         * XplatUIX11.cs: Fix the time which tooltip is opened for NotifyIcon. 
1053
1054 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
1055
1056         * NotifyIcon.cs: 
1057         - Balloon message handling added.
1058         - Call XplatUI.SystrayBalloon in ShowBalloonTip. 
1059
1060         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
1061         XplatUIOSX.cs, XplatUIX11-new.cs: ShowBalloonTip method renamed 
1062         to SystrayBalloon to me like other Systray method, also a
1063         handle parameter added.
1064
1065 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1066
1067         * ListView.cs: Show scrollbars even when items.Count == 0
1068         but the columns Width is bigger than the ListView.Width.
1069         Also, when columns.Count == 0 set layout_wd and layout_ht
1070         to the ClientRectangle values, so we don't show any scrollbar
1071         in that case.
1072
1073 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
1074
1075         * XplatUIStructs.cs: Balloon (NIN_BALLOON*) constants added.
1076
1077 2007-03-27  Jackson Harper  <jackson@ximian.com>
1078
1079         * RichTextBox.cs: The RTF library decodes the text properly for us
1080         now.
1081
1082 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1083
1084         * ListView.cs: Display HeaderControl even when columns.Count == 0.
1085         * ThemeWin32Classic.cs: Use SystemBrushes.Control to draw the
1086         ListView header (HeaderControl), instead of Control.BackColor.
1087
1088 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
1089
1090         * Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
1091         Fixes tab control issues where controls would not show up because they
1092         never received their OnVisibleChanged call.
1093
1094 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
1095
1096         * NotifyIcon.cs: Balloon events added (BalloonTipClicked, BalloonTipClosed,
1097         BalloonTipShown).
1098
1099 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
1100
1101         * Control.cs: We won't get a WM_SHOWWINDOW when we create a window that
1102         is maximized or minimized, so move CreateControl to Control.OnVisibleChanged.
1103         * Form.cs: After we set the form visible, send a fake WM_SHOWWINDOW if we
1104         are max or min.  Remove WS_VISIBLE from CreateParams unless we are recreating
1105         the handle.  Fix WindowState by using the internal variable until we are 
1106         sure that we've been shown.
1107         * XplatUIX11.cs: Do not generate a WM_SHOWWINDOW message if new form is
1108         max or min.
1109         [Fixes bug #81198]
1110
1111 2007-03-27  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1112
1113         * XplatUIX11.cs: Windows without WS_CAPTION can still get decorations
1114           (at least borders). Fixes #79386 on Linux (with a small difference
1115           in behaviour: when trying to resize a caption-less window metacity
1116           shows the sysmenu. Resizing is still possible though).
1117         * XplatUIWin32.cs: When setting window styles send request an extra
1118           WM_NCCALCSIZE when it's a form without title (due to no text and no
1119           caption), since Win32 seems to calculate it wrong the first time we
1120           get the message, though the second time things work as they should.
1121         * Form.cs: Reorder a few statements in ChangingParent, otherwise the
1122           newly reparented window might show up unparented. Update
1123           CreateParams to exclude WS_DLGFRAME if ControlBox is false and
1124           there's no title text. Fixes #79386.
1125
1126 2007-03-27  Mike Kestner  <mkestner@novell.com>
1127
1128         * ListBox.cs : don't perform invalidations if the handle hasn't been
1129         created.  [Fixes #80753]
1130
1131 2007-03-27  Mike Kestner  <mkestner@novell.com>
1132
1133         * ListBox.cs : don't adjust top item when SelectedIndex is set to -1.
1134         [Fixes #80428]
1135
1136 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
1137
1138         * XplatUIWin32.cs: Complete NOTIFYICONDATA structure, additional fields 
1139         needed to implement Balloon.
1140
1141 2007-03-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1142
1143         * ListViewItem.cs: In the constructors that take
1144         an array of strings, don't use ListViewSubItemCollection.AddRange
1145         method to add items, since we need to have a different behaviour (in
1146         the constructors we add an item for each null string, opposed to
1147         the behaviour of AddRange, which adds nothing).
1148
1149 2007-03-26  Andreia Gaita  <avidigal@novell.com>
1150
1151         * NumericUpDown.cs: Fix broken 1.1 api for ParseEditText
1152
1153 2007-03-26  Jackson Harper  <jackson@ximian.com>
1154
1155         * TextControl.cs: Draw and measure line endings when in non
1156         multiline mode.
1157         - When searching the text, count the end of the last line as a
1158         word boundary.
1159
1160 2007-03-26  Jackson Harper  <jackson@ximian.com>
1161
1162         * RichTextBox.cs: The selection_start and selection_end don't
1163         really track the correct tags for the selection. So we'll manually
1164         compute the correct tag here.
1165
1166 2007-03-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1167
1168         * ProgressBar.cs, ThemeWin32Classic.cs: Implemented drawing of Marquee
1169           and Continuous styles. Fixes #79469.
1170
1171 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
1172
1173         * ToolStrip.cs: Implement Tooltips.
1174         * ToolStripItem.cs: Create internal method for determining tooltip.
1175
1176 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
1177
1178         * PropertyGrid.cs: Hide a EditorBrowsable attribute from 1.1 API.
1179
1180 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
1181
1182         * NotifyIcon.cs: On disposing verify if icon is visible and hide it,
1183         it prevents a problem thak keeps icon visible after application 
1184         closes on win32.
1185
1186 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
1187
1188         * NotifyIcon.cs: Balloon properties and methods created.
1189
1190         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
1191         XplatUIOSX.cs, XplatUIX11-new.cs: Implement ShowBalloonTip method.
1192
1193 2007-03-25  Jonathan Pobst  <monkey@jpobst.com>
1194
1195         * ToolStripComboBox.cs: Default the ComboBox's FlatStyle to Popup.
1196
1197 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
1198
1199         * Control.cs: Make SetBoundsCore match MS better.  The BoundsSpecified
1200         parameter indicates which aspects were explicit/user-set.
1201         * ComboBox.cs, ListBox.cs: Call SetBoundsCore correctly. (no 0 parameters).
1202
1203 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
1204
1205         * ProgressBar.cs: Throw AOORE instead of AE for property Value (2.0).
1206         * ScrollBar.cs: Throw AOORE instead of AE for properties LargeChange,
1207         SmallChange, and Value (2.0).
1208         * Timer.cs: Throw AOORE instead of AE for property Interval (2.0).
1209
1210 2007-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1211
1212         * ListView.cs: Always set item_control.Width in LayoutDetails
1213         if View is Details. Setting it later in CalculateScrollBars
1214         in a not-so-corner scenario (the sum of columns width is
1215         not bigger than the ListView width when handle is created, and then
1216         that sum gets bigger by increasing the width of the columns)
1217         causes a very weird recursion path (which shouldn't be happening,
1218         since header_control sets it in CalculateScrollBars too). This bug
1219         appeared after Chris' fixes for handle created issues, so probably
1220         it's related to some handle-creation time.
1221
1222 2007-03-23  Chris Toshok  <toshok@ximian.com>
1223
1224         * DataGrid.cs (GetVisibleRowCount): increase the row count in the
1225         case where there's an add row, just so we don't end up in a case
1226         where it's not displayed (this happens when the row is partially
1227         obscured).  Fixes bug #79574.
1228
1229 2007-03-23  Jackson Harper  <jackson@ximian.com>
1230
1231         * TextControl.cs:
1232         * TextBoxBase.cs:
1233         * RichTextBox.cs: Preserve line endings in the lines text buffer,
1234         also added an enum that represents the line ending type. 
1235
1236 2007-03-23  Andreia Gaita  <avidigal@novell.com>
1237
1238         * NumericUpDown.cs: Fix logic so Text and Value properties are not
1239         messed with in every method call, but only from DownButton, 
1240         UpButton, UpdateEditText() and ValidateText. Fixes #80346
1241
1242 2007-03-23  Chris Toshok  <toshok@ximian.com>
1243
1244         * DataGridTextBoxColumn.cs (GetFormattedValue): don't try to
1245         format objects if the format spec is "".  Fixes bug #80889.
1246
1247 2007-03-22  Miguel de Icaza  <miguel@novell.com>
1248
1249         * ToolStripPanel.cs (Join): added stubs to build PDN3
1250
1251         * Control.cs (AutoScrollOffset): Add.
1252
1253         * SystemInformation.cs (MouseWheelScrollDelta): Expose this
1254         property, its only implemented for Win32, on X11 it defaults to
1255         some hardcoded value.
1256
1257         * ToolStripItem.cs (AllowDrop): Add property
1258
1259 2007-03-22  Mike Kestner  <mkestner@novell.com>
1260
1261         * ListView.cs : in FullRowSelect Details mode, only enable box
1262         selection if the user clicks over the "item" column outside of the
1263         text area.  Mmmmm, compatibility.  [Fixes #80374 subpart 7]
1264
1265 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1266
1267         * Control.cs: ChangeParent: Call Form's ChangingParent even if the
1268           handle is not created yet.
1269         * Form.cs: Select: Don't call CreateHandle if the handle is already
1270           created, avoids a stack overflow on Windows when we are recreating
1271           controls.
1272         * ScrollableControl.cs: Set the correct z-order for the scrollbars when
1273           they are made visible, and override AfterTopMostControl to keep
1274           them on top when other controls are brought to front.
1275           CalculateCanvas: Scrollbars are only visible if auto_scroll is true
1276           or force_*scroll_visible is true (old implementation always shows
1277           scrollbars when needed, no matter what auto_scroll was set to).
1278         * InternalWindowManager.cs: UpdateWindowDecorations: Add a
1279           IsHandleCreated check.
1280
1281 2007-03-22  Andreia Gaita  <avidigal@novell.com>
1282
1283         * DataGrid.cs: Implement Column and Row auto sizing when double-clicking on
1284         row or col separator.
1285         * DataGridTextBoxColumn.cs: Implement GetPreferredHeight and GetPreferredSize
1286
1287 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
1288
1289         * MenuAPI.cs: Remove unneeded check for grab_control in UpdateCursor.
1290
1291 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
1292
1293         * MenuAPI.cs: UpdateCursor method added, it is calling in OnMotion to update
1294         cursor for child controls. In ShowWindow and HideWindow now call SetCursor 
1295         every time. Fixes #80410.
1296
1297 2007-03-22  Chris Toshok  <toshok@ximian.com>
1298
1299         * BindingSource.cs (AddNew): partially implement.
1300
1301         remove a couple of NotImplementedException's
1302         to get bug #81148 closed.
1303
1304 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
1305
1306         [Fixes #80380]
1307         
1308         * Control.cs:
1309         - UpdateCursor method added to update the screen cursor.
1310         - GetAvailableCursor method added to return cursor for enabled tree,
1311         it searches for cursor on control and it's parent's for enabled control.
1312         - Call UpdateCursor method on setter of Cursor property.
1313         - On setter of Enabled call UpdateCursor when it is false, we need to
1314         change cursor to normal (or to this parent cursor) because cursor 
1315         setting theres no effect to disabled controls.
1316         - Some minor source changes to follow the coding style guidelines.
1317
1318         * XplatUIX11.cs: In MotionNotify only dispatch SET_CURSOR event for enabled 
1319         controls.
1320
1321 2007-03-22  Chris Toshok  <toshok@ximian.com>
1322
1323         * XplatUIX11.cs: ignore the BadPicture errors cairo+render
1324         generates.
1325
1326 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1327
1328         * XplatUIX11.cs: Implement default locations for forms.
1329         * Form.cs: Completely rework startup location for forms. Fixes #79964.
1330         * Hwnd.cs: Add previous_child_startup_location (to track the current
1331           startup location for any child forms of the current form) and
1332           previous_main_startup_location (to track the startup location for
1333           the current toplevel form).
1334
1335 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
1336
1337         * Control.cs: Don't trigger a layout if an implicit control is added
1338         that isn't visible.  Also, don't notify the owner when an implicit control
1339         is added.  (Owners shouldn't even know about their implicit controls.)
1340
1341 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
1342
1343         * ScrollableControl.cs: Add implicit controls with AddRangeImplicit
1344         to save some re-layouts.
1345
1346 2007-03-21  Everaldo Canuto  <everaldo@simios.org>
1347
1348         * MenuAPI.cs: In ProcessKeys returns false when key is not processed.
1349         [Fixes #81203]
1350
1351 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
1352
1353         * FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
1354         ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.
1355
1356 2007-03-21  Mike Kestner  <mkestner@novell.com>
1357
1358         * ListView.cs : disable selection update for non-left button clicks
1359         with mods and over selected items.  [Fixes #80524]
1360
1361 2007-03-20  Jackson Harper  <jackson@ximian.com>
1362
1363         * TextControl.cs:
1364         * TextBoxBase.cs: Allow different types of line endings. \r, \r\n,
1365         \r\r\n, \n.
1366
1367 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1368
1369         * ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
1370           very probably a more complicated calculation there. Update the
1371           textbox' ForeColor and BackColor when the ComboBox' colors are
1372           changed. Change the border change in LayoutComboBox to only affect
1373           the textbox, not all the calculations there. Seems to fix most of
1374           #79436.
1375
1376 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1377
1378         * ComboBox.cs: Handle Home and End keys as well as all combinations of
1379           modifiers + navigation keys as input keys, enables advanced text
1380           selection in the combobox (like Shift+Left Arrow for instance).
1381           ComboTextBox now overrides Focused and returns whatever
1382           ComboBox.Focused returns, since it really should be focused
1383           whenever the ComboBox is. Fixes #80795. Also make the border around
1384           the text box one pixel bigger, as mentioned in #79436.
1385
1386 2007-03-20  Jackson Harper  <jackson@ximian.com>
1387
1388         * TreeView.cs: Don't offset the images, this was causing some
1389         artifacts when expanding/collapsing with images that were the
1390         exact height of the treenode.
1391
1392 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1393
1394         * TrackBar.cs: Query the theme for the correct value when the mouse
1395           moves and the thumb is pressed. 
1396         * Theme.cs: Added TrackBarValueFromMousePosition
1397         * ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
1398           implementation was updating the trackbar value when drawing, now
1399           the drawing methods only draw. Fixes #80900. Refactored the
1400           calculations out to TrackBarValueFromMousePosition and
1401           GetTrackBarDrawingInfo, so that TrackBar can get the correct value
1402           according to the mouse position whenever it wants to. Changed the
1403           light coloured pen when drawing the thumb from ControlLight to
1404           ControlLightLight, because the ControlLight is the same colour as
1405           the background so the 3D effect is lost. 
1406
1407 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
1408
1409         * Form.cs: In ShowDialog uses MainForm as transient form when no form is
1410         defined. Fixes #80784.
1411
1412 2007-03-20  Marek Habersack  <mhabersack@novell.com>
1413
1414         * ContextMenuStrip.cs: align with the change introduced in
1415         revision 74664.
1416
1417 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
1418
1419         * XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs, 
1420         XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner 
1421         in SetTopmost.
1422
1423 2007-03-19  Chris Toshok  <toshok@ximian.com>
1424
1425         * Control.cs (WmPaint): don't make use of the Handle property
1426         after an event is emitted, as the user could have closed the
1427         form/destroyed the control.  Store the Handle in a local variable
1428         and make use of that.  Fixes bug #80768.
1429
1430 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
1431
1432         * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
1433         behavior in X11 environments.
1434
1435 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
1436
1437         * Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
1438         because on setter of topmost we dont call SetTopmost when handle is not
1439         created.
1440
1441 2007-03-20  Jackson Harper  <jackson@ximian.com>
1442
1443         * TextControl.cs: Need to use SelectionLength () not
1444         selection_length, since that var is reset to -1.
1445         - Draw the caret when we don't have focus.
1446         * TextBox.cs: The selectall actually doesn't occur until the first
1447         focus.
1448         * TextBoxBase.cs: Need to update the caret position after a
1449         selectall.
1450         
1451 2007-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1452
1453         * ListView.cs: Enable scrolling when using Tile view.
1454
1455 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
1456
1457         [Fixes #80902]
1458
1459         * XplatUIDriver.cs: Abstract SetOwner method created.
1460
1461         * XplatUIOSX.cs: Override SetOwner to prevent compilation errors method 
1462         must be implemented and was masked as todo.
1463
1464         * XplatUIWin32.cs: SetOwner implemented using SetWindowLong with 
1465         GWL_HWNDPARENT.
1466
1467         * XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but 
1468         cheking for null owner to remove transient. The SetTopmost will be change
1469         on a decond step.
1470
1471         * Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
1472         SetTopmost. Now owned forms will work properly in win32 and X11.
1473
1474 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1475
1476         * MdiWindowManager.cs: Update function name.
1477         * Form.cs: After closing a form MdiParent is always null.
1478         * MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
1479           better what it should do: necessary book-keeping when the form is
1480           closed, it should not close the form itself.
1481
1482 2007-03-19  Andreia Gaita  <avidigal@novell.com>
1483
1484         * ListViewItem.cs: Fix back and fore color. The subitems only
1485         use their own colors if they are set, otherwise use the listview's
1486         colors. Don't set default colors on constructor for subitem.
1487         Fixes #79315.
1488
1489 2007-03-19  Mike Kestner  <mkestner@novell.com>
1490
1491         * ListView.cs : make box selection for Details views with 
1492         FullRowSelect conform to MS behavior when clicking in the "item" 
1493         column and clicking outside the defined columns.
1494         [Fixes case 5-6 of #80374]
1495
1496 2007-03-19  Chris Toshok  <toshok@ximian.com>
1497
1498         * ScrollableControl.cs: create the controls from within the ctor,
1499         but don't actually add them until our handle is created.  this
1500         fixes a NRE possibility jpobst found (if you override OnLayout in
1501         a subclass, it's called before your ctor).  Also, add a
1502         IsHandleCreated guard to UpdateSizeGripVisibility as well.
1503
1504 2007-03-19  Jackson Harper  <jackson@ximian.com>
1505
1506         * TextBox.cs: Reduce the amount of invalidation we do.
1507         * TextBoxBase.cs: Make shortcuts enabled true by default, at least
1508         some of them are true by default on MS.
1509         - Add some functions to reduce the amount of invalidates we do.
1510         * TextControl.cs: Less invalidation.
1511
1512 2007-03-19  Chris Toshok  <toshok@ximian.com>
1513
1514         [ Fixes #81773, and *seems* to fix #81553 as well ]
1515
1516         * XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
1517         AccumulateDestroyedHandles.  We need to do it *after* we send
1518         WM_DESTROY, as the user's code can access Control.Handle in
1519         OnHandleDestroyed, and this shouldn't cause a recreation.  Also,
1520         move the WM_DESTROY/zombie handling to before the call to
1521         XDestroyWindow.  For some reason without this ordering
1522         FormTest.RecreateHandle hangs.  This ordering is semantically
1523         equivalent, however, as XDestroyWindow is async anyway.
1524
1525 2007-03-19  Gert Driesen  <drieseng@users.sourceforge.net>
1526
1527         * RichTextBox.cs: Reset backcolor_set after setting default.
1528
1529 2007-03-19  Chris Toshok  <toshok@ximian.com>
1530
1531         * ScrollableControl.cs: the scroll position should not effect the
1532         canvas size.  commit patch from georgegiolfan@yahoo.com, which
1533         fixes some really bizarre behavior on resizing.  Fixes bug #80778.
1534         
1535 2007-03-19  Chris Toshok  <toshok@ximian.com>
1536
1537         * ScrollableControl.cs: clean this up a bit.  create the
1538         scrollbars in the ctor and just show/hide them as needed.  Also,
1539         make hscroll_visible/vscroll_visible internal to Recalculate, and
1540         just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
1541         everywhere else.  This seems to fix the scrollbars appearing
1542         beneath the content for me (i have *no* idea why that is,
1543         however.)
1544
1545 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
1546
1547         * ToolStrip.cs: Don't call DoAutoSize when we change Dock.  Also, remove
1548         some redundacy for stuff in Anchor and Dock that base will take care of.
1549         [Fixes #80762]
1550
1551 2007-03-19  Mike Kestner  <mkestner@novell.com>
1552
1553         * ListView.cs : make box selection for Details views without 
1554         FullRowSelect dependent on the text bounds, not item bounds.
1555         * ListViewItem.cs : add an internal property to obtain the TextBounds
1556         in Details view.  [Fixes case 1-4 of #80374]
1557
1558 2007-03-19  Andreia Gaita  <avidigal@novell.com>
1559
1560         * PaintEventArgs.cs (Dispose): Only dispose of graphics object if
1561         we're < 2.0. #78448 && #80316
1562
1563 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
1564
1565         * FontDialog.cs: Don't crash when we switch to a new font that doesn't
1566         have the same style available as the previously selected one.  Also,
1567         support FixedPitchOnly property.  [Fixes bugs #80918, #80947]
1568
1569 2007-03-19  Jackson Harper  <jackson@ximian.com>
1570
1571         * TextControl.cs: Add an alignment property that all new lines
1572         will be given.
1573         - Make sure to use the align shift when calculating the line's X
1574         position.
1575         * TextBox.cs: Set the alignment on the document as well as on all
1576         the document lines.
1577
1578 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1579
1580         * Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
1581           throw if setting the parent of an mdichild that already has an
1582           mdiparent. Update signature for 2.0 profile. ProductName: If there's no
1583           AssemblyProductAttribute in the assembly, use the type's namespace (as
1584           MS seems to do). CreateControl: don't create the handle if the control
1585           is not visible (according to MS behaviour and spec).  SetTopLevel: Only
1586           create handle if the control is not a form. Change FocusInternal to
1587           virtual so that it can be overriden by Form.
1588         * TextBox.cs: Update call to FocusInternal.
1589         * Form.cs: Always create the handle when calling Focus on a MdiChild. The
1590           form is not a toplevel form when it's a mdi child, so update is_toplevel
1591           accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
1592           hasn't been created. Show (IWin32Window): Don't allow this overload for
1593           toplevel windows. CenterToParent/CenterToScreen/Select: create the
1594           handle as MS does. SetVisibleCore: if called on a MdiChild and the
1595           parent isn't visible yet, save the visibility and restore it when the
1596           parent is made visible.
1597         * ScrollableControl.cs: Refactor out scrollbar visibility code to separate
1598           methods, since the visibility of the scrollbars can be changed from
1599           several places, not only from AutoScroll.
1600           [Fixes #81179]
1601
1602 2007-03-19  Jackson Harper  <jackson@ximian.com>
1603
1604         * RichTextBox.cs: Enable shortcuts by default.
1605         * TextBoxBase.cs: Add conditional shortcuts.  
1606
1607 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
1608
1609         * MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).  
1610
1611 2007-03-19  Chris Toshok  <toshok@ximian.com>
1612
1613         [ Fixes bug #80604]
1614         
1615         * XplatUIX11.cs (WaitForHwndMessage): change this to actually
1616         swallow the message we're waiting on, instead of delivering it, as
1617         this is only used for the WM_SHOWWINDOW raised from
1618         MapWindow/UnmapWindow, and the message needs to be generated
1619         (MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
1620         before doing the Map/Unmap.  Also make sure that the Hwnd is still
1621         alive after the message has been handled.
1622
1623         *before* the window is shown.
1624
1625         * Control.cs (CreateControl): guard a few more things inside the
1626         if (!is_created) block, as we might end up being called again -
1627         yay .net.
1628         (WmShowWindow): call CreateControl if we're showing the control.
1629
1630 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1631
1632         * Control.cs: Fix 2.0 signature for Invoke. Support invoking on
1633           controls without a handle if they have any parent with a handle. In
1634           Dispose add a check whether the handle is created or not before
1635           calling BeginInvoke, this removes the need of the extra disposing
1636           parameter (which was bogus anyway since it didn't prevent the
1637           invoke from happening, it only skipped the check for an existing
1638           handle, meaning that the invoke would call on an inexistent
1639           handle).
1640
1641 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
1642
1643         * MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
1644         appears in taskbar.
1645
1646 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
1647
1648         * MessageBox.cs:
1649         - Fixed a problem that dont show help button for messages with 3 buttons.
1650         - Refactory button size and position calculations, now dont use fixed 
1651         values, also fixed button sizes (#80043) and form's border space.
1652         - AddButton method created, now all other AddButton methods call this one.
1653         - Some other source code cosmetic changes.
1654
1655 2007-03-18  Jackson Harper  <jackson@ximian.com>
1656
1657         * RichTextBox.cs: Don't do this all fonts must match check if
1658         there is only one char selected.
1659
1660 2007-03-18  Jackson Harper  <jackson@ximian.com>
1661
1662         * TreeView.cs: ScrollWindow works properly now, so we don't need
1663         to screw around with the scroll area.  This fixes some artifacts
1664         when expanding and collapsing.
1665
1666 2007-03-18  Jackson Harper  <jackson@ximian.com>
1667
1668         * TextBoxBase.cs: Allow updating the selection position when the
1669         cursor is outside the textarea, but we have a capture.
1670         * TextControl.cs: A special case for when the cursor is outside
1671         the bounds of the TB.
1672         
1673 2007-03-18  Jackson Harper  <jackson@ximian.com>
1674
1675         * TextBoxBase.cs: Remove image pasting code for now.  There is no
1676         way to get an image on the clipboard right now anyways.
1677         * TextControl.cs:
1678         * RichTextBox.cs: Use the new RTF Picture class for pictures.
1679
1680 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
1681
1682         * MessageBox.cs:
1683         - Set window properties in constructor intead of on CreateParams.
1684         - Remove topmost from Window ExStyle.
1685         - Set ShowInTaskbar to false.
1686         - Set form border to FixedDialog.
1687         - Some cosmetic changes and remove unneeded comments.
1688         - It fixes itens 2,3 and 4 of bug #80043.
1689
1690 2007-03-18  Gert Driesen  <drieseng@users.sourceforge.net>
1691
1692         * TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
1693         none was explicitly set. Fixes part of bug #79949.
1694
1695 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
1696
1697         * ToolStripComboBox.cs: Add AutoComplete*.
1698
1699 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
1700
1701         * ToolStripComboBox.cs: Add FlatStyle.
1702
1703 2007-03-16  Jonathan Pobst  <monkey@jpobst.com>
1704
1705         * ToolStrip.cs, ToolStripProfessionalRenderer.cs,
1706         ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
1707
1708 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1709
1710         * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
1711           CheckBox.cs, RadioButton.cs, BindingSource.cs,
1712           DataGridColumnStyle.cs: Remove warnings.
1713
1714 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1715
1716         * Menu.cs: MergeMenu: Check menu argument for null before looping over
1717           it.
1718         * MdiWindowManager.cs: Add IsVisiblePending to track the pending
1719           visibility of mdi child forms. FormSizeChangedHandler: update the
1720           maximized size if size has changed while maximized.
1721         * MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
1722           creating the handle.
1723         * InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
1724           avoid creating the handle if not created.
1725         * XplatUI.cs: Update debug output.
1726         * XplatUIStructs.cs: Added ToString's for a couple of structs.
1727
1728 2007-03-16  Jonathan Pobst <monkey@jpobst.com>
1729
1730         * ContainerControl.cs: Give ToolStripManager the opportunity to handle
1731         ProcessCmdKey().
1732         * ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs, 
1733         ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
1734         Implement keyboard shortcuts.
1735
1736 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
1737
1738         * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
1739         Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog, 
1740         ColorDialog and all derived classes.
1741
1742 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
1743
1744         [ Fixes bug #79828 ]
1745
1746         * ToolBar.cs:
1747         - Rename ToolBarButtonInfor to ToolBarItem.
1748         - Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
1749         - Maintain an array of ToolBarItem, used instead of ToolBarButton
1750         collection to be able add same button more than one time on a toolbar.
1751         - Refactory all properties and methods to use ToolBarItem. 
1752
1753         * ToolBarButton.cs: 
1754         - Remove all propeties and methods that is now in ToolBarItem.
1755         - Rectangle propery now gets the rectangle from first ToolBarItem to
1756         mimic win32 behavior.
1757         - Size calculation and layout methods also removed.
1758
1759         * ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
1760         ToolBarItem instead of ToolBarButton to right drawing buttons when
1761         same button/separator was added more than one time to ToolBar.
1762
1763         * ThemeNice.cs: Same as above. 
1764
1765 2007-03-15  Andreia Gaita  <avidigal@novell.com>
1766
1767         * XplatUIX11.cs: Fire extra MouseMove events right after
1768         MouseDown and MouseUp, emulating win32's <censored> behaviour
1769         for apps that rely on it.
1770
1771 2007-03-15  Jackson Harper  <jackson@ximian.com>
1772
1773         * TextControl.cs:
1774         * TextBoxBase.cs: On MS, a fixed single border is not in NC area,
1775         it is drawn on the controls client window and there is no NC
1776         area.
1777         - Set the background color to gray on 2.0 when we are readonly.
1778
1779 2007-03-15  Chris Toshok  <toshok@ximian.com>
1780
1781         [ Fixes bug #81144 ]
1782         
1783         * XplatUIX11.cs: implement VirtualScreen independently of
1784         WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
1785         property.
1786
1787 2007-03-15  Chris Toshok  <toshok@ximian.com>
1788
1789         * Hwnd.cs: add an internal field for the cached_window_state.
1790
1791         * XplatUIX11.cs: cache the window state, invalidating the cache
1792         (and thus re-querying the X server) only when we see an update to
1793         the _NET_WM_STATE property.
1794
1795 2007-03-15  Chris Toshok  <toshok@ximian.com>
1796
1797         * BindingSource.cs: get a lot of the unit tests working.
1798
1799 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
1800
1801         * Control.cs: Modify UpdateStyles to store distances when bounds >=
1802         0 instead of just bounds > 0.  [Fixes bug #80912]
1803
1804 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
1805
1806         * ToolStrip.cs, ToolStripItem.cs: Implement several new properties
1807         and methods.
1808
1809 2007-03-15  Ivan N. Zlatev <contact@i-nz.net>
1810         
1811         * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
1812         XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
1813         XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
1814         WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
1815
1816 2007-03-15  Chris Toshok  <toshok@ximian.com>
1817
1818         [ Fixes #81101 ]
1819         
1820         * Control.cs: add Ivan's fix for 81101, with a slight modification
1821         - you can set control.Target to null.
1822
1823 2007-03-14  Jonathan Pobst  <monkey@jpobst.com>
1824
1825         * ToolStripItem.cs: If our OwnerItem is null, we can't use 
1826         HideDropDown, use Hide instead to prevent an NRE.
1827         [Fixes bug #81147]
1828
1829 2007-03-14  Jackson Harper  <jackson@ximian.com>
1830
1831         * TextBoxBase.cs: Mess with the creation stuff a little. We need
1832         to calculate the document before the handle is created, in some
1833         cases. (Actually just one case).
1834
1835 2007-03-14  Jackson Harper  <jackson@ximian.com>
1836
1837         * TextBoxBase.cs: Need to display the caret after letting the base
1838         wndproc handle the focus methods, because the caret display
1839         methods check the focus state.
1840         - Try to display the caret after updating it's position with SelectWord.
1841         - Don't need to do an immediate update on this recalc, since there
1842         will be an invalidate anyways.
1843
1844 2007-03-14  Jackson Harper  <jackson@ximian.com>
1845
1846         * TreeView.cs: Some workarounds so that we can match event order a
1847         little better.
1848
1849 2007-03-14  Gert Driesen  <drieseng@users.sourceforge.net>
1850
1851         * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
1852         #80803. Avoid NullReferenceException when Control does not have
1853         parent. Fixed different blinkstyle issues. Only subscribe to Tick
1854         event a single time. Only draw error icon when control is created and
1855         visible. Fixes failing unit tests.
1856
1857 2007-03-14  Andreia Gaita  <avidigal@novell.com>
1858
1859         * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
1860         Selecting events. Fire Leave and Enter events when changing tabs.
1861
1862 2007-03-14  George Giolfan  <georgegiolfan@yahoo.com>
1863
1864         * TreeView.cs: Add TreeViewNodeSorter.
1865         * TreeNodeCollection.cs: Add sorter parameter to Sort method.
1866
1867 2007-03-14  Chris Toshok  <toshok@ximian.com>
1868
1869         * Form.cs: go ahead and remove the RecreateHandles that jpobst
1870         removed earlier and I had him add back it.  It turns out metacity
1871         *does* in fact handle the MOTIF_WM_HINTS property changing, it
1872         just doesn't redraw the window titlebar until you resize the
1873         window.  This also means we aren't recreating the entire window
1874         hierarchy on X when you change this property.  And it looks better
1875         on windows, too.
1876
1877 2007-03-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1878
1879         * ListViewItem.cs:
1880         * ListView.cs: Collecting selection information
1881         is now done in SelectedIndexCollection rather than in
1882         SelectedListViewItemCollection. This is done so we can
1883         have the selection information code in one single place
1884         (virtual mode selection information entirely depends on
1885         SelectedIndexCollection).
1886
1887 2007-03-13  Miguel de Icaza  <miguel@novell.com>
1888
1889         * ErrorProvider.cs: Add stubs for ISupportInitialize
1890
1891 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1892
1893         * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
1894         in the right order with the right values, from the Checked property, 
1895         just as MS does (instead of triggering them from ListView).
1896
1897         * ListView.cs: Make OnItemCheck and OnItemChecked internal.
1898
1899 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1900
1901         * ListView.cs: Implement ItemChecked 2.0 event. Also cast to 
1902         the correct handler in OnItemCheck method (ItemCheckEventHandler 
1903         instead of EventHandler). This used to throw an InvalidCastException.
1904
1905 2007-03-13  Jackson Harper  <jackson@ximian.com>
1906
1907         * TextBoxBase.cs: Calculate the document before the handle is
1908         created, so there isn't an extra invalidate called.
1909
1910 2007-03-13  Jonathan Pobst  <monkey@jpobst.com>
1911
1912         * Form.cs: Don't set owner in ShowDialog until we are sure
1913         that we aren't going to throw an exception.  [Fixes bug #80773]
1914
1915 2007-03-12  George Giolfan  <georgegiolfan@yahoo.com>
1916
1917         * TreeView.cs: Make it compile.
1918
1919 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
1920
1921         * Control.cs: Another place we don't call SizeFromClientSize.
1922         * Form.cs: Another place we don't call SizeFromClientSize.
1923         [Fixes bug #81125]
1924
1925 2007-03-12  Jackson Harper  <jackson@ximian.com>
1926
1927         * TreeView.cs: Basically emulating some strangness here with
1928         exanding nodes and setting node positions when windows aren't
1929         created.
1930         - Also attempting to walk the node tree less than previously, and
1931         just use visible order calculations for determining offsets.
1932         - oops made scrolling backwards.
1933         * TreeNode.cs: We need to start nodes with a zero visible order,
1934         because the order calcs are based on the first nodes order.
1935
1936 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
1937
1938         * Form.cs: Don't exit the program if RecreateHandle is called on
1939         the main form.
1940
1941 2007-03-12  Chris Toshok  <toshok@ximian.com>
1942
1943         * XEventQueue.cs: remove the use of PostQuitState.
1944
1945         * XplatUIX11.cs: remove the use of PostQuitState.  If we get a
1946         WM_QUIT message in GetMessage, return false (and if we're in the
1947         nested WaitForHwndMessage, repost the WM_QUIT message).
1948
1949 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
1950
1951         * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
1952         or the MaximizeBox properties.  [Part of bug #80640]
1953
1954 2007-03-12  Everaldo Canuto  <everaldo@simios.org>
1955
1956         * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
1957         no links.
1958
1959 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
1960
1961         * ToolStripItem.cs: Fix some tests I broke by checking Visible
1962         instead of visible.
1963
1964 2007-03-12  Gert Driesen  <drieseng@users.sourceforge.net>
1965
1966         * FileDialog.cs: Use text of File name combobox to determine what
1967         files the user selected. Added tokenizer to parse the file names.
1968         Fixes bug #81123.
1969
1970 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
1971
1972         * Control.cs: We can't call SizeFromClientSize in the constructor,
1973         but we still need to do the same work, so make an internal version.
1974         [Fixes bug #80621]
1975
1976 2007-03-12  Jackson Harper  <jackson@ximian.com>
1977
1978         * TreeView.cs:
1979         * TreeNode.cs:
1980         * OpenTreeNodeEnumerator: Match MS better for IsVisible and
1981         IsExpanded.
1982
1983 2007-03-12  Jackson Harper  <jackson@ximian.com>
1984
1985         * TextBoxBase.cs: Now that the handles are being created a little
1986         later, we need to make sure that the document is recalculated when
1987         the handle is created.
1988
1989 2007-03-11  Everaldo Canuto  <everaldo@simios.org>
1990
1991         * Theme.cs: GetLinkFont abstract method added.
1992         
1993         * LinkLabel.cs: 
1994         - Remove CalcTrimRectangle, no longer needed.
1995         - Factor also remove, position issues must be fixed in libgdiplus.
1996         - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
1997         - GetPieceFont, CreateLinkFont and link_font removed, theme must be 
1998         care about font used to draw links.
1999         - Set TabStop to true when control is "Selectable", control is selectable
2000         when have one or more links. Fixes #80501 (test case is also added).
2001         - Set the LinkArea values after links change, LinkArea values must be
2002         based in first link position and size, a test case was created.
2003         - Fix ControlStyles.Selectable value, now is based on LinkArea value, 
2004         the attribute must be true LinkArea.Length > 0. The same was applied to
2005         TabStop.
2006         
2007         * ThemeWin32Classic.cs: 
2008         - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used 
2009         in draw method.
2010         - Use CPDrawStringDisabled to draw disabled text instead of hard code 
2011         color change.
2012         - Draw focus rectangle for every parts focused, including parts that 
2013         is on another line, its because regions returns various rectangles
2014         and not only one. Needed to mimic W32 look.
2015         - Uses Graphics.Clip to delimite region painted, it mean that now 
2016         complete text is passed to DrawString, with this we solve layout
2017         issues without create another text renderer.
2018         - Uses Region.Intersect to fix some flickers problems, now only needed
2019         parts will redrawed.
2020         - This changes fixes #79614 and some other unreported issues, on Linux 
2021         some layout problems still remain, the problem is under 
2022         MeasureCharacterRanges but it is an libgdiplus bug.
2023
2024 2007-03-10  Gert Driesen  <drieseng@users.sourceforge.net>
2025
2026         * TextBox.cs: Set for foreground color.
2027         * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
2028         this is already done in Control.
2029
2030 2007-03-10  Jackson Harper  <jackson@ximian.com>
2031
2032         * TextBox.cs: Set the background color, but reset the
2033         backcolor_set flag which is just for the user setting the
2034         background color.
2035
2036 2007-03-09  Chris Toshok  <toshok@ximian.com>
2037
2038         * Control.cs: really remove the call to XplatUI.SetVisible from
2039         CreateHandle(), like I said I did when I merged the branch.
2040
2041         * BindingSource.cs: implement some more of this stuff.
2042
2043 2007-03-09  Jackson Harper  <jackson@ximian.com>
2044
2045         * TextBox.cs: Don't explicitly set our background colors.
2046         * TextControl.cs:
2047         * TextBoxBase.cs: Draw readonly text.
2048         - Need to invalidate when backcolor or readonly are changed.
2049         
2050 2007-03-09  Jackson Harper  <jackson@ximian.com>
2051
2052         * TextBoxBase.cs: Don't set the forecolor until the handle is
2053         created.
2054         - Do not raise OnPaint, and removed some old debug code.
2055
2056 2007-03-09  George Giolfan  <georgegiolfan@yahoo.com>
2057
2058         * ScrollableControl.cs: Fix mouse wheel scrolling.
2059
2060 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
2061
2062         * Control.cs: Wire up MouseDoubleClick event.
2063
2064 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
2065
2066         * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
2067         top or bottom.
2068         * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
2069         * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
2070         item is added.  This logic was moved to ToolStrip.OnItemAdded.
2071         [Fixes bug #81090]
2072
2073 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2074
2075         * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
2076
2077 2007-03-08  Jackson Harper  <jackson@ximian.com>
2078
2079         * TreeView.cs: Show the correct image for selected node (this used
2080         to work, not sure how the code got deleted). Also implemented 2.0 feature
2081         SelectedImageKey.
2082
2083 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2084
2085         * ListView.cs:
2086         * ListViewItem.cs: Cache index in items when retrieving them
2087         in VirtualMode.
2088
2089 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
2090
2091         * ToolStripItem.cs: Don't return the explicit_size if we are using 
2092         AutoSize.  Fixes invalidation issue when user has explicitly set a
2093         size and has AutoSize = true.
2094
2095 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
2096
2097         * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
2098
2099 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
2100
2101         * DataGridView.cs: Remove event handler from DataView when a
2102         DataTable is used as DataSource.
2103
2104 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
2105
2106         * Control.cs: Create internal setter for client_size to allow it to be
2107         set without triggering resizing code.
2108         * Form.cs: Calculate client_size in constructor, only change client_size
2109         in FormBorderStyle property if Handle has been created.
2110         [Fixes #80574, #80791]
2111
2112 2007-03-08  George Giolfan  <georgegiolfan@yahoo.com>
2113
2114         * SystemInformation.cs: Add TerminalServerSession.
2115
2116 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
2117
2118         * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
2119         TreeView code.
2120
2121 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
2122
2123         * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
2124         Handle before we were supposed to.  Now checks ActivateOnShow property
2125         in Control.
2126         * Control.cs: Add internal ActivateOnShow property.
2127         * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
2128         for ActivateOnShow.
2129         * Hwnd.cs Remove no longer needed no_activate field.
2130
2131 2007-03-07  Jackson Harper  <jackson@ximian.com>
2132
2133         * TreeView.cs: Implement owner draw tree nodes.  And a couple more
2134         2.0 properties
2135         * DrawTreeNodeEventHandler.cs: Add
2136         * DrawTreeNodeEventArgs.cs: Correct default value.
2137         
2138 2007-03-07  Chris Toshok  <toshok@ximian.com>
2139
2140         * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
2141         to be called before NativeWindow.WndProc.  Put the HwndCreating
2142         magic there to hook up our Hwnd's to handles.
2143
2144 2007-03-07  Gert Driesen  <drieseng@users.sourceforge.net>
2145
2146         * DataGridView.cs: Comment out debug code.
2147
2148 2007-03-07  Chris Toshok  <toshok@ximian.com>
2149
2150         [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
2151         to make the rest of the world happy]
2152
2153         * Control.cs (CreateHandle): there's no need to call
2154         XplatUI.SetVisible here, it's effectively done by
2155         XplatUI.CreateWindow on X now, and always was on windows.
2156
2157         * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
2158         shortcircuit out of the loop if we have a message loop running on
2159         this thread.
2160
2161         [Changelog from merge]
2162
2163         2007-03-05  Chris Toshok  <toshok@ximian.com>
2164
2165                 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
2166                 causes handle creation.
2167
2168         2007-02-28  Chris Toshok  <toshok@ximian.com>
2169
2170                 * ApplicationContext.cs: Add a flag to make sure we only raise the
2171                 ThreadExit event once (ExitThreadCore can be indirectly called
2172                 from a few places.)  I don't like the additional flag, but it
2173                 makes the event ordering/count correct.
2174
2175                 * Application.cs (MWFThread.LoopCount): don't use an enumerator
2176                 without locking the collection.  An enumerator doesn't give us any
2177                 protection from modification anyway.  Lock the thread hash and
2178                 replace the complicated enumerator loop with a foreach.
2179                 (Application.CloseForms): make internal so it can be called from
2180                 ApplicationContext.  This should probably be moved to MWFThread.
2181                 (Application.ExitThread): don't call MWFThread.Current.Exit()
2182                 here.  just call XplatUI.PostQuitMessage.  We'll exit the thread
2183                 when the runloop exits (in response to WM_QUIT.)
2184                 (Application.RunLoop): add a comment (and check) for
2185                 context.MainForm being null after setting context.MainForm.Visible
2186                 = true.  This is because you're perfectly free to dispose of a
2187                 form in VisibilityChanged.  Chalk this up to another case where we
2188                 need to synchronously generate WM_ACTIVATE from Control.Show.
2189                 Also, add handling for WM_QUIT here so we'll exit the loop.
2190                 
2191                 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit.  The
2192                 fact that we don't wait if we're only unmapping the whole_window
2193                 makes me a bit nervous, but it doesn't seem to cause any problems
2194                 yet.
2195
2196                 also, add a comment about the stupid, broken and wrong resetting
2197                 of PostQuitState to false in GetMessage().
2198
2199                 In PostQuitMessage, we need to add a WM_QUIT message to the
2200                 thread's queue.  We use the FosterParent to get the right
2201                 handle/hwnd/queue.
2202
2203                 Lastly, in SetVisible, we need to unmap both windows, since the
2204                 waiting only happens when we're unmapping the client window.  So
2205                 now, the *only* time we unmap just the whole_window is in the hack
2206                 for resizing a control to 0,0.
2207                 
2208         2007-02-21  Chris Toshok  <toshok@ximian.com>
2209
2210                 * Application.cs (CloseForms): rewrite this so that we don't
2211                 modify the list while we're traversing it.
2212
2213         2007-02-20  Chris Toshok  <toshok@ximian.com>
2214
2215                 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
2216                 of OnHandleCreated.
2217                 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
2218                 handle is created.  otherwise we'll create it here.
2219                 (VerticalScrollEvent): same here.
2220
2221                 * Application.cs (CloseForms): call Form.Dispose, don't post
2222                 WM_CLOSE_INTERNAL.
2223
2224                 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
2225                 here. Application should Dispose() of the Form's.
2226
2227                 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
2228                 WM_DESTROY as well.
2229                 (MapWindow,UnmapWindow): only actually do the waiting for
2230                 SHOWWINDOW if the control we're dealing with is a Form.
2231                 (CreateWindow): if the control isn't a form, SendMessage
2232                 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
2233
2234                 * Control.cs (SetVisibleCore): always use is_visible here, not
2235                 value.  If we use value, we can end up re-setting something
2236                 visible if, for instance, you do Control.Hide() in a delegate
2237                 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
2238
2239         2007-02-20  Chris Toshok  <toshok@ximian.com>
2240
2241                 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
2242                 the message we need.  PeekMessage returning false should not be a
2243                 condition under which we exit the loop.
2244
2245         2007-02-15  Chris Toshok  <toshok@ximian.com>
2246
2247                 * Control.cs (Refresh): only refresh if we've got a handle and are
2248                 visible.
2249                 (CreateAccessibilityInstance): CreateControl() here.
2250                 (UpdateChildrenZOrder): complicate the code loop even more by
2251                 taking into account controls that haven't had their handle
2252                 created, and those that aren't visible.  But on the flip side,
2253                 simplify the code by splitting it into two loops.  one which
2254                 builds up the list of child controls we're interested in, and the
2255                 other that sets the z order of those children.
2256
2257         2007-02-14  Chris Toshok  <toshok@ximian.com>
2258
2259                 * Control.cs: Control.AccessibilityObject causes the control to be
2260                 created, not just the handle.
2261
2262         2007-02-14  Chris Toshok  <toshok@ximian.com>
2263
2264                 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
2265                 problem on X where a window might have its handle created (and be
2266                 visible) while the window is unmapped.  calling XConfigureWindow
2267                 on an unmapped window is bad, and generates X errors.
2268
2269         2007-02-13  Chris Toshok  <toshok@ximian.com>
2270
2271                 * Control.cs (CreateHandle): don't loop over our children setting
2272                 their parent here.  do it when in WndProc when we're shown.
2273                 (UpdateChildrenZOrder): make this internal so we can call it from
2274                 ScrollableControl.
2275                 (WndProc): for WM_SHOWWINDOW, reparent the child control after
2276                 creating its handle.  Also, remove the calls to PerformLayout from
2277                 here.  they're done in ScrollableControl.OnVisibleChanged.  Also,
2278                 OnVisibleChanged only seems to be called directly here for the
2279                 toplevel control.  It's propagated down the window hierarchy by
2280                 calls to child.OnParentVisibleChanged.
2281                 (OnVisibleChanged): don't do layout here - it's done (oddly
2282                 enough, according to a glance at stack traces on ms.net..) in
2283                 ScrollableControl.
2284                 
2285                 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
2286                 z order of our children before calling PerformLayout.
2287
2288         2007-02-12  Chris Toshok  <toshok@ximian.com>
2289
2290                 [big change, fixes #80020]
2291                 
2292                 * AccessibleObject.cs: we need to make owner internal again to fix
2293                 some of ControlAccessibleObject.
2294
2295                 * Control.cs: lots of changes here.  add support for WM_CREATE,
2296                 for which we generate OnHandleCreated.  Remove the OnHandleCreated
2297                 call from CreateHandle.  Also add support for WM_SHOWWINDOW where
2298                 we create child controls.  leave the MonoTODO's for the
2299                 accessibility calls, but fix the exceptions so the tests pass.
2300
2301                 Add the InvalidOperationExceptions to Invoke methods, and remove a
2302                 couple of InvokeInternal methods we aren't using.
2303                 
2304                 Also, add a couple of CreateHandle calls in places where we know
2305                 the handles are being created but our code doesn't reference
2306                 .Handle.
2307
2308                 Make SetVisibleCore call OnVisibleChange if the handle isn't
2309                 created.  If the handle is created, we rely on XplatUI.SetVisible
2310                 generating the event synchronously.
2311                 
2312                 Lastly, make sure we don't use this.Handle inside CreateHandle,
2313                 because we can call back into client (and that code can dispose of
2314                 the control).
2315
2316                 * XplatUIStructs.cs: misc/cleanup.
2317
2318                 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
2319                 although we don't populate the wParam properly.
2320                 (CreateWindow): generate WM_CREATE.
2321                 (MapWindow,UnmapWindow): make these calls synchronous, at great
2322                 performance expense (particularly in the unmap case), to match
2323                 win32 behavior.
2324
2325                 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
2326                 to call it.
2327                 (set_MdiParent): don't recreate the handle unless it's been
2328                 created already.
2329                 
2330                 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
2331                 it's created.
2332
2333                 * NativeWindow.cs: this is probably the weirdest part of the
2334                 patch.  We need a way to link up the window being created to the
2335                 WM_CREATE message.  Since we can only be creating one window at a
2336                 time on a given thread, we keep track of a per-thread reference so
2337                 we can dispatch it properly.  We also need to keep track of the
2338                 Hwnd currently being created so that the win32 backend doesn't
2339                 have problems.
2340                 
2341                 * XplatUIWin32.cs: a similar change to the one we made in
2342                 NativeWindow.cs.
2343
2344 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
2345
2346         * ToolStripItem.cs: Make CalculatePreferredSize virtual.
2347         * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
2348         to draw the menu shortcut string.
2349
2350 2007-03-07  Jackson Harper  <jackson@ximian.com>
2351
2352         * TreeNode.cs: Add the 2.0 collapse method.
2353
2354 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
2355
2356         * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
2357
2358 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
2359
2360         * DataGridView.cs: Change DataSource will clear column and row
2361         lists. Call Invalidate() to reflect DataSource change.
2362
2363 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
2364
2365         * DataGridView.cs: Add rows when DataSource is System.Data.DataView
2366         and a new row is added to it.
2367
2368 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
2369
2370         * DataGridView.cs: Add columns when DataSource is en empty list but
2371         is a System.Data.DataView (from a System.Data.DataTable).
2372
2373 2007-03-06  Andreia Gaita  <avidigal@novell.com>
2374
2375         * Label.cs: Implement AutoEllipsis (2.0)
2376
2377 2007-03-06  Jackson Harper  <jackson@ximian.com>
2378
2379         * TreeView.cs: Implement 2.0 TopNode setter property.
2380         - Use a local var instead of the skipped_nodes field for computing
2381         how many nodes to skip.  Otherwise we won't scroll because the
2382         valuechanged handler checks if skipped_nodes is equal to the new
2383         value.
2384         - Implement 2.0 Sort method.
2385         - Add useless 2.0 DoubleBuffer property
2386         - Implement 2.0 LineColors property.  Lets you change the color of
2387         the lines in the tree. Terribly useful for creating non cohesive
2388         desktops.
2389         - Implement 2.0 image key feature.
2390
2391 2007-03-06  Jackson Harper  <jackson@ximian.com>
2392
2393         * TreeView.cs: We can't get the bounds of the nodes before raising
2394         the AfterSelect event, because that event could change the node's
2395         bounds (scrolling, font change, etc).
2396
2397 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2398
2399         * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
2400         * Form.cs: Don't recreate handle when creating FormWindowManager, just
2401           update window styles. In CreateParams us VisibleInternal instead of
2402           VIsible to get the actual visible flag set for this form.
2403         * FormWindowManager.cs: Activate the form whenever the mouse clicks on
2404           the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
2405           handle the case when the form is already maximized, in which case
2406           it should be restored. Fixes #81043.
2407
2408 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2409
2410         * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
2411
2412 2007-03-05  Jackson Harper  <jackson@ximian.com>
2413
2414         * TreeViewHitTestInfo.cs: implement.
2415
2416 2007-03-05  Jackson Harper  <jackson@ximian.com>
2417
2418         * InternalWindowManager.cs: class status fix.
2419
2420 2007-03-05  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2421
2422         * InternalWindowManager.cs: All windows that have a parent
2423         are confined to their parent when they're being moved.
2424         Fixes #80822.
2425
2426 2007-03-04  Gert Driesen  <drieseng@users.sourceforge.net>
2427
2428         * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
2429         on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
2430
2431 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2432
2433         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
2434           buttons invisible before deciding which ones should be visible
2435           (fixes minimize/maximize buttons showing up in toolwindows). Remove
2436           an unused variable.
2437         * InternalWindowManager.cs: Remove warning.
2438
2439 2007-03-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2440
2441         * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
2442         to throw an InvalidOperationException is virtual mode is being used.
2443
2444 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
2445
2446         * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
2447         ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
2448         ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
2449         ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
2450         ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
2451         ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
2452
2453 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2454
2455         * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
2456           driver.KeyboardDelay from XplatUI.KeyboardDelay 
2457         * XplatUIW      in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
2458           (patch by Sergey Volk)
2459
2460 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2461
2462         * ToolWindowManager.cs: Added, contains logic for
2463           tool windows.
2464         * CreateParams.cs: Add a few helper methods and an
2465           internal variable to know which control the CreateParams belongs
2466           to.
2467         * Control.cs: Call Form.ChangingParent when the
2468           parent is about to be changed.
2469         * XplatUIX11.cs: DeriveStyles (): Set
2470           caption_height for all windows that have captions and are children.
2471           Update to use ToolWindowManager instead of InternalWindowManager
2472           for ToolWindows.
2473         * XplatUIWin32.cs: Set fake window styles for all
2474           windows that have window managers.
2475         * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
2476           now duplicated for mdi windows when they are
2477           maximized, first for the buttons the window itself has, then for
2478           the buttons that appear in the menu bar. Makes things a little
2479           easier). Updated UpdateWindowDecorations, SetWindowState and the
2480           mouse eventhandlers accordingly.
2481         * Form.cs: Add ChangingParent (), contains the
2482           logic of what should happen when the parent changes. In MdiParent
2483           don't set things that ChangingParent () is doing. When handling
2484           WM_CLOSE, we can close the form if there are any other modal forms
2485           and the current form is a descendent of the modal form.
2486         * InternalWindowManager.cs: A lot of refactoring,
2487           the title buttons are now extracted to a separate container class
2488           that takes care of all button code (clicks, tooltips, etc). Moved
2489           Iconic|Maximized|Normal Bounds properties to this class from
2490           MdiWindowManager, so that the window state logic can succeed for
2491           other than mdi wm's. Implemented general window state change logic.
2492           Moved CreateButtons to ThemeWin32Classic, since the theme might
2493           override which buttons are available when as well as the exact
2494           location.
2495         * FormWindowManager.cs: Added, contains logic for
2496           normal forms.
2497         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
2498           which buttons go where (and if they are at all visible). 
2499           Removed special handling of maximized windows, since they aren't special. 
2500           In DrawManagedWindowDecorations don't try to draw the text if it is
2501           empty.
2502         * MdiClient.cs: ArrangeIconicWindows: Don't  calculate any sizes, 
2503           use whatever the wm gives us.
2504
2505 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
2506
2507         * ButtonBase.cs: Add 2.0 properties.
2508         * Button.cs: Override Draw for 2.0.
2509         * Control.cs: Add Entered and Selected properties.
2510         * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
2511         TextRenderer.cs: Make internal for 1.1 to unify drawing code.
2512         * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
2513         buttons.
2514         * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
2515
2516 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
2517
2518         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code.  :/
2519
2520 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
2521
2522         * XplatUIWin32.cs: Register a new class with Windows each time we get
2523         a new ClassStyle.  [Fixes bugs #79432, #80817]
2524         * Controls.cs: Set the correct ClassStyle in CreateParams.
2525         * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
2526
2527 2007-03-01  Gert Driesen  <drieseng@users.sourceforge.net>
2528
2529         * ListView.cs: Add fireEvent argument to ReorderColumn since the
2530         ColumnReordered event must not be signaled when modifying DisplayIndex
2531         of a ColumnHeader. Added internal ReorderColumns method which takes
2532         care of drawing, and updating the internal DisplayIndex of the
2533         ColumnHeader. Added AddColumn method which is invoked from
2534         ColumnHeaderCollection when adding or inserting columns, and which
2535         ensures that reorder_columns_indices is kept in sync. Avoid redrawing
2536         after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
2537         Recalculated dispay indices after removing a ColumnHeader.
2538         * ColumnHeader.cs: Save DisplayIndex separately from ListView to
2539         match MS. Allows last display index to be returned after ListView
2540         is disposed. Update actual location of ColumnHeader when DisplayIndex
2541         is modified.
2542
2543 2007-03-01  Everaldo Canuto  <everaldo@simios.org>
2544
2545         * LinkLabel.cs: Improve CalcTrimRectangle.
2546         
2547         * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
2548
2549 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
2550
2551         * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
2552         get rectangle as a result value.
2553
2554 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
2555
2556         * LinkLabel.cs: Theres some diferences between rectangle return from 
2557         MeasureCharacterRanges and the area used for DrawString to fix this 
2558         CalcMeasurementFactor method was created, it calcules the diferences
2559         to be use later to adjust rectangle in draw operations. Fixes #80473.
2560         
2561         * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
2562         to adjust draw rectangle.
2563
2564 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
2565
2566         * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
2567         text and some other changes to reduce and optimize source code.
2568
2569 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
2570
2571         * RadioButton.cs: Implement 2.0 event.
2572         * RelatedImageListAttribute.cs: Implement new class.
2573
2574 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
2575
2576         * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
2577
2578 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
2579
2580         * CheckBox.cs: Implement 2.0 functionality.
2581
2582 2007-02-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2583
2584         * ListView.cs: Refactor Add and AddRange methods of
2585         ListViewItemCollection, to not update the ListView
2586         everytime an item is added in AddRange. Also move the update
2587         code to a new CollectionChanged method, and call it
2588         from other methods that need it as well (this should also fix some
2589         bugs when Sorting is used).
2590
2591 2007-02-27  Jackson Harper  <jackson@ximian.com>
2592
2593         * TextControl.cs: Try to never let the caret stay in a non-text
2594         tag.
2595         * TextBoxBase.cs: Update the caret.
2596
2597 2007-02-26  Jonathan Pobst  <monkey@jpobst.com>
2598
2599         * XplatUIStructs.cs: Add some convenience methods for POINT structure.
2600         * XplatUIWin32.cs: Add some convenience methods for RECT structure,
2601         delete POINT structure, duplicate of one in XplatUIStructs.
2602         * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
2603
2604 2007-02-26  Gert Driesen  <drieseng@users.sourceforge.net>
2605
2606         * ListView.cs: Initialize LabelEditEventArgs after setting Text of
2607         edit box since otherwise the Label would immediately be set (even if
2608         the user did not modify the label). In OnKeyDown set Handled to true
2609         if Return or Escape was pressed. In ColumnHeaderCollection unlink
2610         columns that are to be removed. In ListViewItemCollection unlink items
2611         that are to be removed.
2612
2613 2007-02-24  Jonathan Pobst  <monkey@jpobst.com>
2614
2615         * TextRenderer.cs: If we set a GDI clip region, we need to clear
2616         it when we are done.  [Fixes bug #80949]
2617
2618 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
2619
2620         * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
2621
2622 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2623
2624         * ListView.cs: I forgot to commit the changes for ListView 
2625         in my previous patch.
2626
2627 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
2628
2629         * Clipboard.cs: Partially implement an overload of SetDataObject.
2630         * Form.cs: Implement ShowWithoutActivation.
2631         * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
2632
2633 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2634
2635         This is a first set of changes to make the Virtual mode works,
2636         by avoiding the retrieval of ListViewItem instances until
2637         draw time.
2638
2639         * ListView.cs: Store item position in the ListView instead of the
2640         ListViewItem, this way we don't request the Bounds property of
2641         ListViewItem inside the ListView calculations, as well as cache the item
2642         size in item_size field. Store indexes instead of ListViewItem
2643         instances in the matrix used by icon view. Add a ItemMatrixLocation
2644         struct to hold the row and col info of the matrix info.
2645
2646         * ListViewItem.cs: Don't store the location anymore, and only cache
2647         the rectangles for GetBounds. Use the ListView.GetItemLocation
2648         method to retrieve the actual location.
2649
2650 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
2651
2652         * TextRenderer.cs: Add clipping support, thanks to George.
2653         [Fixes bug #80949]
2654
2655 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
2656
2657         * ListViewItem.cs: Cancel label edit when item is removed from 
2658         ListView.
2659         * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
2660         event before the edit textbox is displayed.  Added CancelEdit method
2661         which is used end to editing while ignoring the value set by the
2662         user. In EndEdit, set focus to ListView to avoid losing focus to
2663         other controls. In ListViewItemCollection.Clear, cancel editing of
2664         any of the items.  In Remove, cancel editing of item being removed.
2665         Avoid udplicate code by modifing RemoveAt to invoke Remove.
2666
2667 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
2668
2669         * FileDialog.cs: Update FSEntry when move is successful. Fixes
2670         bug #80948.  
2671
2672 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
2673
2674         * MainMenu.cs: Change Draw method to take care about MenuOrigin to be 
2675         compatible with non X11 systems. Fixes #80901.
2676
2677 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
2678
2679         * ListView.cs: Added bool argument to UpdateMultiSelection to specify
2680         whether the item should be unselected and reselect. We do no want this
2681         when we're starting to edit the label. Do not fire the 
2682         SelectedIndexChanged event from ListView when its already been fired
2683         by modifying ListViewItem.Selected. Fixes bug #80943.
2684
2685 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
2686
2687         * TextRenderer.cs: Previos commit logic was backwards.
2688
2689 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
2690
2691         * TextRenderer.cs: Don't add padding on MeasureText if we were
2692         sent the NoPadding flag.
2693
2694 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
2695
2696         * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
2697         after DrawButton. To prevent image overlaps button borders SetClip and 
2698         ResetClip added before and after draw image. Fixes #79129.
2699
2700 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
2701
2702         * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify 
2703         window size, it fix problem when you run under win32 that theres
2704         Size diferent than ClientSize. Also fix controls size and positions
2705         to mimic Win32. Fixes #80837.
2706
2707 2007-02-22  Everaldo Canuto  <everaldo@simios.org>
2708
2709         * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on 
2710         menu area to fix some problems for non X11 systems. Fixes #80613.
2711
2712 2007-02-22  Jackson Harper  <jackson@ximian.com>
2713
2714         * TreeNode.cs: When a node is expanded, set its is_expanded flag
2715         even if it doesn't have any children.
2716
2717 2007-02-22  Jackson Harper  <jackson@ximian.com>
2718
2719         * TreeView.cs: Calculate the top node 'on the fly', this
2720         eliminates issues where you need to click on the tree before
2721         scrolling it to get the top node computed correctly.
2722         * TreeNodeCollection.cs: We don't need to mess with the top node
2723         anymore.
2724
2725 2007-02-22  Jackson Harper  <jackson@ximian.com>
2726
2727         * DataGridViewRow.cs: Fix typo so height can actually be set.
2728         Patch by Peter Grimm.
2729
2730 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
2731
2732         * FileDialog.cs: Fixed support for renaming files and directories.
2733         * ListView.cs: Do not lose focus when edit is canceled. Process
2734         Escape as regular key (to prevent closing of dialogs).
2735
2736 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
2737
2738         * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
2739         spaces. Changed spaces to tabs. Removed unnecessary init of bools.
2740
2741 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
2742
2743         * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
2744         did not modify label.
2745         * ListView.cs: Only set LabelEditEventArgs.Label if user actually
2746         modified the text. Reset Label when user presses Escape in edit mode.
2747         Move focus to ListView after having cancelled or finished editing the
2748         label.
2749
2750 2007-02-21  Gert Driesen  <drieseng@users.sourceforge.net>
2751
2752         * ComboBox.cs: Removed unnecessary initializations. Marked items field
2753         private. Clear textbox when Text is set to null and SelectedIndex is
2754         already -1.
2755         * FileDialog.cs: Removed unnecessary initializations. Removed 
2756         workarounds for ComboBox bugs that are now fixed. Modified
2757         DefaultExt, InitialDirectory and Title property to change null to
2758         zero-length string in getters. Avoid directly accessing fields.
2759
2760 2007-02-20  Jackson Harper  <jackson@ximian.com>
2761
2762         * TextControl.cs: Remove RecalAlignments call, that was some
2763         debugging leftovers.
2764         - Don't use the line indent when we shouldn't.
2765         * RichTextBox.cs: Add support for paragraph left indents.
2766
2767 2007-02-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
2768
2769         * Control.cs: Fix BeginInvoke signature for 2.0 profile.
2770         Seems like the class status pages doesn't catch params differences.
2771
2772 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
2773
2774         * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
2775
2776 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
2777
2778         * ComboBox.cs: Setting Text should have no effect if item text of
2779         selected item exactly matches value. First lookup text using
2780         case-sensitive comparison, and fallback to case-insensitive comparison.
2781         FindString(Exact) returns -1 if search string is null. On 2.0 profile, 
2782         allow startIndex to be last index. Changed ArgumentOutOfRangeException
2783         paramname to match MS. Restart from first item if string is not found
2784         after startIndex. Fixed paramname of ArgumentNullException that is
2785         thrown for null value in ObjectCollection.Contains.
2786
2787 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
2788
2789         * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
2790
2791 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2792
2793         * ListControl.cs: In SelectedValue use value.Equals to compare for
2794         equality instead of ==, otherwise it will fail for strings.
2795         Fixes #80794.
2796
2797 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2798         
2799         * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
2800         since the caret won't show up unless ShowSelection is true. 
2801         Fixes #80795.
2802
2803 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2804
2805         * Application.cs: When disabling all forms but the main form, do not
2806           disable any descendants of the main form (such as mdi children or
2807           other parented forms). Fixes #80822 on Windows.
2808         * Form.cs: If we have a parent, set the WS_CHILD style.
2809         * Control.cs: Update the window styles if the control whose parent has
2810           changed is a form (the WS_CHILD style has to be switched).
2811
2812 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
2813
2814         * XplatUIStructs.cs: MsgUIState structure added.
2815
2816 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
2817
2818         * FileDialog.cs: Removed need for separate fileName field. On 2.0
2819         profile, do not check filename(s) for illegal character if filename(s)
2820         were set non-interactively but always check on 1.0 profile. Fixed NRE
2821          in DefaultExt and only strip off first leading dot. Improve exception
2822         message when invalid Filter is set. Do not ignore InitialDirectory if
2823         it does no exist. Store specified Title, and if empty use default
2824         title (depending on type of dialog). Added an internal DialogTitle 
2825         property for retrieving dialog title. Fixed logic of displayed dir to
2826         more closely match MS. Avoid setting ComboBox.Text to a zero-length 
2827         string as its buggy.
2828         * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
2829         FileName is a zero-length string (it can never be null). Override 
2830         DialogTitle property to set default title of dialog box.
2831         * SaveFileDialog.cs: Override DialogTitle property to set default
2832         title of dialog box.
2833
2834 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
2835
2836         * FileDialog.cs: Modify default text of filename and filetype labels
2837         to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
2838         after we've updated the SelectedIndex. Fixes part of bug #80887.
2839         * SaveFileDialog.cs: Set text of filetype label.
2840
2841 2007-02-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2842
2843         * LabelEditEventArgs.cs: New internal SetLabel method, to set the
2844         label field. Needed by latest Jackson's fixes for ListView.
2845
2846 2007-02-16  Andreia Gaita  <avidigal@novell.com>
2847
2848         * PrintPreviewControl/PrintPreviewDialog: Properly dispose of 
2849         print preview images.
2850
2851 2007-02-16  Jackson Harper  <jackson@ximian.com>
2852
2853         * ListView.cs: Make AfterLabelEdit work correctly.
2854         * FileDialog.cs: After changing the name of the folder, we have to
2855         make sure that it is created, or that we pop up an error because
2856         it already exists.
2857
2858 2007-02-16  Jackson Harper  <jackson@ximian.com>
2859
2860         * X11Dnd.cs: Implement aliases on mime handlers, so things like
2861         System.String are mapped to text.
2862         - Handle dataobjects, getting all the possible formats out of them
2863         - We dont need the drag event args before we give feedback. This
2864         allows feedback cursors to be immediate before selections have
2865         been converted.
2866
2867 2007-02-16  Jackson Harper  <jackson@ximian.com>
2868
2869         * TextBoxBase.cs: Modified the method for inserting images to
2870         taking a line and position instead of tag and position.
2871         * RichTextBox.cs: Handle PngBlip data by inserting the png image
2872         into the RTF file.
2873         * TextControl.cs: Allow images to be inserted as the first tag of
2874         a line.
2875         - Fix some off by one issues when we assume the first tag is a
2876         text tag, not an image tag.
2877
2878 2007-02-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2879
2880         * ListView.cs: Set focus to ListView when ItemControl gets a
2881         WM_RBUTTONDOWN message, to mimic .Net behaviour. 
2882         Fixes part of #80467.
2883
2884 2007-02-15  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2885
2886         * DateTimePicker.cs: Call RecreateHandle if the Format changes and
2887           validate Text input (if null or empty string reset Value to default
2888           value). Fixes #80830.
2889
2890 2007-02-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2891
2892         * ListView.cs: Set owner as null for columns and items when
2893         Dispose is invoked. Fixes #80607.
2894
2895 2007-02-14  Jonathan Pobst  <monkey@jpobst.com>
2896
2897         * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
2898         showing DropDowns, don't show a Grip when doing Flow layout.
2899         [This fixes the toolbox in PDN 2.72.]
2900         * ToolStripItem.cs: Add Anchor property and some internal properties to
2901         reduces needed changes to FlowLayout.
2902         * ToolStripOverflow.cs: Remove unused variable.
2903         * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
2904         use it in the layout calculations.
2905
2906 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
2907
2908         * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
2909         reported in #79640.
2910         
2911         * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
2912         size calculation.
2913
2914 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
2915
2916         * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from 
2917         MeasureString format, it can make button very large in some cases, it is
2918         strange but is what win32 do.
2919
2920 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
2921
2922         * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string 
2923         size calculation.
2924
2925         * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
2926         rendering, the value is based on MenuAccessKeysUnderlined.
2927
2928 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
2929
2930         * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
2931         for most themes.
2932         
2933         * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
2934         
2935         * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
2936         and use MenuAccessKeysUnderlined instead.
2937
2938 2007-02-13  Andreia Gaita  <avidigal@novell.com>
2939
2940         * ContainerControl.cs: Focus fix for nunit treeview selection bug.
2941         A selected control would not get a Focus call if:
2942                 - the default active control of the container is the same as
2943                   the one that was selected
2944                 - we are switching from one container to another
2945         Under these conditions, the container being selected already has
2946         an active_control, which is the same as the one being activated, 
2947         so set_ActiveControl would always return and not send the Focus
2948         call. Fix to check if the currently active control of the container
2949         is actually focused.
2950
2951 2007-02-13  Jonathan Pobst  <monkey@jpobst.com>
2952
2953         * StatusStrip.cs: Implement the spring layout.
2954         * ToolStripControlHost.cs: Make sure the hosted control's visibility
2955         always matches the host.
2956         * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
2957         and TextAfterImage.
2958
2959 2007-02-13  Andreia Gaita  <avidigal@novell.com>
2960
2961         * Control.cs: Code reorganization only.
2962           - Reorganize the WndProc cases so that each case has it's own handling method, 
2963           to help with the no-line-numbering stack traces.
2964           - Formatting changes (it's vstudio's fault, really :p)
2965
2966 2007-02-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2967
2968         * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
2969           Thread.CurrentUICulture to match DateTimePicker's (and MS)
2970           behaviour.
2971
2972 2007-02-12  Jackson Harper  <jackson@ximian.com>
2973
2974         * RichTextBox.cs:
2975         * TextBox.cs: By default we have a non multiline document
2976         - use the multiline property instead of the internal variable
2977         * TextBoxBase.cs: Treat multiline and non multiline the same in
2978         most places.
2979         - Use the documents multiline flag instead of tracking it ourself
2980         * TextControl.cs: Attempt at getting multiline to match MS
2981         behavior.  Lines now track an offset, which is either their X or Y
2982         offset depending on whether or not we are in multiline mode.
2983         - Update all the methods to understand that lines have an X value.
2984         - Fix crash in Undo::Duplicate when empty lines are deleted.
2985
2986 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
2987
2988         * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and 
2989         code moved to properties PreferredHeight and PreferredWidth. It solve the
2990         all problems when preferred sizes must be recalculated. Fixes #80801.
2991
2992 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
2993
2994         * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
2995         font height when compatible_text_rendering is false. Partially fix #80801.
2996
2997 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
2998
2999         * Form.cs: Fixed typo in exception message. Fixes bug #80779.
3000
3001 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
3002
3003         * Form.cs: Improved exception messages in ShowDialog.
3004
3005 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
3006
3007         * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
3008         PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
3009         if not set. Fixes bug #80764. Avoid accessing current_settings field
3010         directly.
3011
3012 2007-02-08  Everaldo Canuto  <everaldo@simios.org>
3013
3014         * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
3015         false.
3016
3017         * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
3018         public in 2.0 and for easy maintenance and dont break compatibility it is 
3019         internal in 1.1.
3020         
3021 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
3022
3023         * ToolStripItem.cs: Implement using images from ImageList.
3024
3025 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3026
3027         * DateTimePicker.cs: Change default date-formatting culture from
3028           CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
3029           seems to be the way MS does it.
3030
3031 2007-02-08  Andreia Gaita  <avidigal@novell.com>
3032
3033         * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image 
3034         (the 6 was cut off on the right side)
3035
3036 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
3037
3038         * Form.cs: Tell MenuStrips to close when the form is clicked.
3039         * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs, 
3040         ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
3041         ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
3042         ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add 
3043         support for Overflow, where items that do not fit are automatically
3044         reparented to a drop down menu.
3045         * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
3046         Also: fixes bug #80747.
3047
3048 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3049
3050         * ComboBox.cs: Remove warning (unused code).
3051         * ScrollableControl.cs: Remove warning for 1.1 profile.
3052
3053 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3054
3055         * Form.cs: Remove a warning.
3056
3057 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3058
3059         * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
3060           'g' specifier, not documented anywhere, but seems to always show up
3061           as a single space (might have something to do with the DateTime 'g'
3062           specifier, which is the era format, but since DateTimePicker can't
3063           go earlier than 1753 it wouldn't matter) . Fixed quote handling,
3064           won't crash if the format has an unmatched quote. Now shows
3065           single-character formats correctly. Fixes #80744.
3066
3067 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
3068
3069         * StatusStrip.cs: Stretch property needs to call base.Stretch,
3070         not this.Stretch to fix stack overflow. [Fixes bug #80760]
3071
3072 2007-02-07  Chris Toshok  <toshok@ximian.com>
3073
3074         * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
3075         background color.  it overwrites the background image we've
3076         already painted.  Fixes #80599.
3077
3078 2007-02-07  Chris Toshok  <toshok@ximian.com>
3079
3080         * DataGrid.cs: return immediately from Edit() when there are no
3081         columns.  Fixes #80662.
3082
3083 2007-02-07  Chris Toshok  <toshok@ximian.com>
3084
3085         * MessageBox.cs: fix #80625.  don't always show the Help button in
3086         2.0.  use the displayHelpButton parameter to determine if we
3087         should show it. Also, make the internal show_help field private.
3088
3089 2007-02-07  Chris Toshok  <toshok@ximian.com>
3090
3091         * Control.cs (SetVisibleCore): check in the proposed patch for
3092         80604, and set is_visible before calling CreateControl.
3093
3094 2007-02-07  Jonathan Pobst  <monkey@jpobst.com>
3095
3096         * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to 
3097         MonoInternalNote.  This is added automagically by VS2005, so let's not crash
3098         on it.
3099
3100 2007-02-06  Everaldo Canuto  <everaldo@simios.org>
3101
3102         * MenuAPI.cs: hotkey_active internal field added, it is required because
3103         we need to know when hotkeys must be draw, before this change a keystate
3104         Navigating was used but we can have menu in navigating state without
3105         hotkeys. Fixes #80694.
3106         
3107         * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
3108
3109 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3110
3111         * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
3112           corresponding events and methods to be internal for 1.1 profile and
3113           public for 2.0 profile (required by SizeGrip).
3114         * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
3115           implicit control list). Don't set the size nor the location of the
3116           SizeGrip anymore as it's not needed.
3117         * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
3118           draw directly on the captured control (fixes #80656). Removed
3119           ShowGrip (it wasn't used anywhere), redraw (always true), added
3120           GetDefaultSize and GetDefaultRectangle to calculate defaults.
3121         * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
3122           be called from SizeGrip.
3123
3124 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3125
3126         * Timer.cs: Throw ArgumentException if Interval <= 0.
3127
3128 2007-02-05  Jackson Harper  <jackson@ximian.com>
3129
3130         * TreeView.cs: We need to check scrollbar visibility when window
3131         visibility is updated, because non visible trees don't ever add
3132         scrollbars.
3133         * Cursor.cs: We want the override cursor to be reset to NULL when
3134         we set current cursor to the default cursor.
3135
3136 2007-02-05  Jackson Harper  <jackson@ximian.com>
3137
3138         * TextControl.cs: Don't have crlfs when we are non multiline.
3139         - Consolidate the line position.
3140
3141 2007-02-05  Jackson Harper  <jackson@ximian.com>
3142
3143         * X11Keyboard.cs: BACK+CTRL gets a special char code.
3144
3145 2007-02-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3146
3147         * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
3148           handling LeaveNotify->NotifyUngrab in order to send
3149           WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
3150           after calling XUngrabPointer, so we call WindowUngrabbed directly
3151           from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
3152         * Control.cs: Handle WM_CAPTURECHANGED in order to raise
3153           MouseCaptureChanged correctly. Also create handles if changing
3154           Capture (matches MS behaviour).
3155
3156 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3157
3158         * SizeGrip.cs: Make the last change 2.0 only.
3159
3160 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3161
3162         * SizeGrip.cs: If resizing and the capture is lost, revert any size
3163           changes to initial size (fixes #80597).
3164
3165 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3166
3167         * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
3168
3169 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3170
3171         * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
3172           background) and only allow dragging if enabled. This way the
3173           sizegrip can be used to fill the open square that otherwise would
3174           have been shown in the bottom right corner of ScrollableControl
3175           when ScrollableControl is not suppose to support sizing.
3176         * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
3177           sizegrip is shown and enabled, and hook up with necessary events.
3178
3179 2007-02-01  Chris Toshok  <toshok@ximian.com>
3180
3181         * DataGridTextBoxColumn.cs: clean up the
3182         GetFormattedString/GetColumnValueAtRow combination of functions.
3183         Also fix UpdateUI, and the initial state of
3184         IsInEditOrNavigateMode.
3185
3186         * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
3187         aren't supposed to scroll the textbox here, we're supposed to
3188         scroll the datagrid.
3189
3190 2007-02-01  Chris Toshok  <toshok@ximian.com>
3191
3192         * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
3193         setting the position.
3194
3195 2007-02-01  Chris Toshok  <toshok@ximian.com>
3196
3197         * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
3198         here, since the most recent focus fixes keep us from generating
3199         the Leave event when our textbox gets focus.
3200         (Edit): we should be passing null for the column style's
3201         instantText parameter.
3202         
3203 2007-02-01  Jonathan Pobst  <monkey@jpobst.com>
3204
3205         * ToolStripDropDownItem.cs: Make sure DropDownOpening event is 
3206         raised.  Fixes menu text/icons not showing up in PDN.
3207
3208 2007-02-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
3209
3210         * Control.cs: Remove code in constructor that makes every
3211         control with WS_CHILD set have initial location -1, -1.
3212
3213 2007-01-31  Jackson Harper  <jackson@ximian.com>
3214
3215         * X11Dnd.cs: Take the keyboard on init to reduce coupling with
3216         XplatUIX11.
3217         * XplatUIX11.cs: Give teh keyboard to teh dnd.
3218
3219 2007-01-31  Jackson Harper  <jackson@ximian.com>
3220
3221         * X11Dnd.cs: Use IDataObject instead of the DataObject class.
3222         - Remove some debug code.
3223
3224 2007-01-31  Jackson Harper  <jackson@ximian.com>
3225
3226         * XplatUIX11.cs: If you set the override cursor during a grab, it
3227         should actually override the grab cursor.  This comes into play
3228         when you are setting custom cursors in a DND feedback method.
3229
3230 2007-01-31  Jackson Harper  <jackson@ximian.com>
3231
3232         * X11Dnd.cs: Add support for handling the QueryContinue and
3233         GiveFeedback events.
3234         - Cancel drag and drop actions when the escape key is clicked.
3235         * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
3236         can handle the ESCAPE key.
3237         - Allow dnd to swallow BUTTONUP messages if it needs to.  This is
3238         done when dnd events are continued after the button is released.
3239         - Add a new helper method so that dnd can translate key events.
3240
3241 2007-01-31  Alexander Olk  <alex.olk@googlemail.com>
3242
3243         * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
3244         make it more obvious what is happening.
3245
3246 2007-01-30  Jackson Harper  <jackson@ximian.com>
3247
3248         * XplatUIX11.cs: Don't break when handling button release in drag
3249         and drop operations. We need that BUTTONUP message to get through
3250         so capture is released.
3251         * X11Dnd.cs: We don't need to manually grab the pointer anymore,
3252         this is handled automatically when the mouse is down.
3253
3254 2007-01-30  Jackson Harper  <jackson@ximian.com>
3255
3256         * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
3257         is closed, so we need to make sure that we aren't changing the
3258         dialog result when the OK (Open or Save) button has been clicked
3259         and we are closing the window ourselves.  Note we don't need to
3260         worry about the cache being written in this case, because it was
3261         already done in the previous FilOk call.
3262
3263 2007-01-30  Rolf Bjarne Kvinge  <RKvinge@novell.com>
3264         
3265         * DateTimePicker.cs: Remove a warning.
3266         * ComboBox.cs: Remove a couple of warnings.
3267
3268 2007-01-29  Chris Toshok  <toshok@ximian.com>
3269
3270         * XplatUIX11.cs: don't crash, and remove the icon if the user has
3271         set one, if SetIcon is passed a null icon.
3272
3273 2007-01-29  Andreia Gaita  <avidigal@novell.com>
3274
3275         * TextBox.cs: Redraw when the password characters changes
3276         * TextControl.cs: Check if textbox has a password char and draw 
3277         a line of password chars instead of the text in the line. LineTag gets 
3278         an extra Draw() method which allows document.Draw to override the text 
3279         that will be drawn. Removes 1024 char limitation on length of passworded 
3280         lines.
3281
3282 2007-01-29  Jackson Harper  <jackson@ximian.com>
3283
3284         * TextBoxBase.cs: Deleting sections of text is undoable.  Deleting
3285         single chars is not.
3286
3287 2007-01-28  Jonathan Pobst  <monkey@jpobst.com>
3288
3289         * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
3290         one pixel.  Fix a StackOverflowException caused by an overload wrongly
3291         calling itself.
3292
3293 2007-01-26  Everaldo Canuto  <everaldo@simios.org>
3294
3295         * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
3296         also remove ProcessArrowKey and put the code inside ProcessKeys.
3297
3298 2007-01-26  Jonathan Pobst  <monkey@jpobst.com>
3299
3300         * PaddingConverter.cs: Added.
3301
3302 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
3303         
3304         * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
3305         ShowPanels is false (fixes #80600). Only draw up to 127 characters
3306         of text (fixes #80601). For panels clip the text to draw to the
3307         panel (fixes #80603).
3308
3309 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
3310
3311         * ComboBox.cs: Fixed implementation of ResetText.
3312
3313 2007-01-25  Jackson Harper  <jackson@ximian.com>
3314
3315         * TextControl.cs: For the last char of a line we need to use the
3316         line size, not that chars width, since it won't actually be
3317         computed since the right side of a char is based on the start of
3318         the left side of the next char, and the next char does not exist.
3319
3320 2007-01-25  Chris Toshok  <toshok@ximian.com>
3321
3322         * Splitter.cs: fix the new unit tests, and reindent some switch
3323         statements.
3324
3325 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
3326
3327         * ComboBox.cs: Implemented 2.0 methods and events.
3328         * TextBoxBase.cs: Added OnTextUpdate, so that
3329         ComboBox.ComboTextBox can inform ComboBox of it.
3330
3331 2007-01-25  Jackson Harper  <jackson@ximian.com>
3332
3333         * TextControl.cs: Respect ShowSelection when deciding whether or
3334         not to display the caret, this allows comboboxes to have carets
3335         when the combotextbox does not have focus.
3336
3337 2007-01-25  Jackson Harper  <jackson@ximian.com>
3338
3339         * TextControl.cs: Add a Suspend/Resume for updating, basically the
3340         same as the Suspend/Resume for recalc, except this will do actual
3341         Invalidates.
3342         - New Undo manager, works much like the MS version.
3343         - Implemented Redo
3344         * TextBoxBase.cs: The Cut operation is undoable.
3345
3346 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
3347         
3348         * TextBoxBase.cs: Don't antialias text. Makes it look way better
3349         on Windows (no difference on Linux).    
3350
3351 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
3352
3353         * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
3354         we don't want to activate any windows. Fixes #79433.
3355
3356 2007-01-25  Jonathan Pobst  <monkey@jpobst.com>
3357
3358         - ButtonBase.cs: Fix capitalization of parameter: disposing.
3359         [Fixes bug #80609]
3360
3361 2007-01-25  Alexander Olk  <alex.olk@googlemail.com>
3362
3363         * FileDialog.cs:
3364         - Move to using System.ComponentModel.EventHandlerList
3365         - Replace Refresh with Invalidate
3366         - Clear the mime filecache on closing
3367         - Some other memory reducing work. After beeing closed FD now uses
3368           only about 300 KB for the fdo mime stuff plus the memory of the
3369           cached icons.
3370         * Mime.cs: Changed coding style and removed unnecessary commented
3371         code. Some more memory memory reducing work.
3372
3373 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
3374
3375         * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
3376         a few other missing 2.0 properties.
3377         * Theme.cs: Added DrawFlatStyleComboBox.
3378         * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
3379
3380 2007-01-24  Chris Toshok  <toshok@ximian.com>
3381
3382         * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
3383         wake_waiting flag, not just when there's data to be read.  if we
3384         don't, then future wakeup's won't reach us and we'll be doomed to
3385         wait for the entire 1 second timeout forever (unless there are X
3386         events to be had).
3387
3388 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
3389
3390         * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
3391         until you pass Items.Count, not Items.Count - 1 like 1.1.
3392
3393 2007-01-24  Gert Driesen  <drieseng@users.sourceforge.net>
3394
3395         * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
3396
3397 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
3398
3399         * ToolStripContainer.cs: The recent Dock fix exposed that I was
3400         adding the panels in the wrong order.
3401
3402 2007-01-24  Jackson Harper  <jackson@ximian.com>
3403
3404         * TextBoxBase.cs: When we move the caret we also need to move the
3405         selection, this fixes some random crashing after doing select
3406         text, unselect, delete a char, paste.
3407
3408 2007-01-24  Rolf Bjarne Kvinge  <RKvinge@novell.com>
3409
3410         * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
3411
3412 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
3413
3414         * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
3415         OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553. 
3416         * ToolBar.cs: Force redraw in BackgroundImageChanged.
3417
3418 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
3419
3420         * ToolBar.cs:
3421         - Implement support for vertical toolbars. Fixes #80539;
3422         - Call LayoutToolBar when resize, it fix some other problems in layout.
3423         - Rename requested_height to requested_size, as we can have width on it
3424         when toolbar is vertical.
3425         - Create a private property "Vertical" that uses Dock to verify when 
3426         toolbar is vertical or not.
3427         - Set ControlStyles when change Dock property.
3428         - Refactory in LayoutToolBar to have better variables names and to support
3429         vertical toolbars.
3430         - Fixes default value for ButtonSize when button count is equal zero, size
3431         must be (39, 36) test case writed.
3432
3433 2007-01-23  Chris Toshok  <toshok@ximian.com>
3434
3435         * Control.cs: fix the checks so that they work correctly for mdi
3436         parents/children.
3437
3438 2007-01-23  Chris Toshok  <toshok@ximian.com>
3439
3440         * Control.cs: ControlCollection seems to have super-secret
3441         abstraction breaking knowledge of Mdi containers.  allow MdiClient
3442         to add toplevel controls.
3443
3444 2007-01-23  Chris Toshok  <toshok@ximian.com>
3445
3446         * Control.cs: throw an ArgumentException if a toplevel control is
3447         added to our control collection from ControlCollection.Add, as
3448         well as from ControlCollection.IList.Add.  This fixes the
3449         ControlSetTopLevelTest.TestTopLevelAdd unit test.
3450
3451         Also, in ControlCollection.IList.Add, don't through an
3452         ArgumentNullException, throw an ArgumentException, when value ==
3453         null.  This matches MS.
3454
3455 2007-01-23  Chris Toshok  <toshok@ximian.com>
3456
3457         * BindingSource.cs: initial, incomplete, implementation of
3458         BindingSource.
3459
3460 2007-01-23  Jackson Harper  <jackson@ximian.com>
3461
3462         * TextControl.cs:
3463         * TextBoxBase.cs: Checking in some pieces of the undo stuff so
3464         that I can fix a broken unit test (TextBoxTest::ClearUndo)
3465         
3466 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
3467
3468         * ToolBar.cs: Add status fields to ToolBarButtonInfo.
3469
3470 2007-01-23  Andreia Gaita  <avidigal@novell.com>
3471
3472         * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
3473         * TreeNodeCollection.cs: New Add() methods, ContainsKey and
3474         IndexOfKey() for 2.0
3475
3476 2007-01-23  Rolf Bjarne Kvinge  <RKvinge@novell.com>
3477
3478         * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
3479         to prevent it from changing z-order.
3480         * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
3481         leave UI updates in MdiWindowManager.
3482         * InternalWindowManager.cs: Check for 0 sized nc areas and make them
3483         1 sized (NC handling goes weird on Linux otherwise).
3484         * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
3485         necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
3486         remove a few NCRequestRecalcs. Changed calculations in IconicBounds
3487         to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
3488         and SetWindowState(s) to allow for changing the size of an activated child
3489         before activating it (reduces a lot of flicker).
3490
3491 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
3492
3493         * Form.cs: Changing FormBorderStyle has different semantics based
3494         on whether the Form is visible or not.  If not visible, don't change
3495         the Size.  But InvalidateNC needs to be called to force the window
3496         to pick up the changes and redraw itself.  [Fixes bug #80574]
3497
3498 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
3499
3500         [Moma work]
3501         * ContainerControl.cs: ProcessCmdKey.
3502         * ErrorProvider.cs: new constructor.
3503         * Form.cs: fix AutoValidateEvent compiler warning.
3504         * Label.cs: fix OnAutoSizeChanged compiler warning.
3505         * MenuStrip.cs: fix CanOverflow compiler warning.
3506         * TabControl.cs: SelectTab, OnSelected methods, Selected event.
3507         * TextBox.cs: Dispose.
3508         * ToolStrip.cs: CanOverflow, re-enable double buffering.
3509         * ToolStripControlHost.cs: fix CausesValidation compiler warning.
3510         * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
3511         * ToolStripItem.cs: Overflow, RightToLeft properties.
3512
3513 2007-01-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
3514
3515         * Form.cs: Move the layout of the main form to MdiWindowManager.
3516         * MdiWindowManager.cs: If WindowState changes from or to Maximized,
3517         do a layout of the main window to update MdiClient's client area to
3518         the right area. Fixes #80533. Remove the calculation of nc size, 
3519         it was just wrong and the correct one is the same as for 
3520         InternalWindowManager. 
3521
3522 2007-01-20  Jonathan Pobst  <monkey@jpobst.com>
3523
3524         * Control.cs: Setting Anchor or Dock needs to reset the other
3525         to its default.  [Fixes bug #80556]
3526
3527 2007-01-20  Chris Toshok  <toshok@ximian.com>
3528
3529         * CheckedListBox.cs: class status changes.
3530
3531         * ScrollableControl.cs: same.
3532
3533         * RichTextBox.cs: same.
3534
3535         * ContainerControl.cs: same.
3536
3537         * ListView.cs: same.
3538
3539         * NotifyIcon.cs: same.
3540
3541         * MenuStrip.cs: same.
3542
3543         * RadioButton.cs: same.
3544
3545         * CheckBox.cs: same.
3546
3547         * PrintPreviewDialog.cs: same.
3548
3549         * Form.cs: same.
3550
3551 2007-01-19  Jonathan Pobst  <monkey@jpobst.com>
3552
3553         * TreeNode.cs: Apply Alan's patch for Name property.
3554
3555 2007-01-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
3556         
3557         * Form.cs: Implemented SizeGripStyle.
3558         * SizeGrip.cs: Check for minimum and maximum size for the
3559         control being resized and only resize if size has actually
3560         changed.
3561
3562 2007-01-19  Chris Toshok  <toshok@ximian.com>
3563
3564         * DataGridColumnStyle.cs: stop setting _readonly in the
3565         PropertyDescriptor setter.  fixes a unit test failure.
3566
3567         also, rename ParentReadOnly to TableStyleReadOnly, and have it
3568         just consult our table style (if we have one).  We don't need to
3569         consult the datagrid readonly attribute because that's passed in
3570         as the _ro arg to Edit.  this simplifies things a little.
3571         
3572         * DataGrid.cs: use CurrentColumn instead of
3573         current_cell.ColumnNumber just to simplify some of the code.
3574
3575         switch the order of some things in the CurrentCell setter to keep
3576         the previous cell from getting a textbox again -
3577         EnsureCellVisibility causes scrolling to happen, which calls Edit.
3578         So we need to set the new cell before calling it.
3579         
3580         call Edit in OnEnter, as does Microsoft.
3581         
3582         also, make sure the current table style isn't the one we create
3583         initially when checking to see if it's different than the one
3584         we're setting it to in BindColumns (this fixes #80421).
3585
3586         * GridTableStylesCollection.cs: table styles can have "" for a
3587         mapping name.  part of the fix for #80421.
3588
3589         * DataGridTextBoxColumn.cs: simplify the readonly calculation in
3590         Edit significantly.
3591
3592 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
3593
3594         * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
3595         and less GDI object leaky-er.
3596
3597 2007-01-18  Andreia Gaita  <avidigal@novell.com>
3598
3599         * LinkLabel.cs: Add opaque control style
3600
3601 2007-01-18  Jackson Harper  <jackson@ximian.com>
3602
3603         * TextControl.cs: Calculate width properly.
3604         - Don't store the tag's X offset, this can be figured out very
3605         easily.
3606         - When getting the caret tag make sure to get the last empty tag.
3607
3608 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
3609
3610         * Form.cs: Recalculate our size after setting a new FormBorderStyle.
3611         [Fixes bug #79959]
3612
3613         * Control.cs: Color.Empty shouldn't count for previous transparent
3614         redraw changes.
3615
3616 2007-01-18  Jackson Harper  <jackson@ximian.com>
3617
3618         * TextBox.cs:
3619         * RichTextBox.cs:
3620         * TextControl.cs: Starting to merge in some pieces of my older
3621         undo work.  Basically just some slight cleanup of the undo API.
3622
3623 2007-01-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
3624
3625         * TrackBar.cs: Fix signature of RightToLeftLayout.
3626         * StatusBar.cs: Implemented missing 2.0 methods and attributes.
3627         * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
3628         * Application.cs: Implemented UseWaitCursor.
3629
3630 2007-01-18  Jackson Harper  <jackson@ximian.com>
3631
3632         * TextControl.cs: We can't skip tags if any part of the tag is
3633         visible.
3634
3635 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
3636
3637         * ContainerControl.cs: Override OnLayout.
3638
3639 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
3640
3641         * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
3642
3643         * ContextMenuStrip.cs: Make sure context menu is shown on top of 
3644         everything else.
3645
3646 2007-01-18  Chris Toshok  <toshok@ximian.com>
3647
3648         * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
3649         (leftover from the container_selected days, I'd wager).  fixes bug
3650         #80546.
3651
3652 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
3653
3654         * Control.cs: Apply patch from George to fix the new testcase on
3655         bug #80451.  We can't just check for Color.Transparent, we need 
3656         to check if the back color's alpha channel is < 255.
3657
3658 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
3659
3660         * Form.cs: Move setting show_icon = true to before the constructor
3661         so that the base constructor has that information when it calculates
3662         the form's size.  Was causing forms to be (6, 6) bigger than they
3663         were supposed to be.  Thanks for catching this Rolf!
3664
3665 2007-01-18  Jackson Harper  <jackson@ximian.com>
3666
3667         * TextControl.cs: When replacing a selection we need to invalidate
3668         from the initial selection start, because selection start is moved
3669         to the end of the replacement.
3670
3671 2007-01-18  Andreia Gaita  <avidigal@novell.com>
3672
3673         * LinkLabel.cs: Missing ControlStyles. Fixes #80482
3674
3675 2007-01-18  Chris Toshok  <toshok@ximian.com>
3676
3677         * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
3678         I just added.
3679
3680 2007-01-17  Everaldo Canuto  <everaldo@simios.org>
3681
3682         * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every 
3683         layout methods and properties from ToolBarButton must be available
3684         into ToolBarButtonInfo.
3685
3686 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
3687
3688         * Control.cs: If the control has a transparent background, we
3689         need to refresh it when it moves and when it's parent's background
3690         image changes.  [Fixes bug #80451]
3691
3692 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
3693
3694         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code!  Doh!
3695
3696 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
3697
3698         * XplatUIWin32.cs: Implement proper double buffering for Windows.
3699         [Fixes bug #80447, and probably speeds up things as well]
3700
3701 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
3702
3703         * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
3704         * XplatUIWin32.cs: We need to recalculate NC size after changing 
3705         window style to toolwindow (otherwise the client rectangle will be
3706         3 pixels to small for some reason).
3707         * MdiWindowManager.cs: Revert NC size calculations to match how
3708         they are calculated only based on window styles (to match
3709         Win32AdjustWindowRectEx, since otherwise when setting size or 
3710         location, Control will call Win32AdjustWindowRectEx to update client 
3711         size, which would provoke a paint, then we'd get a NCCALCSIZE and 
3712         calculate a different value of client size causing another paint 
3713         (and flickering))
3714         * InternalWindowManager.cs: When moving or resizing a window only
3715         update size or location if they actually changed.
3716         * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
3717         (seems to match Windows behaviour better). Cleaned up 
3718         ManagedWindowDecorations to draw what's needed and nothing else
3719         (was drawing borders and lines where they shouldn't be)
3720         * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
3721         (style = 0xFFFF) and takes into account caption height when 
3722         calculating window rectangle.   
3723
3724 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
3725
3726         * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button 
3727         can be added to toolbar multiple times, we need to maintain a list of 
3728         button information for each positions.
3729
3730 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
3731
3732         * ToolBar.cs: Some small stetic changes.
3733
3734 2007-01-16  Jackson Harper  <jackson@ximian.com>
3735
3736         * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
3737         that allow us to have nested recalc = false blocks.
3738         - Add paste support for images in the RichTextBox
3739         * RichTextBox.cs: flush the text after the color is changed, so
3740         the change takes effect.
3741         - Use SuspendRecalc
3742         - Some extra debugging info
3743         * TextControl.cs: Tags no longer track their length, it is just
3744         computed from the next tags length, this makes things a little
3745         simpler and reduces places that we have to track length changes.
3746         - Refactored the linetag class a little so we could make it
3747         a base class for different kinds of tags
3748         - Created a image tag, a tag that can have a single image inserted
3749         into it
3750         - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
3751         that we can call suspend multiple times.
3752         - Add some debugging methods
3753
3754 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
3755
3756         * MdiClient.cs: Add ActivatePreviousChild for 
3757         mdi child window navigation.
3758         * Form.cs: Use MdiClient.ActivateNextChild/
3759         ActivatePreviousChild instead of Form.SelectNextControl
3760         to select the next/previous child since 
3761         SelectNextControl doesn't do it in the same order
3762         as mdi children should do it.
3763
3764 2007-01-16  Chris Toshok  <toshok@ximian.com>
3765
3766         * Control.cs: remove container_selected field.
3767
3768 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
3769
3770         * MdiClient.cs: Update main form's ActiveChild when
3771         updating keyboard focus for the mdi child.
3772
3773 2007-01-16  Jonathan Pobst  <jpobst@novell.com>
3774
3775         * Control.cs: PreferredSize fix.
3776
3777         * Form.cs: Add several 2.0 events, properties, and methods.
3778
3779 2007-01-16  Gert Driesen  <drieseng@users.sourceforge.net>
3780
3781         * Form.cs: Provide meaningful message when MdiParent is assigned a
3782         Form that is not an MdiContainer.
3783
3784 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
3785
3786         * MdiClient.cs: Update main form's ActiveChild when
3787         activating a mdi child.
3788
3789 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
3790
3791         * MdiWindowManager.cs: Fix NRE when merging menus and main form
3792         doesn't have a menu.
3793
3794         * Form.cs: Request NCRecalc after creating a mdi child window.
3795         Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab, 
3796         Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
3797         
3798         * MdiClient.cs: Add new method SendFocusToActiveChild that either
3799         sends keyboard focus to the active child, or to the MdiClient
3800         if there are no child forms.
3801         
3802 2007-01-15  Chris Toshok  <toshok@ximian.com>
3803
3804         * ListView.cs: drop the *Internal overrides, just do our work in
3805         ItemControl's WndProc instead.
3806
3807         * UpDownBase.cs: a few large changes.  Fix up the Selectable state
3808         of the various controls, and forward the events properly (in the
3809         same manner as MS) from the textbox to the UpDown.  Also the
3810         ActiveControl of the UpDownBase gets set properly now.  Finally,
3811         we don't call UpdateEditText from the ctor.  Fixes bug #79957.
3812
3813         * NumericUpDown.cs: set Text in the ctor.
3814
3815         * DomainUpDown.cs: call UpdateEditText in the ctor.
3816         
3817         * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
3818         so even a Selectable = false textbox can be focused if you click
3819         in it.  Go figure.
3820
3821         * Control.cs: remove On{Got,Lost}FocusInternal.  Subclasses can
3822         just add their handling in their respective WndProc's.  Also add
3823         an explicit FocusInternal method that doesn't consult CanFocus
3824         before calling Select(this).
3825
3826         * TextBoxBase.cs: deal with removal of the FocusInternal calls -
3827         do our work in WndProc instead.
3828
3829         * TabControl.cs: same.
3830
3831         * ComboBox.cs: same.
3832
3833 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
3834
3835         * Menu.cs: implement MergeItems and Replace for MenuMerge method.
3836         Fixes #80006.
3837
3838 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3839
3840         * ListViewItem.cs:
3841         * ThemeWin32Classic.cs: Don't draw the item text outside
3842         item bounds in Details view, as well as use trimming.
3843         Fixes bug #80376.
3844
3845 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
3846
3847         * Form.cs: Implement Form.ShowIcon.
3848         
3849         * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
3850         null, which when combined with the DlgModalFrame window style removes
3851         the icon from the title bar.
3852
3853 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
3854
3855         * Control.cs: Call OnMouseClick after OnClick. (2.0)
3856
3857 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
3858
3859         * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
3860         menu when mdi child windows theres a menu, uses insert to get icon
3861         at first position. Partially fix #80006.
3862
3863 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
3864
3865         * Clipboard.cs: Implement 2.0 methods.
3866
3867 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
3868
3869         * Menu.cs: Implement Insert method of MenuItemCollection class
3870         to fix MenuMerge.
3871
3872 2007-01-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3873
3874         * ListView.cs: Implement 2.0 FindItemWithText method.
3875
3876 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
3877
3878         * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
3879         to calculate menu bar size. Fixes #80290.
3880
3881 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
3882
3883         * ThemeWin32Classic.cs: Fix position of menuitem check mark.
3884
3885 2007-01-11  Chris Toshok  <toshok@ximian.com>
3886
3887         * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
3888         initial form.
3889
3890 2007-01-11  Chris Toshok  <toshok@ximian.com>
3891
3892         * LinkLabel.cs: make sure to call base.Select in our Select method
3893         if it turns out we're going to be selected (i.e. if we have a link
3894         that is going to receive focus).  That way our container's
3895         ActiveControl is updated properly.
3896
3897 2007-01-11  Chris Toshok  <toshok@ximian.com>
3898
3899         * LinkLabel.cs: turns out that LinkLabels are only Selectable if
3900         they have 1 or more links.  this fixes the crash gert reported.
3901
3902 2007-01-11  Andreia Gaita  <avidigal@novell.com>
3903
3904         * ContainerControl.cs: Remove ContainerSelected flag, not needed
3905         anymore.
3906
3907         * Control.cs (Controls.Add): Check if control to be added to the collection
3908         is a top level control, and throw an ArgumentException if it is.
3909         Remove ContainerSelectedFlag, not needed anymore.
3910
3911         * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
3912         top most control doesn't activate the form. This fixes a problem in the
3913         MessageBox, where the default button wouldn't get focus because the form
3914         was activated before being Loaded - when the Owner is set, SetTopMost is
3915         called, and it would activate it.
3916
3917 2007-01-11  Jonathan Pobst  <jpobst@novell.com>
3918
3919         * Button.cs: When clicked and setting the parent form's DialogResult,
3920         use FindForm instead of Parent, since parent could be a container
3921         control and not the Form.  Fixes bug #80495.
3922
3923 2007-01-10  Chris Toshok  <toshok@ximian.com>
3924
3925         * Form.cs: move the call to SendControlFocus into the same
3926         is_loaded check.
3927
3928 2007-01-10  Chris Toshok  <toshok@ximian.com>
3929
3930         * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
3931         It breaks in the face of the new ActiveControl stuff, and should
3932         be unnecessary.
3933
3934         * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
3935         activecontrol's focus if it's not already set, after we set
3936         ActiveControl, but before we call OnActivated.  Re-fixes #79667
3937         after the previous focus/active control fixes regressed it.
3938
3939         * Control.cs: reindent some code.
3940         
3941 2007-01-10  Chris Toshok  <toshok@ximian.com>
3942
3943         * Splitter.cs: clearing some outstanding changes from my tree.
3944         Replace all accesses (not writes) to the internal dock_style field
3945         with the Dock property.
3946
3947 2007-01-10  Chris Toshok  <toshok@ximian.com>
3948
3949         * Control.cs: make FireEnter, FireLeave, FireValidating, and
3950         FireValidated virtual.
3951
3952         * Form.cs: override and don't chain up calls to FireEnter and
3953         FireLeave.
3954
3955 2007-01-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3956
3957         * ListView.cs: Add more text padding space when using
3958         auto resize for columns (the previous value didn't work fine).
3959
3960         * ThemeWin32Classic.cs: Update text position inside columns,
3961         to match the appeareance of .Net.
3962
3963         * ColumnHeader.cs: When using auto resize, only the Width should
3964         depend on the sub items, not the Height. Also, set width after
3965         auto resizing (the value of Width should never remain as -1 or -2).
3966
3967 2007-01-10  Chris Toshok  <toshok@ximian.com>
3968
3969         * Application.cs: fix compilation errors when debug is enabled.
3970
3971 2007-01-10  Chris Toshok  <toshok@ximian.com>
3972
3973         * ContainerControl.cs (set_ActiveControl): rework this a bit (and
3974         add some nice ascii art pictures and explanation of the process).
3975         (GetMostDeeplyNestedActiveControl): new utility function we need
3976         because our ActiveControl can refer to a child container with its
3977         own ActiveControl.
3978
3979         * Form.cs (OnActivated): remove the call to SelectActiveControl
3980         from here, since you can override this method and not chain up,
3981         and winforms still sets the active control.
3982         (OnCreateControl): also remove the unnecessary SelectActiveControl
3983         call from here.
3984         (WndProc): it's actually called from the WM_ACTIVATE block, just
3985         before calling OnActivated.
3986
3987         * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
3988         inside the else.  the ActiveControl setter will end up setting
3989         focus on @control.  This keeps us from setting it again (and
3990         generating an extra LostFocus/GotFocus pair).
3991         (Select (bool, bool)): reindent.
3992
3993 2007-01-10  Jonathan Pobst  <jpobst@novell.com>
3994
3995         * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
3996         StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
3997         ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
3998         ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
3999         ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
4000         ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
4001         ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
4002         ToolStripTextBox.cs: Another wave of corcompare work.
4003
4004 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4005
4006         * ColumnHeader.cs: Implement 2.0 AutoResize method using
4007         the Width property.
4008
4009         * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
4010         methods by callling Column.AutoResize method on columns.
4011
4012 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
4013
4014         * Control.cs: Provide proper implementations of PreferredSize
4015         and GetPreferredSize (2.0).
4016
4017 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
4018
4019         * Form.cs: Remove one character (!) to make my previous OnClosing
4020         stuff work for modal windows like MessageBox.
4021
4022 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4023
4024         * ListView.cs:
4025         * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
4026         ListView.Columns to get the last displayed column. Fixes #80452.
4027
4028 2007-01-09  Everaldo Canuto  <everaldo@simios.org>
4029
4030         * Label.cs, LinkLabel.cs: Source code identation fixes.
4031
4032 2007-01-08  Everaldo Canuto  <everaldo@simios.org>
4033
4034         * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
4035         we dont need to invalidate only borders because when we invalidate four
4036         border lines the invalidate's generates a complete redraw of button, 
4037         because it now invalidate a complete rect some other redraws operations
4038         are fixed. Fixes #80196.
4039         
4040         * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
4041         Remove ToolBarInvalidateEntireButton as it is not used.
4042
4043 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
4044         
4045         * Form.cs: Make sure that both OnClosing and OnFormClosing are
4046         called for 2.0 profile.
4047         * CloseReason.cs: Make class internal for 1.1.
4048
4049 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
4050
4051         * ToolStripManager.cs: Implement FindToolStrip functionality.
4052         * ToolStrip.cs: Register and unregister with ToolStripManager.
4053
4054 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
4055
4056         * Control.cs: This was messy.  2.0 moves much of ControlCollection
4057         to ArrangedElementCollection.  Implemented this with as few #if's as 
4058         possible (which is still too many).
4059
4060 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
4061
4062         * Control.cs: Implement SizeFromClientSize() [2.0].
4063
4064 2007-01-07  Everaldo Canuto  <everaldo@simios.org>
4065
4066         * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
4067         use Theme.BorderSize to calculate area instead of static value 1, 
4068         by the way use new BorderStaticSize instead     Border3DSize when 
4069         border_static is true. Fixes #79537.
4070         
4071         * XplatUIOSX.cs: Fix call to GetClientRectangle. 
4072         
4073         * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
4074         it is not needed.
4075
4076 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
4077
4078         * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
4079
4080 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
4081
4082         * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
4083         WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
4084         
4085         * Hwnd.cs: 
4086         - border_static field added, it will used to define when a control 
4087         theres 3D border but it must be static (thin).
4088         - In GetWindowRectangle use Theme.BorderSize to calculate area 
4089         instead of static value 1, by the way use new BorderStaticSize instead
4090         Border3DSize when border_static is true.
4091
4092         * XplatUIX11.cs, XplatUIOSX.cs: 
4093         - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
4094         
4095         * Theme.cs: BorderStaticSize field added.
4096
4097 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
4098
4099         * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
4100
4101 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
4102
4103         * Control.cs: Under InternalBorderStyle call RecreateHangle to 
4104         mimic same behavior than win32 that set border only in CreateParams,
4105         it fix problems under CreateParams overrides. Fix #79442 and partial
4106         fix #79537.
4107         
4108         * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
4109         of thi control you must call recreate handle. 
4110         
4111         * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
4112         need to do anything as RecreateHangle will take care about borders.
4113
4114 2007-01-05  Mike Kestner  <mkestner@novell.com>
4115
4116         * ListView.cs: hack to eliminate Lost/Got focus notifications on
4117         cycles between the ItemControl and parent.  Fixes #80388.
4118
4119 2007-01-05  Gert Driesen  <drieseng@users.sourceforge.net>
4120
4121         * Control.cs: Lazy init layout engine. Do not directly use 
4122         layout_engine since LayoutEngine may be overridden (on 2.0 profile).
4123
4124 2007-01-05  Chris Toshok  <toshok@ximian.com>
4125
4126         * DataGrid.cs: don't forceably rebind columns in SetDataSource
4127         unless our list manager has changed (i.e. unless we have reason to
4128         believe our columns have changed).  Fixes #80422.
4129         
4130         also, disable the call do BindColumns in
4131         OnListManagerMetaDataChanged.  this breaks this test in 2.0 (in
4132         1.1 the event isn't raised in response to a column addition on a
4133         table.)
4134
4135 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
4136
4137         * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
4138         that inheritors can not call it if they choose.  Fixes bug #80456.
4139
4140 2007-01-05  Andreia Gaita  <avidigal@novell.com>
4141
4142         * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it 
4143         doesn't blow up with a null exception on marshalling.
4144         
4145 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
4146
4147         * Control.cs: Implement several 2.0 protected properties and methods.
4148         Ensure that all necessary events are being called when properties
4149         are set.
4150
4151 2007-01-05  Mike Kestner  <mkestner@novell.com>
4152
4153         * ListView.cs: implement PgUp/PgDn for Details view.  Also
4154         fixes First/LastVisibleIndex to use the item_control.ClientRect 
4155         instead of the parent control.  Fixes #80378.
4156
4157 2006-01-05  Atsushi Enomoto  <atsushi@ximian.com>
4158
4159         * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
4160           determine whether to use yard-pound or not (bug #78399).
4161
4162 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
4163
4164         * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
4165         problems. So it is time to bring back the old popupbutton colors.
4166
4167 2006-01-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4168
4169         * ColumnHeader.cs:
4170         * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
4171         property by using the internal information of the
4172         columns order in ListView.
4173
4174 2007-01-04  Jonathan Pobst  <monkey@jpobst.com>
4175
4176         * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
4177         Add 2.0 Tag properties.
4178
4179         * LinkArea.cs: Add 2.0 ToString method.
4180
4181 2007-01-03  Chris Toshok  <toshok@ximian.com>
4182
4183         * DataGrid.cs: the Alt+0 handling was wrong, it should have been
4184         Ctrl+0.  Fixes bug #80367.  Also, don't eat the Delete keypress
4185         when we're editing, which fixes #80047.
4186
4187 2007-01-03  Chris Toshok  <toshok@ximian.com>
4188
4189         * Form.cs: apply patch contributed by Dominik Seichter.  fixes
4190         #80404.
4191
4192 2007-01-03  Jonathan Pobst  <monkey@jpobst.com>
4193
4194         * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
4195         property and implementation.
4196
4197         * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
4198         for MdiWindowListItem property.
4199
4200         * ToolStripDropDown.cs: Don't consider hidden menu items while
4201         laying out the menu.
4202
4203 2007-01-03  Andreia Gaita  <avidigal@novell.com>
4204
4205         * SendKeys.cs: window handle is not needed in win32, so just
4206         get the active window for X after parsing keys and don't use
4207         it when building the message; it is passed by parameter to the 
4208         Xplat method and used there to build the message instead. Also,
4209         wait for events to be processed on SendWait, as opposed to Send,
4210         which doesn't wait :) Playing with threads and Send() completely 
4211         hangs on ms.net, only SendWait() works.
4212         
4213         XplatUIX11.cs
4214         X11Display.cs: Check for valid window handle.
4215
4216 2007-01-03  Jackson Harper  <jackson@ximian.com>
4217
4218         * TextControl.cs: Need to prevent wrap calculations when replacing
4219         text (this was there before i removed it accidently).
4220         - Don't update the cursor during the positioning, just set it to
4221         selection_start at the end of the operaion.
4222
4223 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4224
4225         * Control.cs:
4226         * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
4227         
4228 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4229
4230         * MonthCalendar.cs: Added Click and DoubleClick events again,
4231         but this time they only hide Control's Click and DoubleClick.
4232         
4233 2007-01-03  Gert Driesen  <drieseng@users.sourceforge.net>
4234
4235         * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
4236         System.Drawing assembly. Spaces to tabs. Removed extra tabs.
4237
4238 2007-01-02  Jackson Harper  <jackson@ximian.com>
4239
4240         * TextBoxBase.cs: We move the caret with the split now, so we
4241         don't need to explicitly move the caret after splitting.  This
4242         fixes the caret bumping down an extra line on Enter.
4243
4244 2007-01-02  Miguel de Icaza  <miguel@novell.com>
4245
4246         * ContainerControl.cs: Add AutoValidateChanged event (for PDN
4247         2.72). 
4248
4249         * ScrollableControl.cs: Add Scroll event.
4250
4251 2007-01-02  Mike Kestner  <mkestner@novell.com>
4252
4253         * ListView.cs: one more try with help from georgegiolfan@yahoo.com 
4254         to fix all hdr height padding codepaths.  Fixes #80207.
4255
4256 2007-01-02  Chris Toshok  <toshok@ximian.com>
4257
4258         * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
4259         setting it to the Control defaults anyway, and it being after the
4260         Dock set was screwing up layout.
4261         (set_Dock): don't short circuit out of setting base.Dock.  Also,
4262         no need to call UpdateStatusBar here, as it'll be re-layed out if
4263         it needs to be.
4264
4265 2007-01-02  Mike Kestner  <mkestner@novell.com>
4266
4267         * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
4268         to header height for width == -1. Fixes the rest of #80207.
4269
4270 2007-01-02  Mike Kestner  <mkestner@novell.com>
4271
4272         * ListView.cs: rework the mouse event forwarding everaldo added
4273         to translate the coordinates to the parent control not
4274         raise the parent events until after we've done our work. Hover
4275         needs more work, in the case where HoverSelection is on, because
4276         the item control receives more than one MouseHover per Enter
4277         event, so we need to ensure only the "first" hover gets forwarded.
4278         Opening a minor bug for that.
4279
4280 2007-01-02  Gert Driesen  <drieseng@users.sourceforge.net>
4281
4282         * CheckedListBox.cs: Fixed SelectionMode to match MS.
4283         * ListControl.cs: Implemented AllowSelection property. Removed extra
4284         tabs.
4285         * ListBox.cs: Implemented AllowSelection property.
4286
4287 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
4288
4289         * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
4290         SelectedItem, it prevent for errors when you must disable item
4291         before perform click. Fixes #80409.
4292
4293 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
4294
4295         * MenuAPI.cs: Prevent second level and beyond submenus to close
4296         until first level when move out side of popup.
4297         
4298 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
4299
4300         * MenuAPI.cs:
4301         - Down submenu positin in three pixels.
4302         - Closes sub menu when mouse leaves from menu. Fixes #80402.
4303
4304 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
4305
4306         * ThemeWin32Classic.cs:
4307         - Fix popup menu size adding one pixel on the top.
4308         - Down menu item border from two to one to mimic Win32.
4309         - Some source identation fixes. 
4310
4311 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
4312
4313         * ThemeWin32Classic.cs: Use float numbers to calculate size and
4314         position of menu arrows, it fix wrong arrow size.
4315
4316 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
4317
4318         * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
4319         instead of line, it simplify draw operation and fix it using 3D
4320         borders to mimic Win32.
4321
4322 2007-01-01  Jonathan Pobst  <monkey@jpobst.com>
4323
4324         * StatusStrip.cs: Add implementation of the sizing grip.
4325
4326         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
4327         StatusStrip rendering.
4328
4329 2006-12-31  Chris Toshok  <toshok@ximian.com>
4330
4331         * ToolBar.cs: don't assign to dock_style in the .ctor.  it doesn't
4332         override the layout style (anchor/dock) of the control.  assign to
4333         Dock instead.  Fixes bug #80416.
4334
4335         * ToolStrip.cs: same.
4336
4337 2006-12-31  Andreia Gaita  <avidigal@novell.com>
4338
4339         * ContainerControl.cs: Use ContainerSelected flag to check if 
4340         a Container is directly selected, or if Select is called on a 
4341         non-container. If a container is directly selected, focus events 
4342         should not be raised.
4343         Apply #80411 patch to throw exception on set_ActiveControl if 
4344         control is the same as the current one.
4345         
4346         * Control.cs: Use ContainerSelected flag (see above).
4347         Add invalidation check to raise event but not invalidate if 
4348         dimensions are 0.       
4349         Apply #80411 patch.
4350         
4351
4352 2006-12-31  Everaldo Canuto  <everaldo@simios.org>
4353
4354         * MenuAPI.cs: After click, dont close popup menu when menu is
4355         ContextMenu. Fixes #80399.
4356
4357 2006-12-30  Chris Toshok  <toshok@ximian.com>
4358
4359         * ContainerControl.cs: make sure we throw the exception if the
4360         container control doesn't contain the control we're setting
4361         ActiveControl to.
4362
4363 2006-12-30  Chris Toshok  <toshok@ximian.com>
4364
4365         * Control.cs (SetTopLevel): fix the exception raised by
4366         SetTopLevel for child controls.
4367         (set_Anchor): call UpdateDistances when setting the anchor type.
4368         This fixes bug #80336.
4369
4370 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
4371
4372         * Theme.cs: For now, revert back to 8pt font.
4373
4374 2006-12-29  Everaldo Canuto  <everaldo@simios.org>
4375
4376         * MenuAPI.cs: Set popup as active when open a ContextMenu. 
4377         Fixes #80395.
4378
4379 2006-12-29  Chris Toshok  <toshok@ximian.com>
4380
4381         * Control.cs: reorder the code in OnResize to give the same event
4382         ordering as MS.
4383
4384 2006-12-29  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4385
4386         * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
4387         TileHorizontally and TileVertically.
4388         
4389 2006-12-29  Alexander Olk  <alex.olk@googlemail.com>
4390
4391         * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
4392         FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
4393         SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
4394         Corrected copyright and email adress.
4395
4396 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
4397
4398         * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
4399         of Exception in FullPath property if no TreeView is associated with
4400         the TreeNode.
4401
4402 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
4403
4404         * Theme.cs: Marked default_font as private, and initialize it in ctor
4405         with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
4406         on 2.0 profile.
4407         * ThemeGtk.cs: Removed default_font intialization.
4408         * ThemeWin32Classic.cs: Removed default_font initialization.
4409
4410 2006-12-28  Chris Toshok  <toshok@ximian.com>
4411
4412         * Control.cs: fix a couple of place where we were creating handles
4413         more aggressively than we should be.  Fixes ControlRefresh unit
4414         tests.
4415
4416 2006-12-28  Chris Toshok  <toshok@ximian.com>
4417
4418         * Control.cs: contrary to what the comment said, Control.Dock does
4419         not supercede Control.Anchor - the last one you assign to decides
4420         the layout behavior.  so we need to keep track of which was the
4421         last set.  Also, fix some of the affected property arguments in
4422         PerformLayout calls, and remove an redundant parent.PerformLayout
4423         call in OnResized.
4424
4425         Add a VisibleInternal property, which returns is_visible.  We
4426         can/should get rid of all the usage of this field elsewhere.
4427
4428 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4429         
4430         * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
4431         control style, not DoubleBuffer. Added UseDoubleBuffering property
4432         that indicates whether doublebuffering is enabled and supported.
4433         (comment from and code based on Gert Driesen's patch in #80324).
4434         Fixes #80324.
4435
4436 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4437         
4438         * Control.cs: Fixed a NRE.
4439
4440 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4441
4442         * TrackBar.cs: Fix SmallChange and LargeChange exceptions
4443         for 2.0.
4444
4445 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4446
4447         * Control.cs: Rewrote double buffering, now a seperate
4448         class handles all the buffering, no Graphics is disposed of
4449         until the painting is finished (earlier implementation 
4450         would crash if the control was resized in the OnPaint, 
4451         since it would cause the double buffer to be recreated
4452         and the old one disposed), a separate Graphics is 
4453         created for every paint (MS behaviour and anyways the state
4454         of the Graphics would have to be saved and restored otherwise)
4455         
4456         * XplatUIDriver.cs: 
4457         * XplatUIX11.cs:
4458         * XplatUI.cs: Added and implemented GetOffscreenGraphics 
4459         so that we can get the graphics for the back buffer without
4460         having to create a new one and remove the offscreen_dc parameter
4461         from CreateOffscreenDrawable and DestroyOffscreenDrawable.
4462         
4463 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4464
4465         * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
4466         Also make virtual all the key-related methods.
4467
4468         * ListViewItem.cs: Make virtual the key related methods for
4469         ListViewSubItemCollection.
4470
4471 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4472
4473         * ListView.cs:
4474         * ListViewItem.cs:
4475         * ThemeWin32Classic.cs:
4476         * Theme.cs: Initial support for Tile view in ListView,
4477         as well as the implementation of the required bits for it (Item
4478         and Subitem).
4479
4480 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
4481
4482         * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
4483         of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
4484         Provide useful exception messages.
4485
4486 2006-12-27  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4487
4488         * TrackBar.cs: Remove a warning.
4489         * MonthCalendar.cs: Moved back to using Capture to hide the calendar
4490         when used by DateTimePicker, fixes #80287. This also requires that 
4491         MonthCalendar implements it's own drawing for the yearly updown control,
4492         otherwise the Capture tracking would be too complicated. Removed the Click 
4493         and DoubleClick events (according to comments they were hiding the base class
4494         event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
4495         raise these events, not that they cannot be raised. It is possible to raise 
4496         them by calling OnClick and OnDoubleClick). Added two internal fields in 
4497         HitTestInfo in order to track give more tracking info needed by MonthCalendar.
4498         * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
4499         * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
4500         event, no longer needed.
4501         
4502 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
4503
4504         * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
4505         true if new value differs from current value.
4506
4507 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
4508
4509         * Control.cs: ControlCollection.Count must be public. Fixed build of
4510         unit tests.
4511
4512 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
4513
4514         * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
4515
4516 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
4517
4518         * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
4519
4520 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
4521
4522         * Control.cs: Invalidates control including when Width and Height is 
4523         equal zero or is not visible, only Paint event must be care about 
4524         this. Fixes #79913.
4525
4526 2006-12-26  Chris Toshok  <toshok@ximian.com>
4527
4528         * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
4529         more corcompare work.
4530
4531         * DataGridView.cs: fix compiler warning.
4532
4533         * ColumnHeader.cs: some corcompare work, and also take the
4534         opportunity to make the internal fields private.
4535
4536         * ListView.cs: fix the fallout from the above field change.
4537
4538 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
4539
4540         * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
4541         ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
4542         ToolStripTextBox.cs: Fixes to events and corcompare.
4543
4544 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
4545
4546         * ListView.cs: Call owner.OnMousexx event to propagate events from
4547         item to ListView. Fixes #80367.
4548
4549 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
4550
4551         * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
4552         if value is less than one. ItemHeight should not be set to a value
4553         less than 1, and throw ArgumentOutOfRangeException on 2.0 profile. 
4554         Removed extra tabs.
4555
4556 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
4557
4558         * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
4559         * ToolStripStatusLabel.cs: Add Spring for Moma.
4560
4561 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
4562
4563         * DataGridView.cs: Fixed several NullReferenceException in On* methods.
4564         Fixed code formatting. Removed debug code.
4565         * DataGridViewTextBoxEditingControl.cs: Removed debug code.
4566
4567 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
4568
4569         * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
4570         RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
4571         ArgumentOutOfRangeException if ColumnCount is negative. In 
4572         ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
4573         less than 4 or higher than 32768.
4574         * DataGridViewCellStyle.cs: Fixed default value for NullValue.
4575         Fixed FormatProvider to return CurrentCulture unless explicitly set.
4576         Fixed IsFormatProviderDefault to return true if FormatProvider has
4577         not been explicitly set.
4578
4579 2006-12-25  Chris Toshok  <toshok@ximian.com>
4580
4581         * Application.cs: add a couple of 2.0 events.
4582
4583 2006-12-25  Chris Toshok  <toshok@ximian.com>
4584
4585         * Control.cs: fix compiler warning.
4586
4587         * AxHost.cs: corcompare fixes.
4588
4589         * ApplicationContext.cs: corcompare fixes.
4590
4591 2006-12-25  Chris Toshok  <toshok@ximian.com>
4592
4593         * Control.cs: only update dist_right/dist_bottom if the
4594         width/height is > 0.  this fixes anchored controls being resized
4595         smaller until they disappear and then resized larger again.
4596
4597 2006-12-25  Chris Toshok  <toshok@ximian.com>
4598
4599         * Control.cs: a couple of changes.  Remove dist_left and dist_top,
4600         since they're nothing more than X/Left and Y/Top, respectively.
4601
4602         Also, move back to a per-control Bitmap/Graphics for
4603         DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
4604         MT case.  Go with a tiny bitmap though, 1x1, instead of Width x
4605         Height.
4606
4607 2006-12-25  Miguel de Icaza  <miguel@novell.com>
4608
4609         * MessageBox.cs: Implemented overload that takes a new "bool
4610         displayHelpButton" by adding a new internal field "show_help".
4611         When clicked this will raise the HelpRequested on the owner or the
4612         main form. 
4613
4614         From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
4615         From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
4616
4617         * ListView.cs: Add support ColumnWidthChanged and
4618         ColumnWidthChanging. 
4619
4620         Add support for ColumnReordered event.
4621         (ReorderColumn): Add NET_2_0 specific support for cancelling the
4622         reorder.
4623
4624         Very nice codebase!
4625
4626         * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
4627
4628         This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
4629
4630 2006-12-24  Chris Toshok  <toshok@ximian.com>
4631
4632         * GridTablesFactory.cs: 2.0 corcompare work.
4633
4634         * ToolStripContainer.cs: add "override" to
4635         ContextMenuStripChanged, and remove the local event object.
4636
4637         * ToolStripDropDown.cs: same with a couple properties.
4638
4639         * ToolStripPanel.cs: same with AutoSizeChanged event.
4640
4641         * TextBoxBase.cs: add "override" to AutoSizeChanged.
4642
4643         * Form.cs: add the remaining 2.0 events, and do some corcompare
4644         attribute work.
4645
4646         * DateTimePicker.cs: add "new" to padding.
4647
4648         * ButtonBase.cs: use Control's use_compatible_text_rendering.
4649
4650         * ToolStripContentPanel.cs: use base.AutoSizeChanged.
4651
4652         * DataGridView.cs: PaddingChanged is overridden.
4653
4654 2006-12-24  Chris Toshok  <toshok@ximian.com>
4655
4656         * Control.cs: corecompare work here too.
4657
4658         * DataGridViewElement.cs, DataGridView.cs,
4659         DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
4660         DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
4661         DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
4662         DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
4663         work.
4664
4665 2006-12-24  Miguel de Icaza  <miguel@novell.com>
4666
4667         * Control.cs: Switched the error message on the console for a
4668         todo.  A review of the code will have to cope with this anyways
4669         (since its a large feature, it is in our radar) and it was
4670         producing too much output when running PDN.
4671
4672         * ToolStripComboBox.cs: Set the text when the SelectedIndex
4673         changes.  Applications depend on this (PDN 2.72)
4674
4675 2006-12-23  Chris Toshok  <toshok@ximian.com>
4676
4677         * TableLayoutSettings.cs: finish up the corcompare work for this
4678         class.
4679
4680 2006-12-23  Chris Toshok  <toshok@ximian.com>
4681
4682         * Control.cs: make SetImplicitBounds internal, do some futzing
4683         with LayoutEngine so that it's available in 1.1, and remove the
4684         entire duplicated code mess from PerformLayout.  Use
4685         System.Windows.Forms.Layout.DefaultLayout instead.
4686
4687         * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
4688
4689 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
4690
4691         * Form.cs: Add MainMenuStrip property.
4692
4693 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
4694
4695         * Control.cs: Add ContextMenuStrip property and implementation.
4696         Fix ContextMenu implementation to show menu centered on control when
4697         activated using the keyboard instead of showing at screen (0,0).
4698
4699         * ToolStripDropDown.cs: Fix needed overload of Show ().
4700
4701 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
4702
4703         * Menu.cs: Name property added for 2.0 profile.
4704         
4705 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
4706
4707         * Menu.cs: Update information about FindMenuItem, method to be
4708         implemented soon.
4709
4710 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
4711
4712         * MenuAPI.cs: When deselect items deselect also selected subitems.
4713         
4714 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
4715
4716         * MenuAPI.cs: When hides menu set Wnd to null, it prevents
4717         FindSubItemByCoord to found itens that is not active, also an
4718         cheking added to FindSubItemByCoord to search for items only 
4719         in visible popup windows. Fixes #80274.
4720
4721 2006-12-22  Everaldo Canuto  <everaldo@simios.org>
4722
4723         * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
4724         internal property, it be care about change ExStyle. 
4725
4726 2006-12-22  Andreia Gaita  <avidigal@novell.com>
4727
4728         * ContainerControl.cs: set activeControl for parent forms up the 
4729         tree when the new activecontrol is a container.
4730         When validating the active control, if it is a container, also
4731         raise up the validation for it's active control. Fixes #80280
4732         
4733         * Control.cs: Add internal property flag and check to prevent
4734         Focus events from getting raised when Select() is called for
4735         a ContainerControl. There are still too many focus events being
4736         raised at the moment though.
4737         Cleaned up the code a bit.
4738
4739 2006-12-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4740
4741         * Control.cs: Added all missing 2.0 events.and
4742         fixed a couple of corcompare issues.
4743         * TrackBar.cs: Implemented missing 2.0 bits.
4744         * MonthCalendar.cs, 
4745         * DateTimePicker.cs, 
4746         * MdiClient.cs: Fixed some corcompare issues.
4747
4748 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
4749
4750         * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
4751         SplitterPanel.cs: corecompare work.
4752
4753 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
4754
4755         * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
4756         Clean up warnings for BackgroundImageChanged and PaddingChanged
4757         events now that they are implemented in Control.cs.
4758
4759 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
4760
4761         * Control.cs: Make sure layout_engine isn't null before using it (2.0).
4762         
4763         * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
4764         TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
4765         of TableLayoutPanel and supporting cast.
4766
4767 2006-12-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4768
4769         * XplatUIWin32.cs: 
4770         - GrabWindow now confines the mouse pointer to the confine window.
4771         - Added Win32ClipCursor and Win32GetClipCursor.
4772
4773         * Control.cs: 
4774         - Added CaptureWithConfine to be able to capture and confine 
4775         mouse pointer.
4776         
4777         * InternalWindowManager.cs: 
4778         - Call CaptureWithConfine instead of Capture if we're an
4779         MdiChild (fixes #79982).
4780
4781 2006-12-21  Chris Toshok  <toshok@ximian.com>
4782
4783         * DataGrid.cs: guard against the initial state of selection, where
4784         selection_start == -1.  make sure we only select from index >= 0.
4785         Fixes bug #80291.
4786
4787 2006-12-21  Chris Toshok  <toshok@ximian.com>
4788
4789         * Control.cs: we don't need to be so draconian with
4790         UpdateDistances, and we thusly don't need to call it before
4791         calling PerformLayout in ResumeLayout.  Fixes bug #80289.
4792
4793 2006-12-21  Daniel Nauck  <dna@mono-project.de>
4794
4795         * ComboBox.cs,
4796         TextBox.cs: Implemented AutoComplete properties.
4797
4798 2006-12-20  Chris Toshok  <toshok@ximian.com>
4799
4800         * DataGridView*.cs: some corecompare work.
4801
4802 2006-12-20  Jackson Harper  <jackson@ximian.com>
4803
4804         * XplatUIX11.cs: We need to hide the caret when deleting it,
4805         otherwise you get carets left lying around everywhere.
4806         * TextBoxBase.cs: Kill then redraw the caret when scrolling.  This
4807         prevents getting some weird half drawn caret tracers when
4808         scrolling.
4809         * TextControl.cs: Attempt to reduce the number of times we need to
4810         recreate the caret.
4811
4812 2006-12-20  Gert Driesen  <drieseng@users.sourceforge.net>
4813
4814         * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
4815
4816 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4817
4818         * DateTimePicker.cs:
4819         - Implemented missing 2.0 bits.
4820         - Changed some default values to match MS.
4821         
4822 2006-12-20  Jackson Harper  <jackson@ximian.com>
4823
4824         * TextBoxBase.cs: When changing the font across the document we
4825         can't recalculate after changing each line, since that will cahnge
4826         the line count.
4827         - PreferredHeight is a little different than i thought.
4828         - When backspacing, move the caret before we do the actual char
4829         delete, because when that delete crosses a wrap boundary the
4830         positional information will change.
4831
4832 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4833
4834         * Control.cs: Added some missing 2.0 bits: 
4835         BackgroundImageLayout, BackgroundImageLayoutChanged, 
4836         OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and 
4837         add IBindableComponent and IDropTarget implementation.
4838         
4839         * MonthCalendar.cs: 
4840         - Added all missing 2.0 features:
4841         BackgroundImageLayout, RightToLeftLayout, 
4842         OnHandleDestroyed, RightToLeftLayoutChanged, 
4843         BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
4844         PaddingChanged.
4845         - Rewrote all the BoldDate code, it was completely broken.
4846         - Fixed all the tests (the tests can now be re-enabled, the
4847         problems were not with the tests, but with the control, it was
4848         mostly broken).
4849         
4850         * DateTimePicker.cs: Changed the location where the 
4851         MonthCalendar is shown.
4852         
4853 2006-12-19  Chris Toshok  <toshok@ximian.com>
4854
4855         * DataGridView.cs: add IDropTarget implementation.
4856
4857         * ToolStripPanel.cs: add IDropTarget implementation.
4858
4859 2006-12-19  Jackson Harper  <jackson@ximian.com>
4860
4861         * TextControl.cs: soft now means something different than what it
4862         used to mean, we want to move the caret regardless of whether or
4863         not this break was soft (would we really have wanted the caret
4864         to not move with the break in the old context?)
4865         * TreeView.cs: Make sure we factor in the vert scrollbar when
4866         calculating the horizontal scrollbar's maximum.
4867
4868 2006-12-19  Andreia Gaita  <avidigal@novell.org>
4869
4870         * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
4871         check for keywords in alternate casing, close bug #80049.
4872
4873 2006-12-19  Chris Toshok  <toshok@ximian.com>
4874
4875         * ToolStripItem.cs: add the implementation of the 4 IDropTarget
4876         methods (which all do nothing).
4877
4878         * IDropTarget.cs: add the 4 missing methods.
4879
4880 2006-12-19  Chris Toshok  <toshok@ximian.com>
4881
4882         * TableLayoutRowStyleCollection.cs: corcompare work.
4883         
4884         * TableLayoutSettings.cs: same.
4885
4886         * TableLayoutStyle.cs: same.
4887
4888         * TableLayoutColumnStyleCollection.cs: same.
4889
4890 2006-12-19  Jonathan Pobst  <monkey@jpobst.com>
4891
4892         * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
4893         TableLayoutPanel I've had in my local tree for way too long.
4894
4895 2006-12-19  Miguel de Icaza  <miguel@novell.com>
4896
4897         * TableLayoutSettings.cs: Finish the public API (still needs all
4898         the logic to update on changes). 
4899
4900         * TableLayoutPanelCellPosition.cs: new file.
4901         
4902         * TableLayoutRowStyleCollection.cs,
4903         TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
4904         TableLayoutSettings.cs: Track the final 2.0 table api.
4905
4906 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4907
4908         * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
4909         and Image List 2.0 members for ColummnHeader.
4910         * ListView.cs: Add key-related 2.0 methods for
4911         ColumnHeaderCollection.
4912
4913 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
4914
4915         * ListViewItem.cs: Changed AddRange overloads to match MS: throw
4916         ArgumentNullException if items argument is null. Ignore null item in
4917         arrays. Removed extra tabs.
4918
4919 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
4920
4921         * MonthCalendar.cs: Fixed InvalidCastException.
4922
4923 2006-12-19  Jackson Harper  <jackson@ximian.com>
4924
4925         * TextControl.cs: Don't increment the position here.
4926         - When calculating char positions only add in the line break size
4927         for hard line breaks.
4928
4929 2006-12-19  Andreia Gaita  <avidigal@novell.org>
4930
4931         * SendKeys.cs: Changed some things to match ms.net behaviour
4932         when parsing shifted capital letters.
4933         
4934         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX: 
4935         Add window handle as parameter to SendInput. X11 needs the 
4936         window handle, and the handle being passed      to it in the keys 
4937         queue is the active control handle (which windows needs), not 
4938         the window handle.
4939         
4940         XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput 
4941         to support SendKeys on X.       
4942         
4943         * X11Keyboard: Implement helper method to lookup a linux keycode
4944         given the virtual keycode. Added table of keycode-2-virtualkey
4945         values to support this.
4946
4947 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4948
4949         * ListView.cs: Add support for SelectedIndexCollection
4950         and SelectedItemCollection 2.0 methods. Implement support
4951         for ImageKey too.
4952         * ListViewItem.cs: Add support for ListViewSubItemCollection
4953         2.0 methods. Also, fix an incorrect behavior of AddRange method
4954         (it shouldn't call Clear).
4955         * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
4956
4957 2006-12-19  Jackson Harper  <jackson@ximian.com>
4958
4959         * RichTextBox.cs: 
4960         * TextBoxBase.cs: New args for FormatText
4961         * TextControl.cs: Rewrote the main drawing method, this version
4962         feels a little easier to understand and debug to me.  Hopefully it
4963         does to others also
4964         - Fix FormatText to OR in the new formating values.  Added
4965         FormatSpecified param, basically this works in the same way as
4966         BoundsSpecified in Control.
4967         - Set the caret properties when the caret is positioned.
4968         - When wrapping text make sure that we calculate the width of the
4969         last character
4970         - when calculating alignments we might have wrapped down to the
4971         next line, so don't search for an individual tag, search for the
4972         end of the line
4973         - We need to invalidate the selection area when we replace the
4974         selection.
4975         
4976 2006-12-19  Daniel Nauck  <dna@mono-project.de>
4977
4978         * Application.cs: add Restart () 2.0 support
4979
4980 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
4981
4982         * MenuItem.cs: Invalidate menu item rectangle after change Enable
4983         property. Fixes #80268.
4984         
4985 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
4986
4987         * MenuAPI.cs: Dont trigger select event when closes top menu
4988         item. Fixes #80270.
4989
4990 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
4991
4992         * MenuAPI.cs: When you click on menuitem only trigger onselect
4993         event for top menu itens. Fixes #80271.
4994         
4995 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4996
4997         * MdiWindowManager.cs: Make IconicBounds depend on
4998         the bottom of MdiClient, not the top (fixes #80267)
4999         
5000 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5001
5002         * MdiClient.cs: Added missing 2.0 attribute
5003
5004 2006-12-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5005
5006         * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
5007         as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
5008
5009 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
5010
5011         * MenuAPI.cs: Fix click when menuitem is not popup,
5012         this regression was caused by last commit (#80272).
5013
5014 2006-12-17  Everaldo Canuto  <everaldo@simios.org>
5015
5016         * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
5017         fire click event or close menu. Fixes #80272.
5018
5019 2006-12-17  Daniel Nauck  <dna@mono-project.de>
5020
5021         * ListViewHitTestInfo.cs: add
5022
5023 2006-12-17  Daniel Nauck  <dna@mono-project.de>
5024
5025         * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
5026         * FlatButtonAppearance.cs: add
5027         * DockingAttribute.cs: add
5028
5029 2006-12-17  Chris Toshok  <toshok@ximian.com>
5030
5031         * DataGrid.cs: hook up MetaDataChanged event on the list manager,
5032         and rebind our columns when it does - this way, if you make
5033         changes to the DataTable (or set the Table attribute on a DataView
5034         after setting it as the DataGrid's DataSource, the changes are
5035         made visible.)  Fixes bug #80107.
5036
5037 2006-12-17  Daniel Nauck  <dna@mono-project.de>
5038
5039         * ListViewGroup.cs: add internal Location property for layouting.
5040         * Theme.cs: add abstract ListViewGroupHeight function.
5041         * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
5042
5043 2006-12-16  Andreia Gaita  <avidigal@novell.com>
5044
5045         * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
5046         Added reset of selected index to 0 when adding first tab page.
5047         Fixes #80264
5048         
5049         * NumericUpDown.cs: Fix NET_2_0 check
5050
5051 2006-12-16  Daniel Nauck  <dna@mono-project.de>
5052
5053         * ListViewGroup.cs: fixed DefaultValueAttribute value
5054
5055 2006-12-16  Daniel Nauck  <dna@mono-project.de>
5056
5057         * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
5058
5059 2006-12-15  Miguel de Icaza  <miguel@novell.com>
5060
5061         * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
5062         TextBoxBase.cs, ListView.cs, ContainerControl.cs,
5063         ScrollableControl.cs: Add a handful of methods that are
5064         overwritten in 2.0 
5065
5066 2006-12-15  Chris Toshok  <toshok@ximian.com>
5067
5068         * XplatUIWin32.cs: initial implementation of the Reversible
5069         drawing functions.  there are some problems.  DrawReversibleFrame
5070         doesn't seem to work at all for Dashed FrameStyle, and in the
5071         Thick case there are drawing errors at the corners (we probably
5072         need to bind Rectangle instead of doing moveto/lineto's.)
5073
5074 2006-12-16  Andreia Gaita  <avidigal@novell.com>
5075         
5076         * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput, 
5077         to send blocks of key messages. Send accumulates keys to send with Flush, 
5078         while SendWait sends all keys immediately.
5079                 
5080         * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, 
5081         XplatUIX11.cs,  XplatUIX11-new.cs:
5082         - Define SendInput and stubs for OSX and X11, implements Win32 with a call
5083         to Win32 SendInput.
5084         - Added INPUT support structures to XplatUIWin32 for Win32SendInput
5085         
5086         Tests:  It seems ms.net is hooking the keyboard to implement this, so doing unit
5087         testing for ms.net on this class is very tricky, as the tests run too fast 
5088         to allow the hook to release, essentially freezing the keyboard and the 
5089         test. So, barring a win32 miracle, they'll be commited in the ms-notworking     
5090         category :p
5091
5092 2006-12-16  Daniel Nauck  <dna@mono-project.de>
5093
5094         * Padding.cs: fixed serialization compability to MS ("_var" field names),
5095                         added missing attributes.
5096  
5097 2006-12-15  Daniel Nauck  <dna@mono-project.de>
5098
5099         * ListViewGroup.cs: Added missing attributes.
5100         * ListViewGroupCollection.cs: Added missing attributes.
5101
5102 2006-12-15  Daniel Nauck  <dna@mono-project.de>
5103
5104         * ListViewItem.cs: fixed ListViewSubItem text property.
5105
5106 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5107         
5108         * Control.cs: Added missing 2.0 attributes
5109         
5110 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5111         
5112         * MdiClient.cs: Added missing 2.0 attribute.
5113         * MonthCalendar.cs: Added some missing 2.0 attributes 
5114         and properties.
5115         
5116 2006-12-15  Daniel Nauck  <dna@mono-project.de>
5117
5118         * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
5119
5120 2006-12-15  Jonathan Pobst  <monkey@jpobst.com>
5121
5122         * MainMenu.cs: Add the new 2.0 constructor to help out people
5123         using the MainMenu in VS2005.
5124
5125 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5126         
5127         * MdiChildContext.cs: Removed it, no longer used.
5128         * MdiClient.cs: Added missing 2.0 attributes.
5129         
5130 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5131         
5132         * InternalWindowManager.cs: Fix a NullRef with previous 
5133         changes for toolwindows.
5134         
5135 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5136
5137         * Control.cs: 
5138         - Added AfterTopMostControl to allow for certain controls 
5139         to always stay on top when normal controls are brought to 
5140         front.
5141         
5142         * XplatUIWin32.cs: 
5143         - (DrawInversibleRectangle): Get window rectangle from Win32 
5144         in stead of from control, since Win32 doesn't calculate
5145         screen coords correctly from control's Location if it 
5146         have docked siblings.
5147         
5148         * MdiWindowManager.cs:
5149         - Correct the control menu popup location when clicked on
5150         the maximized form icon. (fixes #80223.1)
5151         - Don't show moving rectangle if mouse hasn't moved from
5152         the original clicked point.
5153         - Removed FormGotFocus handler (not used).
5154         - Calculate the control buttons location from the main
5155         window's size and not client size (fixes #79770).
5156         - Form is now closed when the form icon is double-clicked
5157         (fixes #79775). 
5158         - Correct NCCalcSize numbers a little bit (fixes #80223.2)
5159         
5160         * InternalWindowManager.cs:
5161         - Moved some MDI-only methods to MdiWindowManager.
5162         - Removed unused properties and methods.
5163         - Unified method naming for methods handling wm messages.
5164         - Moved all message handling to seperate methods for
5165         each message.
5166         
5167         * ThemeWin32Classic.cs:
5168         - DrawManagedWindowDecorations now draws the title bar 
5169         with a gradient brush.
5170         - Add a CPDrawButtonInternal that allows us to specify
5171         light, normal and dark colors for the buttons (control 
5172         buttons for MDI children were drawn with the same light
5173         color as the background, therefore loosing the 3D effect).
5174         
5175         * SizeGrip.cs:
5176         - Add a CapturedControl property that is used to 
5177         determine the control to resize (defaults to parent). 
5178         Needed for MdiClient, since its SizeGrip's parent is
5179         MdiClient, but the control to resize is the main form.
5180         
5181         * MdiClient.cs:
5182         - Set SizeGrip's CapturedControl to the main form in order
5183         to resize the main form and not the MdiClient.
5184         - Override AfterTopMostControl to leave the scrollbars 
5185         always on top.
5186
5187 2006-12-15  Daniel Nauck  <dna@mono-project.de>
5188
5189         * ListView.cs: fixed ListViewItemCollection AddRange and
5190                         implemented ListViewItemCollection AddRange 2.0 support.
5191
5192 2006-12-15  Daniel Nauck  <dna@mono-project.de>
5193
5194         * ListViewGroup.cs: Add.
5195         * ListViewGroupCollection.cs: Add
5196         * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
5197         * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
5198                                 stub for ImageKey 2.0 support.
5199
5200 2006-12-14  Mike Kestner  <mkestner@novell.com>
5201
5202         * ListView.cs: add text padding to the autocalculation for columns
5203         of width -2.  Fixes #80207.
5204  
5205 2006-12-14  Mike Kestner  <mkestner@novell.com>
5206
5207         * ListView.cs: add some index guarding for partial row navigation 
5208         logic.  Fixes #80250.
5209
5210 2006-12-14  Mike Kestner  <mkestner@novell.com>
5211
5212         * ListView.cs: throw ArgumentExceptions when parented ListViewItems
5213         are added or inserted to the collection.  Fixes #81099.
5214
5215 2006-12-13  Everaldo Canuto  <everaldo@simios.org>
5216
5217         * MenuAPI.cs: Closes menu when right click out side of popup
5218         it fix problem in ContextMenu and MainMenu. Fixes #80252.
5219
5220 2006-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5221
5222         * ListViewItem.cs: Fix dumb error.
5223
5224         * ListView.cs: Add Find and ContainsKey methods in 
5225         ListViewItemCollection, and also return true for IsReadOnly
5226         and IsFixedSize (changes for 2.0). 
5227
5228 2006-12-13  Gert Driesen  <drieseng@users.sourceforge.net>
5229
5230         * Control.cs: Allow Region to be set to null.
5231
5232 2006-12-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5233
5234         * MdiWindowManager.cs: Remove unused (commented out) code.
5235         * Form.cs: When the MdiChild is maximized, the form needs 
5236         WM_NCMOUSELEAVE, so request it.
5237         * InternalWindowManager.cs: 
5238         - Added tooltips to control buttons.
5239         - Removed duplicated control button handling code.
5240         - Removed unused (commented out) code.
5241         
5242 2006-12-12  Everaldo Canuto  <everaldo@simios.org>
5243
5244         * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor 
5245         was used because we must set cursor without trigger ChangeCursor event
5246         and without change Cursor control property. Fixes #79963.
5247
5248 2006-12-12  Andreia Gaita  <avidigal@novell.com>
5249         
5250         * Control.cs: Check if Region setter value is null, and ignore
5251
5252 2006-12-12  Jackson Harper  <jackson@ximian.com>
5253
5254         * TextControl.cs: We were almost always drawing one more line then
5255         needed, since the GetLineByPixel will return the last line found
5256         at that pixel. In most cases though, we were invalidating up to
5257         the junction between two lines.
5258         - Improve debug code.
5259
5260 2006-12-12  Chris Toshok  <toshok@ximian.com>
5261
5262         * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
5263         and FillReversibleRectangle.
5264
5265         * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
5266         and FillReversibleRectangle.
5267
5268         * XplatUIWin32.cs: add stubs which do nothing for
5269         DrawReversibleFrame, DrawReversibleLine, and
5270         FillReversibleRectangle.
5271
5272         * XplatUIOSX.cs: add stubs which raise NIE for
5273         DrawReversibleFrame, DrawReversibleLine, and
5274         FillReversibleRectangle.
5275
5276         * XplatUIX11.cs: add working implementation for
5277         DrawReversibleFrame, DrawReversibleLine, and
5278         FillReversibleRectangle.
5279         
5280         * ControlPaint.cs: implement DrawReversibleFrame,
5281         DrawReversibleLine, and FillReversibleRectangle, by calling into
5282         the appropriate XplatUI method.
5283
5284 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5285
5286         * Form.cs: Make MdiClient have the focus even if it's
5287         not selectable, since it should receive WM_KEY* and WM_MOUSE 
5288         messages. Fixes #79907.
5289         
5290 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5291
5292         * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
5293         queried after the window is created.
5294         
5295         * XplatUIX11.cs: Added SendParentNotify to implement 
5296         WM_PARENTNOTIFY logic. Fixes #79965.
5297         
5298         * Control.cs: Added MakeParam.
5299         
5300 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5301
5302         * MdiClient.cs: Resume Layout before setting window
5303         states (fixes #80201).
5304
5305 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5306
5307         * MenuAPI.cs: Deselect a menu item after performing
5308         the click (fixes #80197).
5309
5310 2006-12-11  Jackson Harper  <jackson@ximian.com>
5311
5312         * TextBoxBase.cs: We need to cap this value, since Maximum -
5313         ViewPortHeight can be less than zero.
5314         - Only do selection with the left mouse button.
5315         * TextBox.cs: Don't tell the world that we have a context menu.
5316         * Control.cs: New method so that we can control whether or not the
5317         context menu is visible outside MWF.
5318
5319 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
5320
5321         * ToolBarButton.cs: Fix text positon. 
5322
5323 2006-12-11  Miguel de Icaza  <miguel@novell.com>
5324
5325         * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
5326
5327         * Control.cs (DoubleBuffered): Add implementation.
5328
5329         * Application.cs (OpenForms): Add.
5330
5331 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
5332
5333         * Form.cs: Use opacity instead of Opactiy to determine if we need
5334         to set the WS_EX_LAYERED bit.  [Fixes bug #80185]
5335
5336 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
5337
5338         * Control.cs: Fix NRE if Control.Site was set to null.
5339
5340 2006-12-11  Chris Toshok  <toshok@ximian.com>
5341
5342         * Control.cs: ControlCollection.Remove should return if the arg is
5343         null, and ControlCollection.SetChildIndex should raise a ANE.
5344
5345 2006-12-11  Gert Driesen  <drieseng@users.sourceforge.net>
5346
5347         * Control.cs: Verify value set for Dock property. Code formatting
5348         updates.
5349
5350 2006-12-11  Jackson Harper  <jackson@ximian.com>
5351
5352         * TextControl.cs: Draw the caret and the selection when a flag is
5353         set on the owner.
5354         * TextBoxBase.cs: We want to draw the caret and the selection for
5355         TextBox but not for TextBoxBase.
5356         - If the window is resized and scrolling is no longer needed (the
5357         whole doc is visible) set the scroll position to zero.
5358         - The default SelectWord (the one TextBox uses) should move the
5359         caret to the end of the word.
5360         - SelectAll moves the caret to the end of the selection.
5361         * TextBox.cs: We don't selectall on focus, we just do it when the
5362         control is created.
5363         
5364 2006-12-11  Mike Kestner  <mkestner@novell.com>
5365
5366         * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
5367
5368 2006-12-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5369
5370         * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer 
5371         2.0 support.
5372         * ListViewItem.cs: Add Name 2.0 property.
5373
5374 2006-12-11  Andreia Gaita  <avidigal@novell.com>
5375
5376         * TabControl.cs: Set visibility on selected or default tab 
5377         when tabcontrol handle is created, so that it's contents
5378         actually show up (duh). Fixes #80193
5379         Don't redraw the control if there is no handle created, as
5380         the selected index might be completely invalid. Added some tests
5381         to check for this.
5382
5383 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
5384
5385         * ToolBar.cs: Uses maximun width and height of all buttons as 
5386         button rectangle when ButtonSize specified, it looks strange but
5387         is what happens in Win32. Fixes #80189.
5388
5389 2006-12-11  Jackson Harper  <jackson@ximian.com>
5390
5391         * TextControl.cs: Need to track undo levels ourself, since
5392         compound actions will mess them up.
5393
5394 2006-12-10  Andreia Gaita  <avidigal@novell.com>
5395
5396         * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
5397         SelectedIndex value is changed (even if it's not valid).
5398         Reset SelectedIndex to 0 when the handle is created and if
5399         the current index is invalid.
5400         Fixes SelectdeIndex unit tests and #80128
5401
5402 2006-12-08  Chris Toshok  <toshok@ximian.com>
5403
5404         * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
5405         calls EndEdit, it needs to be called before we set current_cell to
5406         its new value.  Otherwise, we end up committing the value in the
5407         textbox to the new cell as well.  Fixes bug #80160.
5408
5409 2006-12-08  Chris Toshok  <toshok@ximian.com>
5410
5411         * Form.cs (set_CancelButton): if the button's DialogResult is
5412         None, set it to Cancel.  Fixes bug 80180.
5413
5414 2006-12-08  Jackson Harper  <jackson@ximian.com>
5415
5416         * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
5417         to watch ourselves when setting the canvas size and setting the
5418         scrollbar values.
5419
5420 2006-12-08  Chris Toshok  <toshok@ximian.com>
5421
5422         * DataGrid.cs: comment out the two MakeTransparent calls for the
5423         time being so people using trunk (and not 1.2.2) on windows can
5424         actually use the datagrid.  This deals with bug #80151.
5425
5426 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
5427
5428         * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
5429         Graphics.DrawImage (image, int, int, int, int) overload instead
5430         of Graphics.DrawImage (image, int, int).  GDI+ can't figure out
5431         the dpi difference and was blurring images it drew.
5432         [Fixes bug #79960]
5433
5434 2006-12-08  Chris Toshok  <toshok@ximian.com>
5435
5436         * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
5437         rowcnt is 0 (such as with an empty datasource), and make sure we
5438         initialize not_usedarea.Y to cells.Y, so we don't draw over the
5439         other areas (caption, parent row, etc, etc).  Fixes bug #80095.
5440
5441 2006-12-08  Chris Toshok  <toshok@ximian.com>
5442
5443         * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
5444         grid.
5445
5446 2006-12-08  Chris Toshok  <toshok@ximian.com>
5447
5448         [ Fixes bug #80167 ]
5449         
5450         * ThemeWin32Classic.cs: don't draw the image if the button's flat
5451         style is FlatStyle.System.
5452
5453         * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
5454         ButtonBase.flat_style private, and switch uses of it to the public
5455         property.
5456         
5457 2006-12-08  Chris Toshok  <toshok@ximian.com>
5458
5459         [ Fixes bug #80121 ]
5460         
5461         * ThemeWin32Classic.cs: center the caption text in the datagrid
5462         when we draw it.
5463
5464         * DataGrid.cs: lessen the amount we add to the caption height from
5465         6 to 2.  6 was making it huge.
5466
5467 2006-12-08  Andreia Gaita  <avidigal@novell.com>
5468
5469         * UpDownBase: Handle MouseWheel call directly instead of capturing
5470         the inner textbox's OnMouseWheel. Fixes #80166
5471
5472 2006-12-08  Jackson Harper  <jackson@ximian.com>
5473
5474         * TextControl.cs: We need to invalidate the textbox when we empty
5475         it (how had this not been discovered before?)
5476
5477 2006-12-08  Jackson Harper  <jackson@ximian.com>
5478
5479         * TextBoxBase.cs: Reworked the mouse down code so I could get it
5480         to behave like MS, we now ignore the eventargs.Click and just
5481         track state ourself, which we were already doing anyways.
5482         - Constrain the double click handler to the double click size.
5483         
5484 2006-12-08  Chris Toshok  <toshok@ximian.com>
5485
5486         * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
5487         direction if that scrollbar isn't shown.  fixes bug #80158.
5488
5489 2006-12-08  Andreia Gaita  <avidigal@novell.com>
5490
5491         * NumericUpDown.cs: Update value on getter. Fixes #79950
5492
5493 2006-12-08  Chris Toshok  <toshok@ximian.com>
5494
5495         * MenuItem.cs: add back in the event cloning code.  I didn't know
5496         how to do it in the face of the EventHandlerList work i'd done
5497         last week.  Fixes bug #80183.
5498
5499 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
5500
5501         * Control.cs: Add an invalidate to the BackgroundImage setter.
5502         [Fixes 80184]
5503
5504 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
5505
5506         * ToolStrip*: Add some small properties reported by MoMA, fix event
5507         firing and default properties based off of unit tests, and add some
5508         attributes based off of the class status page.
5509
5510 2006-12-07  Jackson Harper  <jackson@ximian.com>
5511
5512         * TextBoxBase.cs: Take HideSelection into account when determining
5513         whether or not to show the selection.
5514         * RichTextBox.cs: After inserting the RTF into the document move
5515         the cursor to the beginning of the document.
5516
5517 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
5518
5519         * Control.cs: Remove static ArrayList "controls" which maintained
5520         a reference to every control created.
5521         * Application.cs: Create a static FormCollection to maintain a reference
5522         to every form created.  Use it in places that formerly enumerated through
5523         the controls one looking for forms.
5524         * Form.cs: Add and remove self from above FormCollection.
5525
5526 2006-12-07  Alexander Olk  <alex.olk@googlemail.com>
5527
5528         * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
5529           not libgdk (though it makes me wonder why I didn't have any
5530           problems)
5531
5532 2006-12-07  Chris Toshok  <toshok@ximian.com>
5533
5534         [ you had to know this was coming after that last commit...]
5535         
5536         * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
5537         XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
5538         DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
5539         XCopyArea).
5540
5541 2006-12-07  Chris Toshok  <toshok@ximian.com>
5542
5543         * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
5544         DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
5545         all the behavior we need for double buffering.
5546
5547         * XplatUIDriver.cs: implement the 3 double buffer methods using a
5548         client side Bitmap, just like the old Control-based double buffer
5549         code did.  The methods are virtual, so each XplatUI driver
5550         subclass can replace the implementation to use a faster, platform
5551         specific approach.
5552
5553         * Control.cs: make use of the 3 Offscreen XplatUI calls in the
5554         double buffer code, and clean things up a bit in the process.
5555
5556 2006-12-06  Chris Toshok  <toshok@ximian.com>
5557
5558         * Control.cs: reindent WndProc.
5559
5560 2006-12-06  Chris Toshok  <toshok@ximian.com>
5561
5562         [ I wanna be like BenM when I grow up ]
5563         
5564         * Hwnd.cs: create a single static Graphics object on the static
5565         Bitmap we create.  use this for our text measurements.
5566
5567         * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
5568         This was causing us to allocate a backbuffer for every control,
5569         even when it wasn't flagged as double buffered.  Instead use the
5570         single graphics instance.  This might have implications for
5571         multithreaded applications.  If we run into problems we can switch
5572         to creating 1 Graphics per control, on the static Hwnd bitmap.
5573
5574         this change nets us a 7M savings in private dirty mappings when
5575         running FormsTest.exe.
5576
5577 2006-12-06  Chris Toshok  <toshok@ximian.com>
5578
5579         * ListView.cs: the BackgroundImage override is just to set
5580         attributes.  chain up to base.BackgroundImage.
5581
5582         * RichTextBox.cs: same.
5583
5584         * ToolBar.cs: same, but we need to also redraw the toolbar when it
5585         changes, so instead a handler for BackgroundImageChanged.
5586         
5587         * Control.cs: make background_image private.
5588
5589 2006-12-06  Chris Toshok  <toshok@ximian.com>
5590
5591         * ScrollBar.cs: change the assignment of cursor to Cursor.  not
5592         sure we even need this assignment, but roll with it for now.
5593
5594         * Control.cs: make the cursor field private.
5595
5596 2006-12-06  Chris Toshok  <toshok@ximian.com>
5597
5598         * Form.cs: we don't need to explicitly set ImeMode to
5599         ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
5600         behavior in the face of ImeMode.Inherit.
5601
5602         * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
5603         change the ctor's assignment to use ImeMode instead of ime_mode.
5604
5605         * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
5606         ImeModeInherit.  Only check for the parent's imemode (and return
5607         NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
5608         This fixes the button unit test, which sets both ImeMode and
5609         DefaultImeMode to ImeMode.Disable.
5610
5611         also make the ime_mode field private.
5612
5613 2006-12-06  Chris Toshok  <toshok@ximian.com>
5614
5615         * Control.cs: make control_style private.
5616
5617         * TextBoxBase.cs: fix the HandleClick override.  it was explicitly
5618         setting the styles to true, then setting them to false instead of
5619         reverting to their previous values.
5620
5621         also, call SetStyle on the scrollbars instead of using
5622         control_style directly.
5623
5624 2006-12-06  Jonathan Pobst  <monkey@jpobst.com>
5625
5626         * FormCollection.cs: Implement. [2.0]
5627
5628 2006-12-06  Chris Toshok  <toshok@ximian.com>
5629
5630         * Control.cs: make tab_stop private.
5631
5632         * Label.cs: set TabStop, not tab_stop.  reformat some event
5633         add/remove methods to make them more compact.
5634
5635 2006-12-06  Chris Toshok  <toshok@ximian.com>
5636
5637         * RadioButton.cs: fix TabStop handling.
5638
5639 2006-12-06  Chris Toshok  <toshok@ximian.com>
5640
5641         * TextBox.cs: remove the explicit assignments to has_focus.
5642         Control does that.
5643
5644         * ButtonBase.cs: remove the assignment to has_focus.  Control will
5645         manage that.
5646         
5647 2006-12-06  Chris Toshok  <toshok@ximian.com>
5648
5649         * ButtonBase.cs: remove all uses of is_enabled from this code.
5650         it's always true when any of the code containing the checks is
5651         executed.
5652
5653 2006-12-06  Chris Toshok  <toshok@ximian.com>
5654
5655         * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
5656         with different semantics (some are present in both 1.1 and 2.0
5657         profiles) so that we match MS's behavior in our unit tests.
5658
5659 2006-12-06  Jackson Harper  <jackson@ximian.com>
5660
5661         * TextControl.cs: Make this operation undoable.
5662         * TextBoxBase.cs: Factor the border width into the preferred
5663         height.
5664         - implement Modified as per the spec.
5665
5666 2006-12-06  Chris Toshok  <toshok@ximian.com>
5667
5668         * Timer.cs, Control.cs, Menu.cs: make control_tag private.
5669
5670 2006-12-06  Chris Toshok  <toshok@ximian.com>
5671
5672         * Control.cs: make right_to_left and context_menu fields private.
5673
5674 2006-12-06  Chris Toshok  <toshok@ximian.com>
5675
5676         * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
5677         XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
5678         Control.child_controls private.  switch all uses over to
5679         Control.Controls.
5680
5681 2006-12-06  Chris Toshok  <toshok@ximian.com>
5682
5683         * System.Windows.Forms/GroupBox.cs,
5684         System.Windows.Forms/AccessibleObject.cs,
5685         System.Windows.Forms/ErrorProvider.cs,
5686         System.Windows.Forms/Control.cs,
5687         System.Windows.Forms/UpDownBase.cs,
5688         System.Windows.Forms/ScrollBar.cs,
5689         System.Windows.Forms/DateTimePicker.cs,
5690         System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
5691         System.Windows.Forms/ToolTip.cs,
5692         System.Windows.Forms/RadioButton.cs,
5693         System.Windows.Forms/LinkLabel.cs,
5694         System.Windows.Forms/Splitter.cs,
5695         System.Windows.Forms/TextBoxBase.cs,
5696         System.Windows.Forms/ToolStripTextBox.cs,
5697         System.Windows.Forms/ContainerControl.cs,
5698         System.Windows.Forms/ThemeWin32Classic.cs,
5699         System.Windows.Forms/SizeGrip.cs,
5700         System.Windows.Forms/ToolStripDropDown.cs,
5701         System.Windows.Forms/ScrollableControl.cs: Make Control.parent
5702         private.  switch all uses over to Control.Parent.
5703
5704 2006-12-06  Chris Toshok  <toshok@ximian.com>
5705
5706         * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
5707         Control does this before calling emitting these events.
5708
5709         * TabControl.cs: same.
5710
5711         * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
5712         Control.client_rect.
5713
5714         * ButtonBase.cs: use the ClientSize property instead of the
5715         client_size field.
5716
5717         * ScrollableControl.cs: same.
5718
5719         * Control.cs: another pass at making properties private.  also,
5720         move the initialization of tab_stop to the ctor.
5721
5722 2006-12-05  Andreia Gaita <avidigal@novell.com>
5723
5724         * TabControl.cs: Let the selected index be set freely if the 
5725         control handle is not yet created.
5726
5727 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
5728
5729         * Control.cs: Revert dist_top, dist_right, and dist_bottom to 
5730         internal until I can rewrite DefaultLayout.
5731         * ToolStrip.cs: Fix build error and some general cleaning.
5732         * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
5733         Fix build errors caused by making some of Control's fields private.
5734
5735 2006-12-05  Jackson Harper  <jackson@ximian.com>
5736
5737         * TextControl.cs: Redo Insert a little so that it use IndexOf
5738         instead of Split, this prevents it from messing up on things like
5739         \n\n\n. Also more effecient since the split array doesn't need to
5740         be created.
5741         * TextBoxBase.cs: AppendText doesnt handle multiline and non
5742         multiline text differently, this is the first of many fixes that
5743         will make multiline/non-multiline the same thing as far as the
5744         TextBoxBase is concerned.
5745         - Don't split the text and insert lines, this can lose some line
5746         endings (like is the last line a soft or hard break). Instead use
5747         the new Insert.
5748         - Fix an off by one when combining all the lines in the Text
5749         getter.
5750         - Remove separate multiline handling from the Text getter/setter.
5751
5752 2006-12-05  Chris Toshok  <toshok@ximian.com>
5753
5754         * ButtonBase.cs: a few changes:
5755
5756         - don't reinitialize internal Control fields in the ctor when they
5757         have the same values as Control sets them.
5758
5759         - don't set has_focus in OnGotFocus/OnLostFocus.  Control does
5760         this before calling those methods.
5761
5762         - we don't need to call Refresh for anything.  use Invalidate
5763         instead.
5764
5765         - OnEnabledChanged doesn't need to redraw at all - Control.cs
5766         calls Refresh in its OnEnabledChanged.
5767         
5768         - several of the events we were registered for in the ctor to
5769         redraw ourselves already include calls to Invalidate in the
5770         property setters that raise the events.  remove the extra
5771         invalidation.
5772
5773         - reformat a switch statement that was 83274658 columns wide.
5774         
5775 2006-12-05  Mike Kestner  <mkestner@novell.com>
5776
5777         * ComboBox.cs: fix a unit test regression from a TextBox
5778         SelectionLength return of -1 when there's no selection.  
5779
5780 2006-12-05  Chris Toshok  <toshok@ximian.com>
5781
5782         * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
5783         ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
5784         cleaning up some of the internal Control fields being used by
5785         subclasses.
5786
5787 2006-12-05  Mike Kestner  <mkestner@novell.com>
5788
5789         * ComboBox.cs: fix some Simple mode regressions.  Set Visible on the
5790         listbox after AddImplicit calls since it defaults to hidden. Add a 
5791         hack to preserve requested heights across DropDownStyle changes.
5792
5793 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
5794
5795         * PropertyGrid.cs: Hide FindFirstItem method from public API.
5796
5797 2006-12-05  Chris Toshok  <toshok@ximian.com>
5798
5799         * DataGridView.cs: fix compiler warnings.
5800
5801         * PrintControllerWithStatusDialog.cs: same.
5802
5803         * ToolBar.cs: same.
5804
5805         * FolderBrowserDialog.cs: same.
5806
5807         * Splitter.cs: same.
5808
5809         * DataGridViewComboBoxCell.cs: same.
5810
5811         * XplatUIWin32.cs: same.
5812
5813         * PictureBox.cs: same.
5814
5815         * Win32DnD.cs: same.
5816
5817         * PageSetupDialog.cs: same.
5818
5819         * FileDialog.cs: same.
5820
5821         * PrintDialog.cs: same.
5822
5823         * DataGridTextBoxColumn.cs: same.
5824
5825         * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
5826
5827 2006-12-05  Chris Toshok  <toshok@ximian.com>
5828
5829         * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
5830         MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
5831         System.ComponentModel.EventHandlerList work.
5832
5833 2006-12-05  Jonathan Chambers  <joncham@gmail.com>
5834
5835         * DrawTreeNodeEventArgs.cs: Added.
5836
5837 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5838         
5839         * InternalWindowManager.cs: Remove an unused field.
5840         
5841 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5842
5843         * InternalWindowManager.cs:
5844         - Save the point where the title bar is clicked.
5845         
5846         * MdiWindowManager.cs:
5847         - Only allow moving of the window as long as the 
5848         clicked point on the title bar does not get out of
5849         MdiClient's rectangle. Fixes #79982.
5850         
5851         * MdiClient.cs:
5852         - Added Horizontal/VerticalScrollbarVisible.
5853         - Simplified the scrollbar sizing algorithm.
5854         - Cache the difference in scrolled value in
5855         H/VBarValueChanged and move the calculation out
5856         of the for loop.
5857
5858 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5859
5860         * Control.cs: Make the Console.WriteLine in WndProc 
5861         write more info.
5862
5863 2006-12-05  Chris Toshok  <toshok@ximian.com>
5864
5865         * ToolStripManager.cs, ToolStripButton.cs,
5866         ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
5867         ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
5868         ToolStripSplitButton.cs, ToolStripSeparator.cs,
5869         ToolStripRenderer.cs, ToolStripDropDownItem.cs,
5870         ToolStripProgressBar.cs, ToolStripContainer.cs,
5871         ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
5872         to using System.ComponentModel.EventHandlerList.
5873
5874 2006-12-04  Chris Toshok  <toshok@ximian.com>
5875
5876         * LinkLabel.cs: fix up compiler warnings.
5877
5878         * TableLayoutSettings.cs: same.
5879
5880         * TreeView.cs: same.
5881
5882         * ToolBar.cs: same.
5883
5884         * TabControl.cs: same.
5885
5886         * RichTextBox.cs: same.
5887
5888         * ListViewItem.cs: same.
5889
5890         * PropertyGrid.cs: same.
5891
5892         * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
5893
5894         * ToolTip.cs same.
5895
5896         * TextRenderer.cs: fix up compiler warnings.
5897
5898         * Label.cs: same.
5899
5900         * Form.cs: corcompare fixes.
5901
5902         * PictureBox.cs: fix up compiler warnings.
5903
5904         * ImageListStreamer.cs: same.
5905
5906         * TrackBar.cs: corcompare fix.
5907
5908         * Control.cs: fix up compiler warnings.
5909
5910         * SplitterPanel.cs: same.
5911
5912         * NumericTextBox.cs: same.
5913
5914         * ImageList.cs: same.
5915
5916         * StatusStrip.cs: same.
5917
5918         * ProgressBar.cs: corcompare fix.
5919
5920         * ToolStripButton.cs: fix up compiler warnings.
5921
5922         * ToolStripStatusLabel.cs: same.
5923
5924         * ToolStripSplitButton.cs: same.
5925
5926         * ToolStripSeparator.cs: same.
5927
5928         * ToolStripProgressBar.cs: same.
5929
5930         * ToolStripDropDownMenu.cs: same
5931
5932         * ToolStripDropDown.cs: same.
5933
5934         * ToolStripDropDownButton.cs: same.
5935
5936         * ToolStrip.cs: same.
5937
5938         * ToolStripControlHost.cs: same.
5939
5940         * ToolStripContentPanel.cs: same.
5941
5942         * ToolStripDropDown.cs: same.
5943
5944         * ToolStripContainer.cs: same.
5945
5946         * ToolStripPanel.cs: same, and add "new" where we need it to work
5947         with the new ArrangedElementCollection.
5948
5949         * ToolStripItemCollection.cs: add "new" where we need it to work
5950         with the new ArrangedElementCollection.
5951
5952 2006-12-04  Andreia Gaita <avidigal@novell.com>
5953
5954         * TabControl.cs: Fix default tab selection to after TabControl
5955         gets focus and not before. Fixes #80128
5956
5957 2006-12-04  Chris Toshok  <toshok@ximian.com>
5958
5959         * DataGridTableStyle.cs: remove the gross calling of
5960         datagrid.Refresh from here.  It's a broken idea and it doesn't
5961         work anyway.
5962
5963         * DataGrid.cs: instead, just register/unregister from the
5964         DataGridTableStyle events in CurrentTableStyle.  we play it
5965         conservatively and EndEdit + CalcAreasAndInvalidate on any event,
5966         even though some would most likely not require it.  Fixes bug
5967         #80115 (and one portion of #80117 as a side effect).
5968
5969 2006-12-04  Chris Toshok  <toshok@ximian.com>
5970
5971         * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
5972         so the textbox (if any) goes away.  Fixes bug #80117.
5973
5974 2006-12-04  Chris Toshok  <toshok@ximian.com>
5975
5976         * DataGridColumnStyle.cs: set the column's readonly property
5977         initially based on the property descriptor's IsReadOnly.  Fixes
5978         bug #80044.
5979
5980 2006-12-04  Chris Toshok  <toshok@ximian.com>
5981
5982         * ComboBox.cs: wrap the dropdown style changing work in
5983         SuspendLayout/ResumeLayout.  Fixes bug #79968.
5984
5985 2006-12-04  Jackson Harper  <jackson@ximian.com>
5986
5987         * TextBoxBase.cs: Fix off by one, since these are one-based.
5988         * TextBox.cs: Select all the text when we get focus.  The TextBox
5989         does this but the RTB does not.
5990
5991 2006-12-04  Chris Toshok  <toshok@ximian.com>
5992
5993         * DataGridTextBoxColumn.cs: remove some spew.
5994
5995         * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
5996         but some part of me is saying "it shouldn't be here.."  At any
5997         rate, it fixes bug #80046.  Call IEditableObject.EndEdit after
5998         setting the value.
5999
6000 2006-12-04  Chris Toshok  <toshok@ximian.com>
6001
6002         * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
6003         to reassign the propertydescriptor.
6004
6005 2006-12-04  Jackson Harper  <jackson@ximian.com>
6006
6007         * TextBoxBase.cs:
6008         * TextControl.cs: Remove some unused variables.  Maybe this will
6009         patch things up between mike and I.
6010         - don't split lines less then one char wide, if the viewport is
6011         that small text won't be visible anyways.
6012         
6013 2006-12-04  Jackson Harper  <jackson@ximian.com>
6014
6015         * TextBoxBase.cs: Default selection length is -1, need to do some
6016         more testing on windows to see when this is used for the property.
6017         - Redid the Lines [] property to that we properly remove soft line
6018         breaks
6019         - added support for preserving carriage returns
6020         -  CanUndo is not a variable like 'is undo enabled' it just returns
6021         true if there is undo operations available.
6022         - AppendText doesn't need to grab the last tag itself anymore,
6023         this happens automatically when we move the cursor.
6024         * TextControl.cs: Add CompoundActions to the undo class. This
6025         allows combining the other operations into one big option.  ie a
6026         paste will combine { delete old, insert new, move cursor }
6027         - Add InsertString undo operation
6028         - New method for deleting multiline text
6029         - Add carriage returns to lines. So we can preserve carriage
6030         returns when text is 'roundtripped'
6031
6032 2006-12-04  Chris Toshok  <toshok@ximian.com>
6033
6034         * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
6035         minimum 0.  Fixes the scrollbar exception in bug #80136.
6036
6037 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6038
6039         * MdiClient.cs: 
6040         * MdiWindowManager: Removed unused fields and methods.
6041         
6042 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6043         
6044         * StatusBar.cs: Update all panels when a AutoSize=Contents
6045         panel needs updating.
6046         
6047         * StatusBarPanel.cs: Remove twidth and only use initialize.
6048         Fixes #80031.
6049                 
6050 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6051
6052         * Form.cs: When a form's MdiParent is set add it directly
6053         on top of the z-order in stead of relying on MdiClient's
6054         ActivateChild to do it. Fixes #80135.
6055         
6056         * MdiClient.cs: 
6057         - Remove original_order, mdi_child_list is already doing
6058         the same thing.
6059         - Create mdi_child_list on construction in
6060         stead of first use (avoids a few null checks).
6061
6062         * MenuItem.cs: Use an already existing list of mdi children
6063         to get the correct order of children and remove the other
6064         redundant list.
6065
6066 2006-12-04  Chris Toshok  <toshok@ximian.com>
6067
6068         * PropertyGridView.cs: cached_splitter_location is only used in
6069         !DOUBLEBUFFER code.
6070
6071         * PropertyGrid.cs: implement the ComComponentNameChanged event
6072         using Events, hoping that would fix the warning.  Looks like a
6073         compiler bug instead (#80144).
6074
6075         * PropertyManager.cs: remove unused method.
6076
6077 2006-11-04  Everaldo Canuto  <everaldo@simios.org>
6078
6079         * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar, 
6080         include parentesis to fix expression evaluation. Fixes #79634.
6081
6082 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
6083         
6084         * MenuAPI.cs:
6085         - Changes to fix behavior in Menu control, some reported in #80097
6086         and other detected during behavior refactory like a select event
6087         problems.
6088         - Remove unneded "if's" conditions.
6089         - Created an internal to flag when popup is active in control, we need 
6090         it because in .NET you can have menu active but without popup active
6091         when you active menu using popup without visible items.
6092         - Mimic win32 behavior for Select and Popup events.  
6093         - Dont open popup menu when you dont have visible subitems.
6094         - Do nothing when click on disabled menu item.
6095         - Some small changes to follow the coding style guidelines.
6096         - Unselect menu only when another control gives focus. Fixes #80097.
6097         - Remove unused code.
6098         
6099         * MenuItem.cs: internal VisibleItems method to check if menu
6100         theres visible subitems, it will be usefull to fix some 
6101         behavior in Menu control.
6102         
6103 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
6104         
6105         * Timer.cs: Tag property for 2.0 profile.
6106         
6107 2006-12-01  Chris Toshok  <toshok@ximian.com>
6108
6109         [ after removing all warning suppressions, this cleans up over 100 warnings. ]
6110         
6111         * Win32DnD.cs: comment out some unused fields.
6112
6113         * XplatUIWin32.cs: comment out some unused pinvokes, and remove
6114         some unused properties/methods.
6115
6116         * XplatUIX11.cs: fix MousePosition so we override the base class's
6117         property instead of conflicting with it.
6118
6119         * PictureBox.cs: comment out some unused fields
6120
6121         * OSXStructs.cs: make some struct fields public.
6122
6123         * XplatUIOSX.cs: comment out some unused pinvokes, and fix
6124         MousePosition so we override the base class's property instead of
6125         conflicting with it.
6126
6127         * X11Dnd.cs: comment out some unused fields
6128
6129         * X11DesktopColors.cs: fix some struct field visibility to quiet
6130         the compiler.
6131
6132         * X11Dnd.cs: remove some debug code.
6133
6134         * ThemeClearlooks.cs: comment out unused field.
6135
6136         * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
6137
6138         * ThemeGtk.cs: comment out some unused pinvokes.
6139
6140         * Timer.cs: remove some unused fields.
6141
6142         * ThemeClearlooks.cs: comment out unused field.
6143
6144         * UpDownBase.cs: comment out unused field.
6145
6146         * DataObject.cs: comment out unused field.
6147
6148         * DataGridBoolColumn.cs: reomve unused field.
6149
6150         * DataGrid.cs: remove unused field.
6151
6152         * Cursor.cs: remove old ToBitmap code.
6153
6154         * ControlPaint.cs: remove unused method.
6155
6156         * ScrollBar.cs: remove unused fields.
6157
6158         * ComboBox.cs: remove unused field, and chain up to
6159         AccessibleObject ctor.
6160
6161         * ListBox.cs: remove unused field.
6162
6163         * ButtonBase.cs: wrap a couple fields in NET_2_0.
6164
6165         * GridEntry.cs: remove unused fields.
6166
6167         * Binding.cs: remove unused fields.
6168
6169         * AxHost.cs: remove unused method.
6170
6171         * ContainerControl.cs: remove unused field.
6172
6173         * ScrollableControl.cs: remove unused fields.
6174
6175 2006-12-01  Chris Toshok  <toshok@ximian.com>
6176
6177         * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
6178         the Where/WhereString stuff.  it's easy enough to CWL
6179         Environment.StackTrace.
6180
6181         * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
6182         unused private fields.
6183
6184 2006-12-01  Jackson Harper  <jackson@ximian.com>
6185
6186         * TextControl.cs: Do not update the view while inserting multiline
6187         text. If we update the view we might wrap lines, before entering
6188         the new lines, which causes the new line insertion calculations to
6189         be totally fubared.
6190         - Remove an old TODO
6191         - Make debug output a little nicer
6192         
6193 2006-12-01  Chris Toshok  <toshok@ximian.com>
6194
6195         * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
6196
6197 2006-12-01  Chris Toshok  <toshok@ximian.com>
6198
6199         [ fix the majority of the CS0108 warnings we've been suppressing ]
6200         
6201         * TreeView.cs: mark BackgroundImageChanged as 'new'.
6202
6203         * ToolBar.cs: ImeMode just passes stuff to Control.  Rename Layout
6204         to "LayoutToolBar" to quiet mcs.
6205         
6206         * TabControl.cs: mark our ControlCollection class as 'new'.
6207
6208         * TextBoxBase.cs: mark some events as 'new'.
6209
6210         * Splitter.cs: TabStop is 'new'.
6211
6212         * ControlBindingsCollection.cs: mark a few methods as new since
6213         they change the visibility from protected to public.
6214
6215         * RadioButton.cs: DoubleClick -> base class, and remove unused
6216         HaveDoubleClick.
6217
6218         * MonthCalendar.cs: ImeMode property -> base class, and mark many
6219         events as new.
6220
6221         * NumericUpDown.cs: TextChanged -> base class.
6222
6223         * CheckedListBox.cs: mark our ObjectCollection class as new to
6224         quiet mcs.
6225
6226         * FolderBrowserDialog.cs: make HelpRequest event new and have it
6227         muck with the base class.
6228
6229         * StatusBar.cs: fix some mcs warnings about Update being the same
6230         name as a base class method.
6231
6232         * RichTextBox.cs: mark some events as new, and make them do things
6233         to the base class impl.
6234
6235         * UserControl.cs: mark TextChanged as new, and have it manipulate
6236         base.TextChanged.
6237
6238         * UpDownBase.cs: mark some things new.
6239
6240         * CheckBox.cs: mark DoubleClick "new", and add some text about
6241         what we need to look at.
6242
6243         * Panel.cs: make the events "new", and manipulate the base
6244         version.  these are just here for attributes.
6245
6246         * AccessibleObject.cs: make owner private.
6247
6248         * Control.cs: deal with AccessibleObject.owner being private.
6249         cache our own copy if we need it.
6250
6251         * Button.cs: add "new" to the DoubleClickEvent.
6252
6253         * ListBox.cs: no need to track our own has_focus here.  let
6254         Control.has_focus do it for us.  Also some other work to clear up
6255         warnings about not overriding base class methods of the same name.
6256         
6257         * ComboBox.cs: clear up some warnings about not override base
6258         class methods of the same name.
6259
6260 2006-12-01  Chris Toshok  <toshok@ximian.com>
6261
6262         * Form.cs: flag a few things as "new" to quiet some of the mcs
6263         warnings.
6264
6265         * AxHost.cs: same.
6266
6267         * PrintPreviewDialog.cs: same.
6268
6269         * DataGridView.cs: fix a ton of corcompare warnings.  not all, but
6270         now DGV isn't so horrible on the class status page.  also, move
6271         all events to using System.ComponentModel.EventHandlerList.  my
6272         wrists hurt.
6273
6274 2006-12-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6275
6276         * MdiWindowManager.cs:
6277         - Set form to active mdi child if shown,
6278         and update the active mdi child to the next 
6279         remaining child in the z-order if the form is hidden.
6280
6281         * Form.cs: 
6282         - Track if the form has been visible and if its 
6283         visibility is beeing changed, so that the MdiClient
6284         can properly decide the ActiveMdiChild. The MdiClient 
6285         cannot track this since the form can change visibility 
6286         before MdiClient is created.
6287
6288         * MdiClient.cs:
6289         - Don't activate anything of the parent form is changing
6290         its visibility.
6291         - Rework ActiveMdiChild to only return visible mdi 
6292         children and take into account several other corner 
6293         cases.
6294
6295 2006-12-01  Chris Toshok  <toshok@ximian.com>
6296
6297         * IBindableComponent.cs: new 2.0 interface.
6298
6299 2006-12-01  Gert Driesen  <drieseng@users.sourceforge.net>
6300
6301         * DataGrid.cs: Font for caption area is bold by default.
6302
6303 2006-12-01  Everaldo Canuto  <everaldo@simios.org>
6304
6305         * Menu.cs: Tag property for 2.0.
6306         
6307 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
6308
6309         * ThemeWin32Classic.cs: Adjust menu separator drawing. 
6310         
6311 2006-12-01  Chris Toshok  <toshok@ximian.com>
6312
6313         * TreeView.cs: doh, the Begin* events should be
6314         TreeViewCancelEventHandler.
6315
6316 2006-12-01  Chris Toshok  <toshok@ximian.com>
6317
6318         * Form.cs: Form.ControlCollection already stores off the
6319         form_owner field.  don't access the base class's internal "owner"
6320         field.
6321
6322         * Control.cs: make all the fields in Control.ControlCollection
6323         private.  there's no need for any internal fields here.
6324
6325 2006-12-01  Chris Toshok  <toshok@ximian.com>
6326
6327         * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
6328         OnHandleCreated.  Fixes bug #80109.
6329
6330 2006-12-01  Chris Toshok  <toshok@ximian.com>
6331
6332         * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
6333         SplitContainer.cs, Control.cs, StatusStrip.cs,
6334         DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
6335         NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
6336         DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
6337         DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
6338         Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
6339         LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
6340         MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
6341         TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
6342         PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
6343         DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
6344
6345         do most of the work to convert our code over to use
6346         System.ComponentModel.Component.Events for
6347         adding/removing/dispatching events.
6348
6349
6350 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
6351
6352         * DataGridView.cs: Fix an ArgumentNullException reported 
6353         twice today in IRC.
6354
6355 2006-11-30  Mike Kestner  <mkestner@novell.com>
6356
6357         * ComboBox.cs: fix the scrollbar mouse event forwarding in the 
6358         grabbed listbox.  Fixes #80036 and #80101.
6359
6360 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
6361
6362         * Message.cs: Changed ToString() to match MS.
6363         
6364 2006-11-30  Jackson Harper  <jackson@ximian.com>
6365
6366         * TextBoxBase.cs: You can still change the selected text on a read
6367         only textbox.
6368         * TextControl.cs: Lower magic number for wrap calculations. This
6369         lets text get closer to the right (far) edge.
6370
6371 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
6372
6373         * Control.cs: Tweak 2.0 layout properties.
6374         * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
6375         * TextRenderer.cs: Add a new overload.
6376         * ToolStrip*: Huge amount of changes and new features.
6377
6378 2006-11-30  Mike Kestner  <mkestner@novell.com>
6379
6380         * ComboBox.cs: fixes for LargeChange and Maximum to get the 
6381         scroll range correct.  Fixes #79994.
6382
6383 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
6384
6385         * MdiWindowManager.cs: Update main form's text when
6386         a form is closed. (fixes #80038)
6387         
6388 2006-11-30  Everaldo Canuto  <everaldo@simios.org>
6389
6390         * ToolBar.cs:
6391         - Fix an regression in ButtonSize.
6392         - Get ImeMode default value change to "Disable".
6393         - Get ShowTooltips default value change to true, default value is 
6394         "false" but after make a test in .NET we get "true" result as default.
6395         
6396 2006-11-29  Jonathan Pobst  <monkey@jpobst.com>
6397
6398         * ToolStripDropDown.cs: Fix for SupportsTransparency change.
6399
6400 2006-11-29  Chris Toshok  <toshok@ximian.com>
6401
6402         * XplatUIWin32.cs (GetWindowTransparency): check return value of
6403         GetLayeredWindowAttributes.  if it's 0, return 1.0, as
6404         SetWindowTransparency hasn't been called.
6405
6406 2006-11-29  Chris Toshok  <toshok@ximian.com>
6407
6408         * Form.cs (set_TransparencyKey): only call SetWindowTransparency
6409         if it's supported.
6410         (set_AllowTransparency): reorder things a little so that the
6411         WS_EX_LAYERED style is removed properly.
6412
6413 2006-11-29  Chris Toshok  <toshok@ximian.com>
6414
6415         [ totally cosmetic eye-candy feature, fixes bug #80089 ]
6416         
6417         * Form.cs: only call the XplatUI transparency method (get/set) if
6418         SupportsTransparency says it's supported. Otherwise fallback to
6419         doing nothing (in the set case) or returning the instance field we
6420         cache (in the get case).
6421
6422         * XplatUIStructs.cs: add TransparencySupport flag enum.
6423         
6424         * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
6425         change to SupportsTransparency.
6426
6427         * XplatUIOSX.cs: stub out GetWindowTransparency, and return
6428         TransparencySupport.None from SupportsTransparency.
6429
6430         * XplatUIX11.cs: Stub out GetWindowTransparency, and return
6431         TransparencySupport.Set from SupportsTransparency.
6432
6433         * XplatUIWin32.cs: implement GetWindowTransparency calling
6434         GetLayeredWindowAttributes, and implement SupportsTransparency by
6435         checking whether or not both
6436         GetWindowTransparency/SetWindowTransparency are available
6437         entrypoints.  We need to do this since SetWindowTransparency is
6438         available as of win2k, but GetWindowTransparency requires winxp.
6439         yay win32 api.
6440
6441         * XplatUI.cs: Add GetWindowTransparency, and change
6442         SupportsTransparency to allow for either/both Get/Set.
6443
6444 2006-11-29  Chris Toshok  <toshok@ximian.com>
6445
6446         * DataGrid.cs: keep from going into an infinite loop redrawing a
6447         datagrid that has no datasource.  Fixes bug #80033.
6448
6449 2006-11-29  Chris Toshok  <toshok@ximian.com>
6450
6451         * MenuItem.cs: fix the NRE when we assign text (and therefore call
6452         Invalidate) before the mainmenu has been assigned to a control.
6453
6454 2006-11-29  Chris Toshok  <toshok@ximian.com>
6455
6456         * DataGrid.cs: detect when we should be double the double click
6457         row/column autosize stuff, although that codepath has yet to be
6458         written.  part of the work for bug #79891.
6459
6460 2006-11-29  Chris Toshok  <toshok@ximian.com>
6461
6462         * Binding.cs (SetControl): fix unit test.
6463
6464 2006-11-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6465
6466         * PageSetupDialog.cs: Validate the margins and set them in
6467         PageSettings. 
6468         * NumericTextBox.cs: New class to mimic the behavior of the
6469         textboxes used in the printing dialogs.
6470
6471 2006-11-29  Andreia Gaita  <avidigal@novell.com>
6472         
6473         * Form.cs: Revert previous change (remove call UpdateBounds
6474         from form constructor), because it messes with the handle creation
6475         order, and that one needs lots and lots of love.
6476         * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
6477         for valid printer and throw InvalidPrinterException if document
6478         is set but printer not valid), adding a MonoTODO. Once 
6479         handle creation is done properly, we can put this back in.
6480
6481 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
6482
6483         * MenuItem.cs: Create a invalidate method for menu item, to be
6484         calling from set text, it make text changes to imadiate update
6485         on screen. Fixes #80013. 
6486         
6487 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
6488
6489         * ToolBar.cs: Fixes and simplify toolbar button layout, it 
6490         fixes bug #80070 and some other problem on toolbar buttons
6491         layout.
6492
6493 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
6494
6495         * ThemeWin32Classic.cs: Paint toolbar toggle button background 
6496         with dotted brush.      Fixes #79564
6497         
6498 2006-11-28  Andreia Gaita  <avidigal@novell.com>
6499
6500         * Form.cs: Removed call to UpdateBounds on Form
6501         constructor, it was causing a call to CreateHandle
6502         before it was supposed to.
6503         * PrintControllerWithStatusDialog: Applied patch
6504         by Chris Toshok to hide controller when there are
6505         no printers available.
6506         PrintDialog.cs: initialize printer settings to 
6507         null - correct DefaultValues test #5
6508         * PrintPreviewControl.cs: Move PrintController
6509         initialization to GeneratePreview
6510         * PrintPreviewDialog.cs: 
6511         - Remove Preview generation     from Document_set(). It is 
6512         called on OnPaint
6513         - Throw InvalidPrinterException on CreateHandle if
6514         a Document is set but there are no printers or 
6515         printer is not valid.
6516         * ThemeWin32Classic: don't paint PrintPreviewControl
6517         if there is nothing to paint    
6518
6519 2006-11-28  Miguel de Icaza  <miguel@novell.com>
6520
6521         * Form.cs: Add another popular method.
6522
6523         * TabPage.cs: ditto.
6524
6525 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6526
6527         * MenuItem.cs: Fixed a warning.
6528         * InternalWindowManager: Fixed a warning.
6529
6530 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6531
6532         * MenuItem.cs:
6533         - When cloning a menu also clone MdiList and clone the 
6534           window menu items properly (as the forms and menuitems
6535           are kept in an internal hashtable, these need updating 
6536           as well)
6537         - Rewrote the window menu code, menu items are added in the
6538           order the forms were added to their parent, and they are
6539           updated every time the window menu is shown (before the
6540           list was only generated once, in the current order of the
6541           forms, and would never be updated). A checkmark is shown
6542           next to the item corresponding to the active mdi child.
6543
6544 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6545
6546         * XplatUIStructs.cs: 
6547         - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
6548         
6549         * XplatUIWin32.cs: 
6550         - Added TME_NONCLIENT to TMEFlags.
6551         - Handles WM_NCMOUSEMOVE in GetMessage to 
6552           generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
6553
6554         * MdiWindowManager:
6555         - Now merges mdi child menu to parent menu when maximized.
6556         - Recalculate NC areas of both mdi child and mdi parent. 
6557           Fixes #79757 (4).
6558           on window state and size changes.Fixes #79844 (3).
6559         - Handle WM_NCCALCSIZE to properly calculate borders.
6560
6561         * Form.cs:
6562         - Add/remove to the mdi containers list of mdi children 
6563           in the order they are added.
6564         - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE 
6565           to the maximized mdi child.
6566         
6567         * InternalWindowManager.cs:
6568         - Only execute a click on the control buttons on the mouse up,
6569           not on the mouse down. Show the state of the button 
6570           (was only showing Normal state, never Pressed state). The
6571           pressed button now follows the mouse (if you click the Close 
6572           button and move the mouse over the Maximize button, the 
6573           Maximize button will be shown as pressed). Since Win32 does
6574           not generate WM_NCLBUTTONUP if you release the button outside
6575           of the nc area, we need to handle WM_NCMOUSELEAVE and treat
6576           it as a mouse up.
6577         
6578         * ThemeWin32Classic.cs:
6579         - Draw a missing border around mdi child forms. Fixes #79844 (2).
6580
6581         * MdiClient.cs:
6582         - Added a list of forms which contains the order the forms are
6583           added to the mdi parent.
6584         - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
6585         - Handle WM_NCCALCSIZE to properly calculate the 3D border.
6586         - If the active form changes set the scrollbars to the top
6587           of the Z order, otherwise the form could hide them.
6588         - Scrollbars are now sized according to ClientSize, not 
6589           to Size, and they take into account the other scrollbar
6590           to determine maximum.
6591         
6592 2006-11-28  Rolf Bjarne Kvinge <RKvinge@novell.com>
6593         
6594         * XplatUI.cs:
6595         * XplatUIDriver.cs:
6596         * XplatUIX11.cs:
6597         * XplatUIWin32.cs:
6598         * XplatUIOSX.cs:
6599         - Added RequestAdditionalWM_NCMessages for windows to 
6600           opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
6601           Currently only implemented in XplatUIWin32.
6602
6603 2006-11-27  Chris Toshok  <toshok@ximian.com>
6604
6605         * Hwnd.cs: only add the hwnd to the windows hash in
6606         set_WholeWindow and set_ClientWindow if whole_window/client_window
6607         are not IntPtr.Zero.  also, remove the unused SetObjectWindow.
6608
6609 2006-11-27  Mike Kestner  <mkestner@novell.com>
6610
6611         * ComboBox.cs: remove redundant OnDropDown call.  It is called
6612         from the ComboListBox.ShowWindow code. Fixes #79969.
6613
6614 2006-11-27  Chris Toshok  <toshok@ximian.com>
6615
6616         * Hwnd.cs: remove the setters for ExposePending and
6617         NCExposePending - noone uses them.
6618
6619 2006-11-27  Jackson Harper  <jackson@ximian.com>
6620
6621         * TextControl.cs: new param for ReplaceSelection which determines
6622         whether we select the new selection, or set the cursor to the end
6623         of the new selection.
6624         * TextBoxBase.cs: Use new param for ReplaceSelection.  When
6625         pasting, select the new text.
6626         * RichTextBox.cs: Use new param for ReplaceSelection.
6627
6628 2006-11-27  Jackson Harper  <jackson@ximian.com>
6629
6630         * TextBoxBase.cs: Set the selection to the caret after the caret
6631         is moved, otherwise they get out of sync.
6632
6633 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
6634
6635         * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
6636         it fixes #80015
6637
6638 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
6639
6640         * ThemeWin32Classic.cs: 
6641         - Fix toolbar drop down arrow position.
6642         - Fix drop down appearance when ToolBar.Appearance is normal,
6643         it fixes #80018.
6644         
6645 2006-11-26  Gert Driesen  <drieseng@users.sourceforge.net>
6646
6647         * ProgressBar.cs: GetStyle fixes for 2.0 profile.
6648         * Control.cs: Same.
6649         * UpDownBase.cs: Same.
6650         * ButtonBase.cs: Same.
6651         * ScrollBar.cs: Same.
6652         * TrackBar.cs: Same.
6653         * PictureBox.cs: Same.
6654         * UserControl.cs: Same.
6655         * Label.cs: Same.
6656         * ListControl.cs: Same.
6657         * TextBoxBase.cs: Same.
6658         * ListView.cs: Same.
6659         * RichTextBox.cs: Same.
6660         * TreeView.cs: Same.
6661
6662 2006-11-25  Jordi Mas i Hernandez <jordimash@gmail.com>
6663
6664         * PrintDialog.cs:
6665         - Text label for where 
6666         - Text label comment was not shown
6667
6668 2006-11-23  Everaldo Canuto  <everaldo@simios.org>
6669
6670         * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
6671
6672 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
6673
6674         * InternalWindowManager.cs: 
6675         - Handle WM_PARENTNOTIFY to activate the form
6676         if any child control is clicked.
6677         - The form is only sizable if not minimized.
6678
6679         * MdiWindowManager.cs:
6680         - Save the IconicBounds if the form is moved.
6681         - Rework SetWindowState, now the window bounds 
6682         are stored only if the old window state is Normal.
6683         
6684         * MdiClient.cs:
6685         - In SetWindowStates store the old window state if 
6686         the window is maximized and restore window state if
6687         the window looses focus.
6688         - Don't handle any scrollbar value changes if 
6689         initializing the scroll bars. Fixes #79771.
6690         - Reworked ArrangeIconicWindows. Current algorithm
6691         tests bounds agains all other minimized windows, if
6692         any intersections create new bounds (going left to 
6693         right, bottom to top) and then test again. When 
6694         successful the bounds are saved and never computed
6695         again. Fixes #79774.
6696
6697 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
6698
6699         * InternalWindowManager.cs: Added HandleTitleBarUp.
6700
6701 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
6702
6703         * NumericUpDown.cs: In .NET 1.1, user entered text is still
6704         hexadecimal in ParseUserEdit.
6705
6706         
6707 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
6708
6709         * MdiWindowManager.cs: 
6710         - Handle a click on the form's icon to show the 
6711         system menu (when maximized). Fixes #79775.
6712         - Change the existing click handler for the form's
6713         icon when not maximized to show on MouseUp.
6714         Fixes #79776.
6715
6716         * Form.cs: In OnResize only layout the mdi child's
6717         parent if it actually has a parent. Might not if
6718         the window is closing.
6719
6720
6721 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
6722
6723         * MdiClient.cs: Ignore active MDI client for text of parent, if
6724         child has no text set.
6725
6726 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
6727
6728         * ToolBar.cs: Fixed ToString to match MS.
6729
6730 2006-11-22  Andreia Gaita  <avidigal@novell.com>
6731
6732         * NumericUpDown: 
6733         - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to 
6734         update inner values on set. Fixes #79966.
6735         - Override OnLostFocus to update value on NET 2. Fixes #79950.
6736         - Fix hexadecimal parsing.
6737         
6738         * UpDownBase: Override OnGotFocus and OnLostFocus to notify 
6739         parent. Fixes #79957
6740
6741 2006-11-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6742
6743         * Control.cs: After calling SetWindowsPos in SetBoundsCore 
6744         the actual size has to be queried, since if height /
6745         width is negative Win32 changes it to 0. 
6746         Fixes #79999 on Windows.
6747         
6748         * XplatUIX11.cs: Set height / width to 0 if negative
6749         in SetWindowPos. Fixes #79999 on Linux.
6750         
6751 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
6752
6753         * ThemeWin32Classic.cs: Fix text redenring when button is
6754         pressed.
6755
6756 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
6757
6758         * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
6759         and later navigate by mouse. Fixes #79528.
6760
6761 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
6762
6763         * ToolBar.cs: Set default value for TabStop to false in
6764         constructor, it fixes remaining behavior of bug #79863.
6765
6766 2006-11-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6767
6768         * MdiWindowManager.cs:
6769         * InternalWindowManager.cs:
6770         - Moved a few methods specific to Mdi from 
6771         InternalWindowManager to MdiWindowManager.
6772         Fixes #79996.
6773         
6774 2006-11-21  Chris Toshok  <toshok@ximian.com>
6775
6776         * XplatUIOSX.cs: stub out InvalidateNC.
6777
6778         * XplatUIWin32.cs: implement InvalidateNC using the call I found
6779         at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
6780
6781         * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
6782
6783         * XplatUIDriver.cs: add InvalidateNC abstract method.
6784
6785         * XplatUI.cs: add InvalidateNC.
6786
6787 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
6788
6789         * ToolBar.cs: Invalidate complete button area when pressed status 
6790         was changed.
6791         * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
6792         * ThemeWin32Classic.cs: Increase vertical and horizontal position 
6793         by 1 when button is pressed.
6794
6795 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
6796
6797         * ToolButton.cs: Invalidate middle of DropDown button when
6798         ToolBar theres DropDownArrows.
6799         * ThemeWin32Classic.cs: Change position of DropDown arrow and
6800         fix DropDown drawing operations.
6801
6802 2006-11-20  Chris Toshok  <toshok@ximian.com>
6803
6804         * NativeWindow.cs: fix the formatting of functions ('{' on the
6805         following line), and enable the thread exception dialog.
6806
6807         * Application.cs: remove the duplicate exception catching from
6808         here.
6809
6810 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
6811
6812         * Toolbar.cs: Triggers button click event when click on icon
6813         of dropdown ToolBarButton. Fixes #79912.
6814         
6815 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6816
6817         * Theme.cs:
6818         * ThemeWin32Classic.cs:
6819         - Added a property WindowBorderFont to enable themeing
6820           of mdi child windows' Text.
6821           
6822 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6823
6824         * InternalWindowManager.cs:
6825         * Form.cs:
6826         * MdiClient.cs:
6827         * MdiWindowManager.cs: 
6828         - If mdi child is maximized, set mdi parent's
6829           text to "Parent - [Child]". Fixes #79770.
6830         - If there is any maximized mdi child windows, only the active 
6831           window (and any new windows) is maximized, the rest are normal.
6832         - On a WindowState change only save mdi child's window bounds 
6833           if the old window state was normal. Fixes #79774.
6834         - The scroll bars are now calculated on hopefully all
6835           necessary events. Fixed #79771 / #79844->6 / #79906.
6836         - MdiClient.SizeScrollBars() now takes into account docked 
6837           controls in the parent when calculating available space.
6838         - InternalWindowManager now always repaints the entire title
6839           area. Fixes #79844->1/4/5.
6840         - Added RequestNCRecalc on mdi child windowstate changes.
6841           Fixes #79772.
6842
6843 2006-11-20  Mike Kestner  <mkestner@novell.com>
6844
6845         * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
6846         in the MouseUp handler of the listbox and move the return handling
6847         code to FireMouseUp to avoid scrolling on ups.  Fixes #79952.
6848
6849 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
6850
6851         * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855. 
6852
6853 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
6854
6855         * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
6856           working in 1.2.x anymore. So, updated.
6857
6858 2006-11-19  Gert Driesen  <drieseng@users.sourceforge.net>
6859
6860         * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
6861         NumberGroupSeparator of current culture instead of assuming en-US.
6862         Fixed bug #79967.
6863
6864 2006-11-17  Mike Kestner  <mkestner@novell.com>
6865
6866         * Control.cs: Add the concept of implicit bounds setting so that
6867         dock/undock round trips preserve explicitly set size/locations.
6868         Fixes #79313.
6869
6870 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
6871
6872         * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
6873           can't handle those filters. (Fixes bug #79961)
6874
6875 2006-11-17  Chris Toshok  <toshok@ximian.com>
6876
6877         [ fixes the exit/crashes associated with #79835.  it's clearly
6878         suboptimal though, we need to figure out a better way to solve
6879         this. ]
6880         
6881         * PrintPreviewControl.cs: deal with the new invalid printer
6882         exceptions.
6883
6884         * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
6885         and return false (so CommonDialog.ShowDialog doesn't actually show
6886         the form.)
6887
6888         * PrintDialog.cs: enable/disable the Ok button depending on
6889         whether or not the printer is valid.
6890
6891         * CommonDialog.cs (ShowDialog): only actually show the form if
6892         RunDialog returns true.
6893
6894 2006-11-17  Jackson Harper  <jackson@ximian.com>
6895
6896         * TextControl.cs: When soft splitting a line, mark it as a soft
6897         split line. Also carry over the current line break to the next
6898         line.
6899
6900 2006-11-17  Chris Toshok  <toshok@ximian.com>
6901
6902         * XplatUIX11.cs: when scrolling a window with an invalid area, we
6903         only want to shift the part of the invalid area that overlaps the
6904         area we're scrolling.  we also don't want to clear the invalid
6905         area unless the invalid area was entirely contained within the
6906         scrolling area.
6907
6908 2006-11-16  Chris Toshok  <toshok@ximian.com>
6909
6910         * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
6911         also make sure to free the memory returned by XGetWindowProperty
6912         in GetText().
6913
6914         * X11Structs.cs: remove the TimerEvent stuff, it's unused.
6915
6916 2006-11-16  Chris Toshok  <toshok@ximian.com>
6917
6918         * XplatUI.cs: add a new super secret way to get at the totally
6919         unsupported X11 backend.
6920
6921 2006-11-16  Gert Driesen  <drieseng@users.sourceforge.net>
6922
6923         * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
6924
6925 2006-11-16  Jackson Harper  <jackson@ximian.com>
6926
6927         * TreeView.cs: Allow more explicit setting of top node position
6928         for scrollbars. Slower algo, but more accurate.
6929         - CollapseAll should maintain the current top node.
6930         * TextBoxBase.cs: When positioning the caret, use the line, pos
6931         method, since the x, y method does not grab the correct tag, and
6932         the caret height never gets set correctly. (Maybe I should just do
6933         away with the caret having its own height, and always use the
6934         carets current tag for height).
6935
6936 2006-11-16  Jonathan Pobst  <monkey@jpobst.com
6937
6938         [Fixes 79778, 79923]
6939
6940         * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
6941         Parent to the FosterParent instead.
6942
6943 2006-11-16  Jackson Harper  <jackson@ximian.com>
6944
6945         * TreeView.cs: Need to recalc the topnode when we expand or
6946         collapse. The scrolling methods can't handle this on their own,
6947         since they use differences between the last scroll position, and
6948         those difference get completely messed up since we are expanding
6949         nodes.  This problem should probably be fixed in the scrolling
6950         methods, so they can figure out exactly where they are, but this
6951         will slow things down a little.
6952         * ThemeWin32Classic.cs: Special case for groupboxes with empty
6953         strings, makes nunit-gui look a lot nicer.
6954
6955 2006-11-16  Chris Toshok  <toshok@ximian.com>
6956
6957         * XplatUIX11.cs: nasty, nasty, nasty changes required because of
6958         the broken multithreaded event handling we have in here.  File
6959         this entry under "Why we should move to the new X11 backend".
6960
6961         Any thread can make it into UpdateMessageQueue, which gets events
6962         from the X socket - some of which could belong to hwnds being
6963         managed by a different thread.  We can also have multiple threads
6964         in UpdateMessageQueue at the same time, with each one reading from
6965         the X socket.  This leads to many problems, with the following
6966         solutions:
6967
6968         We can't use hwnd.Queue.Enqueue anywhere in here and must use
6969         EnqueueLocked.
6970
6971         The MotionNotify compression we do can't work across threads
6972         (without locking the entire queue, perhaps) since we call
6973         hwnd.Queue.Peek, so we just punt and don't compress motion events
6974         unless the owning thread is the one which got the X event.
6975
6976         ConfigureNotify is another fun one, since it modifies the hwnd's
6977         bounds and then enqueues the event.  We add a lock to Hwnd which
6978         is held when setting configure_pending to true (and enqueuing the
6979         event).
6980
6981         There is a race wrt the wake socket.  we need to make sure that
6982         only 1 thread is waiting on that socket, or else a thread could
6983         sleep waiting for data that never comes.  It's difficult (but not
6984         impossible) to make happen, because it seems to require something
6985         like the following:
6986
6987             1. Thread 1 polls on wake_receive
6988         
6989             2. poll returns saying there's data to be read on
6990                wake_receive.
6991         
6992             3. Thread 2 polls on wake_receive and immediately returns
6993                saying there's data to be read.
6994
6995             4. Thread 2 reads the wakeup byte from wake_receive
6996
6997             5. Thread 1 attempts to read the wakeup byte from
6998                wake_receive.
6999
7000             6. Thread 2 exits (due to a form closing, perhaps).
7001
7002             7. Thread 1 blocks forever.
7003         
7004         Fun, eh?
7005
7006         Fixing the Expose handling isn't done yet, and the races inherent
7007         in that piece of code are responsible for the drawing mistakes you
7008         see when generating expose events in a MT app (like NPlot).  This
7009         one is the likely to be the hardest to bandaid, and it doesn't
7010         appear to cause anything but drawing problems.  The other issues
7011         caused apps to exit or hang.
7012
7013         * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
7014         called from a different thread than the one that should be calling
7015         these functions.
7016
7017         * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
7018
7019 2006-11-15  Chris Toshok  <toshok@ximian.com>
7020
7021         * Application.cs: null out the context's MainForm when we exit
7022         RunLoop.  Fixes a newly checked in unit test as well as the last
7023         ODE from bug #79933.
7024
7025 2006-11-15  Chris Toshok  <toshok@ximian.com>
7026
7027         * Form.cs (set_Owner): allow a null value so we can clear the
7028         form's owner.
7029         (Dispose): set all our owned_form's Owner properties to null, and
7030         clear the owned_forms collection.
7031         (WM_CLOSE): clean up this a little bit.. still not right though.
7032
7033         * ApplicationContext.cs: OnMainFormClosed should only call
7034         ExitThreadCore if the main form isn't recreating.  Fixes unit
7035         test.
7036
7037 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
7038
7039         [Fixes 78346]
7040
7041         * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
7042
7043 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
7044
7045         [Fixes 79433]
7046
7047         * Hwnd.cs: Add a flag to show a window, but not activate it, to 
7048         keep popup window types from stealing focus from the main form
7049         on Windows.
7050
7051         * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
7052
7053         * MenuAPI.cs: Set above flag to true.
7054
7055 2006-11-15  Chris Toshok  <toshok@ximian.com>
7056
7057         * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
7058         the button being released is not in wParam.
7059
7060 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
7061
7062         * Form.cs: Add the released button to MouseEventArgs.Button
7063         for the OnMouseUp call to the MenuTracker.  Fixes menu clicking
7064         on Win32.
7065
7066 2006-11-15  Chris Toshok  <toshok@ximian.com>
7067
7068         * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
7069         GetText().  untested because it's unused in our implementation.
7070         Control.Text always caches the text, even if
7071         ControlStyles.CacheText is not set.
7072
7073         fixes bug #79939.
7074
7075 2006-11-15  Chris Toshok  <toshok@ximian.com>
7076
7077         [ fixes #79933 ]
7078         
7079         * Form.cs: in Close() don't do anything after we send the WM_CLOSE
7080         message.  no hiding, no disposing.
7081
7082         in the WM_CLOSE handler, hide the form if it's modal.
7083
7084 2006-11-15  Chris Toshok  <toshok@ximian.com>
7085
7086         * XplatUIX11.cs: use AddExpose instead of sending a message.
7087         fixes textbox border drawing.
7088
7089 2006-11-15  Chris Toshok  <toshok@ximian.com>
7090
7091         * PropertyGridView.cs: keep from crashing on mouse move/down when
7092         the property grid is empty.
7093
7094 2006-11-14  Jackson Harper  <jackson@ximian.com>
7095
7096         * TextControl.cs: Make PageUp and PageDown more like the MS
7097         versions.
7098         * TextBoxBase.cs: When we set the text property position the
7099         cursor at the beginning of the document.
7100
7101 2006-11-14  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7102
7103         * Form.cs: if a mdi child's WindowState has changed
7104         before it's creation, it would display wrong control
7105         buttons.
7106         
7107 2006-11-14  Alexander Olk  <alex.olk@googlemail.com>
7108
7109         * TreeView.cs: De-uglify TreeView checkbox checkmarks.
7110           (Fixes bug #79927)
7111
7112 2006-11-14  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7113
7114         * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that 
7115         the window gets to paint its borders even if the window is
7116         getting smaller.
7117         
7118         * Form.cs: on a WM_NCPAINT invalidate the entire menu, 
7119         otherwise the old control buttons would still be painted 
7120         if the window gets bigger.
7121         
7122         * PaintEventArgs.cs: add an internal method so that the clip 
7123         rectangle can be changed.
7124         
7125 2006-11-13  Chris Toshok  <toshok@ximian.com>
7126
7127         [ fixes bug #79745 ]
7128         
7129         * NotifyIcon.cs: lots of cleanup.
7130
7131         * X11Structs.cs: add an enum for XEMBED messages.
7132
7133         * XplatUIX11.cs: reindent one of the giant switch statements, it
7134         was taking up an additional tab stop, and this file is already way
7135         too wide for my laptop's screen.
7136
7137         Also, add handling for the XEmbed EMBEDDED_NOTIFY message.  When
7138         we get it, resize the hwnd to the WMNormalHints max_width/height.
7139
7140 2006-11-13  Jackson Harper  <jackson@ximian.com>
7141
7142         * TextBoxBase.cs: Compute the value changes for the mouse wheel
7143         teh simple way.
7144
7145 2006-11-13  Chris Toshok  <toshok@ximian.com>
7146
7147         * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
7148         #79898.  force a reference to the Region to stick around so the
7149         unmanaged object isn't collected (rendering our handle in the MSG
7150         stale).
7151
7152 2006-11-13  Chris Toshok  <toshok@ximian.com>
7153
7154         * XplatUIX11.cs: fix #79917 for window managers which support
7155
7156         using XStoreName on the raw utf8, and we need to convert to
7157         COMPOUND_TEXT if it's non-latin1.
7158
7159 2006-11-13  Chris Toshok  <toshok@ximian.com>
7160
7161         * Form.cs (set_DialogResult): we need to set closing to false if
7162         we're setting our result to None.  fixes bug #79908.
7163
7164 2006-11-13  Jackson Harper  <jackson@ximian.com>
7165
7166         * TextControl.cs: When formatting text, compute the adjusted tag
7167         lengths correctly, using FindTag for the end tag instead of trying
7168         to figure it out outselves.
7169         * TreeNode.cs: Use ActualItemHeight, which is the actual height of
7170         the item, ItemHeight doesn't work, because trees with large
7171         imagelists use those for their height
7172         * TreeView.cs: ActualItemHeight factors in the image height
7173         - compute left edge of checkboxes correctly
7174         - when expanding/collapsing move the bottom down one pixel, so we
7175         aren't moving part of the node
7176
7177 2006-11-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7178
7179         * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
7180         stack in PaintEventStart so that it won't get disposed by the gc
7181         before reaching PaintEventEnd.
7182
7183 2006-11-13  Jackson Harper  <jackson@ximian.com>
7184
7185         * TextBoxBase.cs: Don't select the word if we are on a line with
7186         no text.
7187         - We don't need to position the caret on mouse up, since the mouse
7188         move handler should be doing this
7189         - When double clicking a blank line, the caret is advanced to the
7190         next line.
7191
7192 2006-11-13  Gert Driesen  <drieseng@users.sourceforge.net>
7193
7194         * TreeNodeCollection.cs: Avoid duplicating indexer code.
7195
7196 2006-11-12  Gert Driesen  <drieseng@users.sourceforge.net>
7197
7198         * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
7199         Fixes part of bug #79910.
7200
7201 2006-11-11  Alexander Olk  <alex.olk@googlemail.com>
7202
7203         * ColorDialog.cs: Fix a NRE when adding a color to custom colors
7204           (bug #79903). Some minor string updates to match ms.
7205
7206 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
7207
7208         * FileDialog.cs: Don't add an extension if the filename
7209           already ends with that extension.
7210
7211 2006-11-10  Jackson Harper  <jackson@ximian.com>
7212
7213         * TreeView.cs: Use the currently highlighted node for the
7214         BeforeSelect event.
7215         * TextBoxBase.cs: There is no need to expand selection on
7216         MouseMove.
7217         - CanUndo means 'is there any undo operations', not 'is undo
7218         allowed on this textcontrol. Fixed ClearUndo unit test.
7219
7220 2006-11-10  Andreia Gaita  <shana.ufie@gmail.com>
7221
7222         * Button.cs: only perform click when button is Selectable (so as 
7223         not to activate default buttons when they're disabled)
7224         
7225         * Control.cs: Rewrite of the SelectNextControl and related 
7226         methods. HandleClick now selects next control if the current one
7227         is being disabled.
7228         
7229         * Form.cs: OnActivated selects next active control only if Load 
7230         has already occurred. If Load hasn't run, there's no point in 
7231         selecting here, Load might change the state of controls.
7232         
7233         * FocusTest.cs: Tests marked as working again for these fixes
7234
7235 2006-11-10  Chris Toshok  <toshok@ximian.com>
7236
7237         * XplatUIX11.cs: a couple of fixes.
7238
7239         - use XInternAtoms with almost all the atoms we need to register,
7240         instead of many, many calls to XInternAtom.  should help a bit on
7241         startup time, at the expense of making the code look a little
7242         worse.
7243
7244         - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
7245         isn't reparented (which seems to be a clue that we're running fon
7246         compiz) and they have an Owner form.  This fixes the tool windows
7247         in paint.net when running under compiz.
7248
7249         - when setting the opacity of a window, support both the case
7250         where the window has been reparented and also when it hasn't been.
7251         Since compiz/beryl doesn't seem to reparent windows, and these are
7252         the only window managers which support translucency, I'm not sure
7253         why we need the hwnd.reparented case at all.. but leave it in.
7254         now we get translucent windows in paint.net under compiz/beryl.
7255
7256 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
7257
7258         * FileDialog.cs: Always return the value for FilterIndex that
7259           was set. Internally convert it to values that make sense.
7260
7261 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
7262         
7263         * ThemeWin32Classic.cs: Fix drowp down arrow borders.
7264
7265 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
7266
7267         * Toolbar.cs: Change default value of DropDownArrows to true, the 
7268         signature still using false to make it compatible with MS but the 
7269         initial value is true. Fixes #79855.
7270
7271 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
7272
7273         * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
7274           only available on Linux.
7275
7276 2006-11-09  Everaldo Canuto  <everaldo@simios.org>
7277
7278         * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
7279         reduce number of calls to redraw method during toolbar creation.
7280
7281 2006-11-09  Mike Kestner  <mkestner@novell.com>
7282
7283         * ListView.cs : raise SelectedIndexChanged when an item is selected
7284         programmatically via the Item.Selected property.  Gert's nice 
7285         ListViewSelectedIndexChanged test fixture now runs clean.
7286
7287 2006-11-09  Mike Kestner  <mkestner@novell.com>
7288
7289         * ListView.cs : raise SelectedIndexChanged when a selected item is
7290         removed from the item collection using Remove or RemoveAt.
7291
7292 2006-11-09  Mike Kestner  <mkestner@novell.com>
7293
7294         * ListView.cs : raise SelectedIndexChanged once per selected item
7295         for compat with MS.  Fixes #79849+.
7296
7297 2006-11-09  Chris Toshok  <toshok@ximian.com>
7298
7299         * TabControl.cs: initialize row_count to 0, and set it to 1 when
7300         we need to (if we have any tab pages).  Fixes unit test.
7301
7302 2006-11-09  Chris Toshok  <toshok@ximian.com>
7303
7304         * Label.cs (CalcPreferredWidth): if Text == "", our preferred
7305         width is 0, not 3.  Fixes a unit test.
7306
7307 2006-11-09  Mike Kestner  <mkestner@novell.com>
7308
7309         * ListView.cs : use Implicit scrollbars so that focus isn't 
7310         stolen from the listview when they are clicked. Fixes #79850.
7311
7312 2006-11-09  Chris Toshok  <toshok@ximian.com>
7313
7314         * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
7315         have a root item.  Fixes #79879.
7316
7317 2006-11-09  Alexander Olk  <alex.olk@googlemail.com>
7318
7319         * FileDialog.cs:
7320           - Fix ToString ()
7321           - An ArgumentException is now thrown if a wrong filter
7322             is applied (matches ms). The previous filter doesn't change
7323             anymore if an exception is thrown.
7324           - Changing the FileName property also affects FileNames
7325         * ColorDialog.cs: The length of the CustomColors array is always
7326           16. It doesn't matter if we use a smaller array or null to update
7327           or change the custom colors property.
7328         * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
7329           for RootFolder if we get a undefined value.
7330
7331 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7332
7333         * StatusBarPanel.cs: 
7334         - Width is set to MinWidth if Width is smaller than
7335         MinWidth. Fixes #79842.
7336         - MinWidth now always overrides Width (MSDN says MinWidth
7337         is set to Width when AutoSize = None, but they do not 
7338         behave like that).
7339         - Style has now the the correct default value.
7340         
7341 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7342  
7343         * TrackBar.cs: 
7344         - The control is completely invalidated on 
7345         Got/LostFocus to draw the focus rectangle correctly.
7346         - When AutoSize then height is always 45 (width for 
7347         vertical controls).
7348         
7349         * ThemeWin32Classic.cs: The TrackBar thumb is now centered
7350         on the mouse when moved and it doesn't move when grabbed
7351         until the mouse moves as well. Also fixed some wrong 
7352         calculations when clicking on the thumb (control thought
7353         click was outside of thumb and didn't grab it).
7354         Fixes some of the issues in #79718.
7355
7356 2006-11-08  Everaldo Canuto  <everaldo@simios.org>
7357
7358         * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
7359
7360 2006-11-08  Chris Toshok  <toshok@ximian.com>
7361
7362         * PropertyGridView.cs: only call ToggleValue if the item is not
7363         readonly.
7364
7365 2006-11-08  Jackson Harper  <jackson@ximian.com>
7366
7367         * TextBoxBase.cs: The RichTextBox and textbox have very different
7368         word selection methods.  Implement the textbox's simple word
7369         selection here, and let the RichTextBox override and provide it's
7370         own.
7371         - Don't do extra selection on mouseup
7372         * RichTextBox.cs: Use the documents word selection algorithm, I
7373         think ideally, this function will be pulled into the
7374         RichTextBox.cs code someday.
7375
7376 2006-11-08  Chris Toshok  <toshok@ximian.com>
7377
7378         * RootGridEntry.cs: new class to represent GridItemType.Root.
7379
7380         * CategoryGridEntry.cs: reformat, and add boilerplate.
7381         
7382         * GridEntry.cs: remove the UIParent stuff - turns out .Parent
7383         returns the UI parent anyway, and we need special handling to
7384         implement the GetTarget method in the face of it.  Also, implement
7385         Select().
7386
7387         * PropertyGrid.cs, PropertyGridView.cs: a number of fixes.  create
7388         a root grid item, and use that instead of PropertyGrid.grid_items.
7389         Also, make use of TypeConverters (and add limitted support for
7390         ICustomTypeDescriptors) when initially populating the grid.
7391         Arrays now show up more or less properly.
7392
7393 2006-11-08  Chris Toshok  <toshok@ximian.com>
7394
7395         * Application.cs: set the modal dialog to non modal after we close
7396         it.  Fixes bug #79866.
7397
7398 2006-11-08  Jackson Harper  <jackson@ximian.com>
7399
7400         * TextControl.cs: When combining lines carry over the line end
7401         style from the end line.
7402         - Invalidate the selected area when setting it, if it is visible.
7403         * TextBoxBase.cs: Only rich text box can do full line selects.
7404         - Make sure to set the cursor position when there is a click,
7405         otherwise two clicks in separate areas could cause a large chunk
7406         to be selected.
7407
7408 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
7409
7410         * Toolbar.cs: Release flat button borders when Toolbar lost focus. 
7411         Fixes #79863.
7412
7413 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
7414
7415         * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
7416         time. Remove tooltips when ToolButton click events.  Fixes #79856.
7417
7418 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
7419
7420         * MenuAPI.cs: Ignore right click for menu actions and fixes
7421         menu border when clicked.  Fixes #79846.
7422
7423 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
7424
7425         * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
7426         MouseState after create wParam for message, this fixes mouse button 
7427         equal none in mouse up events.
7428         
7429 2006-11-07  Andreia Gaita  <shana.ufie@gmail.com>
7430
7431         * Control.cs : Focus() now calls Select to set the Container's
7432         Active Control and to give it focus. To avoid infinite recursion
7433         (because ActiveControl also calls Focus at one point), a check 
7434         is made in Focus with the help of a new internal variable
7435         is_focusing.
7436
7437 2006-11-07  Mike Kestner  <mkestner@novell.com>
7438
7439         * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
7440         if there's a selection.  Fixes #79849.
7441
7442 2006-11-07  Gert Driesen  <drieseng@users.sourceforge.net>
7443
7444         * PropertyGrid.cs: Avoid fixed height of help description label.
7445         Fixes part of bug #79829.
7446
7447 2006-11-07  Chris Toshok  <toshok@ximian.com>
7448
7449         * XplatUIX11.cs: fix #79790 again, by using the
7450         _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
7451
7452 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
7453
7454         * ToolBar.cs: Fix left click checking.
7455
7456 2006-11-07  Chris Toshok  <toshok@ximian.com>
7457
7458         * ProgressBar.cs: fix a typo in ToString().  fixes a unit test.
7459
7460 2006-11-07  Chris Toshok  <toshok@ximian.com>
7461
7462         * RelatedPropertyManager.cs: set property_name in our ctor.  fixes
7463         PropertyManager unit tests.
7464
7465         * PropertyManager.cs: make property_name internal.
7466
7467 2006-11-07  Chris Toshok  <toshok@ximian.com>
7468
7469         * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
7470         pass a unit test.  Also, don't set image_index to anything in
7471         response to setting the ImageList property.
7472
7473 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
7474
7475         * ToolBar.cs: Ignore click events when mouse button is not a
7476         left button, only accepts other button for dropdown menus.  
7477         Fixes #79854.
7478
7479 2006-11-07  Chris Toshok  <toshok@ximian.com>
7480
7481         * DataGrid.cs: make the back and parent row buttons a little less
7482         ugly.
7483
7484 2006-11-07  Jackson Harper  <jackson@ximian.com>
7485
7486         * TextBoxBase.cs: When converting to Text don't put line breaks in
7487         for soft line breaks.
7488         * TextControl.cs: There is an initial "fake" line in the document,
7489         this is now a soft break line, so that an extra line feed doesn't
7490         get added to the end of documents.
7491
7492 2006-11-07  Chris Toshok  <toshok@ximian.com>
7493
7494         [ fix bug #79778 ]
7495         
7496         * CurrencyManager.cs: if the list is readonly, don't bother
7497         checking if IBindingList.AllowNew is true.
7498
7499         * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
7500         for non-DataRowView datasources..  or rather, make it not crash.
7501         (DataGridPaintRelationRow): make sure we limit the row painting to
7502         the area not covered by the row header, and make our cell width at
7503         least large enough to cover the relation area.  This allows grids
7504         that have relations but no rows to render correctly.
7505         (DataGridPaintRowContents): same type of changes here.
7506         (SetDataSource): move back to always calling
7507         CalcAreasAndInvalidate.  this fixes a crash/drawing problem when
7508         navigating back through relations.
7509         (HitTest): handle the case where we have no cells but have
7510         relations.  Right now we generate a hit in cell 0 of whatever the
7511         row is, not sure if this is strictly correct, but it works for our
7512         purposes.
7513         
7514         * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
7515         bother doing anything.
7516
7517 2006-11-07  Jonathan Pobst  <monkey@jpobst.com>
7518
7519         * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
7520         early version of StatusStrip.  Not responsible for eaten
7521         application or firstborn children.
7522
7523 2006-11-06  Chris Toshok  <toshok@ximian.com>
7524
7525         * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
7526         call GetTabRect with a -1 index.  Fixes #79847.
7527
7528 2006-11-06  Jackson Harper  <jackson@ximian.com>
7529
7530         * TreeNodeCollection.cs: Update scrollbars after clearing.
7531
7532 2006-11-06  Chris Toshok  <toshok@ximian.com>
7533
7534         * NumericUpDown.cs: fix the ToString method for some unit test
7535         love.
7536
7537 2006-11-06  Chris Toshok  <toshok@ximian.com>
7538
7539         * PropertyGrid.cs:
7540         - set the initial SelectedGridItem if we can.
7541
7542         - Exclude non-mergable properties only if we're merging > 1
7543         object.  Merging 1 object isn't really merging, obviously.
7544
7545         - Handle PropertySort.NoSort just like Alphabetical, which is
7546         wrong of course, but at least gets things on the screen.
7547         
7548         * PropertyGridView.cs:
7549         - Add method "FindFirstItem" which finds the first property grid
7550         item, so we can select it by default.
7551
7552         - make use of GridEntry.CanResetValue.
7553
7554         - Don't call RedrawBelowItemOnExpansion here anymore, the
7555         individual GridEntry's will do that.
7556
7557         - Remove the ITypeDescriptorContextImpl internal class.
7558         
7559         * GridEntry.cs:
7560         - this class needs to implement ITypeDescriptorContext, as it's
7561         what MS's PropertyDescriptorGridEntry does, which means we can
7562         remove the ITypeDescriptorContextImpl internal class from
7563         PropertyGrid.cs.  This fixes the crashing portion of bug #79829.
7564
7565         - keep a reference to our PropertyGridView, and move the call to
7566         RedrawBelowItemOnExpansion here from PGV.  This means
7567         programmaticly setting Expanded actually does something visible.
7568
7569         - add a CanResetValue() function which takes into account our
7570         possibly multiple "selected_objects" in the merged case.  Shifting
7571         PropertyGridView to use this method fixes another unreported
7572         crasher found running the test for #79829.
7573
7574         - when Top or Bounds is updated, make sure the PropertyGridTextBox
7575         is updated to reflect this.
7576
7577         * CategoryGridEntry.cs: the ctor takes the PGV now.
7578         
7579 2006-11-06  Jackson Harper  <jackson@ximian.com>
7580
7581         * TextControl.cs: These are 1 based.
7582         * TextBoxBase.cs: When setting the selected text, don't change the
7583         selected text tags, this is done by ReplaceText, just position the
7584         cursor at the end of the new text.
7585
7586 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
7587
7588         * ListView.cs: Allow label edit only when, when LabelEdit is
7589           set to true.
7590
7591 2006-11-06  Jackson Harper  <jackson@ximian.com>
7592
7593         * TextControl.cs: If a suitable wrapping position isn't found,
7594         just wrap right in the middle of a word.
7595
7596 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
7597
7598         * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
7599           bug #79820.
7600
7601 2006-11-06  Jackson Harper  <jackson@ximian.com>
7602
7603         * TreeView.cs: Can't use the VisibleCount property when setting
7604         scrollbar heights, because this doesn't take into account whether
7605         or not the horz scrollbar just came visible.
7606
7607 2006-11-05  Everaldo Canuto  <everaldo@simios.org>
7608
7609         * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
7610         activated.  Fixes #79369, #79832.
7611
7612 2006-11-05  Alexander Olk  <alex.olk@googlemail.com>
7613
7614         * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
7615           had to remove support for links that point to a directory. FileInfo
7616           returns no usefull information (means, the directory they point to)
7617           for such links. Replaced some empty string ("") with String.Empty.
7618
7619 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
7620
7621         * TreeNodeCollection.cs: To match MS, in 1.0 profile throw 
7622         NullReferenceException when attempting to remove node that is not in
7623         collection. Throw NullReferenceException when null is passed to 
7624         Remove. Allow first element of the collection to be removed. Fixes
7625         bug #79831.  In GetEnumerator ().Current return null if positioned 
7626         before the first element of the collection. In GetEnumerator ().Reset,
7627         position before first element of the collection.
7628
7629 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
7630
7631         * PropertyGrid.cs: To match MS, remove default title and description
7632         for panel. Fixed tooltips for Categorized and Alphabetic toolbar
7633         buttons.
7634
7635 2006-11-04  Chris Toshok  <toshok@ximian.com>
7636
7637         * Theme.cs: add a Clamp method, just for kicks.
7638
7639         * ThemeWin32Classic.cs: clamp all color components to [0..255].
7640
7641 2006-11-04  Chris Toshok  <toshok@ximian.com>
7642
7643         * Form.cs: if the form isn't visible, Close() does nothing.
7644
7645 2006-11-03  Chris Toshok  <toshok@ximian.com>
7646
7647         * Form.cs (Close): if the form is modal, don't Dispose of it, only
7648         Hide it.
7649         (WndProc): don't Dispose after handling the WM_CLOSE message.
7650
7651         * Application.cs (RunLoop): toplevels is a list of Forms, so treat
7652         them as such, instead of using casts from Control to Form.  Also,
7653         don't Dispose of the modal dialog when we fall out of the loop -
7654         Close() it instead.
7655
7656         fixes bug #79813.
7657
7658 2006-11-03  Chris Toshok  <toshok@ximian.com>
7659
7660         * Control.cs (Dispose): only go through the dispose thing if we're
7661         @disposing, and we haven't already been disposed.  Fixes bug
7662         #79814.
7663
7664         * Form.cs: no reason to call "base.Dispose()" here instead of
7665         "Dispose()".
7666
7667 2006-11-03  Mike Kestner  <mkestner@novell.com>
7668
7669         * ComboBox.cs : use ToString instead of casts in AddItem for
7670         sorting functionality.  Fixes #79812.
7671
7672 2006-11-03  Chris Toshok  <toshok@ximian.com>
7673
7674         * Application.cs: pave the way for actually using the thread
7675         exception dialog.  it's ifdefed out at the moment.
7676
7677 2006-11-03  Chris Toshok  <toshok@ximian.com>
7678
7679         * ThreadExceptionDialog.cs: until we get a better layout, actually
7680         hide the details textbox and label when we shouldn't see them.
7681
7682 2006-11-03  Jackson Harper  <jackson@ximian.com>
7683
7684         * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
7685         multiline textboxes anymore.  This method also determines the
7686         width/height of a textboxes canvas area.
7687         - Sorta a revert of the last patch.  For multiline just position
7688         the controls, then bail.  This way the scrollbar width won't be
7689         altered.
7690
7691 2006-11-03  Everaldo Canuto  <everaldo@simios.org>
7692
7693         * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
7694         it dont need.  Fixes #79537.
7695
7696 2006-11-02  Jackson Harper  <jackson@ximian.com>
7697
7698         * X11Dnd.cs: We always allow copy, since XDND implies Copy.  Also
7699         send the status after firing the DndOver event.
7700
7701 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7702
7703         * TrackBar.cs: Now orientation only switches height / width if
7704         the control's handle is created (Win32 does it like this). Also 
7705         fixed a typo in ToString() for a test to pass, changed the 
7706         exception thrown in set_LargeChange and set_SmallChange to 
7707         match Win32 behaviour, and added TrackBar tests to the unit 
7708         tests.
7709
7710 2006-11-02  Chris Toshok  <toshok@ximian.com>
7711
7712         * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
7713         not _NET_WM_STATE_NO_TASKBAR.
7714
7715 2006-11-02  Jackson Harper  <jackson@ximian.com>
7716
7717         * TextControl.cs: Increment count by one, since in the update view
7718         count - 1 is used.
7719
7720 2006-11-02  Jackson Harper  <jackson@ximian.com>
7721
7722         * TextBoxBase.cs: Use client rectangle not bounds for checking if
7723         the mouse is in the client rectangle (duh).
7724
7725 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7726         
7727         * TrackBar.cs: Fixed trackbar jumping around when clicking
7728         on it - the trackbar was not detecting correctly at which
7729         side of the thumb the click was done. (fixes #79718)
7730
7731 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
7732
7733         * ListBox.cs: scroll visible area when change SelectedIndex to
7734         a non visible area.  Fixes #79481.
7735
7736 2006-11-01  Jackson Harper  <jackson@ximian.com>
7737
7738         * TextControl.cs: When replacing the selection move the selection
7739         start/end/anchor to the end of the new text.
7740
7741 2006-11-01  Jackson Harper  <jackson@ximian.com>
7742
7743         * XplatUIWin32.cs: When setting the parent change the controls
7744         visibility to it's visibility flag, not to it's old parents
7745         visibility (.Visible walks the parent chain).
7746
7747 2006-11-01  Chris Toshok  <toshok@ximian.com>
7748
7749         * XplatUIX11.cs: revert the #79790 fix, as the simple.
7750         XSetTransientForHint fix breaks paint .net's tool windows.  more
7751         work needed for that one.
7752
7753 2006-11-01  Chris Toshok  <toshok@ximian.com>
7754
7755         * ScrollBar.cs: throw ArgumentException instead of Exception in
7756         LargeChange/SmallChange setters.  fixes unit tests.
7757
7758 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
7759
7760         * ContainerControl.cs: reverted rev.67183 (which was itself
7761         a reversion of rev.66853... eh).
7762         
7763         * Control.cs: Fixes Reflector hang by changing Focus() call
7764         to what it was before rev.66643 (calling Select() here sets 
7765         ActiveControl, which in some situations calls back Focus and 
7766         eventually does a stack overflow). Temp fix.    
7767         Changes to GetNextControl() to not look for children to select when
7768         parent cannot be selectable (so it looks for siblings instead)  
7769         
7770 2006-10-31  Mike Kestner  <mkestner@novell.com>
7771
7772         * CheckedListBox.cs : off by one error in returned index from
7773         ObjectCollection.Add.  Fixes #79758.
7774
7775 2006-10-31  Chris Toshok  <toshok@ximian.com>
7776
7777         * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
7778         calls for the textbox/spinner, to keep from recursing to the point
7779         where we crash.  Fixes #79760.
7780
7781 2006-10-31  Chris Toshok  <toshok@ximian.com>
7782
7783         * ListControl.cs (set_SelectedValue): don't throw exceptions on
7784         null/"" value, just return.  matches ms's behavior and fixes some
7785         failing tests.
7786
7787 2006-10-31  Chris Toshok  <toshok@ximian.com>
7788
7789         * Control.cs (set_Capture): make a logic a little easier to
7790         follow.
7791
7792         * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
7793         if it's being destroyed.  A necessary fix surely, but a bandaid
7794         also, to fix the stuck capture problem in bug #78413.
7795
7796 2006-10-31  Chris Toshok  <toshok@ximian.com>
7797
7798         * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
7799         convention of clearing hwnd.ClientRect when we set the
7800         width/height (so it'll be recalculated by Hwnd).
7801
7802 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
7803
7804         * ContainerControl.cs: reversed Contains check from
7805         ActiveControl due to hanging problems. This fix
7806         partly regresses #79667 (button does not have
7807         initial focus), so this might be a symptom for 
7808         a larger parenting problem (set_ActiveControl
7809         is being called but the child control does
7810         not have the parent set yet?)   
7811         
7812 2006-10-31  Mike Kestner  <mkestner@novell.com>
7813
7814         * MenuAPI.cs : fix keynav when menu is click activated.
7815
7816 2006-10-31  Jonathan Pobst  <monkey@jpobst.com>
7817
7818         * ToolStrip*: Version 0.2.
7819
7820         * MenuStrip.cs: Version 0.1.
7821
7822         * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
7823
7824 2006-10-30  Chris Toshok  <toshok@ximian.com>
7825
7826         [ fixes the oversized notify icon issue in bug #79745 ]
7827         
7828         * NotifyIcon.cs: scale the icon down to the size we're given by
7829         the XplatUI layer (this would be faster if we did it once instead
7830         of whenever we paint..)  Also, remove the WM_NCPAINT handling,
7831         since it's never invoked.
7832
7833         * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
7834         pixels high by default, so let's hardcode our systray icon to that
7835         size.  The SYSTEM_TRAY protocol should really have a way for
7836         client apps to query for the correct icon size.. but oh well.  A
7837         couple of patches to deal with the screwy client_window ==
7838         whole_window notifyicon stuff (we don't want to PerformNCCalc, for
7839         instance, and also make sure we don't XSelectInput twice).
7840
7841 2006-10-30  Chris Toshok  <toshok@ximian.com>
7842
7843         * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
7844         recreating forms.  Control recreation is the bane of my existence.
7845         Fix it in a way that keeps everyone happy.
7846
7847 2006-10-30  Chris Toshok  <toshok@ximian.com>
7848
7849         * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
7850         just non-CHILD ones.  otherwise sometimes scrollbars end up with
7851         client_windows not being resized to the proper size (ReportBuilder
7852         shows this extremely well).
7853
7854 2006-10-30  Chris Toshok  <toshok@ximian.com>
7855
7856         * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
7857         for non-WS_EX_APPWINDOW windows.  This is what keeps them from
7858         showing up in the gnome taskbar.  Fixes bug #79790.
7859
7860 2006-10-30  Chris Toshok  <toshok@ximian.com>
7861
7862         * ApplicationContext.cs: guard against a NRE.
7863
7864         * Application.cs: null out the old MainForm for the context, so we
7865         don't try to use it again once it's disposed.  Fixes bug #79783.
7866
7867 2006-10-30  Chris Toshok  <toshok@ximian.com>
7868
7869         * DataGrid.cs (set_DataSource, set_DataMember): if we have a
7870         BindingContext, set the data source directly, otherwise do the
7871         lazy approach - the actual ListManager will be created when we get
7872         a BindingContext. Fixes bug #79700.
7873
7874 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
7875
7876         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
7877           XplatUIX11.cs: Remove old 2 parameter SetVisible.
7878
7879         * Control.cs: Use the new 3 parameter SetVisible with activate = true.
7880
7881 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
7882
7883         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
7884         of SetVisible that allows a window to be shown, but not activated.
7885         This is needed on Windows for MenuStrip, and can probably be used
7886         with MainMenu and ComboBox to fix the focus stealing issues on
7887         Windows.
7888
7889         * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
7890
7891 2006-10-30  Alexander Olk  <alex.olk@googlemail.com>
7892
7893         * PictureBox.cs: Fix the output of the ToString method.
7894
7895 2006-10-29  Chris Toshok  <toshok@ximian.com>
7896
7897         * Control.cs (get_TopLevelControl): fix bug #79781.
7898
7899 2006-10-29  Chris Toshok  <toshok@ximian.com>
7900
7901         * ListControl.cs (set_DataSource): throw Exception here, not
7902         ArgumentException, to match MS behavior.
7903
7904 2006-10-29  Chris Toshok  <toshok@ximian.com>
7905
7906         * Form.cs: remove the try-catch's around calls to GetWindowState.
7907         We can just check the return value.
7908
7909         * XplatUIX11.cs: don't throw exceptions from GetWindowState.
7910         Instead return -1.
7911
7912         * XplatUI.cs: Add note about additional return value for
7913         GetWindowState.
7914
7915 2006-10-29  Chris Toshok  <toshok@ximian.com>
7916
7917         * Control.cs (CreateHandle): when we create our handle, we also
7918         create the handles of our child controls.  Fixes one of the
7919         Control unit tests (CH11).
7920
7921 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
7922
7923         * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
7924
7925 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
7926
7927         * ThemeClearlooks.cs: A little speedup.
7928
7929 2006-10-27  Chris Toshok  <toshok@ximian.com>
7930
7931         * Control.cs: implement Control.FromChildHandle in a way that
7932         matches the docs (and fixes the failed test.)
7933
7934 2006-10-27  Chris Toshok  <toshok@ximian.com>
7935
7936         * DataGridTableStyle.cs: reproduce buggy MS behavior (with
7937         comments).
7938
7939         * DataGrid.cs: implement ResetForeColor such that the tests
7940         succeed.
7941         
7942 2006-10-27  Chris Toshok  <toshok@ximian.com>
7943
7944         * ToolBarButton.cs: setting text/tooltiptext to null results in it
7945         being set to "".  Fixes bug #79759.
7946
7947 2006-10-27  Jackson Harper  <jackson@ximian.com>
7948
7949         * TextControl.cs: We need to clear the entire selection area when
7950         setting the start, otherwise multiline selections are still
7951         visible.
7952
7953 2006-10-26  Chris Toshok  <toshok@ximian.com>
7954
7955         * PropertyGridView.cs: 
7956
7957         - ifdef all the code specific to the double
7958         buffer case, and provide some alternatives in the non-doublebuffer
7959         code, which makes heavy use of XplatUI.ScrollWindow to move things
7960         around without having to invalidate (and cause flicker).  There
7961         are still some drawing problems in the non-doublebuffered case, so
7962         DOUBLEBUFFER is defined by default.
7963
7964         - Fix the way dropdowns are handled.  now we explicitly watch for
7965         the events which might cause the dropdown to close, and break out
7966         of the nested event loop there.  This gets rid of all Capture
7967         code, at the expense of the Msg special casing.  Seems to work,
7968         though, and fixes bug #79743.
7969
7970 2006-10-27  Rolf Bjarne Kvinge <RKvinge@novell.com>
7971         * Control.cs: SetIsRecreating now recreates implicitly added
7972         child controls as well. Finally fixes #79629. The flag passed to 
7973         SetIsRecreating has also been removed since it wasn't used.
7974         
7975 2006-10-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7976
7977         * PageSetupDialog.cs: Clean some code, fix some bits, 
7978         add some checks, and add a printer sub-dialog.
7979
7980 2006-10-26  Chris Toshok  <toshok@ximian.com>
7981
7982         * PropertyGrid.cs: make set_SelectedObject call
7983         set_SelectedObjects, and move the duplicate logic to the
7984         SelectedObjects setter.  Also, raise SelectedObjectsChanged.
7985
7986         * PropertyGridView.cs: hide the textbox when we get a
7987         SelectedObjectsChanged event.
7988
7989         Fixes bug #79748.
7990
7991 2006-10-26  Chris Toshok  <toshok@ximian.com>
7992
7993         * PropertyGridView.cs: deal with the type converter not supporting
7994         GetStandardValues() or GetStandardValues() returning null, which
7995         is does in the default case.  Fixes #79742.
7996
7997 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
7998
7999         * CheckedListBox.cs: nunit no longer crashes when selecting 
8000         Project/Edit menu option
8001         
8002 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
8003
8004         * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
8005         is no menu selected. fixes #79739
8006
8007 2006-10-25  Chris Toshok  <toshok@ximian.com>
8008
8009         * PropertyGridView.cs: factor out the splitter invalidation code
8010         into the SplitterPercent setter, and for kicks implement the
8011         Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
8012         amount in either direction.
8013
8014 2006-10-25  Chris Toshok  <toshok@ximian.com>
8015
8016         * PropertyGridView.cs: do some cleanup of the brush used to draw
8017         text - read only fields should be grayed out.  not sure how to do
8018         this with the textbox, though.  but the textbox's should also be
8019         readonly now at least.  Also, hide/show the textbox when resizing
8020         the control.
8021         
8022         * CursorConverter.cs: use System.Reflection when getting the
8023         properties of Cursors, as TypeDescriptor.GetProperties isn't
8024         returning static properties.
8025
8026 2006-10-25  Chris Toshok  <toshok@ximian.com>
8027
8028         * PropertyGridView.cs: factor out the up/down handling, and reuse
8029         it for page up/down.  also add End/Home support.
8030
8031 2006-10-25  Chris Toshok  <toshok@ximian.com>
8032
8033         * PropertyGridView.cs:
8034
8035         - ensure the selected grid item is visible in the scrolled area,
8036         fixes bug #79572.
8037
8038         - fix Keys.Down handling when you're on the last item in the
8039         propertygrid.
8040
8041 2006-10-25  Mike Kestner  <mkestner@novell.com>
8042
8043         * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup 
8044         clicks too.  Fixes #79725.
8045
8046 2006-10-24  Chris Toshok  <toshok@ximian.com>
8047
8048         * PropertyGrid.cs: use property.Converter instead of
8049         TypeDescriptor.GetConverter(property.PropertyType), so we catch
8050         TypeConverters declared on the property as well as on the
8051         PropertyType.  Fixes bug #79678.
8052
8053 2006-10-24  Alexander Olk  <alex.olk@googlemail.com>
8054
8055         * MimeIcon.cs, Mime.cs:
8056           Fallback to the default platform handler if no shared mime info
8057           stuff exists (fixes #79693).
8058
8059 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
8060         * ContainerControl.cs: Incorrect contains check in ActiveControl 
8061         from previous fix (duh).
8062
8063 2006-10-20  Chris Toshok  <toshok@ximian.com>
8064
8065         * PropertyGridView.cs: the dropdown should be MIN(number of items
8066         in list, 15).  Fixes #79551.
8067
8068 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
8069         Fixes #79384, #79394, #79652, #79667
8070         * Application.cs: 
8071         
8072         - Modal windows are now destroyed in the proper order for windows
8073         
8074         * ContainerControl.cs:
8075         
8076         - ActiveControl setter has more conditions on when to return:
8077                 - if we're reselecting the active control, but it actually
8078                 didn't have focus (window hidden or some such), it runs
8079                 - if the active control being selected doesn't actually 
8080                 exist in the container, it returns
8081         
8082         * Form.cs
8083         
8084         - The ShowDialog now gets the current form as the owner when
8085         invoking without parameters, and correctly activates the owner 
8086         when returning
8087         
8088         * MessageBox.cs
8089         
8090         - MessageBox now catches the Escape key to exit
8091
8092 2006-10-20  Chris Toshok  <toshok@ximian.com>
8093
8094         * PropertyGridView.cs: fix a number of issues (bug #78565, and
8095         most of bug #79676):
8096
8097         - you can navigate around the property grid with the arrow keys.
8098
8099         - the dropdown is sized properly when the pg has a vertical
8100         scrollbar.
8101
8102         - fix the indentation for subentries, and properly select the
8103         entire label rect.
8104
8105         - fix the gray bar's drawing (only draw it to the last element,
8106         not for the height of the control.  Also make sure we draw that
8107         last horizontal grid line.
8108
8109         - use the same mechanism the datagrid uses wrt the editing textbox
8110         when scrolling/resizing/etc.  Namely, we hide it first, do the
8111         operation, then show it again (if it's still visible).
8112         
8113         - aggressively remove a lot of unnecessary refreshes (and also
8114         calls to Invalidate(). call more limited variants, and only redraw
8115         what we need.)
8116         
8117         * PropertyGrid.cs:
8118
8119         - when we're populating the merged collection, fill in the UI
8120         parent with either the passed in item, or the category item we
8121         create.
8122
8123         - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
8124
8125         * GridItem.cs: drop some fully qualified names.
8126         
8127         * GridEntry.cs: add a "UIParent", which is basically the parent
8128         treenode.
8129
8130         * GridItemCollection.cs: add an IndexOf method.
8131
8132 2006-10-20  Mike Kestner  <mkestner@novell.com>
8133
8134         * MainMenu.cs : go back to Draw in OnMenuChanged.  Until we get
8135         a working win32 NC invalidation mechanism, we can't invalidate
8136         menus.  [Fixes #79705]
8137
8138 2006-10-20  Mike Kestner  <mkestner@novell.com>
8139
8140         * ListBox.cs : don't update the VScrollbar if the list is empty,
8141         just hide it.  [Fixes #79692]
8142
8143 2006-10-20  Jackson Harper  <jackson@ximian.com>
8144
8145         * RichTextBox.cs: Handle some special chars better, and don't skip
8146         the entire group when we encounter a special char that we don't
8147         handle correctly.
8148
8149 2006-10-18  Chris Toshok  <toshok@ximian.com>
8150
8151         * PropertyGridView.cs: address a number of issues from bug #79676,
8152         mostly of the cosmetic variety.
8153
8154         - The highlight rectangle for indented items not extends all the
8155         way to the left.
8156
8157         - Indented items aren't indented so much.
8158
8159         - the dropdown is properly sized width-wise if the pg has a
8160         vertical scrollbar.
8161
8162 2006-10-18  Chris Toshok  <toshok@ximian.com>
8163
8164         * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
8165         systray stuff is rather convoluted to begin with.
8166
8167         systray icons are a single window for some reason (that I haven't
8168         figured out yet), and for them, client_window == whole_window.
8169         Given the way the tests are structured elsewhere to determine
8170         which paints are pending (client vs. nc), that situation will
8171         always yield PAINT, not NCPAINT.  So, if we have a pending
8172         nc_expose and no pending expose, remove the hwnd from the paint
8173         queue, and also set nc_expose_pending to false, to keep us from
8174         blocking further expose's adding the hwnd to the paint queue.
8175
8176         phew.  like i said, a rather convoluted change.  Fixes the
8177         notifyicon repaint issues in bug #79645.
8178
8179 2006-10-18  Chris Toshok  <toshok@ximian.com>
8180
8181         * Form.cs: when getting the backcolor of the form, don't get
8182         base.BackColor, as this allows parents to influence the background
8183         color.  This breaks mdi forms.  Instead, if the background_color
8184         is empty, return the default.
8185
8186 2006-10-18  Chris Toshok  <toshok@ximian.com>
8187
8188         * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
8189         to being private instead of internal static.
8190
8191         * Control.cs: remove all the stupid ParentWaitingOnRecreation
8192         crap, it wasn't working for more deeply nested controls anyway,
8193         and we already have the is_recreating flag - use that instead.
8194         Before calling DestroyHandle in RecreateHandle, recurse through
8195         the control tree setting it to true.  this returns the recreate
8196         code to much of its original simplicity, while now guaranteeing we
8197         actually recreate everything we're supposed to.  This change gets
8198         fyireporting actually showing mdi children.
8199
8200 2006-10-17  Chris Toshok  <toshok@ximian.com>
8201
8202         * Form.cs: remove some debug spew, and collapse some duplicate
8203         code at the end of SetClientSizeCore.
8204
8205         * XplatUIX11.cs: 
8206         - add some more debug spew here too wrt Destroy handling.
8207         - don't call hwnd.Dispose in DestroyWindow, it's effectively done
8208         in Control's handling of WM_DESTROY.
8209         - Remove the handling of zombie window DestroyNotifies from the
8210         event loop - we don't need it.  Now the only DestroyNotifies we
8211         actually handle are ones generated by X.
8212         - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
8213         match gtk's (functioning) handling of this. This keep metacity
8214         from leaving droppings in the form of wm borders with no window
8215         contents all over the place.
8216
8217         * Control.cs:
8218         - add a bunch of debug spew wrt control recreation.
8219         - fix a bug where we weren't tracking Visible properly on
8220         recreated hwnds.
8221         - fixed the WM_PAINT double buffer handling to support re-entrant
8222         calls (yes, i know it's gross, but it's happening to us).
8223
8224 2006-10-17  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
8225         * ThemeWin32Classic.cs: changed drawing of selected days
8226         to make them look better.
8227
8228 2006-10-16  Chris Toshok  <toshok@ximian.com>
8229
8230         * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
8231         drawing_stack.  Nuke the ClientDC/NonClientDC properties.
8232
8233         * XplatUIX11.cs: move away from using hwnd.client_dc and
8234         hwnd.non_client_dc and on to a stack of dc's (and in window's
8235         case, PAINTSTRUCT's), so we can deal with nested Paint calls
8236         without puking or not disposing of Graphics objects.
8237
8238         * XplatUIOSX.cs: same.
8239
8240         * XplatUIWin32.cs: same.
8241
8242 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
8243
8244         * FileDialog.cs: Don't call on_directory_changed inside
8245           OnSelectedIndexChanged (it changes the SelectedIndex too).
8246           Instead move it to OnSelectionChangeCommitted.
8247
8248 2006-10-13  Chris Toshok  <toshok@ximian.com>
8249
8250         * XplatUIX11.cs: more Destroy work.  the current code does the
8251         following things, in order:
8252
8253         1. Enumerates all handles of all controls at or below the one
8254         being destroyed, in pre-order.  As it is doing this, it marks the
8255         handles as zombie and clears all references to them.
8256         
8257         2. calls XDestroyWindow on the window passed in.
8258
8259         3. SendMessage's WM_DESTROY to all he handles in the accumulated
8260         list.
8261
8262 2006-10-13  Chris Toshok  <toshok@ximian.com>
8263
8264         * XplatUIX11.cs: set hwnd.zombie to true before calling
8265         SendMessage (WM_DESTROY).  this keeps us from marking the new
8266         window a zombie, and also keeps us from calling sendmessage at
8267         all.
8268
8269 2006-10-13  Jackson Harper  <jackson@ximian.com>
8270
8271         * TextControl.cs: Do not show the caret and selection at the same
8272         time.  Reduces ugliness by 35%.
8273
8274 2006-10-13  Chris Toshok  <toshok@ximian.com>
8275
8276         * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
8277         zombie after we do the recursive call, so we actually do call
8278         SendMessage on the children controls.
8279         (GetMessage): if we find a pending paint event for a zombie hwnd,
8280         remove the hwnd from the paint queue, or else it will always be
8281         there (and we'll effectively loop infinitely)
8282
8283 2006-10-13  Mike Kestner  <mkestner@novell.com>
8284
8285         * MenuItem.cs : add Selected format under keynav too.
8286         Fixes #79528.
8287
8288 2006-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
8289
8290         * PropertyGrid.cs: Fixed some NRE's and small difference between our
8291         implementation and that of MS.
8292
8293 2006-10-13  Chris Toshok  <toshok@ximian.com>
8294
8295         * Control.cs (OnInvalidated) only futz with the invalid_region if
8296         the control is double buffered.  this fixes the apparent hang in
8297         the ListView unit tests.  Someone needs to make the
8298         BeginEndUpdateTest not call OnInvalidated 15004 times, though..
8299
8300 2006-10-13  Chris Toshok  <toshok@ximian.com>
8301
8302         * PropertyGridView.cs:
8303
8304         - do a little refactoring so that only one place calls
8305         dropdown_form.Hide, and that is CloseDropDown.  make everywhere
8306         else call that.  Also make it Refresh, since there are redraw bugs
8307         otherwise (we should take a look at that...)
8308
8309         - do a little more refactoring work to share the body of code
8310         involved with the drop down.  it was duplicated in the code
8311         dealing with the listbox handling and in the code dealing with the
8312         UITypeEditors.
8313
8314         - add a Capture to the dropdown form's control once it's
8315         displayed, and add a MouseDown handler that checks to make sure
8316         the position is inside the control.  If it's not, close the
8317         dropdown.  This fixes #78190.
8318
8319         - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
8320         if the value is different than the initial value.
8321         
8322 2006-10-13  Andreia Gaita  <shana.ufie@gmail.com>
8323
8324         * Control.cs: see #78650
8325         - Fixed GetNextControl for several cases:
8326                 - Changed FindFlatForward to return 
8327                 correct sibling control when more than one
8328                 control has same TabIndex as the currently 
8329                 focused one.
8330                 - Changed FindFlatBackward to loop children
8331                 from last to first and apply same logic as in
8332                 FindFlatForward
8333                 - Changed FindControlForward to search for
8334                 children when control is not a container
8335                 but has children, or search for siblings if
8336                 control is a container...
8337                 - Changed FindControlBackward   to continue
8338                 searching for child controls when hitting 
8339                 Panel-like parents
8340                 
8341         - Fixed Focus method to update ActiveControl
8342         (FocusTest.FocusSetsActive failure)
8343         
8344         * TabControl.cs:
8345         - Focus rectangle now refreshes when gaining
8346         or losing focus
8347         - Removed grab for Tab key on IsInputKey that 
8348         was keeping tab navigation from working (#78650)
8349
8350 2006-10-13  Chris Toshok  <toshok@ximian.com>
8351
8352         * PropertyGridView.cs:
8353         - Rewrite SetPropertyValue to loop over SelectedGridItem's
8354         SelectedObjects.
8355
8356         - Deal with GridItem.Value == null a few places.
8357
8358         * PropertyGrid.cs: 
8359         - replace the PopulateGridItemCollection with a pair of methods
8360         which compute the intersection of all the properties in the
8361         SelectedObjects array.  Fixes #79615.
8362
8363         - Throw ArgumentException from set_SelectedObjects if there's a
8364         null in the array.
8365
8366         - Add GetTarget method which can be used to traverse up the
8367         GridItem.Parent chain.  It depends on the assumption that
8368         selected_objects for different GridEntries are always in the same
8369         order (a safe assumption).  Use this method and loop over all the
8370         selected objects in the entry when calling RemoveValueChanged and
8371         AddValueChanged.
8372         
8373         * GridEntry.cs: Make this handle multiple selected objects.
8374         .Value returns null if not all the selected objects share the same
8375         value.
8376
8377 2006-10-12  Jonathan Pobst  <monkey@jpobst.com>
8378         * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
8379           ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
8380           ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
8381           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
8382           ToolStripTextBox.cs: Add accessibility, fix attributes/API and
8383         add additional functionality.
8384
8385 2006-10-12  Mike Kestner  <mkestner@novell.com>
8386
8387         * ErrorProvider.cs : new ToolTipWindow ctor sig.
8388         * HelpProvider.cs : new ToolTipWindow ctor sig.
8389         * ToolTip.cs : remove ToolTip param from Window sig since it is
8390         not used.
8391         * ToolBar.cs : add tooltip support.  Fixes #79565.
8392
8393 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
8394
8395         * ComboBox.cs: move the events in set_SelectedIndex to 
8396         after the call to HighlightIndex in order to avoid 
8397         possible recursion and subsequent problems with the call
8398         to HighlightIndex and include a range check in 
8399         set_HighlightIndex. Fixes #79588
8400         
8401 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
8402
8403         * MonthCalendar.cs: When FirstDayOfWeek is default set firstday 
8404         to ui thread's settings instead of sunday. 
8405         * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
8406
8407 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
8408
8409         * DateTimePicker.cs
8410         * MonthCalendar.cs
8411         * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
8412         and implement missing functionality (selecting different parts 
8413         of the date and edit them individually with the keyboard).
8414         
8415 2006-10-11  Chris Toshok  <toshok@ximian.com>
8416
8417         * Control.cs (OnInvalidated): fix NRE relating to last change.
8418
8419 2006-10-11  Chris Toshok  <toshok@ximian.com>
8420
8421         * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
8422         atoms in _NET_WM_STATE here if the window is maximized.  We need
8423         to do this because we're *replacing* the existing _NET_WM_STATE
8424         property, so those atoms will be lost otherwise, and any further
8425         call to GetWindowState will return Normal for a window which is
8426         actually maximized.  Fixes #79338.
8427
8428 2006-10-11  Jackson Harper  <jackson@ximian.com>
8429
8430         * TextControl.cs: Special case for setting selection end to
8431         selection start, we basically kill the anchor.
8432         - some todo comments.
8433
8434 2006-10-11  Chris Toshok  <toshok@ximian.com>
8435
8436         * Control.cs: switch to using an "invalid_region" to track which
8437         parts of the image buffer need updating.  This is more code than
8438         the simple fix from r66532.  That version just attempted to always
8439         fill the entire buffer on redraw, which turns out to be
8440         inefficient when invalidating small rectangles.  This version
8441         simply adds the invalid rectangle to the invalid region.  When we
8442         get any WM_PAINT message we see if it can be filled using the
8443         image buffer, and if it can't (if the paint event's clip rectangle
8444         is visible in the invalid region) we first fill the image buffer.
8445         So, the image buffer is still a cache, we just fill it lazily.
8446
8447         * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
8448         need it any longer.
8449
8450 2006-10-11  Chris Toshok  <toshok@ximian.com>
8451
8452         * XplatUIX11.cs (SetWindowPos): we need to update both position as
8453         well as size after calling XMoveResizeWindow.  This keeps us from
8454         ignoring future SetWindowPos calls.  Fixes the disappearing
8455         DateTimePicker in the ToolBarDockExample from bug #72499.
8456
8457 2006-10-11  Chris Toshok  <toshok@ximian.com>
8458
8459         * TextBoxBase.cs: reorder things a bit when it comes to
8460         resizing-causing-recalculation.  we were recalculating the
8461         document when our position was changed, which shouldn't happen.
8462         We only care about size changes.  Clear up some more redundant
8463         recalculation calls while I'm at it.  This makes the toolbar dock
8464         example snappy when you're just dragging toolbars around (since it
8465         causes a relayout whenever you move one.)
8466
8467 2006-10-11  Chris Toshok  <toshok@ximian.com>
8468
8469         * ToolBarButton.cs (get_Rectangle): this only returns
8470         Rectangle.Empty if Visible == false, or Parent == null.
8471         Parent.Visible doesn't matter.
8472
8473 2006-10-10  Chris Toshok  <toshok@ximian.com>
8474
8475         * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
8476         by .net 1.1, so switch to an internal method instead.
8477
8478 2006-10-10  Chris Toshok  <toshok@ximian.com>
8479
8480         * Control.cs (WM_PAINT): when a control is double buffered we draw
8481         initially to the ImageBuffer and then copy from there.  But when a
8482         parent control which has child controls is double buffered, the
8483         initial drawing doesn't encompass the entire ClientRectangle of
8484         the parent control, so we end up with uninitialized bits (this is
8485         easily seen by dragging the top toolbar in
8486         wf-apps/ToolBarDockExample to the right, quickly).  The fix is to
8487         manually set the ClipRectangle of the paint_event (only the one we
8488         use to populate the ImageBuffer) to ClientRectangle.  Fixes more
8489         of the nastiness in bug #72499.
8490
8491         * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
8492         which we use in Control.cs's WM_PAINT handling.
8493
8494 2006-10-10  Jackson Harper  <jackson@ximian.com>
8495
8496         * TextBoxBase.cs: Finish off the autoscrolling stuff.
8497
8498 2006-10-10  Chris Toshok  <toshok@ximian.com>
8499
8500         * Cursor.cs: Apply a slightly different patch to the one suggested
8501         in #79609.
8502
8503 2006-10-10  Jackson Harper  <jackson@ximian.com>
8504
8505         * MenuItem.cs: Make sure to put the mdi child in the hashtable,
8506         not the parent form.
8507         * TextControl.cs: use difference in old line count vs new count to
8508         calculate how many lines were added, this takes into account soft
8509         line breaks properly.
8510
8511 2006-10-10  Chris Toshok  <toshok@ximian.com>
8512
8513         * LinkLabel.cs: don't call MeasureCharacterRanges against a
8514         rectangle located at 0,0 and the size of the text.  Use
8515         ClientRectangle instead.  This fixes rendering of non-left aligned
8516         link labels.
8517
8518 2006-10-10  Jackson Harper  <jackson@ximian.com>
8519
8520         * TextBoxBase.cs: When we set the selection start position the
8521         caret.
8522         * TextControl.cs: Need to update the caret when we decrement it to
8523         zero.
8524         - Make sure that the selection_visible flag gets reset to false if
8525         the selection isn't visible.  Before this you could get it set to
8526         visible by changing the selection start, then changing the end to
8527         equal the start.
8528
8529 2006-10-09  Jackson Harper  <jackson@ximian.com>
8530
8531         * TreeView.cs: Don't update scrollbars when we aren't visible.
8532         * TreeNodeCollection.cs: Only need to update scrollbars if being
8533         added to an expanded visible node or the root node.
8534
8535 2006-10-09  Chris Toshok  <toshok@ximian.com>
8536
8537         * XplatUIX11.cs (SendMessage): fix NRE.
8538
8539 2006-10-09  Jackson Harper  <jackson@ximian.com>
8540
8541         * TextBoxBase.cs: Implement horizontal autoscrolling.
8542         * TextControl.cs: Add a movement types that allows moving forward
8543         and backwards without wrapping.
8544
8545 2006-10-09  Mike Kestner  <mkestner@novell.com>
8546
8547         * ListViewItem.cs : layout changes for wrapped LargeIcon labels
8548         with focus "expansion" of labels.  Fixes #79532 and then some.
8549         * ThemeWin32Classic.cs : add LineLimit to ListView label format
8550         when wrapping.
8551
8552 2006-10-09  Jackson Harper  <jackson@ximian.com>
8553
8554         * TextBoxBase.cs: Set the default max values to MaxValue since
8555         we use the scrollbar for autoscrolling and the default value is
8556         100.  If we don't do this the caret won't keep up with typing
8557         after about 18 characters.
8558         * TextControl.cs: Make sure the selection is offset by the
8559         viewport x.  This fixes selection when using auto scrolling.
8560
8561 2006-10-07  Andreia Gaita <shana.ufie@gmail.com>
8562         
8563         * Form.cs: The active control should be selected after the 
8564         OnLoad so that any child control initialization that affects
8565         the selection is done. Fixes #79406
8566
8567 2006-10-06  Chris Toshok  <toshok@ximian.com>
8568
8569         * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
8570         to have no evil effects.
8571
8572         - Stop selecting StructureNotifyMask on non-toplevel windows.
8573
8574           The only way children should be resized is by using the SWF api,
8575           and we already send WM_WINDOWPOSCHANGED messages in those cases.
8576           Toplevel windows can be interacted with via the window manager,
8577           and so we keep the input mask there.
8578
8579           The other event StructureNotifyMask gives us (that we care
8580           about) is DestroyNotify.  The code is already structured such
8581           that it assumes we won't be getting a DestroyNotify event for
8582           the window we pass to XDestroyWindow (which is what
8583           StructureNotifyMask is supposed to guarantee.)  So, that code
8584           shouldn't be affected by this either.
8585
8586         - Stop selecting VisibilityChangeMask altogether.
8587
8588           We weren't doing anything with the resulting events anyway.
8589         
8590         This vastly reduces the number of X requests and events we see
8591         when resizing/laying out a large ui.
8592
8593 2006-10-06  Chris Toshok  <toshok@ximian.com>
8594
8595         * ScrollableControl.cs (DisplayRectangle): we need to take into
8596         account the DockPadding regardless of whether or not auto_scroll
8597         == true.  rework this slightly to this effect, and fix bug #79606,
8598         and part of #72499 (you can now see the drag handles and drag
8599         toolbars around).
8600
8601 2006-10-06  Gert Driesen  <drieseng@users.souceforge.net>
8602
8603         * ListViewItem.cs: Collections of selected and checked items are now
8604         dynamically rebuilt. Whenever an item is (un)checked or (de)selected
8605         we mark the collection "dirty".
8606         * ListView.cs: Marked collections readonly. Modified UpdateSelection
8607         to only clear SelectedItems when a new item is selected and MultiSelect
8608         is enabled. CheckedItems and SelectedItems now subscribe to Changed
8609         event of ListViewItemCollection, and mark its list dirty whenever
8610         that event is fire. This allows us to return selected/checked items 
8611         in the same order as they are in the Items collection. This matches
8612         the MS behavior.
8613
8614 2006-10-06  Chris Toshok  <toshok@ximian.com>
8615
8616         * NotifyIcon.cs (HandleMouseUp): only show the context menu on
8617         right mouse clicks.  Fixes bug #79593.
8618
8619 2006-10-06  Chris Toshok  <toshok@ximian.com>
8620
8621         * Splitter.cs: doh, fix splitters that don't want to cancel the
8622         movement when you drag them.  Also, impose the limits on the
8623         values we send to the SplitterMovingEvent.  Fixes #79598.
8624
8625 2006-10-06  Jackson Harper  <jackson@ximian.com>
8626
8627         * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
8628         since we use this for auto scrolling also.
8629
8630 2006-10-05  Chris Toshok  <toshok@ximian.com>
8631
8632         * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus.  I'm
8633         beginning to think that most datagrid column types don't need this
8634         method.  Fixes bug #79392.
8635
8636 2006-10-05  Chris Toshok  <toshok@ximian.com>
8637
8638         * DataGrid.cs: move back to a more lazy scheme for creating the
8639         CurrencyManager, so we aren't updating it every time you set
8640         either DataSource or DataMember.  Also, don't call
8641         RecreateDataGridRows if the currency manager hasn't changed.
8642
8643 2006-10-05  Chris Toshok  <toshok@ximian.com>
8644
8645         * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
8646         emitted, SelectedIndex should already be updated.  Fixes bug
8647         #78929.
8648
8649 2006-10-05  Jonathan Pobst  <monkey@jpobst.com>
8650
8651         * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
8652           ToolStripTextBox.cs: Initial commit.
8653         * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
8654
8655 2006-10-05  Jackson Harper  <jackson@ximian.com>
8656
8657         * TabControl.cs: We need to invalidate the tab control area when
8658         new ones are added (duh).
8659
8660 2006-10-03  Chris Toshok  <toshok@ximian.com>
8661
8662         * Form.cs (ProcessDialogKey): if the focused control is in this
8663         form and is a button, call its PerformClick method here.  Fixes
8664         #79534.
8665
8666 2006-10-04  Jackson Harper  <jackson@ximian.com>
8667
8668         * TabPage.cs: Ignore setting of Visible, and add an internal
8669         method for setting the controls visibility.  TabPage's Visible
8670         property is a little strange on MS, this seems to make us
8671         compatible, and fixes cases where people set all the tab pages to
8672         visible.
8673         * TabControl.cs: Use the new internal setting on tab pages
8674         visibility.
8675
8676 2006-10-03  Mike Kestner  <mkestner@novell.com>
8677
8678         * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
8679
8680 2006-10-03  Mike Kestner  <mkestner@novell.com>
8681
8682         * ListView.cs : use is_visible instead of Visible to check if 
8683         scrollbars should be placed/sized.  Also some max_wrap_width
8684         love for LargeIcon view.  [Fixes #79533]
8685
8686 2006-10-03  Atsushi Enomoto  <atsushi@ximian.com>
8687
8688         * TextControl.cs :
8689           Make set_TextAlign() do actually update the align. Fixed #78403.
8690
8691 2006-10-03  Chris Toshok  <toshok@ximian.com>
8692
8693         * DataGrid.cs: fix a crash when switching datasources if the
8694         vertical scrollbar is at someplace other than Value = 0.  Also,
8695         reduce the number of recalculation passes we do in SetDataSource
8696         from 2 to 1.
8697
8698 2006-10-03  Jackson Harper  <jackson@ximian.com>
8699
8700         * TextBoxBase.cs: Move the if value the same bail check up, we
8701         don't want to empty the document if it is already empty, this
8702         seems to severly mess up the caret.  TODO: I should probably fix
8703         the empty statement to update teh caret somehow.
8704
8705 2006-10-03  Chris Toshok  <toshok@ximian.com>
8706
8707         * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
8708         incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
8709         reflection, an internal row type, properties on said type, etc.)
8710         will work with our datagrid.  Fixes #79531.
8711
8712 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
8713
8714         * FileDialog.cs: Don't crash if a path is not accessible
8715           (System.UnauthorizedAccessException). Fixes #79569.
8716         * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
8717           a ':' too. Return unknown icon for those paths/files.
8718
8719 2006-10-03  Sebastien Pouliot  <sebastien@ximian.com>
8720
8721         * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when 
8722         GetContainerControl returns null.
8723
8724 2006-10-02  Chris Toshok  <toshok@ximian.com>
8725
8726         * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
8727         call to XGetWindowAttributes instead of "handle".  fixes an X
8728         error using notifyicon after the NotifyIconWindow to Form base
8729         class switch.
8730
8731 2006-10-02  Chris Toshok  <toshok@ximian.com>
8732
8733         * XplatUIX11.cs (QueryPointer): new function, encapsulating the
8734         server grab and looping we need to do to get down to the most
8735         deeply nested child window.
8736         (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
8737         QueryPointer again after the WarpPointer so we can generate a
8738         proper (fake) MotionNotify event to be enqueued in the destination
8739         window's queue.
8740         (GetCursorPos): call QueryPointer.
8741
8742         Fixes #79556.
8743
8744 2006-10-02  Jackson Harper  <jackson@ximian.com>
8745
8746         * NotifyIcon.cs: Derive the notify icon from a form, so things
8747         like FindForm work on it.
8748         - Swallow the WM_CONTEXTMENU message, since that is generated on
8749         mouse down, and context menu is a mouse up kinda guy.  I believe
8750         the correct fix here is probably to make the notify icon entirely
8751         NC area, but this seems to work fine for anyone not manipulating
8752         WndProc.
8753
8754 2006-10-02  Jonathan Pobst  <monkey@jpobst.com>
8755
8756         * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
8757           ToolStripItemCollection.cs, ToolStripLabel.cs,
8758           ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
8759           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
8760           Initial implementation.
8761         * TextRenderer.cs: Provide padding to MeasureText.
8762
8763 2006-10-02  Sebastien Pouliot  <sebastien@ximian.com>
8764
8765         * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
8766         of ButtonBaseAccessibleObject. Fix bug #79552.
8767
8768 2006-10-02  Jackson Harper  <jackson@ximian.com>
8769
8770         * MdiWindowManager.cs: When maximizing use the containers client
8771         rect, not it's bounds, so nc area is accounted correctly.
8772         - Use the parent form's size for the menu position, since the
8773         client isn't always the full form size.
8774
8775 2006-10-01  Chris Toshok  <toshok@ximian.com>
8776
8777         * ScrollableControl.cs: make sure neither right_edge or
8778         bottom_edge are < 0, since they're used as LargeChange for the
8779         horiz/vert scrollbars respectively.  Fixes #79539.
8780
8781 2006-10-01  Chris Toshok  <toshok@ximian.com>
8782
8783         * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
8784         the xplatuix11 code can cause us to destroy/recreate our handle.
8785
8786         * XplatUIX11.cs
8787         (SystrayAdd):
8788         - this code can be invoked many times for the same Hwnd.  Make
8789           sure we only destroy the client window once (the first time this
8790           method is called).  This fixes bug #79544.
8791         - Remove the call to the improperly bound XSync.  why we had two
8792           bindings to this, I will never know, but this call resulted in
8793           events being discarded from the queue(!).
8794         - correct a misunderstanding of _XEMBED_INFO - the second atom is
8795           not our current state but the state we wish to be in.  So, 0 if
8796           we don't want to be mapped.  Change it to 1.
8797         (SystrayRemove): The XEMBED spec makes mention of the fact that
8798         gtk doesn't support the reparent of client windows away from the
8799         embedder.  Looking at gtksocket-x11.c seems to agree with this.
8800         The only avenue we have for removing systray icons is to destroy
8801         them.  We don't want the handle to go away for good, though, so
8802         call InternalRecreateHandle on the NotifyIconWindow.  Fixes
8803         #79545.
8804         
8805 2006-10-01  Chris Toshok  <toshok@ximian.com>
8806
8807         * Form.cs (WndProc): inline the native_enabled variable usage into
8808         the cases in which it's used.  Fixes #79536.
8809
8810 2006-09-29  Mike Kestner  <mkestner@novell.com>
8811
8812         * ListView.cs : toggle the selection state for ctrl clicks in 
8813         multiselect mode. [Fixes #79417]
8814
8815 2006-09-29  Mike Kestner  <mkestner@novell.com>
8816
8817         * ListView.cs : kill CanMultiSelect and refactor the selection
8818         code to support multiselection in the absence of mod keys. Steal
8819         arrow/home/end keys by overriding InternalPreProcessMessage to
8820         restore regressed keynav behavior.
8821         [Fixes #79416]
8822
8823 2006-09-29  Jackson Harper  <jackson@ximian.com>
8824
8825         * MdiClient.cs: Repaint the titlebars when the active window is
8826         changed.
8827
8828 2006-09-29  Chris Toshok  <toshok@ximian.com>
8829
8830         * Application.cs: when entering a runloop with a modal, make sure
8831         the hwnd is enabled.  Fixes #79480.
8832
8833 2006-09-29  Chris Toshok  <toshok@ximian.com>
8834
8835         * DataGrid.cs (CurrentCell): if we try to navigate to the add row
8836         when ListManager.CanAddRows == false, bump us back one.
8837
8838         * DataGridColumnStyle.cs (ParentReadOnly): remove the
8839         listmanager.CanAddRows check.  This makes ArrayLists uneditable
8840         using a datagrid, which is not right.
8841         (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
8842         is an IEditable, but call property_descriptor.SetValue regardless.
8843         fixes #79435.
8844
8845 2006-09-29  Chris Toshok  <toshok@ximian.com>
8846
8847         * DataGridBoolColumn.cs: we need to test equality in the face of
8848         possible null values (as is the case with the default NullValue).
8849         This patch keeps us from crashing in that case.
8850
8851 2006-09-29  Jackson Harper  <jackson@ximian.com>
8852
8853         * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
8854         here, since it will get called for every node collection in the
8855         tree. This is now done in the treeview once the sorting is
8856         finished.
8857         * TreeView.cs: Recalculate the visible order, and update the
8858         scrollbars after sorting, set the top nope to the root so that the
8859         recalc actually works.
8860
8861 2006-09-29  Chris Toshok  <toshok@ximian.com>
8862
8863         * LinkLabel.cs: more handling of the default link collection in
8864         the face of LinkArea manipulation.  The default link collection
8865         contains 1 element (start=0,length=-1).  If the user sets LinkArea
8866         to anything and the links collection is the default, clear it.
8867         Then only add the link if its nonempty.  Fixes #79518.
8868
8869 2006-09-29  Chris Toshok  <toshok@ximian.com>
8870
8871         * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
8872         piece correctly when we hit a '\n'.  Fixes #79517.
8873
8874 2006-09-29  Chris Toshok  <toshok@ximian.com>
8875
8876         * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
8877         change the binding of gdk_init_check to take two IntPtr's, and
8878         pass IntPtr.Zero for both of them.  Fixes #79520.
8879
8880 2006-09-29  Mike Kestner  <mkestner@novell.com>
8881
8882         * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
8883         [Fixes #78779]
8884
8885 2006-09-28  Jackson Harper  <jackson@ximian.com>
8886
8887         * XplatUIX11.cs: When translating NC messages make sure we go from
8888         whole window to screen, not client window to screen.
8889         * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
8890         method doesn't exist
8891         - Skip over controls that aren't forms when arranging.
8892
8893 2006-09-28  Jackson Harper  <jackson@ximian.com>
8894
8895         * XplatUIWin32.cs: Clip the rect to the parent window.
8896         * XplatUIStructs.cs: Add clipping modes struct.
8897         * InternalWindowManager.cs: New private method that factors title
8898         bar heights in when calculating the pos of an NC mouse message.
8899         - Use SendMessage to force a paint when the form's size is changed
8900         instead of painting the decorations immediately.
8901         - Don't let the NC button click messages get to DefWndProc,
8902         because they will attempt to handle windowing themself, and this
8903         messes up z-order (it will put them in front of the scrollbars).
8904         * XplatUIX11.cs: Make sure that we don't reset window managers if
8905         we already have one (ie the window is an MDI window).
8906
8907 2006-09-28  Chris Toshok  <toshok@ximian.com>
8908
8909         * MainMenu.cs: fix #79405 by way of a disgusting hack.  all the
8910         menu code really needs going over.
8911
8912 2006-09-27  Chris Toshok  <toshok@ximian.com>
8913
8914         * XplatUIX11.cs (SetWMStyles): more metacity wonderment.  turns
8915         out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
8916         window is maximizable.  So, we need to make sure that even if we
8917         clear the border/wm frame of those functions, they're still
8918         available (basically, we remove the decoration without removing
8919         the function).  Half the fix for #79338.
8920
8921 2006-09-27  Chris Toshok  <toshok@ximian.com>
8922
8923         * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
8924         Fixes bug #79515.
8925
8926 2006-09-27  Chris Toshok  <toshok@ximian.com>
8927
8928         * Splitter.cs: reorder things a bit so that we don't actually
8929         draw/move the splitter until after calling OnSplitterMoving.  This
8930         lets users cancel/disallow the movement by explicitly setting
8931         event.SplitX/SplitY.  Fixes #79372.
8932
8933 2006-09-27  Jackson Harper  <jackson@ximian.com>
8934
8935         * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
8936         because it is most likely on a window being destroyed, and that
8937         will give us an X11 error.
8938
8939 2006-09-27  Chris Toshok  <toshok@ximian.com>
8940
8941         * PropertyGridView.cs: half of the fix for #78190.  Clicking on
8942         the dropdown button now toggles between showing and hiding the
8943         dropdown.  Also, get rid of dropdown_form_showing and just use
8944         dropdown_form.Visible.  We still don't do a grab, but I'll leave
8945         that part to someone who has handled Capture-fu before.
8946
8947 2006-09-27  Chris Toshok  <toshok@ximian.com>
8948
8949         * DataGrid.cs: return false if alt isn't pressed when '0' is
8950         pressed.  this keeps the '0' key from being swallowed, and fixes
8951         bug #79350.
8952
8953 2006-09-27  Chris Toshok  <toshok@ximian.com>
8954
8955         * ComboBox.cs: use Invalidate when scrolling the dropdown list.
8956         Calling Refresh (in response to a scrollbar event) screws up the
8957         scrollbar painting.  Fixes bug #78923.
8958
8959 2006-09-27  Chris Toshok  <toshok@ximian.com>
8960
8961         * Theme.cs (SystemResPool): make the "if hashtable[key] == null
8962         then insert into hashtable" blocks threadsafe.
8963
8964 2006-09-27  Chris Toshok  <toshok@ximian.com>
8965
8966         * MessageBox.cs (CreateParams): the styles should be |'ed with our
8967         baseclass's, since otherwise the
8968         ControlBox/MinimizeBox/MaximizeBox assignments above have no
8969         effect.  This gets the close button back in messageboxes.
8970
8971 2006-09-27  Chris Toshok  <toshok@ximian.com>
8972
8973         * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
8974         flag, not just != 0.  this makes flags that are actually multiple
8975         bits (like WS_CAPTION) work.  fixes bug #79508.
8976
8977 2006-09-27  Jordi Mas i Hernandez <jordimash@gmail.com>
8978
8979         * PageSetupDialog.cs: add support for getting and settings the 
8980         paper size, source and orientation.
8981
8982 2006-09-26  Chris Toshok  <toshok@ximian.com>
8983
8984         * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
8985         and caption == "", we need to remove the resize handles as well as
8986         the title bar.
8987
8988         * Control.cs (set_Text): turns out that setting Text on a form
8989         should change the WM styles on the window, since if ControlBox ==
8990         false, the only way to get a window border is to have a non-""
8991         Text property.  check winforms/forms/text.cs for an example.  so,
8992         call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
8993         update both window styles and title.  This fixes a lot of dialogs
8994         (including the preferences dialog in MonoCalendar.)
8995
8996 2006-09-26  Chris Toshok  <toshok@ximian.com>
8997
8998         * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
8999         control isn't a Form), call Win32ShowWindow to hide the window,
9000         but don't update the control Visible property.  When we reparent
9001         back to a parent control, call SetVisible in order for the
9002         window's visibility to be reinstated.
9003
9004         * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
9005         the FosterParent.
9006
9007         * Control.cs (ControlCollection.Remove): remove that value.Hide()
9008         call for good, since it breaks MonoCalendar (and other things I'm
9009         sure.) Also, set all_controls to null *after* the owner calls,
9010         which end up regenerating it.
9011         (ChangeParent): allow new_parent to be == null, passing
9012         IntPtr.Zero down to XplatUI.
9013
9014         this fixes #79294 the right way.
9015
9016 2006-09-26  Mike Kestner  <mkestner@novell.com>
9017
9018         * GridEntry.cs : internal SetParent method.
9019         * PropertyGrid.cs : attach to property changed on the proper
9020         target if we have a hierarchical grid with subobjects. Setup
9021         GridItem.Parent for hierarchical items.
9022         * PropertyGridView.cs : Set value on the correct target for
9023         hierarchical grids. [Fixes #78903]
9024
9025 2006-09-26  Chris Toshok  <toshok@ximian.com>
9026
9027         * Control.cs (ChildNeedsRecreating): this should return true if
9028         either we're being recreated and the child is in our list, or our
9029         parent is waiting for our recreation.
9030
9031 2006-09-26  Chris Toshok  <toshok@ximian.com>
9032
9033         * Control.cs (ControlCollection.Remove): reinstate the
9034         value.Hide() call as suggested in bug #79294.
9035
9036 2006-09-26  Sebastien Pouliot  <sebastien@ximian.com>
9037
9038         * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
9039         coordinates (versus a relative move).
9040
9041 2006-09-26  Chris Toshok  <toshok@ximian.com>
9042
9043         * Control.cs: rework child recreation a little bit.  It turns out
9044         that we race between the DestroyNotify the WM_DESTROY message.  If
9045         the parent gets its DestroyNotify before the child gets the
9046         WM_DESTROY message, the child ends up not recreating (since the
9047         parent finishes its recreation on DestroyNotify, and the child
9048         checks ParentIsRecreating.)
9049
9050         So, instead we store off a list of all the child controls which
9051         need to be recreated when the parent control starts to recreate
9052         itself.  Then, when child controls get their WM_DESTROY message we
9053         check to see if they're in the parent's pending recreation list,
9054         and if so, we recreate.  This removes all dependency on ordering
9055         from the code and fixes the initial MonoCalendar upgrade dialog.
9056         
9057 2006-09-26  Jackson Harper  <jackson@ximian.com>
9058
9059         * TextControl.cs: Use the Line to get the length of the line,
9060         since soft line breaks can change the end line.
9061
9062 2006-09-26  Chris Toshok  <toshok@ximian.com>
9063
9064         * Control.cs (ControlCollection.AddImplicit): don't add the
9065         control again if it's already in one of our lists.  This keeps us
9066         from adding controls over and over again for comboboxes when their
9067         handle gets recreated (as the combobox adds implicit controls in
9068         OnHandleCreated).  Fixes the X11 errors in bug #79480.
9069
9070 2006-09-26  Jackson Harper  <jackson@ximian.com>
9071
9072         * TextControl.cs: When deleting characters make sure that any
9073         orphaned zero lengthed tags get deleted.
9074         - Fix ToString for zero lengthed tags.
9075
9076 2006-09-25  Jackson Harper  <jackson@ximian.com>
9077
9078         * TextControl.cs: When getting a tag at the location there can be
9079         multiple tags at the same spot, these are 0-lengthed tags that
9080         appear when extra formatting has been stuck in a location.  We
9081         need to pull out the last of these 0 lengthed tags.
9082
9083 2006-09-25  Jackson Harper  <jackson@ximian.com>
9084
9085         * TextControl.cs: Fix print out in debug method.
9086         * TextBoxBase.cs: When text is set bail if we are setting to the
9087         previous value.
9088         
9089 2006-09-24  Alexander Olk  <alex.olk@googlemail.com>
9090
9091         * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
9092           It is now possible to change the selected index in a FontXXXListBox
9093           with the up and down arrow keys from the FontXXXTextBoxes.
9094           Also, send the FontXXXTextBox mouse wheel event to the corresponding
9095           FontXXXListBoxes to match ms.
9096
9097 2006-09-22  Sebastien Pouliot  <sebastien@ximian.com>
9098
9099         * SystemInformation.cs: Return a clone of the theme's MenuFont because
9100         anyone can dispose it, anytime. All other properties returns enums, 
9101         structs or basic types so they don't need such tricks.
9102
9103 2006-09-22  Jackson Harper  <jackson@ximian.com>
9104
9105         * XplatUI.cs:
9106         * XplatUIWin32.cs:
9107         * Clipboard.cs:
9108         * DataFormats.cs:
9109         * XplatUIOSX.cs:
9110         * XplatUIDriver.cs: Update interface to add a primary selection
9111         flag, so the driver can use the primary selection buffer if
9112         needed.
9113         * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
9114
9115         * RichTextBox.cs: We need to supply the data object to paste now
9116         (so we can choose to supply CLIPBOARD or PRIMARY).
9117         * TextBoxBase.cs: Supply data object to paste (see above).
9118         - Middle click uses the primary selection data object.
9119         
9120 2006-09-21  Chris Toshok  <toshok@ximian.com>
9121
9122         * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
9123         of SetWMStyles.  It's still a rat's nest and is largely
9124         order-dependent which I dislike immensely.  This also fixes the X
9125         button disappearing from toplevel forms.
9126
9127 2006-09-21  Mike Kestner <mkestner@novell.com>
9128
9129         * ListBox.cs: move Jordi's click/dblclick raising code to the
9130         mouse up handler.
9131
9132 2006-09-21  Jordi Mas i Hernandez <jordimash@gmail.com>
9133
9134         * ListBox.cs: Fixes 79450
9135
9136 2006-09-21  Mike Kestner <mkestner@novell.com>
9137
9138         * TreeView.cs: guard against disposed conditions in UpdateScrollbars
9139         to deal with people updating the TreeNodeCollection after the tree
9140         is disposed.  "Fixes" 79330.
9141
9142 2006-09-20  Jackson Harper <jackson@ximian.com>
9143
9144         * TextControl.cs: Push the cursor record onto the undo stack
9145         before the delete action. This fixes 78651.
9146
9147 2006-09-20  Jonathan Chambers  <joncham@gmail.com>
9148
9149         * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
9150         CreateParams. Fixes 79329.
9151
9152 2006-09-19  Chris Toshok  <toshok@ximian.com>
9153
9154         * XplatUIX11.cs: a couple of blanket code massage passes to clean
9155         things up a bit.  First, get rid of the NetAtoms array (and the NA
9156         enum), and just embed the atoms as static fields.  Also, add a
9157         couple of functions (StyleSet and ExStyleSet) to clean up all the
9158         bitmask testing of styles.
9159
9160         * X11Structs.cs: remove the NA enum, not needed anymore.
9161         
9162 2006-09-19  Chris Toshok  <toshok@ximian.com>
9163
9164         * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
9165         (mapping them to _NET_WM_WINDOW_TYPE_UTILITY).  and add a little
9166         added cleanup to get MessageBox titles appearing again, which were
9167         broken by my earlier fix for caption-less/ControlBox-less windows.
9168
9169 2006-09-18  Jonathan Pobst <monkey@jpobst.com>
9170
9171         * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
9172           ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
9173           ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
9174           ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
9175           ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
9176           ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
9177           ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
9178           ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
9179           ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
9180           ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
9181           ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
9182             Inital import.
9183         * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
9184           ToolStripButton.cs: Stubs needed for above.
9185         * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
9186
9187 2006-09-15  Chris Toshok  <toshok@ximian.com>
9188
9189         * XplatUIX11.cs:
9190         - make the MessageQueues hashtable Synchronized.
9191         
9192         - SendMessage: if the Hwnd is owned by a different thread, use the
9193         AsyncMethod stuff to dispatch the SendMessage on the hwnd's
9194         thread.  Fixes bug #79201.
9195
9196 2006-09-15  Chris Toshok  <toshok@ximian.com>
9197
9198         * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly.  If
9199         ControlBox == false, we disallow maximize/minimize/close.  If the
9200         form Caption is "" we also disallow move (and get rid of the Title
9201         decoration).  Unfortunately, regardless of how things are set,
9202         we're stuck with the Title and WM menu.
9203
9204 2006-09-15  Chris Toshok  <toshok@ximian.com>
9205
9206         * Application.cs: add locking around the static message_filters
9207         ArrayList, part of #79196.
9208
9209 2006-09-15  Chris Toshok  <toshok@ximian.com>
9210
9211         * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
9212         Form.ControlBox == false, the window has no titlebar nor resize
9213         handles.  fixes bug #79368.
9214
9215 2006-09-15  Chris Toshok  <toshok@ximian.com>
9216
9217         * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
9218         >= 0.  Fixes bug #79370.
9219
9220 2006-09-15  Jonathan Pobst <monkey@jpobst.com>
9221         * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
9222         * Control.cs:
9223             Add properties: LayoutEngine, Margin, DefaultMargin.
9224             Add method: GetPreferredSize.
9225             Move layout logic from PerformLayout to layout engines. 
9226
9227 2006-09-13  Chris Toshok  <toshok@ximian.com>
9228
9229         * XplatUIX11.cs: more destroy work.  Jackson pointed out that my
9230         fix for #79326 broke #78718, so this change addresses that.
9231
9232         - in SendWMDestroyMessages remove the call to
9233         CleanupCachedWindows, since we might be recreating the control and
9234         need to maintain the references to right Hwnd handles.  Also, set
9235         the zombie flag to true for each of the children in the hierarchy
9236         instead of calling hwnd.Dispose.  This will cause GetMessage to
9237         ignore all events for the window except for DestroyNotify.
9238
9239         - In GetMessage, ignore messages except for DestroyNotify for
9240         zombie hwnds.
9241         
9242         * Control.cs: revert the is_recreating fix from the last
9243         ChangeLog.  It's definitely "right", but it breaks switching from
9244         an MDI form to a non-MDI form.  Will need to revisit that.
9245
9246         * Hwnd.cs: add a zombie flag, which means "the
9247         client_window/whole_window handles are invalid, but we're waiting
9248         for the DestroyNotify event to come in for them".  Set the flag to
9249         false explicitly if setting WholeWindow/ClientWindow, and also
9250         when Disposing.
9251         
9252 2006-09-13  Chris Toshok  <toshok@ximian.com>
9253
9254         * XplatUIX11.cs: rework window destruction slightly.
9255
9256         - when destroying the windows associated with a control, we don't
9257         need 2 separate XDestroyWindow calls.  Just the one for the
9258         whole_window (or for client_window if whole_window is somehow
9259         IntPtr.Zero -- can this happen?) is enough.
9260
9261         - reworked SendWMDestroyMessages slightly, so we always dispose
9262         the child control hwnd's after sending the messages.
9263         
9264         - refactored out the ActiveWindow/FocusWindow/Caret clearing from
9265         the two places it was used (one was even using hwnd.Handle and the
9266         other hwnd.client_window.  ugh), adding another call in
9267         SendWMDestroyMessages.  We need this new call because now the
9268         DestroyNotify events in the queue will be ignored for the child
9269         controls (as their hwnd's were disposed, and the window id's
9270         removed from the hashtable in SendWMDestroyMessages.) fun, eh?
9271
9272         - this fixes bug #79326.
9273
9274 2006-09-13  Chris Toshok  <toshok@ximian.com>
9275
9276         * Control.cs: don't always set is_recreating to false at the end
9277         of RecreateHandle, since sometimes we're not done (and won't be
9278         until WndProc handles the WM_DESTROY message).  Also, set
9279         is_recreating to false in the WM_DESTROY handling code.  Part of
9280         the fix for bug #79326.
9281
9282 2006-09-13  Miguel de Icaza  <miguel@novell.com>
9283
9284         * X11DesktopColors.cs: Start the droppage of debugging messages.
9285
9286         * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
9287
9288 2006-09-13  Jonathan Pobst <monkey@jpobst.com>
9289
9290         * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
9291
9292 2006-09-12  Chris Toshok  <toshok@ximian.com>
9293
9294         * DataGrid.cs (get_ListManager): if the list_manager is null, try
9295         to create it using SetDataSource.  Fixes bug #79151.
9296
9297 2006-09-11  Chris Toshok  <toshok@ximian.com>
9298
9299         * XEventQueue.cs: add a DispatchIdle property.
9300
9301         * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
9302         either the queue is null, or the queue has DispatchIdle set to
9303         true.
9304         (DoEvents): set queue.DispatchIdle to false around the
9305         peek/translate/dispatch message loop in this method.  This keeps
9306         Application.Doevents from emitting idle events.  Part of the fix
9307         for #78823.
9308
9309 2006-09-11  Chris Toshok  <toshok@ximian.com>
9310
9311         * DataGrid.cs (set_DataSource): make this work for both the
9312         winforms/datagrid test and ReportBuilder.  It seems as though when
9313         we've created a ListManager (or maybe it's if we have a
9314         BindingContext?), when we set the DataSource it clears the
9315         DataMember to "".  otherwise we reuse the datamember.  Fixes bug
9316         #79333.
9317
9318 2006-09-11  Chris Toshok  <toshok@ximian.com>
9319
9320         * XplatUIX11.cs: deal with queue being null, which happens in all
9321         the Clipboard functions.  Fixes one of the two problems mentioned
9322         in #78612.
9323
9324 2006-09-11  Chris Toshok  <toshok@ximian.com>
9325
9326         * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
9327         button on various spots (including outside the menu) works closer
9328         to MS, and doesn't crash.  Fixes #79343.
9329
9330 2006-09-11  Gert Driesen  <drieseng@users.sourceforge.net>
9331
9332         * ListView.cs: Do not initialize item_sorter in init. To match MS,
9333         return null for ListViewItemSorter if View is SmallIcon or LargeIcon
9334         and the internal comparer is set. When a new ListViewItemSorter is set,
9335         sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
9336         was specified. No further processing is necessary if SortOrder is set
9337         to it's current value. If Sorting is modified to None, and View is
9338         neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
9339         (either custom or our internal ItemComparer) to null, on 1.0 profile
9340         only set item_sorter to null if its our internal IComparer. If Sorting
9341         is modified to Ascending or Descending, then use our internal IComparer
9342         if none is set, and if the current IComparer is our internal one then:
9343         on 2.0 profile always replace it with one for new Sorting, and on 1.0
9344         profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
9345         Enum.IsDefined to verify whether a valid View value is specified in
9346         its setter. Automatically sort listview items when listview is
9347         created. In Sort, do nothing if ListView is not yet created, or if
9348         no item_sorter is set (no Sorting was set, Sorting was explicitly set
9349         to None or ListViewItemSorter was set to null). Added Sort overload
9350         taking a bool to indicate whether the ListView should be redrawn when
9351         items are sorted (we use this in ListViewItemCollection to avoid double
9352         redraws). Modified our internal IComparer to take the sort order into
9353         account. In Add and AddRange methods of ListViewItemCollection, also
9354         call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
9355         view), but use overload with noredraw option to avoid double redraw.
9356         On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
9357         true when View is Tile, and do the same when attempting to set View to
9358         Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
9359         for selected/checked indices, as it involves overhead when sorting is
9360         done while these collections are not used all that often. Instead
9361         we'll build the indices on demand. Modified IList implementation of
9362         CheckedIndexCollection to use public methods if object is int.
9363         Modified CheckedListViewItemCollection to hide checked items if
9364         ListView.CheckBoxes is false. Removed LAMESPEC remark in 
9365         ListViewItemCollection as the .NET SDK docs have been fixed. Modified
9366         IList implementation in SelectedIndexCollection to use public methods
9367         if object is int. Modified SelectedListViewItemCollection to hide
9368         selected items if listview is not yet created.
9369         * ListViewItem.cs: CheckedIndices list no longer needs to be
9370         maintained separately (see ListView changes). Also clone font, fixes
9371         test failure.
9372
9373 2006-09-11  Mike Kestner  <mkestner@novell.com>
9374
9375         * ComboBox.cs: if we are updating the contents of the currently
9376         selected index, refresh the control or the textbox selection.
9377         [Fixes #79066]
9378
9379 2006-09-11  Mike Kestner  <mkestner@novell.com>
9380
9381         * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since 
9382         the 'specified' logic has been moved there.  This seems like a bug 
9383         in Control.cs, since our current SetBoundsCore completely ignores 
9384         the specified parameter.  Peter's commit seems to indicate that is 
9385         the way the MS control implementation works.  [Fixes #79325]
9386
9387 2006-09-10  Jonathan Chambers  <joncham@gmail.com>
9388
9389         * XplatUI.cs: Set default_class_name to be composed
9390         of current domain id. This allows MWF to be loaded in multiple
9391         domains on Win32.
9392
9393 2006-09-09  Miguel de Icaza  <miguel@novell.com>
9394
9395         * X11Keyboard.cs: If we are unable to obtain the input method, do
9396         not call CreateXic to create the input context.   Should fix
9397         #78944/79276.
9398
9399 2006-09-08  Alexander Olk  <alex.olk@googlemail.com>
9400
9401         * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
9402           Simplified gnome support by adding more pinvokes to get the
9403           icon for a file or mime type.
9404
9405 2006-09-08  Jackson Harper  <jackson@ximian.com>
9406
9407         * MenuAPI.cs: Deslect popup context menu items before closing the
9408         window, so that you don't see the previously selected item
9409         selected when you reopen the menu.
9410         * TextControl.cs: Update the cursor position even if we don't have
9411         focus.  This fixes typing in things like the ComboBox.  I'm not
9412         totally sure we should always set the visibility if we don't have
9413         focus, but couldn't find any corner cases where the cursor showed
9414         up when it shouldn't.
9415
9416 2006-09-08  Chris Toshok  <toshok@ximian.com>
9417
9418         * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
9419         our arrays are length 256.  & 0xff before indexing.  Fixes the
9420         crash in bug #78077.
9421         
9422 2006-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9423
9424         * ThemeWin32Classic.cs: 
9425         * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
9426         is true. Handle that check box too.
9427
9428 2006-09-07  Chris Toshok  <toshok@ximian.com>
9429
9430         * MenuAPI.cs: move the PerformClick call to OnMouseUp.  Fixes bug
9431         79244.
9432
9433 2006-09-07  Chris Toshok  <toshok@ximian.com>
9434
9435         * Control.cs: in set_BackColor only do the work if
9436         background_color != value.
9437
9438         * XplatUIX11.cs: move the clearing of invalid areas (both client
9439         and nc) to the same block of code where we set (nc_)expose_pending
9440         to false.  That is, move it from PaintEventEnd to PaintEventStart,
9441         so things that cause invalidates from within OnPaint will trigger
9442         another call to OnPaint.  Fixes bug #79262.
9443
9444 2006-09-07  Alexander Olk  <alex.olk@googlemail.com>
9445
9446         * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
9447         * FileDialog.cs: Fix typo
9448
9449 2006-09-07  Jackson Harper  <jackson@ximian.com>
9450
9451         * ThemeWin32Classic.cs:  oops, forgot to commit.  Draw the images
9452         for tab pages if they have any.
9453
9454 2006-09-06  Mike Kestner  <mkestner@novell.com>
9455
9456         * Splitter.cs: use the "current" rect when finishing drag handle
9457         to avoid an artifact demonstrated by resedit.exe.  [Fixes #79251]
9458
9459 2006-09-06  Mike Kestner  <mkestner@novell.com>
9460
9461         * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
9462         support offset splitters. [Fixes #79298]
9463
9464 2006-09-06  Alexander Olk  <alex.olk@googlemail.com>
9465
9466         * Mime.cs: Fixed a bug that could override the global mime type
9467           result.
9468
9469 2006-09-05  Jackson Harper  <jackson@ximian.com>
9470
9471         * TabControl.cs: Better calculation method for setting the slider
9472         pos. Prevents crashes on really wide tabs.
9473         - Draw Image on tab pages if an image list is used.
9474
9475 2006-09-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9476
9477         * MonthCalendar.cs: When Font changes, the Size should be
9478         updated to fit the new font's space requirements.
9479
9480 2006-09-02  Alexander Olk  <alex.olk@googlemail.com>
9481
9482         * ListBox.cs: If the items are cleared with Items.Clear set
9483           top_index to 0.
9484
9485 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9486
9487         * MonthCalendar.cs: Handle arrow keys as input keys. Also
9488         fire DateChanged event instead of DateSelected event when
9489         the date was changed by keyboard interaction.
9490
9491 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9492
9493         * DateTimePicker.cs: Handle DateChanged for the associated
9494         month_calendar control, and set month_calendar.Font from 
9495         OnFontChanged method, as well as resize the height of the
9496         control when needed. Make PreferredHeight proportional.
9497
9498 2006-09-01  Chris Toshok  <toshok@ximian.com>
9499
9500         * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
9501         properties.
9502
9503         * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
9504
9505 2006-09-01  Peter Dennis Bartok  <pbartok@novell.com> 
9506
9507         * FileDialog.cs: Set ClientSize instead of window size, to allow space
9508           for decorations (Fixes #79219)
9509
9510 2006-09-01  Mike Kestner  <mkestner@novell.com>
9511
9512         * ComboBox.cs: first stab at sorting plus some selection handling
9513         fixes to bring us more in line with MS behavior.  Also switches back
9514         to index based selection.  Alternative patches for index-based 
9515         selection were provided by Jackson Harper, Carlos Alberto Cortez, 
9516         and latency@gmx.de on bug 78848.  I assume they were similar to this
9517         code I've had simmering in my tree forever.
9518         [Fixes #78848]
9519
9520 2006-09-01  Chris Toshok  <toshok@ximian.com>
9521
9522         * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
9523         when setting list position guard against ending up with a -1 index
9524         (the other part of the fix for #78812).  Should probably make sure
9525         we don't need the analogous fix in the ItemDeleted case.
9526
9527         * DataGrid.cs:
9528         - in SetDataSource, work around the fact that the way
9529         OnBindingContextChanged is invoked will cause us to re-enter this
9530         method.  I'll remove the hack once I investigate
9531         OnBindingContextChanged.
9532
9533         - fix the logic in set_DataSource and set_DataMember (basically
9534         what to do if the other of the two is null.)
9535         
9536         - in OnListManagerItemChanged, we need to take into account the
9537         edit row when deciding whether or not to call RecreateDataGridRows
9538         (part of the fix for #78812).
9539
9540 2006-09-01  Jackson Harper  <jackson@ximian.com>
9541
9542         * Splitter.cs: Don't do anything if there is no control to affect
9543         (prevents us from crashing in weird tet cases).
9544         * TreeView.cs: Bounding box for the mouse movement reverting
9545         focus/selection back to previously selected node.  This matches
9546         MS, and makes the tree a lot more useable.
9547         * GroupBox.cs: Instead of drawing over the lines of the groupbox,
9548         use clipping so they are not drawn.  This fixes when the control
9549         is set to have a transparent background, or if it was over an
9550         image.
9551
9552 2006-09-01  Alexander Olk  <alex.olk@googlemail.com>
9553
9554         * MimeIcon.cs: Improved handling for reading default icons when
9555           using gnome (2.16 made it necessary). Check and read svg icons
9556           first, then 48x48 and then 32x32 icons.
9557
9558 2006-08-31  Chris Toshok  <toshok@ximian.com>
9559
9560         * DataGridTextBoxColumn.cs: only hide the textbox if it's still
9561         visible.
9562
9563         * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
9564         ProcessKeyPreview.  Fixes part of #77806.
9565
9566         * DataGrid.cs: big patch.
9567
9568         - revert the queueing up of DataSource/DataMember if inside
9569         BeginInit/EndInit calls.  That's not the way the datagrid achieves
9570         its delayed databinding.  Instead, call SetDataSource in
9571         OnBindingContextChanged.  This mimic's MS's behavior, and fixes
9572         #78811.
9573
9574         - Also, it wasn't mentioned in #78811, but the test case exhibits
9575         behavior that was lacking in our datagrid implementation - Columns
9576         that have mapping names that don't exist in the datasource's
9577         properties aren't shown.  Yuck.  To fix this I added the bound
9578         field to the column style, and basically any calculation to figure
9579         out anything about columns uses a loop to find the bound columns.
9580         still need to investigate if I can cache an array of the bound
9581         columns or if the indices must be the same.
9582
9583         - When setting CurrentCell, we no longer abort if the cell being
9584         edited was in the add row.  This fixes the other part of #77806.
9585
9586         - The new code also fixes #78807.
9587         
9588         * ThemeWin32Classic.cs: perpetrate the same disgusting
9589         column.bound field hack, and only render bound fields.
9590
9591 2006-08-31  Chris Toshok  <toshok@ximian.com>
9592
9593         * DataGridColumnStyle.cs: add bound field.  this field is true if
9594         the datasource has a property corresponding to the mapping name.
9595
9596         * DataGridTableStyle.cs: set the bound field on the column styles
9597         depending on whether or not we have a column for that property.
9598
9599 2006-08-31  Peter Dennis Bartok  <pbartok@novell.com> 
9600
9601         * Splitter.cs (SetBoundsCore): Don't ignore width/height of the 
9602           splitter control (fixes #79228)
9603
9604 2006-08-31  Chris Toshok  <toshok@ximian.com>
9605
9606         * DataGridColumnStyle.cs: we need to delay the assignment of
9607         property descriptor until the last possible moment due to the lazy
9608         databinding stuff in the datagrid.  Also, fix the exceptions
9609         thrown by CheckValidDataSource to match MS.
9610
9611 2006-08-31  Jackson Harper  <jackson@ximian.com>
9612
9613         * Form.cs: When activated select the active control, if there is
9614         no active control, we select the first control.
9615         * XplatUIX11.cs: If there is no focus control when we get a
9616         FocusIn event, find the toplevel form and activate it.  This
9617         occurs when you popup a window, it becomes the focus window, then
9618         you close that window, giving focus back to the main window.
9619
9620 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9621
9622         * MonthCalendar.cs: 
9623         * ThemeWin32Classic.cs: Cache Font in bold style, as well
9624         as StringFormat with Center alignments in MonthCalendar,
9625         instead of creating new ones when drawing the control. 
9626         Also, draw the month name in bold style.
9627
9628 2006-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
9629
9630         * Control.cs:
9631           - PerformLayout(): It would seem MS performs the fill even if the 
9632             control is not visible (part of #79218 fix)
9633           - ResetBackColor(): Use the setter to reset the color, to allow
9634             overriders to catch the change.
9635         * Form.cs:
9636           - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
9637           - CreateHandle(): dito (part of $79218 fix)
9638           - Don't set an icon if we have a dialog
9639         * ScrollableControl.cs:
9640           - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
9641           - ScrollIntoView(): No need to scroll if control is already visible
9642             (resolves fixme and fixes #79218)
9643
9644 2006-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9645
9646         * MonthCalendar.cs: Change proportions in SingleMonthSize
9647         to match the aspect of the original control.
9648
9649 2006-08-29  Alexander Olk  <alex.olk@googlemail.com>
9650
9651         * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
9652           get updated when they get maximized.
9653
9654 2006-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
9655
9656         * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
9657
9658 2006-08-29  Chris Toshok  <toshok@ximian.com>
9659
9660         * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
9661
9662 2006-08-29  Jackson Harper  <jackson@ximian.com>
9663
9664         * TreeView.cs: Need to track selected node and highlighted node,
9665         they aren't always the same thing, when the mouse is down on a
9666         node it is hilighted, but not selected yet.
9667         - Do the HideSelection stuff right
9668         - Need to focus on rbutton mouse down. And redraw selection when
9669         right click is mouse upped.
9670
9671 2006-08-29  Mike Kestner  <mkestner@novell.com>
9672
9673         * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
9674         when SubItems.Count < Columns.Count.  [Fixes #79167]
9675
9676 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com> 
9677
9678         * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
9679
9680 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com>
9681
9682         * XplatUIX11.cs: Preempt the roundtrip for getting the location back
9683           from X. Only send based on ConfigureNotify if we don't have the
9684           correct location in hwnd (if the window manager moved us)
9685
9686 2006-08-28  Mike Kestner  <mkestner@novell.com>
9687
9688         * ListView.cs: remove a TODO. 
9689         * ThemeWin32Classic.cs: implement HideSelection support for ListView.
9690         [Fixes ListView part of #79166]
9691
9692 2006-08-28  Mike Kestner  <mkestner@novell.com>
9693
9694         * ListView.cs: move wheel handler to parent since it is focused
9695         instead of the item_control now.  [Fixes #79177]
9696
9697 2006-08-28  Mike Kestner  <mkestner@novell.com>
9698
9699         * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
9700         when the control is focused. [Fixes #79171]
9701
9702 2006-08-28  Mike Kestner  <mkestner@novell.com>
9703
9704         * ListView.cs: size the item and header controls for empty and
9705         unscrollable views.
9706         * ThemeWin32Classic.cs: draw disabled backgrounds.
9707         [Fixes #79187]
9708
9709 2006-08-28  Chris Toshok  <toshok@ximian.com>
9710
9711         * Form.cs: remove unused "active_form" static field.
9712
9713         * Hwnd.cs: lock around accesses to static windows collection.
9714
9715         * Application.cs: lock threads in Exit ().
9716
9717 2006-08-28  Chris Toshok  <toshok@ximian.com>
9718
9719         * NativeWindow.cs: lock around accesses to window_collection.
9720         
9721 2006-08-28  Chris Toshok  <toshok@ximian.com>
9722
9723         * Control.cs: err, fix this the right way, by locking on controls
9724         when using it.  not by making it synchronized.
9725
9726 2006-08-28  Chris Toshok  <toshok@ximian.com>
9727
9728         * Control.cs: make the static "controls" field synchronized, as it
9729         gets updated from multiple threads.
9730
9731 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
9732
9733         * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
9734           Prevent other threads from exiting when calling thread sets quit state.
9735         * XEventQueue.cs: Added PostQuitState property
9736
9737 2006-08-27  Chris Toshok  <toshok@ximian.com>
9738
9739         * AsyncMethodData.cs: add a slot for the window handle.
9740
9741         * XplatUIX11.cs (SendAsyncMethod): send the event to the right
9742         window (the destination control's window, not the foster window).
9743
9744         * Control.cs (BeginInvokeInternal): store the window's handle in
9745         the AsyncMethodData.
9746         
9747
9748 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
9749
9750         * XplatUIX11.cs:
9751           - PostQuitMessage: Removed resetting S.D display handle, we might have
9752             another loop started after calling PostQuitMessage (Fixes #79119)
9753           - Created destructor to reset S.D handle
9754
9755 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com> 
9756
9757         * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
9758
9759 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
9760
9761         * TextControl.cs (Insert): Update the caret position even if we don't
9762           have a handle yet, just don't call the driver in that case.
9763         * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
9764           to the end of the new selection text (Fixes #79184)
9765
9766 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
9767
9768         * Form.cs (Activate): Only activate if the handle is created)
9769         * Control.c:
9770           - Mark window as invisible when it's disposed
9771           - Check if window handle is created when setting window visible, 
9772             instead of relying just on the is_created variable
9773           - Check if object is disposed when creating the control (Fixes #79155)
9774
9775 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
9776
9777         * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
9778           when allowing layout again. Otherwise we re-generate the anchoring 
9779           distance to the border again and actually alter what the user wanted
9780           This is ugly, it'd be better if we used DisplayRectangle instead of
9781           ClientRectangle for Control.UpdateDistances, but that causes us to
9782           have other problems (initial anchoring positons would be wrong)
9783           (Fixes #78835)
9784
9785 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
9786
9787         * Control.cs:
9788           - The size and location setters shouldn't go directly to 
9789             SetBoundsCore, but to SetBounds, which triggers layout on the
9790             parent, then calls SetBoundsCore. (Related to fix for #78835)
9791           - SetBounds: Moved actual location update code into this function
9792             from SetBoundsCore, to match MS. Added call to PerformLayout if
9793             we have a parent (to trigger resizing of anchored parents if the 
9794             child size has changed (see testcase for #78835) 
9795         * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match 
9796           new control code
9797         * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
9798
9799 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
9800
9801         * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
9802           System.Drawing when a toplevel window gets closed; there might
9803           be other toplevel windows belonging to the same app (Fixes #78052)
9804
9805 2006-08-26  Alexander Olk  <alex.olk@googlemail.com>
9806
9807         * FileDialog.cs: After reading FileDialog settings from mwf_config
9808           use Desktop prefix only if a real folder doesn't exist anymore.
9809         * FontDialog.cs: Added char sets.
9810           It is now possible to select the font, size or style with the
9811           textboxes.
9812
9813 2006-08-25  Kornél Pál  <kornelpal@gmail.com>
9814
9815         * PrintPreviewDialog.cs: Use assembly name constants.
9816
9817 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
9818
9819         * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
9820           scrollbar from whacking it's buttons)
9821
9822 2006-08-24  Chris Toshok  <toshok@ximian.com>
9823
9824         * ScrollableControl.cs: fix #78271.  There's a lot of misc stuff
9825         in this patch (aggregating setting Left/Top/Width/Height to
9826         setting Bounds on the scrollbars), but the crux of the fix is in
9827         Recalculate, where we scroll by the remaining scroll_position if
9828         we're hiding a scrollbar.  The 2*$5 reward in the comment is
9829         serious.
9830
9831 2006-08-24  Jackson Harper  <jackson@ximian.com>
9832
9833         * MdiClient.cs:
9834         * MdiWindowManager.cs: If the form is made a non-mdi window we
9835         need to remove the form closed event so that closing forms works
9836         correctly.
9837
9838 2006-08-24  Jackson Harper  <jackson@ximian.com>
9839
9840         * Control.cs: Make IsRecreating internal so that the driver can
9841         check it
9842         - Temporarily remove the Hide when controls are removed, its
9843         making a whole bunch of things not work because visibility isn't
9844         getting reset elsewhere correctly
9845         * Form.cs: Need to do a full handle recreation when the mdi parent
9846         is set.
9847         * XplatUIX11.cs: If we are recreating handles don't dispose the
9848         HWNDs.  What was happening is the handles were being recreated in
9849         SendWMDestroyMessages, but then flow continued on in that method
9850         and destroyed the new handles.
9851
9852 2006-08-23  Jackson Harper  <jackson@ximian.com>
9853
9854         * Form.cs: MdiClient is always at the back of the bus
9855         * Control.cs: When the order of items in the collection is changed
9856         we need to reset the all_controls array
9857         - do the same sorta setup thats done when adding a control when a
9858         control is set on the collection.
9859
9860 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
9861
9862         * TextBoxBase.cs (get_Text): Return an empty array if our document
9863           is empty (fixes #79052)
9864
9865 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
9866
9867         * Control.cs: We should call IsInputChar on only on WM_CHAR but not
9868           on WM_SYSCHAR messages (fixes #79053)
9869
9870 2006-08-23  Chris Toshok  <toshok@ximian.com>
9871
9872         * DataGrid.cs: fix flickering when scrolling vertically.
9873
9874 2006-08-23  Chris Toshok  <toshok@ximian.com>
9875
9876         * DataGrid.cs (EndEdit): only invalidate the row header when we
9877         need to.
9878
9879 2006-08-23  Chris Toshok  <toshok@ximian.com>
9880
9881         * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
9882         methods.  fixes the flicker when scrolling around.
9883
9884 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
9885
9886         * FileDialog.cs: Making sure the control is created before we get a 
9887           chance to use it with BeginInvoke (Fixes #79096)
9888
9889 2006-08-23  Chris Toshok  <toshok@ximian.com>
9890
9891         * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
9892         width to use when painting the rows.
9893
9894 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
9895
9896         * TextBoxBase.cs:
9897           - Throw ArgumentException if a negative value is passed to SelectionLength
9898           - Update the selection end if start is moved. end needs to be always
9899             after start. (Fixes #79095)
9900           - Track selection length; MS keeps the selection length even if start
9901             is changed; reset on all other operations affection selection
9902
9903 2006-08-22  Jackson Harper  <jackson@ximian.com>
9904
9905         * TreeView.cs: Make sure both scrollbars get displayed and sized
9906         correctly when the other bar is visible.
9907         - Use the original clip rectangle for checking if the area between
9908         the two scrollbars is visible, not the viewport adjusted clipping
9909         rectangle.
9910
9911 2006-08-22  Jackson Harper  <jackson@ximian.com>
9912
9913         * Binding.cs: We don't use IsBinding because it requires the
9914         control to be created, which really shouldn't be necessary just to
9915         set a property on the control.
9916
9917 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9918
9919         * ComboBox.cs: Some CB.ObjectCollection methods must throw
9920         ArgumentNullReferenceException when the argument is null.
9921
9922 2006-08-21  Jackson Harper  <jackson@ximian.com>
9923
9924         * Timer.cs: Track the thread that the timer is started in (NOT
9925         CREATED), this way messages for it will only be triggered on its
9926         queue.
9927         * XEventQueue.cs: Track the timers here, this makes timers per
9928         thread, like MS.
9929         * XplatUIX11.cs: The timers are moved to the XEventQueue.
9930
9931 2006-08-19  Chris Toshok  <toshok@ximian.com>
9932
9933         * XplatUIX11.cs: after further communication with pdb, we get the
9934         best of both worlds.  SetZOrder working for un-Mapped windows, and
9935         no X errors for un-mapped windows.
9936
9937 2006-08-19  Chris Toshok  <toshok@ximian.com>
9938
9939         * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
9940         as it was causing pdn toolbars to not have the correct stacking.
9941
9942 2006-08-18  Mike Kestner  <mkestner@novell.com> 
9943
9944         * ListView.cs : guard against negative ClientArea.Width in scrollbar
9945         calculation.  Not sure why control should ever be setting a negative
9946         width though.  Fixes #78931.
9947
9948 2006-08-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9949
9950         * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
9951         null items in ObjectCollection class.
9952         * ListBox.cs.: Likewise.
9953
9954 2006-08-18  Atsushi Enomoto  <atsushi@ximian.com>
9955
9956         * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
9957           as the base method in ThemeWin32Classic should work fine.
9958           Fixed bug #78607.
9959
9960 2006-08-18  Jackson Harper  <jackson@ximian.com>
9961
9962         * Binding.cs: When validating if the value entered doesn't convert
9963         properly reset to the old value.
9964         * RadioButton.cs: Don't fire click when we get focus.
9965
9966 2006-08-18  Jackson Harper  <jackson@ximian.com>
9967
9968         * FileDialog.cs: Paint the selection on the directory combobox the
9969         same way as on MS. 
9970
9971 2006-08-17  Jackson Harper  <jackson@ximian.com>
9972
9973         * ErrorProvider.cs: Don't allow the error control to be selected.
9974         * Control.cs: Don't send the SetFocus messages, the control
9975         activation will do this, and if we do it blindly here validation
9976         does not work.
9977
9978 2006-08-17  Jackson Harper  <jackson@ximian.com>
9979
9980         * Control.cs:
9981         * ContainerControl.cs: Make validation events fire in the correct
9982         order.  TODO: For some reason the first validation event is not
9983         getting fired.
9984
9985 2006-08-17  Mike Kestner  <mkestner@novell.com> 
9986
9987         * ComboBox.cs : some null guarding for ComboListBox.Scroll.
9988
9989 2006-08-17  Mike Kestner  <mkestner@novell.com> 
9990
9991         * ComboBox.cs : implement scroll wheel support for popped-down
9992         state. Fixes #78945. 
9993
9994 2006-08-17  Jackson Harper  <jackson@ximian.com>
9995
9996         * TreeView.cs: Specify treeview actions (old patch that didn't get
9997         committed for some reason).
9998         - Don't let the mouse wheel scroll us too far.  Just want to make
9999         the bottom node visible, not scroll it all the ways to the top.
10000
10001 2006-08-17  Jackson Harper  <jackson@ximian.com>
10002
10003         * XplatUIX11.cs: Mouse wheel events go to the focused window.
10004
10005 2006-08-17  Mike Kestner  <mkestner@novell.com> 
10006
10007         * ComboBox.cs : don't do mouseover selection in simple mode.
10008
10009 2006-08-16  Jackson Harper  <jackson@ximian.com>
10010
10011         * Form.cs: Fire the closing events for all the mdi child windows
10012         when a window is closed.  If the cancel args are set to true, the
10013         main window still gets the event fired, but it doesn't not close.
10014         * MdiWindowManager.cs: Do this closing cleanup in a Closed
10015         handler, instead of when the button is clicked, so cancelling the
10016         close works correctly.
10017         * ComboBox.cs: Send the mouse down to the scrollbar.
10018
10019 2006-08-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10020
10021         * ListBox.cs: When passing 'null' to SelectedItem,
10022         set SelectedIndex to -1, to unselect items. This is the
10023         observed behaviour in .Net.
10024
10025 2006-08-16  Peter Dennis Bartok  <pbartok@novell.com> 
10026
10027         * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
10028           MS flags saying there won't be any. (fixes #78800)
10029         * Control.cs (HandleClick): Made virtual
10030
10031 2006-08-16  Atsushi Enomoto  <atsushi@ximian.com>
10032
10033         * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
10034           cultures. Fixed bug #78399.
10035
10036 2006-08-16  Jackson Harper  <jackson@ximian.com>
10037
10038         * Form.cs: Use the MdiClients MdiChildren property to access
10039         MdiChildren instead of creating the array from the child controls.
10040         * MdiClient.cs: Maintain a separate array of the mdi children, so
10041         that insertion order is maintained when the Z-order is changed.
10042
10043 2006-08-16  Mike Kestner  <mkestner@novell.com> 
10044
10045         * ListView.cs : add an ItemComparer and default to it for sorting.
10046         Fixes #79076, but sorting needs a complete overhaul to be compat with
10047         MS.
10048
10049 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
10050
10051         * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
10052
10053 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
10054
10055         * Hwnd.cs (Mapped): Properly traverse the tree
10056
10057 2006-08-15  Chris Toshok  <toshok@ximian.com>
10058
10059         * Binding.cs: fix PullData/SetPropertyValue.  We don't want to
10060         pass manager.Current.GetType() to ParseData.  It has to be the
10061         property type.  So, hold off doing the ParseData until we're in
10062         SetPropertyValue where we know the type.  This fixes the crash in
10063         #78821 but the textbox is still empty.
10064
10065 2006-08-15  Chris Toshok  <toshok@ximian.com>
10066
10067         * DataGrid.cs:
10068         - when we're scrolling, only call Edit() again if the
10069         current cell is still unobscured. Fixes bug #78927.
10070         - when handling mousedown on a cell, ensure the cell is visible
10071         before calling Edit.
10072         - remove the properties from DataGridRow, and remove the
10073         DataGridParentRow class altogether.
10074         
10075
10076 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
10077
10078         * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
10079           fire OnTextChanged by ourselves. There's no point calling base,
10080           we don't set the base value anywhere else. Fixes #78773.
10081
10082 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10083
10084         * ListBox.cs: Call CollectionChanged when modifying
10085         an item from Items indexer, to update the actual items
10086         in the list box.
10087
10088 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10089
10090         * PrintDialog.cs: Small fixes for focus and a pair of checks,
10091         to match .Net behaviour.
10092
10093 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
10094
10095         * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
10096
10097 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
10098
10099         * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
10100
10101 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
10102
10103         * MessageBox.cs: Prevent potential NRE exception.
10104         * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
10105
10106 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
10107
10108         * MessageBox.cs: Calculate the owner of a messagebox, also make
10109           it topmost. Fixes #78753
10110
10111 2006-08-14  Chris Toshok  <toshok@ximian.com>
10112
10113         * XplatUIX11.cs: A couple of fixes so that metacity will let us
10114         programmatically move windows.  first, set the PPosition hint as
10115         well as the USPosition hint.  Second include some code from pdb
10116         that sets the window type to NORMAL when we set the transient for
10117         hint.  This is because, in the absence of a window type, metacity
10118         thinks any window with TransientFor set is a dialog, and refuses
10119         to let us move it programmatically.  fascists.
10120
10121 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
10122
10123         * XplatUIX11.cs: When setting normal hints, take into consideration
10124           an different hints previously set so we don't delete them (fixes #78866)
10125
10126 2006-08-12  Chris Toshok  <toshok@ximian.com>
10127
10128         * ToolBarButton.cs: make Layout return a boolean, if something to
10129         do with the button's layout changed.
10130
10131         * ToolBar.cs:
10132         - add another parameter to Redraw, @force, which all existing
10133           calls set to true.
10134         - make the Layout function return a boolean which is true if the
10135           layout has actually changed.  Redraw now uses this (and @force)
10136           to determine when to invalidate.  At present the only place
10137           where @force can be false is the call from OnResize, when
10138           background_image == null.  So, resizing a toolbar when the
10139           layout doesn't change results in no drawing.
10140
10141 2006-08-12  Chris Toshok  <toshok@ximian.com>
10142
10143         * ThemeWin32Classic.cs: fix the bottom right corner painting.  had
10144         the VScrollBar and HScrollbar reversed.  oops.
10145
10146         * DataGrid.cs: fix the logic that assigns sizes to the implicit
10147         scrollbars.  we were assigning them twice (once in
10148         Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
10149         therefore causing two scrollbar resizes (and redraws?) to happen
10150         per grid resize.
10151
10152 2006-08-12  Chris Toshok  <toshok@ximian.com>
10153
10154         * ToolBarButton.cs: redraw the entire button if the theme tells us
10155         to.
10156
10157         * Theme.cs: add ToolBarInvalidateEntireButton.
10158
10159         * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
10160         buttons, just the border.
10161
10162         * ThemeNice.cs: redraw the entire toolbar button since we need to
10163         draw the highlight image.
10164
10165         * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
10166         we need to redraw the entire button (not just the border).
10167
10168 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
10169
10170         * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
10171           for vertical bars. Fixes the mismatches shown by #78513
10172
10173 2006-08-11  Alexander Olk  <alex.olk@googlemail.com>
10174
10175         * FileDialog.cs: If a saved/remembered path doesn't exist
10176           anymore, fall back to "Desktop".
10177
10178 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
10179
10180         * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
10181           parent. It's apparently legal to not have one
10182         * XplatUIX11.cs:
10183           - SetZOrder: Don't try to set Z-Order on an unmapped window
10184           - CreateWindow: 0,0 are legal coordinates for a window. don't move
10185             it unless the coordinates are negative
10186
10187 2006-08-10  Mike Kestner  <mkestner@novell.com>
10188
10189         * ListControl.cs: allow null for DataSource.  Clear DisplayMember
10190         when setting to null per msdn docs.  Fixes #78854.
10191
10192 2006-08-10  Chris Toshok  <toshok@ximian.com>
10193
10194         * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
10195         flickering by setting a clip rectangle on the Graphics when we
10196         need to redraw just a particular menuitem.  Also, rename "OnClick"
10197         to "OnMouseDown" to reflect what it actually is.
10198         
10199         * Form.cs: track the OnMouseDown change.
10200
10201 2006-08-10  Peter Dennis Bartok  <pbartok@novell.com>
10202
10203         * CommonDialog.cs: Properly inherit the CreateParams from the form
10204           and only change what we need. Fixes #78865
10205
10206 2006-08-10  Chris Toshok  <toshok@ximian.com>
10207
10208         * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
10209         flickering in flat mode (and most of the flickering in general) by
10210         only invalidating the button border (and not the entire rectangle)
10211         when the state changes.  A couple of cases still flicker:
10212         ToggleButtons, and the dropdown arrow case when the user mouse
10213         ups.
10214
10215 2006-08-10  Alexander Olk  <alex.olk@googlemail.com>
10216
10217         * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
10218           for german keyboards. Numlock state shouldn't affect the behaviour
10219           of the Del key. Fixes bug #78291.
10220
10221 2006-08-10  Chris Toshok  <toshok@ximian.com>
10222
10223         * ListControl.cs: remove the items.Clear line from BindDataItems,
10224         as this is the first thing done by both subclasses in their
10225         SetItemsCore overrides.  Also, add a ItemChanged handler, and when
10226         passed -1, refresh the list.  This gets databinding working when
10227         the datasource is set on the list before the datasource is
10228         populated (as in wf-apps/ReportBuilder.)
10229
10230         * ComboBox.cs: remove the argument to BindDataItems.  This call
10231         should really go away, and be initiated by the ListControl code.
10232
10233         * ListBox.cs: same.
10234
10235 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
10236
10237         * TextControl.cs (Document.ctor): Initialize caret so we don't crash
10238           if no data is in the document when the control is displayed
10239
10240 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com> 
10241
10242         * TextBoxBase.cs: Don't try moving the caret if we don't have a window
10243           yes (fixes #78806)
10244         * TextControl.cs: 
10245           - PositionCaret: Allow positioning of caret but don't call methods 
10246             requiring a handle if the window isn't created yet
10247           - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
10248           - owner_HandleCreated: Don't position the caret, just update it's 
10249             location. User might have already set a different position
10250
10251 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
10252
10253         * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
10254           windows. Screws up the returned coordinates for child windows. 
10255           Fixes #78825. I'm hoping this doesn't break something, since the
10256           code was explicitly put in 8 months ago, but no bug was attached.
10257           Menus still seem to work properly.
10258
10259 2006-08-08  Chris Toshok  <toshok@ximian.com>
10260
10261         * DataGrid.cs: make BeginInit/EndInit actually do what they're
10262         supposed to do - delay data binding until the EndInit call.  Also,
10263         make the table style collection's CollectionChangeAction.Refresh
10264         work properly.
10265
10266         * GridTableStylesCollection.cs: raise a CollectionChangeEvent
10267         (with action = Refresh) when a consituent table's MappingName is
10268         changed.
10269
10270 2006-08-08  Chris Toshok  <toshok@ximian.com>
10271
10272         * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
10273         Invalidate, since changing the text can change the size of the all
10274         toolbar buttons.
10275
10276 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
10277
10278         * Form.cs (AddOwnedForm): Still need to add the form to our listif
10279           we don't have it yet
10280
10281 2006-08-08  Chris Toshok  <toshok@ximian.com>
10282
10283         * PrintControllerWithStatusDialog.cs: don't .Close() the status
10284         dialog, as this causes X errors later on, since we actually
10285         destroy the window.  Instead, .Hide() it.
10286
10287 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
10288
10289         * ComboBox.cs: Added focus reflection for popup window
10290         * XplatUIX11.cs: 
10291           - Removed transient setting for non-app windows for now, not sure it
10292             was needed
10293           - Fixed logic checking if we have captions when deciding 
10294             override_redirect, WS_CAPTION is two bits and a 0 check was not
10295             sufficient
10296           - Removed the WINDOW_TYPE stuff, it was unneeded and making things
10297             complicated
10298         * Form.cs: 
10299           - AddOwnedForm: Don't just add the form to the list, call the property
10300             to ensure the driver is informed about the ownership as well
10301           - CreateHandle: Set the TopMost status in the driver if we have an owner
10302         * XplatUI.cs: Fixed debug statement
10303
10304 2006-08-08  Jonathan Pobst <monkey@jpobst.com>
10305         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
10306           GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
10307           ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs, 
10308           TrackBarRenderer.cs: Make constructor private.
10309         * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
10310         * ProfessionalColorTable.cs: Make properties virtual.
10311
10312 2006-08-06  Duncan Mak  <duncan@novell.com>
10313
10314         * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
10315         is not changing.
10316
10317 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
10318         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
10319           GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
10320           ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
10321           TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
10322           Initial import of new 2.0 classes.
10323
10324 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
10325         * Application.cs: Add 2.0 VisualStyles properties.
10326
10327 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
10328         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
10329           XplatUIX11.cs: Create property to allow access to existing private
10330           variable "themes_enabled"
10331
10332 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10333
10334         * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
10335         file size, as otherwise our class libraries fail using windows. Fixes
10336         bug #78759.
10337
10338 2006-08-04  Jackson Harper  <jackson@ximian.com>
10339
10340         * Form.cs:
10341         * XplatUIX11.cs: Move the toolwindow window manager creation into
10342         the X11 driver, this way on win32 we can let windows create/handle
10343         the toolwindows.
10344
10345 2006-08-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10346
10347         * PrintDialog.cs: Remove some redundant checks, add some others,
10348         clean some code, and move the focus to the text boxes when the
10349         values are incorrect.
10350
10351 2006-08-04  Alexander Olk  <alex.olk@googlemail.com>
10352
10353         * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
10354
10355 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
10356
10357         * NumericUpDown.cs: Setting the Minimum and Maximum is now
10358           handled correctly. Fixes bug #79001.
10359
10360 2006-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10361
10362         * PrintDialog.cs: The "Copies" numeric up down must have
10363         set the Minimum property to 1; only if the value is bigger
10364         than 1, activate "Collate" check box. This is the behaviour of .Net.
10365         Also modify the Document elements only if it is not null.
10366
10367 2006-08-03  Jackson Harper  <jackson@ximian.com>
10368
10369         * TreeNodeCollection.cs: Fix copyto to use the correct nodes
10370         length. (We have a larger array then actual node count).
10371                 
10372 2006-08-03  Jackson Harper  <jackson@ximian.com>
10373
10374         * ComboBox.cs: Don't show selection by default.
10375         - The SelectAll isn't needed here, since the focus code should do
10376         that
10377         - DDL style lists to manual selection drawing, so when they
10378         get/lose focus they have to invalidate.
10379
10380 2006-08-03  Peter Dennis Bartok  <pbartok@novell.com>
10381
10382         * TextBoxBase.cs: Don't always show all selections by default.
10383
10384 2006-08-03  Jonathan Pobst  <monkey@jpobst.com>
10385         * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
10386           HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
10387           Fixed various typos.
10388
10389 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
10390
10391         * Control.cs: Removing the controls in a ControlCollection with
10392           Clear now hides the controls as expected. Fixes bug #78804. 
10393
10394 2006-08-03  Jackson Harper  <jackson@ximian.com>
10395
10396         * Control.cs: Revert previous focus patch, it breaks reflector.
10397
10398 2006-08-03  Jackson Harper  <jackson@ximian.com>
10399
10400         * ComboBox.cs: Cleanup selection and focus with the combobox.
10401         This also eliminates some duplicated keyboard code, since now
10402         everything is handled by the main class.
10403         - Make list selection work on mouse up instead of down, to match
10404         MS.
10405
10406 2006-08-02  Jackson Harper  <jackson@ximian.com>
10407
10408         * Control.cs: Setting focus needs to go through the whole
10409         selection mechanism.
10410
10411 2006-08-02  Chris Toshok  <toshok@ximian.com>
10412
10413         * PrintPreviewDialog.cs: change MinimumSize to use
10414         base.MinimumSize so it works.
10415
10416 2006-08-02  Peter Dennis Bartok  <pbartok@novell.com>
10417
10418         * TextControl.cs:
10419           - UpdateCaret: Added sanity check in case caret isn't defined yet
10420           - Line.Delete: Now updating selection and caret markers if we're
10421             transfering a node (Properly fixes #78323)
10422           - SetSelectionEnd: Added sanity check
10423         * TextBoxBase.cs: Removed broken attempt to fix #78323
10424
10425 2006-08-01  Chris Toshok  <toshok@ximian.com>
10426
10427         * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
10428         Close() call is handled in Form, not here.
10429
10430 2006-08-01  Chris Toshok  <toshok@ximian.com>
10431
10432         * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
10433         layout/rendering.
10434
10435         * PrintPreviewDialog.cs: add scrollbars, and add an image cache
10436         for sizes < 100% zoom.  The code now aggressively attempts to keep
10437         from calling document.Print (), and tries not to use the scaling
10438         g.DrawImage whenever possible (it still does if you scale to >
10439         100%, since usually that involves huge images).
10440
10441         * PrintPreviewControl.cs: hook up the close button.
10442
10443 2006-08-01  Jonathan Pobst  <monkey@jpobst.com>
10444         * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
10445           ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
10446           ItemDragEventHandler.cs, LabelEditEventHandler.cs,
10447           LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
10448           MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
10449           PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
10450           SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
10451           Removed [Serializable] for 2.0 Event Handlers.
10452
10453 2006-07-31  Jackson Harper  <jackson@ximian.com>
10454
10455         * TextBoxBase.cs: Make ShowSelection invalidate when changed.
10456         * TextControl.cs: Uncomment out the body of this method.
10457
10458 2006-07-31  Alexander Olk  <alex.olk@googlemail.com>
10459
10460         * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
10461           standard cursors.
10462
10463 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
10464
10465         * TextBoxBase.cs: Added internal property ShowSelection to allow controls
10466           that embed TextBox and need selections visible even if textbox is not
10467           focused to enforce that behaviour.
10468         * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
10469           selection drawing
10470
10471 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
10472
10473         * TextControl.cs:
10474           - Added new SetSelectionStart/SetSelectionEnd overloads
10475           - Fixed viewport width assignment to be accurate
10476           - Adjusted alignment line shift calculations to allow cursor on right
10477             aligned lines to be always visible at the right border (like MS)
10478         * TextBoxBase.cs:
10479           - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
10480           - TextBoxBase_SizeChanged: recalculating canvas on size changes
10481           - CalculateScrollBars: Use ViewPort size instead of window size, to
10482             properly consider space occupied by the border and scrollbars 
10483             (Fixes #78661)
10484           - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll 
10485             calculations; no longer leaves artifacts
10486           - CaretMoved: Adjusted window scrolling to match MS and fixed several
10487             calculation bugs (Still missing right/center align calculations)
10488
10489 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com> 
10490
10491         * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
10492           use of both scroll rect and clip rect, as they do the same.
10493
10494 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
10495
10496         * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key 
10497           in the event handler (fixes #78912)
10498
10499 2006-07-31  Chris Toshok  <toshok@ximian.com>
10500
10501         * ThemeWin32Classic.cs: use grid.RowsCount here instead of
10502         grid.ListManager.Count, since grid.ListManager might be null.
10503         This of course begs the question "why are we drawing rows for a
10504         grid with no list manager (and therefor no rows)?"  Fixes the
10505         crash in bug #78929.
10506
10507 2006-07-31  Chris Toshok  <toshok@ximian.com>
10508
10509         * RelatedPropertyManager.cs: Don't always chain up to the parent
10510         ctor.  instead, call SetDataSource if the parent's position is !=
10511         -1.  Fixes the crash in #78822.
10512
10513 2006-07-31  Chris Toshok  <toshok@ximian.com>
10514
10515         * DataGrid.cs (get_ListManager): use field instead of property
10516         accessors for datasource and datamember.
10517         (RowsCount): make internal again.
10518         (OnMouseDown): end edits before resizing columns/rows.
10519         (OnMouseUp): restart edits after resizing columns/rows.
10520
10521 2006-07-30  Peter Dennis Bartok  <pbartok@novell.com>
10522
10523         * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
10524           This fixes the situation where the last set cursor is displayed
10525           whenever the mouse is over scrollbars.
10526
10527 2006-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10528
10529         * PrintDialog.cs: Fix the behaviour of PrinterSettings and
10530         Document properties, as well as initial values.
10531
10532 2006-07-29  Peter Dennis Bartok  <pbartok@novell.com>
10533
10534         * XplatUIWin32.cs (SetBorderStyle): Setting both border
10535           and ClientEdge results in a 3-pixel border, which is
10536           wrong.
10537
10538 2006-07-28  Jackson Harper  <jackson@ximian.com>
10539
10540         * TreeNodeCollection.cs: Fix the clear method.
10541         - Fix the Shrink also
10542
10543 2006-07-27  Jackson Harper  <jackson@ximian.com>
10544
10545         * TreeView.cs: Make sure the visible order is computed when we
10546         attempt to size the scrollbars (for trees that mess with the
10547         scrolling when they shouldn't.
10548         - Make sure to give the scrollbars valid values.
10549
10550 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
10551
10552         * XplatUIX11.cs: Move motion compression code to where it
10553           has less performance impact
10554
10555 2006-07-26  Jackson Harper  <jackson@ximian.com>
10556
10557         * UpDownBase.cs: When the control is selected make the child
10558         controls non selectable, so that a click on them won't do a
10559         focus/unfocus cycle.
10560         - Don't give focus to the text box when the spinner is selected.
10561         * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
10562
10563 2006-07-26  Chris Toshok  <toshok@ximian.com>
10564
10565         * ThemeWin32Classic.cs: add print preview rendering.  I'm not
10566         satisfied with this solution.  If the bitmaps are small, we should
10567         just cache them in the PrintPreviewDialog and draw them here.
10568         Also, the layout is broken for the 2-up and 3-up cases.
10569
10570         * Theme.cs: add PrintPReviewControlPaint.
10571
10572         * PrintPreviewDialog.cs: first pass implementation.
10573
10574         * PrintPreviewControl.cs: first pass implementation.  No
10575         scrollbars yet.
10576
10577         * PrintDialog.cs: only validate fields if that particular portion
10578         of the UI is enabled.  Also, set the document's controller to a
10579         PrintControllerWithStatusDialog wrapping the document's print
10580         controller.
10581
10582         * PrintControllerWithStatusDialog.cs: if we're printing to a file,
10583         bring up a SaveFileDialog (i hope we don't want to match the
10584         behavior of the crappy windows file entry) and set the
10585         PrinterSettings.PrintFileName accordingly.
10586
10587 2006-07-26  Jackson Harper  <jackson@ximian.com>
10588
10589         * ContainerControl.cs: Add a field that disables auto selecting
10590         the next control in a container when the container is activated.
10591         * UpDownBase.cs: Don't select the text box when the up down is
10592         selected.
10593
10594 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
10595
10596         * XEventQueue.cs: Added methods for peeking (used for compression
10597           of successive events)
10598         * XplatUIX11.cs (GetMessage): We're now compressing consecutive
10599           mouse move events (fixes #78732)
10600
10601 2006-07-25  Jackson Harper  <jackson@ximian.com>
10602
10603         * UpDownBase.cs: Use an internal class for the textbox so that we
10604         can control focus.  the updown control should always have focus,
10605         if either the text area or the buttons are clicked.
10606         - Send the key messages to the textbox, since it never actually
10607         has focus
10608         - Activate and decativate the textbox caret.
10609
10610 2006-07-24  Jackson Harper  <jackson@ximian.com>
10611
10612         * Control.cs: Use the directed select when selecting a control,
10613         this way the container controls override will get called and the
10614         whole ActiveControl chain will get triggered.  TODO: probably need
10615         to make sure this gets done everywhere instead of the old
10616         Select(Control).
10617         * ContainerControl.cs: Implement the directed Select method to
10618         find and activate the correct child control.    
10619         
10620 2006-07-22  Mike Kestner  <mkestner@novell.com>
10621
10622         * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
10623         menu handling code so that clicks without a grab work too.
10624         [Fixes #78914]
10625
10626 2006-07-22  Alexander Olk  <alex.olk@googlemail.com>
10627
10628         * FileDialog.cs: Enable the BackButton when dirstack has one element.
10629           Added some small optimizations.
10630
10631 2006-07-21  Matt Hargett  <matt@use.net>
10632
10633         * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
10634
10635 2006-07-21  Peter Dennis Bartok  <pbartok@novell.com> 
10636
10637         * Control.cs (GetNextControl): Fixes to make all of Jackson's unit 
10638           tests pass and match MS in some strange border cases.
10639
10640 2006-07-21  Chris Toshok  <toshok@ximian.com>
10641
10642         * ThemeWin32Classic.cs: handle drawing of the relation links and
10643         parent row buttons.
10644
10645         * Theme.cs: change args to DataGridPaintParentRow.
10646
10647         * DataGrid.cs: Don't use controls for the relation links and
10648         parent buttons, so we have to handle all their interactions in
10649         MouseMove, MouseDown, MouseUp, etc.  Also, store a lot more stuff
10650         when we're navigating through child tables, so we can reinstate
10651         selection, expanded state, current cell, etc.
10652
10653 2006-07-20  Chris Toshok  <toshok@ximian.com>
10654
10655         * ToolBar.cs: When we redraw a button, for whatever reason,
10656         there's no reason to redraw the entire toolbar.  Also, don't call
10657         Control.Refresh from within Redraw, as it's much heavier than
10658         Invalidate (which is really what we want).
10659
10660 2006-07-20  Chris Toshok  <toshok@ximian.com>
10661
10662         * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
10663         DataGridTextBoxColumn.cs, DataGridTextBox.cs,
10664         ThemeWin32Classic.cs, ListControl.cs: After staring at stack
10665         traces from within a debug IBindingList datasource
10666         (in mono/winforms/datagrid) for *days*, I've finally gotten things
10667         to work in a similar fashion.
10668
10669 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10670
10671         * ListBox.cs: Don't call Sort () when setting 
10672         the Sorted property to false (avoid an unnecessary sort).
10673
10674 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10675
10676         * ListControl.cs: DataSource should throw an ArgumentException
10677         instead of a normal exception when the argument is not of the 
10678         correct type.
10679
10680 2006-07-20  Mike Kestner  <mkestner@novell.com>
10681
10682         * Control.cs: add InternalPreProcessMessage to allow us to steal
10683         key events before MWF gets its paws on them.  Adapted from a
10684         suggestion by eno.
10685         * ToolBar.cs: add GotLostFocus handing for flat toolbars, with 
10686         up/down/left/right navigation. Override the new internal control
10687         method to steal the events since they never make it to WndProc.
10688         * ToolBarButton.cs: don't worry about pushed when setting hilight
10689         since the drawing code prefers pushed to hilight. Invalidate on 
10690         Hilight changes. Fixes #78547 and #78525.
10691
10692 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
10693
10694         * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
10695           the canvas size. Fixes #78868
10696
10697 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com>
10698
10699         * Splitter.cs: Track requested split position until first layout
10700           is performed. Fixes #78871
10701
10702 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
10703
10704         * Application.cs: Removed code that forces 1.x for the version
10705           number if the version started with 0. Not sure why that code was
10706           there and I couldn't find any bugs that indicated we needed it.
10707           Fixes #78869
10708
10709 2006-07-20  Alexander Olk  <alex.olk@googlemail.com>
10710
10711         * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
10712           ResetDefaults(), just write some output to the console until it's
10713           implemented. Fixes bug #78907 for now. Eliminated two warnings.
10714
10715 2006-07-19  Jonathan Chambers  <joncham@gmail.com>
10716
10717         * PropertyGridView.cs: set StartPosition of drop down forms
10718         so they appear in correct initial spot.  Fixes #78190.
10719
10720 2006-07-19  Mike Kestner  <mkestner@novell.com>
10721
10722         * ThemeWin32Classic.cs: use parent background color when drawing
10723         flat toolbars.  Restructure the conditionals to make sure non-flat
10724         non-Divider toolbars are filled too.  Fixes #78837.
10725
10726 2006-07-19  Mike Kestner  <mkestner@novell.com>
10727
10728         * ListBox.cs: Sort on collection changes even if the handle
10729         isn't created yet.  Fixes #78813.
10730
10731 2006-07-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10732
10733         * ListControl.cs: DisplayMember should never be null,
10734         and now we assign String.Empty when null is passed to it (this
10735         is the .Net way).
10736
10737 2006-07-17  Mike Kestner  <mkestner@novell.com>
10738
10739         * ListViewItem.cs: restructure Font and subitem Font handling 
10740         to hold a specific font and refer back to owner on null.
10741         Fixes #78761.
10742
10743 2006-07-17  Mike Kestner  <mkestner@novell.com>
10744
10745         * ToolBar.cs: bandaid for side-effect of previous patch which was
10746         discarding explicit heights for non-AutoSize toolbars.  Need to
10747         extend my format tester to deal with AutoSize=false. Fixes #78864.
10748
10749 2006-07-15  Jackson Harper  <jackson@ximian.com>
10750
10751         * LabelEditTextBox.cs:
10752         * TreeView.cs: Use a new LabelEdit class for node editing, this
10753         class automatically 'closes' itself when it gets the enter key or
10754         loses focus.
10755         - Use the client rectangle when setting the trees scrollbars, so
10756         border style is taken into account.
10757         
10758 2006-07-14  Jackson Harper  <jackson@ximian.com>
10759
10760         * TreeNode.cs:
10761         * TreeView.cs: Make the editing work similar to MSs, firing the
10762         events correctly and ending edits correctly.
10763
10764 2006-07-14  Mike Kestner  <mkestner@novell.com>
10765
10766         * ToolBarButton.cs:
10767         * ToolBar.cs: layout restructuring and redraw enhancements to support
10768         formatting changes gracefully, like setting TextAlign, ImageList, 
10769         ButtonSize, and Appearance.  Handles explicit button sizing quirks
10770         of the MS controls.  Things like flat toolbars ignoring button size
10771         but becoming constant sized at the largest button's size.  Normal
10772         toolbars with an image set cannot be shrunk smaller than the image,
10773         but text can be clipped/ignored.
10774         * ThemeWin32Classic.cs: don't draw text if text_rect height or width
10775         is zero.  Seems like DrawString should be smart enough to not put
10776         anything on screen though. Also trim labels and ellipsize at the char
10777         boundary, not word.
10778         Fixes #78711 and #78483.
10779
10780 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
10781
10782         * FolderBrowserDialog.cs: Disable "New Folder" button and
10783           "New Folder" contextmenu menuitem if a folder like "My Computer"
10784           is selected.
10785
10786 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
10787
10788         * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
10789         * FolderBrowserDialog.cs:
10790           - Use MWFConfig to store and read size and position settings
10791           - Added code to create a new folder (button or context menu).
10792             Use TreeView labeledit to change the name of the new folder.
10793
10794 2006-07-14  Jackson Harper  <jackson@ximian.com>
10795
10796         * TreeView.cs: Raise the OnAfterLabelEdit event correctly.  Also,
10797         when the tree is scrolled we end editing.
10798
10799 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
10800
10801         * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
10802           Down arrows
10803
10804 2006-07-14  Jonathan Pobst  <monkey@ipobst.com> 
10805
10806         WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
10807         BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
10808         BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
10809         CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
10810         ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
10811         ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
10812         ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
10813         FormClosedEventHandler.cs, FormClosingEventArgs.cs,
10814         FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
10815         ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
10816         ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
10817         ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
10818         ListViewItemSelectionChangedEventHandler.cs,
10819         ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
10820         ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
10821         MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
10822         PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
10823         PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
10824         RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
10825         SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
10826         SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs, 
10827         TabControlCancelEventHandler.cs, TabControlEventArgs.cs, 
10828         TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
10829         TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
10830         ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
10831         ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
10832         TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
10833         TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
10834         TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
10835         WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
10836         WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
10837         WebBrowserNavigatingEventHandler.cs, 
10838         WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
10839
10840 2006-07-14  Jonathan Pobst  <monkey@ipobst.com>
10841
10842         MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
10843         RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
10844         SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
10845         TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
10846         ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
10847         ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
10848         ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
10849         ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
10850         ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
10851         ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
10852         ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
10853         ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
10854         TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
10855         WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
10856         ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
10857         AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
10858         BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
10859         ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
10860         FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
10861         HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
10862         ListViewItemStates.cs, MaskFormat.cs: Added
10863
10864 2006-07-13  Jonathan Chambers  <joncham@gmail.com>
10865
10866         * PropertyGridView.cs: Fix keyboard navigation of drop down.
10867         Patch from eno for bug 78558.
10868         
10869 2006-07-13  Jackson Harper  <jackson@ximian.com>
10870
10871         * TreeView.cs: When an edit is finished make sure that the
10872         selected node is visible.
10873         - When setting the top/bottom use the scrollbars is_visible, so
10874         everything will be set correctly even if the tree isn't visible
10875         yet.
10876
10877 2006-07-13  Jackson Harper  <jackson@ximian.com>
10878
10879         * ComboBox.cs: Revert the item->index part of my previous patch.
10880         * TreeView.cs: Use LostFocus instead of Leave for detecting when
10881         the edit box has lost focus (duh).
10882         - Just make the edit box not visible when we get return, that will
10883         take the focus, which will call EndEdit
10884         * TreeNode.cs When we start editing, notify the treeview.
10885
10886 2006-07-12  Jackson Harper  <jackson@ximian.com>
10887
10888         * ComboBox.cs: Clear out old items before setting the item list.
10889         This prevents databound controls from having their items added
10890         twice.
10891         - Switch the combobox to use indices whereever possible instead of
10892         using Item's.  This allows usto navigate through lists that have
10893         more then one item with the same string value (ie a, b, b, a).
10894         - Scroll the listboxes scrollbar when a non visible item is
10895         highlighted
10896         - Allow keypress to cycle through all the possible values. For
10897         example if you have b1, b2, b3 and hold down the B key all the
10898         values will be cycled through.
10899         
10900 2006-07-12  Jackson Harper  <jackson@ximian.com>
10901
10902         * TextBoxBase.cs:
10903         * ListView.cs: Don't need to override SETFOCUS anymore, we can do
10904         this using the internal methods.
10905         * Control.cs: Add OnGotFocusInternal.  A new method that allows
10906         controls to "override" OnGotFocus and change focus behavior if
10907         needed.
10908         - Same thing for LostFocus
10909         * ComboBox.cs: Pass off focus to the text control properly.
10910
10911 2006-07-12  Alexander Olk  <alex.olk@googlemail.com>
10912
10913         * FileDialog.cs: Added GetFoldersOnly to MWFVFS
10914         * FolderBrowserDialog.cs: Almost a complete rewrite.
10915           - Better support for Environment.Specialfolders
10916           - Added support for MWFVFS
10917           - Made setting SelectedPath work
10918
10919 2006-07-12  Jackson Harper  <jackson@ximian.com>
10920
10921         * Control.cs: Optimze getting all the controls.
10922
10923 2006-07-11  Jackson Harper  <jackson@ximian.com>
10924
10925         * ContainerControl.cs: Override SETFOCUS in the container control,
10926         so that it is not selected on mouse click.
10927
10928 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com> 
10929
10930         * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel. 
10931           Hopefully we will have a better way once all of focus is complete.
10932
10933 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com>
10934
10935         * ThemeWin32Classic.cs: Commented out some debug code and fixed
10936           a compile error with csc.
10937
10938 2006-07-11  Jackson Harper  <jackson@ximian.com>
10939
10940         * Control.cs: When hiding a control only select the next control
10941         if the current control was focused.
10942         - Don't handle enter/leave when setting/killing focus, this is
10943         done by the container control.
10944         - Remove is_selected, it's not needed anymore.
10945         - Add utility methods for selecting a child control, and for
10946         firing the Enter/Leave events.
10947         * ContainerControl.cs: When a control is activated fire the
10948         enter/leave events.
10949         - Don't wrap when processing the tab key, so that focus can be
10950         moved outside of the container.
10951         - Use the correct active control
10952
10953 2006-07-11  Jackson Harper  <jackson@ximian.com>
10954
10955         * ComboBox.cs: Remove some debug code that was blinding me.
10956         * UpDownBase.cs: These controls actually aren't implicit, they are
10957         visible to the user.
10958
10959 2006-07-10  Chris Toshok  <toshok@ximian.com>
10960
10961         * DataGrid.cs: move back to the is_adding boolean field.  god i
10962         hate this is_editing/is_adding/is_changing stuff.
10963
10964 2006-07-10  Chris Toshok  <toshok@ximian.com>
10965
10966         * DataGridTableStyle.cs: just check if the property type is bool.
10967         if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
10968         Don't use CanRenderType.
10969
10970         * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
10971         if our text == NullText.  Remove CanRenderType.
10972
10973         * DataGridBoolColumn.cs: nuke CanRenderType.
10974
10975         * DataGrid.cs: reenable some code to end the current edit inside
10976         of set_CurrentCell.  This fixes the other 1.1.16 regression.
10977         Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
10978         Also, remove the visible_row_count arg from CalcRowHeaders, since
10979         we don't need to worry about the actual height of the area.
10980
10981 2006-07-10  Chris Toshok  <toshok@ximian.com>
10982
10983         * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
10984         mode, just return.
10985
10986         * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
10987         the real sense of the IsInEditOrNavigateMode property (true =
10988         navigate, false = edit).  Also, update OnKeyPress to reflect this.
10989
10990         * DataGridTableStyle.cs (CreateColumnsForTable): even if the
10991         column style exists, we still need to set its property descriptor
10992         to match up with our list manager.
10993
10994 2006-07-10  Chris Toshok  <toshok@ximian.com>
10995
10996         * ThemeWin32Classic.cs: implement the new row/header painting
10997         approach.  The parent row painting will likely go away and
10998         replaced with label controls, but the rest seems to work ok (and
10999         efficiently).
11000
11001         * Theme.cs: change the way we draw datagrid rows.  we don't draw
11002         the row headers as a block now.  Instead we draw them in the
11003         normal draw-row loop.  Add some calls for drawing parent rows and
11004         relation rows.
11005
11006         * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
11007         a default table style.  Set the defaults from ThemeEngine.Current,
11008         not SystemColors.  Fix lots of misc issues with property setters.
11009
11010         * DataGrid.cs: move loads of style information out of this class
11011         as it's being duplicated with DataGridTableStyle.  keep track of a
11012         special DataGridTableStyle for the properties we used to mirror
11013         here.  Switch all the style properties to access this table style
11014         instead of instance fields of this class.  Also add a internal
11015         class to represent parent rows (more needs to be stored here, like
11016         the selection state from the parent table, as well as the
11017         expansion state.)  Also, for datasources with relations, do the
11018         right thing for collapse/expand, and add support for the
11019         navigation/parent row buttons.
11020
11021         Lastly, fix the crash in the 1.1.16 build.
11022
11023         * GridTableStylesCollection.cs: make the explicit interface
11024         implementations call the class's methods as opposed to duplicating
11025         them.
11026
11027         * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
11028         0 so the text doesn't jump around when we move the cursor.
11029
11030 2006-07-10  Jackson Harper  <jackson@ximian.com>
11031
11032         * TextBoxBase.cs:
11033         * ListBox.cs: Match MS's ToString (this makes debugging focus
11034         stuff infinitely easier).
11035
11036 2006-07-10  Jackson Harper  <jackson@ximian.com>
11037
11038         * Control.cs (SelectNextControl): When checking the control's
11039         parent use this instead of ctrl.parent so that null can be passed
11040         to SelectNextControl. (I have unit tests for this).
11041         - Remove unused var.
11042
11043 2006-07-10  Chris Toshok  <toshok@ximian.com>
11044
11045         * CurrencyManager.cs: correct one regression, the removal of the
11046         finalType field.  Also, add a MonoTODO on CanAddRows, implement
11047         Refresh() correctly, and fix some event emission in
11048         ListChangedHandler.
11049
11050 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
11051
11052         * FileDialog.cs: Don't use brackets for new folders if they exist
11053           under *nix. Instead use -(number of existing folders +1).
11054
11055 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
11056
11057         * FileDialog.cs:
11058           - Fixed really nasty bug #78771
11059           - Don't block the whole GUI when reading directories with a lot of
11060             entries. Use an other thread instead and call BeginInvoke to
11061             update the ListView in MWFFileView
11062
11063 2006-07-07  Chris Toshok  <toshok@ximian.com>
11064
11065         * Control.cs (Dispose): release any Capture when disposing.
11066
11067 2006-07-07  Chris Toshok  <toshok@ximian.com>
11068
11069         * LinkLabel.cs (Select): if we chain up to the parent, set
11070         focused_index to -1 so we'll search for the first available link
11071         the next time the user tabs into us.  Also, if the direction is
11072         backward and focused_index == -1, start the search from the last
11073         element.
11074
11075 2006-07-07  Chris Toshok  <toshok@ximian.com>
11076
11077         * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
11078         is beyond the end of the text, don't do anything.
11079         (CreateLinkPieces): set our ControlStyles.Selectable based on
11080         whether or not we have any links.
11081         (Link.Invalidate): use a loop instead of foreach.
11082         (Link.set_Start): null out owner.sorted_links so it'll be
11083         recreated by CreateLinkPieces.
11084
11085 2006-07-06  Chris Toshok  <toshok@ximian.com>
11086
11087         * LinkLabel.cs: revert the SetStyle change.
11088
11089 2006-07-06  Chris Toshok  <toshok@ximian.com>
11090
11091         * LinkLabel.cs (.ctor): SetStyle Selectable to true.
11092         (OnEnableChanged): s/Refresh/Invalidate
11093         (OnGotFocus): if we have a focused index already, refocus it (so
11094         if we mouse out/in to the window it'll focus the right link).
11095         (OnKeyDown): move the tab handling out of here.
11096         (OnLostFocus): don't set focused_index to -1, so we can refocus it
11097         when we lose focus.
11098         (OnMouseDown): don't Capture here - Control handles it.  Also,
11099         focus the active link.
11100         (OnMouseUp): don't deal with Capture.
11101         (OnPaintBackgroundInternal): remove.
11102         (OnTextAlignChanged): CreateLinkPieces before calling the
11103         superclass's method.
11104         (OnTextChanged): call CreateLinkPieces before calling superclass's
11105         method.
11106         (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
11107         move around.
11108         (Select): implement this, moving the selection between different
11109         links, and call parent.SelectNextControl if we don't have another
11110         link to focus in the given direction.
11111         (CreateLinkPieces): call Invalidate instead of Refresh.
11112         
11113 2006-07-06  Chris Toshok  <toshok@ximian.com>
11114
11115         * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
11116         new LinkLabel internals.
11117
11118         * LinkLabel.cs: fairly major rewrite.  get rid of all the loops
11119         over pieces looking for active/focused/etc links.  also, deal with
11120         runs of text (and links) with embedded \n's in them, and use
11121         MeasureCharacterRanges instead of MeasureString to figure out the
11122         regions text occupies.  Lastly, do the usual s/Refresh/Invalidate
11123         two-step.
11124
11125 2006-07-04  Jackson Harper  <jackson@ximian.com>
11126
11127         * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
11128         XKB or key auto repeat, do it manually.  Without key auto repeat,
11129         when a key is held down we get key press, key release, key press,
11130         key release, ... with auto repeat we get key press, key press, key
11131         press ..., and then a release when the key is actually released.
11132
11133 2006-07-03  Jackson Harper  <jackson@ximian.com>
11134
11135         * TabControl.cs:
11136         * ThemeWin32Classic.cs: Tabs do not obey normal background color
11137         rules, they are always control color regardless of the background
11138         color.
11139
11140 2006-07-02  Alexander Olk  <alex.olk@googlemail.com>
11141
11142         * FileDialog.cs: Added internal class MWFConfig.
11143           Removed Registry support and replaced it with support for the new
11144           MWFConfig class. See MWFConfig comments for more information.
11145
11146 2006-06-30  Alexander Olk  <alex.olk@googlemail.com>
11147
11148         * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
11149           rectangle. Added some patches from eno from bug #78490 and fixed
11150           the arrow position for small up and down CPDrawScrollButtons.
11151
11152 2006-06-30  Jackson Harper  <jackson@ximian.com>
11153
11154         * InternalWindowManager.cs: Remove some debug code.
11155         * Form.cs: When an MdiParent is set to null, the window is
11156         "detatched" and becomes a normal window.
11157         * MdiClient.cs: Don't bring the new child form to the front until
11158         it is activated (setting it as active does this), this makes the
11159         previously active forms titlebar get redrawn as inactive.
11160
11161 2006-06-29  Peter Dennis Bartok  <pbartok@novell.com>
11162
11163         * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
11164           with later controls
11165
11166 2006-06-29  Mike Kestner  <mkestner@novell.com>
11167
11168         * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
11169         arrow in keynav state.  Fixes #78682.
11170
11171 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
11172
11173         * PrintDialog.cs: Reorder, relayout, remove extra code, set tab 
11174           order (fixes #78393)
11175
11176 2006-06-28  Jonathan Pobst  <monkey@ipobst.com>
11177
11178         * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs, 
11179           ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
11180           ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
11181           FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
11182           GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
11183           ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs, 
11184           PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
11185           Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
11186           TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
11187           ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
11188           enumerations (FlagsAttribute, SerializableAttribute, added/removed
11189           values)
11190
11191 2006-06-28  Mike Kestner  <mkestner@novell.com>
11192
11193         * ComboBox.cs: implement scroll wheel support. Fixes #78360.
11194
11195 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
11196
11197         * PropertyGrid.cs,
11198           PropertyGridTextBox.cs : explicitly set BackColor to differentiate
11199           item lines from other area (It also makes BackColor consistent and
11200           compatible with .NET). Fixed bug #78564.
11201
11202 2006-06-28  Jonathan Chambers  <jonathan.chambers@ansys.com>
11203
11204         * PropertyGrid.cs: refresh toolbar when PropertySort is set.
11205         Patch from Eno for #78555.
11206
11207 2006-06-27  Chris Toshok  <toshok@ximian.com>
11208
11209         * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
11210
11211         * DataGridColumnStyle.cs: same.
11212
11213         * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
11214         
11215         * DataGridDrawingLogic.cs: nuke.
11216
11217 2006-06-27  Chris Toshok  <toshok@ximian.com>
11218
11219         * DataGridTableStyle.cs: clean up the constructors, and build the
11220         list of child relations for this table.  I have no idea if this is
11221         where we should be doing it (it probably isn't), but since we're
11222         already iterating over the properties..
11223
11224         * DataGrid.cs: add row resizing.  for now we add a DataGridRow
11225         struct and array for keeping track of row information, similar to
11226         what's shown in a hack on
11227         http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
11228
11229         * Theme.cs: be consistent about the naming of DataGrid methods,
11230         prefering ColumnWidths and RowHeights over columnsWidths and
11231         RowsHeights.
11232
11233         * ThemeWin32Classic.cs: same, and also add support for variable
11234         sized rows (and the +/- expansion icons for related rows).
11235
11236 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
11237
11238         * TextBoxBase.cs: Applied Eno's patch from #78660
11239
11240 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
11241
11242         * Form.cs (ScaleCore): We don't want to scale our form if it's
11243           state is minimized or maximized, but we still need to scale our
11244           child windows. Also, added try/finally block to ensure layout
11245           gets reset (Fixes #78697)
11246
11247 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
11248
11249         * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
11250
11251 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
11252
11253         * Form.cs: Fixed c+p error and added check to resize form if minimum
11254           size is bigger than current size (Fixes #78709)
11255
11256 2006-06-26  Peter Dennis Bartok  <pbartok@novell.com> 
11257
11258         * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
11259
11260 2006-06-26  Mike Kestner  <mkestner@novell.com>
11261
11262         * ComboBox.cs: only do Keypress handling in the combo when there  
11263         are items in the collection. Fixes #78710.
11264
11265 2006-06-26  Chris Toshok  <toshok@ximian.com>
11266
11267         * Binding.cs: make this work bi-directionally.  also, clear up
11268         other mixups between Push/Pull Data (e.g. we're supposed to pull
11269         data when validating).
11270
11271         * BindingManagerBase.cs: trim some fully qualified collection
11272         types.
11273
11274         * PropertyManager.cs (get_IsSuspended): oops, fix this check.
11275
11276 2006-06-23  Chris Toshok  <toshok@ximian.com>
11277
11278         * PropertyManager.cs: It appears (according to the unit tests)
11279         that PropertyManager doesn't use
11280         PropertyDescriptor.AddValueChanged to track propery value changes
11281         in its datasource, but uses the same scheme as Binding, where it
11282         looks for a <Property>Changed event and binds to it.
11283
11284         Also, according to the docs, IsSuspended always returns false for
11285         a property manager with a non-null datasource.
11286
11287 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com> 
11288
11289         * Form.cs: (ShowDialog): If we're returning a forced cancel we still
11290           need to update the actual DialogResult. (Fixes #78613)
11291
11292 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com>
11293
11294         * Form.cs (ShowDialog): Release any captures before running the
11295           new message pump (fixes #78680)
11296
11297 2006-06-22  Mike Kestner  <mkestner@novell.com>
11298
11299         * ListView.cs: Layout column widths properly in details mode even 
11300         if HeaderStyle.None is set.  Fixes #78691.
11301
11302 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com>
11303
11304         * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
11305
11306 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com> 
11307
11308         * Control.cs (ContainsFocus): Using new driver method to get focused
11309           window, instead of trying to use internal tracking var, which can
11310           recursion issues (Fixes #78685)
11311         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
11312           XplatUIWin32.cs: Added GetFocus method to return focused window
11313
11314 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
11315
11316         * ColorDialog.cs: when the mouse button is pressed inside the color
11317         matrix, don't let the cursor move out of it until the button is
11318         released, which is the behavior on windows. Changed 'colours' by
11319         'colors' to use the same word consistently.
11320
11321 2006-06-21  Chris Toshok  <toshok@ximian.com>
11322
11323         * DataGrid.cs: add in some basic navigation stuff (navigating to a
11324         child relation and back, using a stack).  Also, remove
11325         GetDataSource and the code that calls it - it's not needed.  Also,
11326         track CurrencyManager.ListName's removal.
11327
11328 2006-06-21  Chris Toshok  <toshok@ximian.com>
11329
11330         * CurrencyManager.cs: push some of the original type checking from
11331         BindingContext.CreateBindingManager to here, and remove some of
11332         the finalType stuff.  Need more tests to make sure I've got the
11333         ListName part right, and we might need more in SetDataSource.
11334
11335         * PropertyManager.cs: add a ctor that takes just the datasource,
11336         and no property name.  Make SetDataSource work with a null
11337         property_name, and make Current return the data_source if the
11338         property descriptor is null.  this makes 'string foo = "hi";
11339         BindingContext[foo].Current' return "hi" as it should.
11340
11341         * RelatedCurrencyManager.cs: make this code more generic - there's
11342         no reason the parent manager has to be CurrencyManager, and
11343         there's no reason to pass the DataRelation.  It suffices to use a
11344         BindingManagerBase and PropetyDescriptor.
11345
11346         * RelatedPropertyManager.cs: make a similar change here.
11347         
11348         * BindingContext.cs: make CreateBindingManager the beautiful, tiny
11349         flower I knew it could be.
11350
11351 2006-06-20  Chris Toshok  <toshok@ximian.com>
11352
11353         * PropertyManager.cs: the PropertyChangedHandler is invoked when
11354         data in the source has changed and we need to update the control,
11355         so s/PullData/PushData.
11356
11357         * CurrencyManager.cs: Refresh is meant to update the control from
11358         data in the datasource.  So, s/PullData/PushData.
11359
11360         * BindingContext.cs: add more ugliness (we weren't handling the
11361         case where data_source = DataTable and data_member = column_name).
11362
11363         * Binding.cs: fix PushData/PullData mixup.  Both are interpreted
11364         from the perspective of the datasource.  PullData pulls from the
11365         control, PushData pushes to the control.
11366
11367 2006-06-20  Chris Toshok  <toshok@ximian.com>
11368
11369         * BindingContext.cs: rewrite the CreateBindingManager code to
11370         handle navigation paths more or less properly.  This could
11371         definitely stand some more work, in particular to push the
11372         recursion up to the toplevel.  But that relies on fixes in other
11373         places (System.Data comes to mind).
11374
11375         Also, move to a flat hashtable (and encode the twolevel nature of
11376         the dictionary into the hash key).  This lets us implement the
11377         IEnumerable.GetEnumerator method.
11378
11379         * RelatedCurrencyManager.cs: new class.  Update our view based on
11380         our relation and our parent CurrencyManager's position.
11381
11382         * CurrencyManager.cs: split out some logic from the ctor into
11383         SetView, so it can be called from the new RelatedCurrencyManager
11384         subclass.
11385
11386         * RelatedPropertyManager.cs: new class.  Update our datasource
11387         based on the position of our parent CurrencyManager.
11388
11389         * PropertyManager.cs: split out some logic from the ctor into
11390         SetDataSource, so it can be called from the new RelatedDataSource
11391         subclass.  Also, make the Current getter return the value
11392         of the PropertyDescriptor, not the data_source.
11393
11394         * Binding.cs: no need to duplicate the string splitting code here.
11395
11396 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
11397
11398         * Control.cs:
11399           - set_Enabled: OnEnabledChanged is not called if the inherited state 
11400             of the control is not altered, even though  we might be changing the
11401             internal state of the control (#78458)
11402           - set_Enabled: (Re)Moved the enabling/disabling of the window to 
11403             OnEnabledChanged, to allow easy altering of any child window state
11404           - OnEnabledChanged: Added code to enable/disable driver window state
11405           - OnParentEnabledChanged: Instead of firing the event, call 
11406             OnEnabledChanged, which will fire the event and also a) set driver
11407             window state and pass the enabled state to any grandchildren (#78458)
11408
11409 2006-06-19  Jackson Harper  <jackson@ximian.com>
11410
11411         * InternalWindowManager.cs: We don't set the cursor explicitly
11412         thats done via the response to NCHITTESTs.
11413         - Don't need to adjust for titlebar heights anymore, the
11414         coordinates are coming in the correct coordinates now (see peters
11415         last patch).
11416
11417
11418 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
11419
11420         * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
11421           being translated relative to whole window, instead of client window.
11422           That caused broken offsets on mouseclick (and caused gas for our
11423           InternalWindowManager)
11424
11425 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
11426
11427         * TextControl.cs:
11428           - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
11429           - Undo(): Added replay of cursor move on DeleteChars action; added
11430             calling Undo() again if a recorded cursor move is invalid (to
11431             ensure that some action is performed on Undo)
11432         * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
11433
11434 2006-06-16  Jackson Harper  <jackson@ximian.com>
11435
11436         * MdiClient.cs: Instead of just sizing maximized windows when
11437         there is a resize we also have to adjust the Y of minimized
11438         windows, so they stay pinned to the bottom of the mdi container.
11439         - Eliminate separate tracking of the active control, we can just
11440         get this from the controls collection.
11441         - Paint the decorations for the newly activated titlebar so we get
11442         a pretty blue bar.
11443         * InternalWindowManager.cs:
11444         * ThemeWin32Classic.cs: Minimized windows get all three buttons
11445         even if they are a tool window.
11446         
11447 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
11448
11449         * TextControl.cs (Undo): Handle non-existent cursor locations in the
11450           undo buffer, these can happen when text was deleted and the cursor
11451           was recorded first. Since we will also have a recorded cursor
11452           after the delete this is not an issue. (Fixes #78651)
11453
11454 2006-06-14  Peter Dennis Bartok  <pbartok@novell.com> 
11455
11456         * AccessibleObject.cs: Remove dependence on Control.is_selected;
11457           instead properly track control states internally (allows us to
11458           remove is_selected from Control)
11459
11460 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
11461
11462         * ImageListStreamer.cs: correctly generate the 1bpp mask for images
11463         whose width is not a multiple of 8.
11464
11465 2006-06-13  Jackson Harper  <jackson@ximian.com>
11466
11467         * MdiClient.cs:  Only maximize the next child if the current one
11468         is maximized.
11469
11470 2006-06-13  Chris Toshok  <toshok@ximian.com>
11471
11472         * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
11473         modified.  Also, guard against grid or grid_drawing being null in
11474         Invalidate.
11475
11476         * DataGrid.cs: Reformat tons of getters/setters.  In the
11477         DataMember setter, just call SetNewDataSource instead of
11478         duplicating some of its functionality.  In SetNewDataSource, don't
11479         check ListManager for null, since the property getter creates the
11480         object if needed.
11481
11482         * DataGridTableStyle.cs: don't set TableStyle or call
11483         SetDataGridInternal on the column here, it's done in
11484         GridColumnStylesCollection.Add.
11485
11486         * GridColumnStylesCollection.cs: fix all the explicit interface
11487         implementations to just call our methods.  Nuke AddInternal() and
11488         move the body of it to Add().  Also, add a call to
11489         column.SetDataGridInternal to Add().
11490
11491         * DataGridTextBoxColumn.cs (.ctors): call this() instead of
11492         base()+duplicate code.  Also, use the Format property instead of
11493         format to generate an Invalidate ala MS.  Lastly, create the
11494         textbox here, unconditionally.
11495         (set_Format): call Invalidate.
11496         (get_TextBox): no need to call EnsureTextBox.
11497         (Commit): remove the message box.
11498         (Edit) remove the call to EnsureTextBox.
11499         (EndEdit): call HideEditBox instead of ReleaseHostedControl.
11500         (EnterNullValue): no need to check textbox for null.
11501         (HideEditBox): no need to check textbox for null.
11502         (SetDataGridInColumn): add the textbox to the grid's controls.
11503         (EnsureTextBox): nuke.
11504         
11505 2006-06-13  Jackson Harper  <jackson@ximian.com>
11506
11507         * MdiWindowManager.cs: Hook up to the maximized menus paint event
11508         and redraw the buttons when needed. Unhook when the window is
11509         unmaximized.
11510         * MainMenu.cs: Add an internal Paint event, the mdi window manager
11511         needs this so that it can redraw its buttons when the menu is
11512         repainted.
11513         * InternalWindowManager.cs:
11514         * Form.cs: The method order has changed for DrawMaximizedButtons,
11515         so that it can be a PaintEventHandler.
11516         
11517 2006-06-13  Jackson Harper  <jackson@ximian.com>
11518
11519         * MdiClient.cs: When we close a maximized mdi window, the next mdi
11520         window is activated and maximized, even if it wasn't before.
11521         - When  a new window is activated repaint the decorations of the
11522         old one, so that it no longer has the Active "look" (the blue
11523         titlebar).
11524         * InternalWindowManager.cs: Open up CreateButtons to base classes
11525         so they can recreate the buttons on state changes.
11526         - If a window is maximized give it all three buttons
11527         * MdiWindowManager.cs: Create the titlebar buttons when the state
11528         is changed, this is needed because a toolwindow will not have all
11529         three buttons until it is maximized.
11530
11531 2006-06-13  Atsushi Enomoto  <atsushi@ximian.com>
11532
11533         * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
11534           Fixed bug #78609.
11535
11536 2006-06-12  Jackson Harper  <jackson@ximian.com>
11537
11538         * KeysConverter.cs: Make sure we handle the Ctrl special case
11539         if its the only key.
11540         
11541 2006-06-12  Jackson Harper  <jackson@ximian.com>
11542
11543         * Theme.cs: Add a method to get the size of a managed window
11544         toolbar button.
11545         * InternalWindowManager.cs: Remove the ButtonSize property, this
11546         should be retrieved from the theme.
11547         * MdiWindowManager.cs: Get the button size from the theme
11548         * ThemeWin32Classic.cs: Make the method to get the managed window
11549         titlebar button size public.
11550         - Handle the different button sizes of maximized toolwindows
11551         (should match any maximized window).
11552         - Get the titlebar height from the theme, not the WM (which gets
11553         it from the theme).
11554
11555 2006-06-12  Jackson Harper  <jackson@ximian.com>
11556
11557         * InternalWindowManager.cs: Handle NC Double Clicks, passing the
11558         event down to the mdi window manager.
11559         - Expose some extra stuff to base classes
11560         - Make sure to end the Capture on an NC Mouse up, so that we can
11561         get double clicks properly, and the sizing doens't stick.
11562         - When doing PointToClient contain it in the workable desktop
11563         area, this prevents windows from changing size when the cursor is
11564         pulled outside of the working area while sizing.
11565         * MdiWindowManager.cs: When we get a double click maximize the
11566         window.
11567         - Reset the cursor after handling mode changes.
11568
11569 2006-06-12  Peter Dennis Bartok  <pbartok@novell.com> 
11570
11571         * XplatUIX11.cs (WorkingArea): Read the actual workarea for the 
11572           current desktop, instead of just assuming a 0, 0 origin. This
11573           is needed for our internal window manager, to know the top
11574           margin of the desktop
11575
11576 2006-06-12  Chris Toshok  <toshok@ximian.com>
11577
11578         * DataGrid.cs (set_CurrentCell): concede focus as we move around.
11579         we need this to get rid of the selected background in the bool
11580         column.
11581         (CancelEditing): move the ConcedeFocus call to above the Abort
11582         call.  Also, set is_changing to false and invalidate the row
11583         header if we were changing before.
11584         (ProcessKeyPreviewInternal): remove, since noone outside this
11585         class calls it anymore.  Roll the code into ProcessKeyPreview.
11586         (EndEdit): remove the internal version.
11587         (InvalidateCurrentRowHeader): make private.
11588
11589         * DataGridBoolColumn.cs: simplify this class a bunch.  remove the
11590         Keys.Escape handling (and with it the last call to
11591         DataGrid.EndEdit from outside the class.)
11592
11593
11594 2006-06-12  Chris Toshok  <toshok@ximian.com>
11595
11596         * DataGridTextBox.cs (.ctor): isedit defaults to false.
11597         (OnKeyPress): set isedit to true.
11598         (ProcessKeyMessage): remove Keys.Enter handling from here.  it's
11599         already handled by the grid.
11600
11601         * DataGrid.cs (set_CurrentCell): more work here.  it's still not
11602         right.  ugh.
11603         (set_DataSource): SetDataSource always returns true, so stop
11604         putting it in an if statement.
11605         (EndEdit): get rid of some {}'s
11606         (ProcessGridKey): return true in case Keys.Escape.
11607         (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
11608         (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
11609         PositionChanged, stopped connecting to CurrentChanged.
11610         (GetDataSource): simplify this a bunch.
11611         (SetDataSource): change return type from bool to void.
11612         (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
11613         to this, and make sure we don't set ListManager.Position inside
11614         set_CurrentCell.
11615         (OnListManagerItemChanged): if we're passed an actual index,
11616         redraw that row.
11617
11618         * CurrencyManager.cs (set_Position): don't call PullData here.
11619
11620 2006-06-09  Jackson Harper  <jackson@ximian.com>
11621
11622         * TreeNode.cs:  Recalculate the visible order before doing the
11623         Expand/Collapse Below calls, because those calls generate an
11624         expose.
11625         - Reduce calls to the TreeView property, which is mildly expensive
11626         by using a local var.
11627         * Form.cs: Layout the MDI child windows when creating the parent
11628         form.
11629         - Don't use the internal constructor anymore
11630         * MdiClient.cs: use the parent form width/height (if available)
11631         when laying out the child windows, we do this because the
11632         mdiclient isn't docked yet when the initial layout is done.
11633         - Don't need an internal constructor anymore.
11634
11635 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
11636
11637         * FileDialog.cs: handle access errors when trying to create a folder
11638         or changing to a directory. No need to initialize out parameters.
11639
11640 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
11641
11642         * FileDialog.cs: Append a number when creating a new folder if the
11643           folder already exists (use parenthesis instead of square brackets)
11644
11645 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
11646
11647         * FileDialog.cs:
11648           - Disabled registry support for windows and added better registry
11649             error checking for other systems (need to investigate why it
11650             works perfectly on my system)
11651           - If a folder already exist show an error MessageBox instead of
11652             trying to create an indexed name.
11653           - Fixed a non intentional typo.
11654
11655 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
11656
11657         * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
11658
11659 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
11660
11661         * FileDialog.cs: When creating a new folder don't crash if the
11662           folder already exists.
11663
11664 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
11665
11666         * FileDialog.cs: Allmost a complete rewrite.
11667           - added a "virtual" file system that handles the differences
11668             between unix and windows file systems (especially the directory
11669             structure). Moved most of the directory and file handling code
11670             into the vfs.
11671             Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
11672             UnixFileSystem and FSEntry.
11673           - Recently used folder/directory, size, location and used file names
11674             (file name ComboBox) are now stored in the registry and get read
11675             before the dialog shows up (fixes part 6 of bug #78446).
11676           - Creation of new folders/directories is now possible (context menu
11677             or ToolBar). Added TextEntryDialog for this that fills in the gap
11678             until ListView.LabelEdit works.
11679           - Fixed cursor handling (bug #78527) and focus handling for
11680             PopupButtonPanel
11681           - Various "Search in" ComboBox enhancements. The content of the
11682             dropdown listbox now almost matches ms.
11683           - Changed the behaviour when the user switches to SpecialFolder
11684             Recent to show the ListView in View.Details.
11685           - Beside using the ToolBar to change the View property of the
11686             file ListView it is now possible to use the context menu too.
11687
11688 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
11689
11690         * ComboBox.cs: Don't create a new ObjectCollection when an item
11691           gets inserted. Just insert the item in the existing object_items
11692           ArrayList.
11693
11694 2006-06-08  Jackson Harper  <jackson@ximian.com>
11695
11696         * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
11697         that the treeview and root node checks are done also, this fixes a
11698         regression i caused in the unit tests.
11699
11700 2006-06-07  Wade Berrier <wberrier@novell.com> 
11701
11702         * RichTextBox.cs: More ISO8859-1 -> unicode
11703
11704 2006-06-07  Mike Kestner  <mkestner@novell.com>
11705
11706         * ComboBox.cs : use items to hold highlight/selection so that
11707         collection insertions don't require synchronization.
11708
11709 2006-06-07  Jackson Harper  <jackson@ximian.com>
11710
11711         * InternalWindowManager.cs: Simplify (and FIX) the window sizing
11712         routine.  We now always keep the sized edge at the cursor instead
11713         of computing movement and adjusting rects.  There is one buglet
11714         with this method though when the cursor is moved over area that
11715         the window can not expand too (such as the toolbars on the desktop).
11716
11717 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
11718
11719         * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
11720         here. Fixes crash on startup in AlbumSurfer.
11721
11722 2006-06-07  Peter Dennis Bartok  <pbartok@novell.com> 
11723
11724         * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
11725           values
11726
11727 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
11728
11729         * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
11730         statement to avoid calling XNextEvent which will block if another thread
11731         took the event that we were expecting. Fixes bug #78605.
11732
11733 2006-06-07  Mike Kestner  <mkestner@novell.com>
11734
11735         * ListView.cs : isolated checkbox clicking from the selection logic.
11736         Toggle check state on item doubleclicks.  Really fixes #78454 part2.
11737
11738 2006-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11739
11740         * Form.cs: Check that the value passed to Form.DialogResult
11741         is a valid enum value.
11742
11743 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
11744
11745         * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
11746         Computer'. Clicking it in the network view goes to 'My Computer'.
11747         Added CIFS filesystem type. Display the mount point of filesystems.
11748         Avoid duplicate mount points (happens for me with CIFS);
11749
11750 2006-06-06  Jackson Harper  <jackson@ximian.com>
11751
11752         * InternalWindowManager.cs: Draw the maximized windows buttons
11753         when resizing.
11754
11755 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
11756
11757         * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
11758         all other dialogs. Fixes bug #78585.
11759
11760 2006-06-06  Mike Kestner  <mkestner@novell.com>
11761
11762         * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
11763         Only invalidate checkbox on checkstate changes to avoid flicker.
11764         * ListBox.cs : avoid unselect/select when clicking selected item.
11765         avoid reselection flicker for already multiselected items.
11766         Fixes #78382.
11767
11768 2006-06-06  Jackson Harper  <jackson@ximian.com>
11769
11770         * MdiWindowManager.cs: When the window is closed do an NCRecalc on
11771         the parent form so that the menu is removed if needed.
11772
11773 2006-06-06  Mike Kestner  <mkestner@novell.com>
11774
11775         * ListBox.cs : add ScrollWindow call to UpdateTopItem.  fix
11776         Prev/Next/PrevPage/NextPage/Home/End index calculation.  Fixes #78559.
11777
11778 2006-06-06  Mike Kestner  <mkestner@novell.com>
11779
11780         * CheckedListBox.cs : rebuild check collection on Add.  Fixes #78426.
11781
11782
11783 2006-06-06  Jackson Harper  <jackson@ximian.com>
11784
11785         * Control.cs: Use the property (instead of the field) to get the
11786         default cursor so it is instantiated correctly.
11787         * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
11788         resizes so we need to manually repaint the window decorations here.
11789         - Set the titlebar button locations as soon as they are created,
11790         otherwise they are not set correctly on win32.
11791         
11792 2006-06-06  Chris Toshok  <toshok@ximian.com>
11793
11794         * CurrencyManager.cs (set_Position): call PullData before
11795         OnCurrentChanged.
11796         (AddNew): after calling IBindingList.AddNew, update our
11797         listposition, and call OnCurrentChanged/OnPositionChanged (without
11798         calling PullData).
11799         (OnCurrentChanged): remove the call to PullData from here.
11800         (OnItemChanged): remove the call to PushData from here.
11801         (OnPositionChanged): change the test from == null to != null to
11802         match the other methods.
11803         (ListChangedHandler): the grossest part of the patch.  Implement
11804         this such that it passes the unit tests in CurrencyManagerTest and
11805         the output more or less matches that of MS's implementation.
11806  
11807 2006-06-06  Mike Kestner  <mkestner@novell.com>
11808
11809         * ListView.cs : only update check state on single click.
11810         * ThemeWin32Classic.cs : fix focus drawing for details view without
11811         fullrowselect.  Fixes #78454.
11812         * XplatUIX11.cs : fix for double click emission.
11813
11814 2006-06-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
11815
11816         * PropertyGridView.cs : Applied Atsushi's patch to fix
11817         font dialog bug  (#78197).
11818
11819 2006-06-05  Jackson Harper  <jackson@ximian.com>
11820
11821         * TreeNode.cs: Compute the next node for expanding/collapsing
11822         correctly. We now factor in nodes without a NextNode
11823         correctly. (Fixes somes cases in nunit-gui).
11824         * InternalWindowManager.cs: Set the bounds when updating the
11825         virtual position of a tool window.
11826         
11827 2006-06-05  Chris Toshok  <toshok@ximian.com>
11828
11829         * DataGrid.cs: rename cached_currencymgr to list_manager.
11830         (set_CurrentCell): move SetCurrentCell code here, and clean it up
11831         some.
11832         (CurrentRow, CurrentColumn): single accessors so we can make the
11833         cursor movement code a lot easier to understand.
11834         (CurrentRowIndex): implement this in terms of CurrentRow.
11835         (BeginEdit): clean this up a bit.
11836         (CancelEditing): sort out the is_editing/is_changing/is_adding
11837         stuff a little.
11838         (EndEdit): minor changes.
11839         (OnKeyDown): add a comment about a (most likely) unnecessary
11840         check.
11841         (OnMouseDown): cancel editing when we click on a row header.  And
11842         use the CurrentRow setter, not CurrentCell.
11843         (ProcessDialogKey): directly call ProcessGridKey.
11844         (UpdateSelectionAfterCursorMove): factor out this common block of
11845         code (it's used everywhere that we move the cursor by updating row
11846         or column).
11847         (ProcessGridKey): pretty substantial overhaul.  Use the
11848         CurrentRow/CurrentColumn properties to make the code a lot more
11849         readable.  Only use the CurrentCell property when we have to
11850         modify both row and column at once.  Tab behavior is still broken,
11851         and Delete is untested.
11852         (Select): if we have no selected rows, set selection_start to
11853         @row.
11854         (EditCurrentCell): rename EditCell this.  It was only ever invoked
11855         with CurrentCell as the arg, so drop the arg and rename it.
11856
11857         * DataGridColumnStyle.cs: clean up the constructors a little, and
11858         drop CommonConstructor().
11859
11860         * DataGridTextBox.cs (.ctor): set accepts_return to true so we
11861         actually get notified when the user hits it.
11862         (ProcessKeyMessage): *substantially* simplify this method.
11863         There's no reason (that I can see) for the textbox to be making
11864         calls into the datagrid at all.  Remove all of them but the ones
11865         for Enter handling.  those will take some more work.
11866
11867         * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
11868         calling HideEditBox.
11869         (HideEditBox): if we have an active textbox, render it invisible
11870         without causing a re-layout of the datagrid.
11871
11872 2006-06-05  Mike Kestner  <mkestner@novell.com>
11873
11874         * ListView.cs : fix NRE crasher when focuseditem is cleared by
11875         collection changes by resetting it to Items[0].  Fixes #78587.
11876
11877 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
11878
11879         * MessageBox.cs: if the height of the text is larger than the icon_size,
11880         use that. Fixes bug #78575.
11881
11882 2006-06-05  Jackson Harper  <jackson@ximian.com>
11883
11884         * TreeView.cs: Fix line drawing when scrolling.  To do this each
11885         node is basically responsible for drawing its entire horizontal
11886         area.  When drawing a node it draws its parent node lines if
11887         needed.
11888         - Adjust the clip area to the viewport rectangle
11889         - Fix Left/Right key handling to match MS. (It expand/collapses
11890         and moves to parents/first child but does not move selection to
11891         sibling nodes).
11892         - Fix SetTop to work with new bound calculation code
11893         - When scrollbars are no longer needed we need to reset scrolling
11894         vars and recalculate the visible order so the redraw is correct
11895         * TreeNode.cs: We can't expand/collapse nodes with no children.
11896
11897 2006-06-03  John Luke  <john.luke@gmail.com> 
11898
11899         * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
11900         so the colors work without dev packages
11901         
11902 2006-06-02  Peter Dennis Bartok  <pbartok@novell.com> 
11903
11904         * Control.cs 
11905           - Select: Implemented to just use activate. Seems to match MS 
11906             behaviour closest. Documented to only do actual control walking 
11907             based on it's parameters if in a container control so I moved 
11908             the code there.
11909           - Removed selection check logic from our internal Select() method
11910         * ContainerControl.cs:
11911           - Select: Moved selection logic from Control here, since MS documents
11912             that containers obey the bool arguments. No longer calling base
11913
11914 2006-06-02  Jackson Harper  <jackson@ximian.com>
11915
11916         * TreeView.cs: If the selected node isn't changed when we get
11917         focus update the previously selected node so that we see the
11918         selection box.
11919
11920 2006-06-02  Mike Kestner  <mkestner@novell.com>
11921
11922         * ComboBox.cs: restructure grab and general mouse event handling.
11923         Make the composite control raise mouse events like it was a single
11924         control for leaves/enters/motion/up/down events.  fix dropdown list
11925         coordinate mangling and refactor it into the scrollbar subclass to
11926         reduce code duplication.  Fixes #78282 #78361 and #78457.
11927
11928 2006-06-02  Mike Kestner  <mkestner@novell.com>
11929
11930         * ScrollBar.cs: remove Capture setting/clearing, as it happens
11931         automatically in the Control.WndProc.
11932
11933 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
11934
11935         * FileDialog.cs: fix crash when running SharpChess, which sets the
11936         FilterIndex to 2 with only one Filter.
11937
11938 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
11939
11940         * ToolBar.cs: add SizeSpecified property.
11941         * ToolBarButton.cs: when the ButtonSize is calculated by the container,
11942         try to figure out our real size, otherwise fallback to what the
11943         container says.
11944
11945 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
11946
11947         * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
11948         * Control.cs (WndProc): MS always calls the DefWndProc to pass
11949           up the event
11950
11951 2006-06-01  Mike Kestner  <mkestner@novell.com>
11952
11953         * ListView.cs: revamp the focus management in ListView.  It still
11954         causes churn of LostFocus/GotFocus emissions on clicks, but it's
11955         better than not handling focus at all.  Will revisit when pdb feels
11956         the general focus handling is solid.  Fixes #78526.
11957
11958 2006-06-01  Jackson Harper  <jackson@ximian.com>
11959
11960         * TreeView.cs: Set the default border style in the constructor.
11961         - Move painting to use OnPaintInternal instead of capturing
11962         WM_PAINT, this is the correct way of doing things
11963         - UpdateBelow shouldn't invalidate the scrollbar area
11964         - Cap the top on update below in case the node was above the top
11965         of the viewport rectangle.
11966         - ExpandBelow and Collapse below need to obey Begin/End Update.
11967         * TreeNode.cs: Make is_expanded internal so the treenode
11968         collection can change it without firing the whole event chain.
11969         * TreeNodeCollection.cs: When clearing all the child nodes make
11970         sure to recalc the visible order.
11971         - Improve algo for remove the top node
11972
11973 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
11974
11975         * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
11976           SendMessage directly calling window procedures, which in turn might
11977           call SetFocus()
11978
11979 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com>
11980
11981         * Control.cs: Don't handle WM_SETFOCUS if the same window already
11982           has focus (works around X11 sending a FocusIn after our SetFocus)
11983         * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
11984
11985 2006-06-01  Alexander Olk  <alex.olk@googlemail.com>
11986
11987         * Mime.cs: Fix for the NET_2_0 build.
11988           NameValueCollection needs StringComparer now.
11989
11990 2006-05-31  Chris Toshok  <toshok@ximian.com>
11991
11992         * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
11993         return (via an out parameter) the starting X of the column.
11994         (UpdateVisibleColumn): track change to FromPixelToColumn.
11995         (HitTest): add a ColumnResize case here.
11996         (DrawResizeLine): new function, probably poorly named.
11997
11998         * DataGrid.cs (.ctor): get rid of cached_currencymgr_events.  We
11999         only need to keep one reference.
12000         (set_ListManager): same.
12001         (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
12002         Also, add support for HitTestType.ColumnResize.
12003         (OnMouseMove): add column resize behavior here, and change the
12004         cursor to the correct one as we move around the datagrid.
12005         (OnMouseUp): terminate the column resize if we're resizing.
12006         (ProcessGridKey): from the MS docs, Alt-0 enters the null value
12007         for the current cell.
12008         (ConnectListManagerEvents): use cached_currencymgr.
12009         (DisconnectListManagerEvents): fill this in, using
12010         cached_currencymgr.
12011         (SetCurrentCell): remove cached_currencymgr_events handling.
12012         (SetDataMember): only call DisconnectListManagerEvents if
12013         cached_currencymgr is != null.
12014         (SetDataSource): same.
12015         (OnListManagerCurrentChanged): cached_currencymgr_events ->
12016         cached_currencymgr.
12017
12018 2006-05-31  Jackson Harper  <jackson@ximian.com>
12019
12020         * BindingManagerBase.cs: Remove somedebug code that creeped into
12021         SVN.
12022         * TreeNode.cs: We get the indent level dynamically right now, so
12023         don't track it as a member.
12024         * TreeNodeCollection.cs: Make sure all nodes added to the list
12025         have parents, treeviews/topnodes setup properly.
12026         - Don't attempt to track indent level.
12027
12028 2006-05-30  Jackson Harper  <jackson@ximian.com>
12029
12030         * BindingContext.cs: Create the currency manager tables here.
12031         This allows us to more easily create null tables (when bad data
12032         members are used), and more easily create related currency
12033         managers.
12034         * CurrencyManager.cs: All the table creation stuff is done by the
12035         binding context now.
12036         - Current should throw an exception if listposition is -1.
12037         - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
12038         been bound yet.
12039
12040 2006-05-30  Mike Kestner  <mkestner@novell.com>
12041
12042         * ListView.cs: allow reexpansion of zero-width column headers.
12043         Fixes #78528.
12044
12045 2006-05-28  Chris Toshok  <toshok@ximian.com>
12046
12047         * CurrencyManager.cs (get_Current): after the late binding
12048         listposition = -1 fix, we need to guard against it here and return
12049         null, otherwise we raise an exception (which is swallowed
12050         elsewhere, and breaks datagrid databinding.)
12051
12052 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
12053
12054         * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
12055           than WM_SYSKEY, don't throw if get something unexpected (#78507)
12056
12057 2006-05-26  Jackson Harper  <jackson@ximian.com>
12058
12059         * ControlPaint.cs:
12060         * ThemeWin32Classic.cs: For color comparisons just use the ARGB
12061         values, it's faster and it's all we care about (we don't care if
12062         the names aren't equal).
12063         * KeyboardLayouts.cs: Eliminate some dead code.
12064         - Lazy init things
12065         * X11Keyboard.cs: Lazy init keyboard detection.
12066         - Cleanup access modifiers a little.
12067
12068 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
12069
12070         * XplatUIX11.cs: Once again, attempting to get layout just right.
12071
12072 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com> 
12073
12074         * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
12075           the sizes of each link section, that will result in sizes that
12076           match DrawString's layout (Fixes #78391)
12077
12078 2006-05-27  Alexander Olk  <alex.olk@googlemail.com>
12079
12080         * FileDialog.cs: If AddExtension property is true autocomplete the
12081           extensions in SaveFileDialog correctly. Fixes bug #78453.
12082           Set MyNetwork and MyComputer to "C:\" for windows. This should
12083           fix part 8 of bug #78446 for now.
12084
12085 2006-05-26  Chris Toshok  <toshok@ximian.com>
12086
12087         * DataGrid.cs (ColumnStartedEditing): fill these in.  for now just
12088         invalidate the current row header if we need to, but presumably
12089         we'll invalidate the row corrsponding to the bounds or
12090         editingControl.
12091         (GridHScrolled): switch back to this method, as it's part of the
12092         public api.  *sigh*.
12093         (GridVScrolled): same.
12094         (OnMouseWheel): hack up something that more or less works.  Call
12095         GridHScrolled/GridVScrolled directly, instead of duplicating much
12096         of their code here.
12097         (EnsureCellVisibility): reinstate a bunch of this code, since we
12098         can't just set the scrollbar Value and expect to do all the work
12099         in the ValueChanged handler.  Also, Call Update() after scrolling
12100         in one direction so the other XplatX11.ScrollWindow call has the
12101         proper stuff in the proper places.
12102         (EditCell): set is_editing to true before calling .Edit.
12103
12104         * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
12105         don't bother comparing first.
12106         (OnKeyPress): call grid.ColumnStartedEditing before calling
12107         base.OnKeyPress.  this will set is_changing and invalidate the row
12108         header if necessary.
12109         (ProcessKeyMessage): for WM_CHAR messages, call
12110         ProcessKeyEventArgs directly.  swallow anything other than WM_CHAR
12111         and WM_KEYDOWN.
12112         
12113         * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
12114         it's done in the DataGrid.
12115         (NextState): call grid.ColumnStartedEditing, which takes care of
12116         invalidating the row header (and setting is_changing).
12117
12118         * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
12119         here.  it's done in the DataGrid.
12120
12121 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12122
12123         * Control.cs: allow changing the cursor when the mouse position is
12124         out of bounds but Capture is set.
12125         * LinkLabel.cs: handle the case when the mouse button is pressed on the
12126         linklabel but released somewhere else.
12127
12128 2006-05-25  Jackson Harper  <jackson@ximian.com>
12129
12130         * TreeView.cs: When we get focus if there is no selected node make
12131         it the top node
12132         - Remove some uneeded setup code from Draw.
12133         * TreeNodeCollection.cs: If the tree doesn't have a top node when
12134         a new node is inserted make the new node the top.
12135         * XplatUIX11.cs:
12136         * Timer.cs: Use Utc time so that no local time zone stuff needs to
12137         be used (should be faster).
12138         
12139 2006-05-25  Chris Toshok  <toshok@ximian.com>
12140
12141         * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
12142         problem with the last commit.
12143
12144 2006-05-25  Chris Toshok  <toshok@ximian.com>
12145
12146         * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
12147         need the invalidate call here, while scrolling right-to-left via
12148         the left arrow key (i.e. moving the editing cell while scrolling).
12149
12150         * DataGrid.cs (.ctor): remove the initialization of
12151         ctrl_pressed/shift_pressed.  We no longer track them using key
12152         up/down handlers, but by using Control.ModifierKeys.  Also, switch
12153         to using ValueChanged handlers on the scrollbars instead of
12154         Scrolled event handlers.  This simplifies a bunch of the scrolling
12155         code.
12156         (GridHValueChanged): rename from GridHScrolled, and change it to
12157         work with the new event args.
12158         (GridVValueChanged): same.
12159         (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
12160         (OnMouseWheel): actually scroll the datagrid.  Don't change the
12161         selected cell.
12162         (ProcessGridKey): correct all the keyboard navigation stuff I
12163         could find.  Ctrl up/down/left/right/home/end work now.
12164         (EnsureCellVisibility): correct method name spelling.  Also,
12165         simplify this a touch by not explicitly calling the
12166         ScrollToRow/ScrollToColumnInPixels methods.  We just set the
12167         scrollbar value.
12168         (OnKeyUpDG): no need for this method now.
12169         
12170 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12171
12172         * LinkLabel.cs: display the OverrideCursor when hovering the label.
12173         Fixes bug #78392.
12174
12175 2006-05-25  Chris Toshok  <toshok@ximian.com>
12176
12177         * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
12178         r61019.
12179
12180 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
12181
12182         * Application.cs: Moved setting of is_modal and closing to before
12183           we create the control, to allow the event handlers called as a
12184           result of creation affect closing. Also removed Gonzalo's previous
12185           change to setting DialogResult, the behaviour has been moved to 
12186           Form.ShowDialog()
12187         * Form.cs: 
12188           - ShowDialog(): Removed explicit creation of the form, let RunLoop
12189             handle it instead
12190           - ShowDialog(): If no dialog result is set, we need to return Cancel
12191           - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
12192             the close is cancelled
12193
12194 2006-05-25  Jackson Harper  <jackson@ximian.com>
12195
12196         * StatusBar.cs: We only need to update the sizes of the other
12197         panels when we have auto size contents.  Also we are only updating
12198         the contents of the panel, not the borders, so compensate for the
12199         border width (TODO: get this width from the theme somehow).
12200         * TreeView.cs: Scrollable is true by default
12201         - Use invalidate instead of refresh where needed
12202         - Factor the scrollable value into scrollbar updating
12203         - Update the scrollbars if the Scrollable property is altered
12204         - Update the selected node if its ImageIndex is changed
12205         - Handle null nodes in UpdateNode (mainly so we don't have to
12206         check if selected is null when updating it
12207         - Fix VisibleCount to use the ViewportRectangle so that scrollbars
12208         are factored into the visible count
12209         - Use VisibleCount for clarity in the code
12210         - When the font is changed we need to recurse through all the
12211         nodes and invalidate their sizes
12212         
12213 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12214
12215         * Application.cs: set the DialogResult to fixed when the main form is
12216         hidden or destroyed while being modal.
12217
12218 2006-05-25  Miguel de Icaza  <miguel@novell.com>
12219
12220         * Theme.cs: Use Tangoified messagebox icons. 
12221
12222         (GetSizedResourceImage): Also cope with width = 0 and do not
12223         trigger a warning in that case (0 means "give me your icon from
12224         the resouce, no special size needed).
12225
12226 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
12227
12228         * Application.cs: Leave runloop if the the main modal form is 
12229           hidden (fixes #78484)
12230
12231 2006-05-25  Atsushi Enomoto  <atsushi@ximian.com>
12232
12233         * BindingContext.cs : reject null datasource in Contains() and
12234           Item[].
12235         * CurrencyManager.cs : check data_member validity when data_source
12236           is dataset. When it is late binding, the initial position is -1.
12237
12238 2006-05-24  Jackson Harper  <jackson@ximian.com>
12239
12240         * TreeNodeCollection.cs: Dont't recalculate the visible order on
12241         inserted nodes that aren't visible.  This changes the
12242         max_visible_order which confuses scrollbar settings.
12243         - Use the enumerator to get the prev node instead of duplicating
12244         code.
12245         * TreeView.cs: Use new method for setting scrollbar values
12246         - Don't set the bounds every time the scrollbar is updated
12247         - When updating below the root node use an invalidate instead of a
12248         refresh to prevent the child controls (scrollbars) from being
12249         refreshed. (UpdateBelow still needs to be reworked anyways).
12250         - Reenable SetBottom now that visible orders are set correctly,
12251         added some debug code incase we ever get bad values there again.
12252         - Set the scrollbar max to 2 less then the max value, this
12253         compensates for the max value being one above the node count, and
12254         for scrollbars adding one extra "notch".
12255         - When drawing image nodes if there is an imagelist we draw the
12256         first image in the list if the supplied image index is out of the
12257         image list's bounds.
12258         
12259 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
12260
12261         * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when 
12262           we receive a size change from the WM (Fixes #78503)
12263
12264 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com>
12265
12266         * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip 
12267           rectangle (Fixes #78501)
12268
12269 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
12270
12271         * ButtonBase.cs: 
12272           - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button 
12273             as a bitfield.
12274           - Fixed MouseMove to no longer switch pressed state unless the left
12275             mouse button is pressed. Atsushi provided the original patch (#78485)
12276           
12277 2006-05-24  Jackson Harper  <jackson@ximian.com>
12278
12279         * ScrollBar.cs: New internal methods that allow us to change a
12280         couple values on the scrollbar (the most common case is maximum
12281         and large change) without getting multiple invalidates.
12282
12283 2006-05-24  Chris Toshok  <toshok@ximian.com>
12284
12285         * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
12286         (Edit): save off the original state in oldState, and set
12287         grid.is_editing to true.
12288         (OnKeyDown): abort editing if escape is pressed.  also, call
12289         NextState if space is pressed.
12290         (OnMouseDown): call NextState.
12291         (NextState): factor out shared code from OnKeyDown and OnMouseDown
12292         here.  Also, only invalidate the row header once (on the initial
12293         is_changing switch) to save on redraws.
12294
12295 2006-05-24  Chris Toshok  <toshok@ximian.com>
12296
12297         * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
12298         if the value in the cell is different than it was before.  This
12299         keeps us from triggering a layout when we move around a datarid
12300         with a highlighted cell.
12301         (Edit): suspend layout when creating/positining the text box, and
12302         resume passing false so we don't ever actually re-layout.
12303         (ReleaseHostedControl): same.
12304         (EnsureTextBox): reformat slightly, and set WordWrap to false.
12305
12306         * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
12307         control-key sequences should go to the datagrid - remove that
12308         lock.  Also, modify the conditions under which we move between
12309         cells when moving the cursor within a cell, and remove the "this"
12310         and "base" from field accesses.  We weren't even consistent, given
12311         they all were in the base class.
12312
12313 2006-05-24  Atsushi Enomoto  <atsushi@ximian.com>
12314
12315         * Binding.cs : (.ctor)
12316           An obvious NRE fix for BindingTest.CtorNullTest().
12317
12318 2006-05-23  Chris Toshok  <toshok@ximian.com>
12319
12320         * TextBoxBase.cs (get_Text): don't add a trailing newline, add
12321         them between lines.  This fixes some quirks editing cells in the
12322         datagrid.
12323
12324 2006-05-23  Jackson Harper  <jackson@ximian.com>
12325
12326         * TreeView.cs: Use begin/end update when doing expand/collapse all
12327         so that we don't get flicker on the scrollbar.
12328
12329 2006-05-23  Jackson Harper  <jackson@ximian.com>
12330
12331         * TreeNode.cs: Bounds are computed 'on the fly' now.  This allows
12332         treenode calculations to be independant of the painting code. To
12333         do this nodes track a visible order which is calculated by the
12334         treeview.
12335         - Call new methods for expanding/collapsing nodes.  These methods
12336         use scrollwindow so we don't have to update everything below the
12337         node.
12338         * TreeView.cs: Refactored drawing and scrolling code.  We don't
12339         need to update nodes when drawing anymore or calculate scrollbar
12340         stuff.
12341         - Added new methods for expanding/collapsing nodes. These methods
12342         use ScrollWindow so as to not have to redraw all the nodes below.
12343         * TreeNodeCollection.cs: Recalc visible order and scrollbars when
12344         we add/remove nodes or sort.
12345         - Handle removing the selected and the top node properly.
12346
12347 2006-05-23  Chris Toshok  <toshok@ximian.com>
12348
12349         * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
12350         maybe this should actually happen in the datagrid code?
12351         (EndEdit): no need to invalidate anything, given that
12352         ReleaseHostedControl causes the datagrid to relayout, which
12353         invalidates everything anyway.
12354
12355         * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
12356         in SetCurrentCell).
12357         (set_SelectionBackColor): call InvalidateSelection instead of
12358         Refresh.
12359         (set_SelectionForeColor): same.
12360         (BeginEdit): Flesh this out a bit.
12361         (CancelEditing): only do any of this if we're editing/adding.
12362         (EndEdit): same.
12363         (OnMouseDown): there's no need to cancel editing here, it's done
12364         in SetCurrentCell.
12365         (SetCurrentCell): only invalidate the current row header if it's a
12366         different row than the new one.
12367         (ShiftSelection): fix this to work like MS does.
12368         (ResetSelection): factor out the invalidation of selected_rows to
12369         InvalidateSelection.
12370         (SetDataSource): cancel any editing that's going on.
12371
12372         * DataGridColumnStyle.cs
12373         (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
12374         call the non-interface version.
12375
12376         * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
12377         header rectangle with the clip rectangle so we don't redraw the
12378         entire header for just a small area.  Gets rid of the last flicker
12379         when horizontally scrolling.
12380         (DataGridPaintRow): same.
12381
12382 2006-05-23  Mike Kestner  <mkestner@novell.com>
12383
12384         * ListViewItem.cs: remove size for line hack from LargeIcon layout.
12385         * ThemeWin32Classic.cs: don't draw line.  it's really the top of a
12386         poorly placed checkbox on the MS control.  Fixes Alex's unfiled
12387         Critical bug report.
12388
12389 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
12390
12391         * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
12392           and this fixes #78493
12393
12394 2006-05-23  Miguel de Icaza  <miguel@novell.com>
12395
12396         * Theme.cs (GetSizedResourceImage): Scale images if the proper
12397         size is not found.  
12398         
12399         * FileDialog.cs: Do not change the background for the side bar as
12400         it wont work nicely with the theme, and also reduces the artifacts
12401         in rendering the icons (which I want to fix too).
12402
12403         * MimeIcon.cs (ResourceImageLoader): Load images from assembly
12404         resources, not resgen resources. 
12405
12406         (PlatformDefaultHandler): Pull images using the new API.
12407
12408 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
12409
12410         * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
12411           a reference to the hwnd and will not remove it unless there are
12412           no pending exposures (fixes #78341)
12413         * XplatUI.cs: Improved debug
12414
12415 2006-05-23  Atsushi Enomoto  <atsushi@ximian.com>
12416
12417         * MenuAPI.cs : don't handle OnClick event when it was not the left
12418           button. Fixed bug #78487.
12419
12420 2006-05-23  Mike Kestner  <mkestner@novell.com>
12421
12422         * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
12423         prefer submenus to the top menu for item lookup, to avoid popping down
12424         top-row items.
12425
12426 2006-05-23  Alexander Olk  <alex.olk@googlemail.com>
12427
12428         * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
12429           Graphics.FillRectangle as the visual results are really bad (even
12430           on win). We now draw perfect arrows (and perfect shadows when the
12431           scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
12432           Pen.DashPattern to draw the dots of each line.
12433
12434 2006-05-22  Alexander Olk  <alex.olk@googlemail.com>
12435
12436         * FileDialog.cs: Update the filename combobox when navigating through
12437           the ListView with the cursor keys. Fixes part 7 of bug #78446.
12438
12439 2006-05-22  Mike Kestner  <mkestner@novell.com>
12440
12441         * ListView.cs: raise SelectedIndexChanged on keyboard selection.
12442         Fixes #78463.
12443
12444 2006-05-22  Mike Kestner  <mkestner@novell.com>
12445
12446         * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
12447         requests. Fix a misspelled parameter and a copy paste exception error
12448         in Select.
12449
12450 2006-05-22  Peter Dennis Bartok  <pbartok@novell.com> 
12451
12452         * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
12453           to get the same width/height (5/13) on X11 as the default font has on
12454           win32. This means that our DefaultFont emSize is smaller than the 
12455           the MS SWF equivalent (even thought the width/height stays the same)
12456
12457 2006-05-20  Jackson Harper  <jackson@ximian.com>
12458
12459         * MdiClient.cs:
12460         * MdiWindowManager.cs:
12461         * InternalWindowManager.cs: Make sure to use the border width from
12462         the theme.
12463
12464 2006-05-20  Jordi Mas i Hernandez <jordimash@gmail.com>
12465
12466         * PrintDialog.cs: Implements printer details
12467
12468 2006-05-19  Alexander Olk  <alex.olk@googlemail.com>
12469
12470         * FileDialog.cs: Added focus handling for PopupButtonPanel.
12471           Fixes part 1 and 2 of bug #78446
12472
12473 2006-05-19  Peter Dennis Bartok  <pbartok@novell.com> 
12474
12475         * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
12476           instead of sticking to the first ever calculated value
12477
12478 2006-05-19  Mike Kestner  <mkestner@novell.com>
12479
12480         * ComboBox.cs: fix mouse motion selection to use MousePosition and
12481         PointToClient, since Capture is set. Fixes #78344.
12482
12483 2006-05-19  Mike Kestner  <mkestner@novell.com>
12484
12485         * ListView.cs: match MS behavior in Details view where items are not
12486         drawn if Columns.Count == 0. 
12487         * ThemeWin32Classic.cs: only highlight ListView selection if focused.
12488         Use a separate pen to draw the check, since changing the width affects
12489         the box as well.  Fixes #78454.
12490
12491 2006-05-18  Miguel de Icaza  <miguel@novell.com>
12492
12493         * ListView.cs: ArgumentOutOfRangeException, single versions of the
12494         exception should throw the name of the invalid argument.
12495
12496         * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
12497         there are no files listed. 
12498
12499 2006-05-18  Jackson Harper  <jackson@ximian.com>
12500
12501         * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
12502         up.
12503
12504 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
12505
12506         * Control.cs: Brought back our old UpdateZOrder method as a private
12507           function and switched our calls from UpdateZOrder to the new one.
12508           This fixes the Paint.Net canvas disappearing bug.
12509
12510 2006-05-18  Jackson Harper  <jackson@ximian.com>
12511
12512         * Theme.cs:
12513         * ThemeWin32Classic.cs:
12514         * InternalWindowManager.cs: Move the drawing into the theme,
12515         expose everything the theme should need from the window manager.
12516
12517 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
12518
12519         * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value 
12520           from the call to NativeWindow to avoid walking up the parent chain
12521           further than needed (speeds up setting cursors and avoids setting
12522           the wrong cursor if a parent has another cursor defined)
12523         * Cursor.cs: When loading an icon as cursor, MS uses the center of
12524           the icon as hotspot, not what's contained as hotspot in the icon
12525           file. This fixes the perceived drawing offset seen with Paint.Net
12526         
12527 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
12528
12529         * XplatUIX11.cs: 
12530           - Store the calculated rectangle in Hwnd object and use it when 
12531             setting the client size
12532           - Force Toolwindows to always be type Dock, to ensure they're on top
12533
12534 2006-05-18  Mike Kestner  <mkestner@novell.com>
12535
12536         * ComboBox.cs: first pass at ComboBox rework.  Layout is more
12537         consistent with MS positioning.  IntegralHeight, ItemHeight, Sizing.
12538         Correctly initialize textcontrol and ListBox on DropDownStyle changes. 
12539         Substantial refactoring to remove confusing nested classes. Coding
12540         standard and Get+Set->property refactorings.  Shift to index based
12541         highlighting in ComboListBox instead of constantly using IndexOf and
12542         Items[]. Add invalidations on resize for DropDownList to fix ugliness
12543         in FileDialog growth.  Draw borders manually since Simple mode needs
12544         to look like two independent controls.  Make listbox border
12545         conditional to DropDownStyle.  Improved OwnerDraw support.
12546
12547 2006-05-18  Sebastien Pouliot  <sebastien@ximian.com>
12548
12549         * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor. 
12550         Don't set the disposed graphics to null, so we can throw the "right"
12551         exception if the graphics is reused later (added a flag to avoid 
12552         double disposing). Some behaviours are different under 2.0 and are
12553         filled under bug #78448.
12554
12555 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
12556
12557         * Control.cs: When double-buffering is enabled, we need to reset
12558           our graphics context between paint calls. Otherwise, any 
12559           transformations and other alterations on the context will 
12560           become cumulative (#77734)
12561
12562 2006-05-18  Mike Kestner  <mkestner@novell.com>
12563
12564         * ListView.cs: do focused item selection like MS on clicks. 
12565         Rework focus handling for ItemControl so LostFocus invalidates as
12566         well.
12567         * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
12568         the ListView ItemControl has focus.
12569
12570 2006-05-17  Peter Dennis Bartok  <pbartok@novell.com>
12571
12572         * XplatUIX11.cs: If client_window ends up being width or height zero
12573           due to border settings, move it off window inside whole_window (#78433)
12574
12575 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
12576
12577         * Mime.cs: Shrink the mime file cache correctly.
12578
12579 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
12580
12581         * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
12582
12583 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
12584
12585         * XplatUIX11.cs (AddExpose): More sanity checks
12586
12587 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
12588
12589         * XplatUIX11.cs:
12590           - AddExpose: Don't add expose ranges outside the size of our
12591             window
12592           - Cast opacity values to Int32 to avoid crashes with certain
12593             values
12594           - Added disabled code paths that protect against illegal cross-
12595             thread painting (Developers.exe)
12596
12597 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
12598
12599         * ProgressBar.cs: Invalidate the control when it's resized
12600           since block size is based on control size. (#78388)
12601
12602 2006-05-16  Miguel de Icaza  <miguel@novell.com>
12603
12604         * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
12605         of setting the incoming argument to the "reset" value, we set the
12606         this.datamember to string.empty (before we were invalidating the
12607         incoming data).   
12608
12609         Fixes 78420
12610
12611 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
12612
12613         * Form.cs: Only apply transparency settings after the form
12614           is created. (Fixes #77800)
12615
12616 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
12617
12618         * ApplicationContext.cs: Grab the HandleDestroyed event so
12619           we know when to fire OnMainFormClosed 
12620
12621 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
12622
12623         * Application.cs: Introduced sub-class to allow tracking of
12624           threads and centralized triggering of the event mess for
12625           ThreadExit, AppExit, etc..  (#76156)
12626
12627 2006-05-16  Alexander Olk  <alex.olk@googlemail.com>
12628
12629         * MimeIcon.cs:
12630           - Do not return a null icon index value for a mime subclass.
12631             Instead try the main mime type class too.
12632           - Seems that some newer distributions don't have a link to some
12633             gnome default icons anymore. So check the default gnome dir too.
12634           
12635
12636 2006-05-16  Jackson Harper  <jackson@ximian.com>
12637
12638         * MdiClient.cs: Don't paint the parent background image if we have
12639         our own background image.
12640
12641 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
12642
12643         * Control.cs:
12644           - PerformLayout: Do not shrink space filled by DockStyle.Fill
12645             controls, all filled controls are supposed to overlap (#78080)
12646           - UpdateZOrder is supposed to update the control's z-order in the
12647             parent's z-order chain. Fixed to behave like that
12648           - BringToFront: Removed obsolete code
12649           - SendToBack: Simplyfied
12650           - SetChildIndex: Trigger layout calculations when Z-order changes
12651             since layout is done by z-order
12652
12653 2006-05-16  Chris Toshok  <toshok@ximian.com>
12654
12655         [ fixes bug #78410 ]
12656         * DataGrid.cs (set_AlternatingBackColor): use
12657         grid_drawing.InvalidateCells instead of Refresh().
12658         (set_BackColor): call grid_drawing.InvalidateCells.
12659         (set_BackgroundColor): use Invalidate instead of Refresh.
12660
12661         * DataGridDrawingLogic.cs (InvalidateCells): new function, just
12662         invalidate the cell area.
12663
12664 2006-05-15  Chris Toshok  <toshok@ximian.com>
12665
12666         [ fixes bug #78011 ]
12667         * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
12668         on to DataGridPaintRow.
12669         (DataGridPaintRow): take a clip argument, and only draw the cells
12670         which intersect it.  same with the not_usedarea.
12671
12672         * Theme.cs (DataGridPaintRow) add @clip parameter.
12673
12674         * DataGrid.cs (ScrollToColumnInPixels): simplify, use
12675         XplatUI.ScrollWindow.
12676         (ScrollToRow): same.
12677
12678         * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
12679         with last column which was causing a gray swath to appear with the
12680         XplatUI.ScrollWindow code.
12681
12682 2006-05-15  Chris Toshok  <toshok@ximian.com>
12683
12684         * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
12685         use XplatUI.ScrollWindow.
12686         (VerticalScrollEvent): use XplatUI.ScrollWindow.
12687
12688 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com> 
12689
12690         * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
12691
12692 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
12693
12694         * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
12695           file since there are no equivalent X11 cursors
12696
12697 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
12698
12699         * MonthCalendar.cs : DateTimePicker should reflect selected date
12700           on mouse*up*, not mouse*down*. Fixed originally reported part of
12701           bug #76474.
12702
12703 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
12704
12705         * TabControl.cs : When argument index is equal or more than tab
12706           count, just ignore. Fixed bug #78395.
12707
12708 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
12709
12710         * Control.cs: Dispose all child controls when control is diposed (#78394)
12711
12712 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
12713
12714         * ColorDialog.cs: Finally it is possible to select the color with
12715           the text boxes
12716
12717 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
12718
12719         * PrintDialog.cs: Fix typo
12720
12721 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
12722
12723         * PrintDialog.cs: PrintDialog is not resizable
12724         * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
12725           color. Made some ToolBar drawing methods protected virtual.
12726
12727 2006-05-13  Jordi Mas i Hernandez <jordimash@gmail.com>
12728
12729         * PrintDialog.cs: Implementation of the PrintDialog
12730
12731 2006-05-12  Chris Toshok  <toshok@ximian.com>
12732
12733         * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
12734         thumb, instead use MoveThumb.  This has the side effect of making
12735         most of the other thumb moving machinery use MoveThumb as well.
12736         (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
12737         need to actually invalidate the rectangle where the new thumb will
12738         go.
12739         (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
12740         We force an Update() after, so it's not as fast as it could be,
12741         but at least there's zero flicker and no droppings.
12742         (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
12743         (UpdateThumbPos): add another argument (dirty), which says whether
12744         or not to calculate/add dirty regions which we later invalidate.
12745         For cases where we know we're going to use MoveThumb, we pass
12746         false for this.  Otherwise, pass true.
12747
12748 2006-05-12  Jackson Harper  <jackson@ximian.com>
12749
12750         * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
12751         the status bar.
12752         
12753 2006-05-12  Peter Dennis Bartok  <pbartok@novell.com>
12754
12755         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
12756           and GetClipRegion methods and UserClipWontExposeParent property.
12757         * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
12758           overriding UserClipWontExposeParent property, setting to false, since
12759           Win32 handles the required expose messages to draw our clipped parent
12760           areas internally
12761         * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
12762           PaintEventStart to set the user clip region if set.
12763         * Control.cs: 
12764           - Now internally tracking the Region for the control since we need to
12765             store it if the handle is not yet created and only set it when it
12766             becomes created. Before setting the region forced handle creation
12767           - Added code to draw the parents underneath a user-clipped region
12768         * Hwnd.cs: Added UserClip property
12769
12770 2006-05-12  Chris Toshok  <toshok@ximian.com>
12771
12772         * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
12773         (set_Maximum): same.
12774         (set_Minimum): same.
12775         (set_SmallChange): same.
12776         (OnMouseUpSB): remove the call to refresh when releasing the
12777         thumb.  We shouldn't need it.
12778         
12779 2006-05-12  Miguel de Icaza  <miguel@novell.com>
12780
12781         * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
12782         AutoSize set to None, we do not need to relayout everything, we
12783         just need to invalidate the current region.
12784
12785         (Draw): Do not draw the entire ClientArea, just redraw the
12786         clip area being passed.
12787
12788         * MdiClient.cs: Make MdiClient constructor with the Form argument
12789         internal. 
12790
12791 2006-05-12  Jackson Harper  <jackson@ximian.com>
12792
12793         * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
12794         parents background image,  but strangely not their own.
12795         - (DrawStatusBarPanel): Take into account horizontal alignment
12796         when drawing the strings and icons.
12797
12798 2006-05-12  Mike Kestner  <mkestner@novell.com>
12799
12800         * ListBox.cs: avoid invalidations for focus when the collection is
12801         empty. 
12802
12803 2006-05-12  Chris Toshok  <toshok@ximian.com>
12804
12805         * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
12806         invalidate the entire thumb area.  Call InvalidateDirty which
12807         limits the redraw to the thumb itself and surrounding pixels.
12808
12809         * XplatUIX11.cs (ScrollWindow): optimize copying.
12810         
12811 2006-05-12  Chris Toshok  <toshok@ximian.com>
12812
12813         * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
12814         Figure out the positioning/layout in a single pass instead of
12815         multiple recursive invocations.  Speeds up the initial display of
12816         the data grid.  Also, make many things private that were
12817         originally public but unused outside this class.
12818
12819 2006-05-11  Jackson Harper  <jackson@ximian.com>
12820
12821         * MdiClient.cs: Improved layout code.
12822
12823 2006-05-11  Jonathan Chambers  <jonathan.chambers@ansys.com>
12824
12825         * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
12826           not SelectedObject.
12827
12828 2006-05-11  Chris Toshok  <toshok@ximian.com>
12829
12830         * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
12831         union of that will always be {0,0,width,height}.
12832
12833 2006-05-11  Jackson Harper  <jackson@ximian.com>
12834
12835         * Form.cs: Match MS's DefaultSize for forms (they must have
12836         changed the size in sp2).
12837
12838 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
12839
12840         * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
12841
12842 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
12843
12844         * TextControl.cs : Fixed bug #78109. This incorrect position
12845           comparison caused crash on automatic line split.
12846         * TextBoxBase.cs : reduce duplicate code.
12847
12848 2006-05-10  Jackson Harper  <jackson@ximian.com>
12849
12850         * MdiClient.cs: Active form is only sent to the back when using
12851         the Next form functionality, when a form is clicked the current
12852         active shouldn't be sent to the back.
12853         - Layout the mdi windows when the container is first made visible.
12854         * Form.cs: Give the MdiClient a ref to the containing form when we
12855         create it.
12856         
12857 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
12858
12859         * LinkLabel.cs : link_font could be uninitialized, so populate one
12860           before actual use. Fixed bug #78340.
12861
12862 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
12863
12864         * XplatUIX11.cs : clipboard format native value is IntPtr.
12865           Fixed bug #78283.
12866
12867 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
12868
12869         * Control.cs: 
12870           - Instead of showing context menus directly we send WM_CONTEXTMENU, 
12871             which is passed up the parent chain by DefWndProc
12872           - We now handle WM_CONTEXTMENU to display any menu, or pass it 
12873             to DefWndProc (#77956)
12874         * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
12875
12876 2006-05-10  Jackson Harper  <jackson@ximian.com>
12877
12878         * MdiClient.cs: We need to remove the controls from the mdi
12879         collection, when we close the window.
12880         * MdiWindowManager.cs: Special handling of closing mdi windows.
12881         * InternalWindowManager.cs: Make the close method virtual so the
12882         mdi window manager can handle it specially.
12883
12884 2006-05-10  Jordi Mas i Hernandez <jordimash@gmail.com>
12885
12886         * DataGrid.cs:
12887           - Recalculate grid when the data source has changed
12888           - Matches styles provided by user from all data sources types
12889         * DataGridTableStyle.cs: For columns that provided by the user set the
12890         with the preferred value is there was unassigned.
12891         * CurrencyManager.cs: throw OnItemChanged event
12892
12893 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com> 
12894
12895         * PictureBox.cs: Don't animate until handle is created. Start animation
12896           when handle is created.
12897
12898 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
12899
12900         * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
12901           current codebase.
12902         * XEventQueue.cs: We don't need to provide the extra info
12903
12904 2006-05-10  Jackson Harper  <jackson@ximian.com>
12905
12906         * MdiClient.cs: If the mdi clients parent form has a background
12907         image set, we draw that background image for the mdi area's
12908         background.
12909
12910 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
12911
12912         * TextBoxBase.cs: Set IBeam cursor (#78347)
12913
12914 2006-05-10  Mike Kestner  <mkestner@novell.com>
12915
12916         * ToolBar.cs: fix some text padding issues with ButtonSize
12917         calculation. Update the default size to match MS documentation.
12918         * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
12919         button size. Fixes #78296.
12920
12921 2006-05-10  Mike Kestner  <mkestner@novell.com>
12922
12923         * ListBox.cs: use is_visible for scrollbar positioning in case the
12924         control isn't on screen yet.  Fix off by one with Right vs Width
12925         usage.  Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
12926         
12927 2006-05-10  Jackson Harper  <jackson@ximian.com>
12928
12929         * X11Dnd.cs: Drop to a control with another control on top of it.
12930         * ToolBar.cs: Work on a copy of the buttons list, so that it can
12931         be modified in click handlers. TODO: Look for similar problems in
12932         other controls.
12933
12934 2006-05-09  Jackson Harper  <jackson@ximian.com>
12935
12936         * Form.cs: Window managers need the old window state when setting
12937         window state now.
12938         * InternalWindowManager.cs: Allow the base mdi window manager to
12939         handle more of the MDI only stuff (like maximize buttons).
12940         * MdiWindowManager.cs: Fix some snafus in changing the window
12941         state.  Add all the menu functionality, for both popup and
12942         maximized menus.
12943         * MdiClient.cs: When a new form is selected the currently
12944         activated form is sent to the back, this matches MS.
12945         - Implement a new method to activate the next mdi child window.
12946
12947 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com>
12948
12949         * Control.cs: 
12950           - Added new InternalCapture method to allow controls to prevent
12951             the capture behaviour on the click handlers
12952           - Switched to use InternalCapture
12953         * ComboBox.cs:
12954           - Using InternalCapture to prevent mouse captures from being released
12955             on mouse button release (Fixes #78100)
12956         * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
12957           returns Form borders if a caption is present. (Fixes #78310)
12958
12959 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com> 
12960
12961         * TreeNode.cs: Changed serialization .ctor to not require every field
12962           to be present. (#78265)
12963         * OwnerDrawPropertyBag.cs: Added serialization .ctor
12964
12965 2006-05-05  Alexander Olk  <alex.olk@googlemail.com>
12966
12967         * MimeIcon.cs: for is faster than foreach for strings.
12968
12969 2006-05-05  Mike Kestner  <mkestner@novell.com>
12970
12971         * CheckedListBox.cs: update check handling code to not use selected.
12972         * ListBox.cs: rewrite of mouse selection handling to correspond to MS
12973         behavior for visual feedback, motion response, shift/ctrl handling,
12974         and properly deal with all 4 selection modes. Updates to bounds
12975         handling logic.  Add scroll wheel support. [Fixes #77842]
12976
12977 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
12978
12979         * ListView.cs:
12980           - Moved adding of Implicit controls into .ctor. That way, subsequent
12981             creation of the controls will not cause them to think they are 
12982             toplevel windows (fixes #78200 header problem)
12983           - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
12984           - Switched visibility setting of header control to use internal field
12985             to avoid triggering handle creation
12986           - Now checking if handle is created before causing a refresh when items
12987             are added (This makes us now match handle creation time with MS)
12988         * Splitter.cs: Removed loading of private splitter cursor, switched to
12989           Cursors version now that that is loading the right ones
12990         * Cursors.cs: Load proper splitter cursors from resources
12991         * Cursor.cs: Added second method of loading resource cursors for the 
12992           VS.Net users amongst us
12993
12994 2006-05-05  Mike Kestner  <mkestner@novell.com>
12995
12996         * ListView.cs: give header_control a minimum size based on the
12997         ListView size.
12998
12999 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
13000
13001         * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
13002           window seems to do that with metacity, so set that type. (#78120)
13003
13004 2006-05-05  Mike Kestner  <mkestner@novell.com>
13005
13006         * ListViewItem.cs: fix Details mode checkbox layout bug.
13007         * ThemeWin32Classic.cs: draw a ListView column header for unused space
13008         at the end of the header, if it exists. [Fixes for #78200]
13009
13010 2006-05-04  Jackson Harper  <jackson@ximian.com>
13011
13012         * MdiClient.cs: Add a helper property to get the container form.
13013         * MdiWindowManager.cs: We have to make sure to use the menu origin
13014         when drawing the icons and buttons, this fixes maximized window
13015         icons/buttons on win32.
13016         * InternalWindowManager.cs: Reset the restore captions when a
13017         window goes from Maximized to Minimized and vice versa. Move the
13018         DrawMaximizedButtons into the MdiWindowManager source, tool
13019         windows can't be maximized. NOTE: This could use a little
13020         refactoring if time ever permits.
13021         
13022 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
13023
13024         * TextBox.cs: Add MWFCategoryAttributes
13025         * TextBoxBase.cs: Add MWFCategoryAttributes
13026         * Form.cs: Add MWFCategoryAttributes
13027
13028 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
13029
13030         * Control.cs: Add MWFCategoryAttributes
13031         * ScrollableControl.cs: Add MWFCategoryAttributes
13032
13033 2006-05-03  Alexander Olk  <alex.olk@googlemail.com>
13034
13035         * ThemeWin32Classic.cs: Draw the ToolBar top border only if
13036           Divider is true. Fix a little glitch in PropertyToolBar
13037           drawing code
13038
13039 2006-05-02  Peter Dennis Bartok  <pbartok@novell.com> 
13040
13041         * Control.cs:
13042           - Dispose: Call base.Dispose, this causes the disposed event
13043             to be fired (and probably other, more important stuff)
13044           - SetVisibleCore: Set is_visible to true after creating the
13045             window so that the window still gets created invisible (if
13046             WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
13047             to generate a WM_ACTIVE message
13048         * Form.cs: Call Dispose when we want to destroy the window, instead of
13049           just destroying the handle (Dispose will do that for us)
13050         * XplatUIX11.cs:
13051           - RootWindow also needs a queue, so we can properly process the
13052             property change events from RootWindow (like Activate)
13053           - Generatic synthetic WM_ACTIVE message when the active window is
13054             being destroyed
13055
13056 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
13057
13058         * LinkLabel.cs: Trigger a recalc of our label dimensions when
13059           bounds are changed
13060
13061 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com>
13062
13063         * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
13064           for determining width and height (image might not be assigned if
13065           we're drawing an imagelist)
13066
13067 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
13068
13069         * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
13070         * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
13071           height from system
13072         * Theme.cs: No longer returns hardcoded menu height, instead calls
13073           new driver method
13074         * Form.cs (OnLoad): Scaling happens before triggering Load events 
13075           on MS (# 78257)
13076
13077 2006-05-01  Mike Kestner  <mkestner@novell.com>
13078
13079         * MenuItem.cs: fix NRE for text == null.  Fixes #78250.
13080
13081 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com> 
13082
13083         * TextBoxBase.cs: Removed Fixme
13084         * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
13085
13086 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com>
13087
13088         * XplatUIX11.cs:
13089           - ScrollWindow: We were passing hwnd.ClientRectangle which returns
13090             the rectangle relative to the parent, considering borders. We
13091             don't really want that.
13092           - ScrollWindow: Fixed warning to be more understandable
13093         * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
13094           scrollbars and scroll only the visible area
13095         * RichTextBox.cs: Removed debug output
13096
13097 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
13098
13099         * NumericUpDown.cs (Text): Just use base
13100         * UpDownBase.cs: Ensure txtView is created before using it
13101
13102 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
13103
13104         * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
13105           casting to IntPtr to avoid 64bit overflow errors
13106
13107 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
13108
13109         * Control.cs:
13110           - AllowDrop: Don't force handle creation.
13111           - CreateHandle: Added call to tell driver if we're allowed to drop
13112
13113 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
13114
13115         * FileDialog.cs: Remember the last directory not only for the
13116           current instance but also for new FileDialog instances.
13117
13118 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
13119         
13120         * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
13121           broke sending async messages
13122
13123 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
13124
13125         * XplatUIX11.cs:
13126           - ScrollWindow: Fixed method. We finally generate expose events again
13127             for scrolled areas. This was causing 'garbage' when scrolling
13128             textbox and other controls that used ScrollWindow
13129           - Switched from using the regular queue for paint events to the MS 
13130             model of 'generating' paint events when the queue is empty.
13131             We use the new XQueueEvent.Paint subclass to store which windows
13132             need painting.
13133           - AddExpose now takes the x/y/width/height of the exposed area
13134             and inserts the window into the paint queue if not already there
13135           - InvalidateWholeWindow: Switched to use new AddExpose method
13136           - UpdateMessageQueue: Added which queue to monitor for paint events
13137           - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
13138             the unlikely case nothing above handles it. We reset the expose
13139             pending states to get them off the queue.
13140           - GetMessage: Now pulls a paint event if no other events are in the
13141             queue
13142           - Invalidate: Switched to new AddExpose method
13143           - PeekMessage: Updated to understand pending paint events
13144           - UpdateWindow: Fixed logic bug. We were only updating if the window
13145             didn't need updating. Also switched to sending WM_PAINT directly,
13146             like MS does.
13147         * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
13148           and random access Remove(). The random access is needed to handle
13149           UpdateWindow() where a WM_PAINT is sent directly without accessing
13150           the queue.
13151         * ScrollBar.cs: Added Update() calls to cause immediate updates to
13152           allow for better feedback when scrolling. Scrollbars are small and
13153           the immediate update should make it 'feel' more responsive without
13154           slowing things down. ScrollBar still needs it's invaliate logic
13155           updated to not always invalidate the whole bar on certain changes.
13156
13157 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
13158
13159         * Control.cs:
13160         (BackColor): if the control does not support a transparent background,
13161         return the default backcolor when the parent backcolor is transparent.
13162
13163 2006-04-28  Peter Dennis Bartok  <pbartok@novell.com>
13164
13165         * Application.cs: Updated to new StartLoop/GetMessage API
13166         * RichTextBox.cs: Provide some output on RTF parsing errors
13167         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
13168           new queue_id argument to GetMessage and PeekMessage to allow faster
13169           handling of per-thread queues in drivers.
13170         * Hwnd.cs: Added Queue tracking and property
13171         * MenuAPI.cs: Updated to new StartLoop/GetMessage API
13172         * XEventQueue.cs: Added thread trackingA
13173         * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
13174         * XplatUIX11.cs:
13175           - Implemented new per-thread queue
13176           - GetMessage: Fixed return/break behaviour on several cases. We were
13177             returning stale messages in some cases, instead of just processing
13178             the next message
13179
13180 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
13181
13182         * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
13183
13184 2006-04-27  Peter Dennis Bartok  <pbartok@novell.com>
13185
13186         * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
13187           fixed off-by-one comparisons between Width/Height and Right/Bottom.
13188
13189 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
13190
13191         * PropertyGridView.cs: Fix drop down width.
13192
13193 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
13194
13195         * ThemeWin32Classic.cs: Peter thinks that three additional lines are
13196           a mess in DrawToolBar, so I removed one of them.
13197
13198 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
13199
13200         * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
13201           needed (clip). Otherwise we get artifacts.
13202
13203 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
13204
13205         * FixedSizeTextBox.cs: Added constructor to allow specifying which
13206           dimension is fixed
13207         * UpDownBase.cs: Set the spinner control to be fixed height vertical,
13208           and switched FixedSizeTextBox to only be fixed vertical (#78116)
13209         * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
13210           if it matches the scale base font (avoids unneeded scaling)
13211
13212 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
13213
13214         * X11DesktopColors.cs: One gtk_init_check should be enough
13215
13216 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com> 
13217
13218         * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
13219           match MS behaviour
13220
13221 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
13222
13223         * TextBoxBase.cs: 
13224           - Generate OnTextChanged for Backspace even if we're only deleting
13225             the current selection
13226           - When setting the Text property, only select all text if the
13227             control does not have focus when it is being set. Otherwise
13228             just place the cursor at the beginning of the control
13229
13230 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
13231
13232         * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
13233           Added a little helper to draw PropertyGrid ToolBar with a different
13234           border and a different BackColor.
13235         * PropertyGrid.cs: Some background parts didn't get painted with the
13236           correct background color. Added a class that helps us to draw the
13237           correct border for PropertyGridView and a class that helps us to
13238           draw ToolBars with a different backcolor
13239         * PropertyGridView.cs: Draw PlusMinus with the correct colors.
13240
13241 2006-04-25  Jonathan Chambers  <jonathan.chambers@ansys.com>
13242
13243         * PropertyGrid.cs: Bug 78196, font size, and splitter location.
13244         * PropertyGridView.cs: Bug 78196, font size, and splitter location.
13245
13246 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
13247
13248         * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
13249           into the palette entries. Also, since we're working on a copy
13250           we needed to copy the palette back onto the bitmap.
13251         * Cursor.cs: Same fix as XplatUIWin32.cs.
13252
13253 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com>
13254
13255         * ImageListStreamer.cs: Need to read the var (or we're off)
13256
13257 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
13258
13259         * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs, 
13260           XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
13261           TextBoxBase.cs: Unused var fixes
13262         * AxHost.cs: Small 2.0 fix
13263         * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms 
13264           as it seems that is what at least Metacity expects. This will make
13265           icons show up on 64bit platforms. We still have some 64bit size
13266           issues, though, since the startup app window size still won't match.
13267
13268 2006-04-25  Mike Kestner  <mkestner@novell.com>
13269
13270         * *.cs: cleanup newly reported exception var unused warnings.
13271
13272 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
13273
13274         * ThemeWin32Classic.cs: Button image alignment now matches exactly
13275           ms
13276
13277 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
13278
13279         * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
13280           image. The image position is always the same, no matter if the
13281           button is pressed or not.
13282
13283 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
13284
13285         * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
13286           selection and set the correct filename for SaveFileDialog.
13287           Patch by Emery Conrad.
13288
13289 2006-04-24  Mike Kestner  <mkestner@novell.com>
13290
13291         * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
13292         check for item.X outside the ClientRect instead of item.Y. Fixes
13293         #78151.
13294
13295 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
13296
13297         * ImageListStreamer.cs: some images store a wrong grow factor, so don't
13298         trust that value blindly and do some sanity check. Fixes bug #77814.
13299
13300 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
13301
13302         * ImageListStreamer.cs: save the mask as a 1bpp image.
13303
13304 2006-04-21  Mike Kestner  <mkestner@novell.com>
13305
13306         * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
13307         pass Checked and Indeterminate to the Theme Engine. Improve
13308         encapsulation with ListBox.
13309         * ListBox.cs: Keep a StringFormat instead of calculating it every item
13310         draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
13311         nested types.  Move all CheckState functionality to CheckedListBox.
13312         Make IntegralHeight work like MS.  Rewrite of Layout engine.  Fix
13313         OwnerDrawVariable layout/rendering.  Fix multicolumn rendering.  Fix
13314         ScrollAlwaysVisible handling. Refactor "selected" collections to use a
13315         single base list. Fix scrollbar sizing and placement to mirror MS.
13316         * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
13317         used.
13318         * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
13319         for CheckedListBox by using new DrawItemState info.  Center the
13320         checkboxes on the items. Use new StringFormat property.
13321
13322 2006-04-18  Jackson Harper  <jackson@ximian.com>
13323
13324         * Form.cs: MdiChildren don't do default locations the same way as
13325         regular forms.  This prevents a crash when trying to position the
13326         mdi windows.
13327
13328 2006-04-17  Jonathan Chambers  <jonathan.chambers@ansys.com>
13329
13330         * PropertyGridTextBox.cs: Formatting, copyright
13331         * PropertiesTab.cs: Formatting
13332         * PropertyGrid.cs: Formatting
13333         * PropertyGridView.cs: Formatting, fix drop down, enabled double 
13334           click toggling of values
13335           
13336 2006-04-17  Peter Dennis Bartok  <pbartok@novell.com> 
13337
13338         * KeyPressEventArgs: Added 2.0 only setter for KeyChar
13339         * Control.cs (.ctor): verify_thread_handle is static, don't reset
13340           every time a control is created
13341         * Application.cs: Removed obsolete EnableRTLMirroring method
13342
13343 2006-04-18  Gert Driesen  <drieseng@users.sourceforge.net>
13344
13345         * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
13346         SelectedIndex to -1. Fixes bug #78121.
13347
13348 2006-04-17  Jackson Harper  <jackson@ximian.com>
13349
13350         * Binding.cs: Handle null values for Current and BindingContext.
13351         This occurs when binding is a little delayed.
13352         * CurrencyManager.cs: return null for Current when there are no
13353         items in the list.
13354         - Hookup to the listchanged event on the DataView and update
13355         bindings when the list is changed.  This fixes late binding of
13356         controls.
13357
13358 2006-04-17  Jackson Harper  <jackson@ximian.com>
13359
13360         * X11Dnd.cs:
13361         * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
13362         Ringenbach.
13363
13364 2006-04-15  Alexander Olk  <alex.olk@googlemail.com>
13365
13366         * ThemeWin32Classic.cs: Draw disabled combo button in the correct
13367           place
13368         * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
13369           with the correct ButtonState
13370
13371 2006-04-14  Peter Dennis Bartok  <pbartok@novell.com>
13372
13373         * XplatUIX11.cs: Improved distinguishing between window types to
13374           tell the WM a type closer to what the app wants (Fixes #78107)
13375
13376 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
13377
13378         * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
13379           GrabHandle
13380
13381 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
13382
13383         * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
13384           drawing code to reflect the size grip changes
13385
13386 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
13387
13388         * ImageListStreamer.cs: fix handling of the mask that follows the main
13389         bitmap when deserializing and serialize it properly. The generated mask
13390         should better be a 1bpp image, but I'll do that later.
13391
13392 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
13393
13394         * FileDialog.cs: Show something in the DirComboBox on *nix if the
13395           path doesn't fit into some of our Current.Places
13396
13397 2006-04-13  Jackson Harper  <jackson@ximian.com>
13398
13399         * ComboBox.cs: Use borders instead of drawing our own decorations,
13400         try to obey correct rules for heights.
13401         * Theme.cs:
13402         * ThemeNice.cs:
13403         * ThemeClearLooks.cs:
13404         * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
13405         this is now handled by borders.
13406         - Remove unused DrawListBoxDecorationSize method.
13407         
13408 2006-04-13  Mike Kestner  <mkestner@novell.com>
13409
13410         * MenuAPI.cs: null guarding for the disbled click check fixes crash
13411         reported by Alex.
13412
13413 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
13414
13415         * ThemeWin32Classic.cs: 
13416           - Fixed CPDrawStringDisabled
13417           - Corrected drawing of disabled menu items
13418           - Fixed drawing of disabled radio buttons (bug #78095)
13419           - Draw check in a disabled CheckBox with color ControlDark 
13420
13421 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
13422
13423         * Form.cs: Use the provided width when calculating the menu size;
13424           when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
13425           and ClientSize.Width won't be updated yet
13426         * Application.cs: Use Visible instead of Show() to make form visible,
13427           this way we create the handle later and menusize is considered
13428
13429 2006-04-12  Mike Kestner  <mkestner@novell.com>
13430
13431         * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
13432         reporting.
13433
13434 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
13435
13436         * TextBox.cs: Implemented context menu
13437
13438 2006-04-12  Mike Kestner  <mkestner@novell.com>
13439
13440         * ListView.cs: implement box selection. fixes #77838.
13441         * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
13442
13443 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
13444
13445         * XplatUIX11.cs: Added setting of window type when transient window
13446           is created (metacity would move it otherwise)
13447         * X11Structs.cs: Added WINDOW_TYPE atoms
13448         * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
13449           background (the control is Opaque but still wants transparent
13450           backgrounds)
13451
13452 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
13453
13454         * Control.cs: Added OnPaintBackgroundInternal to allow controls
13455           that set Opaque but don't mean it (like all ButtonBase-derived
13456           controls) to still draw their background
13457         * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
13458           the background
13459
13460 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
13461
13462         * Control.cs (PaintControlBackground): Set the graphics object
13463           on our PaintEvent to null to prevent it from being disposed
13464           when the PaintEvent gets disposed
13465
13466 2006-04-12  Alexander Olk  <alex.olk@googlemail.com>
13467
13468         * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
13469         * ThemeNice.cs, ThemeClearlooks.cs: fix typo
13470
13471 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
13472
13473         * Control.cs: 
13474           - Added transparency check to BackColor property. Transparent
13475             backgrounds are only allowed if the control styles permit it
13476           - Added recursive painting of parent control background and
13477             foreground if a control with a transparent backcolor is drawn
13478             (Thanks to Tim Ringenback for providing his 'hack' as a base
13479              for this patch) Fixes #77985 and #78026.
13480           - Added Opaque style check before calling OnPaintBackground, no
13481             need to draw the background if the control is opaque
13482           - Removed ControlAccessibleObject owner variable (inherited from
13483             base, no need to define again)
13484           - Added some documentation links explaining the drawing events
13485             and styles
13486
13487 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
13488
13489         * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
13490           that the affected control is the located at the left border of our
13491           parent (Fixes #77936)
13492
13493 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
13494
13495         * TextBoxBase.cs: When rendering disabled or readonly controls,
13496           draw the background with 'Control' instead of 'Window' color as
13497           long as the user hasn't specifically set a color
13498
13499 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
13500
13501         * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
13502           since that won't be updated if the user types text (only if it's
13503           programatically set)
13504
13505 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
13506
13507         * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
13508           layout changes do to app-triggered resizes will have the proper
13509           display rectangle for layout
13510
13511 2006-04-11  Alexander Olk  <alex.olk@googlemail.com>
13512
13513         * ThemeWin32Classic.cs:
13514           - Make use of the SystemBrushes and SystemPens wherever possible
13515           - Corrected some highlight colors
13516           - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
13517             drawing
13518         * Theme.cs: Added Empty field to CPColor struct
13519
13520 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
13521
13522         * ScrollabeControl.cs: We need to consider whether or not a scrollbar
13523           is displayed when calculating the display rectangle. Thanks to Mike
13524           for teaching me the err of my ways.
13525
13526 2006-04-10  Peter Dennis Bartok  <pbartok@novell.com>
13527
13528         * ScrollableControl.cs:
13529           - Rewrote DisplayRectangle code, now returning the proper x/y coords 
13530             (instead of 0,0) and we now return the real width/height instead of
13531             just the clientrectangle, adjusted for padding. The rectangle is
13532             now cached and created by the new CalculateDisplayRectangle method.
13533           - Created new CalculateDisplayRectange method, which basically does
13534             what get_DisplayRectangle() did originally, but now using the 
13535             right edge instead of DisplayRectangle to determine the size of
13536             our scrollbars
13537           - get_Canvas(): Fixed it to properly calculate canvas for 
13538             right/bottom controls which seem to be placed to the right/bottom
13539             of any controls that have a fixed location
13540           - Removed TODO that's taken care of
13541           - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
13542             and SetDisplayRectLocation according to new MSDN2 docs
13543           - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
13544             event when that is called, this is added for compatibility
13545           - ScrollControlIntoView(): Implemented.
13546           - Switched scrollbars to be implicit, they shouldn't be selectable
13547         * ContainerControl: Now that ScrollControlIntoView is implemented, we 
13548           call it when the active control is set/changed
13549         * ScrollBar.cs: Added support for generating Win32 scrollbar messages
13550         * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
13551           implicit_control variable (used for native Win32 message generation)
13552         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new 
13553           HorizontalScrollBarHeight and VerticalScrollBarWidth properties
13554         * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
13555         * XplatUIStructs.cs: Added ScrollBarCommands enum
13556
13557 2006-04-10  Jackson Harper  <jackson@ximian.com>
13558
13559         * ButtonBase.cs:
13560         * CheckedListBox.cs:
13561         * ComboBox.cs:
13562         * DataGrid.cs:
13563         * DataGridView.cs:
13564         * Form.cs:
13565         * GroupBox.cs:
13566         * ListBox.cs:
13567         * PrintPreviewControl.cs:
13568         * ProgressBar.cs:
13569         * PropertyGrid.cs:
13570         * Splitter.cs:
13571         * StatusBar.cs:
13572         * TrackBar.cs:
13573         * UpDownBase.cs: Fixup base event overrides.
13574         
13575 2006-04-06  Mike Kestner  <mkestner@novell.com>
13576
13577         * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
13578         all user-initiated value changes to min <= value <= max-thumbsz+1.
13579         (set_Value): check for vert/horiz when calculating new thumb position.
13580         (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
13581         like MS does.
13582         (OnMouseMoveSB): refactor the thumb dragging code and refine
13583         invalidation logic to reduce flicker.
13584         (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
13585         (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
13586         (UpdateThumbPosition): small code readability cleanup
13587
13588 2006-04-10  Alexander Olk  <alex.olk@googlemail.com>
13589
13590         * ThemeNice.cs: Small UI polishing. Draw borders a little bit
13591           different
13592
13593 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
13594
13595         * ThemeNice.cs: Use a better graphics effect when a button is pressed
13596
13597 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
13598
13599         * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
13600         * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
13601           This dramatically reduces the number of Pen.Dispose calls. 
13602           Where possible call ResPool methods only once instead of calling it
13603           over and over again (for example for the same color).
13604
13605 2006-04-06  Mike Kestner  <mkestner@novell.com>
13606
13607         * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
13608         Also remove an unused private field on the collection. Fixes #77972.
13609
13610 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
13611
13612         * ThemeNice.cs: Added ToolBar drawing code
13613
13614 2006-04-06  Mike Kestner  <mkestner@novell.com>
13615
13616         * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
13617         I'm assuming that means we need to look up the toplevel for the
13618         provided control. Fixes the crash trace in #77911 but exposes another
13619         crash in some strange reflection usage in NDocGui.
13620
13621 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
13622
13623         * ThemeNice.cs: Gave it a little silver touch and added Images
13624           method
13625         * FontDialog.cs: FontDialog is not resizable
13626         * FileDialg.cs: Added SizeGripStyle.Show
13627
13628 2006-04-05  Jackson Harper  <jackson@ximian.com>
13629
13630         * KeyboardLayouts.cs: Remove warning.
13631
13632 2006-04-05  Jackson Harper  <jackson@ximian.com>
13633
13634         * Control.cs: Enable OnPaintInternal so we can use it for drawing
13635         all of our controls instead of Paint +=.
13636         * ListBox.cs:
13637         * ListView.cs:
13638         * MenuAPI.cs:
13639         * MessageBox.cs:
13640         * NotifyIcon.cs:
13641         * ProgressBar.cs:
13642         * ScrollBar.cs:
13643         * Splitter.cs:
13644         * StatusBar.cs:
13645         * TabControl.cs:
13646         * TextBoxBase.cs:
13647         * ToolBar.cs:
13648         * TrackBar.cs:
13649         * UpDownBase.cs:
13650         * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
13651         use OnPaintInternal. Remove Width/Height and Visible checks in
13652         paint handler, this is done at a higher level now.
13653         * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
13654         * PaintEventArgs.cs: Add a handled flag so controls that don't
13655         want anymore painting after OnPaintInternal can make sure OnPaint
13656         isn't called.
13657
13658 2006-04-05  Mike Kestner  <mkestner@novell.com>
13659
13660         * Form.cs: fix the menu WndProc hacks to respect the native enabled
13661         state of the form, so that we don't process events when Modal dialogs
13662         are up. Fixes #77922.
13663
13664 2006-04-05  Alexander Olk  <alex.olk@googlemail.com>
13665
13666         * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
13667           checking is done.
13668
13669 2006-04-05  Mike Kestner  <mkestner@novell.com>
13670
13671         * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
13672
13673 2006-04-05  Mike Kestner  <mkestner@novell.com>
13674
13675         * ListView.cs (HeaderMouseMove): null guarding for the over column
13676         when setting up the drag_to_index.  Fixes #78015.
13677
13678 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com>
13679
13680         * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
13681           in the taskbar. Transient windows seem to accomplish that.
13682
13683 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com> 
13684
13685         * Form.cs:
13686           - Re-enabled CreateParams.X/Y code for FormStartPosition
13687           - Added code for manual placement when creating the Control
13688           - Incomplete patch to treat MDI forms differently when
13689             setting the ClientSizeCore. (Still need to figure out handling
13690             x/y coords there)
13691         * XplatUIX11.cs:
13692           - When we're explicitly setting the X/Y position of a non-Child
13693             window, let the WM know. Metacity really wants this.
13694
13695 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
13696
13697         * ThemeNice.cs: Added CPDrawButton
13698
13699 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
13700
13701         * ThemeNice.cs: Changed the color for focused buttons and activated
13702           the arrows for small scroll buttons.
13703
13704 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
13705
13706         * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
13707           anymore. Changed some method modifiers to protected (virtual)
13708         * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
13709           changes
13710         * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
13711           Updated drawing of menus, buttons and progressbars; added
13712           CPDrawBorder3D 
13713
13714 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
13715
13716         * ImageListStreamer.cs: implemented serialization/deserialization
13717         of the images.
13718
13719 2006-04-03  Alexander Olk  <alex.olk@googlemail.com>
13720
13721         * ThemeWin32Classic.cs:
13722           - Removed all the DrawFrameControl stuff; CPDrawButton,
13723             CPDrawCheckBox and CPDrawRadioButton are now handled directly
13724             inside the methods
13725           - Updated and corrected the drawing code of CPDrawButton,
13726             CPDrawCheckBox and CPDrawRadioButton to better match ms
13727           - Updated theme checkbox and radiobutton code to use the CP*
13728             methods
13729
13730 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
13731
13732         * XplatUIX11.cs: Enable clipping again now that the libgdiplus
13733           bug is fixed
13734
13735 2006-03-31  Jackson Harper  <jackson@ximian.com>
13736
13737         * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
13738         sometimes.
13739         * UpDownBase.cs: Don't CreateGraphics manually, use a
13740         Refresh. Ideally we would invalidate the correct areas here.
13741
13742 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
13743
13744         * XplatUIX11.cs: 
13745           - We now track the mapping state of windows. If a window (or 
13746             one of it's parents) is not mapped we no longer permit
13747             WM_PAINT messages to be generated since we'd otherwise get 
13748             lots of BadMatch X errors. Jackson did all the work figuring
13749             out the problem.
13750           - Destroying the caret if the window it's contained in is 
13751             destroyed. Can't use regular DestroyCaret method since it
13752             might fall into a drawing function (trying to remove the
13753             caret) and with that generate new BadMatch errors. Again,
13754             Jackson tracked this down.
13755           - Changed DestroyChildWindows to SendWMDestroyMessages, we now
13756             make sure we send the messages to all windows. (The old code
13757             would send the WM_DESTROY to the window, and then all child
13758             windows would be 'gone' because the WM_DESTROY handle lookup
13759             would no longer find the destroyed window)
13760         * Hwnd.cs: Added Mapping property to track mapping state of hwnd
13761         * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
13762
13763 2006-03-31  Jackson Harper  <jackson@ximian.com>
13764
13765         * ScrollableControl.cs: Dont recalc if we are not visible.
13766
13767 2006-03-31  Mike Kestner  <mkestner@novell.com>
13768
13769         * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
13770         the visibility branch.
13771
13772 2006-03-31  Jackson Harper  <jackson@ximian.com>
13773
13774         * ScrollBar.cs: Cap values when incrementing/decrementing.
13775
13776 2006-03-31  Mike Kestner  <mkestner@novell.com>
13777
13778         * MenuAPI.cs: setup menu.tracker for popup/context menus.
13779         * ToolTip.cs: guard against timer expirations with no active control.
13780         Not sure why it happened.
13781
13782 2006-03-31  Mike Kestner  <mkestner@novell.com>
13783
13784         * ThemeWin32Classic.cs: add some horizontal padding space for the tip
13785         text.
13786         * ToolTip.cs: Position the tooltip based on where the cursor is at
13787         popup time, not at MouseEnter time.  Add a Down state so that we don't
13788         redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
13789         positioning offset. Lookup DisplaySize at positioning time, since it
13790         can theoretically change during invocation.
13791         * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
13792         * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
13793
13794 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
13795
13796         * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
13797           Fixes behaviour when the Text property of the box is String.Empty
13798
13799 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com>
13800
13801         * XplatUIX11.cs: Only send mouseleave for our client windows, not
13802           for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
13803           a window)
13804
13805 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
13806
13807         * FileDialog.cs: Visual enhancement for the popup buttons in 
13808           PopupButtonPanel
13809
13810 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
13811
13812         * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
13813           code
13814
13815 2006-03-30  Alexander Olk  <alex.olk@googlemail.com>
13816
13817         * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
13818           highlighted menu items to match ms
13819
13820 2006-03-30  Peter Dennis Bartok  <pbartok@novell.com> 
13821
13822         * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
13823
13824 2006-03-30  Mike Kestner  <mkestner@novell.com>
13825
13826         * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
13827         * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
13828         go active to account for HotLight to Selected transition.
13829         * MenuItem.cs: add internal Selected prop. Fill out the Status
13830         property by calculating it from item info. Add HotLight,
13831         NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
13832
13833 2006-03-30  Mike Kestner  <mkestner@novell.com>
13834
13835         * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
13836
13837 2006-03-29  Jackson Harper  <jackson@ximian.com>
13838
13839         * Form.cs: Implement TODO.
13840
13841 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com> 
13842
13843         * PrintPreviewDialog.cs: Implemented missing methods and events; still
13844           missing proper dialog setup in the constructor
13845
13846 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com>
13847
13848         * ProgressBar.cs: Added 2.0 Style property that apps seem to use
13849         * Control.cs:
13850           - Implemented CheckForIllegalCrossThreadCalls, removed TODO
13851           - Fixed ResetBindings and removed TODO
13852           - Added check for cross-thread calls to get_Handle()
13853           - Added Marshaller attribute for set_Font to satisfy class status
13854         * FontDialog.cs: Removed TODOs that seemed implemented
13855         * UpDownBase.cs: Removed unneeded TODO and Fixme
13856         * MessageBox.cs: Implemented support for Default button and removed TODO
13857         * FileDialog.cs: Removed obsolete TODO
13858         * DomainUpDown.cs: Removed obsolete TODO
13859         * ButtonBase.cs: Removed obsolete TODO
13860         * XplatUIWin32.cs: Removed obsolete TODO
13861         * Form.cs:
13862           - Removed obsolete TODO
13863           - Calling CheckAcceptButton when the acceptbutton is changed to allow
13864             internal status updates
13865           - Making sure the active control is selected when the control is created
13866         * CurrencyManager.cs: Removed obsolete TODO
13867
13868 2006-03-29  Mike Kestner  <mkestner@novell.com>
13869
13870         * *.cs: fix remaining corcompare issues for 1.1 API with the exception
13871         of PrintPreviewDialog and RichTextBox.
13872
13873 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
13874
13875         * Theme.cs: Added a little helper to SystemResPool to get the Dark,
13876           DarkDark, Light and LightLight colors for a specific color
13877         * ThemeWin32Classic.cs:
13878           - Use Button drawing code to draw RadioButtons and CheckBoxes with
13879             Appearance = Button 
13880           - Make use of the new ResPool helper CPColor
13881           - Draw ProgressBar and StatusBar with correct 3D borders
13882
13883 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
13884
13885         * ColorDialog.cs: Return selected color. Fixes bug #77940.
13886
13887 2006-03-28  Mike Kestner  <mkestner@novell.com>
13888
13889         * ListView.cs: fix Icon layout to plan for scrollbar widths when
13890         calculating col/row counts.
13891
13892 2006-03-28  Mike Kestner  <mkestner@novell.com>
13893
13894         * ColumnHeader.cs:
13895         * ListView.cs:
13896         * ListViewItem.cs:
13897         * Menu.cs: 
13898         switch to explicit interface method implementation for some methods
13899         corcompare identifies as inconsistent with MS.
13900
13901 2006-03-28  Mike Kestner  <mkestner@novell.com>
13902
13903         * MainMenu.cs: 
13904         * Menu.cs:
13905         add a few missing methods from the class status output.
13906
13907 2006-03-28  Alexander Olk  <alex.olk@googlemail.com>
13908
13909         * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
13910           correct.
13911
13912 2006-03-28  Mike Kestner  <mkestner@novell.com>
13913
13914         * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
13915
13916 2006-03-27  Mike Kestner  <mkestner@novell.com>
13917
13918         * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
13919         the Hilight state to adapt to Alex's CPDrawBorder3D changes.
13920
13921 2006-03-27  Alexander Olk  <alex.olk@googlemail.com>
13922
13923         * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
13924
13925 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
13926
13927         * ThemeWin32Classic.cs:
13928           - GroupBox: Inserted a little gap between the text and the lines
13929             on the right side
13930           - Made the code in CPDrawBorder3D more readable
13931           - Corrected the drawing location of the up and down arrows in 
13932             CPDrawScrollButton
13933
13934 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
13935
13936         * ControlPaint.cs: Corrected line widths in DrawBorder for
13937           ButtonBorderStyle Inset and Outset
13938
13939 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
13940
13941         * ThemeWin32Classic.cs:
13942           - Rewrote the totally broken CPDrawBorder3D method. That was
13943             one of the main problems for the terrific ThemeWin32Classic
13944             look
13945           - Updated and corrected Button drawing
13946           - Correct the dimensions of the SizeGrip to match ms ones
13947           - Removed a small drawing glitch in DrawComboBoxEditDecorations
13948         * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
13949           Border3DStyle.Sunken to match ms.
13950
13951 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
13952
13953         * ThemeWin32Classic.cs: First small part of the "de-uglify
13954           ThemeWin32Classic" effort, SizeGrip
13955
13956 2006-03-24  Jackson Harper  <jackson@ximian.com>
13957
13958         * XplatUIX11.cs: Give a max idle time of one second, this matches
13959         MS and forces an Idle event every second when there are no other
13960         events in the queue.
13961
13962 2006-03-24  Mike Kestner  <mkestner@novell.com>
13963
13964         * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
13965         * ListView.Item.cs: fix layout issues with null image lists and images
13966         smaller than checkbox size.
13967         * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
13968         mode like MS does.  It's weird, but consistent.  ;-)
13969         Fixes #77890.
13970
13971 2006-03-24  Mike Kestner  <mkestner@novell.com>
13972
13973         * ListView.cs: Scroll wheel support for the item control.  Fixes
13974         #77839.
13975
13976 2006-03-23  Jackson Harper  <jackson@ximian.com>
13977
13978         * ScrollableControl.cs: Special case negative sized areas, not
13979         zero.
13980         * MonthCalendar.cs: Save the rect of the clicked date so we can
13981         use it for invalidation.
13982         - Try to cut down on the number of invalidates
13983         - Invalidate the rect the mouse is over and was over when moving
13984         the mouse, so we get the focus box following the cursor.
13985
13986 2006-03-23  Mike Kestner  <mkestner@novell.com>
13987
13988         * ThemeWin32Classic.cs: fix FullRowSelect selection background and
13989         focus rectangle drawing. Fixes #77835.
13990
13991 2006-03-23  Mike Kestner  <mkestner@novell.com>
13992
13993         * XplatUIX11.cs: rework the fix for #77828 by changing the order of
13994         the if and else if and reverting back to the original == check on the
13995         None conditional.
13996
13997 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
13998
13999         * FontDialog.cs: Update the example panel if the selected index of
14000           the fontListBox changes.
14001
14002 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
14003
14004         * FileDialog.cs: Make FileDialog remember which directory it was in
14005           last in the same execution.
14006
14007 2006-03-22  Mike Kestner  <mkestner@novell.com>
14008
14009         * FileDialog.cs: make the DropDownMenu on the toolbar display
14010         RadioChecks since they are mutually exclusive and that's what MS does.
14011
14012 2006-03-22  Mike Kestner  <mkestner@novell.com>
14013
14014         * Theme.cs: add Color param to CPDrawMenuGlyph.
14015         * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
14016         checks and radio marks and arrows are visible on highlighted items.
14017         * ControlPaint.cs: update to use new Theme signature.
14018
14019 2006-03-22  Mike Kestner  <mkestner@novell.com>
14020
14021         * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
14022         is active. Fixes #77870.
14023
14024 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
14025
14026         * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
14027           to be focused/selected after startup
14028
14029 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
14030
14031         * ColorDialog.cs: 
14032           - Corrected behaviour of Color, AllowFullOpen, FullOpen,
14033             CustomColors and ShowHelp properties
14034           - Some internal rewrites to get better results when using the
14035             ColorMatrix
14036
14037 2006-03-22  Mike Kestner  <mkestner@novell.com>
14038
14039         * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
14040         HoverSelection.  Fixes #77836.
14041
14042 2006-03-22  Mike Kestner  <mkestner@novell.com>
14043
14044         * FileDialog.cs: bugfixes for the toolbar.  Use PushButtons instead of
14045         ToggleButtons.  (De)Sensitize the Back button around a stack count of
14046         1, not 0.  Update ButtonSize based on a pixel count of the win32
14047         control.  Adjust the toolbar size/location for new button size.
14048
14049 2006-03-22  Jackson Harper  <jackson@ximian.com>
14050
14051         * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
14052         true.
14053         * ScrollBar.cs: When doing increments and decrements we need to
14054         set the Value property so that ValueChanged gets raised. A
14055         possible optimization here would be to make an internal SetValue
14056         that doesn't invalidate immediately.
14057         * ToolTip.cs: Tooltips get added to their container (when
14058         supplied) so they get disposed when the container is disposed.
14059         - Don't create tooltips for String.Empty. This prevents all these
14060         little 2-3 pixel windows from showing up when running nunit-gui
14061         and driving me mad.
14062         * Form.cs: Don't set topmost when setting the owner if the handles
14063         haven't been created yet.  The topmost set will happen when the
14064         handles are created.
14065
14066 2006-03-22  Peter Dennis Bartok  <pbartok@novell.com> 
14067
14068         * XplatUIX11.cs:
14069           - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
14070           - SetVisible: Sending WINDOWPOSCHANGED for all controls when made 
14071             visible (to allow them to recalculate their sizes)
14072
14073 2006-03-21  Mike Kestner  <mkestner@novell.com>
14074
14075         * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
14076         methods. Removed a ton of redundant code.  Still not really happy with
14077         the border rendering, but I think that's mainly because of the
14078         ControlDarkDark being black instead of a dark grey. Depending on how 
14079         close we want to be, we might want to revisit those color choices.
14080         Among the new features added during the refactor were DropDownArrow
14081         pressed rendering, Disabled image rendering.  Proper flat appearance
14082         boundary rendering.  Removed the Divider and Wrapping dividers since I
14083         can't figure out any combination of themes and conditions to make the
14084         MS control draw a horizontal line on a toolbar despite what the
14085         Divider property docs indicate.
14086         * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
14087         conditions and incorrect layout.  Updated to coding standard.
14088         * ToolBarButton.cs: refactored layout and positioning code from
14089         ToolBar to here.  Invalidate wherever possible instead of forcing
14090         redraws of the whole toolbar. 
14091         (Known remaining issues: explicit ButtonSize smaller than provided
14092         images.)
14093
14094 2006-03-21  Mike Kestner  <mkestner@novell.com>
14095
14096         * ContextMenu.cs (Show): use the position parameter instead of just
14097         showing at the MousePosition.
14098
14099 2006-03-21  Jackson Harper  <jackson@ximian.com>
14100
14101         * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
14102         control handle this.
14103         * TreeNodeCollection.cs: If we are clearing the root node we need
14104         to reset top_node so calcs can still happen.
14105         * ThemeWin32Classic.cs: This is a Flags so we need to check
14106         properly.
14107         
14108 2006-03-21  Jackson Harper  <jackson@ximian.com>
14109
14110         * DataGrid.cs: Create columns when the binding context has been
14111         changed.
14112         * X11Structs.cs: Keysyms are uints.
14113         - Add size to fix build.
14114
14115 2006-03-21  Peter Dennis Bartok  <pbartok@novell.com> 
14116
14117         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
14118           XplatUIOSX.cs: 
14119           - Added ResetMouseHover method to allow controls to retrigger
14120             hovering if they need it more than once
14121           - Implemented MouseHoverTime and MouseHoverSize properties
14122         * Timer.cs: Start() must reset the interval
14123         * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
14124           properties
14125
14126 2006-03-21  Jackson Harper  <jackson@ximian.com>
14127
14128         * X11Keyboard.cs: improved layout detection. Move the nonchar
14129         tables into this file.
14130         * KeyboardLayouts.cs: Move the tables into resource files.
14131
14132 2006-03-21  Mike Kestner  <mkestner@novell.com>
14133
14134         * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
14135
14136 2006-03-21  Alexander Olk  <alex.olk@googlemail.com>
14137
14138         * Mime.cs: Various speed optimizations. Looking up mime types
14139           is now 2 times faster than before
14140
14141 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com> 
14142
14143         * CreateParams.cs: Added internal menu field
14144         * Control.cs: 
14145           - Switched call order for UpdateBounds; now we always call
14146             the one that also takes ClientSize, and we're calculating the 
14147             client size via driver method in the others. The previous
14148             method of tracking client size by difference wasn't working
14149             for forms where even the starting client size wouldn't match
14150             the overall form size (due to borders) (Part of fix for #77729)
14151           - CreateParams(): Do not use parent.Handle unless the handle is
14152             already created. Causes havoc with Nexxia and throws off our
14153             creation of controls
14154         * XplatUIX11.cs:
14155           - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
14156           - Switched handling of ConfigureNotify over to new PerformNCCalc 
14157             method (consolidates code)
14158           - Changed RequestNCRecalc to use new PerformNCCalc method
14159           - Added calls to RequestNCRecalc when menus and borders are changed
14160             to allow app to set NC size. (Part of fix for #77729) This matches
14161             when MS send a WM_NCRECALC on Win32 windows.
14162           - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
14163             (Part of fix for #77729). This matches what MS does, they also
14164             send that message when the form is made visible.
14165           - XException.GetMessage: Improved usability of X errors by including
14166             a translation of the window into Hwnd and Control class
14167           - Improved debug info for window creation, reparenting and destruction
14168           - Created helper method WindowIsMapped() [Currently not used]
14169         * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
14170         * Form.cs:
14171           - CreateParams: Now setting our menu on the new internal menu field
14172           - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
14173             avoid calculating the same property twice
14174         * Hwnd.cs:
14175           - Improved usability of ToString() for debugging purposes
14176           - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
14177             determine the height of the menu, instead of just the font. This
14178             required to also create a graphics context and to keep a bmp 
14179             around (for performance reasons)
14180
14181 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com>
14182
14183         * MenuAPI.cs: Added OnMouseUp method
14184         * Form.cs:
14185           - Now remembering the requested client size, avoids size errors
14186           - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
14187             instead of base if the menu is active. This is required due to
14188             control now capturing and releasing on down/up and it would
14189             prematurely release our menu capture
14190
14191 2006-03-17  Jackson Harper  <jackson@ximian.com>
14192
14193         * KeyboardLayouts.cs: Add the czech layouts.
14194
14195 2006-03-16  Jackson Harper  <jackson@ximian.com>
14196
14197         * Control.cs: Use the viewport space when sizing not the controls
14198         client size, so things like ScrollableControl that effect the
14199         viewport size (when scrollbars are added) are computed correctly.
14200         * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
14201         of ManagerEntrys.
14202         - Handle creating BindingManagers for null data sources.
14203         * DataGrid.cs: Bind the cached_currencymgr_events to the real data
14204         source, otherwise when rows are added they are added to the 'fake'
14205         datasource and we will crash when trying to set the position in
14206         those rows.
14207         - Use Implicit scrollbars on the datagrid so they arent
14208         selectable.
14209         
14210 2006-03-16  Jackson Harper  <jackson@ximian.com>
14211
14212         * Binding.cs:
14213         * InternalWindowManager.cs:
14214         * MdiWindowManager.cs:
14215         * X11Keyboard.cs: I really want Mike to love me again (fix
14216         compiler warnings).
14217
14218 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com>
14219
14220         * DataGrid.cs:
14221           - OnMouseDown: Switch to editing mode when clicking on the cell
14222                          even if we're clicking on the cell that's currently 
14223                          selected
14224           - ProcessGridKey: Left/Right now wrap like MS.Net does
14225           - ProcessGridKey: Tab now knows to add a new row when tab is
14226                             pressed in the cell of the last column of the 
14227                             last row
14228           - ProcessGridKey: Enter now adds another row  if pressed in the last
14229                             row and selectes the new row, same column cell
14230           - ProcessGridKey: Home/End navigate columns, not rows, like 
14231                             originally implemented
14232           - Broke ProcessKeyPreview code out into an extra Internal method
14233             so it can be called from the edit code
14234         * DataGridTextBox.cs (ProcessKeyMessage):
14235           - Switched to accept Tab keypresses
14236           - Added F2 handling to allow jumping to the end of the edited cell
14237           - Added logic to allow moving caret left/right inside edited cell
14238             and making the edited cell jump when the caret hits cell borders
14239           - Tab and Enter are now passed to the datagrid after being handled
14240         * TextBoxBase.cs:
14241           - Removed capture code now that Control handles it
14242           - set_SelectionStart now ensures caret is visible
14243
14244 2006-03-16  Jackson Harper  <jackson@ximian.com>
14245
14246         * TrackBar.cs: Debackwards the increment/decrement for handling
14247         mouse clicks on the bar with vertical trackbars.
14248         * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
14249         bottom to match MS.
14250
14251 2006-03-16  Mike Kestner  <mkestner@novell.com>
14252
14253         * ListView.cs: make shift/ctrl keyboard and mouse selection 
14254         consistent with the MS control. Fix a bug in
14255         SelectedListViewItemCollection.Clear that was pissing me off for the
14256         better part of a day because the collection was being altered
14257         underneath us as we walked the list.
14258
14259 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com> 
14260
14261         * Control.cs: Not sure how we could miss this so long, but it seems
14262           that MS.Net has Capture set all the way from before calling 
14263           OnMouseDown through sending the mouse events until after
14264           OnMouseUp. This will fix DataGrid's selection being set to end
14265           at the location of the MouseUp.
14266
14267 2006-03-15  Jackson Harper  <jackson@ximian.com>
14268
14269         * BindingContext.cs: Check the binding after its added so that it
14270           can initialize the binding managers and hookup to events.
14271         * Binding.cs: Data members seem to sometimes include rows/cols in
14272           the format Row.Column we now take this into account.
14273           - Hookup to the position changed event so we can update the
14274           control when the position has changed in the data set.
14275         * CurrencyManager.cs: Take into account the row/col naming
14276           convention when creating dataset tables.
14277         * BindingContext.cs: Using a newer better way of storing
14278           datasource/datamember pairs.  Hopefully this better matches MS for
14279           looking up binding managers.
14280
14281
14282 2006-03-15  Jackson Harper  <jackson@ximian.com>
14283
14284         * BindingContext.cs: The currency manager needs the data member
14285         name, if the member is a data set we use the name to find the
14286         correct table.
14287         * CurrencyManager.cs: When creating the list prefer an IList over
14288         an IListSource.
14289         - Attempt to create a DataTable from a DataSet (TODO: might need
14290         some better error checking here, although MS doesn't seem to have much)
14291         - If we have a DataTable create a view and use it as our list.
14292
14293 2006-03-15  Mike Kestner  <mkestner@novell.com>
14294
14295         * ListView.cs: keep a matrix of the icon mode layout to facilitate
14296         keyboard navigation. Support Up/Down/Left/Right selection correctly
14297         for all 4 View modes.
14298         * ListViewItem.cs: add internal row/col fields for icon layouts.
14299
14300 2006-03-15  Jackson Harper  <jackson@ximian.com>
14301
14302         * TabControl.cs: Redraw the tabs when we resize so their newly
14303         calculated sizes are drawn on screen.
14304         * X11Keyboard.cs: Begginnings of XIM support.  We also now support
14305         composite characters.
14306         * XplatUIX11.cs: Keyboard driver needs to know about focus changes
14307         - filter events so that composite characters can be created
14308         patches by peter
14309         * X11Structs.cs: Add XIMProperties enum.
14310
14311 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
14312
14313         * Control.cs (BringToFront, SendToBack): Don't use window or handle
14314           unless it's created
14315
14316 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
14317
14318         * Control.cs (PerformLayout): We don't need to consider visiblity
14319           for anchoring, only for docking. This fixes 'whacky' alignment
14320           in listbox and other controls that use implicit scrollbars after
14321           the previous PerformLayout patch
14322         * ListBox.cs: Switched to use implicit scrollbars
14323           
14324 2006-03-14  Mike Kestner  <mkestner@novell.com>
14325
14326         * ToolBar.cs: 
14327         * VScrollBar.cs:
14328         - chain up the "new event" overrides to base and use
14329         OnEvent to raise them.  Part of fix for bug #76509.
14330
14331 2006-03-14  Alexander Olk  <alex.olk@googlemail.com>
14332
14333         * FileDialog.cs: Do not select an item in the parent directory
14334           on backspace
14335
14336 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
14337
14338         * Control.cs (PerformLayout): It would seem that we considered
14339           invisible windows for our layout. Not quite the right thing
14340           to do. Now we don't any longer, thereby fixing bug #76889.
14341
14342 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
14343
14344         * Control.cs (CanFocus): I goofed. A control can have focus 
14345           even though it's not selectable. Made it match MS docs.
14346
14347 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
14348
14349         * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
14350           center by default (fixes #76895)
14351         * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced 
14352           all uses of Border3DSides.All with the explicit ORd together
14353           Left|Right|Top|Bottom because I assume that nobody was aware 
14354           that All also implies a center fill. Most places I checked had
14355           a fill right above.
14356         * ProgressBarStyle.cs: Added
14357
14358 2006-03-13  Mike Kestner  <mkestner@novell.com>
14359
14360         * ListView.cs: fix breakage in drag shadow header positioning 
14361         from Peter's csc compilation fix.
14362
14363 2006-03-13  Mike Kestner  <mkestner@novell.com>
14364
14365         * ListView.cs: fix NRE produced by backspacing twice in a focused
14366         FileDialog.
14367
14368 2006-03-13  Mike Kestner  <mkestner@novell.com>
14369
14370         * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
14371
14372 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
14373
14374         * Hwnd.cs: Added fixed_size field to track windows whose size cannot
14375           be changed
14376         * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
14377           the allowed size before making programmatic size changes
14378
14379 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com> 
14380
14381         * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are 
14382           set, metacity is broken and will still use the emty sizes in 
14383           the struct. (Fix for #77089)
14384
14385 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
14386
14387         * XplatUIStructs.cs: Split WindowStyles into WindowStyles and 
14388           WindowExStyles and marked both enums as Flags
14389         * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
14390           NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
14391           to match WindowStyles split
14392         * XplatUIX11.cs:
14393           - SetWMStyles: Added cehck to not apply WM attributes to Child windows
14394           - Updated to match WindowStyles split
14395         * XplatUIWin32.cs:
14396           - Fixed FosterParent creation, was using ExStyle on the Style field
14397             (This should help with Popup focus issues)
14398           - Updated to match WindowStyles split
14399
14400 2006-03-13  Jackson Harper  <jackson@ximian.com>
14401
14402         * MdiWindowManager.cs: Use the system menu height. Fixes some
14403         strange sizing issues.
14404
14405 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
14406
14407         * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
14408         * TextBoxBase.cs:
14409           - Scroll to caret after inserting text (#77672)
14410           - Make scroll range one pixel higher, fixes off-by-one error (and
14411             makes underlines visible on the last line)
14412
14413 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com> 
14414
14415         * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
14416           the keyboard state from being stuck with keys in 'pressed' state when
14417           focus is switched away via keyboard
14418         * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
14419           reset the keyboard if no X11 KeyUp events are expected to come
14420         * X11Structs.cs: Switched type of Visible to bool to match driver
14421
14422 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
14423
14424         * TextControl.cs:
14425           - Switched caret to be just 1 pixel wide, matches MS and looks less
14426             clunky
14427           - Moved caret display 1 pixel down from the top of the control
14428             to improve view
14429           - InsertCharAtCharet: Update the selection start if moving the caret
14430             (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
14431           - No longer always creating the caret when the caret methods are
14432             called. Only the actual ShowCaret/HideCaret will do that now
14433           - Only setting caret visible if the owner control has focus
14434           - UpdateView: Added invalidation-shortcut logic for center and right 
14435             aligned text. Previously we'd update all according to the left
14436             logic which caused drawing errors. Also fixed height of invalidated
14437             areas, now properly invalidating the whole area (was off-by-one)
14438           - owner_HandleCreated: Always generate the document when the
14439             handle is created; this ensures that 
14440         * TextBoxBase.cs:
14441           - Fixed situation where caret would disappear under the right
14442             window border, also improved scrolling behaviour on left-
14443             aligned textboxes
14444           - Fixed right-aligned textboxes to have a border to the
14445             right instead of the caret being under the right border
14446         * XplatUIX11.cs:
14447           - Switched from 'nested' to simple visible/not visible tracking 
14448             for caret (part of fix for #77671)
14449           - No longer passing through translated FocusIn/FocusOut messages
14450             since we were notifying too often and the wrong windows. Instead
14451             we just notify our focussed window of receiving or loosing focus
14452         * XplatUIWin32.cs: Switched from 'nested' show/hide 
14453           counting for caret to simple visible yes/no behaviour (part of 
14454           fix for #77671)
14455
14456 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
14457
14458         * Mime.cs: Remove debug code...
14459
14460 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
14461
14462         * MimeGenerated.cs: Removed
14463         * Mime.cs: Mime now reads the mime data (magic, globs, aliases
14464           and subclasses) from /usr/(local/)share/mime and
14465           $HOME/.local/share/mime.
14466
14467 2006-03-10  Jackson Harper  <jackson@ximian.com>
14468
14469         * MdiWindowManager.cs: Recalc the NC area when a window is
14470         maximized/restored so that the menu area is drawn on forms that
14471         don't have a menu.
14472
14473 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
14474
14475         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
14476           XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
14477           us to force a WM_NCCALCRESIZE message being sent. This is needed
14478           for MDI maximizing.
14479
14480 2006-03-10  Jackson Harper  <jackson@ximian.com>
14481
14482         * Form.cs: We need to use the ActiveMenu when calculating menu
14483         height.
14484         - Fix nullref when the window manager hasn't been created yet.
14485         * Control.cs: Fix nullref when we try to bring a control to the
14486         front that has no parent.
14487         * MdiWindowManager.cs: Use the MaximizedMenu for calculating
14488         height.
14489         - Add a dummy item to the maximized menu so it always has the
14490         correct height. Otherwise when there are no menus we don't get our
14491         icon and buttons.
14492         
14493
14494 2006-03-10  Jackson Harper  <jackson@ximian.com>
14495
14496         * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
14497         stuff.
14498         * Form.cs: Make the window_state internal so the window managers
14499         can track it.
14500         - When an MDI child is maximized let its window manager create the
14501         main menu (so it can add its icon).
14502         - Notify the window managers of state changes
14503         - Let the window manager paint its buttons and handle button
14504         clicks on the menu when it is maximized.
14505         * InternalWindowManager.cs: Move the prev_bounds into the mdi
14506         window manager, since tool windows don't use it, only mdi windows.
14507         - Tell the main form that we don't want it to handle NCPAINT
14508         itself to avoid extra painting.
14509         - Handle clicks on a maximized windows menu.
14510         - Handle window state changes
14511         - Handle minimize/maximize clicks correctly by setting the window state.
14512         * MdiWindowManager.cs: Add an icon menu that (the menu you get
14513         when clicking on the forms icon).
14514         - New method to create a forms maximized menu. This is its normal
14515         menu + an icon.
14516         - Handle window state changes.
14517         - Handle sizing of maximized windows.  Maximized windows are just
14518         drawn bigger then the parent visible area. All controls are still
14519         there, they are just outside the visible area (this matches windows).
14520         * MdiClient.cs: No scrollbars when a child window is maximized.
14521         - Let the children windows figure out how big they should be when
14522         sizing maximized windows.
14523         - Implement a version of ArrangeIconicWindows somewhat similar to
14524         Windows version.  There are some little differences, but I don't
14525         think any app will rely on the layout of minimized mdi windows.
14526
14527 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
14528
14529         * Padding.cs: Several fixes to allow compiling with csc 2.0
14530
14531 2006-03-09  Jackson Harper  <jackson@ximian.com>
14532
14533         * Menu.cs:
14534         * MenuItem.cs: Cheap hack so we can add items to the list without
14535         the events being raised.  This allows adding mdi items during
14536         drawing. TODO: Should probably find a better time to add the items.
14537
14538 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
14539
14540         * ThemeWin32Classic.cs:
14541           - CheckBox_DrawText: Added logic to not wrap if not enough space
14542             is available (Fix for bug #77727)
14543           - RadioButton_DrawText: Added logic not to wrap if not enough
14544             space is available (Fix for bug #77727). Also removed some
14545             duplicate code, DrawString always drawing the regular text
14546             before hitting the if statement.
14547
14548 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com> 
14549
14550         * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
14551
14552 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
14553
14554         * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
14555         * ContainerControl.cs: Partial implementation of some 2.0 scaling
14556           methods. Moved the new 2.0 properties into alphabetical order with
14557           other properties and added MonoTODO tags
14558
14559 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
14560
14561         * AutoScaleMode.cs: Added. Fix build.
14562
14563 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
14564
14565         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
14566           XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
14567           and was requiring premature handle creation for calls from above
14568         * Form.cs, Control.cs: Removed handle arguments from calls to
14569           CalculateClientRect()
14570
14571 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
14572
14573         * ListView.cs (HeaderMouseMove): Fix csc compilation. 
14574           drag_column.column_rect is MarshalByRef and can't be used that way
14575
14576 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
14577
14578         * AxHost.cs: Added deserialization constructor for 
14579           AxHost+State (fixes 77743)
14580
14581 2006-03-09  Mike Kestner  <mkestner@novell.com>
14582
14583         * ListView.cs: 
14584         - Added column drag reordering for details view.
14585         - fixed behavior when mouse is dragged off column and
14586         AllowColumnReorder is false.
14587         * ColumnHeader.cs: clone the format too in Clone.
14588         * Theme.cs: add DrawListViewHeaderDragDetails method.
14589         * ThemeWin32Classic.cs:
14590         - impl new method for drawing drag column shadows and targets.
14591         - support column offset for details mode in DrawListViewItem.
14592
14593 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
14594
14595         * TextControl.cs: Reset the char_count when the document is cleared
14596           (Fixes bug reported on mono-winforms mailing list)
14597
14598 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
14599
14600         * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
14601           of calling base we simply process the key ourselves, since both
14602           DefWindowProc and the handled method would set m.Result. 
14603           (Fixes #77732)
14604
14605 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
14606
14607         * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
14608           method also moves the window; instead implemented a copy of
14609           Control.ScaleCore (Part of fix for #77456)
14610         * TextBoxBase.cs: 
14611           - Created new CreateGraphicsInternal method to allow providing
14612             a graphics context when no handle is created without triggering
14613             handle creation. (Part of fix for #77456)
14614           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
14615         * TextControl.cs: 
14616           - Switched Constructor to require TextBoxBase instead of Control (to
14617             allow uncast access to CreateGraphicsInternal)
14618           - Safeguarded use of owner.Handle property. No longer accessing it
14619             unless the handle is already created.
14620           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
14621           - Now triggering a recalc when owning control becomes visible
14622         * TextBox.cs, RichTextBox.cs: Switched to use new internal 
14623           TextBoxBase.CreateGraphicsInternal() method to avoid triggering
14624           premature handle creation (Part of fix for #77456)
14625         * Control.cs:
14626           - We now only destroy our double-buffering buffers when the
14627             control is resized or disposed, but not when visibility
14628             changes. (The code even re-created them twice every time)
14629           - Now requiring a redraw of the buffer on visibility changes
14630             (fixes bug 77654 part 2)
14631           - Not passing OnParentVisibleChanged up unless the control
14632             is visible
14633           - CanFocus: Fixed to match MS documentation
14634           - Focus: Fixed to return actual focus state and to check if
14635             setting focus is legal before setting it
14636
14637 2006-03-08  Peter Dennis Bartok  <pbartok@novell.com>
14638
14639         * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
14640           when to draw focus rectangle by looking at parent focus and
14641           selected state instead. This fixes TabPages on Linux sometimes
14642           having none or multiple focus rectangles.
14643         * XplatUIX11.cs (SetFocus): 
14644           - Don't set the focus if the same window already has focus
14645           - Use SendMessage instead of PostMessage (like it's Win32
14646             equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
14647             to match MS behaviour
14648         * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
14649           are not selectable.
14650
14651 2006-03-07  Jackson Harper  <jackson@ximian.com>
14652
14653         * PictureBox.cs: Revert line I accidently committed last week.
14654
14655 2006-03-07  Peter Dennis Bartok  <pbartok@novell.com>
14656
14657         * Control.cs: 
14658           - Added new IsRecreating and ParentIsRecreating properties to
14659             allow testing if RecreateHandle has been called on ourselves
14660             or one of our parents
14661           - WndProc(WM_DESTROY): If our control handle is being recreated
14662             we immediately need to create the handle when receiving the
14663             destroy, that way our child windows find a valid parent handle
14664             when they themselves are being recreated upon WM_DESTROY receipt
14665             (fix for bug #77654 part 1)
14666         * XplatUIX11.cs:
14667           - DestroyWindow: WM_DESTROY must be sent to our own window before
14668             notifying any child windows. MS documents that child windows
14669             are still valid when WM_DESTROY is received. (Control now relies on
14670             this behaviour)
14671           - Added some fine-grain debug options
14672
14673 2006-03-06  Jackson Harper  <jackson@ximian.com>
14674
14675         * MdiClient.cs: Redid scrolling logic a bit to create a virtual
14676         box and base calculations off this.
14677         * MdiChildContext.cs:
14678         * MdiWindowManager.cs: Don't need to ensure scrollbars here
14679         anymore.
14680         
14681 2006-03-06  Peter Dennis Bartok  <pbartok@novell.com>
14682
14683         * Splitter.cs: In situations where the affected control is added
14684           to the parent's control list after the splitter, we would not
14685           populate affected. Now we try populating it on mousedown, if
14686           it's not already set, and force it to be re-set whenever our
14687           parent changes.
14688
14689 2006-03-03  Matt Hargett  <matt@use.net>
14690
14691         * Control.cs: implement Control.Padding
14692         * Padding.cs: -Padding.All returns -1 when constructing with the
14693         implicit default ctor
14694         -Padding.ToString() matches MS.NET
14695         * ContainerControl.cs: implement
14696         ContainerControl.AutoScaleDimensions
14697         * ListControl.cs: implement ListControl.FormattingEnabled
14698         * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
14699         * ButtonBase.cs:
14700         * TabPage.cs: Implement UseVisualStyleBackColor.
14701         * PictureBox.cs: Implement PictureBox.InitialImage.
14702
14703 2006-03-03  Mike Kestner  <mkestner@novell.com>
14704
14705         * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
14706         event declarations to proxy to base event.
14707         * ListViewItem.cs: update to use ItemControl.
14708         * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
14709         * ThemeWin32Classic.cs: update to new ListView theme API and fix
14710         column header label rendering for 0 width columns.
14711
14712 2006-03-03  Peter Dennis Bartok  <pbartok@novell.com>
14713
14714         * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
14715           that causes the control to be created. Fixes #77476.
14716
14717 2006-03-02  Jackson Harper  <jackson@ximian.com>
14718
14719         * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
14720         expose_pending.
14721
14722 2006-03-02  Peter Dennis Bartok  <pbartok@novell.com>
14723
14724         * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
14725           passed in for the EventArgs (fixes #77690)
14726
14727 2006-03-01  Jackson Harper  <jackson@ximian.com>
14728
14729         * ScrollBar.cs: Refresh afterbeing resized.
14730
14731 2006-02-28  Mike Kestner  <mkestner@novell.com>
14732
14733         * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
14734         Clean up a tracker compile warning.
14735         * MenuItem.cs: add internal PerformPopup method.
14736         [Fixes #77457]
14737
14738 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
14739
14740         * TextBoxBase.cs (set_Text): Recalculate the document (causing an
14741           implicit expose) when the text is set to null
14742
14743 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com>
14744
14745         * RichTextBox.cs (FlushText): When newline is true, we always
14746           need to split the line, even if no text is on it and we may
14747           never eat newlines. (Fixes #77669)
14748
14749 2006-02-28  Mike Kestner  <mkestner@novell.com>
14750
14751         * ListView.cs: Add UpdateSelection internal method. Remove SelectItem 
14752         and set Selected instead.
14753         * ListViewItem.cs: Call owner.UpdateSelection to manipulate the 
14754         collections.
14755
14756 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
14757
14758         * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
14759
14760 2006-02-28  Alexander Olk  <alex.olk@googlemail.com>
14761
14762         * FontDialog.cs:
14763           - Got rid of the panel. All controls are now directly added to
14764             the dialog form
14765           - It is now possible to set a font with the Font property
14766           - MinSize and MaxSize property do now what they should
14767           - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
14768           - Searching and selecting a font with the font textbox works now,
14769             the same applies to the style and size textbox
14770           - Draw the correct 3D border in the example panel
14771           - Fixed a little mem leak (unused fonts didn't get disposed)
14772           - Many other internal updates/rewrites...
14773           - Fix typo
14774
14775 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
14776
14777         * TextControl.cs: 
14778           - InsertRTFFromStream: Added 'number of characters inserted' argument
14779           - set_SelectedRTF: Now using the number of characters to calculate
14780             the new location for the selection and cursor (x/y cannot be used
14781             due to potentially already wrapped text)
14782
14783 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com>
14784
14785         * TextControl.cs: Added property and implemented means to allow 
14786           disabling recalculation of a document (can be used to speed up
14787           multiple inserts and is needed to make RTF inserts predictable, see
14788           bug #77659)
14789         * RichTextBox.cs: Using the new NoRecalc property of Document to
14790           keep x/y insert locations predictable. Also makes it faster inserting
14791           large chunks of RTF
14792
14793 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
14794
14795         * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
14796           it's easier for a child control to handle the other messages without
14797           having to duplicate the special functionality
14798         * TextBoxBase.cs
14799           - WndProc: Removed calling base handler for WM_KEYDOWN and added 
14800             code to handle processing the key ourselves, in order to get 
14801             access to the result of KeyEventArgs.Handled. We now only call 
14802             ProcessKey if they key hasn't been handled already. Fixes #77526.
14803           - set_Text: If null or empty string is given, just clear the 
14804             document. Fixes part of #77526
14805
14806 2006-02-27  Jackson Harper  <jackson@ximian.com>
14807
14808         * SizeGrip.cs: Paint the background color before painting the grip
14809         so things look right.
14810         * MdiClient.cs: Add the sizegrip when both scrollbars are used.
14811
14812 2006-02-27  Mike Kestner  <mkestner@novell.com>
14813
14814         * ListView.cs:
14815           - Restructure layout and invalidation model to remove a ton of
14816           flicker from the control and speed up performance in general.
14817           - Add manual column resize, flickers like crazy, but I already have
14818           some ideas on how I'll fix that. (#76822)
14819           - Merge the three Icon-based views into a single layout method.
14820           - Move item selection interaction logic from the item since 
14821           interaction with the collections is more appropriate to the view.
14822           - Deselection on non-item clicks.
14823         * ListViewItem.cs:
14824           - Encapsulate most of the layout. Add some internal props to trigger
14825           layout.  Move to a model where Items invalidate themselves instead
14826           of just invalidating the whole control every time something changes.
14827           - Invalidate on Text/Caption changes.
14828           - switch to an offset based layout model to avoid having to absolute
14829           position every element on item moves.
14830           - correct checkbox layout to conform to MS layout.
14831         * ThemeWin32Classic.cs:
14832           - refactor some column header drawing code.
14833           - fix string justification for column headers (#76821)
14834           - make SmallIcon labels top justified for compat with MS impl.
14835         * ThemeClearlooks.cs:
14836           - adjust to new ListViewItem internal checkbox bounds api.
14837
14838 2006-02-27  Jackson Harper  <jackson@ximian.com>
14839
14840         * Control.cs:  Change where implicit controls fall in the zorder.
14841         They are now on top of all children.
14842         - Synced AddImplicit code with Add
14843         - Removed unused enumerator.
14844         * SizeGrip.cs: Remove the TODO as its been TODONE.
14845
14846 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com> 
14847
14848         * TextControl.cs(Insert): Combine the last lines unless the insertion
14849           string ends with \n\n, otherwise we leave one line too many (Fixes
14850           something I noticed with the testapp for #77526; the bug itself was
14851           already fixed in the previous checkin)
14852
14853 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com>
14854
14855         * RichTextBox.cs:
14856           - SelectionColor and SelectionFont methods no longer set absolute
14857             styles. Instead, the keep font or color respectively (This 
14858             resolves a long-standing FIXME in the code)
14859           - When flushing RTF text, the insert code now considers text trailing
14860             behind the insertion point (Fixes the bug where when replacing
14861             the selected text via SelectedRTF the remainder of the line behind 
14862             the selection would stay on the first insertion line)
14863         * TextBoxBase.cs:
14864           - AppendText now updates the selection points after inserting text
14865           - AppendText now ensures that the last tag (sometimes 0-length) of
14866             the document is used for the style information (Fixes part of 
14867             bug #77220)
14868         * TextControl.cs:
14869           - Created new FontDefiniton class to allow describing partial style
14870             changes
14871           - StreamLine() now takes a lines argument, to allow it to decide
14872             whether an encountered zero-length tag is the last in the document
14873             (which must be kept to not loose the font/color contained in it,
14874             for later appends)
14875           - Created Combine() and Split() methods for Marker structs, to 
14876             support marker updates due to reformatted documents (soft line
14877             wraps)
14878           - Implemented Document.CaretTag setter
14879           - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
14880             of the last line (Not the cause, but also exposed by bug #77220)
14881           - Added LineTag argument to InsertString method, to allow callers
14882             to force a certain tag to be used (required to force use of the
14883             trailing zero-length tag of a document)
14884           - Now updating markers in Combine(), to avoid stale tag markers
14885           - Added some method descriptions to aid maintenance
14886           - Implemented new FormatText concept, allowing additive/subtractive
14887             formatting by only specifying the components that are to be 
14888             changed. This was needed for resolving the RTB.SelectedColor/
14889             RTB.SelectedFont fixmes
14890           - Added Break() support method to allow breaking up linetags (used
14891             for partial formatting)
14892           - Added GenerateTextFormat() method. It is used for partial 
14893             formatting and allows to generate a full font/color from given
14894             attributes and an existing tag.
14895
14896 2006-02-26  Jackson Harper  <jackson@ximian.com>
14897
14898         * XplatUIX11.cs:  Use the correct caption height.
14899         - Translate hittest coordinates to screen coords to match MS.
14900         * XplatUIWin32.cs: When we create MDI windows we need to reset
14901         some of the style flags, so we get a nice blank window, and can
14902         draw all the decorations ourselves.
14903         - Set a clipping rectangle on the non client paint event, the
14904         window manager drawing code needs one.
14905         * Form.cs: The window manager needs to know when the window state
14906         has been updated.
14907         * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
14908         don't need to factor in border and title sizes in these
14909         methods. TODO: Remove the args and fix the call points.
14910         * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
14911         properly.
14912         - Let the driver set the cursors.
14913         - Improve active window handling
14914         - Correct sizes for title bars and buttons.
14915         - Match MS drawing better
14916         * MdiWindowManager.cs: We don't need to handle border style
14917         updates specially anymore.
14918         - Check for scrollbars when windows are done moving
14919         - Handle Active properly.
14920         * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
14921         correctly. I am spewing the exception though, so we don't hide the
14922         bugs.
14923         
14924 2006-02-26  Pedro Martinez Julia  <pedromj@gmail.com>
14925
14926         * DataGridViewRowPostPaintEventArgs.cs,
14927           DataGridViewCellPaintingEventArgs.cs,
14928           DataGridViewRowCollection.cs,
14929           DataGridViewRowPrePaintEventArgs.cs,
14930           DataGridViewCell.cs: Clear a few warnings and implement a few
14931           exceptions that should be thrown.
14932
14933 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
14934
14935         * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
14936           'inheriting' our parent's (non-default) cursor. (Part of
14937            the fix for #77479)
14938
14939 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com> 
14940
14941         * XplatUIX11.cs: Fixed cast to make csc happy
14942
14943 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
14944
14945         * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
14946           it's for the client area (part of fix for #77479 and needed
14947           for MDI window cursor handling)
14948         * XplatUIX11.cs
14949           - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
14950             the appropriate default cursors and also passing the message
14951             up the parent chain 
14952           - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
14953             for non-client areas
14954
14955 2006-02-15  Jackson Harper  <jackson@ximian.com>
14956
14957         * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
14958         is a real MDI window
14959
14960 2006-02-14  Alexander Olk  <alex.olk@googlemail.com>
14961
14962         * X11DesktopColors.cs: Instead of checking the desktop session
14963           string for "KDE" check if it starts with "KDE"
14964
14965 2006-02-10  Jackson Harper  <jackson@ximian.com>
14966
14967         * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
14968         systems).
14969
14970 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
14971
14972         * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
14973           errors
14974         * ColorDialog.cs:
14975           - Got rid of the panel. All controls are now directly added to
14976             the dialog form
14977           - Changed to mono coding style
14978
14979 2006-02-10  Jackson Harper  <jackson@ximian.com>
14980
14981         * InternalWindowManager.cs: We don't need the set visibility to
14982         false hack anymore now that peter has written beautiful shutdown
14983         code.
14984
14985 2006-02-10  Peter Dennis Bartok  <pbartok@novell.com>
14986
14987         * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
14988           where already explicitly destroyed
14989
14990 2006-02-10  Jackson Harper  <jackson@ximian.com>
14991
14992         * MdiClient.cs: Handle the case where windows are too high or to
14993         the left and we need scrollbars.
14994
14995 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
14996
14997         * MimeIcon.cs: Added some icons
14998         * FileDialog.cs:
14999           - Fixed bug #77477
15000           - Got rid of the panel. All controls are now directly added to
15001             the dialog form
15002           - Changed to mono coding style
15003           - On Linux "My Computer" and "My Network" will now show some
15004             more usefull information. A new class, MasterMount, gathers
15005             this information from /proc/mount. Updated MWFFileView to make
15006             use of this information
15007           - Fixed a bug that caused FileDialog to crash when
15008             ".recently_used" file had a zero size
15009           - FilterIndex does now what it should
15010           - Some Refactoring
15011         * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
15012             FileDialog changes
15013
15014 2006-02-09  Jackson Harper  <jackson@ximian.com>
15015
15016         * ComboBox.cs: Don't touch if null.
15017
15018 2006-02-09  Peter Dennis Bartok  <pbartok@novell.com>
15019
15020         * Cursor.cs: 64bit safeness fix
15021         * XplatUIX11.cs: Removed several unneeded and one moronic cast.
15022
15023 2006-02-09  Jackson Harper  <jackson@ximian.com>
15024
15025         * Form.cs: If a form is made into an MDI form update the styles so
15026         all the props can get set correctly.
15027         - Kill the mdi_container when we dont need it anymore.
15028         * InternalWindowManager.cs: Add missing NOT
15029
15030 2006-02-08  Jackson Harper  <jackson@ximian.com>
15031
15032         * InternalWindowManager.cs: Respek clipping when drawing MDi
15033         decorations.
15034
15035 2006-02-08  Jackson Harper  <jackson@ximian.com>
15036
15037         * Hwnd.cs: Add bits to track non client expose events.
15038         * XplatUIX11.cs: Track non client expose events on the hwnd. This
15039         gives us a proper invalid rect and will allow for some nice
15040         optimizations with NC client drawing
15041         - MDI windows are children windows, so move their style handling
15042         into the child window block.
15043         * InternalWindowManager.cs: Remove a state reset that was
15044         getting invoked at the wrong time. Fixes managed windows getting
15045         into a 'stuck' captured state.
15046
15047 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
15048
15049         * TextControl.cs (Document.ctor): Now initializing 
15050           selection_anchor. Fixes #77493
15051
15052 2006-02-07  Jackson Harper  <jackson@ximian.com>
15053
15054         * TrackBar.cs: The increment/decrements were backwards.
15055
15056 2006-02-07  Mike Kestner  <mkestner@novell.com>
15057
15058         * Theme*.cs : remove ThemeEngine.Current usage as it just points back
15059         to the instance itself.
15060
15061 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
15062
15063         * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
15064           on ulongs and pointers, the size differs between 32bit and 64bit
15065           systems. 
15066
15067 2006-02-07  Mike Kestner  <mkestner@novell.com>
15068
15069         * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
15070         for 64 bit platforms to work around a metacity bug. 
15071
15072 2006-02-07  Jackson Harper  <jackson@ximian.com>
15073
15074         * TrackBar.cs: Process the input keys we need, and hookup to
15075         KeyDown instead of using WndProc, so we get key messages.
15076
15077 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com>
15078
15079         * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
15080           machine we're on. 
15081         * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
15082           we need to translate the XdndVersion atoms array before sending it
15083
15084 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com> 
15085
15086         * XplatUIX11.cs: 
15087           - The preceeding 64bit fixes had a bug: ChangeProperty expects the
15088             number of bits for the property, not the number of bytes. The
15089             change to provide IntPtr.Size broke 32bit. (64bit was also wrong
15090             but would not crash since it specified 8 bits instead of 4 bits)
15091           - More 64bit fixes: Switched all atoms from int to IntPtr (they are
15092             defined as XID -> long in the C headers)
15093           - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms 
15094             references since those are now IntPtr to begin with
15095           - Switched all Atom.XXX 'int' casts to IntPtr casts
15096           - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
15097           - Fixed XInternAtom signature for 64bit, now returns an IntPtr
15098           - Added XChangeActivePointerGrab DllImport (for X11DnD)
15099         * X11Structs.cs:
15100           - Changed 'int' type for Atoms in XEvent structures to IntPtr
15101           - Changed atom in HoverStruct to be IntPtr
15102         * X11DnD.cs:
15103           - Removed local DllImports, switched code to use those from XplatUIX11
15104           - Removed/fixed casts related to the switch of Atom to be a IntPtr
15105
15106 2006-02-06  Mike Kestner  <mkestner@novell.com>
15107
15108         * XplatUIX11.cs : many more 64 bit pinvoke changes.  I've audited all the 
15109         method signatures in the import region.  There may still be some
15110         lingering struct marshaling issues, as I didn't drill down into those.
15111         Yet.
15112
15113 2006-02-06  Jackson Harper  <jackson@ximian.com>
15114
15115         * ComboBox.cs: Dont manually set the top_item, this is computed
15116         when the scrollbar position is set.
15117
15118 2006-02-06  Mike Kestner  <mkestner@novell.com>
15119
15120         * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
15121         startup crashes on amd64.  There's other fixes needed.  All pinvoke
15122         usage of Atom needs to be mapped to IntPtr for example.  And there are
15123         likely other int/long issues to be addressed.
15124
15125 2006-02-04  Alexander Olk  <alex.olk@googlemail.com>
15126
15127         * FileDialog.cs: One more...
15128
15129 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
15130
15131         * FileDialog.cs: Next try
15132
15133 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
15134
15135         * FileDialog.cs: First part of fix for #77464
15136
15137 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
15138
15139         * ButtonBase.cs, ContainerControl.cs, Forms.cs,
15140           ThemeWin32Classic.cs: Fix for #77458. Correct handling of
15141           AcceptButton border drawing.
15142
15143 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com> 
15144
15145         * Form.cs: Moved positioning of form after auto scaling is applied,
15146           otherwise it would possibly use wrong form size.
15147
15148 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com>
15149
15150         * Control.cs (RecreateHandle): No need to re-create any child
15151           controls, the child windows will get destroyed automatically by
15152           the windowing system or driver, and re-created when the handle
15153           is being accessed the first time. Fixes #77456
15154         * Form.cs: No longer setting the form to closing if the handle is 
15155           being recreated. This seems like the right thing to do, don't
15156           have a bug or testcase for this, though.
15157
15158 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
15159
15160         * FileDialog.cs: Suspend/Resume layouting when changing sizes of
15161           controls to avoid unwanted side effects
15162
15163 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com> 
15164
15165         * Control.cs: 
15166           - ScaleCore needs to scale the bounds, not the ClientSize of the 
15167             control. Fixes #77416.
15168           - DefaultSize is 0,0 for control
15169         * TextBoxBase.cs: 
15170           - DefaultSize is 100, 20
15171           - SetBoundsCore: Now enforcing the height, no matter if the provided
15172             height is more or less than the preferred one, as long as AutoSize
15173             is on
15174         * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
15175
15176 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
15177
15178         * Control.cs:
15179           - ResumeLayout: Fixed logic when to call PerformLayout, we may not
15180             call unless both performLayout is true *and* we have a pending
15181             layout change
15182           - ResumeLayout: MS does not completely nest Suspend and Resume,
15183             they bottom out at 0, fixed our code to match that.
15184           - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
15185             SetBoundsCore, we were updating even when we shouldn't. This fixes
15186             swf-anchors mis-anchoring when resizing the app fast and lots.
15187           - UpdateDistances: Now only setting the left and top distance if 
15188             we have a parent and are not suspended, this is based on
15189             a suggestion by Don Edvaldson in bug #77355.
15190           - OnVisibleChanged: Fixed logic when to create the control. We may
15191             not create the control if we have no parent or if it's not visible;
15192             switched to using Visible property instead of is_visible field 
15193             since the property also considers parent states. This fixes a bug
15194             when starting Paint.Net
15195
15196 2006-02-02  Jackson Harper  <jackson@ximian.com>
15197
15198         * Form.cs: If the forms handle hasn't been created yet don't call
15199         into xplatui to make it top most, just set the topmost flag on the
15200         form in CreateParams
15201         * XplatUIX11.cs: Handle WS_EX_TOPMOST.
15202
15203 2006-02-01  Jackson Harper  <jackson@ximian.com>
15204
15205         * ScrollableControl.cs: Refactored the Recalculate method a
15206         little, this wasn't handling all the variants of bottom and right
15207         bars needed to be added and added/removed based on their
15208         counterparts being added/removed (which changes the drawable
15209         size). Also we special case client widths and heights of 0 and
15210         don't add the scrollbar for those.
15211
15212 2006-02-01  Peter Dennis Bartok  <pbartok@novell.com>
15213
15214         * XplatUIX11.cs: 
15215           - Added method to get AbsoluteGeometry(); currently unused, but might
15216             be used in the future, if we try again to figure out toplevel
15217             coordinates with some more crappy window managers
15218           - Added FrameExtents() method to retrieve the WM set decoration size
15219           - Tried to fix up AddConfigureNotify and handling of ReparentNotify 
15220             to deal with at least KDE, FVWM and metacity (Fixes #77092)
15221         * Hwnd.cs: 
15222           - Added whacky_wm tracking var for metacity
15223           - Added logic to have default menu height if the actual menu height
15224             has not yet been calculated (part of fix for #77426)
15225         * Form.cs: Keep track whether client size has been set and re-set 
15226           it if a menu is added/removed afterwards (Fixes #77426)
15227
15228 2006-01-31  Jackson Harper  <jackson@ximian.com>
15229
15230         * Control.cs: When a new Site is set on the component attempt to
15231         pull the AmbientProperties from it.
15232
15233 2006-01-31  Peter Dennis Bartok  <pbartok@novell.com>
15234
15235         * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
15236           in the background of the owning form. Fixes #77332
15237
15238 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
15239
15240         * MimeIcon.cs: Fix for #77409
15241
15242 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
15243
15244         * XplatUIX11GTK.cs: Initial import
15245
15246 2006-01-31  Jordi Mas i Hernandez <jordimash@gmail.com>
15247
15248         * FixedSizeTextBox: fixes class signature
15249
15250 2006-01-30  Jackson Harper  <jackson@ximian.com>
15251
15252         * FixedSizeTextBox.cs: New internal class that represents a
15253         textBox that will not be scaled.
15254         * TreeView.cs:
15255         * ComboBox.cs:
15256         * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
15257         standard TextBox.
15258                 
15259 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com> 
15260
15261         * XplatUIX11.cs: Retrieve default screen number instead of
15262           assuming 0. Attempted fix for #77318
15263
15264 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com>
15265
15266         * XplatUIWin32.cs: 
15267           - GetWindowPos: When a window is parented by FosterParent, use 
15268             the desktop instead of FosterParent as the base to get coordinates
15269           - CreateWindow: Don't make FosterParent the parent window for Popups
15270             if we don't want a taskbar entry, Popups automatically don't get one
15271         * Hwnd.cs: Need to call remove to actually remove the key from the
15272           hash table
15273
15274 2006-01-30  Mike Kestner  <mkestner@novell.com>
15275
15276         * MenuAPI.cs: adjust MainMenu item popup location to y=0.
15277
15278 2006-01-30  Jackson Harper  <jackson@ximian.com>
15279
15280         * TreeView.cs:
15281         * TreeNode.cs: Raise events no matter how the treenode is
15282         checked. Patch by Don Edvalson.
15283
15284 2006-01-30  Jackson Harper  <jackson@ximian.com>
15285
15286         * TreeNode.cs: Signature fix.
15287
15288 2006-01-29  Alexander Olk  <alex.olk@googlemail.com>
15289
15290         * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
15291
15292 2006-01-20  Mike Kestner  <mkestner@novell.com>
15293
15294         * Form.cs: Add ActiveTracker property to do Captures and perform mouse
15295         event forwarding when menus are active.
15296         * MenuAPI.cs: kill the GrabControl hack.  Use Form.ActiveTracker.
15297         Most of the patch is pdb's with a little rework.
15298
15299 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
15300
15301         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs: 
15302           Removed GetMenuDC and ReleaseMenuDC methods; replaced
15303           by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
15304         * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
15305         * InternalWindowManager.cs: Added use of PaintEventStart/End to
15306           handling of WM_NCPAINT message, now passing the PaintEventArgs to
15307           the PaintWindowDecorations method
15308         * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
15309         * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
15310         * MenuAPI.cs: Made tracker window invisible
15311         * XplatUIWin32.cs:
15312           - Removed GetMenuDC and ReleaseMenuDC methods
15313           - Implemented the client=false path for PaintEventStart and
15314             PaintEventEnd
15315
15316 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
15317
15318         * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
15319         * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
15320           styles
15321         * Form.cs: 
15322           - MaximizeBox, MinimizeBox: Recreate the handle when setting
15323             the style
15324           - CreateParams: Reworked the styles to match MS look'n'feel,
15325             removed automatic setting of MinimizeBox, MaximizeBox, etc. via
15326             the WS_OVERLAPPEDWINDOW style. This fixes #76823.
15327
15328 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
15329
15330         * XplatUIX11.cs(GetWindowState): Now throwing an exception when the 
15331           window is not mapped, since otherwise every form that's being 
15332           created is considered minimized, which is wrong.
15333         * Form.cs: Catching the exception and returning our internal value
15334           instead
15335
15336 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
15337
15338         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
15339           SetWindowMinMax() to have means to tell the driver about the minimum,
15340           maximum and maximized state window sizes. (Part of the fix for #76485)
15341         * Form.cs:
15342           - Implemented tracking of minimum and maximum window size, now calling
15343             new SetWindowMinMax() driver method to tell the driver (Part of the
15344             fix for #76485)
15345           - Finished handling of WM_GETMINMAXINFO method, now setting all values
15346             (Completes fix for #76485)
15347           - Calling new SetWindowMinMax driver method when the handle for a 
15348             form is created, to make sure the driver knows about it even if
15349             the values have been set before the window was created
15350           - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
15351             to avoid messing up our anchoring calculations (partial fix
15352             for #77355)
15353         * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
15354         * XplatUIX11.cs:
15355           - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
15356           - Improved GetWindowState() to detect 'Minimized' state on Metacity 
15357             (and presumably other freedesktop.org compliant WMs). Left the
15358             assumption unmapped=minimized, needed for SetVisible to work.
15359           - Now setting the window state when creating windows
15360           - Fixed SetVisible to consider/set the window state when mapping
15361             a Form. We cannot set the state before it's mapped, and we cannot
15362             use Form.WindowState once it's mapped (since it would ask the
15363             driver and get 'normal'. Therefore, we grab the state before
15364             mapping, map, and then set state.
15365           - Implmemented SetWindowMinMax method; Metacity does not seem to
15366             honor the ZoomHints, though.
15367         * XplatUIWin32.cs:
15368           - Removed MINMAXINFO (moved to XplatUIStructs)
15369           - Added SetWindowMinMax stub (on Win32 the only way to set that
15370             information is in response to the WM_GETMINMAXINFO message, which
15371             is handled in Form.cs)
15372           - Added logic to SetVisible to set the proper window state when a 
15373             form is made visible (fixes #75720)
15374
15375 2006-01-26  Jackson Harper  <jackson@ximian.com>
15376
15377         * Control.cs (BeginInvoke): Automagically handle EventHandlers the
15378         same way we handle them with Invoke.
15379
15380 2006-01-25  Peter Dennis Bartok  <pbartok@novell.com> 
15381
15382         * Form.cs:
15383           - Added tracking of window state so CreateParams can return
15384             the appropriate style
15385           - Moved setting of WS_CAPTION style in CreateParams to allow
15386             styles without caption
15387         * DataGridTextBoxColumn.cs: We are now also creating the TextBox 
15388           control if the TextBox property is accessed. Fixes #77345
15389         * Control.cs:
15390           - get_Created: now uses is_disposed and is_created to determine
15391             return value (suggested by Jackson)
15392           - CreateHandle: No longer exits if the handle is being recreated
15393           - RecreateHandle: If the handle is not yet created call the 
15394             appropriate method to create either control or handle. If the
15395             control is already created CreateHandle will simply exit instead
15396             of just creating the handle
15397         * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
15398           now SendMessage WM_DESTROY directly to the control when DestroyWindow
15399           is called.
15400         * XplatUIX11.cs: 
15401           - When DestroyWindow is called, instead of waiting for the 
15402             DestroyNotification from X11, we directly post it to the WndProc
15403             and immediately dispose the hwnd object.
15404             Same applies to DestroyChildWindows, and this obsoletes the
15405             expose_pending tracking. Contrary to Win32 behaviour we destroy our
15406             child windows before our own, to avoid X11 errors.
15407           - Removed the direct sending of WM_PAINT on UpdateWindow
15408         * XplatUIWin32.cs:
15409           - Reworked DoEvents and GetMessage to allow access to internal queue
15410             even when trying non-blocking access to the queue.  Fixes #77335. 
15411             Based on a patch suggestion by Don Edvalson. The new private
15412             GetMessage can now also be used as a backend for a PeekMessage
15413             frontend version.
15414         * XplatUI.cs: Improved debug output for CreateWindow
15415
15416 2006-01-25  Jackson Harper  <jackson@ximian.com>
15417
15418         * Help.cs: Allow param to be null. Patch by Don Edvalson.
15419
15420 2006-01-24  Jackson Harper  <jackson@ximian.com>
15421
15422         * ComboBox.cs: Clamp the max value set for the vertical scrollbar
15423         when we have a MaxDropItems lower then the selected index.
15424
15425 2006-01-24  Jackson Harper  <jackson@ximian.com>
15426
15427         * Control.cs: Don't allow selection of non visible controls, allow
15428         selection of controls without parents.
15429
15430 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
15431
15432         * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
15433         * DataGridDrawingLogic.cs: Add editing row only when is necessary
15434
15435 2006-01-23  Jackson Harper  <jackson@ximian.com>
15436
15437         * UpDownBase.cs: Make the textbox handle all the selection and
15438         tabbing. This fixes tabing to updown controls.
15439
15440 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
15441
15442         * TextBoxBase.cs: fixes exception thown the object was null
15443
15444 2006-01-23  Jackson Harper  <jackson@ximian.com>
15445
15446         * ButtonBase.cs: Just use the base CreateParams. They set
15447         visibility and enabled correctly.
15448         * ComboBox.cs:
15449         * TrackBar.cs:
15450         * MonthCalendar.cs: Lets let the base set as much of the
15451         createparams as possible so we don't have duplicate code all over
15452         the place.
15453
15454 2006-01-22  Alexander Olk  <alex.olk@googlemail.com>
15455
15456         * ThemeGtk.cs: Added TrackBar and some experimental code to
15457           get double buffering back
15458
15459 2006-01-21  Jordi Mas i Hernandez <jordimash@gmail.com>
15460
15461         * DataGrid.cs: Allows row number set internally higher than the last
15462         when creating a new row. Restores the editing functionality.
15463
15464 2006-01-20  Mike Kestner  <mkestner@novell.com>
15465
15466         * MimeIcon.cs: delay Image creation until the icons are accessed
15467         instead of creating 190 scaled images on GnomeHandler startup.
15468
15469 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com> 
15470
15471         * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
15472           first call base before processing the event. Fixes #77279
15473
15474 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com>
15475
15476         * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
15477           that the stride for the GDI bitmap would match the stride of
15478           a DIB or a Cursor.
15479
15480 2006-01-19  Alexander Olk  <alex.olk@googlemail.com>
15481
15482         * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
15483
15484 2006-01-19  Jackson Harper  <jackson@ximian.com>
15485
15486         * ComboBox.cs: Hookup the text controls keydown event so we get
15487         those when the text control has the focus.
15488
15489 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
15490
15491         * Label.cs: Now using the base events instead of defining new ones;
15492           this allows us to just call the base properties without having to
15493           duplicate all base property logic 
15494
15495 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
15496
15497         * Label.cs: A label by default is not a tabstop (Fixes one of our
15498           failing nunit tests)
15499
15500 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
15501
15502         * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
15503         * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
15504
15505 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
15506
15507         * Cursor.cs: Reimplemented creating cursor bitmaps without using
15508           the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
15509           This fixes #77218
15510         * XplatUIWin32.cs: 
15511           - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream) 
15512             constructor creates images that can't be saved. Part of the fix
15513             for #76103
15514           - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
15515           - SetWindowState: Switched ShowWindow flags (part of an upcoming 
15516             bug fix for handling window state in forms properly)
15517
15518 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
15519
15520         * ThemeGtk.cs: Simplify ScrollBar drawing
15521
15522 2006-01-18  Jackson Harper  <jackson@ximian.com>
15523
15524         * Splitter.cs: Set the default dock style for the splitter control
15525         in the constructor.
15526
15527 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
15528
15529         * ThemeGtk.cs: Corrected StateType and ShadowType for
15530           gtk_paint_box
15531
15532 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
15533
15534         * Control.cs: Make use of Theme.DoubleBufferingSupported
15535         * ThemeGtk.cs:
15536           - Added drawing for flat style buttons
15537           - Added ScrollBar drawing
15538
15539 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
15540
15541         * ThemeClearlooks.cs: Removed some unneeded code.
15542         * ThemeGtk.cs: First part of ThemeGtk enhancements.
15543
15544 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
15545
15546         * LinkLabel.cs: We need to update the hover drawing when
15547           leaving the control as well.
15548
15549 2006-01-18  Jordi Mas i Hernandez <jordimash@gmail.com>
15550
15551         * DataGrid.cs: Clicking on non empty areas in the columns
15552            area was giving an exception
15553
15554 2006-01-17  Jackson Harper  <jackson@ximian.com>
15555
15556         * ThemeWin32Classic.cs:
15557         * ListView.cs: Do not draw/clip the headers when the header style
15558         is None.
15559
15560 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
15561
15562         * DataGrid.cs: Fixes 77260
15563         
15564 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
15565
15566         * DataGrid.cs: Clicking on a column on a empty grid was giving
15567           an exception
15568
15569 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
15570
15571         * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
15572           or any keypress will crash the grid.
15573
15574 2006-01-17  Mike Kestner  <mkestner@novell.com>
15575
15576         * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
15577         * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for 
15578         invisible/previously-visible items.
15579         [Fixes #76909]
15580
15581 2006-01-17  Alexander Olk  <alex.olk@googlemail.com>
15582
15583         * ThemeClearlooks.cs:
15584         - Added CL_Draw_Button method; now other theme controls that are 
15585           not derived from button or do not have a button can draw buttons
15586           too
15587         - Updated ComboBox drawing
15588         - Beautified RadioButton drawing
15589         - Corrected drawing of bottom and left tabs
15590         - Beautified DateTimePicker and MonthCalendar
15591         - Added CPDrawButton and CPDrawRadioButton
15592
15593 2006-01-16  Jackson Harper  <jackson@ximian.com>
15594
15595         * ComboBox.cs: Set the initial value of the scrollbar to the
15596         current index. Reduce the numbers of refreshs and IndexOfs called.
15597
15598 2006-01-14  Alexander Olk  <alex.olk@googlemail.com>
15599
15600         * FileDialog.cs: When the file listview is focused hitting the
15601           backspace key moves the fileview to the parent directory
15602
15603 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
15604
15605         * Form.cs: 
15606           - Added RecreateHandle call when changing taskbar visibility to 
15607             trigger reparenting in Win32 driver (Fixes #75719)
15608           - If a window has minimize or maximize buttons, it cannot have
15609             a help button
15610         * XplatUIWin32.cs:
15611           - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
15612             the toplevel form with FosterParent (A toolwindow not on the
15613             taskbar) (Fixes #75719)
15614           - Made FosterParent a toolwindow
15615
15616 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
15617
15618         * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
15619
15620 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
15621
15622         * ToolTip.cs: If SetToolTip is called from a control and the mouse
15623           is currently over that control, make sure that tooltip_window.Text
15624           gets updated
15625
15626 2006-01-13  Mike Kestner  <mkestner@novell.com>
15627
15628         * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
15629
15630 2006-01-13  Jackson Harper  <jackson@ximian.com>
15631
15632         * TreeView.cs: On MS GetNodeAt never actually factors in the X
15633         value passed.  Also redraw the selected node when we recieve
15634         focus, so tabbing between trees works correctly.
15635
15636 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
15637
15638         * MimeIcon.cs: GnomeHandler: older gnome versions don't have
15639           ~/.gconf/%gconf-tree.xml, so use
15640           .gconf/desktop/gnome/interface/%gconf.xml
15641
15642 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
15643
15644         * TextControl.cs: Draw text in gray if control is disabled
15645
15646 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
15647
15648         * TreeView.cs: Draw the focus rectangle outside the highlight, to
15649           make sure it's always visible. Fixes #76680.
15650
15651 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
15652
15653         * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
15654
15655 2006-01-13  Jonathan Chambers  <jonathan.chambers@ansys.com>
15656
15657         * PageSetupDialog.cs: Added.
15658         * PrintDialog.cs: Attributes.
15659         * PrintPreviewControl.cs: Updates.
15660         * PrintPreviewDialog.cs: Updates.
15661         
15662 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
15663
15664         * Control.cs: Undid my selection check fix, since it's not needed
15665         * TextBoxBase.cs:
15666           - Now considering the presence of hscroll/vscroll when sizing
15667             vscroll/hscroll respectively. Fixed bug #77077
15668           - Added Left/Up/Down/Right to IsInputKey list to prevent
15669             ContainerControl from stealing them. This fixes what I broke
15670             with my last checkin.
15671
15672 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com> 
15673
15674         * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
15675           I finally understand how the property can be set without a setter :-)
15676
15677 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
15678
15679         * Application.cs:
15680           - Switched RunLoop to use static Message.Create to create a 
15681             Message object
15682           - Added PreProcessMessage call in runloop for keyboard events; this
15683             is part of the fix for #77219, I overlooked this originally in the
15684             MSDN doc for PreProcessMessage
15685         * Control.cs:
15686           - Removed call to PreProcessMessage from handling of keyboard 
15687             messages; it's supposed to be done in the message pump
15688           - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
15689             per MSDN documentation.
15690           - IsInputChar: All chars are input chars by default; removed the 
15691             parent calling chain, MS does not document that
15692           - PreProcessMessage: If IsInputChar is true, we want to return false
15693             to allow dispatching of the message
15694           - When selecting the next control, now also check that we're not
15695             selecting ourselves again and therefore return a false positive.
15696         * TextBoxBase.cs:
15697           - Tried to match return values for IsInputKey and ProcessDialogKey
15698             to what MS returns; moved processing of our special keys outside
15699             ProcessDialogKey since MS does not seem to return true on those.
15700           - Moved code that previously was in ProcessDialogKey into new private
15701             ProcessKey method, which gets called upon receipt of WM_KEYDOWN
15702           - Reworked handling of WM_CHAR to not have to duplicate code from
15703             Control.cs anymore, instead we simply call down to base.
15704            
15705 2006-01-12  Jackson Harper  <jackson@ximian.com>
15706
15707         * ComboBox.cs: We always need to refresh the text area when
15708         EndUpdate is called. Fixes the combobox in the file dialog.
15709         * Control.cs: Don't create the creator_thread until the controls
15710         handle is created.  Also in InvokeRequired we check if the
15711         creator_thread is null. This gives the effect of InvokeRequired
15712         returning true if the controls handle is not created yet, and
15713         matches MS.
15714
15715 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
15716
15717         * XplatUI.cs:
15718           - Added StartLoop() driver method. This is used to allow drivers to
15719             prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
15720             loop for a particular thread
15721           - Added EndLoop() driver method. This is called once the message
15722             pump for the thread is shut down
15723           - Added SupportsTransparency method to allow the driver to indicate
15724             opacity support for windows
15725         * Form.cs:
15726           - Removed TODO attribute, completed AllowTransparency property
15727           - Added documented logic to Opacity
15728         * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
15729           ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
15730           versions of CompatibleTextRendering
15731         * X11Structs.cs: Added opacity atom to our atom enumeration
15732         * Hwnd.cs: Added opacity tracking (we need to track since the opacity
15733           of a form might be set before it's reparented by the WM, and we need
15734           the opacity value without calling up to Form)
15735         * XplatUIDriver.cs: Added StartLoop(), EndLoop() and 
15736           SupportsTransparency() driver methods
15737         * Application.cs: Now calling StartLoop and EndLoop driver methods
15738         * XplatUIX11.cs:
15739           - Added opacity atom registration
15740           - Added StartLoop()/EndLoop() methods. They're empty right now but
15741             will need to get implemented when we switch to a per-thread queue
15742           - Implemented SupportsTransparency() method
15743           - Implemented SetWindowTransparency() method
15744           - Added support for setting the opacity value when a window is
15745             reparented (since the opacity needs to be set on the WM frame)
15746         * XplatUIOSX.cs, XplatUIWin32.cs:
15747           - Added SupportsTransparency(), StartLoop() and EndLoop() methods
15748
15749 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
15750
15751         * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
15752
15753 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
15754
15755         * FileDialog.cs: Added ToolTip for MWFFileView
15756         * MimeIcon.cs: Rewrote GnomeHandler.
15757           - Get currently used gnome icon theme from
15758             ($HOME)/.gconf/%gconf-tree.xml
15759           - Make use of inherited icon themes
15760           - Support SVG icon themes like Tango via librsvg
15761
15762 2006-01-12  Miguel de Icaza  <miguel@novell.com>
15763
15764         Revert's Jackson's revert which broke 2.0 builds.   Fix both
15765         builds. 
15766         
15767         * Application.cs: Move the use_compatible_text_rendering outside
15768         the NET_2_0 define.  If we ever need to use the
15769         use_compatible_text_rendering on the individual controls they will
15770         access the variable from the common shared code paths.
15771
15772 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
15773
15774         * XplatUI.cs:
15775           - Added more granular debug options
15776           - Added method to print both window text and id
15777           - Switched debug output to use new Window() debug method
15778           - Added IsEnabled() driver method
15779           - Added EnableWindow() driver method
15780         * Form.cs:
15781           - Removed end_modal; no longer needed, new loop handles termination
15782             via 'closing' variable
15783           - If form is modal, setting DialogResult will now initiate loop
15784             termination via 'closing' variable
15785           - Added support for is_enabled/WS_DISABLED to CreateParams
15786           - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
15787             does all the work
15788           - Removed code that's now in RunLoop from ShowDialog()
15789           - Added various documented sanity checks to ShowDialog()
15790           - Added handling of WM_DESTROY message; we set 'closing' on getting
15791             the message to indicate the message pump to terminate
15792           - Added handling of new internal WM_CLOSE_INTERNAL message - it's
15793             send by the Application.ExitThread method. (We send the message
15794             to destroy the window after all other events have been
15795             processed through the queue, instead of destroying the handle 
15796             directly)
15797           - Moved code from Close() method to WM_CLOSE handler; added logic
15798             to only send close-related events if the form is not displayed
15799             modal
15800         * Splitter.cs (..ctor): Fixed typo in resource name
15801         * Control.cs:
15802           - DrawBackgroundImage: Explicitly selecting the wrap mode for the
15803             brush now
15804           - set_Cursor: Now only setting calling into XplatUI if the handle for
15805             the control is already created; this avoids implict handle creation
15806             or crashes if it's not created
15807           - set_Enabled: Now setting the enabled state via the new driver method
15808             instead of just tracking it
15809           - CreateParams: Added logic to set WS_DISABLED based on enabled state
15810           - CreateControl: Reordered event firing and method calls to more
15811             closely fire events in the order MS does. Now setting the
15812             enabled state in the driver when creating the control.
15813           - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
15814             match MS order
15815         * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
15816           MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED 
15817         * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
15818         * Hwnd.cs:
15819           - Added tracking of window enabled state (get_Enabled/set_Enabled)
15820           - Added EnabledHwnd property to easily allow a driver to find the
15821             handle of the first enabled window in the parent chain (this is
15822             used by drivers to pass up input events of disabled windows)
15823         * XplatUIDriver.cs: Added IsEnabled() method
15824         * Application.cs:
15825           - Removed crude and obsolete exiting tracking variable
15826           - Removed internal ModalRun(); replaced by RunLoop()
15827           - Implemented private CloseForms() method to allow closing all 
15828             windows owned by a particular (or all) threads
15829           - Exit() now properly closes all windows without forcing the message
15830             pump to quit
15831           - Removed obsolete InternalExit() method
15832           - Changed Run() methods to use new RunLoop() message pump
15833           - Implemented new RunLoop() method for both modal and non-modal forms
15834         * CommonDialog.cs:
15835           - get_CreateParams: Added setting of WS_DISABLED
15836           - Simplified ShowDialog(); now all the work is done in RunLoop(),
15837             invoked via Form.ShowDialog()
15838         * NativeWindow.cs: We don't remove the window from the collection when
15839           the handle is destroyed; there might still be messages for it in the
15840           queue (mainly the resulting WM_DESTROY); instead it will be removed
15841           when Control calls InvalidateHandle in the WM_DESTROY handler
15842         * XplatUIX11.cs:
15843           - CreateWindow: Added logic to handle the WS_DISABLED window style
15844           - EnableWindow: Implemented based on Hwnd.Enabled
15845           - GetMessage: Reset PostQuitState so the method can be called again
15846           - Implemented support for disabled windows (passing messages to the
15847             first enabled parent) in handling all input messages
15848           - Added optimizations for handling Expose events
15849           - Implemeted new driver method IsEnabled()
15850           - Now always resetting paint pending tracking vars when we start paint
15851           - Re-implemented UpdateWindow via just sending a WM_PAINT message
15852         * XplatUIOSX.cs: Added IsEnabled method stub
15853         * XplatUIWin32.cs: Implemented new IsEnabled() method
15854
15855 2006-01-11  Jackson Harper  <jackson@ximian.com>
15856
15857         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
15858         LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
15859         variables a little.
15860         * ColorDialog.cs: Clear out the old form before adding the new
15861         panel.  
15862
15863 2006-01-11  Jackson Harper  <jackson@ximian.com>
15864
15865         * X11Dnd.cs: Make sure to add all the text formats when adding
15866         strings to the data object.
15867         * TreeNodeCollection.cs: When adding to a sorted tree we need to
15868         do some redrawing too.  Also change the UpdateNode to an
15869         UpdateBelow so the newly added node gets painted.
15870         
15871 2006-01-11  Miguel de Icaza  <miguel@novell.com>
15872
15873         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
15874         LinkLabel.cs, PropertyGrid.cs: Implement the
15875         UseCompatibleTextRendering property for 2.x
15876
15877         * Application.cs (SetCompatibleTextRenderingDefault): Add. 
15878
15879 2006-01-11  Jackson Harper  <jackson@ximian.com>
15880
15881         * TreeView.cs: Use the property for setting the selected node so
15882         the correct events get raised.
15883         * TreeNode.cs: Update the tree when the fore/back colours of a
15884         node are set.
15885
15886 2006-01-10  Jackson Harper  <jackson@ximian.com>
15887
15888         * TreeView.cs: Allow setting SelectedNode to null.
15889
15890 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
15891
15892         * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
15893
15894 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
15895
15896         * PrintControllerWithStatusDialog.cs: Update page number in dialog.
15897
15898 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
15899
15900         * PrintDialog.cs: Added attributes and set default property values.
15901
15902 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
15903
15904         * PrintControllerWithStatusDialog.cs: 
15905         Added PrintControllerWithStatusDialog.
15906
15907 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
15908
15909         * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
15910         XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
15911
15912 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
15913
15914         * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
15915
15916 2006-01-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
15917
15918         * ComboBox.cs: Added KeyDown event handler for processing arrow keys
15919         and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
15920
15921 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
15922
15923         * MimeIcon.cs: Added internal class SVGUtil.
15924
15925 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
15926
15927         * FileDialog.cs: Don't crash if there are two files with the
15928           same name but different locations.
15929
15930 2006-01-08  John BouAntoun  <jba-mono@optusnet.com.au>
15931
15932         * MonthCalendar.cs: Fixed annoying rendering bug when selecting
15933         dates across multiple month grids. Used to not highlight entire 
15934         month, but does now.
15935         
15936 2006-01-06  Jackson Harper  <jackson@ximian.com>
15937
15938         * MonthCalendar.cs: Removed DoEvents call to prevent a running
15939         message loop. Change timer intervals to numbers that seem more
15940         natural.
15941
15942 2006-01-06  John BouAntoun  <jba-mono@optusnet.com.au>
15943
15944         * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
15945           object for location info since screen object is now implemented.
15946
15947 2006-01-05  Jackson Harper  <jackson@ximian.com>
15948
15949         * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
15950         * AsyncMethodResult.cs: We no longer use a WeakReference for the
15951         AsyncMethodResult, this is because we ALWAYS want the
15952         ManualResetEvent to get set.
15953         * Control.cs: When disposing use an async invoke to call shutdown
15954         code, so that thigns don't block on the finalizer thread.  Also
15955         check if we even have a message loop before trying to send
15956         messages, if we don't then don't bother sending messages.
15957         - No more weak references for async methods
15958         * XplatUIDriver.cs: No more weak references for async methods.
15959
15960 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
15961
15962         * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
15963           returns two FontFamily with the same name
15964
15965 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
15966
15967         * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of 
15968           drawing disabled text. Instead using the ColorGrayText color
15969
15970 2006-01-04  Jackson Harper  <jackson@ximian.com>
15971
15972         * TreeNode.cs: redraw the node when its image index is changed.
15973
15974 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
15975
15976         * RichTextBox.cs: Same fix as last, just for SelectionColor. This
15977           time I checked there are no others like it.
15978
15979 2006-01-04  Jackson Harper  <jackson@ximian.com>
15980
15981         * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
15982         this gives the behavoir I was looking for.
15983         * Control.cs: Special case Invoking EventHandlers, this matches MS
15984         and fixes part of bug #76326.
15985
15986 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
15987
15988         * ThemeClearlooks.cs, FileDialog.cs:
15989           - Reflect the latest Theme class changes
15990           - Remove Mono.Unix.Syscall.time in FileDialg and replace it 
15991             with DateTime
15992             
15993 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
15994
15995         * Theme.cs: Cache UI resource images and resize them if needed
15996
15997 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
15998
15999         * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
16000           is called. This fixes the crash in Nexxia when setting the font
16001           attributes in the chat. [However, RTF needs a look-over to make sure
16002           that all SelectionXXX methods handle the special case that selection
16003           is empty and therefore the change must be applied to all text starting
16004           at the cursor/selection start]
16005
16006 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com> 
16007
16008         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
16009           XplatUIOSX.cs: Added SendMessage and PostMessage methods
16010         * X11Keyboard.cs: Switched to new way of calling PostMessage
16011
16012 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
16013
16014         * Theme.cs: Added theme interface for images to allow the theme to
16015           control what images are used for things like FileDialog, MessageBox
16016           icons, etc.
16017         * MessageBox.cs: Now uses the new Theme icon/image interfaces
16018
16019 2006-01-03  Alexander Olk  <alex.olk@googlemail.com>
16020
16021         * FileDialog.cs:
16022           - Removed some dead code
16023           - Opening a recently used file does work now
16024           - Small UI enhancements
16025           - Refactoring
16026
16027 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
16028
16029         * FileDialog.cs: Forgot too add __MonoCS__
16030
16031 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
16032
16033         * FileDialog.cs: We are able to read recently used files now let's
16034           go on and write them.
16035
16036 2006-01-01  Alexander Olk  <alex.olk@googlemail.com>
16037
16038         * FileDialog.cs: Breathe some life into "last open"/"recently used"
16039           button
16040         * MimeIcon.cs: Do a check for the top level media type also
16041
16042 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
16043
16044         * ThemeClearlooks.cs:
16045           - Added CPDrawStringDisabled
16046           - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
16047             some chars if the text doesn't fit into text_rect
16048           - DrawListViewItem: If View = View.LargeIcon center the image;
16049             rewrote the drawing of ListViewItem.Text if View = 
16050             View.LargeIcon
16051
16052 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
16053
16054         * MimeIcon.cs: Use default KDE icon theme if there is no
16055           "48x48" directory for the current icon theme, fixes #77114
16056         * Mime.cs: Disable not working and actually not used code. 
16057         * ThemeWin32Classic.cs:
16058           - Replace "new SolidBrush" in GetControlBackBrush and
16059             GetControlForeBrush with ResPool.GetSolidBrush
16060           - Changed DrawListViewItem from private to protected virtual
16061         * FileDialog.cs:
16062           - Added form.MaximizeBox = true
16063           - Don't throw an exception if there is a broken symbolic link
16064
16065 2005-12-23  Jackson Harper  <jackson@ximian.com>
16066
16067         * TabControl.cs: Give the panels focus, keyboard navigation is
16068         fixed so this works correctly now.
16069         - We need these key events also.
16070         * ToolBar.cs: Remove some of the poor mans double buffering.
16071         
16072 2005-12-24  Alexander Olk  <alex.olk@googlemail.com>
16073
16074         * ComboBox.cs: The internal TextBox now returns the focus.
16075
16076 2005-12-23  Jackson Harper  <jackson@ximian.com>
16077
16078         * ThemeWin32Classic.cs:  Draw the text for all tab appearances.
16079
16080 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
16081
16082         * Control.cs: Removed debug code
16083         * XplatUIX11.cs: Changed DestroyChildWindows to also consider
16084           implicit children
16085
16086 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com> 
16087
16088         * Control.cs: When creating the control, update the Z-order after
16089           all it's children are created, too. (Fixes nexxia not showing
16090           picturebox bug)
16091
16092 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
16093
16094         * Control.cs: Do not update the anchoring distances if layout is
16095           suspended, instead do it once layout is resumed
16096
16097 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com> 
16098
16099         * Control.cs: 
16100           - After many hours of debugging, for both Jackson and
16101             myself, it turns out that it helps to set the parent of a control
16102             if you want to actually see it onscreen. In the spirit of that
16103             discovery, we're now setting the parent of the control and
16104             it's children when the control's handle is created. This fix
16105             will make Lutz Roeder's Reflector run happily. 
16106           - now just creating the handle instead of the whole control when
16107             getting a graphics context for the control.
16108
16109 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
16110
16111         * ScrollableControl.cs: When calculating the canvas, don't consider
16112           the scrollbar widths. Instead, predict if horizontal scrollbar
16113           will affect canvas when deciding on vertical display and vice versa.
16114
16115 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
16116
16117         * RichTextBox.cs: Set default RTF font for documents that don't
16118           have a font table (Fixes #77076)
16119
16120 2005-12-22  Jackson Harper  <jackson@ximian.com>
16121
16122         * TextBoxBase.cs: It's difficult to do, but you can have an empty
16123         clipboard. This prevents a NullRef in that case.
16124         * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
16125         clipboard. PRIMARY is for the currently selected text only. (We
16126         should implement PRIMARY at some point.
16127
16128 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
16129
16130         * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
16131           a Unicode function with a structure that was defined in Ansi way.
16132           This fixes #76942.
16133
16134 2005-12-21  Jackson Harper  <jackson@ximian.com>
16135
16136         * StatusBar.cs: Statusbar handles its fore/back colours on it's
16137         on. Because thats how it rolls. (and this avoids it using ambient
16138         colours).
16139         * ThemeWin32Classic.cs: Use the proper back color for filling.
16140         * Menu.cs: Use the system menu bar color for drawing menu
16141         bars. Using the window back color will bring ambient colours into
16142         the picture.
16143
16144 2005-12-21  Alexander Olk  <alex.olk@googlemail.com>
16145
16146         * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
16147           Bitmaps were created and not disposed.
16148
16149 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
16150
16151         * Control.cs (CreateControl): Don't do anything if the control is
16152           already created, otherwise we'd fire the OnCreated event more than
16153           once
16154
16155 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
16156
16157         * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
16158           will always match. Instead return -1. Fixes #76464.
16159
16160 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
16161
16162         * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
16163           neither the beginning nor the end of the line (Fixes bug #76479)
16164
16165 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
16166
16167         * Control.cs:
16168           - ControlNativeWindow.ControlFromHandle(): Now handling situation
16169             where handle is invalid
16170           - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
16171             instead of slower linear search
16172         * NativeWindow.cs: Don't remove the window from the hashtable until
16173           after the driver has destroyed it (since the driver might use
16174           Control.FromHandle to lookup the control object
16175         * Hwnd.cs: Added DestroyPending property to track if a window is 
16176           already destroyed as far as the driver is concerned and only hasn't
16177           yet notified the control
16178         * XplatUIX11.cs:
16179           - Activate(): Check if the window is still valid before using the 
16180             handle
16181           - Implemented DestroyChildWindow() method to mark child windows as
16182             destroyed when a window is destroyed. This prevents situations 
16183             where we might call an X method based on queued events for a
16184             window that already has been destroyed but we haven't yet pulled
16185             the destroy method from the queue.
16186           - Added a call to the new DestroyChildWindow() method to the drivers
16187             DestroyWindow code. Also now marking the destroyed window itself
16188             as pending
16189
16190 2005-12-20  Jackson Harper  <jackson@ximian.com>
16191
16192         * StatusBar.cs:
16193         * StatusBarPanel.cs: Don't calculate panel sizes on draw
16194         anymore. Just do them when needed, also track the rects of panels
16195         so that we can optimize refreshing more in the future.
16196
16197 2005-12-20  Alexander Olk  <alex.olk@googlemail.com>
16198
16199         * ColorDialog.cs: Fixed focus drawing in small color controls
16200
16201 2005-12-19  Jackson Harper  <jackson@ximian.com>
16202
16203         * InternalWindowManager.cs:
16204         * MdiWindowManager.cs: Cleanup some coordinate system changes so
16205         moving windows works properly.
16206
16207 2005-12-19  Peter Dennis Bartok  <pbartok@novell.com> 
16208
16209         * Control.cs: 
16210           - Removed call to InitLayout() from SetBoundsCore(); doc says
16211             it's only called when a control is added to a container
16212           - Split InitLayout logic, moved to separate UpdateDistances() method
16213             since we need to perform those calculations more often than just
16214             when adding the control to a container. (Needed to fix #77022)
16215           - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
16216           - Reduced the OnBindingContextChanged events count, don't send them
16217             unless the control is created, we still aren't totally matching
16218             MS, but I can't quite figure out some of their rules
16219
16220 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
16221
16222         * ThemeClearlooks.cs: Corrected distance between ProgressBar
16223           stripes
16224
16225 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
16226
16227         * ThemeClearlooks.cs:
16228           - Updated ProgressBar drawing
16229           - Corrected drawing of ScrollBars and scroll buttons
16230           - Some temporary fixes for minor pixel artefacts
16231
16232 2005-12-18  Peter Dennis Bartok  <pbartok@novell.com> 
16233
16234         * Control.cs:
16235           - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
16236             cause events to be sent in the same order as MS does.
16237           - Added ChangeParent() method to trigger various OnXXXChanged events
16238             that need to be fired when a parent changes (This is a reworking
16239             of the patch from r54254, with the X11 errors fixed)
16240           - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
16241             since on MS we get OnLayoutChanged events when calling Clear()
16242           - Changed Enabled property to consider parent state as well, if a
16243             parent is not enabled, the control will not be either
16244           - Changed Parent property to simply call Controls.Add() since that
16245             now does all the work required, this way we avoid code duplication
16246           - Threw in a few OnBindingsContextChanged calls to try and match
16247             when MS sends them. We seem to send a few too many, though.
16248           - Added call to CreateControl when adding the control to a parent.
16249             We were never calling CreateControl. Still needs some work, in
16250             some places we treat HandleCreated and ControlCreated as equal, 
16251             which is wrong
16252           - Removed obsolete commented out code from UpdateZOrder()
16253
16254 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
16255
16256         * ThemeClearlooks.cs: Updated TrackBar drawing.
16257
16258 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
16259
16260         * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
16261
16262 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
16263
16264         * FileDialog.cs: Add the Help button and the open readonly
16265           checkbox only if needed
16266
16267 2005-12-16  Jackson Harper  <jackson@ximian.com>
16268
16269         * Control.cs: Make sure we have an active menu before trying to
16270         process commands on it. Prevents menu-less forms from crashing
16271         when Alt is pressed.
16272         * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
16273         Dieter Bremes.
16274         * RichTextBox.cs: Expand statement to help out gmcs and fix the
16275         2.0 build.
16276
16277 2005-12-16  Jackson Harper  <jackson@ximian.com>
16278
16279         * InternalWindowManager.cs: Don't translate tool windows screen
16280         coordinates. This fixes windows 'bouncing' around when being moved.
16281
16282 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
16283
16284         * TextBoxBase.cs:
16285           - MaxLength now treats 2^31-1 equal to unlimited length (this is
16286             not quite MS compatible, MS uses that number only for single line
16287             and 2^32-1 for multi-line, but I figure it won't hurt keeping
16288             the limit at 2GB)
16289           - Now enforcing the MaxLength limit when entering characters
16290           - Added argument to internal Paste() method to track if it's called
16291             from programatically or via keyboard, since keyboard driven pastes
16292             need to enforce max-length
16293           - Added logic to Paste to only paste as many chars as MaxLength 
16294             allows
16295         * RichTextBox.cs: Updated to use new obey argument for internal Paste()
16296         * TextControl.cs:
16297           - Added Length property to return number of characters in document
16298           - Added private CharCount property which only tracks actual chars
16299             in the document (no linefeeds) and fires event when CharCount
16300             changes
16301           - Added tracking of character count to all methods that alter it
16302           - Added LengthChanged event to allow applications to subscribe
16303             to any changes to the document
16304
16305 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
16306
16307         * TextBox.cs: 
16308           - Removed local password_char field (moved to TextBoxBase)
16309           - Now setting the document's password var when password is
16310             set
16311         * TextBoxBase.cs:
16312           - Added password_char field (needed here so MultiLine can
16313             access it)
16314           - Added logic to MultiLine property setter to set the document's
16315             variable when password display is allowed
16316           - Removed debug code and made some debug code conditional
16317         * TextControl.cs:
16318           - Added RecalculatePasswordLine() method to handle special password
16319             char only lines
16320           - Added PasswordChar property, also added related tracking vars
16321           - Draw() method now uses local text var for grabbing text to draw,
16322             this var is set to line.text unless we're doing password display,
16323             then it is set to the pre-generated all-password-chars line
16324           - Added calling RecalculatePasswordLine() method for password lines
16325
16326 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
16327
16328         * Hwnd.cs: 
16329           - Added Reparented property to allow tracking of Window Manager
16330             reparenting actions (which affect X/Y calculations of toplevel 
16331             windows)
16332           - Made ToString() print window handles in hex
16333         * XplatUIX11.cs:
16334           - AddConfigureNotify(): Now uses reparented state off Hwnd to
16335             determine if X/Y needs offsetting
16336           - AddConfigureNotify(): Fixed offset calculations
16337           - Now adds ReparentNotify messages into the queue
16338           - Now processes ReparentNotify messages and causes a 
16339             WM_WINDOWPOSCHANGED message to be sent upstream if a window
16340             is reparented (as most likely it's X/Y coordinates are changed
16341             due to that)
16342
16343 2005-12-14  Jackson Harper  <jackson@ximian.com>
16344
16345         * XplatUIX11.cs: Tool windows still need to respek focus.
16346
16347 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
16348
16349         * Control.cs: Undid 54254 (causing XConfigure errors) so we can
16350           have a working release
16351
16352 2005-12-13  Jackson Harper  <jackson@ximian.com>
16353
16354         * Form.cs: Update styles after setting the border style regardless
16355         of whether or not the window is using a window manager.
16356
16357 2005-12-13  Jackson Harper  <jackson@ximian.com>
16358
16359         * Form.cs: We now hook into an internal window manager instead of just an
16360         MDI subsystem, this is so we can have properly behaving tool windows.
16361         * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
16362         * InternalWindowManager.cs: New internal class that acts as a
16363         window manager for tool windows and as a base for mdi windows.
16364         * MdiWindowManager.cs: New class that acts as a window manager for
16365         mdi windows.
16366
16367 2005-12-12  Jackson Harper  <jackson@ximian.com>
16368
16369         * Control.cs: Updates so we match behavoir for for implicit
16370         controls. Fixes explosions in MDI.
16371
16372 2005-12-12  Jackson Harper  <jackson@ximian.com>
16373
16374         * Control.cs: Implement Invalidate (Region).
16375
16376 2005-12-12  Peter Dennis Bartok  <pbartok@novell.com> 
16377
16378         * Control.cs: 
16379           - Changed handling of Controls.Add/Controls.Remove to fire (almost) 
16380             the same events as MS does. MS fires events for each property 
16381             except, for unknown reasons, Cursor, when the control is reparented. 
16382             I can't seem to totally match add/remove since MS also fires some 
16383             VisibleChanged events, which makes no sense. Consolidated the
16384             parenting code into a separate method so it can be called from
16385             both Add and Remove. set_Parent no longer needs any special logic
16386             as it calls the parent's add method which implicitly fires
16387             all events
16388           - Removed some obsolete code and debug output
16389           - Enabled state is inherited from parents, if this is enabled
16390
16391 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com> 
16392
16393         * Form.cs: Removed commented out code
16394
16395 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com>
16396
16397         * Control.cs:
16398           - Added internal version of Invoke, with additional argument 
16399             indicating if we're calling it from a Dispose() handler. That
16400             way we can avoid BeginInvoke throwing an exception if we're
16401             calling for an already destroyed window.
16402           - Added a dispose argument to BeginInvokeInternal, and made the
16403             check if a valid window handle chain exists conditional on
16404             it not being a dispose call
16405           - Removed code in DestroyHandle to destroy our children. Since we
16406             now handle the WM_DESTROY message we will catch all our children
16407             being destroyed.
16408           - Now calling OnHandleDestroyed from our new WM_DESTROY handler
16409         * Form.cs:
16410           - Added a field to track the application context of the form.
16411           - No need to set closing variable as response to WM_CLOSE, instead
16412             we destroy the window. We also call PostQuitMessage if the form
16413             has an application context (which makes it the main app form,
16414             which, when closed terminates the app)
16415         * XplatUI.cs:
16416           - Dropped Exit() method, it's naming was confusing
16417           - Added PostQuitMessage() which causes GetMessage to return false
16418             once the message queue is empty
16419         * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added 
16420           PostQuitMessage()
16421         * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
16422           no longer a valid XplatUI method, but left it in since it's used
16423           internally. Added empty PostQuitMessage() method.
16424         * MenuAPI.cs: Replaced call to Exit() with call to
16425           PostQuitMessage, even though this is probably no longer needed.
16426         * Hwnd.cs: Added 'pretty' ToString() to support debugging.
16427         * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
16428         * Application.cs:
16429           - Replaced call to XplatUI.Exit() with PostQuitMessage()
16430           - Removed old debug code that would call XplatUI for exception
16431             display, enabled standard exception handling (Still not enabled
16432             though, until NativeWindow's ExternalExceptionHandler define
16433             is removed
16434         * NativeWindow.cs:
16435           - Added internal method to allow control to update NativeWindow
16436             after a window has been destroyed
16437           - Added handling of already destroyed windows when calling i
16438             DestroyWindow
16439           - Added removal of handle from list on ReleaseHandle
16440         * XplatUIX11.cs:
16441           - Dropped GetMessageResult var and related code
16442           - Added PostQuitState to field to track if PostQuitMessage has been
16443             called
16444           - Dropped Exit() method
16445           - Added PostQuitMessage() method
16446           - GetMessage now will return false if PostQuitState is set and no
16447             more messages are in the queue.
16448           - Expose handler will no longer generate WM_PAINT messages if we are
16449             in PostQuitState since it's very likely any windows have already
16450             been destroyed, and since Hwnd won't get updated until we have
16451             processed the DestroyNotify we'd be causing X errors.
16452         
16453 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
16454
16455         * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
16456           Thanks to Mike for pointing out the err of my ways.
16457
16458 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
16459
16460         * Control.cs(PreProcessMessage): Moved menu handling back, but
16461           after all other key handling, to match MS (who handles Menu in
16462           DefWndProc)
16463         * Menu.cs (WndProc): Removed my brainfart
16464
16465 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
16466
16467         * Control.cs(PreProcessMessage): Removed special menu handling 
16468         * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
16469
16470 2005-12-07  Mike Kestner  <mkestner@novell.com>
16471
16472         * Control.cs : special case SYSKEYUP so that we can adjust keynav
16473         state according in tracker.
16474         * Menu.cs : promote tracker field to base class and provide a tracker
16475         lookup capability.  Add/Remove shortcuts dynamically if the top menu
16476         has a tracker. Unparent items that are removed from the collection.
16477         * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
16478         * Theme*.cs: add always_show_hotkeys field to support configurability
16479         of mnemonic display.  win32 doesn't show mnemonics until Alt is
16480         pressed.
16481
16482 2005-12-07  Jackson Harper  <jackson@ximian.com>
16483
16484         * MdiChildContext.cs: Use Control.ResetCursor.
16485         * Control.cs: ResetCursor needs to set the property so that the
16486         correct XplatUI call gets made.
16487
16488 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
16489
16490         * Control.cs: More fixes to make our key events match MS. We
16491           were not setting the modifier state on KeyData, and we were
16492           not generating any events when Alt was pressed with a key
16493           since handling of WM_SYSxxx was missing for the OnKey methods.
16494
16495 2005-12-07  Jackson Harper  <jackson@ximian.com>
16496
16497         * MdiChildContext.cs: reenable the sizing code.
16498         - When the mouse leaves a window reset its cursor.
16499
16500 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
16501
16502         * ThemeClearlooks.cs: Reflect latest Hwnd changes
16503
16504 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
16505
16506         * Hwnd.cs: Now using the theme 3d bordersize to calculate
16507           widths of Fixed3D borders
16508
16509 2005-12-07  Jackson Harper  <jackson@ximian.com>
16510
16511         * MdiClient.cs: Fix warnings. Earn Mike's love.
16512
16513 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
16514
16515         * ThemeClearlooks.cs:
16516           - Adjusted mouse over button color
16517           - Added first parts of CheckBox drawing
16518           - Added correct color for selected text background
16519           - Fixed ComboBox drawing
16520           - Added CPDrawBorder3D and CPDrawBorder
16521
16522 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
16523
16524         * XplatUIX11.cs: Added call to XBell for AudibleAlert
16525
16526 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com> 
16527
16528         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
16529           XplatUIOSX.cs: Added AudibleAlert() method to have a means to
16530           alert users via sound. We could add an enum arg with different
16531           types of alerts in the future
16532
16533 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
16534
16535         * Control.cs: Fix behaviour problems pointed out by Mike
16536
16537 2005-12-05  Mike Kestner  <mkestner@novell.com>
16538
16539         * StatusBarPanel.cs: add Invalidate method and hook it into all the
16540         prop setters.  Calls parent.Refresh for now, but could be maybe be
16541         optimized with an internal method on StatusBar at some point.
16542         [Fixes #76513]
16543
16544 2005-12-05  Peter Dennis Bartok  <pbartok@novell.com> 
16545
16546         * RichTextBox.cs: Implemented get_SelectionColor
16547
16548 2005-12-05  Alexander Olk  <alex.olk@googlemail.com>
16549
16550         * ThemeClearlooks.cs:
16551           - Removed dead code
16552           - Draw black button border only if button is Form.AcceptButton
16553           - Draw correct button color for pressed RadioButton if the mouse 
16554             has entered the button
16555           - Updated ProgressBar drawing!
16556           - Updated CPDrawSizeGrip drawing
16557           - Updated StatusBarPanel drawing
16558
16559 2005-12-05  Mike Kestner  <mkestner@novell.com>
16560
16561         * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
16562         * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
16563
16564 2005-12-04  Alexander Olk  <alex.olk@googlemail.com>
16565
16566         * ThemeClearlooks.cs: Initial check-in, activate with
16567           export MONO_THEME=clearlooks
16568         * ThemeEngine.cs: Added ThemeClearlooks
16569
16570 2005-12-03  Mike Kestner  <mkestner@novell.com>
16571
16572         * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
16573         [Fixes #76897]
16574
16575 2005-12-02  Jackson Harper  <jackson@ximian.com>
16576
16577         * Form.cs: If the child form has no menu the default main menu is
16578         used as the active menu.
16579
16580 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com> 
16581
16582         * ListBox.cs: Check if any items exist before trying to resolve 
16583           coordinates into items
16584
16585 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
16586
16587         * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
16588           as the second color for the background hatch
16589
16590 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
16591
16592         * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
16593         * RichTextBox.cs: FormatText position arguments are 1-based, now making
16594           sure that what we pass to FormatText is always 1-based. Fixes #76885
16595
16596 2005-11-29  Miguel de Icaza  <miguel@novell.com>
16597
16598         * NumericUpDown.cs (EndInit): When we are done initializing,
16599         reflect any updates on the UI.
16600
16601 2005-12-02  Jackson Harper  <jackson@ximian.com>
16602
16603         * ImplicitHScrollBar.cs:
16604         * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
16605         their container controls.
16606         * TreeView.cs: Use the new implicit scrollbars.
16607
16608 2005-12-02  Jackson Harper  <jackson@ximian.com>
16609
16610         * TreeView.cs: Make top_node internal so the TreeNodeCollections
16611         can play with it.
16612         * TreeNodeCollection.cs: If we remove the topnode we need to
16613         update topnode to the next node in line.
16614         - When clearing nodes go through the same process as removing
16615         them, so they get depareneted and checked if they are top node.
16616
16617 2005-12-01  Jackson Harper  <jackson@ximian.com>
16618
16619         * TreeView.cs: When imagelists are used the image area is
16620         selectable as well as the text.
16621         - If there are no selected nodes select the first one.
16622         * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
16623         so don't do it more then we need to.
16624
16625 2005-12-01  Jackson Harper  <jackson@ximian.com>
16626
16627         * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
16628         that arrows can be scaled.
16629
16630 2005-12-01  Jackson Harper  <jackson@ximian.com>
16631
16632         * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
16633         fail. Patch by Dieter Bremes
16634
16635 2005-11-30  Jackson Harper  <jackson@ximian.com>
16636
16637         * Form.cs: Property is 2.0 only
16638         * PrintDialog.cs: Signature fix.
16639
16640 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
16641
16642         * TextControl.cs: 
16643           - No longer artificially moves text 2 pixels down (now that we have
16644             borders this is no longer needed)
16645           - Added calcs for left, hanging and right indent
16646
16647 2005-11-23  Mike Kestner  <mkestner@novell.com>
16648
16649         * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
16650
16651 2005-11-30  Jackson Harper  <jackson@ximian.com>
16652
16653         * MdiChildContext.cs: Set the cloned menus forms, as these don't
16654         get cloned as part of CloneMenu ().
16655         * Menu.cs: Make sure the parent of the items get set correctly
16656         when they are added.  And the owners are notified of the changes.
16657         * Form.cs: Create an ActiveMenu property, so that when MDI is used
16658         we can change the menu being displayed/handled by the form without
16659         changing the menu assosciated with the form.
16660         - Don't let Mdi children draw/handle menus.
16661         
16662 2005-11-30  Jackson Harper  <jackson@ximian.com>
16663
16664         * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
16665         a MenuChanged event. Just to make the API a little more
16666         consistent.
16667         * MainMenu.cs:
16668         * MenuItem.cs: Use the new OnMenuChanged
16669         * MdiChildContext.cs: Handle menu merging.
16670         * Form.cs: Implement MergedMenu.
16671         
16672 2005-11-30  Jackson Harper  <jackson@ximian.com>
16673
16674         * Menu.cs: We were misusing Add. Add goes behind the specified
16675         index according to the docs, and does not replace the specified
16676         index. So I added an Insert method.
16677
16678 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
16679
16680         * TextBoxBase.cs:  Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
16681           Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
16682           is for Jackson
16683         * RichTextBox.cs: Added calls to base for DnD events
16684
16685 2005-11-28  Peter Dennis Bartok  <pbartok@novell.com>
16686
16687         * TextControl.cs:
16688           - Fixed drag-selection related crash; style fixes
16689           - Implemented undo class
16690             o Implemented method to capture document state for specified
16691               range in document tree
16692             o Implemented method to restore captured document state
16693             o Implemented cursor tracking
16694             o Implemented basic undo stack
16695           - Added undo cursor tracking to methods altering cursor location
16696           - Added undo tracking to selection deletion (still missing
16697             other text-altering hookups)
16698         * RichTextBox.cs:
16699           - Added SelectionLength property
16700           - Implemented CanPaste()
16701           - Implemented Paste()
16702           - Added missing protected methods
16703           - Fixed RTF->Document conversion; now uses font index 0 and color 
16704             index 0 as the default font for the parsed text
16705           - Fixed RTF<->Document font size translation
16706           - Fixed RTF generation, now properly handles cross-tag boundaries
16707             for single line selection
16708           - No longer always appends blank line to generated RTF
16709           - Removed TODOs
16710           - Added missing attributes
16711           - Hooked up undo-related methods
16712         * TextBoxBase.cs:
16713           - Implemented Copy()
16714           - Implemented Paste()
16715           - Implemented Cut()
16716           - Fixed caret mis-behaviour on backspace across line-boundaries
16717
16718 2005-11-29  Jackson Harper  <jackson@ximian.com>
16719
16720         * MdiClient.cs: Add a method for activating mdi children. Very
16721         basic right now. I imagine someday it might need more girth.
16722         * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
16723         children windows names are added to the menu item.
16724         * ThemeWin32Classic.cs: Draw the arrow if the item is an
16725         mdilist. This happens regardless of whether or not there are any
16726         mdi windows to see in the list, and according to my tests happens
16727         before the items are even added. Also happens if there isn't even
16728         an mdi client to get windows from.
16729
16730 2005-11-29  Alexander Olk  <alex.olk@googlemail.com>
16731
16732         * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
16733         * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
16734
16735 2005-11-29  Jordi Mas i Hernandez <jordimash@gmail.com>
16736
16737         * DataGridTableStyle.cs:
16738           - Create always the styles for the missing columns even if they are
16739             provided by the user (not default table style)
16740         * DataGrid.cs:
16741           - Fixes bug 76770
16742           - Fixes SetDataBinding (always re-attach source)
16743           - Fixes SetNewDataSource (only clear styles if they are not for 
16744             this source)
16745          -  Expands OnTableStylesCollectionChanged to handle style refresh 
16746             and remove properly
16747
16748 2005-11-29  Jackson Harper  <jackson@ximian.com>
16749
16750         * FileDialog.cs: Implement missing bits, remove some dead
16751         code.
16752         * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
16753         creation of the panel so that the options set on the dialog are
16754         seen when the panel is created.
16755         * TreeView.cs: raise a click when items are clicked.
16756         
16757 2005-11-29  Jackson Harper  <jackson@ximian.com>
16758
16759         * MdiClient.cs: Pass some signature methods through to base.
16760
16761 2005-11-28  Jackson Harper  <jackson@ximian.com>
16762
16763         * ListView.cs: Raise the click event when items are clicked.
16764
16765 2005-11-28  Jackson Harper  <jackson@ximian.com>
16766
16767         * MdiClient.cs: Make this algorithm even more beautiful.  And fix
16768         a nullref.
16769
16770 2005-11-27  Alexander Olk  <alex.olk@googlemail.com>
16771
16772         * ThemeNice.cs: - Removed 1 pixel bitmaps
16773           - Use SmoothingMode.AntiAlias where it makes sense
16774             (ScrollButton arrow for example)
16775           - Enhanced Button focus drawing
16776           - Fixed ComboBox drawing (no artefacts anymore, focus
16777             rectangle is back again, reduced size of ComboButton, etc.)
16778           - Fixed RadioButton focus drawing for Appearence.Button
16779           - Slight ScrollButton redesign
16780           - Some LinearGradientBrush size fixes
16781           - GroupBoxes have now rounded edges
16782           - Fixed StatusBar drawing
16783
16784 2005-11-25  Alexander Olk  <alex.olk@googlemail.com>
16785
16786         * ThemeNice.cs: - Remove dead code
16787           - use correct background colors for menus, etc.
16788           - Fake pixel drawing with 1 pixel bitmaps
16789
16790 2005-11-24  Jackson Harper  <jackson@ximian.com>
16791
16792         * MdiClient.cs: Size the scrollbars when resizing the window.
16793         - Resize the maximized windows when the client is resized
16794         * Form.cs: Make the child context available
16795         
16796 2005-11-23  Jackson Harper  <jackson@ximian.com>
16797
16798         * MdiChildContext.cs: Don't size windows if they are maximized.
16799
16800 2005-11-23  Mike Kestner  <mkestner@novell.com>
16801
16802         * ContextMenu.cs: use MenuTracker.
16803         * Control.cs: remove menu handle usage.
16804         * Form.cs: remove menu handle usage.
16805         * Hwnd.cs: remove menu handle usage.
16806         * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
16807         motion and clicks to the new Tracker handlers.
16808         * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
16809         and handle usage.
16810         * MenuAPI.cs: refactored to combine popup and menubar event handling.
16811         Killed the MENU and MENUITEM data types and associated collections
16812         since we now keep the info on Menu and MenuItem. Expanded TRACKER into
16813         MenuTracker class that exposes the leftovers from the old MenuAPI
16814         static methods. Restructured Capture handling so that only one grab is
16815         done for the entire menu hierarchy instead of handing off grabs to
16816         submenus. Tracker now has an invisible control to Capture when active.
16817         * MenuItem.cs: add sizing accessors, kill Create
16818         and handle usage.
16819         * Theme.cs: remove menu handle and MENU(ITEM) usage.
16820         * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
16821         MENU(ITEM). remove menu handle usage, use Menu directly.
16822         * XplatUIDriver.cs: remove menu handle usage.
16823         * XplatUIOSX.cs: remove menu handle usage.
16824         * XplatUIWin32.cs: remove menu handle usage.
16825         * XplatUIX11.cs: remove menu handle usage.
16826
16827 2005-11-22  Jackson Harper  <jackson@ximian.com>
16828
16829         * Hwnd.cs: Don't compute the menu size for
16830         DefaultClientRectangle.
16831         - Reenable menu sizes being computed for GetClienRectangle.
16832         * Form.cs: Remove comment of trechery
16833         
16834 2005-11-22  Jackson Harper  <jackson@ximian.com>
16835
16836         * Hwnd.cs: The adjustments for the menu bar are made when it is
16837         attached to the form.
16838
16839 2005-11-19  Jackson Harper  <jackson@ximian.com>
16840
16841         * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
16842         (just like on windows).
16843
16844 2005-11-19  Jackson Harper  <jackson@ximian.com>
16845
16846         * MdiChildContext.cs: Handle all the buttons ourselves. We can't
16847         use real buttons anymore because they are in non client area. The
16848         one TODO here is that I need to somehow invalidate a section of
16849         the non client area.
16850
16851 2005-11-18  Jackson Harper  <jackson@ximian.com>
16852
16853         * Control.cs: Put the enum check back in now that MDI doesnt have
16854         to use this to set border styles.
16855         * Form.cs: Only set mdi child windows borders if the handle has
16856         been created.
16857         * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
16858         this directly on to the driver.
16859         - Get the move start position before adjusting for the titlebar
16860         height, this fixes the windows "skipping" when they are first
16861         moved.
16862
16863 2005-11-18  Jackson Harper  <jackson@ximian.com>
16864
16865         * XplatUIX11.cs: Just compute the mdi borders separately as they
16866         don't totally match up with normal form borders.
16867
16868 2005-11-18  Jackson Harper  <jackson@ximian.com>
16869
16870         * Control.cs: Set WS_ styles for borders, so that the driver does
16871         not have to retrieve the control instance to figure out what kind
16872         of borders it should have.
16873         * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
16874         driver can know its an mdi child easily.
16875         * XplatUIX11.cs: Get the border styles and whether the window is
16876         MDI from the Styles and ExStyles params instead of having to get a
16877         control. This prevents a chicken and egg problem.       
16878
16879 2005-11-18  Jackson Harper  <jackson@ximian.com>
16880
16881         * MdiClient.cs: Fix typo so scrollbars show up correctly.
16882
16883 2005-11-18  Jackson Harper  <jackson@ximian.com>
16884
16885         * MdiClient.cs: Calculate when to add and remove scrollbars
16886         correctly.
16887         * MdiChildContext.cs: Adjust the y position to take the titlebar
16888         into account.
16889         - No height for FormBorderStyle.None
16890
16891 2005-11-18  Jackson Harper  <jackson@ximian.com>
16892
16893         * Control.cs: Allow non enum values to be used for
16894         InternalBorderStyle.  MDI does this to set a special border style.
16895         - New utility methods for converting points to/from client coords
16896         - Add the newly created control to the Controls collection before
16897         updating its style. This way UpdateStyle can walk the control
16898         heirarchy to find the control if needed.
16899         so I don't need to create a new Point object all the time.
16900         * Form.cs: Let MDI windows handle their border styles.
16901         - Set styles on MDI windows so the correct title style is derived.
16902         * MdiChildContext.cs: Move all the painting and window handling
16903         into the non client area.
16904         - Use correct sizing and put correct buttons on frames based on
16905         the FormBorderStyle.
16906         - Notify the mdi client about scrolling
16907         - Need to handle the buttons ourselves now, because they are all
16908         in non client areas and we can't add controls there.
16909         * MdiClient.cs: Halfway to scrolling, this implementation is
16910         somewhat broken though, we need to check to make sure other
16911         windows aren't causing scrolling before removing the bars. Also
16912         the bars need to be drawn on top, maybe I can switch implicit
16913         controls to be on top.
16914         * Hwnd.cs: caption_height and tool_caption_height are now
16915         properties of an hwnd, this way they can be set by the driver
16916         based on the type of window they are.  In X11 the window manager
16917         handles the decorations so caption_height is zero unless its an
16918         MDI window.
16919         - Add 3 pixel borders for MDI windows (0xFFFF).
16920         - Get rid of some code duplication, have DefaultClientRectanle
16921         just call GetClientRectangle.
16922         * XplatUIX11.cs: Pass caption_height and tool_caption_height to
16923         Hwnd now.
16924         - Set border styles differently for mdi windows.
16925         * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
16926         Hwnd now.
16927         
16928 2005-11-15  Mike Kestner  <mkestner@novell.com>
16929
16930         * Menu.cs: when adding an item to the collection, if item is already 
16931         parented, remove it from the parent.
16932
16933 2005-11-13  Alexander Olk  <alex.olk@googlemail.com>
16934
16935         * X11DesktopColors.cs: Added KDE support
16936
16937 2005-11-11  Peter Dennis Bartok  <pbartok@novell.com>
16938
16939         * XplatUIWin32.cs: 
16940           - Clipboard methods now can translate Rtf format
16941           - No longer removes clipboard contents whenever a new format is added
16942             to allow placing multiple formats on the clipboard
16943         * Clipboard.cs: Clipboard now supports getting a IDataObject and
16944           will place all formats contained in it onto the clipboard. Also
16945           now cleans the clipboard before placing a new object onto it
16946         * RichTextBox.cs:
16947           - Implemented set_Rtf
16948           - Implemented set_SelectedRtf
16949           - Created InsertRTFFromStream() method to allow single code base
16950             for all properties and methods that insert RTF into document
16951           - Removed debug output
16952         * TextControl.cs:
16953           - Fixed Delete(int) to fix up line numbers
16954           - Fixed ReplaceSelection to combine start and end line
16955           - Fixed serious DeleteChars bug that would leave the document tree
16956             broken
16957           - Improved DumpTree with several logic checks to detect broken
16958             document trees
16959           - Removed debug lines
16960           - Fixed Caret.WordForward/WordBack moving code, now always also 
16961             updates caret.tag (fixes crash when word-selecting across tag
16962             boundaries via keyboard)
16963           - Added Insert() method for inserting multiline text into documents
16964           - Fixed DeleteChars() calculation errors that would cause a broken
16965             tag chain with multiple tag lines
16966           - DeleteChars() no longer crashes on multi-tag lines if not all tags
16967           - Split() no longer moves caret if split is at caret location
16968           - ReplaceSelection() now updates the cursor and re-displays it
16969           - ReplaceSelection() now uses new Insert() method to avoid code
16970             duplication
16971           - FormatText() can now handle formatting partial lines
16972         * TextBoxBase.cs:
16973           - Append now uses new TextControl.Insert() method (this avoids 
16974             duplicate code)
16975           - Implemented Ctrl-X (Cut) (
16976           - Implemented Ctrl-C (Copy)
16977           - Implemented Ctrl-V (Paste) (Still some bugs related to screen 
16978             regeneration when pasting text; roundtripping Copy&Paste within
16979             edit control still fails due to some calculation bugs in GenerateRTF)
16980           - The Delete key will now remove the current selection if it is visible
16981         * TextBox.cs: Removed debug lines
16982         * XplatUI.cs: Trigger initialization of DataFormats (which requires the
16983           driver to be initialized and can't therefore be done via a static ctor)
16984
16985 2005-11-10  Peter Dennis Bartok  <pbartok@novell.com>
16986
16987         * TextControl.cs: Added backend code for finding char arrays and strings
16988         * TextBoxBase.cs:
16989           - Added mouse wheel scroll support
16990           - Added support for VScroll and HScroll events
16991         * RichTextBox.cs:
16992           - Implemented all seven Find() variants
16993           - Implemented GetCharFromPosition()
16994           - Implemented GetCharIndexFromPosition()
16995           - Implemented GetLineFromIndex()
16996           - Implemented GetPositionFromCharIndex();
16997           - Implemented SaveFile for PlainText and UnicodeText
16998           - Fixed set_Font, now setting a new font applies that font to
16999             the whole document
17000           - Implemented generic Document to RTF converter
17001           - Implemented SaveFile for RichText format (still missing unicode
17002             conversion for non-ansi chars)
17003           - Implemented get_Rtf
17004           - Implemented get_SelectedRtf
17005
17006 2005-11-09  Peter Dennis Bartok  <pbartok@novell.com>
17007
17008         * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
17009           to allow any captures to be released before triggering OnClick. This
17010           way a click handler may capture the mouse without interference.
17011         * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
17012           This way we send them even though X may not allow a grab (if the window
17013           isn't visible, for example)
17014
17015 2005-11-08  Pedro Martinez Julia <pedromj@gmail.com>
17016
17017         * DataGridViewRowEventArgs.cs: DataGridView implementation
17018         * DataGridViewElement.cs: DataGridView implementation
17019         * DataGridViewComboBoxCell.cs: DataGridView implementation
17020         * DataGridViewDataErrorContexts.cs: DataGridView implementation
17021         * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
17022         * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
17023         * ImageLayout.cs: DataGridView implementation
17024         * DataGridViewComboBoxColumn.cs: DataGridView implementation
17025         * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
17026         * DataGridViewSelectionMode.cs: DataGridView implementation
17027         * IDataGridViewEditingControl.cs: DataGridView implementation
17028         * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
17029         * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
17030         * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
17031         * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
17032         * DataGridViewColumnSortMode.cs: DataGridView implementation
17033         * DataGridView.cs: DataGridView implementation
17034         * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
17035         * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
17036         * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
17037         * Padding.cs: DataGridView implementation
17038         * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
17039         * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
17040         * DataGridViewRowEventHandler.cs: DataGridView implementation
17041         * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
17042         * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
17043         * DataGridViewButtonCell.cs: DataGridView implementation
17044         * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
17045         * DataGridViewEditMode.cs: DataGridView implementation
17046         * DataGridViewCellValueEventArgs.cs: DataGridView implementation
17047         * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
17048         * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
17049         * DataGridViewCheckBoxColumn.cs: DataGridView implementation
17050         * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
17051         * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
17052         * DataGridViewCellEventHandler.cs: DataGridView implementation
17053         * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
17054         * DataGridViewCellStyleConverter.cs: DataGridView implementation
17055         * DataGridViewSelectedRowCollection.cs: DataGridView implementation
17056         * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
17057         * DataGridViewColumnEventArgs.cs: DataGridView implementation
17058         * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
17059         * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
17060         * QuestionEventArgs.cs: DataGridView implementation
17061         * IDataGridViewEditingCell.cs: DataGridView implementation
17062         * DataGridViewTriState.cs: DataGridView implementation
17063         * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
17064         * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
17065         * DataGridViewColumnCollection.cs: DataGridView implementation
17066         * DataGridViewCellValueEventHandler.cs: DataGridView implementation
17067         * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
17068         * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
17069         * DataGridViewColumn.cs: DataGridView implementation
17070         * DataGridViewCellBorderStyle.cs: DataGridView implementation
17071         * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
17072         * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
17073         * DataGridViewRow.cs: DataGridView implementation
17074         * DataGridViewImageCellLayout.cs: DataGridView implementation
17075         * DataGridViewImageCell.cs: DataGridView implementation
17076         * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
17077         * DataGridViewCheckBoxCell.cs: DataGridView implementation
17078         * DataGridViewHeaderCell.cs: DataGridView implementation
17079         * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
17080         * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
17081         * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
17082         * DataGridViewTextBoxColumn.cs: DataGridView implementation
17083         * QuestionEventHandler.cs: DataGridView implementation
17084         * DataGridViewCellStyleScopes.cs: DataGridView implementation
17085         * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
17086         * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
17087         * DataGridViewCell.cs: DataGridView implementation
17088         * DataGridViewCellEventArgs.cs: DataGridView implementation
17089         * DataGridViewClipboardCopyMode.cs: DataGridView implementation
17090         * DataGridViewCellStyle.cs: DataGridView implementation
17091         * DataGridViewColumnHeaderCell.cs: DataGridView implementation
17092         * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
17093         * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
17094         * TextFormatFlags.cs: DataGridView implementation
17095         * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
17096         * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
17097         * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
17098         * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
17099         * DataGridViewButtonColumn.cs: DataGridView implementation
17100         * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
17101         * HandledMouseEventArgs.cs: DataGridView implementation
17102         * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
17103         * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
17104         * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
17105         * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
17106         * DataGridViewRowCollection.cs: DataGridView implementation
17107         * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
17108         * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
17109         * DataGridViewHitTestType.cs: DataGridView implementation
17110         * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
17111         * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
17112         * DataGridViewColumnEventHandler.cs: DataGridView implementation
17113         * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
17114         * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
17115         * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
17116         * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
17117         * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
17118         * DataGridViewContentAlignment.cs: DataGridView implementation
17119         * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
17120         * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
17121         * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
17122         * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
17123         * DataGridViewPaintParts.cs: DataGridView implementation
17124         * DataGridViewCellCollection.cs: DataGridView implementation
17125         * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
17126         * DataGridViewImageColumn.cs: DataGridView implementation
17127         * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
17128         * DataGridViewElementStates.cs: DataGridView implementation
17129         * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
17130         * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
17131         * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
17132         * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
17133         * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
17134         * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
17135         * DataGridViewRowHeaderCell.cs: DataGridView implementation
17136         * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
17137         * DataGridViewTextBoxCell.cs: DataGridView implementation
17138         * DataGridViewBand.cs: DataGridView implementation
17139         * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
17140         * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
17141         * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
17142         * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
17143         * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
17144         * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
17145         * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
17146         * DataGridViewSelectedCellCollection.cs: DataGridView implementation
17147         * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
17148         * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
17149         * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
17150
17151 2005-11-08  Peter Dennis Bartok  <pbartok@novell.com>
17152
17153         * ThemeWin32Classic.cs: 
17154           - Draw the outside focus rectangle around buttons
17155           - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
17156             doesn't use end caps for every dash of a line anymore. This
17157             workaround ignores the forecolor.
17158
17159 2005-11-08  Kornél Pál  <kornelpal@hotmail.com>
17160
17161         * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
17162           endian safe.
17163
17164 2005-11-07  Jackson Harper  <jackson@ximian.com>
17165
17166         * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
17167
17168 2005-11-07  Jackson Harper  <jackson@ximian.com>
17169
17170         * ScrollableControl.cs: Calculate the maximum and change vars
17171         (more) correctly so that scrollbars appear as a sensible size.
17172
17173 2005-11-04  Jackson Harper  <jackson@ximian.com>
17174
17175         * TreeNodeCollection.cs: Refresh when nodes are cleared from the
17176         collection.
17177         * TreeView.cs: When the tree is sorted null out the top_node so
17178         that it is recalculated.
17179         - Use dotted lines instead of dashed lines to match MS better.
17180
17181 2005-11-04  Jordi Mas i Hernandez <jordimash@gmail.com>
17182
17183         * ListView.cs: 
17184           - Implements key search for items. Useful when browsing files with FileDialog
17185           - When changing view mode or when clear the items reset scrollbar positions
17186
17187 2005-11-04  Jackson Harper  <jackson@ximian.com>
17188
17189         * CurrencyManager.cs: Implement the MetaDataChanged event, the
17190         Reset method, and the CheckEmpty. CheckEmpty is just a total guess
17191         as to what the method may do as there is no real way of creating a
17192         derived CurrencyManager and calling the method. 
17193
17194 2005-11-03  Jackson Harper  <jackson@ximian.com>
17195
17196         * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
17197         * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
17198         method which seems to just be used internally to refresh the tabs.
17199
17200 2005-11-03  Jackson Harper  <jackson@ximian.com>
17201
17202         * TabControl.cs: Implement the remove method. Fix some broken
17203         comments.
17204
17205 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
17206
17207         * DateTimePicker.cs:
17208           - Added missing DateTimePickerAccessibleObject class
17209           - Added missing events
17210           - Added OnFontChanged method
17211         * Form.cs: Added missing attributes
17212         * TreeView.cs: Added missing attributes
17213
17214 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com> 
17215
17216         * GridItemCollection.cs: Fix signatures
17217
17218 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
17219
17220         * XplatUI.cs: Updated build rev/date
17221         * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs, 
17222           DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
17223         * Application.cs: Trigger context-specific ExitThread events
17224
17225 2005-11-03  Jackson Harper  <jackson@ximian.com>
17226
17227         * Menu.cs:
17228         * MainMenu.cs:
17229         * GridTableStylesCollection.cs:
17230         * Timer.cs:
17231         * TabPage.cs:
17232         * HelpProvider.cs:
17233         * StatusBar.cs:
17234         * MonthCalendar.cs: Signature fixes
17235
17236 2005-11-03  Jackson Harper  <jackson@ximian.com>
17237
17238         * TreeNodeCollection.cs: Remove should not be virtual.
17239         * TreeView.cs: Implement the last of the missing methods.
17240
17241 2005-11-03  Jackson Harper  <jackson@ximian.com>
17242
17243         * TreeNodeConverter.cs: Implement to get off my class-status back.
17244
17245 2005-11-03  Jackson Harper  <jackson@ximian.com>
17246
17247         * TreeView.cs: Hookup the bits for drag and drop.
17248         * TreeNode.cs: Don't cache the tree_view or index anymore, now
17249         that nodes can be moved from tree to tree easily this just causes
17250         all sorts of problems.
17251         * TreeNodeCollection: Don't need to give treenodes an index and
17252         treeview anymore when they are added, these are computed on the
17253         fly. Also make sure to remove a node before its added.
17254
17255 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
17256
17257         * TextControl.cs:
17258           - Added CaretSelection enum
17259           - Added comparison methods to Marker struct, makes selection code
17260             more readable
17261           - Added SelectionStart and SelectionEnd as 'moveable' location for
17262             the CaretDirection enum and handler
17263           - Added selection_prev variable to track optimized invalidation for
17264             word and line selection
17265           - Added SelectionVisible property (returns true if there is a valid 
17266             selection)
17267           - Switched CaretHasFocus to only display the caret if there is no
17268             visible selection
17269           - Avoiding StringBuilder.ToString to retrieve a single char, instead
17270             using the direct character index; should be much faster
17271           - Added various conditional debug statements
17272           - Fixed invalidation calculation for selection ranges
17273           - Added ExpandSelection() method to support word and line selection
17274           - Switched SetSelectionToCaret to use new Marker compare overloads
17275           - Added central IsWordSeparator() method to determine word 
17276             separators/whitespace and FindWordSeparator() to streamline common
17277             usage of IsWordSeparator()
17278         * TextBoxBase.cs:
17279           - Removed unneeded grabbed variable, it was just mirroring
17280             Control.Capture
17281           - No longer firing OnTextChanged event when Text setter is called,
17282             since the base will fire the event for us
17283           - Added handling of Ctrl-Up/Down selection
17284           - Added handling of Shift-Cursorkey selection
17285           - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
17286             words
17287           - Added handling of Shift and Ctrl-Shift-Home/End selection
17288           - Removed some debug output
17289           - Added handling for single/double/tripple-click to place caret/
17290             select word/select line respectively (Fixes bug #76031)
17291           - Added support for drag expansion of word/line selection
17292         * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
17293           current selection
17294
17295 2005-11-02  Jackson Harper  <jackson@ximian.com>
17296
17297         * X11Dnd.cs: If the drag is going to and from a MWF window just
17298         copy the data instead of sending it out through the X Selection
17299         mechanism.
17300
17301 2005-11-02  Jackson Harper  <jackson@ximian.com>
17302
17303         * X11Dnd.cs:
17304         * XplatUIX11.cs: When in a drag we don't want motion notify
17305         messages to get passed on to the other controls. This prevents
17306         mouse move messages from showing up in the drag source.
17307
17308 2005-11-02  Jackson Harper  <jackson@ximian.com>
17309
17310         * X11Dnd.cs: Remove unneeded call to XAllowEvents.  Make sure that
17311         the correct button is release to end a drag.
17312         * XplatUIX11.cs: Make the button state internal so the drag system
17313         can access it.  Dragging needs to know about all button releases,
17314         not just left button.
17315
17316 2005-11-02  Miguel de Icaza  <miguel@novell.com>
17317
17318         * Form.cs (Icon): If the icon is null, reset the icon to the
17319         default value. 
17320
17321         * Cursor.cs: When writing the AND-mask bitmap do not include the
17322         number of colors, but hardcode those to two (black and white),
17323         fixes the loading of color cursors (Paint Dot Net).
17324
17325         * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
17326         turn off autoscaling.
17327
17328         * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
17329
17330 2005-11-02  Jackson Harper  <jackson@ximian.com>
17331
17332         * X11Dnd.cs: Make sure to send a status message if the pointer
17333         enters a control that can not accept a drop, otherwise the cursor
17334         isn't updated correctly. Also tried to compress the lines of code
17335         a bit.
17336
17337 2005-11-02  Jackson Harper  <jackson@ximian.com>
17338
17339         * X11Dnd.cs: Change cursors based on drag action. Also attempt to
17340         set actions correctly.  This isn't perfect as XDND and win32 have
17341         some differences on how you allow actions. I'll clear this up by
17342         adding a path for drag from MWF to MWF windows.
17343         * XplatUIX11.cs: Hook into the dnd system.
17344
17345 2005-11-02  Jordi Mas i Hernandez <jmas@softcatala.org>
17346
17347         * ListView.cs: Fixes scroll bar visibility. Hide them if they were
17348         previously shown but they are no longer need it. Very obvious when 
17349         browsing files with FileDialog.
17350
17351 2005-11-01  Peter Dennis Bartok  <pbartok@novell.com>
17352
17353         * Control.cs: We always need to call OnPaintBackground. We pretty much
17354           ignore AllPaintingInWmPaint and always do the painting there, whether 
17355           it's set or not, since we always ignore the WM_ERASEBKGND message 
17356           (which we don't generate on X11). This fixes #76616.
17357         * Panel.cs: Removed unneeded background painting. This happens properly
17358           in Control.cs already
17359
17360 2005-10-31  Mike Kestner  <mkestner@novell.com>
17361
17362         * Menu.cs: Add items to collection before setting their index.
17363         * MenuItem.cs : add range checking with ArgumentException like MS.
17364         [Fixes #76510]
17365
17366 2005-10-31  Jackson Harper  <jackson@ximian.com>
17367
17368         * ListBox.cs: Invalidate if the area is visible at all not just
17369         contained in the visible rect. Fixes unselection of semi visible
17370         items.
17371
17372 2005-10-31  Jackson Harper  <jackson@ximian.com>
17373
17374         * Control.cs: Consistently name the dnd methods. Make them
17375         internal so we can override them to match some MS behavoir
17376         internally.
17377         * Win32DnD.cs: Use the new consistent names.
17378
17379 2005-10-31  Jackson Harper  <jackson@ximian.com>
17380
17381         * TreeView.cs: Don't draw the selected node when we lose focus.
17382
17383 2005-10-31  Jackson Harper  <jackson@ximian.com>
17384
17385         * X11Dnd.cs: We still need to reset the state even though a full
17386         reset isn't being done, otherwise status's still get sent all over
17387         the place.
17388
17389 2005-10-31  Jackson Harper  <jackson@ximian.com>
17390
17391         * Control.cs: Make the dnd_aware flag internal so the dnd
17392         subsystem can check it. Catch exceptions thrown in dnd handlers to
17393         match MS behavoir.
17394         * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
17395         * X11Dnd.cs: Handle null data in the converters. Set the XDND
17396         version when sending a XdndEnter. Use the control/hwnd dnd_aware
17397         flags to reduce the number of dnd enters/status's sent.
17398
17399 2005-10-31  Jackson Harper  <jackson@ximian.com>
17400
17401         * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
17402
17403 2005-10-31  Jordi Mas i Hernandez <jordi@ximian.com>
17404
17405         * PictureBox.cs: Fixes 76512
17406
17407 2005-10-28  Jackson Harper  <jackson@ximian.com>
17408
17409         * X11Dnd.cs: Early implementation to support winforms being a drag
17410         source for data on X11. Also restructured the converters so they
17411         can go both ways now.
17412         * XplatUIX11.cs: Tie ins to the the Dnd stuff.
17413         
17414 2005-10-27  Peter Dennis Bartok  <pbartok@novell.com>
17415
17416         * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
17417           clipboard requests
17418
17419 2005-10-27  Jackson Harper  <jackson@ximian.com>
17420
17421         * TreeNode.cs: Implement serialization so my DnD examples will work.
17422
17423 2005-10-24  Kornél Pál  <kornelpal@hotmail.com>
17424
17425         * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
17426           TreeView.cs: Don't dispose objects that are not owned.
17427           
17428 2005-10-24  Peter Dennis Bartok  <pbartok@novell.com>
17429
17430         * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
17431           should retrieve the current cursor and report that, but XplatUI
17432           doesn't (yet) have an interface for that (and I'm not sure I even
17433           can, on X11)
17434         * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
17435           until any message loop processing is done (and the WM_SETCURSOR
17436           replaces the cursor to the proper one)
17437         * XplatUIX11.cs: 
17438           - Fixed override behaviour, we can't set the cursor globally on X11, 
17439             just for our windows.
17440           - Invalidating the System.Drawing X11 display handle when we are
17441             shutting down
17442         * Control.cs: Fix to make csc happy
17443
17444 2005-10-23  Peter Dennis Bartok  <pbartok@novell.com>
17445
17446         * TextBoxBase.cs: 
17447           - get_Text: Add last line (without trailing newline) to returned
17448             value (Fixes 76212)
17449           - get_TextLength: Count last line in returned length
17450           - ToString: Call Text property instead of duplicating code
17451
17452 2005-10-23  Kornél Pál  <kornelpal@hotmail.com>
17453
17454         * ImageList.cs: Dispose ImageAttributes objects.
17455
17456 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
17457
17458         * ImageList.cs: Use attribute constructors with less arguments where
17459           possible.
17460
17461 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
17462
17463         * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
17464           Use typeof instead of strings when assembly is referenced. Added
17465           some more comments.
17466
17467 2005-10-21  Jackson Harper  <jackson@ximian.com>
17468
17469         * ListView.cs: Raise a double click event. Also tried to somewhat
17470         fix when the selectedindexchanged event is raised. Its still
17471         broken though.
17472
17473 2005-10-21  Jackson Harper  <jackson@ximian.com>
17474
17475         * TreeView.cs: New method to invalidate the plus minus area of a
17476         node without invalidating the whole node (maybe this can be used
17477         in some more places).
17478         * TreeNodeCollection.cs: When adding to an empty node we need to
17479         invalidate its plus minus area so the little block shows up.
17480         
17481 2005-10-21  Jackson Harper  <jackson@ximian.com>
17482
17483         * TreeView.cs: Make sure that when we invalidate a node the bounds
17484         are big enough to cover the selected box and the focus
17485         rectangle. Use a different colour for the lines connecting nodes
17486         so they show up with all themes.
17487
17488 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
17489
17490         * NativeWindow.cs: Don't call anything that could call into the driver,
17491           we might be on a different thread.
17492
17493 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com> 
17494
17495         * Control.cs(Dispose): Since Dispose might run on a different thread,
17496           make sure that we call methods that could call into the driver via
17497           invoke, to avoid thread issues
17498
17499 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
17500
17501         * XplatUI.cs: Removed finalizer
17502         * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
17503           not allowing to be called on the finalizer thread.
17504
17505 2005-10-21  Kornél Pál  <kornelpal@hotmail.com>
17506
17507         * ImageList.cs:
17508           - Reverted r51889 and r51891.
17509           - Added ImageListItem class that stores unmodified image items and image
17510             properties required to create list images until handle is created.
17511           - Added AddItem and moved image creation logic to AddItemInternal.
17512           - Added CreateHandle method that creates images based on unmodified items.
17513           - Added DestroyHandle that changes state to store unmodified items.
17514           - Add and AddStrip methods no more create handle.
17515           - ReduceColorDepth has no return value.
17516           - Dispose destroys handle.
17517           - Modified other methods to reflect the above changes.
17518           - Implemented key support.
17519           - Added profile 2.0 members and attributes.
17520           - Added private Reset and ShouldSerialize methods that provide the same
17521             behavior as MS.NET but the Visual Studio .NET designer seems to ignore
17522             them as they are private.
17523           - Added some more comments about implementation details.
17524
17525 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
17526
17527         * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
17528
17529 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
17530
17531         * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
17532
17533 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
17534
17535         * DataGridDrawingLogic.cs: Fixes column hit calcultation
17536         * DataGridColumnStyle.cs: Remove debug message
17537
17538 2005-10-20  Jackson Harper  <jackson@ximian.com>
17539
17540         * TreeView.cs: We can always get input keys regardless of whether
17541         or not editing is enabled. They are used for navigation.
17542
17543 2005-10-20  Jackson Harper  <jackson@ximian.com>
17544
17545         * TreeNode.cs: Use the viewport rect for determining if a node
17546         needs to be moved for visibility. Don't use Begin/End edit. This
17547         calls a full refresh when its done.
17548         * TreeView.cs: New SetBottom works correctly.  Make the viewport
17549         rect property internal so the treenodes can see it. When clicking
17550         on a node we need to ensure that its visible because it might just
17551         be partly visible when clicked.
17552
17553 2005-10-20  Jackson Harper  <jackson@ximian.com>
17554
17555         * TreeNodeCollection.cs: Remove debug code.
17556
17557 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
17558
17559         * Datagrid.cs: Implements column sorting in Datagrid
17560         * DataGridColumnStyle.cs: Implements column sorting in Datagrid
17561
17562 2005-10-20  Jackson Harper  <jackson@ximian.com>
17563
17564         * TreeNodeCollection.cs: Remove items properly. Update the correct
17565         area after removing them.
17566
17567 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
17568
17569         * Datagrid.cs: Should not call base.OnPaintBackground
17570
17571 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
17572
17573         * XplatUIX11.cs (GetMessage):
17574           - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
17575             window instead of client window
17576           - Now properly calculates NC_xBUTTONUP message coordinates
17577           - ScreenToMenu now properly calculates it's coordinates of whole 
17578             window, since menus are in the whole window, not in the client
17579             window
17580           - Added WholeToScreen coordinate translation method
17581
17582 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com> 
17583
17584         * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
17585           want to return a message, loop back to the beginning of the function
17586           and grab the next real message to process instead.
17587
17588 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
17589
17590         * Splitter.cs: Properly set limits if no filler control is used
17591
17592 2005-10-19  Jackson Harper  <jackson@ximian.com>
17593
17594         * ColorDialog.cs: Don't show the help button if it is not enabled
17595         instead of disabling it (this is what MS does). Don't create the
17596         panel until the dialog is run, otherwise the vars (such as
17597         ShowHelp) are not set yet.
17598
17599 2005-10-19  Jackson Harper  <jackson@ximian.com>
17600
17601         * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
17602         are reduced when adding nodes.
17603         * TreeNode.cs:
17604         * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
17605         tree.
17606         
17607 2005-10-19  Jackson Harper  <jackson@ximian.com>
17608
17609         * FolderBrowserDialog.cs: End editing our treeview so the window
17610         actually gets refreshed.
17611
17612 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
17613
17614         * Control.cs: Fixed logic flip on when to call OnPaintBackground. 
17615           Obsoleted handling of WM_ERASEBKGND, now always draws our background
17616           inside of WM_PAINT
17617
17618 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
17619
17620         * MenuAPI.cs: Returns after Hidding window
17621         * XplatUIX11.cs: Added TODO found while debugging menu issues
17622
17623 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
17624
17625         * XplatUIX11.cs: Do not re-map the whole window when it's size
17626           becomes non-zero unless it's supposed to be actually visible
17627
17628 2005-10-18  Jackson Harper  <jackson@ximian.com>
17629
17630         * TreeView.cs: We don't need to keep a count anymore.
17631         * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
17632         use the Grow method.
17633
17634 2005-10-18  Jackson Harper  <jackson@ximian.com>
17635
17636         * TreeNodeCollection.cs: Insert is not supported on arrays, so
17637         implement it manually here.
17638
17639 2005-10-18  Jackson Harper  <jackson@ximian.com>
17640
17641         * ImageList.cs: Dont kill the list when the colour depth is
17642         changed, just change the colour depth of all the images.
17643         - Same goes for setting the image size. Just resize them all
17644         instead of killing the list softly.
17645
17646 2005-10-18  Jackson Harper  <jackson@ximian.com>
17647
17648         * Control.cs: Don't invalidate empty rectangles.
17649
17650 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
17651
17652         * ListViewItem.cs:
17653           - Adds checked item to the Checked/Item lists (where empty before)
17654           - Do not add items to the Selected lists if they are already present
17655         * ListView.cs:
17656           - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
17657           - When deleting items make sure that we delete them for the Selected
17658           and Checked list also.
17659
17660 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
17661
17662         * Label.cs: Dispose objects no longer used
17663         * ThemeWin32Classic.cs: Dispose objects no longer used
17664
17665 2005-10-18  Jackson Harper  <jackson@ximian.com>
17666
17667         * TabControl.cs: Don't refresh the whole control when the tabs are
17668         scrolled, we just need to refresh the tab area.
17669
17670 2005-10-17  Jackson Harper  <jackson@ximian.com>
17671
17672         * XplatUIX11.cs: Compress code a little bit. Only calculate the
17673         after handle when we need it.
17674
17675 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
17676
17677         * Control.cs: When the parent size changes, recalculate anchor 
17678           positions. Partial fix for #76462
17679
17680 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
17681
17682         * ThemeWin32Classic.cs: Make sure the picturebox has it's background 
17683           drawn. Fixes #76462
17684
17685 2005-10-17  Jackson Harper  <jackson@ximian.com>
17686
17687         * MonthCalendar.cs: Don't create the numeric up down until our
17688         handle is created. Otherwise our handle is created in the
17689         constructor and we don't know if we are a WS_CHILD or WS_POPUP
17690         yet.
17691
17692 2005-10-17  Jackson Harper  <jackson@ximian.com>
17693
17694         * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
17695         correctly.
17696
17697 2005-10-17  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
17698         * TreeNode.cs : small logical fix (was using local var instead of field)
17699         
17700 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
17701
17702         * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
17703
17704 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
17705
17706         * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
17707
17708 2005-10-16  Peter Dennis Bartok  <pbartok@novell.com> 
17709
17710         * Control.cs: 
17711           - Re-implemented anchoring code. My first version was really broken.
17712             This fixes bug #76033. Unlike the previous implementation we will
17713             no longer have round errors since all numbers are calculated from
17714             scratch every time. Removed various anchor-related obsolete vars.
17715           - InitLayout no longer causes layout event firing and layout to be 
17716             performed
17717
17718 2005-10-16  Jackson Harper  <jackson@ximian.com>
17719
17720         * Hwnd.cs: Compute invalid area correctly (fixes my last commit
17721         which was broken).
17722
17723 2005-10-16  Jackson Harper  <jackson@ximian.com>
17724
17725         * TabControl.cs: Remove debug code.
17726
17727 2005-10-16  Jackson Harper  <jackson@ximian.com>
17728
17729         * XEventQueue.cs: Increase the default queue size (very simple
17730         apps needed to grow the queue).
17731         * Hwnd.cs: No finalizer so we don't need to suppress
17732         finalization. Compute the invalid area manually so a new rectangle
17733         does not newto be created.
17734         * ScrollableControl.cs: Don't set any params (otherwise visibility
17735         isn't set correctly).
17736         * MdiChildContext.cs: New constructor takes the mdi parent so it
17737         doesn't have to be computed and avoids a crash on windows. Draw
17738         the window icon properly, and allow the text to be seen.
17739         * Form.cs: Use new MdiChildContext constructor. Make sure the
17740         child context isn't null in wndproc.
17741         * TabControl.cs: Don't set focus, this is muddling keyboard
17742         behavoir. Expand the tab rows when a window size increase will
17743         allow extra tabs to be seen. Don't allow tabs smaller than the
17744         width of a window to be scrolled out of view.
17745         * TreeNode.cs:
17746         * TreeView.cs: Use measure string to calculate a nodes width, the
17747         width is cached and only updated when the text or the font is
17748         changed. Don't check for expand/collapse clicks on the first level
17749         nodes if root lines are disabled.
17750         
17751 2005-10-16  Ritvik Mayank  <mritvik@novell.com>
17752
17753         * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
17754
17755 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
17756
17757         * DataGridBoolColumn.cs: fixes warning
17758
17759 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
17760
17761         * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
17762         to match more to match more precisely the MS Net behavior
17763
17764 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
17765
17766         * Hwnd.cs: Added field to track if window is mapped
17767         * XplatUIX11.cs: 
17768           - Unmap windows if they become 0-size, re-map when 
17769             they are >0 again; fixes #76035
17770           - Re-set our error handler after initializing X11Desktop
17771             to override any error handlers Gtk or whatever was called
17772             may have set.
17773
17774 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
17775
17776         * CheckedListBox.cs: Removed unused vars
17777         * ListView.cs: Fixed signatures
17778         * RichTextBox.cs: Removed unused vars
17779         * TextBoxBase.cs: Removed unused vars
17780         * XplatUIWin32.cs: Removed unused vars
17781         * XplatUIX11.cs: Removed unused vars
17782         * XplatUI.cs: Updated version and date to latest published
17783
17784 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
17785
17786         * Cursor.cs: Added private .ctor to work around a bug in
17787           resourceset (Thanks to Geoff Norton for the help on this)
17788         * SplitterEventArgs.cs: Made fields accessible so we don't
17789           waste boatloads of objects and can reuse the same one
17790           in Splitter
17791         * XplatUIWin32.cs(DrawReversibleLine): Now also considers
17792           any captions and borders when generating screen coordinates
17793         * Splitter.cs: Reimplemented control, now fully complete, uses
17794           rubberband drawing, supports and obeys all properties, has
17795           proper cursors
17796
17797 2005-10-13  Miguel de Icaza  <miguel@novell.com>
17798
17799         * Form.cs (Form): Setup default values for autoscale and
17800         autoscale_base_size;  Make these instance variables, not static
17801         variables. 
17802
17803         (OnLoad): on the first load, adjust the size of the form.
17804
17805 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
17806
17807         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added 
17808           width argument to DrawReversibleRectangle()
17809         * XplatUIWin32.cs, XplatUIX11.cs: 
17810           - Implemented width for DrawReversibleRectangle()
17811           - Added logic to DrawReversibleRectangle that recognizes a zero
17812             width or height and only draws a line in that situation
17813         
17814 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com> 
17815
17816         * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
17817         * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
17818         * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
17819           method (it uses our FosterParent window to get a graphics context)
17820
17821 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com>
17822
17823         * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground 
17824           and SetWindowBackground methods
17825         * Control.cs:
17826           - Setting proper ControlStyles
17827           - We no longer call XplatUI.SetWindowBackground and XplatUI.
17828             EraseWindowBackground, instead we draw the window background
17829             ourselves in PaintControlBackground. This behaviour is
17830             required to match MS, where, when OnPaintBackground is not
17831             called, the background is not drawn.
17832           - Removed unneeded Refresh() in set_Text
17833         * Hwnd.cs: Dropped the ErasePending support. No longer needed
17834         * XplatUIX11.cs:
17835           - Created DeriveStyles method to translate from CreateParams to
17836             FormBorderStyle and TitleStyle, also handles BorderStyle (which
17837             matches FormBorderStyle enum values)
17838           - Consolidated SetHwndStyles and CalculateWindowRect border/title
17839             style calculations into single DeriveStyles method
17840           - Fixed CreateWindow to (finally) use Gravity. This prevents X11
17841             from redrawing the whole window on any resize or expose.
17842           - Fixed CreateWindow usage of SetWindowValuemask. Before not
17843             all styles were applied to our whole/client window appropriately
17844           - Removed EraseWindowBackground() and SetWindowBackground() methods
17845           - Removed handling of WM_ERASEBKGND message from DefWndProc, we
17846             no longer clear/redraw the background through X
17847           - Removed handling of erase_pending bit, we have no use for it (or
17848             so it seems)
17849         * XplatUIOSX.cs:
17850           - Removed generation and handling of WM_ERASEBKGND message
17851           - Removed EraseWindowBackground() and SetWindowBackground() methods
17852           - Removed handling of hwnd.ErasePending flag
17853         * XplatUIWin32.cs:
17854           - Removed EraseWindowBackground() and SetWindowBackground() methods
17855           - We no longer call EraseWindowBackground on PaintEventStart, we 
17856             ignore the fErase flag, erasing is handled in Control in the
17857             background handler
17858         * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
17859           LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
17860           TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs, 
17861           CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs, 
17862           DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, 
17863           TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
17864           DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
17865
17866 2005-10-12  Jonathan Chambers <jonathan.chambers@ansys.com>
17867
17868         * PropertyGrids.cs: Get sub properties
17869         * PropertyGridView.cs: Fix drawing code
17870
17871 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
17872
17873         * ListBox.cs: Fixes 76383
17874
17875 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
17876
17877         * DataGridTextBoxColumn.cs: Sets location and size before attachment
17878         * ThemeWin32Classic.cs: Fixes border drawing and calculations
17879         * DataGridDrawingLogic.cs: Fixes border drawing and calculations
17880
17881
17882 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
17883
17884         * ComboBox.cs: Fixes border drawing
17885
17886 2005-10-10  Miguel de Icaza  <miguel@novell.com>
17887
17888         * MimeIcon.cs: Ignore errors if the file can not be read.
17889
17890 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
17891
17892         * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
17893          - Fixed border calculations
17894          - Fixed horizontal scrolling in single column listboxes
17895          - Fixed drawing issues
17896
17897 2005-10-10  Peter Dennis Bartok  <pbartok@novell.com>
17898
17899         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to 
17900           FormBorderStyle enum
17901         * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added 
17902           code to determine FormBorderStyles from CreateParams
17903         * Form.cs:
17904           - Fixed bug where we'd set the wrong window styles if we were
17905             not creating an MDI window
17906           - Added call to XplatUI.SetBorderStyle when form borders are set
17907         * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
17908         * Hwnd.cs:
17909           - Removed obsolete edge style
17910           - Switched from BorderStyle to FormBorderStyle
17911         
17912 2005-10-10  Jackson Harper  <jackson@ximian.com>
17913
17914         * Form.cs: Use the property to get the window handle instead of
17915         accessing it directly. Prevents a null reference exception.
17916
17917 2005-10-10  Jackson Harper  <jackson@ximian.com>
17918
17919         * TreeView.cs: Don't adjust the rect given to DrawString now that
17920         our libgdiplus draws correctly.
17921
17922 2005-10-08  Jackson Harper  <jackson@ximian.com>
17923
17924         * TreeView.cs: Don't try to find the clicked on node if there are
17925         no nodes in the tree.
17926
17927 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
17928
17929         * RichTextBox.cs:
17930
17931           restore
17932
17933 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
17934
17935         * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
17936           ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
17937           ErrorProvider.cs:
17938           Use ResPool for brushes and dispose System.Drawing objects that
17939           are not used anymore.
17940
17941 2005-10-07  Jackson Harper  <jackson@ximian.com>
17942
17943         * MdiChildContext.cs: Use the new borders instead of drawing them
17944         ourselves.
17945
17946 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
17947
17948         * Calling UpdateBounds after changing the window's BorderStyle 
17949         since the style can change the ClientSize
17950
17951 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
17952
17953         * Control.cs: Made PaintControlBackground virtual
17954         * Panel.cs: Overriding PaintControlBackground instead of using paint
17955           event; paint event method was interfering with 'real' users of the
17956           event.
17957
17958 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
17959
17960         * ThemeWin32Classic.cs: remove border drawing since it is handled
17961         by the base control class now and was causing double border drawing.
17962
17963 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
17964
17965         * Panel.cs: Redraw our background on paint. Not a pretty solution,
17966           but it does seem to match MS behaviour. This fixes bug #75324
17967
17968 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
17969
17970         * XplatUIX11.cs: A better DrawReversibleRectangle version, however
17971           somewhat hackish looking
17972
17973 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
17974
17975         * TextBoxBase.cs:
17976           - We now accept Enter even if AcceptEnter is false, if the containing
17977             form does not have an AcceptButton configured (fixes bug #76355)
17978           - Calculations are now fixed to no longer use Width/Height, but
17979             ClientSize.Width/Height, since we now support borders (this was
17980             a result of fixing borders and therefore bug #76166)
17981           - We no longer show the horizontal scrollbar if TextBox.WordWrap is 
17982             true (fixes bug #76354)
17983         
17984 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
17985
17986         * Control.cs: 
17987           - Defaulting BorderStyle and setting it in XplatUI when our window 
17988             is created
17989           - Added enum check to InternalBorderStyle setter
17990         * XplatUIX11.cs: 
17991           - Added drawing of window borders
17992           - Now properly calculates WM decorations offset for toplevel 
17993             windows (fixes bug #74763)
17994         * XplatUIWin32.cs: 
17995           - Implemented BorderStyles for windows (we're letting win32 draw 
17996             the border for us)
17997           - Fixed the signature for SetWindowLong
17998         * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
17999           ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for 
18000           setting borders
18001         * UpDownBase.cs: Remove drawing of borders, this is handled by
18002           the driver, outside the client area
18003         * ListView.cs: Removed bogus border calculations. The control should
18004           be oblivious to borders, since those are not part of the client
18005           area. 
18006         * X11DesktopColors.cs: Commented out (currently) unneeded variables
18007         * ThemeWin32Classic.cs: Removed border calculations from ListView 
18008           drawing code
18009
18010 2005-10-06  Jackson Harper  <jackson@ximian.com>
18011
18012         * MdiChildContext.cs: Clear out the old virtual position remove
18013         all the unneeded calls to CreateGraphics.
18014
18015 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
18016
18017         * TextControl.cs: Use proper color for highlighted text; fixes #76350
18018
18019 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
18020
18021         * Form.cs: 
18022           - Added loading and setting of our new default icon
18023           - Only set icon if window is already created
18024
18025 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
18026
18027         * Label.cs:
18028           - Do not explicitly set the foreground and background colors, to
18029             allow inheriting from parents (fixes #76302)
18030           - Use Control's InternalBorderStyle property to deal with borders
18031
18032 2005-10-06  Jackson Harper  <jackson@ximian.com>
18033
18034         * MdiChildContext.cs: Use the new xplatui function to draw a
18035         reversible rect.
18036
18037 2005-10-06  Jackson Harper  <jackson@ximian.com>
18038
18039         * Form.cs: Add the parent before creating the child context cause
18040         we need the parent when setting up the child.
18041
18042 2005-10-06  Jackson Harper  <jackson@ximian.com>
18043
18044         * FolderBrowserDialog.cs: redo the tree population code so a
18045         second thread isn't used. Should be a lot faster and more stable
18046         now.
18047
18048 2005-10-05  Jackson Harper  <jackson@ximian.com>
18049
18050         * TreeView.cs: There are no expand/collapse boxes if the node has
18051         no children.
18052
18053 2005-10-05  Jackson Harper  <jackson@ximian.com>
18054
18055         * X11DesktopColors.cs: Get menu colours for the gtk theme.
18056
18057 2005-10-05  Alexander Olk  <alex.olk@googlemail.com>
18058
18059         * FileDialog.cs: Fix InitialDirectory
18060
18061 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
18062
18063         * ComboBox.cs:
18064                 - Fixes changing between styles
18065                 - Fixes simple mode
18066                 - Fixes last item crashing when navigating with keyboard
18067
18068 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
18069
18070         * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
18071
18072 2005-10-05  Jackson Harper  <jackson@ximian.com>
18073
18074         * TreeView.cs: If updating the root node do a full refresh.
18075         * TreeNode.cs: The root node should be expanded by default. Also
18076         added a utility prop to tell if we are the root node.
18077         * TreeNodeCollection.cs: Only refresh if the node we are being
18078         added to is expanded. Also added a comment on a potential
18079         optimization.
18080         
18081 2005-10-04  Peter Dennis Bartok  <pbartok@novell.com>
18082
18083         * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize() 
18084           in dispose method. Fixes #76330
18085
18086 2005-10-04  Jordi Mas i Hernandez <jordi@ximian.com>
18087
18088         * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
18089
18090                 - Implements vertical and horizontal scrolling using XplatUI
18091                 - Fixes keyboard navagation
18092                 - Fixes EnsureVisible
18093                 - Drawing fixes
18094                 - Handles and draws focus properly
18095
18096
18097 2005-10-04  Kornél Pál  <kornelpal@hotmail.com>
18098
18099         * ImageList.cs: Use upper case initials for internal fields. ImageStream:
18100           Create handle. NET_2_0: Destroy handle when value is null.
18101
18102 2005-10-03  Jackson Harper  <jackson@ximian.com>
18103
18104         * ScrollBar.cs: My last scrollbar patch was broken. This is a
18105         revert and a new patch to prevent the thumb from refreshing so
18106         much.
18107
18108 2005-10-02  Jackson Harper  <jackson@ximian.com>
18109
18110         * ScrollBar.cs: Don't update position if it hasn't actually
18111         changed. This occurs when you hold down the increment/decrement
18112         buttons and the thumb gets to the max/min.
18113
18114 2005-10-01  Jackson Harper  <jackson@ximian.com>
18115
18116         * Form.cs:
18117         * MdiChildContext.cs:
18118         * MdiClient.cs: Implement ActiveMdiChild in Form.
18119
18120 2005-10-01  Jordi Mas i Hernandez <jordi@ximian.com>
18121
18122         * ComboBox.cs: Include ComboBoxEdit flag for the edit item
18123
18124 2005-10-01  Peter Dennis Bartok  <pbartok@novell.com>
18125
18126         * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
18127           be found
18128
18129 2005-09-30  Jackson Harper  <jackson@ximian.com>
18130
18131         * ListBox.cs: Don't do a full refresh unless some data has
18132         actually changed.
18133
18134 2005-09-30  Jackson Harper  <jackson@ximian.com>
18135
18136         * TreeView.cs: Make sure that the checkboxes size is factored in
18137         even when not visible.
18138
18139 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
18140
18141         * FileDialog.cs: Fix Jordi's build break
18142
18143 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
18144
18145         * FileDialog.cs: 
18146                 - Use standard the Windows colours for the combobox as espected
18147                 - Dispose objects that use resouces when no longer need them
18148
18149 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
18150
18151         * X11DesktopColors.cs: Initial incomplete implementation
18152         * XplatUIX11.cs: Added call to initialize X11DesktopColors
18153
18154 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com>
18155
18156         * Theme.cs: 
18157           - Switched Theme color names to match the names defined in 
18158             System.Drawing.KnownColors. Life's hard enough, no need to make 
18159             it harder.
18160           - Added setters to all theme color properties so themes can set
18161             their color schemes. The setters also propagate the color changes
18162             to System.Drawing.KnownColors via reflection
18163         * ControlPaint.cs,  Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
18164           ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
18165           DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
18166           use the new, more logical theme color names
18167         * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
18168           post-NT colors
18169         * ThemeWin32Classic.cs:
18170           - Removed code to set the old classic Windows colors. Instead it
18171             now relies on the colors returned by System.Drawing.KnownColors
18172             which will be either modern static colors (Unix) or colors
18173             read from the user's configuration (Win32)
18174           - Updated to use the new, more logical theme color names
18175           - Switched DataGrid drawing code to use only Theme colors instead of
18176             a mix of System.Drawing.KnownColors and Theme colors
18177           - DrawFrameControl(): Removed code that fills the button area, the
18178             fill would overwrite any previous fill done by a control. This
18179             fixes bug #75338 
18180           - Added DrawReversibleRectangle() stub
18181         * ScrollableControl.cs: Set visible state to false when scrollbars
18182           are removed (pdn fix)
18183         * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added 
18184           DrawReversibleRectangle() method to allow drawing primitive 
18185           'rubber bands'
18186         * XplatUIX11.cs: Implemented DrawReversibleRectangle()
18187
18188 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
18189
18190         * ImageList.cs: Add(Icon): Create handle.
18191
18192 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
18193
18194         * ListView.cs:
18195         * ThemeWin32Classic.cs:
18196                 - Fixes detail mode
18197                 - Sets clippings
18198                 - Issues with drawing
18199
18200 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
18201
18202         * ImageList.cs: Moved RecreateHandle back to ImageList as event
18203           source has to be the ImageList.
18204
18205 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
18206
18207         * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
18208
18209 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
18210
18211         * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
18212
18213 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
18214
18215         * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
18216
18217 2005-09-29  Jonathan Chambers <jonathan.chambers@ansys.com>
18218         * GridItem.cs: Fixed TODOs
18219         * GridItemCollection.cs: Added ICollection interface
18220
18221 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
18222
18223         * ImageList.cs: Resize icons when needed.
18224
18225 2005-09-29  Jordi Mas i Hernandez <jordi@ximian.com>
18226
18227         * ListViewItem.cs
18228                 - Fixes GetBounds and returns on screen rects
18229         * ListView.cs:
18230                 - Fixes vertical and horzintal scrolling of items
18231         * ThemeWin32Classic.cs:
18232                 - Fixes drawing
18233                 
18234 2005-09-29  Raja R Harinath  <harinath@gmail.com>
18235
18236         * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
18237
18238 2005-09-29  Kornél Pál  <kornelpal@hotmail.com>
18239
18240         * ImageList.cs: Added comments about handle creation. Moved Handle,
18241           HandleCreated and OnRecreateHandle implementations to ImageCollection.
18242           Handle is created in Add methods.
18243
18244 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
18245          
18246         * DataGridDrawingLogic.cs: 
18247                 - Takes rows into account on Colum calculations
18248                 - Returns the column when clickig
18249         * DataGrid.cs:
18250                 - Fixes default HitTestInfo values
18251                 - Fixes HitTestInfo.ToString
18252                 - Fixes ResetBackColor          
18253         
18254 2005-09-28  Jackson Harper  <jackson@ximian.com>
18255
18256         * MdiChildContext.cs: Obey rules for fixed sized windows (no
18257         sizing or cursor changes). Also added some temp code to draw the
18258         titlebars text (Makes dev a little easier).
18259
18260 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
18261
18262         * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
18263
18264 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
18265          
18266         * ListBox.cs: Fixes bug 76253
18267
18268 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
18269
18270         * ImageList.cs: Added comments about the current implementation. Added
18271           ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
18272           Format32bppArgb to preserve transparency and can use Graphics.FromImage
18273           while using the specified ColorDepth. ReduceColorDepth uses unsafe code
18274           with Bitmap.LockBits for better performance. Revised the whole file to
18275           match MS.NET behaviour and provide better performance. Non-public
18276           interface members are calling public members even when they throw
18277           NotSupportedException for better maintainability. Moved ColorDepth,
18278           ImageSize, ImageStream and TransparentColor implementations to
18279           ImageCollection for better performance as these properties are not used
18280           by ImageList.
18281         * ImageListStreamer.cs: Added a new internal constructor that takes an
18282           ImageList.ImageCollection and serializes Images based on
18283           ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
18284           match ImageList property name.
18285
18286 2005-09-28  Kazuki Oikawa <kazuki@panicode.com>
18287
18288         * ListBox.cs: Fixes IndexFromPoint for last item
18289
18290 2005-09-27  Jackson Harper  <jackson@ximian.com>
18291
18292         * Form.cs: Set the position of new mdi children correctly.
18293
18294 2005-09-27  Jackson Harper  <jackson@ximian.com>
18295
18296         * MdiClient.cs: New mdi children need to be added to the back of
18297         the controls collection so the zorder is set correctly. Also add a
18298         count of all the child windows that have been created.
18299
18300 2005-09-27  Jackson Harper  <jackson@ximian.com>
18301
18302         * Form.cs (CreateParams): Setup MDI forms correctly.
18303
18304 2005-09-27  Jackson Harper  <jackson@ximian.com>
18305
18306         * MdiChildContext.cs:
18307         * MonthCalendar.cs:
18308         * UpDownBase.cs:
18309         * ListBox.cs:
18310         * ListView.cs:
18311         * TextBoxBase.cs:
18312         * TreeView.cs:
18313         * ScrollableControl.cs:
18314         * ComboBox.cs: Add implicit controls using the new implict control
18315         functionality in ControlCollection. Also try to block multiple
18316         control add in a suspend/resume layout to save some cycles.
18317         
18318 2005-09-27  Jackson Harper  <jackson@ximian.com>
18319
18320         * Control.cs: Add functionality to the controls collection to add
18321         'implicit controls' these are controls that are created by the
18322         containing control but should not be exposed to the user. Such as
18323         scrollbars in the treeview.
18324         * Form.cs: The list var of the ControlsCollection is no longer
18325         available because of the potential of implicit controls getting
18326         ignored by someone accessing the list directly.
18327
18328 2005-09-26  Peter Dennis Bartok  <pbartok@novell.com>
18329
18330         * Control.cs: Fixed SetChildIndex; it no longer causes a child to
18331           loose it's parent. (Fixed bug introduced in r49103 when we added
18332           setting the child parent to null on Remove)
18333
18334 2005-09-26  Gert Driesen  <drieseng@users.sourceforge.net>
18335
18336         * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
18337         * Splitter.cs: Added missing attributes for BorderStyle property.
18338         * TextBoxBase.cs: Marked Calculate* methods internal.
18339         * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
18340         MS.NET.
18341
18342 2005-09-26  Jordi Mas i Hernandez <jordi@ximian.com>
18343          
18344         * ListBox.cs: Fixes navigation to the last item in multicolumn lists
18345
18346 2005-09-25  Jackson Harper  <jackson@ximian.com>
18347
18348         * TreeView.cs: Update the node bounds correctly regardless of
18349         whether the node is visible.
18350
18351 2005-09-25  Jackson Harper  <jackson@ximian.com>
18352
18353         * ImageList.cs: Don't dispose the image after it is added to the
18354         image list. Only reformat images that need to be resized.
18355
18356 2005-09-25  Jackson Harper  <jackson@ximian.com>
18357
18358         * ImageList.cs: Don't set the format when changing the image.
18359
18360 2005-09-25  Jackson Harper  <jackson@ximian.com>
18361
18362         * TreeView.cs: We can't just assume the node has a font. Use the
18363         treeviews font if no node font is available.
18364
18365 2005-09-25  Jackson Harper  <jackson@ximian.com>
18366
18367         * TreeView.cs: Allow the scrollbars to be reset with negative
18368         values.
18369         - Don't add scrollbars to negative sized windows.
18370
18371 2005-09-23  Jackson Harper  <jackson@ximian.com>
18372
18373         * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
18374         old Mono.Posix. Also remove some stray code that shouldn't have
18375         been committed.
18376
18377 2005-09-23  Jackson Harper  <jackson@ximian.com>
18378
18379         * TreeView.cs: Attempt at proper sizing of the horizontal
18380         scrollbar. Also don't resize the scrollbars unless they are
18381         visible.
18382
18383 2005-09-23  Jackson Harper  <jackson@ximian.com>
18384
18385         * TreeView.cs: We don't need to expand the invalid area when the
18386         selection changes, as this is all drawn in the node's bounding
18387         box. The area needs to be expanded (previous typo was contracting
18388         it) when the focus rect moves.
18389
18390 2005-09-23  Jackson Harper  <jackson@ximian.com>
18391
18392         * TreeView.cs: Display the selection box under the correct
18393         circumstances. We were rendering white text with no selection box
18394         before.
18395
18396 2005-09-23  Peter Dennis Bartok  <pbartok@novell.com>
18397
18398         * TextControl.cs(Split): Now updates selection start/end if it points 
18399           into a line that's being split. Fixes a FIXME and bug #75258
18400
18401 2005-09-23  Jackson Harper  <jackson@ximian.com>
18402
18403         * Binding.cs:
18404         * ListControl.cs: Don't use the path when retrieving binding
18405         managers from the binding context. My bat sense tells me that the
18406         path is only used on insertion.
18407
18408 2005-09-22  Jackson Harper  <jackson@ximian.com>
18409
18410         * Splitter.cs: Set the cursor an easier way. (Thanks peter).
18411
18412 2005-09-22  Jackson Harper  <jackson@ximian.com>
18413
18414         * Splitter.cs: There are special cursors used for splitting.
18415         * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
18416
18417 2005-09-22  Jackson Harper  <jackson@ximian.com>
18418
18419         * Splitter.cs: Change the cursor appropriately when the splitter
18420         is moused over, so the user actually knows there is a splitter
18421         there.
18422
18423 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
18424
18425        * Label.cs : Fix ToString method to give same output as MS.NET
18426
18427 2005-09-22  Jackson Harper  <jackson@ximian.com>
18428
18429         * TreeView.cs: Create the scrollbars when the handle is created
18430         and add them right away, just make them invisble. Also account for
18431         the window being shrunk vertically to the point that the vert
18432         scrollbar needs to be added.
18433         - Remove some 0.5 adjustments to get around anti aliasing issues.
18434         
18435 2005-09-22  Jordi Mas i Hernandez <jordi@ximian.com>
18436          
18437         * MainMenu.cs: Fixes default value
18438         * MenuItem.cs: Fixes default value
18439
18440 2005-09-22  Kazuki Oikawa  <kazuki@panicode.com>
18441
18442         * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
18443
18444 2005-09-21  Jackson Harper  <jackson@ximian.com>
18445
18446         * Control.cs: Don't try to set the border style on the window if
18447         it hasn't been created. When the window is created the border
18448         style will be used.
18449
18450 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
18451
18452         * Control.cs (Update): Don't call XplatUI if we don't have a
18453           window handle yet
18454
18455 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
18456
18457         * ContainerControl.cs: Instead of throwing an exception, print
18458           a one-time warning about Validate not being implemented
18459         * XplatUIWin32.cs: Removed debug output
18460
18461 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
18462
18463         * Control.cs: Only set XplatUI background if we expect the windowing
18464           system to handle the background. This stops controls that draw their
18465           own background from flickering
18466
18467         * XplatUIX11.cs: Support custom visuals and colormaps for window 
18468           creation. This allows, amongst other things, using MWF X11 windows 
18469           with OpenGL.
18470
18471 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
18472
18473         * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
18474           CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
18475           GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
18476           SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
18477           TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
18478           IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
18479           KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
18480           RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
18481           ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
18482           ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
18483           GridColumnStylesCollection.cs, 
18484           IDataGridColumnStyleEditingNotificationService.cs,
18485           PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
18486           MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
18487           GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs, 
18488           TreeNodeCollection.cs, AmbientProperties.cs, 
18489           RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
18490           DataObject.cs, ErrorProvider.cs, Splitter.cs,
18491           DataGridLineStyle.cs, Shortcut.cs, Control.cs,
18492           FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
18493           BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
18494           IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
18495           FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
18496           IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
18497           NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
18498           PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
18499           SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
18500           FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
18501           DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
18502           ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
18503           RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
18504           MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
18505           ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
18506           CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
18507           MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
18508           NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
18509           ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
18510           SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
18511           Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
18512           RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
18513           DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
18514           ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
18515           PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
18516           DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
18517           ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
18518           AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
18519           RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
18520           CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
18521           SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
18522           Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
18523           SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
18524           ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
18525           TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
18526
18527 2005-09-21  Jackson Harper  <jackson@ximian.com>
18528
18529         * TreeNode.cs: Call Before/After Expand not Collapse when
18530         expanding.
18531
18532 2005-09-20  Jackson Harper  <jackson@ximian.com>
18533         
18534         * XplatUIX11.cs: Use the more hand looking hand (in most themes).
18535
18536 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
18537          
18538         * ListViewItem.cs:
18539                 - Fixes bug 76120
18540                 - Fixes proper storing of subitems
18541                 - Fixes not updated items
18542
18543 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com>
18544
18545         * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
18546           things if our window handle isn't created yet. Also disabled 
18547           debug for TextBoxBase
18548
18549 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com> 
18550
18551         * MenuAPI.cs: Remove filtering of events to allow menu usage
18552
18553 2005-09-20  Miguel de Icaza  <miguel@novell.com>
18554
18555         * Cursor.cs: Allow null to be passed to Cursor.Current.
18556
18557 2005-09-20  Alexander Olk  <alex.olk@googlemail.com>
18558
18559         * ThemeWin32Classic.cs:
18560           - Change some private methods/fields to protected virtual so that 
18561             they can be accessed and overriden in derived classes
18562           - First refactoring of some methods. Derived themes now don't 
18563             need to duplicate the complete code from ThemeWin32Classic
18564         * ThemeNice.cs:
18565           - Added nice StatusBar
18566           - Derive from ThemeWin32Classic and not Theme
18567           - Removed duplicate ThemeWin32Classic code
18568
18569 2005-09-20  Miguel de Icaza  <miguel@novell.com>
18570
18571         * Control.cs (ControlCollection.Add): If the value null is passed
18572         the control is ignored. 
18573
18574         Optimize this loop.
18575
18576 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com> 
18577
18578         * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
18579           PostQuitMessage state.
18580         * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
18581
18582 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com>
18583
18584         * Application.cs: Our constructor will never get called, move 
18585           initialization to fields; fixes bug #75933
18586
18587 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
18588
18589         * FileDialog.cs :
18590                 - Allow files to be selected properly using file name
18591                 combo box.
18592                 - Add ability to change diretory (absolute / relative)
18593                 using file name combo box.
18594
18595 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
18596          
18597         * ListBox.cs: 
18598                 - Fixes Multicolumn listboxes item wrong calculations
18599                 - Allows to click when only one item is in the listbox
18600                 - Fixes crash when no items using keyboard navigation
18601
18602 2005-09-16  Alexander Olk  <alex.olk@googlemail.com>
18603
18604         * ComboBox.cs: Reverted almost everything from the latest patch which
18605           broke ComboBox
18606
18607 2005-09-16  Kazuki Oikawa <kazuki@panicode.com>
18608         
18609         * ToolTip.cs:
18610                 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
18611         * ComboBox.cs:
18612                 - When DropDownStyle is Simple, it does not show scrollbar 
18613                 to the last item of the list.
18614                 - When DropDownStyle is Simple, it crashed when the list was 
18615                 scrolled down with the down cursor key.
18616                 - Fixed a bug that when DropDownStyle is DropDownList, the 
18617                 selected item was not shown.
18618                 - The position of the selected item was not preserved when 
18619                 the next dropdown happened.
18620         * ThemeWin32Classic.cs:
18621                 - Items were wrapped at the right end.
18622         * CheckedListBox.cs:
18623                 - Fixed Add method
18624         * ListBox.cs:
18625                 - Items should be fully shown.
18626                 - When resizing and vertical scrollbar disappeared, the item 
18627                 of index 0 should be on the top of the list.
18628                 - GetItemRectangle should consider the size of ver. scrollbar
18629         * StatusBar.cs:
18630                 - SizingGrip area should not be allocated when it is not 
18631                 displayed.
18632                 - Now it reflects MinWidth of the containing panel and 
18633                 fixed a crash that happens when its width becomes so small.
18634
18635 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
18636
18637         * CheckedListBox.cs: Fixes bug 76028
18638         * ListBox.cs: Fixes bug 76028
18639
18640 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
18641
18642         * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
18643         * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
18644
18645 2005-09-12  Jordi Mas i Hernandez <jordi@ximian.com>
18646
18647         * XplatUIX11.cs: fixes System.NullReferenceException in some situations
18648
18649 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
18650
18651         * IRootGridEntry.cs: Changed namespace to PropertyGridInternal 
18652
18653 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
18654
18655         * IRootGridEntry.cs: Added
18656         * PropertyGridCommands.cs: Added
18657         * PropertiesTab.cs: Added missing methods and property
18658         * PropertyGridView.cs: Made class internal
18659         * PropertyGridTextBox.cs: Made class internal
18660
18661 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
18662
18663         * MimeIcon.cs: Try to check some other environment variables
18664           if "DESKTOP_SESSION" returns "default"
18665
18666 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
18667
18668         * ThemeNice.cs: Corrected background colors (e.g. menus)
18669         * ColorDialog.cs: Use correct background colors for controls
18670
18671 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
18672
18673         * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
18674
18675 2005-09-08  Peter Dennis Bartok  <pbartok@novell.com>
18676
18677         * RichTextBox.cs: Added initial implementation
18678         * lang.cs: Removed. Was accidentally checked in long time ago
18679         * TODO: Removed. Contents were obsolete
18680
18681 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
18682                                                                                 
18683         * PropertiesTab.cs : Added
18684
18685 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
18686                                                                                 
18687         * PropertyGrid.cs : Update
18688         * PropertyGridView.cs : Update
18689         * System.Windows.Forms.resx : Added images and strings
18690
18691 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com> 
18692
18693         * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
18694  
18695 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com>
18696
18697         * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
18698           a busy loop right after the Ungrab the X11 display is otherwise 
18699           blocked
18700
18701 2005-09-06  Jordi Mas i Hernandez <jordi@ximian.com>
18702
18703         * ThemeWin32Classic.cs: Optimise the use of clipping
18704
18705 2005-09-05  Jordi Mas i Hernandez <jordi@ximian.com>
18706
18707         * DataGrid.cs: fixes recursion bug
18708
18709 2005-09-03  Alexander Olk  <alex.olk@googlemail.com>
18710
18711         * ThemeNice.cs: 
18712           - Draw RadioButton and CheckBox Buttons with DrawButtonBase
18713           - Cleanup
18714
18715 2005-09-02  Alexander Olk  <alex.olk@googlemail.com>
18716
18717         * ThemeNice.cs: Draw nice ProgressBars
18718
18719 2005-09-01  Miguel de Icaza  <miguel@novell.com>
18720
18721         * VScrollBar.cs: Another buglet found by Aaron's tool. 
18722
18723         * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
18724         bug finder.
18725
18726 2005-08-30  Alexander Olk  <alex.olk@googlemail.com>
18727
18728         * ThemeNice.cs:
18729           - Added nicer menu drawing
18730           - Updated DrawTab
18731           - some refactoring
18732
18733 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
18734
18735         * CreateParams.cs (ToString): Made output match MS
18736         * Control.cs (Text): Don't set Text or Focus via XplatUI unless 
18737             handle is already created (to avoid forcing window creation)
18738         * XplatUIX11.cs: Set window text to caption after creating window,
18739           in case Text was set before window was created
18740         * Form.cs: Use this.Text instead of a static string as caption
18741
18742 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
18743
18744         * NotifyIcon.cs: Don't set the window to visible; this screws
18745           up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
18746           OnPaint without a bitmap)
18747         * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't 
18748           happen very often anyway; we could add the check to the WM_PAINT 
18749           event generation code
18750
18751 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
18752
18753         * NotifyIcon.cs: Fill the icon area with a background color, to 
18754           avoid 'residue' when transparent icons are drawn
18755         * XplatUIX11.cs:
18756           - Handle whole_window == client_window when destroying windows
18757           - SystrayAdd(): Set client_window to whole_window value to
18758             get mouse and other events passed to NotifyIcon
18759
18760 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
18761
18762         * Form.cs: Set proper default for Opacity property
18763         * NotifyIcon.cs:
18764           - ShowSystray(): Don't bother creating telling the OS
18765             about the systray item if no icon is provided
18766           - Now handles WM_NCPAINT message to deal with whole/client window
18767             split
18768           - Create window as visible to not get caught by Expose optimization
18769         * Hwnd.cs: Removed debug message
18770         * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
18771           StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched 
18772             PaintEventStart/End to use new client argument
18773         * TextBoxBase.cs:
18774           - Commented out debug messages
18775           - Switched PaintEventStart/End to use new client argument
18776         * XplatUI.cs: Added client window bool to PaintEventStart()/
18777           PaintEventEnd() calls, to support drawing in non-client areas
18778         * XplatUIDriver.cs: 
18779           - Added client window bool to PaintEventStart()/PaintEventEnd() 
18780             calls, to support drawing in non-client areas
18781           - Added conditional compile to allow using MWF BeginInvoke 
18782             on MS runtime
18783         * XplatUIX11.cs:
18784           - Added some conditional debug output
18785           - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
18786             whole/client window split
18787           - Implemented handling of client argument to PaintEventStart()/End()
18788         * Control.cs:
18789           - Throw exception if BeginInvoke() is called and the window handle
18790             or one of the window's parent handles is not created
18791           - Added conditional compile to allow using MWF BeginInvoke on
18792             MS runtime
18793           - get_Parent(): Only sets parent if handle is created. This avoids
18794             forcing window handle creation when parent is set.
18795           - Now fires Layout and Parent changed events in proper order
18796           - Switched to use Handle instead of window.Handle for Z-Order setting,
18797             the get_Parent() patch above causes us to possibly get null for 'window'
18798           - Implemented handling of client argument to PaintEventStart()/End()
18799           - Now reports back to windows that WM_SETCURSOR was handled (to avoid
18800             default handling)
18801           - Now sends a Refresh() to all child windows when Refresh() is called
18802
18803 2005-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
18804
18805         * Form.cs: Added (non-functional) Opacity property
18806         * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
18807
18808 2005-08-29  Alexander Olk  <xenomorph2@onlinehome.de>
18809         * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
18810           use export MONO_THEME=nice to activate it.
18811           Currently supported controls:
18812           - Button
18813           - ComboBox
18814           - ScrollBar
18815           - TabControl (TabAlignment.Top only, other will follow)
18816         * ThemeEngine.cs: Add theme nice
18817         * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
18818           if enabled
18819
18820 2005-08-25  Jonathan Chambers  <jonathan.chambers@ansys.com> 
18821
18822         * Splitter.cs: Resize docked control and its neighbor.
18823
18824 2005-08-24  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
18825         -- Making Windows with Menus layout correctly --
18826         * Form.cs : The first leg of the fix
18827                 Menu setter - adjust Client Size as needed to make space for the menu
18828                 SetClientSizeCore - doesn't call base version to be able to pass the 
18829                         menu handle to XplatUI.CalculateWindowRect
18830         * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
18831         * XplatUIX11.cs: The critical second leg of the fix
18832                 GetWindowPos needs to use a recalculated client_rect
18833                 so that resizing the window doesn't break layout of child controls. 
18834                 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
18835                 Lots of \t\n killed
18836
18837 2005-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
18838
18839         * Label.cs: Now properly recalculates width and height on Font and Text
18840           changes if AutoSize is set
18841
18842 2005-08-19  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
18843         * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
18844
18845 2005-08-19  Jordi Mas i Hernandez <jordi@ximian.com>
18846
18847         * ImageList.cs: Makes ToString method compatible with MS
18848
18849 2005-08-18  Jordi Mas i Hernandez <jordi@ximian.com>
18850
18851         * MenuAPI.cs: fixes bug 75716
18852
18853 2005-08-11 Umadevi S <sumadevi@novell.com>
18854         * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
18855
18856 2005-08-11 Umadevi S <sumadevi@novell.com>
18857         * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
18858
18859 2005-08-10  Umadevi S <sumadevi@novell.com>
18860         * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
18861
18862 2005-08-07  Jordi Mas i Hernandez <jordi@ximian.com>
18863
18864         * Menu.cs: fixes bug 75700
18865         * MenuAPI.cs: fixes navigation issues
18866
18867 2005-08-09  Umadevi S <sumadevi@novell.com>
18868         * CheckedListBox.cs - simple fix for GetItemChecked.
18869
18870 2005-08-08  Jordi Mas i Hernandez <jordi@ximian.com>
18871
18872         * ComboBox.cs: Serveral fixes
18873         * ListBox.cs: Serveral fixes
18874
18875 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
18876
18877         * ComboBox.cs: Fixes FindString methods and GetItemHeight
18878         * ListBox.cs: Fixes FindString methods
18879
18880 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
18881
18882         * DataGrid.cs: fixes bugs exposed by new tests
18883
18884 2005-08-04  Peter Dennis Bartok  <pbartok@novell.com> 
18885
18886         * Mime.cs: Compile Mono assembly references only if compiling
18887           with Mono (Allows to build with VS.Net again)
18888
18889 2005-07-28  Marek Safar  <marek.safar@seznam.cz>
18890
18891         * Control.cs (PaintControlBackground): Draw background image
18892         corrrectly.
18893         (CheckForIllegalCrossThreadCalls): Stubbed.
18894         
18895         * Form.cs (OnCreateControl): Center when should be centered.
18896         
18897         * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
18898
18899 2005-07-19  Jordi Mas i Hernandez <jordi@ximian.com>
18900
18901         * Binding.cs: Binding to properties should be case unsensitive
18902
18903 2005-07-18 vlindos@nucleusys.com
18904
18905         * DataGrid.cs: fixes setmember order
18906
18907 2005-07-07  Alexander Olk  <xenomorph2@onlinehome.de>
18908
18909         * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
18910         * FileDialog.cs: FileDialog is now resizable and uses the new
18911           MimeIconEngine
18912
18913 2005-07-06  Jordi Mas i Hernandez <jordi@ximian.com>
18914
18915         * DataGridTextBoxColumn.cs: default value
18916         * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
18917         * GridTableStylesCollection.cs: fixes checking MappingName
18918         * DataGridDrawingLogic.cs: fixes drawing logic issues
18919         * DataSourceHelper.cs: rewritten to make compatible with more data sources
18920         * DataGrid.cs: fixes    
18921
18922 2005-07-06  Alexander Olk  <xenomorph2@onlinehome.de>
18923
18924         * MimeGenerated.cs: Use case sensitive comparer for
18925           NameValueCollections
18926
18927 2005-07-01  Jordi Mas i Hernandez <jordi@ximian.com>
18928
18929         * DataGridTextBoxColumn.cs: bug fixes, code refactoring 
18930         * ThemeWin32Classic.cs: bug fixes, code refactoring
18931         * DataGridDrawingLogic.cs:  bug fixes, code refactoring
18932         * DataGrid.cs: bug fixes, code refactoring
18933         * DataGridTextBox.cs: bug fixes, code refactoring
18934         * DataGridColumnStyle.cs:  bug fixes, code refactoring
18935         * Theme.cs:  bug fixes, code refactoring
18936
18937 2005-07-01  Peter Bartok  <pbartok@novell.com> 
18938
18939         * TextControl.cs: Quick fix for the reported crash on ColorDialog
18940           and other text box usage
18941
18942 2005-07-01  Jackson Harper  <jackson@ximian.com>
18943
18944         * TabControl.cs: Make sure the bottom of the tab covers the pages
18945         border.
18946
18947 2005-06-30  Peter Bartok  <pbartok@novell.com> 
18948
18949         * Form.cs (ShowDialog): Assign owner of the dialog
18950         * TextBoxBase.cs: Always refresh caret size when deleting, caret
18951           might have been moved to a tag with different height
18952
18953 2005-06-30  Jackson Harper  <jackson@ximian.com>
18954
18955         * Form.cs: Don't create an infinite loop when setting focus
18956         * MenuItem.cs: Don't dirty the parents if we don't have any
18957
18958 2005-06-29  Ben Maurer  <bmaurer@ximian.com>
18959
18960         * LibSupport.cs: Rename
18961
18962 2005-06-29  Peter Bartok  <pbartok@novell.com>
18963
18964         * TextBoxBase.cs: Re-align caret after deleting a character
18965         * TextControl.cs:
18966           - DeleteChars(): Ensure that tag covers the provided position
18967           - StreamLine(): Drop reference for dropped tag
18968
18969 2005-06-29  Peter Bartok  <pbartok@novell.com> 
18970
18971         * TextControl.cs: 
18972           - Selections now work properly, anchoring at the initial location
18973             and properly extending in either direction (SetSelectionToCaret(),
18974             SetSelectionStart() and SetSelectionEnd())
18975           - No longer redraws the whole control on selection change, now
18976             calculates delta between previous and new selection and only
18977             invalidates/redraws that area
18978           - Fixed FindPos() math off-by-one errors
18979           - Changed DeleteChars() to verify the provided tag covers the
18980             provided position, selections may have a tag that doesn't cover
18981             the position if the selection is at a tag border
18982           - Fixed off-by-one errors in DeleteChars()
18983           - Added missing streamlining check in DeleteChars() to remove
18984             zero-length tags
18985           - Implemented Invalidate() method, now properly calculates exposures
18986             between two given lines/positions
18987           - Implemented SetSelection()
18988           - Obsoleted and removed FixupSelection()
18989           - Improved RecalculateDocument() logic, removing code duplication
18990
18991 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
18992
18993         * LibSupport.cs: changes to match different input/output arguments.
18994
18995 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
18996
18997         * LibSupport.cs: added libsupport.so init routine.
18998
18999 2005-06-29  Jordi Mas i Hernandez <jordi@ximian.com>
19000         
19001         * ControlBindingsCollection.cs
19002                 - Throws an exception on null datasource when adding
19003                 - Checks for duplicated bindings when adding
19004
19005 2005-06-28  Jackson Harper  <jackson@ximian.com>
19006
19007         * TreeView.cs (OnKeyDown): Support left and right properly
19008         (navigates as well as expanding and collapsing.
19009         - Add support for Multiply, this expands all the selected nodes
19010         children.
19011         - Fix some tabbing.
19012
19013 2005-06-28  Jackson Harper  <jackson@ximian.com>
19014
19015         * TreeView.cs: Implement keyboard navigation, currently supports,
19016         LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
19017         support for toggling checkboxes with the space bar.
19018
19019 2005-06-28  Jackson Harper  <jackson@ximian.com>
19020
19021         * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
19022         tree.
19023
19024 2005-06-28  Jackson Harper  <jackson@ximian.com>
19025
19026         * TreeView.cs: Add missing event.
19027
19028 2005-06-27  Peter Bartok  <pbartok@novell.com> 
19029
19030         * TextControl.cs:
19031           - Made line ending size configurable (now allows for counting 
19032             lineendings as \n or \r\n)
19033           - Added margin to viewport to keep caret visible on right side
19034           - Fixed translation routines for line/pos to documentpos to consider
19035             cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
19036           - Fixed some line-endings to be unix style
19037           - Fixed Document.FormatText to perform it's calculations 1-based
19038           - Added descriptions for a few methods that might otherwise get 
19039             used wrong
19040           - Added NOTE section with some basic conventions to remember at 
19041             the top of the file
19042           - Major fixup for RichTextBox selection drawing:
19043             * Fixed crashes when multiple tags on a single line were selected
19044             * fixed selection box drawing not overlaying text
19045             * fixed bogus offset calculation for tags not starting at index 1
19046             * Switched behaviour from using multiple Substrings of a 
19047               StringBuilder.ToString() to using multiple 
19048               StringBuilder.ToString(start, length) statements, hoping this is
19049               faster (kept original version commented out in the code, in case
19050               original version was faster)
19051         * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if 
19052           alignment != Left
19053         * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
19054           call it as well
19055
19056 2005-06-27  Jackson Harper  <jackson@ximian.com>
19057
19058         * TabControl.cs: Move to the left and right with the arrow
19059         keys. These keys don't cycle beyond first and last like
19060         tab. Refresh all the tabs when scrolling them to the left or
19061         right.
19062
19063 2005-06-27  Jackson Harper  <jackson@ximian.com>
19064
19065         * TabControl.cs:
19066           - ToString: Added method
19067           - CreateParams: Remove TODO and comment
19068           - OnKeyDown: Cycle through bounds properly.
19069           - SelectedIndex: Scroll to the right or left if we need to
19070           display the newly selected tab.
19071
19072 2005-06-23  Jackson Harper  <jackson@ximian.com>
19073
19074         * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
19075         set.
19076
19077 2005-06-23  Jackson Harper  <jackson@ximian.com>
19078
19079         * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
19080         CTRL-SHIFT-TAB, and HOME, END are there any others?
19081
19082 2005-06-23  Jackson Harper  <jackson@ximian.com>
19083
19084         * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
19085
19086 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
19087         
19088         * DataGridTextBoxColumn.cs: fixes and enhancements
19089         * ThemeWin32Classic.cs: fixes and enhancements
19090         * DataGridBoolColumn.cs:  fixes and enhancements
19091         * DataGridDrawingLogic.cs:  fixes and enhancements
19092         * CurrencyManager.cs: fixes and enhancements
19093         * DataGrid.cs: fixes and enhancements
19094         * DataGridColumnStyle.cs:  fixes and enhancements
19095
19096 2005-06-22  Jackson Harper  <jackson@ximian.com>
19097
19098         * TabControl.cs: Add some missing methods that just call into the
19099         base. Make the TabPageCollection's IList interface behave in the
19100         same manner as the MS implementation.
19101
19102 2005-06-22  Peter Bartok  <pbartok@novell.com> 
19103
19104         * TextControl.cs: Added sanity check
19105         * TextBoxBase.cs: 
19106           - Fixed wrapping behaviour, don't set wrap on single line controls
19107             (this fixes the breakage of colordialog introduced in an earlier
19108              checkin)
19109           - Added rudimentary support for autoscrolling right-aligned controls
19110             (still needs fixing, also, center alignment scroll is missing)
19111
19112 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
19113         
19114         * ScrollBar.cs: Fixes thumbpos on Maximum values
19115
19116 2005-06-21  Jonathan Chambers <jonathan.chambers@ansys.com>
19117         
19118         * PropertyGridView.cs: Pass context information to UITypeEditors 
19119
19120 2005-06-21  Peter Bartok  <pbartok@novell.com> 
19121
19122         * TextBoxBase.cs:
19123           - Now calling PositionCaret with absolute space coordinates
19124           - Enabled vertical scrolling
19125           - Better tracking of scrollbar changes, tied into WidthChange
19126             event
19127           - Improved cursor tracking
19128           - Removed debug output
19129         * TextControl.cs:
19130           - PositionCaret coordinates are now works in absolute space, not 
19131             the canvas
19132           - Improved tracking of document size
19133           - Added events for width and height changes
19134
19135 2005-06-21  Peter Bartok  <pbartok@novell.com>
19136
19137         * Form.cs: Set focus to active control when form is activated
19138         * TextControl.cs: 
19139           - Added word-wrap functionality to RecalculateLine() 
19140           - Added some short function descriptions for VS.Net to aid in
19141             writing dependent controls
19142           - Added Caret property, returning the current coords of the caret
19143           - Added ViewPortWidth and ViewPortHeight properties
19144           - Added Wrap property
19145           - Added CaretMoved event
19146           - Removed some old debug code
19147           - Split() can now create soft splits
19148           - Added PreviousTag()/NextTag() to allow walking "tag-lists"
19149           - Added method to format existing text
19150           - Fixed size/alignment calculations to use viewport
19151           - RecalculateDocument now can handle changing line-numbers while
19152             calculating lines
19153
19154         * TextBox.cs:
19155           - Added some wrap logic, we don't wrap if alignment is not left
19156           - Added casts for scrollbar var, base class switched types to
19157             also support RichTextBoxA
19158           - Implemented handling of scrollbar visibility flags
19159
19160         * TextBoxBase.cs:
19161           - Switched scrollbars type to RichTextBoxScrollBars to support
19162             RichTextBox
19163           - Added tracking of canvas width/height
19164           - Switched scrollbars to be not selectable (to keep focus on text)
19165           - Added central CalculateDocument() method to handle all redraw
19166             requirements
19167           - Added ReadOnly support
19168           - Added WordWrap support
19169           - Fixed handling of Enter key (we now treat it as a DialogKey)
19170           - Fixed caret positioning when h or v scroll is not zero
19171           - Fixed placing/generation of vertical scrollbar
19172           - Added CalculateScrollBars() method to allow updating scrollbar
19173             limits and visibility
19174           - Fixed handling of horizontal scroll
19175           - Added handling of vertical scroll
19176           - Implemented auto-'jump' when caret moves to close to a left or
19177             right border and there is text to be scrolled into view (currently
19178             there's the potential for a stack overflow, until a bug in
19179             scrollbar is fixed)
19180
19181 2005-06-21  Geoff Norton  <gnorton@customerdna.com>
19182         
19183         * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
19184
19185 2005-06-19  Alexander Olk  <xenomorph2@onlinehome.de>
19186
19187         * Mime.cs:
19188         - added inodes.
19189         - return application/x-zerosize for files with size zero
19190           (if no extension pattern matches).
19191         - check matches collection for strings too.
19192         - return only the first mime type if the name value
19193           collection has more than one mime type.
19194
19195 2005-06-18  Jonathan Chambers <jonathan.chambers@ansys.com>
19196         
19197         * PropertyGrid.cs: Cleaned up some TODOs
19198         * PropertyGridView.cs: Added support for UITypeEditors
19199
19200 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
19201         
19202         * DataGrid.cs: clears cached value
19203
19204 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
19205
19206         * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
19207         * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
19208         * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
19209         * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
19210         
19211 2005-06-16  Jordi Mas i Hernandez <jordi@ximian.com>
19212
19213         * ThemeWin32Classic.cs: fixes colour
19214
19215 2005-06-15  Peter Bartok  <pbartok@novell.com>
19216
19217         * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
19218         * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
19219         * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
19220         * Control.cs: Added some MWFCategory and MWFDescription attributes
19221         * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
19222
19223 2005-06-15  Alexander Olk  <xenomorph2@onlinehome.de>
19224
19225         * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
19226         usage
19227
19228 2005-06-14  Jordi Mas i Hernandez <jordi@ximian.com>
19229
19230         * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
19231         * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
19232         * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
19233         * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
19234         * DataGrid.cs: default datagrid settings for Default Styles, fixes
19235         * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
19236
19237 2005-06-13  Jackson Harper  <jackson@ximian.com>
19238
19239         * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
19240         isn't printed when the user enables dropping. (X11 does accept
19241         drops).
19242         
19243 2005-06-13  Jackson Harper  <jackson@ximian.com>
19244
19245         * TreeView.cs: Remove some TODOS.
19246
19247 2005-06-13  Jackson Harper  <jackson@ximian.com>
19248
19249         * Form.cs: Hook into the mdi framework.
19250         * MdiClient.cs: Use the base control collections add method so
19251         parents get setup correctly. Set the default back colour and dock
19252         style.
19253         * MdiChildContext.cs: New class, this bad actor handles an
19254         instance of an MDI window. Right now there is only basic
19255         support. You can drag, close, and resize windows. Minimize and
19256         Maximize are partially implemented.
19257
19258 2005-06-13  Jackson Harper  <jackson@ximian.com>
19259
19260         * XplatUIX11.cs: Mash numbers together properly, otherwise we get
19261         freaky when both vals are negative. NOTE: There are probably other
19262         places in XplatUIX11 that this needs to be done.
19263
19264 2005-06-13  Jordi Mas i Hernandez <jordi@ximian.com>
19265
19266         * DataGrid.cs: implement missing methods, move KeyboardNavigation
19267         * DataGridColumnStyle.cs: fixes signature
19268
19269 2005-06-12  Jackson Harper  <jackson@ximian.com>
19270
19271         * XplatUIX11.cs: Use sizing cursors similar to the ones on
19272         windows.
19273
19274 2005-06-11  Jackson Harper  <jackson@ximian.com>
19275
19276         * StatusBarPanel.cs: Signature cleanups. Implement
19277         BeginInit/EndInit.
19278
19279 2005-06-10  Jordi Mas i Hernandez <jordi@ximian.com>
19280
19281         * DataGridTextBoxColumn.cs: Honors aligment
19282         * GridColumnStylesCollection.cs: Contains is case unsensitive
19283         * GridTableStylesCollection.cs: several fixes
19284         * DataGridTableStyle.cs: default column creation
19285         * DataGridDrawingLogic.cs: fixes
19286         * CurrencyManager.cs: ListName property
19287         * DataGrid.cs: multiple styles support
19288         * DataGridColumnStyle.cs: fixes
19289         
19290
19291 2005-06-10  Peter Bartok  <pbartok@novell.com>
19292
19293         * Control.cs(Select): Moved SetFocus call to avoid potential
19294           loops if controls change the active control when getting focus
19295         * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
19296           the up/down buttons
19297
19298 2005-06-10  Matthias Felgner  <matthiasf@voelcker.ocm>
19299
19300         * ImageListConverter.cs: Implemented
19301
19302 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
19303
19304         * MonthCalendar.cs: Wired in NumericUpDown control for year
19305
19306 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
19307
19308         * MonthCalendar.cs: Removed MonoTodo attributes on Click and
19309           DoubleClick events, since they are not meant to be fired.
19310
19311 2005-06-09  Peter Bartok  <pbartok@novell.com>
19312
19313         * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
19314           Jonathan's standalone controls into MWF, implemented missing
19315           events, attributes and methods; added xxxAccessible classes
19316         * AccessibleObject.cs: Made fields internal so other classes
19317           can change them if needed
19318
19319 2005-06-09  Jonathan Gilbert  <2a5gjx302@sneakemail.com>
19320
19321         * UpDownBase.cs: Complete implementation
19322         * NumericUpDown.cs: Complete implementation
19323         * DomainUpDown.cs: Complete implementation
19324
19325 2005-06-09  Jordi Mas i Hernandez <jordi@ximian.com>
19326
19327         * DataGridTextBoxColumn.cs: drawing fixes
19328         * DataGridCell.cs: fixes ToString method to match MSNet
19329         * DataGridTableStyle.cs: fixes
19330         * DataGridBoolColumn.cs: fixes, drawing
19331         * DataGridDrawingLogic.cs: fixes, new methods
19332         * DataGridTextBox.cs: Keyboard and fixes
19333         * DataGrid.cs:
19334                 - Keyboard navigation
19335                 - Scrolling fixes
19336                 - Row selection (single, multiple, deletion, etc)
19337                 - Lots of fixes
19338         
19339 2005-06-07  Jackson Harper  <jackson@ximian.com>
19340
19341         * ThemeWin32Classic.cs: Clear the background area when drawing
19342         buttons.
19343
19344 2005-06-06  Peter Bartok  <pbartok@novell.com>
19345
19346         * ImageListStreamer.cs: Fixed signature for GetData
19347         * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
19348         * ComboBox.cs:
19349           - Added missing ChildAccessibleObject class
19350           - Added missing OnXXXFocus overrides, switched to using those
19351             instead of the event handler
19352         * Control.cs:
19353           - Added Parent property for ControlAccessibleObject
19354           - Fixed signatures
19355           - Fixed attributes
19356           - Added ResetBindings()
19357         * ListBindingConverter.cs: Implemented some methods
19358         * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
19359         * ImageList.cs: Implemented basic handle scheme, removed TODOs
19360         * ContainerControl.cs: Fixed signature, now subscribing to the
19361           ControlRemoved event instead of overriding the handler, LAMESPEC
19362         * CurrencyManager.cs: Added missing attribute
19363         * MonthCalendar.cs: Added missing properties
19364
19365 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
19366
19367         * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
19368         
19369 2005-06-06  Gaurav Vaish and Ankit Jain
19370
19371         * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
19372         * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
19373         
19374 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
19375
19376         * Control.cs: fixes CreateParams Width / Height.
19377
19378 2005-06-05  Peter Bartok  <pbartok@novell.com>
19379
19380         * Win32DnD.cs: Removed compilation warnings
19381
19382 2005-06-05  Peter Bartok  <pbartok@novell.com>
19383
19384         * Control.cs (CreateParams): Since we don't know if one of the
19385           properties we use is overridden, lets make sure if we fail accessing
19386           we continue with a backup plan
19387
19388 2005-06-05  Peter Bartok  <pbartok@novell.com>
19389
19390         * Win32DnD.cs:
19391           - Removed debug output
19392           - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
19393             struct
19394           - Plugged resource leak
19395         * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
19396           MS size
19397
19398 2005-06-05  Peter Bartok  <pbartok@novell.com>
19399
19400         * XplatUIWin32.cs: Removed DnD code
19401         * Win32DnD.cs: Implemented drop source and drop target functionality
19402
19403 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
19404
19405         * UpDownBase.cs: remove duplicate addition of event, enable some code
19406         that was commented out.
19407         * NumericUpDown.cs: added missing attributes and Hexadecimal property.
19408         Validate input when a key is pressed. It works fine now for every
19409         combination of Hexadecimal. Only missing some drawing love when sharing
19410         space with other controls.
19411
19412 2005-06-04  Peter Bartok  <pbartok@novell.com>
19413
19414         * Control.cs:
19415           - We need to pass a window for DragDrop, so enable callback events
19416           - Added DnD callback events when being a DragSource
19417         * XplatUI.cs (StartDrag): Added window handle argument
19418         * XplatUIDriver.cs (StartDrag): Added window handle argument
19419         * QueryContinueDragEventArgs: Made fields internally accessible so
19420           drivers can set them
19421         * GiveFeedbackEventArgs: Made fields internally accessible so drivers
19422           can set them
19423
19424 2005-06-03  Jordi Mas i Hernandez <jordi@ximian.com>
19425
19426         * DataGridTextBoxColumn.cs: column text editing
19427         * DataGridTableStyle.cs: Respect columns styles created by the user
19428         * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
19429         * DataGridBoolColumn.cs: bool column editing
19430         * DataGrid.cs: fixes to scrolling, properties, etc
19431         * DataGridTextBox.cs: handle keyboard
19432         * DataGridColumnStyle.cs: fixes
19433
19434 2005-06-02  Jackson Harper  <jackson@ximian.com>
19435
19436         * ImageListStreamer.cs: Somewhat broken implementation of
19437         GetObjectData. The RLE needs some work to match MS properly.
19438
19439 2005-06-02  Jackson Harper  <jackson@ximian.com>
19440
19441         * X11Dnd.cs: Attempting to keep at least one file in MWF
19442         monostyled.
19443
19444 2005-06-02  Peter Bartok  <pbartok@novell.com>
19445
19446         * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
19447           that way
19448
19449 2005-06-02  Peter Bartok  <pbartok@novell.com>
19450
19451         * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
19452         * XplatUI.cs: Added DoDragDrop() method
19453         * XplatUIDriver.cs: Added DoDragDrop() method
19454
19455 2005-06-02  Jackson Harper  <jackson@ximian.com>
19456
19457         * Splitter.cs: Implement BorderStyle.
19458
19459 2005-06-02  Jackson Harper  <jackson@ximian.com>
19460
19461         * XplatUIX11.cs: Tie into the X11Dnd subsystem.
19462         * X11Dnd.cs: New file. A subsystem that handles drag and drop on
19463         X11 using XDND.
19464
19465 2005-06-02  Peter Bartok  <pbartok@novell.com>
19466
19467         * DataObject.cs:
19468           - Added Data setter
19469           - Fixed broken insertion code for SetData, now also
19470             overwrites any existing entry of the same format name
19471         * Hwnd.cs: Added list of pointers that automatically gets
19472           freed when the window is disposed
19473         * XplatUI.cs: Call driver initialization method when loading
19474           a driver
19475         * Control.cs:
19476           - OnDragLeave takes EventArgs, not DragEventArgs
19477           - Added setting of WS_EX_ACCEPTFILES style when dropping is
19478             supported
19479           - Forces style update when drop state changes
19480         * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
19481           not perfect since we cannot (yet) call the IDataObject.GetData()
19482           method, we keep getting 0x80004005 error, dunno why)
19483
19484 2005-06-02  Peter Bartok  <pbartok@novell.com>
19485
19486         * DragEventArgs.cs: Make fields internal so we can cache the
19487           object and re-set the fields from XplatUI
19488
19489 2005-06-02  Jackson Harper  <jackson@ximian.com>
19490
19491         * Control.cs: Add some internal methods so the DnD subsystem can
19492         raise DnD events. Also call into the driver when AllowDrop is set.
19493         * XplatUI.cs:
19494         * XplatUIDriver.cs: New method for setting whether or not a window
19495         is allowed to accept drag and drop messages.
19496                 
19497 2005-06-01  Jordi Mas i Hernandez <jordi@ximian.com>
19498         
19499         * ScrollBar.cs: Make sure that values sent in Scroll events
19500         are always between Maximum and Minimum.
19501
19502 2005-06-01  Marek Safar  <marek.safar@seznam.cz>
19503
19504         * Menu.cs: Call MenuChanged when menuitem visibility has been
19505         changed.
19506         * MenuItem.cs: Rebuild menu when item is (not) visible.
19507         * MainMenu.cs: MainMenu has special MenuChanged.
19508         * Theme.cs: Caption and FrameBorderSize are not fixed.
19509         * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
19510         * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
19511         * XplatUIX11.cs,
19512         * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
19513         * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
19514
19515 2005-05-30  Jackson Harper  <jackson@ximian.com>
19516
19517         * DataFormat.cs: We can't statically initialize this stuff because
19518         it calls into the xplatui and could create a loop. So we lazy init
19519         it.
19520
19521 2005-05-28  Jackson Harper  <jackson@ximian.com>
19522
19523         * Control.cs: Proper implementation of Product(Name/Version).
19524
19525 2005-05-27  Jackson Harper  <jackson@ximian.com>
19526
19527         * DataObject.cs: Dont crash if no data is found.
19528
19529 2005-05-26  Rafael Teixeira  <rafaelteixeirabr@hotmail.com>
19530         * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
19531                 as per status page, guessing it should be set to true
19532
19533 2005-05-26  Jordi Mas i Hernandez <jordi@ximian.com>
19534
19535         * DataGridTextBoxColumn.cs: Draws text and basic text formatting
19536         * DataGridTableStyle.cs: set proper formatting text, def header text
19537         * ThemeWin32Classic.cs: new themable paramaters
19538         * DataGridBoolColumn.cs: paint check box, get data, fixes
19539         * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
19540         * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
19541         * DataGridColumnStyle.cs: fixes
19542         * Theme.cs: new themable paramaters
19543                 
19544 2005-05-26  Peter Bartok  <pbartok@novell.com>
19545
19546         * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
19547
19548 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
19549         * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
19550
19551 2005-05-24  Peter Bartok  <pbartok@novell.com>
19552
19553         * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
19554           Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
19555           Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
19556           FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
19557           NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
19558           ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
19559           DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
19560           AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
19561           DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
19562           StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
19563           missing attributes, etc
19564         * DataGridPreferredColumnWidthTypeConverter.cs: Added
19565
19566 2005-05-24  Peter Bartok  <pbartok@novell.com>
19567
19568         * Help.cs: Added, implemented trivial functions, throws up MessageBox
19569           when user tries to get help
19570         * DataObject.cs, DataFormats.cs, LinkArea.cs,
19571           SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
19572           to suppress warnings
19573         * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
19574           avoid unreachable code warning
19575
19576 2005-05-20  Peter Bartok  <pbartok@novell.com>
19577
19578         * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
19579
19580 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
19581
19582         * DataGridTextBoxColumn.cs: Basic painting methods
19583         * DataGridTableStyle.cs: Set table style in the column
19584         * ThemeWin32Classic.cs: Use Theme for colors
19585         * DataGridDrawingLogic.cs: Implement more drawing
19586         * DataGrid.cs: drawing, theming, enhacements, fixes
19587         * DataGridColumnStyle.cs: fixes, drawing
19588         * Theme.cs: theming for Datagrid
19589
19590 2005-05-20  Peter Bartok  <pbartok@novell.com>
19591
19592         * Cursor.cs: Implemented GetObjectData() method
19593
19594 2005-05-20  Peter Bartok  <pbartok@novell.com>
19595
19596         * Cursors.cs: Added setting of cursor name
19597         * Cursor.cs:
19598           - Implemented constructors
19599           - Implemented Draw and DrawStretched
19600           - Implemented Current property
19601           - Implemented == and != operators
19602           - Implemented Dispose()
19603           - Implemented ToString
19604           - Added missing attributes
19605         * XplatUIX11.cs:
19606           - Added missing reset for OverrideCursor when DoEvents is called
19607           - Fixed creation of cursor, logic was wrong
19608         * XplatUIWin32.cs:
19609           - Added missing reset for OverrideCursor when DoEvents is called
19610           - Fixed creation of cursor, bit arrays were swapped
19611         * Clipboard.cs: Removed obsolete MonoTODO attribute
19612
19613 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
19614
19615         * ComboBox.cs: fixes OnSelectedItemChanged
19616         * ControlBindingsCollection.cs: fixes item range check
19617
19618 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
19619
19620         * UpDownBase.cs:
19621                 - Calc preferred height properly
19622                 - Implement missing properties
19623                 
19624         * NumericUpDown.cs: Implement missing events
19625
19626 2005-05-19  Jackson Harper  <jackson@ximian.com>
19627
19628         * TabControl.cs: New method that resizes the tab pages before
19629         redrawing them. This as needed as the control is double buffered
19630         and sizing will not be recalculated unless ResizeTabPages is
19631         called.
19632         * TabPage.cs: Set base.Text instead of Text in the constructor so
19633         that UpdateOwner does not get called. Use the new Redraw method of
19634         TabControl instead of Refresh so the sizing is recalculated.
19635         * ThemeWin32Classic.cs: Draw the text for button tabs.
19636
19637 2005-05-19  Jackson Harper  <jackson@ximian.com>
19638
19639         * Control.cs: Paint control background images. Fix typo where
19640         PaintControlBackground was not getting called correctly.
19641
19642 2005-05-19  Peter Bartok  <pbartok@novell.com>
19643
19644         * ScrollableControl.cs (DisplayRectangle): Undid my last change until
19645           I can investigate, apparently I broke FileDialog
19646
19647 2005-05-19  Marek Safar  <marek.safar@seznam.cz>
19648
19649         * AxHost.cs: Some simple properties.
19650         * Control.cs: window must be accessible after ctor.
19651         * Form.cs: Added TransparencyKey property.
19652         * TextBoxBase.cs: Implemented Clear. Text property can be null.
19653         * XplatUIWin32.cs: SetBorderStyle implemented.
19654
19655 2005-05-18  Peter Bartok  <pbartok@novell.com>
19656
19657         * DataObject.cs: Entries are not global but particular to the
19658           DataObject, now it behaves that way
19659         * XplatUIWin32.cs: Implemented Clipboard methods
19660         * Clipboard.cs: Implemented
19661         * ScrollableControl.cs (DisplayRectangle): Fixed calculation
19662         * XplatUIOSX.cs: Updated to final clipboard prototypes
19663         * XplatUIX11.cs: Implemented Clipboard methods
19664         * XplatUIDriver.cs: Updated to final clipboard prototypes
19665         * XplatUIStructs.cs:
19666           - Added BITMAPINFOHEADER struct
19667           - Added ClipboardFormats enum
19668         * X11Structs.cs:
19669           - Added ClipboardStruct
19670           - Added Atom enum items for clipboard types
19671           - Fixed atom types for Selection event structures
19672         * DataFormats.cs:
19673           - Added internal properties and methods for drivers to enumerate
19674             all known formats
19675           - Switched initialization method to allow drivers to assign their
19676             own IDs even for the MS predefined clipboard IDs
19677         * XplatUI.cs: Updated to final clipboard interface
19678
19679 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
19680         * PropertyGridView.cs: Fixed compiler warnings.
19681
19682 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
19683         * PropertyGrid.cs: Added some event calls
19684         * PropertyGridView.cs: Change drawing code to use double buffering
19685         * PropertyGridTextBox.cs: Changed Text property name
19686         * GridItem.cs: Added Bounds property.
19687         * GridEntry.cs: Added Bounds property.
19688
19689 2005-05-17  Lluis Sanchez Gual  <lluis@novell.com>
19690
19691         * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
19692         since GetType() may not return the correct type if the object is
19693         a remoting proxy.
19694
19695 2005-05-17  Jordi Mas i Hernandez <jordi@ximian.com>
19696
19697         * TreeNodeCollection.cs: fixes get/set item ranges
19698         
19699 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
19700
19701         * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
19702                 
19703 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
19704
19705         * ComboBox.cs: Fix item range comparation
19706         * ListView.cs: Fix item range comparation
19707
19708 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
19709
19710         * FontDialog.cs:
19711           - Clear example panel when OnPaint is called
19712           - Better solution for displaying the example panel text
19713           - Select default indexes in the ListBoxes
19714
19715 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
19716
19717         * XplatUIOSX.cs: Avoid painting into invisible views.  Fixes #74926
19718
19719 2005-05-11  Peter Bartok  <pbartok@novell.com>
19720
19721         * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
19722         * SelectionRangeConverter.cs: Implemented
19723         * PropertyGrid.cs: Fixed attribute value
19724         * Control.cs:
19725           - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
19726           - Added Sebastien Pouliot's CAS Stack Propagation fixes
19727         * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
19728           that's common to all drivers. First methods to go there are
19729           Sebastien Pouliot's CAS Stack Propagation helper methods
19730         * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
19731           Sebastien Pouliot for CAS Stack Propagation
19732
19733 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
19734
19735         * OSXStructs.cs:
19736           XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
19737
19738 2005-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
19739
19740         * DataGridTextBoxColumn.cs: fixed some members
19741         * GridColumnStylesCollection.cs: indexed column is case insensitive
19742         * DataGridTableStyle.cs: fixes
19743         * ThemeWin32Classic.cs: add new theme parameter
19744         * Theme.cs: add new theme parameter
19745         * DataGridDrawingLogic.cs: Datagrid's drawing logic
19746         * DataGrid.cs: fixes, new internal properties, etc.
19747         * DataGridColumnStyle.cs: allows to set grid value
19748         *
19749
19750 2005-05-10  Peter Bartok  <pbartok@novell.com>
19751
19752         * AccessibleObject.cs:
19753           - Removed MonoTODO attribute on help, method is correct
19754           - Fixed Bounds property
19755         * AxHost.cs: Moved MonoTODO
19756         * ButtonBase.cs: Now setting AccessibleObject properties
19757         * RadioButton.cs: Setting proper AccessibleObject role
19758         * CheckBox.cs: Setting proper AccessibleObject role
19759         * ControlBindingsCollection.cs: Added properties, methods and attributes
19760         * DataFormats.cs: Fixed awkward internal API, and changed to enable
19761           userdefined DataFormats.Format items as well
19762         * ListControl.cs: Removed data_member from the public eye
19763         * OpenFileDialog.cs:
19764           - Made class sealed
19765           - Added missing attributes
19766         * SaveFileDialog.cs: Added missing attributes
19767         * ImageListStreamer.cs: Fixed code that caused warnings
19768         * LinkLabel.cs: Removed unreachable code
19769         * TreeView.cs: Fixed code that caused warnings
19770         * PropertyGridView.cs: Fixed code that caused warnings
19771         * GridColumnStylesCollection.cs: Added missing attributes
19772         * GridTableStylesCollection: Added missing attribute
19773         * PropertyManager: Added .ctor
19774         * SecurityIDType: Added
19775         * DataObject.cs: Implemented class
19776         * LinkArea.cs: Added missing attribute
19777
19778 2005-05-11  Jordi Mas i Hernandez <jordi@ximian.com>
19779
19780         * RadioButton.cs: call base method to allow to fire OnClick event
19781         * UpDownBase.cs: OnMouseUp call base method
19782         * CheckedListBox.cs: call base method before returning
19783         * TrackBar.cs: call base method before returning
19784         
19785
19786 2005-05-10  Peter Bartok  <pbartok@novell.com>
19787
19788         * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
19789           for messages
19790
19791 2005-05-10  Peter Bartok  <pbartok@novell.com>
19792
19793         * DataFormats.cs: Implemented
19794         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
19795           XplatUIX11.cs: Added Clipboard APIs
19796         * XplatUIWin32.cs: Implemented Clipboard APIs
19797         * FolderBrowserDialog.cs: Added missing event, attributes
19798
19799 2005-05-10  Jordi Mas i Hernandez <jordi@ximian.com>
19800
19801         * CheckBox.cs: call base method to allow to fire OnClick event
19802
19803 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
19804
19805         * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
19806
19807 2005-05-06  Peter Bartok  <pbartok@novell.com>
19808
19809         * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
19810         * Screen.cs: Implemented
19811         * HelpNavigator.cs: Added
19812         * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
19813           property
19814         * HelpProvider.cs: Implemented all we can do until we have a CHM
19815           help library (which means that "What's This" does work now)
19816
19817 2005-05-06  Jackson Harper  <jackson@ximian.com>
19818
19819         * XplatUIX11.cs: Fix waking up the main loop.
19820                 
19821 2005-05-05  Peter Bartok  <pbartok@novell.com>
19822
19823         * XplatUI.cs: Updated revision
19824         * Form.cs: Removed enless loop
19825         * GroupBox.cs (OnPaint): Added call to base.OnPaint()
19826         * Label.cs (OnPaint): Added call to base.OnPaint()
19827         * ToolTip.cs: Made ToolTipWindow reusable for other controls
19828         * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
19829         * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
19830         * AxHost.cs: Added
19831         * ButtonBase.cs: Moved base.OnPaint() call to end of method
19832         * ThemeWin32Classic.cs: Replaced references to ToolTip with references
19833           to ToolTip.ToolTipWindow for drawing and size methods; this allows
19834           reuse of ToolTipWindow by other controls
19835         * SizeGrip.cs: Moved base.OnPaint() call to end of method
19836         * XplatUIX11.cs: Now clipping drawing area (experimental)
19837         * PictureBox.cs: Moved base.OnPaint() call to end of method
19838         * Theme.cs: Fixed ToolTip abstracts to match new format
19839         * ErrorProvider.cs: Implemented
19840
19841 2005-05-05  Jordi Mas i Hernandez <jordi@ximian.com>
19842
19843         * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
19844         * LinkLabel.cs:
19845                 - Adds cursors
19846                 - Handles focus
19847                 - Implements LinkBehavior
19848                 - Fixes many issues
19849
19850 2005-05-03  Jackson Harper  <jackson@ximian.com>
19851
19852         * ListView.cs: Calculate the scrollbar positioning on resize and
19853         paint, so they get put in the correct place.
19854
19855 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
19856
19857         * ColorDialogs.cs: The small color panels are now handled by
19858           SmallColorControl. This fixes drawing of the focus rectangle
19859           and adds a 3D border.
19860
19861 2005-05-03  Peter Bartok  <pbartok@novell.com>
19862
19863         * Control.cs: Modified version of Jonathan Chamber's fix for
19864           double-buffering
19865
19866 2005-05-03  Jackson Harper  <jackson@ximian.com>
19867
19868         * ListView.cs: Remove redraw variable. Control now handles whether
19869         or not a redraw needs to be done, and will only raise the paint
19870         event if redrawing is needed.
19871
19872 2005-05-03  Jackson Harper  <jackson@ximian.com>
19873
19874         * Splitter.cs: No decorations for the splitter form. Cache the
19875         hatch brush.
19876
19877 2005-05-03  Jackson Harper  <jackson@ximian.com>
19878
19879         * TreeView.cs: Use dashed lines to connect nodes. Use the
19880         ControlPaint method for drawing the focus rect instead of doing
19881         that in treeview.
19882
19883 2005-05-02  Peter Bartok  <pbartok@novell.com>
19884
19885         * LinkLabel.cs: Fixed the fixes from r43566 and 43521
19886
19887 2005-04-29  Jackson Harper  <jackson@ximian.com>
19888
19889         * ThemeWin32Classic.cs: Don't clear the GC that will clear the
19890         entire image buffer. Just clear the clipping rectangle.
19891
19892 2005-04-29  Jackson Harper  <jackson@ximian.com>
19893
19894         * ThemeWin32Classic.cs: Don't draw list view items that are
19895         outside the clipping rectangle.
19896
19897 2005-04-29  Jordi Mas i Hernandez <jordi@ximian.com>
19898
19899         * ListBox.cs: added horizontal item scroll
19900
19901 2005-04-29  Jackson Harper  <jackson@ximian.com>
19902
19903         * ThemeWin32Classic.cs: Remove some old debug code that was
19904         causing flicker with the new double buffering code.
19905
19906 2005-04-29  John BouAntoun  <jba-mono@optusnet.com.au>
19907
19908         * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
19909         behave like combobox and comboboxlist (still not sure if this is
19910         correct though).
19911
19912 2005-04-28  Jackson Harper  <jackson@ximian.com>
19913
19914         * ThemeWin32Classic.cs: Don't fill the middle of progress
19915         bars. This fills areas outside of the clip bounds that don't need
19916         to be filled.
19917
19918 2005-04-28  Jackson Harper  <jackson@ximian.com>
19919
19920         * Control.cs: Don't expose functionality to touch the image buffers.
19921         * ProgressBar.cs:
19922         * ListView.cs: We do not need to (and no longer can) manipulate
19923         the image buffers directly. All of this is handled by Control.
19924
19925 2005-04-28  Peter Bartok  <pbartok@novell.com>
19926
19927         * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
19928           RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
19929           RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
19930
19931 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
19932
19933         * Combobox:
19934                 - Adjust control's height for non-simple comboboxes (bug fix)
19935                 - Remove dead code
19936         * MenuAPI.cs: remove unused var
19937         * ScrollBar.cs: remove unsed var
19938                  
19939         * ListBox.cs: unselect items when clearing
19940
19941 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
19942
19943         * ListControl.cs: honors OnPositionChanged and default Selected Item
19944         * ListBox.cs: unselect items when clearing
19945
19946 2005-04-27  Jackson Harper  <jackson@ximian.com>
19947
19948         * X11Keyboard.cs: Initialize a default keyboard and give a warning
19949         if a "correct" keyboard is not found. This will make us not crash,
19950         but might give some users bad keyboard layouts...seems to be the
19951         same thing rewind does.
19952
19953 2005-04-27  Jackson Harper  <jackson@ximian.com>
19954
19955         * BindingManagerBase.cs: Attach the current/position changed
19956         handlers to their respective events.
19957
19958 2005-04-27  Jackson Harper  <jackson@ximian.com>
19959
19960         * Control.cs: Make sure that the first WM_PAINT does a full draw,
19961         not just a blit.
19962         * ThemeWin32Classic.cs: Don't fill the background for picture
19963         boxes. This could overright user drawing.
19964         * ComboBox.cs: Just fill the clipping rect not the entire client
19965         rect when drawing the background. This prevents pieces of the
19966         image buffer from getting overwritten and is theoretically faster.
19967
19968 2005-04-26  Jordi Mas i Hernandez <jordi@ximian.com>
19969
19970         * ComboBox.cs: Databinding support fixes, fire missing events
19971         * ListControl.cs: implement missing methods and properties, fixes
19972         * ThemeWin32Classic.cs: Databiding support on Drawing
19973         * CheckedListBox.cs: Databinding support fixes, fire missing events
19974         * ListBox.cs: Databinding support fixes, fire missing events
19975         
19976 2005-04-25  Peter Bartok  <pbartok@novell.com>
19977
19978         * LinkLabel.cs: Length of LinkArea is not allowed to be negative
19979
19980 2005-04-25  Jackson Harper  <jackson@ximian.com>
19981
19982         * TreeView.cs: Use the horizontal scrollbars height not width when
19983         determining how much of the client area is available.
19984
19985 2005-04-25  Jackson Harper  <jackson@ximian.com>
19986
19987         * Control.cs: Double buffering is handled differently now. As per
19988         the spec, the extra buffer is created in the WM_PAINT message and
19989         passed down to the control's drawing code.
19990         * GroupBox.cs:
19991         * Label.cs:
19992         * CheckBox.cs:
19993         * ProgressBar.cs:
19994         * RadioButton.cs:
19995         * ColorDialog.cs:
19996         * ComboBox.cs:
19997         * PropertyGridView.cs:
19998         * UpDownBase.cs:
19999         * MessageBox.cs:
20000         * MenuAPI.cs:
20001         * ListView.cs:
20002         * ButtonBase.cs:
20003         * SizeGrip.cs:
20004         * ScrollBar.cs:
20005         * ListBox.cs:
20006         * TrackBar.cs:
20007         * ToolBar.cs:
20008         * PictureBox.cs:
20009         * DateTimePicker.cs:
20010         * StatusBar.cs:
20011         * TreeView.cs: Update to new double buffering system.
20012         * MonthCalendar.cs: Uncomment block, as Capture is now
20013         working. Update to new double buffering
20014         * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
20015         * PaintEventArgs.cs: New internal method allows us to set the
20016         graphics object. This is used for double buffering.
20017         * ThemeWin32Classic.cs: Give the picture box drawing code a clip
20018         rectangle. The internal paint_area var has been removed from
20019         StatusBar. The clipping rect should be used instead.
20020         * Theme.cs: Give the PictureBox drawing method a clipping rect.
20021         * TabPage.cs: The RefreshTabs method was removed, so just call the
20022         tab controls Refresh method now.
20023         * TabControl.cs: Update to new double buffering. Make sure the
20024         handle is created before sizing the tab pages, otherwise we will
20025         get stuck in a loop.
20026
20027 2005-04-24  Borja Sanchez Zamorano <borsanza@gmail.com>
20028
20029         * LinkLabel.cs: Fix typo, bug #74719; patch
20030           from Borja Sanchez Zamorano
20031
20032 2005-04-22  Jackson Harper  <jackson@ximian.com>
20033
20034         * TreeNode.cs: Implement Handle stuff.
20035         * TreeView.cs: Utility methods so nodes can get/lookup by handle.
20036
20037 2005-04-22  Jordi Mas i Hernandez <jordi@ximian.com>
20038
20039         * DataGridTextBoxColumn.cs: call base constructors, fixes
20040         * GridColumnStylesCollection.cs: missing events, methods, and functionality
20041         * GridTableStylesCollection.cs: fixes, check duplicate mapping names
20042         * DataGridTableStyle.cs: implements create default column styles
20043         * DataGridBoolColumn.cs: which types can handle
20044         * DataGrid.cs: missing methods, fixes, new functionality
20045         * DataGridColumnStyle.cs: fixes
20046
20047 2005-04-20  Alexander Olk  <xenomorph2@onlinehome.de>
20048         * FolderBrowserDialog.cs:
20049         - Use a thread to fill the TreeView
20050         - Adjusted some sizes
20051
20052 2005-04-19  Peter Bartok  <pbartok@novell.com>
20053
20054         * LinkLabel.cs: (Re-)create the pieces when setting the Text
20055           property. Fixes #74360.
20056
20057 2005-04-19  Jackson Harper  <jackson@ximian.com>
20058
20059         * XEventQueue.cs: Lock when getting the lockqueue size.
20060         * PictureBox.cs: Call base OnPaint
20061         
20062 2005-04-19  Peter Bartok  <pbartok@novell.com>
20063
20064         * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
20065           messages were no longer being processed (this broke BeginInvoke)
20066
20067           
20068 2005-04-18  Jackson Harper  <jackson@ximian.com>
20069
20070         * TreeView.cs: buglet that caused node images to get drawn
20071         regardless of whether or not they were in the clipping rectangle.
20072
20073 2005-04-18  Jackson Harper  <jackson@ximian.com>
20074
20075         * CurrencyManager.cs: There are four rules for GetItemProperties:
20076         - If the type is an array use the element type of the array
20077         - If the type is a typed list, use the type
20078         - If the list contains an Item property that is not an object, use
20079         that property
20080         - use the first element of the list if there are any elements in
20081         the list.
20082         
20083 2005-04-17  Jackson Harper  <jackson@ximian.oom>
20084
20085         * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
20086         click. This handles offsets for scrolling properly and reduces
20087         memory. Also fixed GetNode to not offset now that TopNode works
20088         properly.
20089         * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
20090         
20091 2005-04-17  Jackson Harper  <jackson@ximian.com>
20092
20093         * CursorConverter.cs: Initial implementation.
20094
20095 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
20096
20097         * ListControl.cs: work towards complex data binding support on ListControl
20098         * CurrencyManager.cs: work towards complex data binding support on ListControl
20099         * ListBox.cs: work towards complex data binding support on ListControl
20100
20101
20102 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
20103
20104         * GridTableStylesCollection.cs: fixes name and constructor
20105         * DataGridTableStyle.cs: fixes
20106         * DataGridBoolColumn.cs: fixes names and constructors
20107         * DataGrid.cs: define methods and properties. Some init implementations
20108         * DataGridCell.cs: define methods and properties. Some init implementations
20109         * GridTablesFactory.cs: Define methods and properties
20110
20111 2005-04-15  Geoff Norton  <gnorton@customerdna.com>
20112
20113         * XplatUIOSX.cs:  Handle proper mouse tracking even if the current
20114         graphics port changes.  We still want the coordinates in global screen
20115         coordinates.
20116
20117 2005-04-14  Jackson Harper  <jackson@ximian.com>
20118
20119         * TreeView.cs: Handle clicks when plus minus is disabled. Don't
20120         check plus minus or checkbox clicks unless those features are enabled.
20121
20122 2005-04-14  Jackson Harper  <jackson@ximian.com>
20123
20124         * TreeView.cs: Add methods for setting the top and bottom visible
20125         nodes. TreeNode::EnsureVisible uses these methods.
20126         * TreeNode.cs: Implement EnsureVisible
20127
20128 2005-04-13  Jordi Mas i Hernandez <jordi@ximian.com>
20129
20130         * Form.cs: Pospone menu assignation if the window has not been created yet
20131         * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
20132         size and position
20133
20134 2005-04-12  Jackson Harper  <jackson@ximian.com>
20135
20136         * TreeView.cs: Set the TopNode properly when scrolling
20137         occurs. This has the added benifit of reducing the amount of
20138         walking that needs to be done when drawing. Also removed an old
20139         misleading TODO.
20140         * OpenTreeNodeEnumerator.cs: Fix moving backwards.
20141         
20142 2005-04-11  Jordi Mas i Hernandez <jordi@ximian.com>
20143
20144         * Timer.cs: fixes interval setting when the timer is already enabled
20145         
20146 2005-04-10  Alexander Olk  <xenomorph2@onlinehome.de>
20147
20148         * FolderBrowserDialog.cs: First approach
20149
20150 2005-04-09  Peter Bartok  <pbartok@novell.com>
20151
20152         * FolderBrowserDialog: Added
20153
20154 2005-04-07  Jordi Mas i Hernandez <jordi@ximian.com>
20155
20156         * LinkLabel.cs: move drawing code into the theme
20157         * ThemeWin32Classic.cs: drawing code and painting background bugfix
20158         * Theme.cs: define DrawLinkLabel method
20159
20160 2005-04-05  Jackson Harper  <jackson@ximian.com>
20161
20162         * BindingContext.cs: Use weak references so these bad actors don't
20163         stay alive longer then they need to.
20164
20165 2005-04-05  Jackson Harper  <jackson@ximian.com>
20166
20167         * ListControl.cs: Basic implementation of complex databinding.
20168         * ComboBox.cs:
20169         * ListBox.cs: Add calls to ListControl databinding methods.
20170
20171 2005-04-05  Alexander Olk  <xenomorph2@onlinehome.de>
20172
20173         * FileDialog.cs:
20174           - Don't change PopupButtonState to Normal when the
20175             PopupButton gets pressed several times.
20176           - Renamed ButtonPanel to PopupButtonPanel
20177
20178 2005-04-05  Jordi Mas i Hernandez <jordi@ximian.com>
20179
20180         * ColorDialog.cs: Use cached objects instead of creating them
20181         * LinkLabel.cs: Use cached objects instead of creating them
20182         * Splitter.cs: Use cached objects instead of creating them
20183         * FontDialog.cs: Use cached objects instead of creating them
20184         * PropertyGridView.cs: Use cached objects instead of creating them
20185         * MessageBox.cs: Use cached objects instead of creating them
20186         * FileDialog.cs: Use cached objects instead of creating them
20187         * ThemeWin32Classic.cs: Use cached objects instead of creating them
20188         * TreeView.cs: Use cached objects instead of creating them
20189         
20190 2005-04-04  Jordi Mas i Hernandez <jordi@ximian.com>
20191
20192         * Control.cs: use Equals to compare the font since no == op
20193         * ScrollBar.cs: use Equals to compare the font since no == op
20194
20195 2005-04-04  Alexander Olk  <xenomorph2@onlinehome.de>
20196
20197         * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
20198
20199 2005-04-01  Jackson Harper  <jackson@ximian.com>
20200
20201         * Binding.cs: Implement IsBinding.
20202         * BindingManagerBase.cs:
20203         * PropertyManager.cs:
20204         * CurrencyManager.cs: Add IsSuspended property.
20205
20206 2005-04-01  Jackson Harper  <jackson@ximian.com>
20207
20208         * Binding.cs: Had some IsAssignableFrom calls backwards.
20209
20210 2005-04-01  Jackson Harper  <jackson@ximian.com>
20211
20212         * Binding.cs: Handle null data members when pulling data.
20213         * PropertyManager.cs: Handle the data member being a property that
20214         does not exist.
20215
20216 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
20217
20218         * DataGridTextBoxColumn.cs: fixes signature
20219         * DataGrid.cs: calls right constructor
20220
20221 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
20222
20223         * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
20224         * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
20225         * GridTableStylesCollection.cs: implements GridTableStylesCollection
20226         * DataGridTableStyle.cs: implements DataGridTableStyle
20227         * DataGridBoolColumn.cs: implements DataGridBoolColumn
20228         * DataGridTextBox.cs: implements DataGridTextBox
20229         * DataGridColumnStyle.cs: implements DataGridColumnStyle
20230
20231 2005-03-31  Alexander Olk  <xenomorph2@onlinehome.de>
20232
20233         * FileDialog.cs: Added simple PopupButton class for ButtonPanel
20234
20235 2005-03-29  Peter Bartok  <pbartok@novell.com>
20236
20237         * Application.cs:
20238           - Properly implemented CompanyName property
20239           - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
20240             returns a path that includes CompanyName, ProductName and
20241             Version (fixes bug #70330)
20242
20243 2005-03-29  Stefan Buehler  <sbuehler@gmx.ch>
20244
20245         * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
20246           fixes bug #72588.
20247
20248 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
20249
20250         * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
20251         
20252           - Added ReadOnly CheckBox
20253           - Further refactoring: moved some code from Open-/SaveFileDialog
20254             to FileDialog
20255
20256 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
20257
20258         * OpenFileDialog.cs: Fixed CheckFileExists
20259         * FileDialog.cs:
20260           Moved FileView and DirComboBox outside FileDialog class.
20261           They can now be used outside FileDialog
20262
20263 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
20264
20265         * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
20266         * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
20267
20268 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
20269
20270         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
20271           - Added missing CreatePrompt property in SaveDialog
20272           - Overall SaveDialog handling should be better now
20273           - Added non standard ShowHiddenFiles property
20274           - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
20275           - Added InitialDirectory and RestoreDirectory support
20276
20277 2005-03-26  Alexander Olk  <xenomorph2@onlinehome.de>
20278
20279         * FileDialog.cs: Made dirComboBox usable
20280
20281 2005-03-24  Alexander Olk  <xenomorph2@onlinehome.de>
20282
20283         * FileDialog.cs: Added Filter support (case sensitiv)
20284
20285 2005-03-24  Jackson Harper  <jackson@ximian.com>
20286
20287         * TabControl.cs: Need a couple more pixels for the lines.
20288
20289 2005-03-23  Jackson Harper  <jackson@ximian.com>
20290
20291         * TabControl.cs: Give the tab page focus when it is selected.
20292
20293 2005-03-23  Jackson Harper  <jackson@ximian.com>
20294
20295         * TabControl.cs: Account for the drawing of tabs borders when
20296         invalidating. If the slider was clicked dont do click detection on
20297         the tabs.
20298
20299 2005-03-23  Jackson Harper  <jackson@ximian.com>
20300
20301         * TabControl.cs: Fix typo, emilinates an unneeded expose event.
20302
20303 2005-03-22  Jonathan Chambers  <jonathan.chambers@ansys.com>
20304
20305         * CategoryGridEntry.cs: Added
20306         * GridItem.cs: Added helper properties
20307         * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
20308         * GridEntry.cs: Updated code for collection
20309         * PropertyGrid.cs: Cleaned up some formatting
20310         * PropertyGridView.cs: Added drop down functionality for enums.
20311         * GridItemCollection.cs: Added enumerator logic
20312         * PropertyGridEntry.cs: Added
20313
20314 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
20315
20316         * FileDialog.cs:
20317           - Removed unnecessary commented code
20318           - Fixed handling for entering the filename manually in the combobox
20319
20320 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
20321
20322         * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
20323
20324 2005-03-18  Peter Bartok  <pbartok@novell.com>
20325
20326         * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
20327           them being touching the border
20328
20329 2005-03-18  Peter Bartok  <pbartok@novell.com>
20330
20331         * TextControl.cs: Quick hack to center text better
20332
20333 2005-03-18  Peter Bartok  <pbartok@novell.com>
20334
20335         * ControlPaint.cs:
20336           - Don't throw NotImplemented exceptions, just print a notice once
20337             instead (requested by Miguel). This makes running existing SWF
20338             apps a bit easier
20339         * Control.cs:
20340           - Commented out Drag'N'Drop XplatUI call (no driver support yet)
20341           - Added context menu trigger on right click
20342         * Panel.cs: Trigger invalidate on resize
20343         * StatusBar.cs:
20344           - Removed old double-buffer drawing
20345           - Added ResizeRedraw style to force proper update of statusbar
20346         * ListView.cs:
20347           - Removed debug output
20348         * ThemeWin32Classic.cs:
20349           - Fixed drawing of status bar, now draws Text property if there
20350             are no defined panels
20351
20352 2005-03-18  Jackson Harper  <jackson@ximian.com>
20353
20354         * ImageList.cs: When the image stream is set pull all the images
20355         from it.
20356         * ImageListStreamer.cs: Implement reading image list streams.
20357
20358 2005-03-18  Peter Bartok  <pbartok@novell.com>
20359
20360         * ThemeWin32Classic.cs (DrawPictureBox):
20361           - Fixed calculations for centered drawing
20362           - Fixed drawing for normal mode, not scaling the image on normal
20363
20364 2005-03-18  Peter Bartok  <pbartok@novell.com>
20365
20366         * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
20367           textbox
20368         * FileDialog.cs:
20369           - Made Open/Save button the accept button for FileDialog
20370           - Tied the cancel button to the IButtonControl cancel button
20371           - Save/Open now properly builds the pathname
20372           - Now handles user-entered text
20373           - Preventing crash on right-click if no item is selected
20374           - Fixed Text property, now uses contents of textbox
20375           - Fixed SelectedText property, now just returns the text part that
20376             is selected in the text box
20377
20378 2005-03-18  Jackson Harper  <jackson@ximian.com>
20379
20380         * ThemeWin32Classic.cs: Use the proper func for drawing the focus
20381         rect, make sure to de-adjust the interior rect after drawing the
20382         tab text.
20383
20384 2005-03-18  Peter Bartok  <pbartok@novell.com>
20385
20386         * MenuAPI.cs: Remove menu *before* executing selected action to
20387           prevent the menu from 'hanging around'
20388           
20389 2005-03-17  Geoff Norton  <gnorton@customerdna.com>
20390
20391         * XplatUIOSX.cs: Implemented WorkingArea property
20392
20393 2005-03-17  Peter Bartok  <pbartok@novell.com>
20394
20395         * XplatUIX11.cs: Fixed menu coord calculations
20396         * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
20397           for calculating offsets
20398
20399 2005-03-17  Peter Bartok  <pbartok@novell.com>
20400
20401         * Hwnd.cs: Do not consider menu presence for default client
20402           rectangle location/size
20403         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
20404           XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
20405           translation functions
20406         * FileDialog.cs: Fixed (what I presume is a) typo
20407
20408 2005-03-17  Jonathan Gilbert  <logic@deltaq.org>
20409
20410         * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
20411           X access (avoids X-Async errors)
20412
20413 2005-03-16  Jackson Harper  <jackson@ximian.com>
20414
20415         * TabControl.cs: Raise the SelectedIndexChanged event.
20416
20417 2005-03-16  Alexander Olk  <xenomorph2@onlinehome.de>
20418
20419         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
20420           - Removed vertical ToolBar and replaced it with a custom panel
20421             (desktop and home button already work)
20422           - Added Help button (some controls get resized or relocated then)
20423           - Draw correct text depending on Open or Save.
20424           - Fixed some typos...
20425
20426 2005-03-16  Jordi Mas i Hernandez <jordi@ximian.com>
20427
20428         * ScrollBar.cs:
20429           - Only change Maximum and Minimum when need it (bug fix)
20430
20431 2005-03-15  Peter Bartok  <pbartok@novell.com>
20432
20433         * Form.cs: Use Handle for icon, to trigger creation if
20434           the window does not yet exist
20435         * Control.cs:
20436           - CanSelect: Slight performance improvement
20437           - Focus(): Preventing possible recursion
20438           - Invalidate(): Removed ControlStyle based clear flag setting
20439           - WM_PAINT: fixed logic for calling OnPaintBackground
20440           - WM_ERASEBKGND: Fixed logic, added call to new driver method
20441             EraseWindowBackground if the control doesn't paint background
20442         * XplatUIWin32.cs:
20443           - Moved EraseWindowBackground() method to internal methods
20444           - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
20445             is sent via SendMessage on BeginPaint call on Win32
20446         * XplatUIX11.cs:
20447           - Added EraseWindowBackground() method
20448           - No longer sends WM_ERASEBKGND on .Expose, but on call to
20449             PaintEventStart, which more closely matches Win32 behaviour
20450           - Fixed Invalidate() call, now updates new ErasePending Hwnd property
20451           - Fixed SetFocus() to properly deal with client and whole windows
20452         * Hwnd.cs: Added ErasePending property
20453         * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
20454         * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
20455
20456 2005-03-12  Geoff Norton  <gnorton@customerdna.com>
20457
20458         * XplatUIOSX.cs:
20459           - Fix hard loop when timers exist.
20460           - Fix bugs with middle and right click for 3 button mice.
20461
20462 2005-03-11  Peter Bartok  <pbartok@novell.com>
20463
20464         * XplatUIX11.cs:
20465           - get_WorkingArea: Need to call X directly, GetWindowPos only
20466             returns cached data now
20467           - Added sanity check to GetWindowPos hwnd usage
20468
20469 2005-03-11  Jackson Harper  <jackson@ximian.com>
20470
20471         * BindingManagerBase.cs: This method isn't used anymore as
20472         PullData now updates the data in the control.
20473
20474 2005-03-11  Jordi Mas i Hernandez <jordi@ximian.com>
20475
20476         * Form.cs: fixes menu drawing on X11
20477         * MenuAPI.cs:  fixes menu drawing on X11
20478
20479 2005-03-11  Peter Bartok  <pbartok@novell.com>
20480
20481         * Control.cs: Changed OnCreateControl behaviour based on a suggestion
20482           from Jonathan Gilbert; should fix bug #73606
20483         * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
20484           in Screen coordinates. Thanks, Jordi.
20485         * Form.cs: Added missing attribute
20486
20487 2005-03-11  Peter Bartok  <pbartok@novell.com>
20488
20489         * Form.cs:
20490           - Rudimentary Mdi support
20491           - Removed outdated FormParent code
20492           - Implemented lots of missing properties and methods, still missing
20493             transparency support
20494           - Added missing attributes
20495           - Implemented support for MaximumBounds
20496           - Added firing of various events
20497         * XplatUI.cs: Added SetIcon() method
20498         * XplatUIDriver.cs: Added SetIcon() abstract
20499         * XplatUIOSX.cs: Stubbed out SetIcon() method
20500         * XplatUIX11.cs:
20501           - Implemented SetIcon() support
20502           - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
20503           - Switched to unix line endings
20504         * XplatUIWin32.cs:
20505           - Made POINT internal so for can access it as part of MINMAX
20506           - Implemented SetIcon() support
20507           - Implemented support for CLIENTCREATESTRUCT (but might have to drop
20508             native Mdi support again, might have to go managed)
20509         * Control.cs: Now fires the StyleChanged event
20510         * MdiClient.cs: Added; still mostly empty
20511
20512 2005-03-10  Peter Bartok  <pbartok@novell.com>
20513
20514         * SaveFileDialog.cs: Added emtpy file
20515
20516 2005-03-08  Peter Bartok  <pbartok@novell.com>
20517
20518         * Control.cs: Fixed bug #73190; now invokes CreateControl (which
20519           in turn triggers OnCreateContro) when creating a handle for the
20520           first time.
20521         * TextControl.cs: Fixed endless loop in certain cases when
20522           replacing the current selection
20523
20524 2005-03-08  Jordi Mas i Hernandez <jordi@ximian.com>
20525
20526         * ScrollBar.cs:
20527           - Honors NewValue changes in Scroll events allowing apps to change it
20528           - Adds First and Last Scroll events
20529           - Fixes Thumb events
20530
20531 2005-03-07  Peter Bartok  <pbartok@novell.com>
20532
20533         * Hwnd.cs: Added DefaultClientRectangle property
20534         * XplatUI.cs: Now using the X11 driver Where() method, which provides
20535           more detailed debug information
20536         * XplatUIX11.cs:
20537           - Fixed size-change feedback loop, where we would pull an old size
20538             off the queue and mistakenly change our window's size to an
20539             earlier value
20540           - Now compressing ConfigureNotify events, to reduce looping and
20541             redraw issues
20542         * TextBoxBase.cs: Preventing crash when no text is set and ToString()
20543           is called
20544
20545 2005-03-07  Jackson Harper  <jackson@ximian.com>
20546
20547         * Binding.cs: Push data pushes from data -> property. Check if the
20548         property is readonly when attempting to set it.
20549
20550 2005-03-07  Jackson Harper  <jackson@ximian.com>
20551
20552         * Binding.cs: Format and parse data correctly. Use ASsignableFrom
20553         instead of IsSubclassOf. Pulling data now sets the value on the
20554         control.
20555         * PropertyManager.cs:
20556         * CurrencyManager.cs: Just need to pull data when updating now,
20557         because PullData will set the value on the control.
20558
20559 2005-03-04  Jackson Harper  <jackson@ximian.com>
20560
20561         * Binding.cs: Implement data type parsing and converting on pulled
20562         data. TODO: Are there more ways the data can be converted?
20563
20564 2005-03-04  Jackson Harper  <jackson@ximian.com>
20565
20566         * Binding.cs: Support <Property>IsNull checks. Also bind to the
20567         controls Validating method so we can repull the data when the
20568         control loses focus.
20569
20570 2005-03-03  Jordi Mas i Hernandez <jordi@ximian.com>
20571
20572         * ColumnHeader.cs:
20573           - Fixes null string format
20574           
20575         * ListView.cs:
20576           - Adds enum type checks
20577           - Fixes redrawing and recalc need after changing some properties
20578           - Fixes on focus_item set after the event
20579           - Fixes adding columns after the control has been created
20580           
20581         * ThemeWin32Classic.cs:
20582           - Fixes CheckBox focus rectangle
20583           - Fixes ColumnHeader drawing
20584
20585
20586 2005-03-03  Jackson Harper  <jackson@ximian.com>
20587
20588         * Binding.cs: Bind to <Property>Changed events so we can detect
20589         when properties are changed and update the data.
20590
20591 2005-03-02  Jordi Mas i Hernandez <jordi@ximian.com>
20592
20593         * ImageList.cs:
20594           - Changes 32-bit pixel format to Format32bppArgb to allow transparency
20595           - Fixes ImageList constructor with ImageList container
20596           - Fixes image scaling (wrong parameters at DrawImage)
20597
20598 2005-02-02  Jackson Harper  <jackson@ximian.com>
20599
20600         * Binding.cs: Make property searches case-insensitive. Eliminate
20601         some duplicated code.
20602
20603 2005-03-01  Jordi Mas i Hernandez <jordi@ximian.com>
20604
20605         * ComboBox.cs:
20606                 - Handle focus event
20607                 - Fix scrollbar events
20608                 - Discard highlighted item if remove it
20609                 - Fixes SelectedItem with strings
20610
20611 2005-03-01  Peter Bartok  <pbartok@novell.com>
20612
20613         * Control.cs:
20614           - Fixed Visible property, now follows (once again) parent chain
20615             to return false if any control in the chain is visible=false
20616           - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
20617           - Fixed several places where is_visible instead of Visible was used
20618           - Implemented FIXME related to focus selection when setting focused
20619             control to be invisible
20620
20621         * XplatUIWin32.cs: Now using proper method to find out if window is
20622           visible. Thanks to Jordi for pointing it out
20623
20624 2005-02-28  Jordi Mas i Hernandez <jordi@ximian.com>
20625
20626         * ComboBox.cs: show/hide scrollbar instead of creating it
20627
20628 2005-02-27  Jackson Harper  <jackson@ximian.com>
20629
20630         * CurrencyManager.cs: Add PositionChanged stuff.
20631
20632 2005-02-27  Peter Bartok  <pbartok@novell.com>
20633
20634         * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
20635         * XplatUIOSX.cs: Added GetMenuOrigin() stub
20636         * XplatUIWin32.cs: Implemented GetMenuOrigin()
20637         * XplatUIX11.cs:
20638           - Implemented GetMenuDC()
20639           - Implemented GetMenuOrigin()
20640           - Implemented ReleaseMenuDC()
20641           - Implemented generation of WM_NCPAINT message
20642           - Implemented generation and handling of WM_NCCALCSIZE message
20643         * Form.cs: Added debug helper message for Jordi's menu work
20644         * Hwnd.cs:
20645           - Modified ClientRect property; added setter, fixed getter to handle
20646             setting of ClientRect
20647           - Added MenuOrigin property
20648
20649 2005-02-26  Peter Bartok  <pbartok@novell.com>
20650
20651         * XplatUIX11.cs:
20652           - Destroys the caret if a window that's being destroyed contains it
20653           - Ignores expose events coming from the X11 queue for windows that
20654             already are destroyed
20655           - Now uses the proper variable for handling DestroyNotify, before we
20656             marked the wrong window as destroyed
20657           - Improved/added some debug output
20658
20659 2005-02-26  Peter Bartok  <pbartok@novell.com>
20660
20661         * X11Keyboard.cs: Fixes to work on 64bit systems
20662
20663 2005-02-26  Peter Bartok  <pbartok@novell.com>
20664
20665         * Control.cs:
20666           - Now calling OnHandleDestroyed from DestroyHandle()
20667             instead of Dispose()
20668           - Removed bogus call to controls.Remove() from DestroyHandle()
20669
20670 2005-02-26  Peter Bartok  <pbartok@novell.com>
20671
20672         * Control.cs: Properly destroy child windows when our handle is
20673           destroyed
20674
20675 2005-02-25  Peter Bartok  <pbartok@novell.com>
20676
20677         * XplatUI.cs:
20678           - Added 'DriverDebug' define to allow tracing XplatUI API calls
20679           - Alphabetized Static Methods and Subclasses
20680
20681         * XplatUIX11.cs:
20682           - Added XException class to allow custom handling of X11 exceptions
20683           - Created custom X11 error handler, tied into XException class
20684           - Added support for MONO_XEXCEPTIONS env var to allow the user
20685             to either throw an exception on X errors or continue running
20686             after displaying the error
20687           - Added handling of DestroyNotify message
20688           - Added handler for CreateNotify message (still disabled)
20689           - Improved (tried to at least) Where method to provide file and lineno
20690         * X11Structs.cs:
20691           - Added XErrorHandler delegate
20692           - Added XRequest enumeration (to suppor translation of errors)
20693
20694 2005-02-25  Jackson Harper  <jackson@ximian.com>
20695
20696         * PropertyManager.cs: Implement editing features
20697         * CurrencyManager.cs:
20698         * Binding.cs: First attempt at UpdateIsBinding
20699         * BindingManagerBase.cs: Call UpdateIsBinding before
20700         pushing/pulling data.
20701
20702 2005-02-25  Jordi Mas i Hernandez <jordi@ximian.com>
20703
20704         * MenuAPI.cs: Respect disabled items
20705         * ThemeWin32Classic.cs
20706                 - Caches ImageAttributes creation for DrawImageDisabled
20707                 - Fixes vertical menu line drawing
20708                 - Draws disabled arrows in disable menu items
20709
20710 2005-02-24  Peter Bartok  <pbartok@novell.com>
20711
20712         * Hwnd.cs:
20713           - Added UserData property to allow associating arbitrary objects
20714             with the handle
20715           - Fixed leak; now removing Hwnd references from static windows array
20716         * XplatUIWin32.cs:
20717           - Fixed Graphics leak in PaintEventEnd
20718           - Removed usage of HandleData, switched over to Hwnd class
20719         * HandleData.cs: Removed, obsoleted by Hwnd.cs
20720
20721 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
20722
20723         * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
20724         * ScrollBar.cs: Fixes bug
20725         * TrackBar.cs: removes death code, clipping, mimize refreshes,
20726          keyboard navigation enhancements
20727
20728 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
20729
20730         * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
20731         * GroupBox.cs: Add control styles
20732         * Label.cs: Add control styles
20733         * UpDownBase.cs: Add control styles
20734         * ListBox.cs: Add control styles
20735         * XplatUIWin32.cs: Fixes wrong parameter order
20736
20737
20738 2005-02-23  Chris Bacon  <chris.bacon@docobo.co.uk>
20739
20740         * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
20741
20742 2005-02-23  Jackson Harper  <jackson@ximian.com>
20743
20744         * PropertyManager.cs: Implement property binding. This doesn't
20745         seem to work yet though as (I think) there are some bugs in
20746         System.ComponentModel.PropertyDescriptor.
20747         * BindingContext.cs: Use new PropertyManager constructor.
20748
20749 2005-02-23  Jordi Mas i Hernandez <jordi@ximian.com>
20750
20751         * ProgressBar.cs: use clip region in ProgressBar
20752         * ThemeWin32Classic.cs: use clip region in ProgressBar
20753
20754 2004-02-22  Jackson Harper  <jackson@ximian.com>
20755
20756         * BindingsCollection.cs: Remove some debug code.
20757
20758 2005-02-22  Jackson Harper  <jackson@ximian.com>
20759
20760         * BindingContext.cs:
20761         * ControlBindingsCollection.cs:
20762         * CurrencyManager.cs:
20763         * Binding.cs:
20764         * BindingManagerBase.cs: Initial implementation
20765         * BindingsCollection.cs: Add an internal contains method that the
20766         BindingManagerBase uses to ensure bindings aren't added twice to
20767         the collection.
20768         * PropertyManager.cs: Stubbed out.
20769         * Control.cs:
20770         * ContainerControl.cs: Hook up databinding
20771         
20772 2005-02-22  Geoff Norton  <gnorton@customerdna.com>
20773
20774         * XplatUIOSX.cs:
20775           OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
20776           Fixed Invalidate/Update chain.
20777           Fixed tons of other minor bugs (this is almost a complete rewrite).
20778
20779 2005-02-22  Jordi Mas i Hernandez <jordi@ximian.com>
20780
20781         * ComboBox.cs: do subcontrol creation when the control is created
20782
20783 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
20784
20785         * Label.cs: fixes image drawing (image and imagelist)
20786         * ThemeWin32Classic.cs: cache brushes
20787         
20788 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
20789
20790         * Form.cs: Move menu drawing code to Theme class
20791         * ComboBox.cs: Move ComboBox drawing code to Theme class
20792         * MenuItem.cs: Move menu drawing code to Theme class
20793         * MenuAPI.cs: Move menu drawing code to Theme class
20794         * ThemeWin32Classic.cs: New methods
20795         * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
20796         * ListBox.cs: Move Listbox drawing code to Theme class
20797         * Theme.cs: New methods
20798
20799 2005-02-20  Peter Bartok  <pbartok@novell.com>
20800
20801         * Control.cs:
20802           - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
20803             only process mnemonics on those)
20804           - Fixed event sequence for key handling; first calling
20805             ProcessKeyEventArgs now
20806         * TextBoxBase.cs:
20807           - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
20808             for processing non-character keys
20809           - Fixed WM_CHAR to generate proper event sequence before processing
20810         * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
20811           generation
20812
20813 2005-02-19  Peter Bartok  <pbartok@novell.com>
20814
20815         * UserControl.cs: Added TextChanged event; added attributes
20816         * SizeGrip.cs: Implemented resizing and optional display of grip
20817         * Form.cs: Fixed attribute
20818         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
20819           Changed meaning of ScrollWindow bool argument; instead of the
20820           clear attribute (which will be true usually anyway), it gives the
20821           option of moving child controls as well.
20822         * XplatUIX11.cs:
20823           - Changed to match new ScrollWindow argument
20824           - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
20825             now handles the implicit parent window a WM puts around us
20826         * ScrollableControl.cs: Implemented (not the prettiest, but it seems
20827           to work)
20828         * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
20829         * TreeView.cs: Adjusted to new ScrollWindow arguments
20830
20831 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
20832
20833         * Form.cs: Menu integration with non-client area
20834         * MenuItem.cs: Menu integration with non-client area
20835         * MenuAPI.cs: Menu integration with non-client area
20836
20837 2005-02-18  Peter Bartok  <pbartok@novell.com>
20838
20839         * MethodInvoker.cs: Added
20840         * MdiLayout.cs: Added
20841         * SendKeys.cs: Started implementation
20842         * ErrorIconAlignment.cs: Added
20843
20844 2005-02-18  Peter Bartok  <pbartok@novell.com>
20845
20846         * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
20847         * Form.cs: Added handling for Menu-related Non-client messages
20848
20849 2005-02-17  Peter Bartok  <pbartok@novell.com>
20850
20851         * UpDownBase.cs: Fixed typo, compilation errors
20852         * DomainUpDown.cs: Fixed attribute value
20853
20854 2005-02-16  Miguel de Icaza  <miguel@novell.com>
20855
20856         * UpDownBase.cs: Attach entry events.
20857         Propagate events.
20858         Add ForeColor property, Focused, InterceptArrowKeys (interception
20859         does not work yet).
20860
20861 2005-02-17  Jordi Mas i Hernandez <jordi@ximian.com>
20862
20863         * Form.cs:
20864                 - Redraw non client are on Setmenu
20865                 - Calc proper menu starting point
20866
20867 2005-02-17  Peter Bartok  <pbartok@novell.com>
20868
20869         * Application.cs: Fixed message_filter check
20870
20871 2005-02-17  Peter Bartok  <pbartok@novell.com>
20872
20873         * Application.cs: Now calls registered message filters
20874         * DockStyle.cs: Fixed attribute
20875         * Form.cs: Fixed attribute
20876         * Menu.cs: Fixed attribute
20877         * ToolTip.cs: Fixed attribute
20878         * TreeNode.cs: Added missing attributes and arranged in regions
20879         * PropertyGrid.cs: Fixed signatures
20880         * TreeNodeCollection.cs: Added attributes
20881         * Splitter.cs: Added missing attributes; arranged into regions
20882         * TabPage.cs: Added missing attributes; arranged into regions
20883         * TextBoxBase.cs: Added missing attributes
20884         * TextBox.cs: Added missing attributes
20885         * ArrangeDirection.cs: Added missing attributes
20886         * TreeNodeConverter.cs: Added stub (needed for TreeNode)
20887         * ToolBarButton.cs: Fixed attributes
20888         * AnchorStyles.cs: Fixed attribute
20889         * TrackBar.cs: Fixed attributes
20890         * TabControl.cs: Added missing attributes and arranged into regions
20891         * ToolBar.cs: Fixed attribute
20892         * StatusBar.cs: Fixed signature, organized into regions and added
20893           attributes
20894         * StatusBarPanel.cs: Fixed attributes
20895         * ContentsResizedEventArgs.cs: Implemented
20896         * ContentsResizedEventHandler.cs: Implemented
20897         * DateBoldEventArgs.cs: Implemented
20898         * DateBoldEventHandler.cs: Implemented
20899         * UpDownEventArgs.cs: Implemented
20900         * UpDownEventHandler.cs: Implemented
20901         
20902 2005-02-16  Jordi Mas i Hernandez <jordi@ximian.com>
20903
20904         * Form.cs: first Menu NC refactoring
20905         * MenuAPI.cs: first Menu NC refactoring
20906         
20907 2005-02-16  Peter Bartok  <pbartok@novell.com>
20908
20909         * ImeMode.cs: Added missing attributes
20910         * Menu.cs: Fixed attribute
20911         * GroupBox.cs: Fixed attribute
20912         * Label.cs: Fixed attribute
20913         * ColorDialog.cs (RunDialog): Removed TODO attribute
20914         * ComboBox.cs: Fixed attributes
20915         * ListControl.cs: Added missing attributes
20916         * PropertyGrid.cs: Fixed attributes
20917         * Control.cs: Fixed attributes
20918         * ListViewItem.cs: Added TypeConverter attribute
20919         * NotifyIcon.cs: Fixed attributes
20920         * ListView.cs: Fixed attributes
20921         * ButtonBase.cs: Fixed attribute
20922         * ImageList.cs: Added missing attributes
20923         * ContainerControl.cs: Fixed signature
20924         * CheckedListBox.cs: Fixed attribute; added missing attributes
20925         * Panel.cs: Fixed attributes
20926         * PropertyTabChangedEventArgs.cs: Added missing attribute
20927         * PropertyValueChangedEventArgs.cs: Added missing attribute
20928         * Binding.cs: Fixed attribute
20929         * ListViewItemConverter: Implemented ListViewSubItemConverter class
20930         * ListBox.cs: Fixed attribute; added missing attributes;
20931         * ScrollableControl.cs: Added missing attributes
20932         * PictureBox.cs: Added missing attributes; implemented missing property
20933         * DateTimePicker.cs: Added missing attributes
20934         * Theme.cs (ToolWindowCaptionHeight): Fixed type
20935         * MonthCalendar.cs: Fixed attributes
20936         * StatusBarPanel.cs: Added missing attributes
20937         * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
20938
20939 2005-02-16  Peter Bartok  <pbartok@novell.com>
20940
20941         * TextBoxBase.cs: The previous method to enforce height yet remember
20942           the requested high was less than ideal, this is an attempt to do
20943           it better.
20944         * Control.cs: Added comment about possible problem
20945         * Copyright: Updated format
20946         * GridItemType.cs: Fixed swapped values
20947
20948 2005-02-15  Jackson Harper  <jackson@ximian.com>
20949
20950         * BaseCollection.cs: Use property so we never access an
20951         uninitialized list. Also initialize the list in the property.
20952
20953 2005-02-15  Peter Bartok  <pbartok@novell.com>
20954
20955         * GroupBox.cs (ProcessMnemonic): Implemented
20956         * Label.cs (ProcessMnemonic): Implemented
20957         * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
20958           hotkeys
20959
20960 2005-02-15  Peter Bartok  <pbartok@novell.com>
20961
20962         * RadioButton.cs (ProcessMnemonic): Implemented
20963         * CheckBox.cs (ProcessMnemonic): Implemented
20964         * Control.cs:
20965           - Added handling of WM_SYSxxx keyboard messages to support mnemonic
20966             handling
20967           - Added internal method to allow calling ProcessMnemonic from other
20968             controls
20969         * ContainerControl.cs:
20970           - Started support for handling validation chain handling
20971           - Implemented ProcessMnemonic support
20972           - Added Select() call to Active, to make sure the active control
20973             receives focus
20974         * Form.cs: Setting toplevel flag for Forms (this was lost in the
20975           FormParent rewrite)
20976         * ThemeWin32Classic.cs:
20977           - DrawCheckBox(): Fixed stringformat to show hotkeys
20978           - DrawRadioButton(): Fixed stringformat to show hotkeys
20979         * CommonDialog.cs: Removed WndProc override, not needed
20980
20981 2005-02-14  Peter Bartok  <pbartok@novell.com>
20982
20983         * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
20984           missed those in the rewrite
20985
20986 2005-02-14  Miguel de Icaza  <miguel@novell.com>
20987
20988         * NumericUpDown.cs (Increment, ToString): Add.
20989         (DecimalPlaces): implement.
20990         
20991         Add attributes.
20992         
20993         * UpDownBase.cs: Add the designer attributes.
20994
20995 2005-02-13  Peter Bartok  <pbartok@novell.com>
20996
20997         * Panel.cs: Removed border_style, now in Control
20998         * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
20999           ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
21000
21001 2005-02-13  Peter Bartok  <pbartok@novell.com>
21002
21003         * MouseButtons.cs: Added missing attributes
21004         * XplatUIStructs.cs: Added enumeration for title styles
21005         * LeftRightAlignment.cs: Added missing attributes
21006         * Hwnd.cs: Switched to use client_window as handle (slower, but makes
21007           it compatible with Graphics.FromHwnd()
21008         * SelectedGridItemChangedEventArgs.cs: Fixed property type
21009         * Keys.cs: Added missing attributes
21010         * SelectionRange.cs: Added missing attributes
21011         * SelectionRangeConverter.cs: Added
21012         * XplatUI.cs:
21013           - Introduced SetBorderStyle, SetMenu, GetMenuDC and
21014             ReleaseMenuDC methods
21015           - Renamed ReleaseWindow to UngrabWindow
21016           - Added proper startup notice to allow version identification
21017         * Form.cs:
21018           - Added missing attributes
21019           - Removed FormParent concept
21020         * Label.cs: Removed border_style field, now in Control
21021         * RadioButton.cs: Now properly selects RadioButton when focus is
21022           received
21023         * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
21024         * Control.cs:
21025           - Added missing attributes
21026           - Added borderstyle handling
21027           - Removed FormParent concept support
21028           - Fixed calls to XplatUI to match changed APIs
21029           - Fixed bug that would case us to use disposed Graphics objects
21030           - Removed unneeded internal methods
21031           - PerformLayout(): Fixed to handle DockStyle.Fill properly
21032           - SelectNextControl(): Fixed to properly check common parents
21033         * TextBoxBase.cs: Removed border_style field (now in Control)
21034         * MessageBox.cs:
21035           - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
21036             fixed calculations for form size
21037           - Added support for localized strings and icons
21038           - Improved form size calculations, added border
21039         * ListView.cs: Removed border_style field (now in Control)
21040         * X11Structs.cs: Moved several structs from X11 driver here
21041         * X11Keyboard.cs: Changed debug message
21042         * Application.cs: Removed FormParent concept support
21043         * CommonDialog.cs:
21044           - Resetting end_modal flag
21045           - Removed FormParent concept support
21046         * NativeWindow.cs: Removed FormParent concept support
21047         * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
21048           Client area and Non-Client whole window to allow support for WM_NC
21049           messages
21050         * XplatUIOSX.cs: Updated to match latest driver spec; added exception
21051           prevent using it until it supports Hwnd as per Geoff Norton's request
21052         * ToolBar.cs: Fixed drawing, was not doing proper drawing
21053         * PictureBox.cs: Removed border_style field, now in Control
21054         * XplatUIWin32.cs: Added new driver methods
21055
21056 2005-02-12  Peter Bartok  <pbartok@novell.com>
21057
21058         * OpacityConverter.cs: Implemented
21059         * Hwnd.cs: Internal class to support drivers that need to emulate
21060           client area/non-client area window behaviour
21061
21062 2005-02-11  Peter Bartok  <pbartok@novell.com>
21063
21064         * KeysConverter.cs: Implemented
21065
21066 2005-02-11  Jordi Mas i Hernandez <jordi@ximian.com>
21067
21068         * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
21069         * LinkLabel: Added missing attributes
21070         * MainMenu.cs: fixes ToString
21071         * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
21072         * ListBox.cs: fixes event position
21073         * TrackBar.cs: adds missing attributes and events
21074         
21075 2005-02-10  Jordi Mas i Hernandez <jordi@ximian.com>
21076
21077         * MenuItem.cs: Use SystemInformation and bug fixes
21078         * MenuAPI.cs: Use SystemInformation and bug fixes
21079
21080 2005-02-09  Jackson Harper  <jackson@ximian.com>
21081
21082         * X11Keyboard.cs: We ignore some keys, but still need to set/reset
21083         their keystate otherwise things like VK_MENU get stuck "on".
21084
21085 2005-02-09  Kazuki Oikawa <kazuki@panicode.com>
21086
21087         * ListBox.cs: Fixes AddRange bug
21088         
21089 2005-02-09  Jordi Mas i Hernandez <jordi@ximian.com>
21090
21091         * ProgressBar.cs
21092                 - Add missing attributes
21093                 - Add missing method
21094                 
21095         * CheckedListBox.cs: Added missing attributes
21096                 - Add missing attributes
21097                 - Remove extra method
21098         
21099         * ComboBox.cs: Added missing attributes
21100         * VScrollBar.cs: Added missing attributes
21101         * ScrollBar.cs:  Added missing attributes
21102         * ListBox.cs: Fixes signature, add missing consts
21103         * LinkArea.cs:   Added missing attributes
21104         
21105
21106 2005-02-08  Peter Bartok  <pbartok@novell.com>
21107
21108         * Menu.cs: Added missing attributes
21109         * MainMenu.cs: Added missing attributes
21110         * GroupBox.cs: Added missing attributes
21111         * Label.cs: Added missing attributes
21112         * CheckBox.cs: Implemented CheckBoxAccessibleObject class
21113         * ColorDialog.cs:
21114           - Added Instance and Options properties
21115           - Added missing attributes
21116         * Cursor.cs: Made Serializable
21117         * NotifyIcon: Added missing attributes
21118         * MenuItem.cs: Added missing attributes
21119         * TextBoxBase.cs: Implemented AppendText() and Select() methods
21120         * Panel.cs: Added Missing attributes
21121         * MonthCalendar.cs: Fixed CreateParams
21122
21123 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
21124         
21125         * LinkLabel.cs:
21126                 - Fixes signature
21127                 - Fixes issues with links
21128                 - Adds the class attributes
21129
21130 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
21131         
21132         * ComboBox.cs:
21133                 - Fixes button when no items available in dropdown
21134                 - Fixes repainting problems
21135                 - Adds the class attributes
21136                 
21137 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
21138
21139         * XplatUIOSX.cs: Detect the menu bar and title bar height from
21140         the current theme.  Cache these on startup.
21141
21142 2005-02-07  Jackson Harper  <jackson@ximian.com>
21143
21144         * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
21145         the scrollbar buttons when they are depressed.
21146
21147 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
21148
21149         * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
21150         Get the display size from the main displayid.  We currently dont
21151         support multiple display configurations.
21152
21153 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
21154
21155         * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
21156
21157 2005-02-07  Miguel de Icaza  <miguel@novell.com>
21158
21159         * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
21160
21161 2005-02-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
21162
21163         * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
21164
21165 2005-02-04  Jackson Harper  <jackson@ximian.com>
21166
21167         * ThemeWin32Classic.cs: Respect the clipping rect when
21168         drawing. Only fill the intersection of clips and rects so there
21169         isn't a lot of large fills.
21170         * ScrollBar.cs: Pass the correct clipping rect to the theme
21171         engine. Remove some debug code.
21172
21173 2005-02-05  John BouAntoun  <jba-mono@optusnet.com.au>
21174         
21175         * DateTimePicker.cs:
21176                 - Fixed crash on DateTime.Parse, use Constructor instead
21177
21178 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
21179         
21180         * MenuItem.cs:
21181         * MenuAPI.cs:
21182                 - Owner draw support (MeasureItem and DrawItem)
21183
21184 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
21185         
21186         *  Menu.cs:
21187                 - Implements FindMergePosition and MergeMenu functions (very poor documented)
21188                 - Fixes MenuItems.Add range
21189         * MenuItem.cs:
21190                 - MergeMenu and Clone and CloneMenu functions
21191
21192 2005-02-03  Jackson Harper  <jackson@ximian.com>
21193
21194         * ScrollBar.cs: Make abstract
21195         * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
21196         is abstract.
21197
21198 2005-02-03  Jackson Harper  <jackson@ximian.com>
21199
21200         * ScrollBar.cs: First part of my scrollbar fixups. This removes
21201         all the unneeded refreshes and uses invalidates with properly
21202         computed rects.
21203
21204 2005-02-03  Peter Bartok  <pbartok@novell.com>
21205
21206         * ComponentModel.cs: Added
21207         * IDataGridEditingService.cs: Added
21208         * Timer.cs: Added missing attributes
21209         * ToolTip.cs: Added missing attributes
21210
21211 2005-02-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
21212
21213         * PropertyGridView.cs: Added. Patch by Jonathan Chambers
21214
21215 2005-02-03  Peter Bartok  <pbartok@novell.com>
21216
21217         * ListBox.cs: Added missing attributes
21218
21219 2005-02-03  Jordi Mas i Hernandez <jordi@ximian.com>
21220         
21221         * ListBox.cs:
21222                 - Fixes font height after font change
21223                 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
21224                 
21225 2005-02-02  Peter Bartok  <pbartok@novell.com>
21226
21227         * HandleData.cs: Introduced static methods to allow class
21228           to be more self-contained and track it's own HandleData objects
21229         * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
21230           HandleData to use new static methods
21231
21232 2005-02-02  Jordi Mas i Hernandez <jordi@ximian.com>
21233
21234         * Combobox.cs:
21235                 - Fixes default size and PreferredHeight
21236                 - Missing events
21237                 - ObjectCollection.Insert implementation
21238                 
21239         * ListControl.cs
21240                 - Fixes signature
21241         * ListBox.cs:
21242                 - Several fixes
21243                 - ObjectCollection.Insert implementation
21244                 - No selection after clean
21245                 - Small fixes
21246
21247 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
21248
21249         * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
21250
21251 2005-02-01  Jordi Mas i Hernandez <jordi@ximian.com>
21252
21253         * Combobox.cs:
21254                 - Caches ItemHeight calculation for OwnerDrawVariable
21255                 - Handles dropdown properly
21256                 - Fixes several minor bugs
21257
21258 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
21259
21260         * ListBox.cs:
21261                 - Fixes 71946 and 71950
21262                 - Fixes changing Multicolumn on the fly
21263                 - Fixes keyboard navigation on Multicolumn listboxes
21264
21265 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
21266         
21267         * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
21268         crash reporter log.
21269
21270 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
21271
21272         * XplatUIOSX.cs: Allow applications to actually exit.
21273
21274 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
21275
21276         * XplatUIOSX.cs: SetWindowStyle implemented.  Reposition views in
21277         their parent at creation time rather than lazily later.  Fixes a major
21278         regression we were experiencing.
21279
21280 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
21281
21282         * ThemeWin32Classic.cs: more date time picker painting fixes
21283         * DateTimePicker.cs: more monthcalendar drop down fixes
21284         * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
21285
21286 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
21287
21288         * ScrollBar.cs:
21289                 - When moving the thumb going outside the control should stop the moving
21290                 - Adds the firing of missing events
21291                 - Fixes no button show if Size is not specified
21292                 - End / Home keys for keyboard navigation
21293
21294 2005-01-30  Peter Bartok  <pbartok@novell.com>
21295
21296         * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
21297           sanity check to prevent theoretical loop
21298         * XplatUIWin32.cs (SetVisible): Removed debug output
21299         * XplatUIX11.cs (SystrayChange): Added sanity check
21300         * ScrollableControl.cs (OnVisibleChanged): Now calls base method
21301         * Control.cs (OnVisibleChanged): Added workaround for ParentForm
21302           behaviour, valid until the X11 client window rewrite is done
21303         * TextBox.cs (ctor): Setting proper default foreground and background
21304           colors
21305
21306 2005-01-30      John BouAntoun  <jba-mono@optusnet.com.au>
21307
21308         * Theme: Added DrawDateTimePicker to interface
21309         * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
21310         * DateTimePicker.cs: Created (still needs keys and painting code)
21311         * DateTimePickerFormat.cs: added
21312         * MonthCalendar.cs: fixed CreateParams for popup window mode
21313           
21314 2005-01-29  Peter Bartok  <pbartok@novell.com>
21315
21316         * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
21317           this should also the calculations for ligher/darker
21318         * Theme.cs: Fixed defaults for ScrollBar widths/heights
21319
21320 2005-01-29  Peter Bartok  <pbartok@novell.com>
21321
21322         * ArrangeDirection.cs: Added
21323         * ArrangeStartingPositon.cs: Added
21324         * SystemInformation.cs: Implemented
21325         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
21326           XplatUIX11.cs, Theme.cs: Added/implemented new static properties
21327           used by SystemInformation class
21328         * X11Strucs.cs: Added XSizeHints structure
21329         * MenuAPI.cs:
21330           - Fixed CreateParams to make sure the menu window is always visible
21331           - TrackPopupMenu: Added check to make sure we don't draw the
21332             menu offscreen
21333
21334 2005-01-29  Peter Bartok  <pbartok@novell.com>
21335
21336         * HandleData.cs: Added method for altering invalid area
21337         * TextBoxBase.cs: Implemented TextLength
21338
21339 2005-01-28  Peter Bartok  <pbartok@novell.com>
21340
21341         * XplatUIX11.cs: Improvement over last patch, not sending
21342           the WM_PAINT directly anymore, instead we scroll any pending
21343           exposed areas and let the system pick out the WM_PAINT later
21344
21345 2005-01-28  Peter Bartok  <pbartok@novell.com>
21346
21347         * SWF.csproj: Deleted, no longer used. Instead,
21348           Managed.Windows.Forms/SWF.csproj should be used
21349         * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
21350           directly, to avoid a potential race condition with the next
21351           scroll
21352
21353 2005-01-28  Peter Bartok  <pbartok@novell.com>
21354
21355         * XplatUI.cs: Made class internal
21356
21357 2005-01-28  Jordi Mas i Hernandez <jordi@ximian.com>
21358
21359         * CheckedListBox.cs:
21360                 - Draw focus
21361                 - Fixed Drawing
21362                 - Missing methods and events
21363
21364 2005-01-27  Peter Bartok  <pbartok@novell.com>
21365
21366         * Application.cs (Run): Don't use form if we don't have one
21367
21368 2005-01-27  Peter Bartok  <pbartok@novell.com>
21369
21370         * TextBoxBase.cs (get_Lines): Fixed index off by one error
21371
21372 2005-01-27  Peter Bartok  <pbartok@novell.com>
21373
21374         * GridEntry.cs: Added; Patch by Jonathan S. Chambers
21375         * GridItem.cs: Added; Patch by Jonathan S. Chambers
21376         * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
21377         * GridItemType.cs: Added; Patch by Jonathan S. Chambers
21378         * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
21379         * PropertySort.cs: Added; Patch by Jonathan S. Chambers
21380         * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
21381         * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
21382         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
21383         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
21384         * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
21385         * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
21386
21387 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
21388
21389         * Combobox.cs:
21390                 - Draw focus on Simple Combobox
21391                 - Fixes drawing issues
21392                 - fixes 71834
21393
21394 2005-01-27  Peter Bartok  <pbartok@novell.com>
21395
21396         * Form.cs:
21397           - Place window in default location, instead of hardcoded 0/0
21398           - Send initial LocationChanged event
21399         * Control.cs:
21400           - UpdateBounds after creation to find out where the WM placed us
21401           - Make sure that if the ParentForm changes location the Form
21402             is notified
21403         * XplatUIX11.cs: XGetGeometry will not return the coords relative
21404             to the root, but to whatever the WM placed around us.
21405             Translate to root coordinates before returning toplevel
21406             coordinates
21407         * XplatUIWin32.cs: Removed debug output
21408         * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
21409           flag to GetWindowPos, to allow translation of coordinates on X11
21410
21411 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
21412
21413         * ListBox.cs: connect LostFocus Event
21414
21415 2005-01-27  Peter Bartok  <pbartok@novell.com>
21416
21417         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
21418           XplatUIX11.cs: Extended the Systray API
21419         * Form.cs: Removed debug output
21420         * Application.cs: Fixed focus assignment, always need to call
21421           XplatUI.Activate() since Form.Activate() has rules that may
21422           prevent activation
21423         * NotifyIcon.cs: Should be complete now
21424         * ToolTip.cs: Worked around possible timer bug
21425
21426 2005-01-27  Jackson Harper  <jackson@ximian.com>
21427
21428         * TabControl.cs:
21429         - Only invalidate the effected tabs when the
21430         selected index changes. This reduces drawing and gets rid of some
21431         flicker.
21432         - Only refresh if the tabs need to be shifted, otherwise only
21433         invalidate the slider button.
21434         - On windows the tabs are not filled to right if the slider is
21435         visible.
21436         
21437 2005-01-27  Jackson Harper  <jackson@ximian.com>
21438
21439         * TabControl.cs: Only refresh on mouseup if we are showing the
21440         slider. Also only invalidate the button whose state has changed.
21441
21442 2005-01-26  Peter Bartok  <pbartok@novell.com>
21443
21444         * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
21445         * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
21446           and SystrayRemove() methods
21447         * XplatUIOSX.cs: Stubbed Systray methods
21448         * XplatUIX11.cs:
21449           - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
21450             methods
21451           - Fixed broken XChangeProperty calls (marshalling messed up things)
21452         * X11Structs.cs: Added enums and structs required for Size hinting
21453         * NotifyIcon.cs: Added & implemented
21454
21455 2005-01-26  Jackson Harper  <jackson@ximian.com>
21456
21457         * TabControl.cs: Space vertically layed out tabs properly.
21458
21459 2005-01-26  Peter Bartok  <pbartok@novell.com>
21460
21461         * Form.cs (CreateClientParams): Always set the location to 0,0
21462           since we're a child window.
21463
21464         * Control.cs (SetVisibleCore): Always explicitly setting the location
21465           of a toplevel window, apparently X11 doesn't like to move windows
21466           while they're not mapped.
21467
21468 2005-01-26  Jackson Harper  <jackson@ximian.com>
21469
21470         * TabControl.cs: Implement FillToRight size mode with vertically
21471         rendered tabs.
21472
21473 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
21474
21475         * ControlPaint.cs, ThemeWin32Classic.cs
21476                 - Fixes DrawFocusRectangle
21477
21478 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
21479
21480         * MenuAPI.cs:
21481                 - MenuBar tracking only starts when item is first clicked
21482                 - Fixes menu hidding for multiple subitems
21483                 - Unselect item in MenuBar when item Executed
21484                 - Fixes bug 71495
21485
21486 2005-01-25  Jordi Mas i Hernandez <jordi@ximian.com>
21487
21488         * ListControl.cs:
21489                 - IsInputKey for ListBox
21490         * ListBox.cs:
21491                 - Focus item
21492                 - Shift and Control item selection
21493                 - Implement SelectionMode.MultiExtended
21494                 - Fixes RightToLeft
21495         * ComboBox.cs:
21496                 - IsInputKey implemented
21497                 - Do not generate OnTextChangedEdit on internal txt changes
21498                 
21499 2005-01-23  Peter Bartok  <pbartok@novell.com>
21500
21501         * AccessibleObject.cs: Partially implemented Select()
21502         * MonthCalendar.cs: Added missing attributes and events
21503         * Form.cs: Fixed CreateParams behaviour, now controls derived from
21504           form can properly override CreateParams.
21505         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
21506           XplatUIX11.cs: Dropped RefreshWindow method, not needed if
21507           Control performs Invalidate & Update
21508         * NativeWindow (CreateHandle): Added special handling for Form
21509           and Form.FormParent classes to allow overriding of From.CreateParams
21510         * Control.cs:
21511           - ControlNativeWindow: Renamed 'control' variable to more intuitive
21512             name 'owner'
21513           - ControlNativeWindow: Added Owner property
21514           - Removed usage of Refresh() on property changes, changed into
21515             Invalidate(), we need to wait until the queue is processed for
21516             updates, direct calls might cause problems if not all vars for
21517             Paint are initialized
21518           - Added call to UpdateStyles() when creating the window, to set any
21519             styles that CreateWindow might have ignored.
21520           - Added support for Form CreateParent overrides to UpdateStyles()
21521         * MessageBox.cs: Removed no longer needed FormParent override stuff,
21522           CreateParams are now properly overridable
21523         * CommonDialog.cs: Removed no longer needed FormParent override stuff,
21524           CreateParams are now properly overridable
21525
21526 2005-01-23  Miguel de Icaza  <miguel@ximian.com>
21527
21528         * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
21529         OnTextBoxChanged.
21530
21531         Capture LostFocus and OnTextBoxChanged.  The later introduces a
21532         recursive invocation that I have not figured out yet.
21533
21534         Reset the timer when not using (it was accumulating).
21535
21536
21537         (OnTextBoxChanged): Set UserEdit to true here to track whether the
21538         user has made changes that require validation.
21539
21540         Reset changing to avoid loops.
21541
21542 2005-01-22  Miguel de Icaza  <miguel@ximian.com>
21543
21544         * NumericUpDown.cs: Display value at startup.
21545
21546         * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
21547         ValidateEditText.
21548
21549         * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
21550         filled in.  Added some basic parsing of text.
21551
21552         Still missing the OnXXX method overrides, and figuring out the
21553         events that must be emitted.
21554
21555         * UpDownBase.cs: Handle UserEdit on the Text property.
21556         
21557 2005-01-22  Jordi Mas i Hernandez <jordi@ximian.com>
21558
21559         * ComboBox.cs:
21560           - Fixes IntegralHeight
21561           - ToString method
21562
21563 2005-01-21  Jackson Harper  <jackson@ximian.com>
21564
21565         * TabControl.cs: Set the SelectedIndex property when SelectedTab
21566         is set so that the page visibility is updated and the tabs are
21567         sized correctly.
21568
21569 2005-01-21  Jackson Harper  <jackson@ximian.com>
21570
21571         * TabControl.cs: Use cliping rectangle for blitting. Give the
21572         theme the clipping rect so we can do clipping while
21573         drawing. Remove some debug code.
21574
21575 2005-01-21  Jackson Harper  <jackson@ximian.com>
21576
21577         * TabPage.cs: Add a new method so tab pages can force the tab
21578         control to recalculate the tab page sizes.
21579         * TabControl.cs: UpdateOwner needs to make the tab control recalc
21580         sizes.
21581
21582 2005-01-20  Jackson Harper  <jackson@ximian.com>
21583
21584         * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
21585
21586 2005-01-20  Jackson Harper  <jackson@ximian.com>
21587
21588         * TreeView.cs: Set the bounds for nodes properly. They were
21589         getting screwed up when checkboxes were not enabled, but images
21590         were.
21591
21592 2005-01-20  Jordi Mas i Hernandez <jordi@ximian.com>
21593
21594         * ListBox.cs:
21595                 - Owner draw support
21596                 - Fixes
21597                 
21598 2005-01-20  Jackson Harper  <jackson@ximian.com>
21599
21600         * XplatUIStructs.cs: More misc keys
21601         * X11Keyboard.cs: Ignore some control keys.
21602
21603 2005-01-20  Jackson Harper  <jackson@ximian.com>
21604
21605         * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
21606         * X11Keyboard.cs: Set the AltGr mask when we get a key event.
21607
21608 2005-01-19  Peter Bartok  <pbartok@novell.com>
21609
21610         * Control.cs: Un-selecting the control when it is loosing focus
21611
21612 2005-01-19  Jackson Harper  <jackson@ximian.com>
21613
21614         * TreeView.cs: Hook up to the text controls leave event so we can
21615         end editing when the users clicks outside the text box.
21616         
21617 2005-01-19  Jackson Harper  <jackson@ximian.com>
21618
21619         * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
21620         get set in the conversion array.
21621
21622 2005-01-19  Peter Bartok  <pbartok@novell.com>
21623
21624         * Application.cs (ModalRun): Added a call to CreateControl to ensure
21625           focus is properly set
21626         * Button.cs:
21627           - Added missing attributes
21628           - removed styles, those are already set in the base class
21629         * ButtonBase.cs:
21630           - Added missing attributes
21631           - Added clip window styles
21632         * CheckBox.cs: Added missing attributes
21633         * CommonDialog.cs:
21634           - FormParentWindow.CreateParams: Added required clip styles
21635         * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
21636           also filters modifier keys
21637         * MessageBox.cs:
21638           - Added assignment of Accept and Cancel button to enable Enter
21639             and Esc keys in MessageBox dialogs
21640           - FormParentWindow.CreateParams: Added required clip styles
21641         * RadioButton.cs: Added missing attributes
21642         * TextControl.cs: No longer draws selection if control does not
21643           have focus
21644         * TextBoxBase.cs:
21645           - Now draws simple rectangle around test area to make it obvious
21646             there's a control. This is a hack until we properly support borders
21647           - A few simple fixes to support selections better, now erases selected
21648             text when typing, and resets selection when using movement keys
21649
21650 2005-01-19  Miguel de Icaza  <miguel@ximian.com>
21651
21652         * UpDownBase.cs: Added some new properties.
21653
21654         * DomainUpDown.cs: Implement a lot to get my test working.
21655
21656 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
21657
21658         * XplatUIOSX.cs: Fix a minor bug to bring the close box back
21659
21660 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
21661
21662         * OSXStructs (WindowAttributes): Fixed csc complaints
21663
21664 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
21665
21666         * XplayUIOSX.cs:
21667           OSXStructs.cs: Initial refactor to move enums and consts into
21668           OSXStructs and use them in the driver for greater readability.
21669
21670 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
21671
21672         * XplatUIOSX.cs: Initial support for Standard Cursors.
21673         * OSXStructs.cs: Move our structs here; added ThemeCursor enum
21674
21675 2005-01-19  Jordi Mas i Hernandez <jordi@ximian.com>
21676
21677         * ComboBox.cs: ability to change style when the ctrl is already
21678         created, missing methods and events, bug fixes, signature fixes
21679
21680 2005-01-19  Peter Bartok  <pbartok@novell.com>
21681
21682         * Cursors.cs (ctor): Added ctor to fix signature
21683
21684 2005-01-18  Peter Bartok  <pbartok@novell.com>
21685
21686         * Button.cs: Implemented DoubleClick event
21687         * ButtonBase.cs:
21688           - Fixed keyboard handling to behave like MS, where the press of
21689             Spacebar is equivalent to a mousedown, and the key release is
21690             equivalent to mouseup. Now a spacebar push will give the same
21691             visual feedback like a mouse click.
21692           - Added missing attributes
21693           - Added ImeModeChanged event
21694           - Added support for generating DoubleClick event for derived classes
21695         * CheckBox.cs:
21696           - Implemented DoubleClick event
21697           - Added missing attributes
21698         * CommonDialog.cs: Added missing attribute
21699         * ContextMenu.cs: Added missing attributes
21700         * RadioButton.cs:
21701           - AutoChecked buttons do not allow to be unselected when clicked
21702             (otherwise we might end up with no selected buttons in a group)
21703           - Added missing attributes
21704           - Implemented DoubleClickEvent
21705         * ThreadExceptionDialog.cs: Enabled TextBox code
21706
21707 2005-01-18  Peter Bartok  <pbartok@novell.com>
21708
21709         * Form.cs: Removed debug output
21710         * Button.cs: Added support for DoubleClick method
21711
21712 2005-01-18  Peter Bartok  <pbartok@novell.com>
21713
21714         * Form.cs:
21715           - Added method to parent window that allows triggering size
21716             calculations when a menu is added/removed
21717           - set_Menu: Cleaned up mess from early days of Form and Control,
21718             now properly triggers a recalc when a menu is added/removed
21719           - Added case to select form itself as focused form if no child
21720             controls exist
21721           - Added PerformLayout call when showing dialog, to ensure properly
21722             placed controls
21723         * Control.cs:
21724           - Select(): Made internal so Form can access it
21725           - Focus(): Only call Xplat layer if required (avoids loop), and sets
21726             status
21727         * Application.cs (Run): Removed hack and calls PerformLayout instead
21728           to trigger calculation when Form becomes visible
21729
21730 2005-01-18  Jordi Mas i Hernandez <jordi@ximian.com>
21731
21732         * ComboBox.cs: fixes for ownerdraw
21733
21734 2005-01-18  Peter Bartok  <pbartok@novell.com>
21735
21736         * TextControl.cs:
21737           - Sentinel is no longer static, each Document gets it's own, this
21738             avoids locking or alternatively overwrite problems when more
21739             than one text control is used simultaneously.
21740           - Switched to use Hilight and HilightText brushes for text selection
21741
21742         * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
21743
21744 2005-01-18  Peter Bartok  <pbartok@novell.com>
21745
21746         * Control.cs:
21747           - Hooked up the following events:
21748                 o ControlAdded
21749                 o ControlRemoved
21750                 o HandleDestroyed
21751                 o ImeModeChanged
21752                 o ParentChanged
21753                 o TabStopChanged
21754                 o Invalidated
21755                 o SystemColorsChanged
21756                 o ParentFontChanged
21757                 o Move
21758           - Removed debug output
21759           - Added a call to the current theme's ResetDefaults when a color change
21760             is detected
21761         * Form.cs: Now setting the proper ImeMode
21762         * Theme.cs: Defined a method to force recreation of cached resources
21763           and rereading of system defaults (ResetDefaults())
21764         * ThemeWin32Classic.cs: Added ResetDefaults() stub
21765
21766 2005-01-17  Peter Bartok  <pbartok@novell.com>
21767
21768         * Control.cs: Added missing attributes
21769
21770 2005-01-17  Jackson Harper  <jackson@ximian.com>
21771
21772         * TreeNode.cs: Implement editing. Add missing properties selected
21773         and visible.
21774         * TreeView.cs: Implement node editing. Also some fixes to use
21775         Invalidate (invalid area) instead of Refresh when selecting.
21776
21777 2005-01-17  Peter Bartok  <pbartok@novell.com>
21778
21779         * Control.cs:
21780           - Implemented InvokeGotFocus() method
21781           - Implemented InvokeLostFocus() method
21782           - Implemented InvokePaint() method
21783           - Implemented InvokePaintBackground() method
21784           - Implemented InvokeClick() method
21785           - Implemented FindForm() method
21786           - Implemented RectangleToClient() method
21787           - Implemented ClientToRectangle() method
21788           - Implemented ResetBackColor() method
21789           - Implemented ResetCursor() method
21790           - Implemented ResetFont() method
21791           - Implemented ResteForeColor() method
21792           - Implemented ResetImeMode() method
21793           - Implemented ResetLeftToRight() method
21794           - Implemented ResetText() method
21795           - Implemented Scale() methods
21796           - Implemented ScaleCore() method
21797           - Implemented Update() method
21798           - Removed unused variables
21799           - Stubbed AccessibilityNotifyClients and
21800             ControlAccessibleObject.NotifyClients() methods (dunno what to do
21801             with those yet)
21802           - Now setting proper default for RightToLeft property
21803           - Fixed bug in SetClientSizeCore that would cause windows to get
21804             really big
21805           - Now sending Click/DoubleClick events
21806           - Now selecting controls when left mouse button is clicked on
21807             selectable control
21808         * AccessibleEvents.cs: Added
21809         * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
21810         * XplatUIOSX.cs: Stubbed UpdateWindow() method
21811         * XplatUIWin32.cs: Implemented UpdateWindow() method
21812         * XplatUIX11.cs: Implemented UpdateWindow() method
21813         * Form.cs: Removed stray semicolon causing CS0162 warning
21814         * ThemeWin32Classic.cs: Fixed unused variable warnings
21815         * ScrollableControl.cs: Now calls base method for ScaleCore
21816         * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
21817           style to avoid interference with internal click handler (which is
21818           different than standard Control click handling)
21819         * RadioButton.cs:
21820           - Now unchecks all sibling radio buttons when control is
21821             selected (Fixes #68756)
21822           - Removed internal tabstop variable, using the one inherited from
21823             Control
21824
21825 2005-01-17  Jackson Harper  <jackson@ximian.com>
21826
21827         * NavigateEventArgs.cs: Fix base type.
21828         * LinkLabel.cs: Sig fix
21829         
21830 2005-01-17  Jackson Harper  <jackson@ximian.com>
21831
21832         * TreeView.cs: Only invalidate the effected nodes bounds when
21833         selecting nodes.
21834
21835 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
21836
21837         * XplatUIWin32.cs: fixes Win32 marshaling
21838         * XplatUIX11.cs: fixes method signature
21839
21840 2005-01-17  Peter Bartok  <pbartok@novell.com>
21841
21842         * XplatUIX11.cs: Clean up resources when we no longer need them
21843
21844 2005-01-17  Peter Bartok  <pbartok@novell.com>
21845
21846         * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
21847           OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
21848           and DestroyCursor() methods.
21849         * Cursor.cs: Partially implemented, now supports standard cursors;
21850           still contains some debug code
21851         * Cursors.cs: Implemented class
21852         * Control.cs:
21853           - WndProc(): Added handling of WM_SETCURSOR message, setting the
21854             appropriate cursor
21855           - Implemented Cursor property
21856           - Replaced break; with return; more straightforwar and possibly
21857             faster
21858           - Now properly setting the result for WM_HELP
21859         * X11Structs.cs: Added CursorFontShape enum
21860         * XplatUIStructs.cs:
21861           - Added StdCursor enum (to support DefineStdCursor() method)
21862           - Added HitTest enum (to support sending WM_SETCURSOR message)
21863         * XplatUIX11.cs:
21864           - Now sends the WM_SETCURSOR message
21865           - Implemented new cursor methods
21866         * XplatUIOSX.cs: Stubbed new cursor methods
21867         * XplatUIWin32.cs:
21868           - Implemented new cursor methods
21869           - Added GetSystemMetrics function and associated enumeration
21870
21871 2005-01-15  Peter Bartok  <pbartok@novell.com>
21872
21873         * Control.cs:
21874           - WndProc(): Now handles EnableNotifyMessage
21875           - SelectNextControl(): Fixed bug where if no child or sibling
21876             controls exist we looped endlessly
21877
21878 2005-01-14  Jackson Harper  <jackson@ximian.com>
21879
21880         * TreeView.cs: Recalculate the tab pages when a new one is added
21881         so that the proper bounding rects are created.
21882
21883 2005-01-14  Jackson Harper  <jackson@ximian.com>
21884
21885         * TreeView.cs: Draw a gray box instead of a grip in the lower
21886         right hand corner when there are both horizontal and vertical
21887         scroll bars.
21888
21889 2005-01-14  Jackson Harper  <jackson@ximian.com>
21890
21891         * Control.cs: When erasing backgrounds use FromHwnd instead of
21892         FromHdc when there is a NULL wparam. This occurs on the X driver.
21893         * XplatUIX11.cs: Set the wparam to NULL.
21894
21895 2005-01-13  Jackson Harper  <jackson@ximian.com>
21896
21897         * PictureBox.cs: Implement missing methods (except ToString, need
21898         to test that on windows) and events. When visibility is changed we
21899         need to redraw the image because the buffers are killed. When size
21900         is changed refresh if the sizemode needs it.
21901
21902 2005-01-13  Peter Bartok  <pbartok@novell.com>
21903
21904         * Control.cs (SelectNextControl): Was using wrong method to select
21905           a control
21906
21907 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
21908
21909         * ComboBox.cs: fixes dropstyle
21910
21911 2005-01-13  Peter Bartok  <pbartok@novell.com>
21912
21913         * Form.cs:
21914           - Implemented Select() override
21915           - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
21916           - Now sets keyboard focus on startup
21917         * Control.cs (SelectNextControl): Now properly handles directed=true
21918         * TextBoxBase.cs:
21919           - WndProc: Now passes tab key on to base if AcceptTabChar=false
21920           - Added (really bad) focus rectangle (mostly for testing)
21921         * TextBox.cs: Added code to handle getting/loosing focus and invalidating
21922           to enforce redraw on focus changes
21923         * ContainerControl.cs:
21924           - Fixed detection of Shift-Tab key presses
21925           - Fixed traversal with arrow keys
21926         * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
21927           gonna keep this or if it's complete yet
21928         
21929 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
21930
21931         * ComboBox.cs: missing properties, fixes
21932
21933 2005-01-13  Peter Bartok  <pbartok@novell.com>
21934
21935         * Panel.cs (ctor): Setting Selectable window style to off
21936         * Splitter.cs (ctor): Setting Selectable window style to off
21937         * GroupBox.cs (ctor): Setting Selectable window style to off
21938         * Label.cs (ctor): Setting Selectable window style to off
21939
21940 2005-01-12  Miguel de Icaza  <miguel@ximian.com>
21941
21942         * UpDownBase.cs (InitTimer): If the timer has been already
21943         created, enable it.
21944
21945         Use a TextBox instead of a Label.
21946
21947 2005-01-12  Jackson Harper  <jackson@ximian.com>
21948
21949         * TreeView.cs: Refresh the tree after sorting the nodes. Always
21950         draw the connecting node lines (when ShowLines is true).
21951         * TreeNode.cs: The nodes index can now be updated. This is used
21952         when a node collection is sorted.
21953         * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
21954         insert or an existing unsorted node collection can be sorted.
21955         
21956 2005-01-12  Peter Bartok  <pbartok@novell.com>
21957
21958         * ContainerControl.cs: Implemented ProcessDialogKeys()
21959
21960 2005-01-12  Peter Bartok  <pbartok@novell.com>
21961
21962         * Control.cs:
21963           - Implemented SelectNextControl() method
21964           - Several focus related bug fixes
21965           - Fixed Docking calculations to match MS documentation and
21966             behaviour
21967
21968 2005-01-12  Jordi Mas i Hernandez <jordi@ximian.com>
21969
21970         * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
21971         bug fixes
21972
21973 2005-01-12  Peter Bartok  <pbartok@novell.com>
21974
21975         * Control.cs:
21976           - Fixed broken Contains() method
21977           - Implemented GetNextControl() method. Finally. This is the pre-
21978             requisite for focus handling.
21979
21980 2005-01-12  Peter Bartok  <pbartok@novell.com>
21981
21982         * OSXStrucs.cs: Added
21983
21984 2005-01-12  Peter Bartok  <pbartok@novell.com>
21985
21986         * XplatUIWin32.cs:
21987           - Removed PeekMessageFlags
21988           - Implemented SetWindowStyle() method
21989         * XplatUIStructs.cs: Added PeekMessageFlags
21990         * X11Structs: Added missing border_width field to XWindowChanges struct
21991         * XplatUIX11.cs:
21992           - PeekMessage: Now throws exception if flags which are not yet
21993             supported are passed
21994           - Implemented SetWindowStyle() method
21995           - Fixed SetZOrder to handle AfterHwnd properly
21996         * XplatUI.cs: Added SetWindowStyle() method
21997         * XplatUIDriver.cs: Added SetWindowStyle() abstract
21998         * Control.cs:
21999           - Implemented UpdateStyles() method
22000           - Implemented UpdateZOrder() method
22001         * XplatUIOSX.cs: Added SetWindowStyle() stub
22002
22003 2005-01-12  Geoff Norton  <gnorton@customerdna.com>
22004
22005         * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
22006         button mouse).
22007
22008
22009 2005-01-11  Jackson Harper  <jackson@ximian.com>
22010
22011         * TreeView.cs: Still need to draw lines to siblings even if out of
22012         the current node is out of the clip.
22013
22014 2005-01-11  Jackson Harper  <jackson@ximian.com>
22015
22016         * TreeView.cs: When setting the hbar/vbar/grip position use
22017         SetBounds so that perform layout is only called once. Also suspend
22018         and resume layout so layout is only done once for all controls.
22019         - Removed some debug fluff
22020         * SizeGrip.cs: Call base implmentation in overriding methods.
22021         - When visibility is changed the drawing buffers are killed so we
22022         need to redraw.
22023
22024 2005-01-11  Jackson Harper  <jackson@ximian.com>
22025
22026         * TreeView.cs: Calculate the open node count while drawing. This
22027         saves us an entire tree traversal for every paint operation. Use
22028         a member var for the open node count so less vars are passed around.
22029
22030 2005-01-11  John BouAntoun  <jba-mono@optusnet.com.au>
22031
22032         * MonthCalendar.cs:
22033         - fixed selection to use mousemove, not mouse polling on timer
22034         * ThemeWin32Classic.cs
22035         - removed redundant unused variable "no_more_content"
22036         
22037 2005-01-11  Peter Bartok  <pbartok@novell.com>
22038
22039         * XplatUIX11.cs (DoEvents): Needs to return when no more events
22040           are pending, so it now calls PeekMessage instead of GetMessage;
22041           implemented a incomplete version of PeekMessage
22042         
22043 2005-01-11  Peter Bartok  <pbartok@novell.com>
22044
22045         * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
22046           I18n issues
22047         * TextBoxBase.cs: Added sending of TextChanged event
22048
22049 2005-01-10  Jackson Harper  <jackson@ximian.com>
22050
22051         * TreeView.cs: Try not to draw outside the clipping rectangle on
22052         each node element.
22053
22054 2005-01-10  Jordi Mas i Hernandez <jordi@ximian.com>
22055
22056         * ComboBox.cs: keyboard navigation, item navigation, bug fixes
22057
22058 2005-01-10  Jackson Harper  <jackson@ximian.com>
22059
22060         * TreeView.cs:
22061         - Implement fast scrolling. Now only the newly
22062         exposed nodes are drawn and the old image is moved using the
22063         XplatUI::ScrollWindow method.
22064         - Factor in height of nodes when calculating whether or not the
22065         node is in the clipping rect.
22066
22067 2005-01-10  Jackson Harper  <jackson@ximian.com>
22068
22069         * TreeNodeCollection.cs: Refresh the tree when a new node is added.
22070
22071 2005-01-10  Peter Bartok  <pbartok@novell.com>
22072
22073         * Application.cs: Added temporary hack to resolve all our resize
22074           required issues on startup. This will get fixed properly at
22075           some point in the future
22076
22077 2005-01-10  Jackson Harper  <jackson@ximian.com>
22078
22079         * SizeGrip.cs: New internal class that is used as a sizing
22080         grip control...hence the name.
22081
22082 2005-01-10  Peter Bartok  <pbartok@novell.com>
22083
22084         * Control.cs: Implemented proper TabIndex handling, now assigning
22085           a tabindex when a control is added to a container
22086         * GroupBox.cs (ctor): Now sets the Container style bit, required
22087           for Control.GetNextControl()
22088
22089 2005-01-09  Jackson Harper  <jackson@ximian.com>
22090
22091         * TextBoxBase.cs: Clear window when scrolling (fixes build).
22092
22093 2005-01-09  Peter Bartok <pbartok@novell.com>
22094
22095         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
22096           XplatUIX11.cs: Added ability to control ScrollWindow expose and
22097           an overload for ScrollWindow to allow only scrolling a rectangle
22098
22099 2005-01-09  Peter Bartok <pbartok@novell.com>
22100
22101         * Form.cs:
22102           - Implemented SetDesktopBounds method
22103           - Implemented SetDesktopLocation method
22104
22105 2005-01-08  Jackson Harper  <jackson@ximian.com>
22106
22107         * TreeView.cs: Only set the vbar's Maximum and LargeChange when
22108         the node count has changed, this removes to VScroll::Refresh calls
22109         when drawing.
22110
22111 2005-01-08  Geoff Norton  <gnorton@customerdna.com>
22112
22113         * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
22114
22115 2005-01-07  Jackson Harper  <jackson@ximian.com>
22116
22117         * TreeNode.cs: Just update the single node when it is
22118         checked. Don't refresh after toggling, the Expand/Collapse already
22119         handles this.
22120         * TreeView.cs: Respect clipping a little more when drawing. Try
22121         not to redraw things that don't need to be redrawn. Just hide the
22122         scrollbars when they are no longer needed instead of removing
22123         them, so they don't have to be created again and again.
22124         
22125 2005-01-07  Geoff Norton  <gnorton@customerdna.com>
22126
22127         * XplatUIOSX.cs (SetCaretPos):  We need to translate the view
22128         coordinates to window space to place the caret properly, FIXED.
22129         Implement GetWindowState & SetWindowState
22130
22131 2005-01-06  Peter Bartok <pbartok@novell.com>
22132
22133         * Form.cs:
22134           - Implemented ClientSize property
22135           - Implemented DesktopBounds property
22136           - Implemented DesktopLocation property
22137           - Implemented IsRestrictedWindow property
22138           - Implemented Size property
22139           - Implemented TopLevel property
22140           - Implemented FormWindowState property
22141         * Control.cs:
22142           - Implemented GetTopLevel() method
22143           - Implemented SetTopLevel() method
22144         * X11Structs.cs (Atom):
22145           - Added AnyPropertyType definition
22146           - Added MapState definiton and updated XWindowAttribute struct
22147         * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
22148         * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
22149         * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
22150         * XplatUIWin32.cs:
22151           - Implemented GetWindowState() and SetWindowState() methods
22152           - Fixed Win32GetWindowLong return type
22153         * XplatUIX11.cs:
22154           - Introduced central function for sending NET_WM messages
22155           - Implemented GetWindowState() and SetWindowState() methods
22156         * TextBoxBase.cs (set_Lines):
22157           - Now uses Foreground color for text added via Text property (Duh!)
22158           - Added code to remember programmatically requested size (fixes
22159             behaviour when Multiline is set after Size)
22160           - Added AutoSize logic
22161
22162 2005-01-06  Jackson Harper  <jackson@ximian.com>
22163
22164         * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
22165
22166 2005-01-06  Jackson Harper  <jackson@ximian.com>
22167
22168         * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
22169         set to less then 0.
22170
22171 2005-01-06  Jackson Harper  <jackson@ximian.com>
22172
22173         * ScrollableControl.cs: Lazy init the scrollbars.
22174         
22175 2005-01-06  Jackson Harper  <jackson@ximian.com>
22176
22177         * Theme.cs: Speed up getting pens and solid brushes, by using
22178         their ARGB as a hash instead of tostring and not calling Contains.
22179
22180 2005-01-06  Peter Bartok <pbartok@novell.com>
22181
22182         * Form.cs:
22183           - Implemented OnActivated and OnDeactivate event trigger
22184           - Implemented Activate() method
22185           - Fixed ShowDialog() to activate the form that was active before
22186             the dialog was shown
22187         * XplatUIX11.cs:
22188           - Added global active_window var that tracks the currently active
22189             X11 window
22190           - Now always grabs Property changes from the root window to always
22191             catch changes on the active window property
22192           - Added code to PropertyNotify handler to send Active/Inactive
22193             messages when state changes. This puts X11 and Win32 en par on
22194             WM_ACTIVATE notifications (except for double notifications when
22195             the user clicks away from our modal window to another one of our
22196             windows)
22197
22198 2005-01-05  Jackson Harper  <jackson@ximian.com>
22199
22200         * ImageList.cs: Implment ctor
22201
22202 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
22203
22204         * XplatUIOSX.cs: Implement Activate/SetTopmost
22205
22206 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
22207
22208         * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
22209
22210 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
22211
22212         * XplatUIOSX.cs: Implement GetActive/SetFocus.
22213
22214 2005-01-05  Peter Bartok <pbartok@novell.com>
22215
22216         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
22217           XplatUIOSX.cs: Added GetActive method to return the currently
22218           active window for the application (or null, if none is active)
22219         * Form.cs:
22220           - Implemented ActiveForm
22221           - Commented out owner assignment for modal dialogs (causes problems
22222             on Win32, since the owner will be disabled)
22223           - Reworked some Active/Focus handling (still incomplete)
22224         * CommonDialog.cs: Commented out owner assignment for modal dialogs
22225           (causes problems on Win32, since the owner will be disabled)
22226         * IWin32Window: Added ComVisible attribute
22227
22228 2005-01-05  Peter Bartok <pbartok@novell.com>
22229
22230         * ToolTip.cs (WndProc): Enable setting focus now that we have the
22231           required XplatUI functions.
22232
22233 2005-01-05  Peter Bartok <pbartok@novell.com>
22234
22235         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
22236           XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
22237           to implement focus and activation handling; still incomplete and
22238           with debug output
22239
22240 2005-01-04  Peter Bartok <pbartok@novell.com>
22241
22242         * TextBoxBase.cs: Changed access level for Document property to
22243           match switch to internal for TextControl
22244
22245 2005-01-04  Peter Bartok <pbartok@novell.com>
22246
22247         * AccessibleObject: Added ComVisible attribute
22248
22249 2005-01-04  Jackson Harper  <jackson@ximian.com>
22250
22251         * X11Keyboard.cs: Remove unneeded var.
22252
22253 2005-01-04  Jackson Harper  <jackson@ximian.com>
22254
22255         * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
22256         but PAINT.
22257         * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
22258         ClientMessage. This makes apps exit cleanly (more often).
22259         
22260 2005-01-04  Jackson Harper  <jackson@ximian.com>
22261
22262         * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
22263         handling focus, return correct colors and fonts,
22264         * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
22265         handle selection, horizontal scrolling, and mouse interaction.
22266
22267 2005-01-04  Peter Bartok <pbartok@novell.com>
22268
22269         * ICommandExecutor.cs: Added
22270         * IDataGridColumnStyleEditingNotificationService.cs: Added
22271         * IFeatureSupport.cs: Added
22272         * IFileReaderService.cs: Added
22273         * IDataObject.cs: Added ComVisible attribute
22274         * AmbientProperties.cs: Added
22275         * BaseCollection.cs: Added missing attributes
22276         * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
22277         * BaseCollection.cs: Added missing attributes
22278         * Binding.cs: Added TypeConverter attribute
22279         * BindingContext.cs: Added DefaultEvent attribute
22280         * BindingsCollection.cs: Added DefaultEvent attribute
22281         * Button.cs: Added DefaultValue attribute
22282         * DragEventArgs.cs: Added ComVisible attribute
22283         * GiveFeedbackEventArgs.cs: Added ComVisible attribute
22284         * KeyEventArgs.cs: Added ComVisible attribute
22285         * KeyPressEventArgs.cs: Added ComVisible attribute
22286         * MouseEventArgs.cs: Added ComVisible attribute
22287         * NavigateEventArgs.cs: Added
22288         * NavigateEventHandler.cs: Added
22289         * FeatureSupport.cs: Added
22290         * OSFeature.cs: Added
22291         * Theme.cs: Added abstract Version property to support OSFeature
22292         * ThemeWin32Classic.cs: Added Version property to
22293           support OSFeature.Themes
22294         * ProgressBar.cs: Removed OnPaintBackground override, not required since
22295           the proper styles to avoid background drawing are set, also doesn't
22296           match MS signature
22297         * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
22298         * QueryContinueDragEventArgs.cs: Added ComVisible attribute
22299         * ScrollEventArgs.cs: Added ComVisible attribute
22300         * SplitterEventArgs.cs: Added ComVisible attribute
22301         * AccessibleSelection.cs: Added Flags attribute
22302         * Appearance.cs: Added ComVisible attribute
22303         * Border3DSide.cs: Added ComVisible attribute
22304         * Border3DStyle.cs: Added ComVisible attribute
22305         * BorderStyle.cs: Added ComVisible attribute
22306         * DragAction.cs: Added ComVisible attribute
22307         * ErrorBlinkStyle.cs: Added
22308         * ScrollEventType.cs: Added ComVisible attribute
22309         * AnchorStyles.cs: Added Editor attribute
22310         * DockStyle.cs: Added Editor attribute
22311         * HorizontalAlignment.cs: Added ComVisible attribute
22312         * HelpEventArgs.cs: Added ComVisible attribute
22313         * PaintEventArgs.cs: Added IDisposable
22314
22315 2005-01-04  Peter Bartok <pbartok@novell.com>
22316
22317         * TextControl.cs: Switched Line, LineTag and Document classes to
22318           internal
22319
22320 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
22321
22322         * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
22323         Simple mode, fixes, IntegralHeight, etc.
22324
22325 2005-01-04  Peter Bartok <pbartok@novell.com>
22326
22327         * TextBoxBase.cs: Using proper font variable now
22328
22329 2005-01-04  Peter Bartok <pbartok@novell.com>
22330
22331         * Form.cs (ShowDialog): Set parent to owner, if provided
22332         * GroupBox.cs: Removed unused vars
22333         * TextControl.cs:
22334           - Added GetHashCode() for Document and LineTag classes
22335           - Removed unused variables
22336           - Added CharIndexToLineTag() and LineTagToCharIndex() methods
22337             to allow translation between continuous char position and line/pos
22338         * CheckBox.cs: Removed vars that are provided by base class
22339         * RadioButton.cs: Removed vars that are provided by base class, added
22340           new keyword where required
22341         * LinkLabel.cs: Added new keyword where required
22342         * Control.cs (WndProc): Removed unused variable
22343         * TextBoxBase.cs:
22344           - Finished SelectionLength property
22345           - Implemented SelectionStart property
22346           - Implemented Text property
22347           - Removed unused vars
22348         * MessageBox.cs: Added new keyword where required
22349         * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
22350           WndProc signature
22351         * MenuAPI.cs: Added new keyword where required
22352         * ButtonBase.cs: Removed vars that are provided by base class, added
22353           new keyword where required
22354         * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
22355           argument to double, to allow compiling with csc 2.0 (Atsushi ran
22356           into this)
22357         * Application.cs (Run): Now triggers the ThreadExit event
22358         * CommonDialog.cs: Added new keyword where required; now properly sets
22359           parent (owner) for dialog
22360         * XplatUIX11.cs: Commented out unused vars
22361         * StatusBar.cs: Fixed signature for Text property
22362         * TabPage.cs: Undid Jordi's removal of unused var, now using the var
22363
22364 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
22365
22366         * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
22367         TrackBar.cs, MonthCalendar.cs: remove unused vars
22368
22369 2005-01-03  Jackson Harper  <jackson@ximian.com>
22370
22371         * ThemeWin32Classic.cs:
22372         * X11Keyboard.cs: Remove unused vars.
22373
22374 2005-01-03  Peter Bartok  <pbartok@novell.com>
22375
22376         * TextBox.cs:
22377           - set_Text: Tied into TextControl
22378           - set_TextAlignment: Tied into TextControl
22379         * TextControl.cs:
22380           - Added alignment properties and implemented alignment handling
22381             and drawing (still has a bug, not generating proper expose events)
22382           - Added new Line() constructor to allow passing the line alignment
22383           - Fixed selection setting, properly handling end<start now
22384           - Added aligment considerations to RecalculateDocument()
22385         * TextBoxBase.cs:
22386           - Now properly enforces control height for single line controls
22387           - Added support for CharacterCasing
22388           - Added IsInputKey override
22389           - Fixed Keys.Enter logic
22390           - Added SetBoundsCore override
22391           - Fixed mouse selection handling
22392
22393 2005-01-03  Jackson Harper  <jackson@ximian.com>
22394
22395         * TreeView.cs:
22396           - Collapse and uncheck all nodes when CheckBoxes is disabled.
22397           - Checkboxes are always aligned to the bottom of the node,
22398           regardless of item height.
22399           - Use the node bounds to draw the text so we can center it when
22400           the item height is greater then the font height.
22401           - Node::Bounds are only the text part of the node.
22402         * TreeNode.cs: New method to combine collapsing and unchecking all
22403           nodes recursively.
22404
22405 2005-01-02  Jackson Harper  <jackson@ximian.com>
22406
22407         * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
22408         * TreeNode.cs: Add a bounding box for the checkbox, refresh the
22409         tree when a check is changed. TODO: Only refresh the checked node.
22410
22411 2004-12-30  Jackson Harper  <jackson@ximian.com>
22412
22413         * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
22414         * TreeNode.cs: When collapsing make sure to never collapse the
22415         root node.
22416
22417 2004-12-29  Jackson Harper  <jackson@ximian.com>
22418
22419         * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
22420         
22421 2004-12-28  Zoltan Varga  <vargaz@freemail.hu>
22422
22423         * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
22424
22425 2004-12-28  Peter Bartok  <pbartok@novell.com>
22426
22427         * MessageBox.cs (get_CreateParams): Don't use owner var if it's
22428           not yet assigned
22429
22430 2004-12-28  Peter Bartok  <pbartok@novell.com>
22431
22432         * Control.cs (WndProc): Added WM_HELP handler, now generates
22433           HelpRequested event
22434         * Form.cs: Added HelpButton property and required support code
22435         * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
22436
22437 2004-12-28  Peter Bartok  <pbartok@novell.com>
22438
22439         * CommonDialog.cs:
22440           - Made DialogForm.owner variable internal
22441           - Added check to ensure owner form is set before setting
22442             owner properties in CreateParams
22443
22444 2004-12-28  Geoff Norton  <gnorton@customerdna.com>
22445
22446         * XplatUIOSX.cs: Implement mouse hovering.  Fix QDPoint struct to avoid
22447           swizzling.  Implement ClientToScreen and ScreenToClient.  Implement
22448           GetCursorPos.  Fix major visibility issues.  Rework the windowing
22449           system to support borderless/titleless windows (implements menus).
22450           Fix GetWindowPos.  Implement initial background color support for
22451           views.
22452
22453 2004-12-28  Peter Bartok  <pbartok@novell.com>
22454
22455         * Form.cs (get_CreateParams): Make sure we have an owner before using
22456           the owner variable. Implement proper default if no owner exists
22457
22458 2004-12-28  Peter Bartok  <pbartok@novell.com>
22459
22460         * In preparation for making Managed.Windows.Forms the default build target
22461           for System.Windows.Forms, the following stubbed files were added.
22462           Dialogs are currently being implemented by contributors and are only
22463           short-term place holders.
22464         * ColorDialog.cs: Initial check-in (minmal stub)
22465         * DataGrid.cs: Initial check-in (minimal stub)
22466         * DataGridLineStyle.cs: Initial check-in (minimal stub)
22467         * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
22468         * DataGridTableStyle.cs: Initial check-in (minimal stub)
22469         * FontDialog.cs: Initial check-in (minimal stub)
22470         * FileDialog.cs: Initial check-in (minimal stub)
22471         * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
22472         * GridTableStylesCollection.cs: Initial check-in (minimal stub)
22473         * OpenFileDialog: Initial check-in (minimal stub)
22474         * IComponentEditorPageSite.cs: Initial check-in
22475         * Splitter.cs: Initial check-in (for Jackson)
22476         * SplitterEventArgs.cs: Initial check-in (for Jackson)
22477         * SplitterEventHandler.cs: Initial check-in (for Jackson)
22478         * TextBox.cs: Initial check-in; still needs some wiring to
22479           TextControl backend
22480         * Form.cs: Implemented ControlBox property
22481         * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
22482         * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
22483         * TextControl.cs: Added selection functionality; added todo header
22484         * TextBoxBase.cs:
22485           - Implemented Lines property
22486           - Implemented TextHeight property
22487           - Implemented SelectedText property
22488           - Implemented SelectionLength property
22489           - Implemented SelectAll method
22490           - Implemented ToString method
22491           - Removed and cleaned up some debug code
22492           - Implemented (still buggy) mouse text selection
22493
22494 2004-12-27  Jordi Mas i Hernandez <jordi@ximian.com>
22495
22496         * ComboBox.cs: Complete DropDownList implementation, fixes.
22497
22498 2004-12-26  Jordi Mas i Hernandez <jordi@ximian.com>
22499
22500         * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
22501         * ComboBoxStyle.cs: ComboBoxStyle enum
22502         * ComboBox.cs: Initial work on ComboBox control
22503
22504 2004-12-21  Peter Bartok  <pbartok@novell.com>
22505
22506         * Control.cs (ctor, CreateParams): Moved setting of is_visible
22507           forward so that anything that creates a window gets the default,
22508           also no longer uses Visible property in CreateParams to avoid
22509           walking up the parent chain and possibly get the wrong visible
22510           status. Fixed IsVisible to no longer walk up to the parent.
22511
22512 2004-12-21  Peter Bartok  <pbartok@novell.com>
22513
22514         * Form.cs (ShowDialog): Unset modality for the proper window
22515  
22516 2004-12-20  Peter Bartok  <pbartok@novell.com>
22517
22518         * CommonDialog.cs: Initial check-in
22519
22520 2004-12-20  Peter Bartok  <pbartok@novell.com>
22521
22522         * Control.cs (Visible): Now uses the parent window instead of the
22523           client area window for the property
22524
22525         * Form.cs
22526           - ShowDialog(): Now uses the proper window for modality
22527           - The default visibility state for the form parent is now false. This
22528             will prevent the user from seeing all the changes to the form and
22529             its controls before the application hits Application.Run()
22530           - Removed some stale commented out code
22531
22532         * NativeWindow.cs:
22533           - Added FindWindow() method to have a method to check for existence
22534             of a window handle
22535           - Added ability to override default exception handling (for example
22536             when debugging with VS.Net; to do this the ExternalExceptionHandler
22537             define must be set
22538           - Removed some useless debug output
22539
22540         * XplatUIX11.cs:
22541           - Removed r37929 (SetModal patch from Ashwin Bharambe), was
22542             not working as expected
22543           - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
22544             property to allow switching back to the modal window if focus is
22545             given to another one of our windows (Application Modal)
22546           - Now only sets override_redirect if we create a window
22547             without WS_CAPTION
22548           - Moved EventMask selection before mapping of newly created window
22549             so we can catch the map event as well
22550           - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
22551           - Added various Atom related DllImports
22552           - Implemented Exit() method
22553           - .ctor() : No longer shows window if WS_VISIBLE is not defined
22554             in the CreateParams
22555
22556         * MessageBox.cs: Now properly deals with the FormParent window by
22557           providing an override the FormParent CreateParams property to
22558           set as POPUP instead of OVERLAPPED window.
22559
22560 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
22561
22562         * XplatUIOSX.cs: Implement DestroyWindow.  Implement ScrollWindow
22563         Minor code cleanup.
22564
22565 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
22566         
22567         * XplatUIOSX.cs (SetModal): Implement this method on OSX.
22568
22569 2004-12-18  Peter Bartok  <pbartok@novell.com>
22570
22571         * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
22572           implementing SetModal() method
22573
22574 2004-12-18  Peter Bartok  <pbartok@novell.com>
22575
22576         * X11Structs.cs (XGCValues): Fixed type of function element
22577         * XplatUI.cs: Added ScrollWindow() method
22578         * XplatUIDriver.cs: Added ScrollWindow() abstract
22579         * XplatUIWin32.cs: Implemented ScrollWindow() method
22580         * XplatUIX11.cs: Implemented ScrollWindow() method
22581         * XplatUIOSX.cs: Stubbed out ScrollWindow() method
22582
22583 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
22584
22585         * XplatUIOSX.cs:  Fix cursor to use an Invert instead of drawing it
22586         Some more keyboard support (INCOMPLETE)
22587
22588 2004-12-17  Peter Bartok  <pbartok@novell.com>
22589
22590         * TextControl.cs:
22591         - Added color attribute to line tags.
22592         - Added color argument to all functions dealing with tags
22593         - Added color argument support to various functions
22594         - Fixed miss-calculation of baseline/shift in certain circumstances
22595
22596         * TextBoxBase.cs: Added new color option to test code
22597
22598 2004-12-17  Jackson Harper  <jackson@ximian.com>
22599
22600         * TreeNode.cs:
22601         * MonthCalendar.cs: Signature fixes
22602
22603 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
22604
22605         * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
22606         keyboard event moved it.  Create a new graphics context for each paint resolves this
22607
22608 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
22609
22610         * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
22611         Make caret exist and go blink blink.  Initial keyboard support.
22612         Fix exception handler, Add Invalidate support.  Change way RefreshWindow
22613         works.
22614
22615 2004-12-17  Jackson Harper  <jackson@ximian.com>
22616
22617         * XplatUIStructs.cs: Updated set of virtual keycodes.
22618         * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
22619
22620 2004-12-17  Jackson Harper  <jackson@ximian.com>
22621
22622         * XplatUIX11.cs: Prune old keyboard code.
22623
22624 2004-12-17  Jackson Harper  <jackson@ximian.com>
22625
22626         * XplatUIX11.cs: When generating mouse wparams get the modifier
22627         keys from the ModifierKeys property.
22628
22629 2004-12-17  Jackson Harper  <jackson@ximian.com>
22630
22631         * X11Keyboard.cs: Send up/down input when generating
22632         messages. Remove some unused vars.
22633
22634 2004-12-17  Jackson Harper  <jackson@ximian.com>
22635
22636         * TabControl.cs:
22637         * TreeView.cs: get rid of warnings.
22638
22639 2004-12-17  Jackson Harper  <jackson@ximian.com>
22640
22641         * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
22642
22643 2004-12-17  Jordi Mas i Hernandez <jordi@ximian.com>
22644
22645         * ListBox.cs: bug fixes, changes for CheckedListBox.cs
22646           CheckedListBox.cs: Implementation
22647
22648 2004-12-17  Peter Bartok  <pbartok@novell.com>
22649
22650         * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
22651
22652 2004-12-16  Peter Bartok  <pbartok@novell.com>
22653
22654         * TextControl.cs:
22655           - InsertCharAtCaret(): Fixed start pos fixup
22656           - CaretLine_get: No longer derives the line from the tag, the tag
22657             could be stale if lines in the document have been added or deleted
22658           - RebalanceAfterDelete(): Fixed bug in balancing code
22659           - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
22660           - Line.Streamline(): Now can also elminate leading empty tags
22661           - DumpTree(): Added a few more tests and prevented exception on
22662             uninitialized data
22663           - Added Debug section for Combining lines
22664           - Delete(): Now copies all remaining properties of a line
22665           
22666         * TextBoxBase.cs:
22667           - Left mousebutton now sets the caret (and middle button still acts
22668             as formatting tester, which must go away soon)
22669           - Added Debug section for Deleting/Combining lines
22670           - Fixed calculations for UpdateView after Combining lines
22671
22672 2004-12-16  Peter Bartok  <pbartok@novell.com>
22673
22674         * TextControl.cs: Now properly aligns text on a baseline, using the
22675           new XplatUI.GetFontMetrics() method. Simplified several calculations
22676         * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
22677           defined
22678
22679 2004-12-16  Peter Bartok  <pbartok@novell.com>
22680
22681         * XplatUI.cs: Added GetFontMetrics() method
22682         * XplatUIDriver.cs: Added GetFontMetrics() abstract
22683         * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
22684           into libgdiplus, our private GetFontMetrics function
22685         * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
22686         * XplatUIWin32.cs: Implemented GetFontMetrics() method
22687
22688 2004-12-16  Jackson Harper  <jackson@ximain.com>
22689
22690         * XplatUIStruct.cs: Add enum for dead keys
22691         * X11Keyboard.cs: Map and unmap dead keys.
22692
22693 2004-12-16  Jackson Harper  <jackson@ximian.com>
22694
22695         * X11Keyboard.cs: Detect and use the num lock mask.
22696
22697 2004-12-16  Peter Bartok  <pbartok@novell.com>
22698
22699         * Control.cs (CreateGraphics): Added check to make sure the
22700           handle of the window exists before calling Graphics.FromHwnd()
22701
22702 2004-12-16  Peter Bartok  <pbartok@novell.com>
22703
22704         * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
22705           contains a lot of code that's not supposed to be there for the
22706           real thing, but required for developing/testing the textbox
22707           backend.
22708
22709 2004-12-16  Peter Bartok  <pbartok@novell.com>
22710
22711         * TextControl.cs:
22712         - Fixed Streamline method
22713         - Added FindTag method to Line
22714         - Added DumpTree method for debugging
22715         - Added DecrementLines() method for deleting lines
22716         - Fixed UpdateView to update the cursor to end-of-line on single-line
22717           updates
22718         - Added PositionCaret() method
22719         - Fixed MoveCaret(LineDown) to move into the last line, too
22720         - Added InsertChar overload
22721         - Fixed InsertChar tag offset calculations
22722         - Added DeleteChar() method
22723         - Added Combine() method for folding lines
22724         - Fixed Delete() method, no longer allocates wasted Line object and
22725           now copies all properties when swapping nodes
22726         - Delete() method now updates document line counter
22727
22728 2004-12-15  Jackson Harper  <jackson@ximian.com>
22729
22730         * XplatUIX11.cs: Get the modifier keys from the keyboard driver
22731         * X11Keyboard.cs: Expose the currently selected modifier keys
22732         through a property.
22733
22734 2004-12-15  Peter Bartok  <pbartok@novell.com>
22735
22736         * TextControl.cs: Initial check-in. Still incomplete
22737
22738 2004-12-15  Jackson Harper  <jackson@ximian.com>
22739
22740         * TreeNode.cs:
22741         * TreeView.cs: Fix build on csc (second time today ;-))
22742
22743 2004-12-15  Jackson Harper  <jackson@ximian.com>
22744
22745         * TreeView.cs: Store the treenodes plus/minus box bounds when it
22746         is calculated and use this for click testing.
22747         * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
22748
22749 2004-12-15  Jackson Harper  <jackson@ximian.com>
22750
22751         * TreeView.cs: Pass the nodes image index to the image list when
22752         drawing that image.
22753
22754 2004-12-15  Jackson Harper  <jackson@ximian.com>
22755
22756         * X11Keyboard.cs: Set messages hwnd.
22757         * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
22758         post_message calls.
22759
22760 2004-12-15  Jackson Harper  <jackson@ximian.com>
22761
22762         * X11Keyboard.cs: Fix to compile with csc.
22763         
22764 2004-12-15  Jackson Harper  <jackson@ximian.com>
22765
22766         * X11Structs.cs: Add key mask values
22767         * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
22768         * X11Keyboard.cs: New file - Extrapolates and interpolates key
22769         down/up foo into WM_CHAR foo
22770         * KeyboardLayouts.cs: Common keyboard layouts
22771         * XplatUIX11.cs: Add the keyboard driver. Add functionality to
22772         post messages into the main queue.
22773
22774 2004-12-13  Jordi Mas i Hernandez <jordi@ximian.com>
22775
22776         * Button.cs: implement ProcessMnemonic
22777         * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
22778           brushes everytime
22779         * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
22780         * ButtonBase.cs: Show HotkeyPrefix (not the &)
22781
22782 2004-12-12  John BouAntoun  <jba-mon@optusnet.com.au>
22783         
22784         * MonthCalendar.cs: Implemented click-hold for next/previous month
22785           and date selection
22786           
22787 2004-12-11  Peter Bartok  <pbartok@novell.com>
22788
22789         * X11Structs.cs:
22790           - Added XKeyboardState (moved from XplatUIX11.cs)
22791           - Added XCreateGC related enums and structures
22792           - Added GXFunction for XSetFunction
22793
22794         * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
22795
22796         * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
22797           CaretVisible() calls
22798
22799         * ToolTip.cs: Added code to prevent stealing focus from app windows
22800
22801         * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
22802           DestroyCaret, SetCaretPos and CaretVisible)
22803
22804         * XplatUIX11.cs:
22805           - Added implementation for caret functions
22806           - Moved hover variables into a struct, to make it a bit easier
22807             on the eyes and to debug
22808           - Removed XKeyboardState (moved to XplatUIX11.cs)
22809           - Moved Keyboard properties into the properties region
22810
22811         * Control.cs (get_Region): Control.CreateGraphics is the appropriate
22812           call to get a graphics context for our control
22813
22814         * XplatUIOSX.cs: Added empty overrides for the new caret functions
22815
22816         * TreeView.cs: Fixed bug. No matter what color was set it would always
22817           return SystemColors.Window
22818
22819         * XplatUIWin32.cs: Implemented caret overrides
22820
22821 2004-12-10  Jordi Mas i Hernandez <jordi@ximian.com>
22822
22823         * ListBox.cs: fire events, implement missing methods and properties,
22824         sorting.
22825
22826 2004-12-10  John BouAntoun <jba-mono@optusnet.com.au>
22827
22828         * MonthCalendar.cs: invalidation bug fixing
22829         * ThemeWin32Classic.cs: paint fixing
22830
22831 2004-12-09  Geoff Norton  <gnorton@customerdna.com>
22832
22833         * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
22834         prepare the CGContextRef there now.
22835
22836 2004-12-09  John BouAntoun <jba-mono@optusnet.com.au>
22837
22838         * MonthCalendar.cs:
22839           - optimisationL only invalidate areas that have changed
22840         * ThemeWin32Classic.cs:
22841           - only paint parts that intersect with clip_area
22842
22843 2004-12-09  Peter Bartok  <pbartok@novell.com>
22844
22845         * Application.cs: Undid changes from r37004 which cause problems
22846         on X11
22847
22848 2004-12-09  Ravindra  <rkumar@novell.com>
22849
22850         * ToolBar.cs: Added support for displaying ContextMenu
22851         attached to a button on ToolBar.
22852         * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
22853         property.
22854
22855 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
22856
22857         * Label.cs: autosize works in text change and removes unnecessary
22858         invalidate
22859
22860 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
22861
22862         * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
22863         remove warnings
22864
22865 2004-12-08  Geoff Norton  <gnorton@customerdna.com>
22866
22867         * XplatUIOSX.cs: Added mouse move/click/grab support
22868         Remove some debugging WriteLines not needed anymore.
22869         Add window resizing/positioning.
22870         Fix visibility on reparenting.
22871
22872 2004-12-08  Peter Bartok  <pbartok@novell.com>
22873
22874         * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
22875
22876 2004-12-07  Geoff Norton  <gnorton@customerdna.com>
22877
22878         * XplatUIOSX.cs: Initial checkin
22879         * XplatUI.cs: Use the Quartz driver if the environment is set to use it
22880
22881 2004-12-03  Ravindra <rkumar@novell.com>
22882
22883         * ListView.cs: Added some keybindings and fixed scrolling.
22884         ScrollBars listen to ValueChanged event instead of Scroll
22885         Event. This would let us take care of all changes being
22886         done in the scrollbars' values programmatically or manually.
22887         * ListView.cs (CanMultiselect): Added a check for shift key.
22888         * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
22889         * ListViewItem.cs (Clone): Fixed. We need to make a copy
22890         of ListViewSubItemCollection as well.
22891
22892 2004-12-06  Peter Bartok <pbartok@novell.com>
22893
22894         * Control.cs (Parent): Added check and exception to prevent
22895         circular parenting
22896
22897 2004-12-03  Jordi Mas i Hernandez <jordi@ximian.com>
22898
22899         * ListBox.cs: implemented clipping, selection single and multiple,
22900         bug fixing
22901
22902 2004-12-03  Ravindra <rkumar@novell.com>
22903
22904         * ListView.cs (ListView_KeyDown):
22905         * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
22906         when CTRL key is pressed.
22907         * ListViewItem.cs (Selected): Fixed setting the property.
22908
22909 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
22910
22911         * Application.cs (OnThreadException): Use ThreadExceptionDialog.
22912
22913         * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
22914         MinimizeBox, ShowInTaskbar, TopMost properties.
22915
22916         * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
22917         will be implemented).
22918
22919 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
22920
22921         * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
22922
22923         * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
22924         tests.
22925         
22926         * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
22927         
22928         * TreeView.cs: BackColor is Colors.Window.
22929
22930 2004-12-01  Jackson Harper  <jackson@ximian.com>
22931
22932         * TreeView.cs: When resizing the tree if the user is making it
22933         smaller we don't get expose events, so we need to handle adding
22934         the horizontal scrollbar in the size changed handler as well as
22935         the expose handler.
22936
22937 2004-12-02  Jordi Mas i Hernandez <jordi@ximian.com>
22938
22939         * DrawItemState.cs: fixes wrong enum values
22940
22941 2004-12-01  Jackson Harper  <jackson@ximian.com>
22942
22943         * TreeView.cs: Resize the hbar as well as the vbar on resize.
22944
22945 2004-12-01  Jackson Harper  <jackson@ximian.com>
22946
22947         * NodeLabelEditEventArgs.cs:
22948         * NodeLabelEditEventHandler.cs:
22949         * OpenTreeNodeEnumerator.cs:
22950         * TreeNode.cs:
22951         * TreeNodeCollection.cs:
22952         * TreeView.cs:
22953         * TreeViewAction.cs:
22954         * TreeViewCancelEventArgs.cs:
22955         * TreeViewCancelEventHandler.cs:
22956         * TreeViewEventArgs.cs:
22957         * TreeViewEventHandler.cs: Initial implementation.
22958
22959 2004-12-01  Ravindra <rkumar@novell.com>
22960
22961         * ListView.cs (CalculateListView): Fixed scrolling related
22962         calculations. Also, removed some debug statements from other
22963         places.
22964         * ListViewItem.cs: Changed access to 'selected' instance variable
22965         from private to internal.
22966         * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
22967
22968 2004-12-01  Jordi Mas i Hernandez <jordi@ximian.com>
22969
22970         * ThemeWin32Classic.cs: remove cache of brush and pens for
22971         specific controls and use the global system, fixes scrollbutton
22972         bugs (for small sizes, disabled, etc)
22973         
22974         * ScrollBar.cs: does not show the thumb for very small controls
22975         (as MS) and allow smaller buttons that the regular size
22976
22977 2004-12-01  Miguel de Icaza  <miguel@ximian.com>
22978
22979         * UpDownBase.cs: Add abstract methods for the interface.
22980         Add new virtual methods (need to be hooked up to TextEntry when it
22981         exists).
22982         Add override methods for most features.
22983         Computes the size, forces the height of the text entry.
22984
22985         * NumericUpDown.cs: Put here the current testing code.
22986
22987         * Set eol-style property on all files that do not have mixed line
22988         endings, to minimize the future problems.  There are still a few
22989         files with mixed endings, and someone should choose whether they
22990         want to move it or not.
22991
22992 2004-11-30  Jordi Mas i Hernandez <jordi@ximian.com>
22993
22994         * MonthCalendar.cs, ListView.cs: use Theme colours instead of
22995         System.Colors
22996         
22997 2004-11-30  Ravindra <rkumar@novell.com>
22998
22999         * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
23000         drawing and replaced use of SystemColors by theme colors.
23001         * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
23002         * ListView.cs (ListViewItemCollection.Add): Throw exception when
23003         same ListViewItem is being added more than once.
23004
23005 2004-11-30  John BouAntoun <jba-mono@optusnet.com.au>
23006
23007         * MonthCalendar.cs:
23008           - ControlStyles love to make the control not flicker
23009           
23010 2004-11-30  Peter Bartok  <pbartok@novell.com>
23011
23012         * CharacterCasing.cs: Added
23013
23014 2004-11-29  Peter Bartok  <pbartok@novell.com>
23015
23016         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
23017           TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
23018           I am removing these files as they conflict with already completed
23019           work. While it is fantastic to get contributions to MWF, I
23020           respectfully ask that everyone please coordinate their contributions
23021           through mono-winforms-list or #mono-winforms at this time. We're
23022           explicitly avoiding stubbing and don't want controls that don't have
23023           their basic functionality implemented in svn. Please also see
23024           http://www.mono-project.com/contributing/winforms.html
23025
23026
23027 2004-11-29  Marek Safar  <marek.safar@seznam.cz>
23028
23029         * Application.cs (ModalRun): Don't hang after exit.
23030
23031         * Theme.cs: New TreeViewDefaultSize property.
23032
23033         * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
23034         with less hardcoded SystemColors constant.
23035         Implemented TreeViewDefaultSize.
23036
23037         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
23038         TreeViewAction.cs, TreeViewEventArgs.cs: New files.
23039
23040
23041 2004-11-29  John BouAntoun <jba-mono@optusnet.com.au>
23042
23043         * MonthCalendar.cs:
23044           - Fix NextMonthDate and PrevMonthDate click moving calendar
23045
23046 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
23047
23048         * MonthCalendar.cs:
23049           - Fix usage of ScrollChange Property when scrolling months
23050
23051 2004-11-26  Jordi Mas i Hernandez <jordi@ximian.com>
23052
23053         * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
23054          - Fixes menu destroying
23055          - Support adding and removing items on already created menus
23056
23057 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
23058
23059         * MonthCalendar.cs:
23060           - Re-worked all bolded dates handling to match win32
23061         * ThemeWin32Classic.cs:
23062           - Fixed rendering with bolded dates
23063
23064 2004-11-25  Jordi Mas i Hernandez <jordi@ximian.com>
23065
23066         * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
23067         - Horizontal scroolbar
23068         - Multicolumn
23069         - Fixes
23070
23071
23072 2004-11-25  John BouAntoun <jba-mono@optusnet.com.au>
23073
23074         * MonthCalendar.cs:
23075           - Fix Usage of MaxSelectionCount from SelectionRange
23076           - Fixed Shift + Cursor Selection
23077           - Fixed Shift + (Pg up/Pg dn, Home/End) selection
23078           - Fixed normal cursor selection to be compat with win32
23079           - Fixed Shift + Mouse Click selection
23080
23081 2004-11-24  Peter Bartok <pbartok@novell.com>
23082
23083         * XplatUI.cs (DispatchMessage): Switched to return IntPtr
23084         * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
23085         * XplatUIX11.cs:
23086           - CreatedKeyBoardMsg now updates keystate with Alt key
23087           - Added workaround for timer crash to CheckTimers, Jackson will
23088             develop a proper fix and check in later
23089           - Implemented DispatchMessage
23090           - Removed calling the native window proc from GetMessage (call
23091             now moved to DispatchMessage)
23092
23093         * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
23094           the keydata (Fixes bug #69831)
23095
23096         * XplatUIWin32.cs:
23097           - (DispatchMessage): Switched to return IntPtr
23098           - Added DllImport for SetFocus
23099
23100 2004-11-24  Ravindra <rkumar@novell.com>
23101
23102         * ThemeWin32Classic.cs: Fixed ListView border and checkbox
23103         background drawing.
23104         * ListViewItem.cs: Fixed various properties, calculations
23105         and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
23106         * ListView.cs: Fixed calculations, BackColor, ForeColor properties
23107         and some internal properties. Fixed MouseDown handler and Paint
23108         method.
23109
23110 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
23111
23112         * MonthCalendar.cs: Add TitleMonth ContextMenu handling
23113
23114 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
23115
23116         * ContainerControl.cs: correct accidental check in of local changes
23117
23118 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
23119
23120         * ThemeWin32Classic.cs:
23121                 - Fixed Drawing Last month in grid (sometimes not showing)
23122         * MonthCalendar.cs:
23123                 - Fixed title width calculation bug (makeing title small)
23124
23125 2004-11-23  Peter Bartok <pbartok@novell.com>
23126
23127         * XplatUIX11.cs:
23128           - Added generation of WM_MOUSEHOVER event
23129           - Added missing assignment of async_method atom
23130           - Fixed WM_ERASEBKGND; now only redraws the exposed area
23131
23132 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
23133
23134         * ThemeWin32Classic.cs:
23135                 - Fixed Drawing of today circle when showtodaycircle not set
23136                 - fixed drawing of first and last month in the grid (gay dates)
23137         * MonthCalendar.cs:
23138                 - Fixed Drawing of today circle
23139                 - Fixed drawing of grady dates
23140                 - Fixed HitTest for today link when ShowToday set to false
23141                 - Fixed DefaultSize to obey ShowToday
23142
23143 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
23144
23145         * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
23146         * System.Windows.Forms/Theme.cs
23147         * MonthCalendar.cs: added for MonthCalendar
23148         * SelectionRange.cs: added for MonthCalendar
23149         * Day.cs: added for MonthCalendar: added for MonthCalendar
23150         * DateRangeEventArgs.cs: added for MonthCalendar
23151         * DateRangeEventHandler.cs: added for MonthCalendar
23152
23153 2004-11-22  Ravindra <rkumar@novell.com>
23154
23155         * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
23156         property.
23157
23158 2004-11-22  Miguel de Icaza  <miguel@ximian.com>
23159
23160         * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
23161         event handler.
23162         
23163         * NumericUpDown.cs: Added new implementation.
23164         * UpDownBase.cs: Added new implementation.
23165
23166         * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
23167         implementations.
23168         
23169         * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
23170         implementations.
23171
23172         * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
23173         methods.
23174
23175 2004-11-21  Miguel de Icaza  <miguel@ximian.com>
23176
23177         * Timer.cs  (Dispose): Should call the base dispose when
23178         overriding.
23179
23180 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
23181
23182         * ScrollBar.cs: updates thumb position when max, min or increment
23183         is changed
23184
23185 2004-11-21  Ravindra <rkumar@novell.com>
23186
23187         * ListView.cs: Implemented item selection, activation and
23188         column header style. Fixed properties to do a redraw, if
23189         required. Added support for MouseHover, DoubleClick, KeyDown
23190         and KeyUp event handling and some minor fixes.
23191         * ListViewItem.cs: Fixed constructor.
23192         * ThemeWin32Classic.cs: Improved drawing for ListView.
23193
23194 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
23195
23196         * ThemeWin32Classic.cs: initial listbox drawing code
23197         * DrawMode.cs: new enumerator
23198         * ListControl.cs: stubbed class
23199         * ListBox.cs: initial implementation
23200         * Theme.cs: new methods definitions
23201         * SelectionMode.cs: new enumerator
23202
23203 2004-11-17  Peter Bartok  <pbartok@novell.com>
23204
23205         * XplatUIWin32.cs: Added double-click events to the class style
23206         * Control.cs (WndProc):
23207           - Added handling of click-count to MouseDown/ MouseUp events.
23208           - Added handling of middle and right mouse buttons
23209           - Removed old debug code
23210
23211 2004-11-17  Jackson Harper  <jackson@ximian.com>
23212
23213         * XplatUIX11.cs: Use the new Mono.Unix namespace.
23214
23215 2004-11-17  Ravindra <rkumar@novell.com>
23216
23217         * ListView.cs: Added event handling for MouseMove/Up/Down.
23218         * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
23219         * ThemeWin32Classic.cs: We need to clear the graphics context and
23220         draw column header in a proper state.
23221
23222
23223 2004-11-17  Jordi Mas i Hernandez <jordi@ximian.com>
23224
23225         *  Menu.cs: fixes signature
23226
23227 2004-11-16  Peter Bartok  <pbartok@novell.com>
23228
23229         * XplatUIX11.cs (GetMessage): Implemented generation of
23230           double click mouse messages
23231
23232 2004-11-12  Jordi Mas i Hernandez <jordi@ximian.com>
23233
23234         *  Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
23235         not by menu
23236
23237 2004-11-11  Peter Bartok  <pbartok@novell.com>
23238
23239         * HandleData.cs: Added Visible property
23240         * XplatUIX11.cs (IsVisible): Now uses Visible property from
23241           HandleData
23242         * XplatUIX11.cs: Removed old debug leftovers
23243         * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
23244         * Control.cs (WndProc): Removed old debug leftovers,
23245           streamlined handling of WM_WINDOWPOSCHANGED, removed un-
23246           needed WM_SIZE handling
23247
23248 2004-11-11  Jackson Harper  <jackson@ximian.com>
23249
23250         * OwnerDrawPropertyBag.cs:
23251         * TreeViewImageIndexConverter.cs: Initial implementation
23252
23253 2004-11-10  Jackson Harper  <jackson@ximian.com>
23254
23255         * ThemeWin32Classic.cs:
23256         * TabControl.cs: instead of moving tabs by the slider pos just
23257         start drawing at the tab that is offset by the slider. This way
23258         scrolling always moves by exactly one tab.
23259
23260 2004-11-10  Jackson Harper  <jackson@ximian.com>
23261
23262         * TabControl.cs: You can only scroll left when the slider has
23263         already ben moved right.
23264         
23265 2004-11-10  Jackson Harper  <jackson@ximian.com>
23266
23267         * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
23268         the clip area.
23269         
23270 2004-11-10  Jackson Harper  <jackson@ximian.com>
23271
23272         * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
23273         clip area.
23274         
23275 2004-11-09  Jackson Harper  <jackson@ximian.com>
23276
23277         * TabControl.cs (CalcXPos): New helper method so we can determine
23278         the proper place to start drawing vertical tabs.
23279         * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
23280         
23281 2004-11-09  Jackson Harper  <jackson@ximian.com>
23282
23283         * TabControl.cs: Calculate sizing and rects for left aligned tabs.
23284         * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
23285         and Bottom, left and right are illegal values for this and
23286         multiline is enabled when the alignment is set to left or right.
23287         (DrawTab): Each alignment block should draw the text itself now
23288         because Left requires special love. Also add rendering for Left
23289         aligned tabs.
23290         
23291 2004-11-09  Jordi Mas i Hernandez <jordi@ximian.com>
23292
23293         *  Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
23294         does not destroy the windows, removes debugging messages
23295
23296 2004-11-09  jba  <jba-mono@optusnet.com.au>
23297
23298         * ThemeWin32Classic.cs
23299         (DrawButtonBase): Fix verticle text rect clipping in windows
23300         (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
23301         rendering and incorrect text rect clipping
23302         (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
23303         rendering and incorrect text rect clipping
23304         
23305 2004-11-08  Jackson Harper  <jackson@ximian.com>
23306
23307         * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
23308         bottom when they are bottom aligned so the bottoms of the tabs get
23309         displayed.
23310         * TabControl.cs (DropRow): Move rows up instead of down when the
23311         tab control is bottom aligned.
23312
23313 2004-11-08 13:59  pbartok
23314
23315         * XplatUIX11.cs:
23316           - Added handling for various window styles
23317           - Added handling for popup windows
23318           - Added SetTopmost handling
23319
23320 2004-11-08 13:55  pbartok
23321
23322         * XplatUIWin32.cs:
23323           - Added argument to SetTopmost method
23324           - Fixed broken ClientToScreen function
23325
23326 2004-11-08 13:53  pbartok
23327
23328         * XplatUIStructs.cs:
23329           - Added missing WS_EX styles
23330
23331 2004-11-08 13:53  pbartok
23332
23333         * XplatUI.cs, XplatUIDriver.cs:
23334           - Added argument to SetTopmost
23335
23336 2004-11-08 13:52  pbartok
23337
23338         * X11Structs.cs:
23339           - Added XSetWindowAttributes structure
23340           - Improved XWindowAttributes structure
23341           - Added SetWindowValuemask enum
23342           - Added window creation arguments enum
23343           - Added gravity enum
23344           - Added Motif hints structure
23345           - Added various Motif flags and enums
23346           - Added PropertyMode enum for property functions
23347
23348 2004-11-08 13:50  pbartok
23349
23350         * Form.cs:
23351           - Fixed arguments for updated SetTopmost method
23352
23353 2004-11-08 13:49  pbartok
23354
23355         * ToolTip.cs:
23356           - Fixed arguments for updated SetTopmost function
23357           - Fixed usage of PointToClient
23358
23359 2004-11-08 13:44  pbartok
23360
23361         * MenuAPI.cs:
23362           - Added Clipping of children and siblings
23363
23364 2004-11-08 13:41  pbartok
23365
23366         * MainMenu.cs:
23367           - Removed SetMenuBarWindow call. We do this in Form.cs
23368
23369 2004-11-08 13:40  jackson
23370
23371         * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
23372           scrolling jimmi in the correct location with bottom aligned tabs
23373
23374 2004-11-08 13:36  pbartok
23375
23376         * ContainerControl.cs:
23377           - Implemented BindingContext
23378           - Implemented ParentForm
23379
23380 2004-11-08 12:46  jackson
23381
23382         * TabControl.cs: Put bottom rendered tabs in the right location
23383
23384 2004-11-08 07:15  jordi
23385
23386         * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
23387           removes dead code
23388
23389 2004-11-05 17:30  jackson
23390
23391         * TabControl.cs: When selected tabs are expanded make sure they
23392           don't go beyond the edges of the tab control
23393
23394 2004-11-05 14:57  jackson
23395
23396         * TabControl.cs: Reset show_slider so if the control is resized to
23397           a size where it is no longer needed it's not displayed anymore
23398
23399 2004-11-05 13:16  jackson
23400
23401         * TabControl.cs: Make tab pages non visible when added to the
23402           control
23403
23404 2004-11-05 12:42  jackson
23405
23406         * TabControl.cs: Implement SizeMode.FillToRight
23407
23408 2004-11-05 12:16  jackson
23409
23410         * Control.cs: Do not call CreateHandle if the handle is already
23411           created
23412
23413 2004-11-05 11:46  jackson
23414
23415         * TabControl.cs: Remove superflous call to CalcTabRows
23416
23417 2004-11-05 09:07  jackson
23418
23419         * XplatUIX11.cs: Update for Mono.Posix changes
23420
23421 2004-11-05 07:00  ravindra
23422
23423         * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
23424           scrolling.
23425
23426 2004-11-04 22:47  jba
23427
23428         * ThemeWin32Classic.cs:
23429           - Fix Button rendering for FlatStyle = Flat or Popup
23430           - Fix RadioButton and CheckBox rendering when Appearance = Button
23431             (normal and flatstyle).
23432           - Correct outer rectangle color when drawing focus rectangle
23433           - Adjust button bounds to be 1 px smaller when focused
23434           - Make button not draw sunken 3d border when pushed (windows compat)
23435           - Fix CPDrawBorder3D to not make bottom right hand corner rounded
23436           - Offset the text in RadioButton and Checkbox when being rendered as
23437           a button.
23438           - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
23439           radiobuttons
23440           - Fixed disabled rendering for colored flatstyle radiobuttons (both)
23441           - Fixed disabled text rendering for normally rendered radiobuttons
23442
23443 2004-11-04 10:26  jackson
23444
23445         * TabControl.cs: Recalculate tab rows when resizing
23446
23447 2004-11-04 07:47  jordi
23448
23449         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
23450           collection completion, drawing issues, missing features
23451
23452 2004-11-04 05:03  ravindra
23453
23454         * ScrollBar.cs:
23455                 - We need to recalculate the Thumb area when
23456                 LargeChange/maximum/minimum values are changed.
23457           - We set the 'pos' in UpdatePos() method to minimum, if it's less
23458                 than minimum. This is required to handle the case if large_change is
23459                 more than max, and use LargeChange property instead of large_change
23460                 variable.
23461           - We return max+1 when large_change is more than max, like MS does.
23462
23463 2004-11-04 04:29  ravindra
23464
23465         * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
23466                 - Changed default value signatures (prefixed all with ListView).
23467                 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
23468                 ListView.
23469           - Fixed calculations for ListViewItem and implemented Clone()
23470           method.
23471
23472 2004-11-04 04:26  ravindra
23473
23474         * Theme.cs, ThemeWin32Classic.cs:
23475                 - Changed default ListView values signatures (prefixed all with
23476                 ListView).
23477           - Fixed default size values for VScrollBar and HScrollBar.
23478                 - Fixed DrawListViewItem method.
23479
23480 2004-11-04 04:05  ravindra
23481
23482         * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
23483
23484 2004-11-04 04:04  ravindra
23485
23486         * ImageList.cs: Implemented the missing overload for Draw method.
23487
23488 2004-11-03 19:29  jackson
23489
23490         * TabControl.cs: Handle dropping rows on selection properly
23491
23492 2004-11-03 11:59  jackson
23493
23494         * TabControl.cs: remove debug code
23495
23496 2004-11-03 11:52  jackson
23497
23498         * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
23499           the scrolly widgerywoo
23500
23501 2004-11-02 13:52  jackson
23502
23503         * TabControl.cs: Resize the tab pages and tabs when the tab control
23504           is resized
23505
23506 2004-11-02 13:40  jackson
23507
23508         * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
23509           selected tab to the bottom
23510
23511 2004-11-02 13:39  jackson
23512
23513         * TabPage.cs: Store the tab pages row
23514
23515 2004-11-02 12:33  jordi
23516
23517         * MenuItem.cs: fixes handle creation
23518
23519 2004-11-02 11:42  jackson
23520
23521         * TabControl.cs: signature fix
23522
23523 2004-11-02 08:56  jackson
23524
23525         * TabControl.cs: Calculate whether the tab is on an edge properly.
23526           Remove top secret debugging code
23527
23528 2004-11-01 19:57  jackson
23529
23530         * TabControl.cs: Add click handling, and proper sizing
23531
23532 2004-11-01 19:47  jackson
23533
23534         * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
23535           tab controls
23536
23537 2004-11-01 19:39  jackson
23538
23539         * TabPage.cs: add internal property to store the bounds of a tab
23540           page
23541
23542 2004-10-30 04:23  ravindra
23543
23544         * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
23545           values.
23546
23547 2004-10-30 04:21  ravindra
23548
23549         * ListView.cs, ListViewItem.cs: Added support for scrolling and
23550           fixed calculations.
23551
23552 2004-10-30 03:06  pbartok
23553
23554         * XplatUIX11.cs:
23555           - Removed extension of DllImported libs
23556
23557 2004-10-29 09:55  jordi
23558
23559         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
23560           navigation, itemcollection completion, menu fixes
23561
23562 2004-10-27 22:58  pbartok
23563
23564         * XplatUIX11.cs:
23565           - Now throws a nice error message when no X display could be opened
23566
23567 2004-10-26 13:51  jordi
23568
23569         * ListView.cs: removes warning
23570
23571 2004-10-26 03:55  ravindra
23572
23573         * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
23574           ThemeWin32Classic.cs: Some formatting for my last checkins.
23575
23576 2004-10-26 03:36  ravindra
23577
23578         * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
23579           control and default values.
23580
23581 2004-10-26 03:35  ravindra
23582
23583         * Theme.cs: Added some default values for ListView control.
23584
23585 2004-10-26 03:33  ravindra
23586
23587         * ToolBar.cs: ToolBar should use the user specified button size, if
23588           there is any. Added a size_specified flag for the same.
23589
23590 2004-10-26 03:33  ravindra
23591
23592         * ColumnHeader.cs: Added some internal members and calculations for
23593           ColumnHeader.
23594
23595 2004-10-26 03:32  ravindra
23596
23597         * ListViewItem.cs: Calculations for ListViewItem.
23598
23599 2004-10-26 03:31  ravindra
23600
23601         * ListView.cs: Added some internal members and calculations for
23602           ListView.
23603
23604 2004-10-22 13:31  jordi
23605
23606         * MenuAPI.cs: speedup menus drawing
23607
23608 2004-10-22 13:16  jackson
23609
23610         * XplatUIX11.cs: Make sure to update exposed regions when adding an
23611           expose event
23612
23613 2004-10-22 11:49  jackson
23614
23615         * Control.cs: oops
23616
23617 2004-10-22 11:41  jackson
23618
23619         * Control.cs: Check to see if the window should have its background
23620           repainted by X when drawing.
23621
23622 2004-10-22 11:31  jackson
23623
23624         * XplatUIX11.cs: When invalidating areas only use XClearArea if
23625           clear is true, this way we do not get flicker from X repainting the
23626           background
23627
23628 2004-10-22 11:28  jackson
23629
23630         * XEventQueue.cs: Queue properly
23631
23632 2004-10-21 09:38  jackson
23633
23634         * XEventQueue.cs: Fix access modifier
23635
23636 2004-10-21 09:36  jackson
23637
23638         * XEventQueue.cs: Don't loose messages
23639
23640 2004-10-21 09:22  jackson
23641
23642         * XEventQueue.cs: Don't loose messages
23643
23644 2004-10-20 04:15  jordi
23645
23646         * BootMode.cs: enum need it by SystemInfo
23647
23648 2004-10-19 21:58  pbartok
23649
23650         * XplatUIWin32.cs:
23651           - Small sanity check
23652
23653 2004-10-19 21:56  pbartok
23654
23655         * Form.cs:
23656           - Added private FormParentWindow class which acts as the container
23657             for our form and as the non-client area where menus are drawn
23658           - Added/Moved required tie-ins to Jordi's menus
23659           - Fixed/Implemented the FormStartPosition functionality
23660
23661 2004-10-19 21:52  pbartok
23662
23663         * Control.cs:
23664           - Removed unneeded locals
23665           - Added code to all size and location properties to understand and
23666             deal with the parent container of Form
23667
23668 2004-10-19 21:33  pbartok
23669
23670         * Application.cs:
23671           - Fixed to deal with new Form subclasses for menus
23672
23673 2004-10-19 17:48  jackson
23674
23675         * XEventQueue.cs: commit correct version of file
23676
23677 2004-10-19 16:50  jackson
23678
23679         * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
23680
23681 2004-10-19 16:15  jordi
23682
23683         * MenuAPI.cs: MenuBarCalcSize returns the height
23684
23685 2004-10-19 08:31  pbartok
23686
23687         * Control.cs:
23688           - Added missing call to PreProcessMessage before calling OnXXXKey
23689           methods
23690
23691 2004-10-19 00:04  ravindra
23692
23693         * ToolTip.cs: Fixed constructor.
23694
23695 2004-10-18 09:31  jordi
23696
23697         * MenuAPI.cs: menuitems in menubars do not have shortcuts
23698
23699 2004-10-18 09:26  jordi
23700
23701         * MenuItem.cs: fixes MenuItem class signature
23702
23703 2004-10-18 08:56  jordi
23704
23705         * MenuAPI.cs: prevents windows from showing in the taskbar
23706
23707 2004-10-18 00:28  ravindra
23708
23709         * ToolTip.cs: Suppressed a warning message.
23710
23711 2004-10-18 00:27  ravindra
23712
23713         * Control.cs: Default value of visible property must be true.
23714
23715 2004-10-17 23:19  pbartok
23716
23717         * ToolTip.cs:
23718           - Complete implementation
23719
23720 2004-10-17 23:19  pbartok
23721
23722         * XplatUIX11.cs:
23723           - Added EnableWindow method
23724           - Added SetModal stub
23725           - Added generation of WM_ACTIVATE message (still needs testing)
23726           - Added SetTopMost stub
23727           - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
23728
23729 2004-10-17 23:17  pbartok
23730
23731         * XplatUIWin32.cs:
23732           - Removed VirtualKeys to XplatUIStructs
23733           - Implemented SetTopMost method
23734           - Implemented EnableWindow method
23735           - Bugfix in ScreenToClient()
23736           - Bugfixes in ClientToScreen()
23737
23738 2004-10-17 22:51  pbartok
23739
23740         * XplatUIStructs.cs:
23741           - Added WS_EX styles to WindowStyles enumeration
23742
23743 2004-10-17 22:50  pbartok
23744
23745         * XplatUI.cs, XplatUIDriver.cs:
23746           - Added method for enabling/disabling windows
23747           - Added method for setting window modality
23748           - Added method for setting topmost window
23749
23750 2004-10-17 22:49  pbartok
23751
23752         * ThemeWin32Classic.cs:
23753           - Added ToolTip drawing code
23754
23755 2004-10-17 22:49  pbartok
23756
23757         * Theme.cs:
23758           - Added ToolTip abstracts
23759
23760 2004-10-17 22:47  pbartok
23761
23762         * Form.cs:
23763           - Fixed Form.ControlCollection to handle owner relations
23764           - Added Owner/OwnedForms handling
23765           - Implemented Z-Ordering for owned forms
23766           - Removed unneeded private overload of ShowDialog
23767           - Fixed ShowDialog, added the X11 incarnation of modal handling (or
23768             so I hope)
23769           - Fixed Close(), had wrong default
23770           - Added firing of OnLoad event
23771           - Added some commented out debug code for Ownership handling
23772
23773 2004-10-17 22:16  pbartok
23774
23775         * Control.cs:
23776           - Fixed/implemented flat list of controls
23777
23778 2004-10-17 22:14  pbartok
23779
23780         * Application.cs:
23781           - Added code to simulate modal dialogs on Win32
23782
23783 2004-10-17 16:11  jordi
23784
23785         * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
23786           mouse event
23787
23788 2004-10-17 13:39  jordi
23789
23790         * MenuAPI.cs: menu drawing fixes
23791
23792 2004-10-15 09:10  ravindra
23793
23794         * StructFormat.cs: General Enum.
23795
23796 2004-10-15 09:09  ravindra
23797
23798         * SizeGripStyle.cs: Enum for Form.
23799
23800 2004-10-15 09:08  ravindra
23801
23802         * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
23803           in Theme for ListView.
23804
23805 2004-10-15 09:06  ravindra
23806
23807         * ColumnHeader.cs: Flushing some formatting changes.
23808
23809 2004-10-15 09:05  ravindra
23810
23811         * ListViewItem.cs: Implemented GetBounds method and fixed coding
23812           style.
23813
23814 2004-10-15 09:03  ravindra
23815
23816         * ListView.cs: Implemented Paint method and fixed coding style.
23817
23818 2004-10-15 07:34  jordi
23819
23820         * MenuAPI.cs: fix for X11
23821
23822 2004-10-15 07:32  ravindra
23823
23824         * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
23825                 - Renamed Paint() method to Draw() for clarity. Also, moved
23826                 DrawImage() to OnPaint().
23827
23828 2004-10-15 07:25  ravindra
23829
23830         * CheckBox.cs, RadioButton.cs:
23831                 - Removed Redraw (), we get it from ButtonBase.
23832                 - Implemented Paint (), to do class specific painting.
23833
23834 2004-10-15 07:16  ravindra
23835
23836         * ButtonBase.cs:
23837                 - Redraw () is not virtual now.
23838                 - Added an internal virtual method Paint (), so that
23839                 derived classes can do their painting on their own.
23840                 - Modified OnPaint () to call Paint ().
23841
23842 2004-10-15 06:43  jordi
23843
23844         * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
23845           MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
23846
23847 2004-10-15 00:30  ravindra
23848
23849         * MessageBox.cs:
23850                 - MessageBox on windows does not have min/max buttons.
23851                 This change in CreateParams fixes this on Windows. We
23852                 still need to implement this windowstyle behavior in
23853                 our X11 driver.
23854
23855 2004-10-14 05:14  ravindra
23856
23857         * ToolBar.cs:
23858                 - Changed Redraw () to do a Refresh () always.
23859                 - Fixed the MouseMove event handling when mouse is pressed,
23860                 ie drag event handling.
23861                 - Replaced the usage of ToolBarButton.Pressed property to
23862                 ToolBarButton.pressed internal variable.
23863
23864 2004-10-14 05:10  ravindra
23865
23866         * ToolBarButton.cs:
23867                 - Added an internal member 'inside' to handle mouse move
23868                 with mouse pressed ie mouse drag event.
23869                 - Changed 'Pressed' property to return true only when
23870                 'inside' and 'pressed' are both true.
23871                 - Some coding style love.
23872
23873 2004-10-14 00:17  ravindra
23874
23875         * Form.cs: Fixed class signature. ShowDialog (Control) is not a
23876           public method.
23877
23878 2004-10-14 00:15  ravindra
23879
23880         * ButtonBase.cs: Redraw () related improvements.
23881
23882 2004-10-14 00:14  ravindra
23883
23884         * MessageBox.cs: Moved InitFormSize () out of Paint method and
23885           removed unnecessary calls to Button.Show () method.
23886
23887 2004-10-13 17:50  pbartok
23888
23889         * XplatUIX11.cs:
23890           - Formatting fix
23891           - Removed destroying of window until we solve the problem of X
23892             destroying the window before us on shutdown
23893
23894 2004-10-13 16:32  pbartok
23895
23896         * ButtonBase.cs:
23897           - Now Redraws on MouseUp for FlatStyle Flat and Popup
23898
23899 2004-10-13 14:18  pbartok
23900
23901         * XplatUIX11.cs:
23902           - Added code to destroy the X window
23903
23904 2004-10-13 14:18  pbartok
23905
23906         * XplatUIWin32.cs:
23907           - Added code to destroy a window
23908
23909 2004-10-13 14:12  pbartok
23910
23911         * ButtonBase.cs:
23912           - Added the Redraw on Resize that got dropped in the last rev
23913
23914 2004-10-13 09:06  pbartok
23915
23916         * ThemeWin32Classic.cs:
23917           - Path from John BouAntoun:
23918             * Fix check rendering (centre correctly for normal style, offset
23919               correctly for FlatStyle).
23920             * Fix border color usage (use backcolor) for FlatStyle.Popup
23921             * Use checkbox.Capture instead of checkbox.is_pressed when
23922               rendering flatstyle states.
23923
23924 2004-10-12 21:48  pbartok
23925
23926         * ThemeWin32Classic.cs:
23927           - Removed all occurences of SystemColors and replaced them with the
23928             matching theme color
23929
23930 2004-10-12 21:41  pbartok
23931
23932         * ThemeWin32Classic.cs:
23933           - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
23934             him using the function for flatstyle drawing
23935           - Changed functions to use the new version of CPDrawBorder3D
23936
23937 2004-10-12 21:15  pbartok
23938
23939         * ControlPaint.cs:
23940           - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
23941             match MS documentation. They need to return defined colors if the
23942             passed color matches the configured control color. Thanks to John
23943             BouAntoun for pointing this out.
23944
23945 2004-10-12 20:57  pbartok
23946
23947         * Control.cs:
23948           - Fix from John BouAntoun: Raise ForeColorChanged event when text
23949             color is changed
23950
23951 2004-10-12 20:46  pbartok
23952
23953         * CheckBox.cs:
23954           - Fix from John BouAntoun: Now properly sets the Appearance property
23955
23956 2004-10-12 20:45  pbartok
23957
23958         * ThemeWin32Classic.cs:
23959           - Fixes from John BouAntoun: now handles forecolors and backcolors
23960             for flatstyle rendered controls much better; It also fixes normal
23961             checkbox rendering when pushed or disabled.
23962
23963 2004-10-08 02:50  jordi
23964
23965         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
23966           work
23967
23968 2004-10-07 08:56  jordi
23969
23970         * ThemeWin32Classic.cs: Removes deletion of cached brushes
23971
23972 2004-10-06 03:59  jordi
23973
23974         * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
23975           XplatUIWin32.cs: removes warnings from compilation
23976
23977 2004-10-05 12:23  jackson
23978
23979         * RadioButton.cs: Fix ctor
23980
23981 2004-10-05 11:10  pbartok
23982
23983         * MessageBox.cs:
23984           - Partial implementation by Benjamin Dasnois
23985
23986 2004-10-05 10:15  jackson
23987
23988         * ThemeWin32Classic.cs: Improve rendering of the radio button patch
23989           by John BouAntoun
23990
23991 2004-10-05 03:07  ravindra
23992
23993         * ToolBar.cs:
23994                 - Removed a private method, Draw ().
23995                 - Fixed the ButtonDropDown event handling.
23996                 - Fixed MouseMove event handling.
23997
23998 2004-10-05 03:04  ravindra
23999
24000         * ThemeWin32Classic.cs:
24001                 - Added DrawListView method and ListViewDefaultSize property.
24002                 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
24003                 - Changed DOS style CRLF to Unix format (dos2unix).
24004
24005 2004-10-05 03:03  ravindra
24006
24007         * Theme.cs:
24008                 - Added DrawListView method and ListViewDefaultSize property.
24009
24010 2004-10-05 02:42  ravindra
24011
24012         * ToolBarButton.cs: Added an internal member dd_pressed to handle
24013           clicks on DropDown arrow.
24014
24015 2004-10-04 22:56  jackson
24016
24017         * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
24018           ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
24019           Control handle the buffers, derived classes should not have to
24020           CreateBuffers themselves.
24021
24022 2004-10-04 21:20  jackson
24023
24024         * StatusBar.cs: The control handles resizing the buffers now.
24025
24026 2004-10-04 21:18  jackson
24027
24028         * Control.cs: When resizing the buffers should be invalidated. This
24029           should be handled in Control not in derived classes.
24030
24031 2004-10-04 14:45  jackson
24032
24033         * TabPage.cs: oops
24034
24035 2004-10-04 02:14  pbartok
24036
24037         * LeftRightAlignment.cs:
24038           - Initial check-in
24039
24040 2004-10-04 01:09  jordi
24041
24042         * ThemeWin32Classic.cs: fixes right button position causing right
24043           button not showing on horizontal scrollbars
24044
24045 2004-10-02 13:12  pbartok
24046
24047         * XplatUIX11.cs:
24048           - Simplified the Invalidate method by using an X call instead of
24049             generating the expose ourselves
24050           - Added an expose when the window background is changed
24051           - Implemented ClientToScreen method
24052
24053 2004-10-02 13:08  pbartok
24054
24055         * XplatUIWin32.cs:
24056           - Added Win32EnableWindow method (test for implementing modal
24057           dialogs)
24058           - Added ClientToScreen method and imports
24059
24060 2004-10-02 13:07  pbartok
24061
24062         * XplatUI.cs, XplatUIDriver.cs:
24063           - Added ClientToScreen coordinate translation method
24064
24065 2004-10-02 13:06  pbartok
24066
24067         * KeyPressEventArgs.cs:
24068           - Fixed access level for constructor
24069
24070 2004-10-02 13:06  pbartok
24071
24072         * NativeWindow.cs:
24073           - Changed access level for the window_collection hash table
24074
24075 2004-10-02 13:05  pbartok
24076
24077         * Form.cs:
24078           - Added KeyPreview property
24079           - Added Menu property (still incomplete, pending Jordi's menu work)
24080           - Implemented ProcessCmdKey
24081           - Implemented ProcessDialogKey
24082           - Implemented ProcessKeyPreview
24083
24084 2004-10-02 13:02  pbartok
24085
24086         * Control.cs:
24087           - Added private method to get the Control object from the window
24088           handle
24089           - Implemented ContextMenu property
24090           - Implemented PointToScreen
24091           - Implemented PreProcessMessage
24092           - Implemented IsInputChar
24093           - Implemented IsInputKey
24094           - Implemented ProcessCmdKey
24095           - Completed ProcessKeyEventArgs
24096           - Fixed message loop to call the proper chain of functions on key
24097           events
24098           - Implemented ProcessDialogChar
24099           - Implemented ProcessDialogKey
24100           - Implemented ProcessKeyMessage
24101           - Implemented ProcessKeyPreview
24102           - Added RaiseDragEvent stub (MS internal method)
24103           - Added RaiseKeyEvent stub (MS internal method)
24104           - Added RaiseMouseEvent stub (MS Internal method)
24105           - Added RaisePaintEvent stub (MS Internal method)
24106           - Added ResetMouseEventArgs stub (MS Internal method)
24107           - Implemented RtlTranslateAlignment
24108           - Implemented RtlTranslateContent
24109           - Implemented RtlTranslateHorizontal
24110           - Implemented RtlTranslateLeftRight
24111           - Added generation of KeyPress event
24112
24113 2004-10-02 05:57  ravindra
24114
24115         * ListViewItem.cs: Added attributes.
24116
24117 2004-10-02 05:32  ravindra
24118
24119         * ListView.cs: Added attributes.
24120
24121 2004-10-01 11:53  jackson
24122
24123         * Form.cs: Implement the Close method so work on MessageBox can
24124           continue.
24125
24126 2004-09-30 14:06  pbartok
24127
24128         * XplatUIX11.cs:
24129           - Bug fixes
24130
24131 2004-09-30 11:34  jackson
24132
24133         * RadioButton.cs: Fix typo. Patch by John BouAntoun.
24134
24135 2004-09-30 07:26  ravindra
24136
24137         * ListViewItemConverter.cs: Converter for ListViewItem.
24138
24139 2004-09-30 07:26  ravindra
24140
24141         * SortOrder.cs: Enum for ListView control.
24142
24143 2004-09-30 07:25  ravindra
24144
24145         * ColumnHeader.cs: Supporting class for ListView control.
24146
24147 2004-09-30 07:24  ravindra
24148
24149         * ListView.cs, ListViewItem.cs: Initial implementation.
24150
24151 2004-09-30 07:20  ravindra
24152
24153         * ItemActivation.cs: Enum for ListView Control.
24154
24155 2004-09-29 20:29  pbartok
24156
24157         * XplatUIX11.cs:
24158           - Added lookup of pixel value for background color; tries to get a
24159             color 'close' to the requested color, it avoids having to create a
24160             colormap.  Depending on the display this could mean the used color
24161             is slightly off the desired color. Might have to change it to a more
24162             resource intensive colormap approach, but it will work as a
24163           workaround to avoid red screens.
24164
24165 2004-09-29 14:27  jackson
24166
24167         * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
24168
24169 2004-09-28 12:44  pbartok
24170
24171         * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
24172           HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
24173           ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
24174           Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
24175           TrackBar.cs, VScrollBar.cs:
24176           - Streamlined Theme interfaces:
24177             * Each DrawXXX method for a control now is passed the object for
24178               the control to be drawn in order to allow accessing any state the
24179               theme might require
24180
24181             * ControlPaint methods for the theme now have a CP prefix to avoid
24182               name clashes with the Draw methods for controls
24183
24184             * Every control now retrieves it's DefaultSize from the current
24185             theme
24186
24187 2004-09-28 12:17  jackson
24188
24189         * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
24190           drawing
24191
24192 2004-09-24 14:57  jackson
24193
24194         * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
24195           Gives us a nice little performance boost.
24196
24197 2004-09-24 12:02  jackson
24198
24199         * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
24200           TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
24201           Control and supporting classes. Initial checkin
24202
24203 2004-09-23 13:08  jackson
24204
24205         * Form.cs: Temp build fixage
24206
24207 2004-09-23 01:39  ravindra
24208
24209         * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
24210           ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
24211           ItemDragEventArgs.cs, ItemDragEventHandler.cs,
24212           LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
24213           EventHandlers needed by ListView Control.
24214
24215 2004-09-22 14:12  pbartok
24216
24217         * ScrollableControl.cs:
24218           - Implemented DockPadding property
24219           - Implemented AutoScroll property
24220           - Implemented AutoScrollMargin property
24221           - Implemented AutoScrollMinSize property
24222           - Implemented AutoScrollPosition property
24223           - Implemented DisplayRectangle property (still incomplete)
24224           - Implemented CreateParams property
24225           - Implemented HScroll property
24226           - Implemented VScroll property
24227           - Implemented OnVisibleChanged property
24228
24229 2004-09-22 14:09  pbartok
24230
24231         * Form.cs:
24232           - Added Form.ControllCollection class
24233           - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
24234             RemoveOwnedForm (still incomplete, missing on-top and common
24235             minimize/maximize behaviour)
24236           - Added StartPosition property (still incomplete, does not use when
24237             creating the form)
24238           - Added ShowDialog() methods (still incomplete, missing forcing the
24239             dialog modal)
24240
24241 2004-09-22 14:05  pbartok
24242
24243         * Application.cs:
24244           - Added message loop for modal dialogs
24245
24246 2004-09-22 14:02  pbartok
24247
24248         * GroupBox.cs:
24249           - Fixed wrong types for events
24250
24251 2004-09-22 14:00  pbartok
24252
24253         * Shortcut.cs, FormWindowState.cs:
24254           - Fixed wrong values
24255
24256 2004-09-22 12:01  jackson
24257
24258         * Control.cs: Text is never null
24259
24260 2004-09-20 22:14  pbartok
24261
24262         * XplatUIWin32.cs:
24263           - Fixed accessibility level for Idle handler
24264
24265 2004-09-20 18:54  jackson
24266
24267         * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
24268           XplatUIX11.cs: New message loop that uses poll so we don't get a
24269           busy loop
24270
24271 2004-09-17 10:43  pbartok
24272
24273         * ScrollBar.cs:
24274           - Fixed behaviour of arrow buttons. Now properly behaves like
24275             Buttons (and like Microsoft's scrollbar arrow buttons)
24276
24277 2004-09-17 10:14  pbartok
24278
24279         * ScrollBar.cs:
24280           - Added missing release of keyboard/mouse capture
24281
24282 2004-09-17 06:18  jordi
24283
24284         * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
24285           Theme.cs: Very early menu support
24286
24287 2004-09-16 17:45  pbartok
24288
24289         * XplatUIWin32.cs:
24290           - Fixed sending a window to the front
24291           - Added overload for SetWindowPos to avoid casting
24292
24293 2004-09-16 17:44  pbartok
24294
24295         * Control.cs:
24296           - Added SendToBack and BringToFront methods
24297
24298 2004-09-16 07:00  ravindra
24299
24300         * Copyright: Added Novell URL.
24301
24302 2004-09-16 07:00  ravindra
24303
24304         * ToolBar.cs: Invalidate should be done before redrawing.
24305
24306 2004-09-15 21:19  ravindra
24307
24308         * ColumnHeaderStyle.cs: Enum for ListView Control.
24309
24310 2004-09-15 21:18  ravindra
24311
24312         * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
24313           ListView Control.
24314
24315 2004-09-13 18:26  jackson
24316
24317         * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
24318           properly
24319
24320 2004-09-13 18:13  jackson
24321
24322         * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
24323           a second thread and post messages into the main threads message
24324           queue. This makes timing much more consistent. Both win2K and XP
24325           have a minimum timer value of 15 milliseconds, so we now do this
24326           too.
24327
24328 2004-09-13 15:18  pbartok
24329
24330         * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
24331           XplatUIX11.cs:
24332           - Added Z-Ordering methods
24333
24334 2004-09-13 10:56  pbartok
24335
24336         * Form.cs:
24337           - Fixed #region names
24338           - Moved properties and methods into their proper #regions
24339
24340 2004-09-13 10:51  pbartok
24341
24342         * Form.cs:
24343           - Added Accept and CancelButton properties
24344           - Added ProcessDialogKey() method
24345
24346 2004-09-13 08:18  pbartok
24347
24348         * IWindowTarget.cs:
24349           - Initial check-in
24350
24351 2004-09-10 21:50  pbartok
24352
24353         * Control.cs:
24354           - Added DoDragDrop() [incomplete]
24355           - Properly implemented 'Visible' handling
24356           - Added SetVisibleCore()
24357           - Implemented FindChildAtPoint()
24358           - Implemented GetContainerControl()
24359           - Implemented Hide()
24360
24361 2004-09-10 19:28  pbartok
24362
24363         * Control.cs:
24364           - Moved methods into their appropriate #regions
24365           - Reordered methods within regions alphabetically
24366
24367 2004-09-10 18:57  pbartok
24368
24369         * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
24370           - Added method to retrieve text from window
24371
24372 2004-09-10 18:56  pbartok
24373
24374         * Control.cs:
24375           - Moved some internal functions into the internal region
24376           - Implemented FontHeight
24377           - Implemented RenderRightToLeft
24378           - Implemented ResizeRedraw
24379           - Implemented ShowFocusCues
24380           - Implemented ShowKeyboardCues
24381           - Implemented FromChildHandle
24382           - Implemented FromHandle
24383           - Implemented IsMnemonic
24384           - Implemented ReflectMessage
24385           - All public and protected Static Methods are now complete
24386
24387 2004-09-10 16:54  pbartok
24388
24389         * Control.cs:
24390           - Implemented remaining missing public instance properties
24391           - Alphabetized some out of order properties
24392
24393 2004-09-10 05:51  ravindra
24394
24395         * PictureBox.cs: Added a check for null image.
24396
24397 2004-09-10 00:59  jordi
24398
24399         * GroupBox.cs: remove cvs tag
24400
24401 2004-09-09 05:25  ravindra
24402
24403         * ToolBar.cs: Make redraw accessible from ToolBarButton.
24404
24405 2004-09-09 05:23  ravindra
24406
24407         * ToolBarButton.cs: Changes in ToolBarButton need to make it's
24408           parent redraw.
24409
24410 2004-09-09 02:28  pbartok
24411
24412         * ThemeWin32Classic.cs:
24413           - Improve disabled string look
24414
24415 2004-09-09 01:15  jordi
24416
24417         * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
24418           args and handler
24419
24420 2004-09-08 23:56  ravindra
24421
24422         * ItemBoundsPortion.cs: It's enum, not a class!
24423
24424 2004-09-08 23:47  ravindra
24425
24426         * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
24427           Enums for Form.
24428
24429 2004-09-08 21:13  ravindra
24430
24431         * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
24432           ListView control.
24433
24434 2004-09-08 21:03  ravindra
24435
24436         * ThemeWin32Classic.cs: PictureBox would not draw a null image to
24437           avoid crash.
24438
24439 2004-09-08 21:01  ravindra
24440
24441         * ScrollableControl.cs: Removed unreachable code.
24442
24443 2004-09-08 06:45  jordi
24444
24445         * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
24446
24447 2004-09-08 01:00  jackson
24448
24449         * XplatUIX11.cs: Only run the timers when updating the message
24450           queue. This effectively gives X messages a higher priority then
24451           timer messages. Timers still need love though
24452
24453 2004-09-07 14:01  jackson
24454
24455         * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
24456           this for us and the handle is no longer valid.
24457
24458 2004-09-07 13:59  jackson
24459
24460         * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
24461           loop that manages to not crash. TODO: Add poll and cleanup timers
24462
24463 2004-09-07 11:12  jordi
24464
24465         * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
24466
24467 2004-09-07 03:40  jordi
24468
24469         * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
24470           fixes, methods, multiple links
24471
24472 2004-09-06 06:55  jordi
24473
24474         * Control.cs: Caches ClientRectangle rectangle value
24475
24476 2004-09-05 02:03  jordi
24477
24478         * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
24479           certain situations
24480
24481 2004-09-04 11:10  jordi
24482
24483         * Label.cs: Refresh when font changed
24484
24485 2004-09-02 16:24  pbartok
24486
24487         * Control.cs:
24488           - Added sanity check to creation of double buffer bitmap
24489
24490 2004-09-02 16:24  pbartok
24491
24492         * ButtonBase.cs:
24493           - Fixed selection of text color
24494           - Fixed handling of resize event; now properly recreates double
24495             buffering bitmap
24496           - Added missing assignment of TextAlignment
24497           - Added proper default for TextAlignment
24498
24499 2004-09-02 14:26  pbartok
24500
24501         * RadioButton.cs:
24502           - Added missing RadioButton.RadioButtonAccessibleObject class
24503
24504 2004-09-02 14:26  pbartok
24505
24506         * Control.cs:
24507           - Added missing Control.ControlAccessibleObject class
24508           - Started to implement Select()ion mechanisms, still very incomplete
24509
24510 2004-09-02 14:25  pbartok
24511
24512         * AccessibleObject.cs:
24513           - Added missing methods
24514
24515 2004-09-02 14:23  pbartok
24516
24517         * AccessibleNavigation.cs, AccessibleSelection.cs:
24518           - Initial check-in
24519
24520 2004-09-02 10:32  jordi
24521
24522         * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
24523           pool for pens, brushes, and hatchbruses
24524
24525 2004-09-01 15:30  jackson
24526
24527         * StatusBar.cs: Fix typo
24528
24529 2004-09-01 14:44  pbartok
24530
24531         * RadioButton.cs:
24532           - Fixed state
24533
24534 2004-09-01 14:39  pbartok
24535
24536         * Button.cs, RadioButton.cs:
24537           - Functional initial check-in
24538
24539 2004-09-01 14:01  pbartok
24540
24541         * CheckBox.cs:
24542           - Added missing default
24543           - Added missing region mark
24544
24545 2004-09-01 09:10  jordi
24546
24547         * Label.cs: fixes method signatures, new methods, events, fixes
24548           autosize
24549
24550 2004-09-01 07:19  jordi
24551
24552         * Control.cs: Init string variables with an empty object
24553
24554 2004-09-01 04:20  jordi
24555
24556         * Control.cs: fires OnFontChanged event
24557
24558 2004-08-31 20:07  pbartok
24559
24560         * ButtonBase.cs:
24561           - Enabled display of strings
24562
24563 2004-08-31 20:05  pbartok
24564
24565         * Form.cs:
24566           - Added (partial) implementation of DialogResult; rest needs to be
24567             implemented when the modal loop code is done
24568
24569 2004-08-31 19:55  pbartok
24570
24571         * CheckBox.cs:
24572           - Fixed to match the removal of the needs_redraw concept
24573
24574 2004-08-31 19:55  pbartok
24575
24576         * ButtonBase.cs:
24577           - Removed the rather odd split between 'needs redraw' and redrawing
24578           - Now handles the events that require regeneration (ambient
24579             properties and size)
24580
24581 2004-08-31 19:41  pbartok
24582
24583         * Control.cs:
24584           - Added firing of BackColorChanged event
24585           - Added TopLevelControl property
24586           - Fixed handling of WM_ERASEBKGRND message
24587
24588 2004-08-31 12:49  pbartok
24589
24590         * ButtonBase.cs:
24591           - Removed debug
24592           - Minor fixes
24593
24594 2004-08-31 12:48  pbartok
24595
24596         * CheckBox.cs:
24597           - Finished (famous last words)
24598
24599 2004-08-31 04:35  jordi
24600
24601         * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
24602           scrolling bugs, adds new methods
24603
24604 2004-08-30 14:42  pbartok
24605
24606         * CheckBox.cs:
24607           - Implemented CheckBox drawing code
24608
24609 2004-08-30 14:42  pbartok
24610
24611         * ButtonBase.cs:
24612           - Made Redraw() and CheckRedraw() virtual
24613           - Improved mouse up/down/move logic to properly track buttons
24614
24615 2004-08-30 09:44  pbartok
24616
24617         * CheckBox.cs:
24618           - Updated to fix broken build. Not complete yet.
24619
24620 2004-08-30 09:28  pbartok
24621
24622         * CheckState.cs:
24623           - Initial checkin
24624
24625 2004-08-30 09:17  pbartok
24626
24627         * Appearance.cs:
24628           - Initial check-in
24629
24630 2004-08-27 16:12  ravindra
24631
24632         * ToolBarButton.cs: Added TypeConverter attribute.
24633
24634 2004-08-27 16:07  ravindra
24635
24636         * ImageIndexConverter.cs: Implemented.
24637
24638 2004-08-27 14:17  pbartok
24639
24640         * Control.cs:
24641           - Removed unneeded stack vars
24642           - First attempt to fix sizing issues when layout is suspended
24643
24644 2004-08-25 15:35  jordi
24645
24646         * ScrollBar.cs: more fixes to scrollbar
24647
24648 2004-08-25 14:04  ravindra
24649
24650         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
24651           Added the missing divider code and grip for ToolBar Control.
24652
24653 2004-08-25 13:20  pbartok
24654
24655         * Control.cs:
24656           - Control now properly passes the ambient background color to child
24657             controls
24658
24659 2004-08-25 13:20  jordi
24660
24661         * ScrollBar.cs: small bug fix regarding bar position
24662
24663 2004-08-25 12:33  pbartok
24664
24665         * Timer.cs:
24666           - Now only calls SetTimer or KillTimer if the enabled state has
24667           changed
24668
24669 2004-08-25 12:33  pbartok
24670
24671         * XplatUIWin32.cs:
24672           - Fixed timer handling, now seems to work
24673           - Improved error message for window creation
24674
24675 2004-08-25 12:32  pbartok
24676
24677         * Control.cs:
24678           - Fixed generation of MouseUp message
24679
24680 2004-08-25 12:29  jordi
24681
24682         * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
24683           and fixes for progressbar
24684
24685 2004-08-24 18:43  ravindra
24686
24687         * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
24688           in ToolBar control.
24689
24690 2004-08-24 17:15  pbartok
24691
24692         * Panel.cs:
24693           - Added #region
24694           - Added missing events
24695           - Alphabetized
24696
24697 2004-08-24 17:14  pbartok
24698
24699         * StatusBar.cs, PictureBox.cs:
24700           - Now uses Control's CreateParams
24701
24702 2004-08-24 16:36  pbartok
24703
24704         * XplatUIX11.cs:
24705           - Fixed background color handling
24706           - Fixed sending of enter/leave events on a grab
24707
24708 2004-08-24 16:35  pbartok
24709
24710         * X11Structs.cs:
24711           - Refined definitions for CrossingEvent
24712
24713 2004-08-24 12:37  jordi
24714
24715         * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
24716           formmating, methods signature, and adds missing events
24717
24718 2004-08-24 12:24  jordi
24719
24720         * Control.cs: fire OnEnabledChanged event
24721
24722 2004-08-24 11:17  pbartok
24723
24724         * XplatUIWin32.cs:
24725           - Implemented SetTimer() and KillTimer()
24726
24727 2004-08-24 11:16  pbartok
24728
24729         * XplatUIX11.cs:
24730           - Now uses Remove instead of Add to kill the timer
24731
24732 2004-08-24 10:16  jackson
24733
24734         * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
24735           picture boxes in the theme now. Draw picture box borders and obey
24736           sizing modes
24737
24738 2004-08-24 05:49  jackson
24739
24740         * Timer.cs: Remove top secret debugging code
24741
24742 2004-08-24 05:34  jackson
24743
24744         * PictureBox.cs: Temp hack to make picture boxes draw their full
24745           image
24746
24747 2004-08-24 05:29  jackson
24748
24749         * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
24750           XplatUIX11.cs: Move timers to the driver level. On X they are
24751           queued by the driver and checked on idle.
24752
24753 2004-08-24 01:07  jackson
24754
24755         * XplatUIX11.cs: Use a queue for async messages instead of passing
24756           them as ClientMessages since that was totally broken. Also simply
24757           check for events and return an idle message if none are found. This
24758           gives us an idle handler, and prevents deadlocking when no messages
24759           are in the queue.
24760
24761 2004-08-23 18:19  ravindra
24762
24763         * XplatUIWin32.cs: Removed the unwanted destructor.
24764
24765 2004-08-23 17:27  pbartok
24766
24767         * ButtonBase.cs:
24768           - Finishing touches. Works now, just needs some optimizations.
24769
24770 2004-08-23 16:53  jordi
24771
24772         * ScrollBar.cs: small fix
24773
24774 2004-08-23 16:45  pbartok
24775
24776         * Application.cs:
24777           - Removed debug output
24778           - Simplifications
24779
24780 2004-08-23 16:43  jordi
24781
24782         * ScrollBar.cs: [no log message]
24783
24784 2004-08-23 16:10  pbartok
24785
24786         * Form.cs:
24787           - Fixed handling of WM_CLOSE message
24788           - Removed debug output
24789
24790 2004-08-23 16:09  pbartok
24791
24792         * Application.cs:
24793           - Added handling of Idle event
24794           - Added handling of form closing
24795           - Fixed reporting of MessageLoop property
24796           - Removed some unneeded code, should provide a bit of a speedup
24797
24798 2004-08-23 15:22  pbartok
24799
24800         * Control.cs:
24801           - Added InitLayout() method
24802           - Added code to properly perform layout when Anchor or Dock property
24803             is changed
24804           - Changed 'interpretation' of ResumeLayout. MS seems to have a
24805             LAMESPEC, tried to do it in a way that makes sense
24806
24807 2004-08-23 14:10  jordi
24808
24809         * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
24810           properties and methods
24811
24812 2004-08-23 13:55  pbartok
24813
24814         * Control.cs:
24815           - Properly fixed Jordi's last fix
24816           - Now uses Cursor's Position property instead of calling XplatUI
24817           directly
24818
24819 2004-08-23 13:44  jordi
24820
24821         * PaintEventHandler.cs: Adding missing attribute
24822
24823 2004-08-23 13:39  pbartok
24824
24825         * Cursor.cs:
24826           - Implemented Position property
24827
24828 2004-08-23 13:39  pbartok
24829
24830         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
24831           - Added method to move mouse cursor
24832
24833 2004-08-23 13:39  pbartok
24834
24835         * XplatUIX11.cs:
24836           - Fixed setting of background color
24837           - Added method to move mouse cursor
24838
24839 2004-08-23 13:16  jordi
24840
24841         * Control.cs: avoids null exception
24842
24843 2004-08-22 17:46  jackson
24844
24845         * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
24846           PictureBox
24847
24848 2004-08-22 17:40  jackson
24849
24850         * XplatUIX11.cs: Add some missing locks
24851
24852 2004-08-22 15:10  pbartok
24853
24854         * Control.cs, Form.cs:
24855           - Removed OverlappedWindow style from Control, instead it's default
24856             now is child
24857           - Made form windows OverlappedWindow by default
24858
24859 2004-08-22 13:34  jackson
24860
24861         * ScrollBar.cs: Update the position through the Value property so
24862           the OnValueChanged event is raised.
24863
24864 2004-08-22 12:04  pbartok
24865
24866         * SWF.csproj:
24867           - Added Cursor.cs and UserControl.cs
24868
24869 2004-08-22 12:03  pbartok
24870
24871         * Cursor.cs:
24872           - Started implementation, not usable yet
24873
24874 2004-08-22 12:00  pbartok
24875
24876         * UserControl.cs:
24877           - Implemented UserControl (complete)
24878
24879 2004-08-21 19:20  ravindra
24880
24881         * ToolBar.cs: Correcting the formatting mess of VS.NET.
24882
24883 2004-08-21 18:49  ravindra
24884
24885         * ToolBar.cs: Probably this completes the missing attributes in
24886           toolbar control.
24887
24888 2004-08-21 18:03  ravindra
24889
24890         * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
24891           Fixed toolbar control signatures.
24892
24893 2004-08-21 16:32  pbartok
24894
24895         * LinkLabel.cs:
24896           - Signature Fixes
24897
24898 2004-08-21 16:30  pbartok
24899
24900         * Label.cs:
24901           - Signature fixes
24902
24903 2004-08-21 16:19  pbartok
24904
24905         * Control.cs, Label.cs:
24906           - Signature fixes
24907
24908 2004-08-21 15:57  pbartok
24909
24910         * ButtonBase.cs:
24911           - Added loads of debug output for development
24912           - Fixed typo in method name
24913
24914 2004-08-21 15:52  pbartok
24915
24916         * ToolBarButtonClickEventArgs.cs:
24917           - Added missing base class
24918
24919 2004-08-21 14:53  pbartok
24920
24921         * Control.cs:
24922           - Updated to match new GrabWindow signature
24923
24924 2004-08-21 14:51  pbartok
24925
24926         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
24927           - Added method to get default display size
24928
24929 2004-08-21 14:23  pbartok
24930
24931         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
24932           - Added method to query current grab state
24933           - Added argument to allow confining a grab to a window
24934
24935 2004-08-21 14:22  pbartok
24936
24937         * Keys.cs:
24938           - Added [Flags] attribute so that modifiers can be used in bitwise
24939           ops
24940
24941 2004-08-21 14:21  pbartok
24942
24943         * TrackBar.cs, ScrollBar.cs:
24944           - Replaced direct XplatUI calls with their Control counterpart
24945
24946 2004-08-21 13:32  pbartok
24947
24948         * Control.cs:
24949           - Implemented Created property
24950
24951 2004-08-21 13:28  pbartok
24952
24953         * Control.cs:
24954           - Implemented ContainsFocus
24955
24956 2004-08-21 13:26  pbartok
24957
24958         * Control.cs:
24959           - Implemented CausesValidation
24960
24961 2004-08-21 13:21  pbartok
24962
24963         * Control.cs:
24964           - Implemented CanFocus
24965           - Implemented CanSelect
24966           - Implemented Capture
24967
24968 2004-08-21 12:35  pbartok
24969
24970         * XplatUIWin32.cs:
24971           - Fixed bug with Async message handling
24972           - Implemented getting the ModifierKeys
24973
24974 2004-08-21 12:32  jackson
24975
24976         * AsyncMethodResult.cs: Make sure we have the mutex before we
24977           release it. Fixes BeginInvoke on windows
24978
24979 2004-08-21 11:31  pbartok
24980
24981         * XplatUIWin32.cs, XplatUIX11.cs:
24982           - Drivers now return proper mouse state
24983
24984 2004-08-21 10:54  jackson
24985
24986         * Control.cs: Implement EndInvoke
24987
24988 2004-08-21 10:48  jackson
24989
24990         * Timer.cs: Remove unneeded finalizer
24991
24992 2004-08-20 19:52  ravindra
24993
24994         * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
24995           in mouse event handling in the ToolBar control.
24996
24997 2004-08-20 19:50  ravindra
24998
24999         * ImageList.cs: Changed draw method to use the arguments passed in
25000           to draw the image.
25001
25002 2004-08-20 18:58  pbartok
25003
25004         * XplatUIStructs.cs:
25005           - Added private message for async communication
25006
25007 2004-08-20 17:38  ravindra
25008
25009         * Control.cs: Made RightToLeft property virtual and removed a
25010           Console.WriteLine.
25011
25012 2004-08-20 14:39  jordi
25013
25014         * ThemeGtk.cs: use style_attach
25015
25016 2004-08-20 14:39  pbartok
25017
25018         * XplatUIWin32.cs:
25019           - Added jackson's Async code from X11 to Win32
25020
25021 2004-08-20 14:09  pbartok
25022
25023         * SWF.csproj:
25024           - Added all new files
25025
25026 2004-08-20 14:09  pbartok
25027
25028         * Control.cs:
25029           - Added call to set window background color
25030
25031 2004-08-20 14:03  pbartok
25032
25033         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
25034           - Added method for setting the window background
25035
25036 2004-08-20 14:02  pbartok
25037
25038         * XplatUIWin32.cs:
25039           - Added method for setting the background color
25040           - Added handling for erasing the window background
25041
25042 2004-08-20 13:45  jordi
25043
25044         * TrackBar.cs: fixes timer, new properties and methods
25045
25046 2004-08-20 13:34  jackson
25047
25048         * ScrollBar.cs: Use the SWF timer so callbacks are run in the
25049           correct thread
25050
25051 2004-08-20 13:22  jackson
25052
25053         * Timer.cs: Timer Tick events are now handed through Controls Async
25054           mechanism so the callbacks are executed in the same thread as X
25055
25056 2004-08-20 13:19  jackson
25057
25058         * XplatUIDriver.cs: Expose functionality to send async messages
25059           through the driver
25060
25061 2004-08-20 13:18  jackson
25062
25063         * Control.cs: Implement Begininvoke
25064
25065 2004-08-20 13:14  jackson
25066
25067         * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
25068           messages through the driver
25069
25070 2004-08-20 13:12  jackson
25071
25072         * XplatUIX11.cs: Lock before all X operations. Also added Async
25073           method functionality through XSendEvent
25074
25075 2004-08-20 13:11  jackson
25076
25077         * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
25078           This will screw up on 64 bit systems)
25079
25080 2004-08-20 13:10  jackson
25081
25082         * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
25083           Async messages through X/Win32
25084
25085 2004-08-19 19:39  pbartok
25086
25087         * XplatUIX11.cs:
25088           - Updated code to match new HandleData.DeviceContext type
25089
25090 2004-08-19 19:38  pbartok
25091
25092         * HandleData.cs:
25093           - Made DeviceContext a generic object to allow usage from various
25094           drivers
25095           - Added support for queueing Windows messages
25096
25097 2004-08-19 19:37  pbartok
25098
25099         * XplatUIWin32.cs:
25100           - Added generation of MouseEnter, MouseLeave and MouseHover events
25101           - Added cleanup on EndPaint
25102
25103 2004-08-19 19:17  pbartok
25104
25105         * Control.cs:
25106           - Added handling of WM_MOUSEHOVER
25107           - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
25108           code
25109
25110 2004-08-19 18:55  jordi
25111
25112         * ThemeGtk.cs: fixes button order
25113
25114 2004-08-19 18:12  jordi
25115
25116         * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
25117
25118 2004-08-19 17:09  pbartok
25119
25120         * Control.cs:
25121           - Added Right property
25122           - Added RightToLeft property
25123
25124 2004-08-19 16:27  jordi
25125
25126         * ThemeGtk.cs: experimental GTK theme support
25127
25128 2004-08-19 16:26  jordi
25129
25130         * ITheme.cs, Theme.cs: move themes from an interface to a class
25131
25132 2004-08-19 16:25  jordi
25133
25134         * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
25135           theme enhancaments
25136
25137 2004-08-19 16:04  pbartok
25138
25139         * XplatUIX11.cs:
25140           - Added colormap basics
25141           - Added a way to re-initialize with a different display handle
25142           - Fixed setting of the window background color
25143           - Added various X11 imports related to colors and colormaps
25144
25145 2004-08-19 15:51  pbartok
25146
25147         * X11Structs.cs:
25148           - Removed packing hints (Paolo suggested this a while back)
25149           - fixed colormap type
25150           - Added default Atom types
25151           - Added Screen and color structs and enums
25152
25153 2004-08-19 15:39  pbartok
25154
25155         * ImageList.cs:
25156           - Added missing Draw() method
25157           - Added missing RecreateHandle event
25158
25159 2004-08-19 15:30  pbartok
25160
25161         * Form.cs:
25162           - Added handling of WM_CLOSE
25163
25164 2004-08-18 13:16  jordi
25165
25166         * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
25167           a table
25168
25169 2004-08-18 09:56  jordi
25170
25171         * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
25172
25173 2004-08-17 15:31  ravindra
25174
25175         * SWF.csproj: Updated project.
25176
25177 2004-08-17 15:25  pbartok
25178
25179         * Control.cs:
25180           - Drawing improvement; don't call UpdateBounds if we are not visible
25181             (or have been minimized)
25182
25183 2004-08-17 15:24  pbartok
25184
25185         * XplatUIWin32.cs:
25186           - Finished IsVisible
25187           - Added Win32GetWindowPlacement
25188
25189 2004-08-17 15:08  jackson
25190
25191         * Panel.cs: Initial checkin of the Panel
25192
25193 2004-08-17 14:25  pbartok
25194
25195         * Control.cs:
25196           - Fixed broken handling of default window sizes
25197
25198 2004-08-17 13:29  jackson
25199
25200         * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
25201           has a large startup time.
25202
25203 2004-08-17 10:25  jackson
25204
25205         * HandleData.cs: union areas properly
25206
25207 2004-08-17 10:12  jackson
25208
25209         * HandleData.cs: union areas properly
25210
25211 2004-08-16 20:00  ravindra
25212
25213         * ToolBar.cs, ToolBarButton.cs: Added attributes.
25214
25215 2004-08-16 18:48  ravindra
25216
25217         * ToolBar.cs: Added attributes.
25218
25219 2004-08-16 17:17  ravindra
25220
25221         * SWF.csproj: Updated project.
25222
25223 2004-08-16 17:16  jackson
25224
25225         * XplatUIX11.cs: Check for more expose events before sending a
25226           WM_PAINT so they can all be grouped together. This makes dragging a
25227           window across another window redraw in a sane way.
25228
25229 2004-08-16 15:47  pbartok
25230
25231         * Control.cs:
25232           - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
25233             support OnMouseEnter/Leave()
25234           - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
25235             exposure handling
25236
25237 2004-08-16 15:46  pbartok
25238
25239         * XplatUIStructs.cs, XplatUIX11.cs:
25240           - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
25241           OnMouseEnter/Leave()
25242
25243 2004-08-16 15:34  jackson
25244
25245         * XplatUIX11.cs: Group multiple expose events in HandleData, make
25246           sure messages get the message field set to WM_NULL if they are not
25247           handled.
25248
25249 2004-08-16 15:24  jackson
25250
25251         * HandleData.cs: HandleData is used for storing message information
25252           for window handles
25253
25254 2004-08-15 17:23  ravindra
25255
25256         * ColorDepth.cs: Added attribute.
25257
25258 2004-08-15 17:23  ravindra
25259
25260         * SWF.csproj: Updated project for ToolBar Control.
25261
25262 2004-08-15 17:20  ravindra
25263
25264         * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
25265           control and also dos2unix format.
25266
25267 2004-08-15 17:13  ravindra
25268
25269         * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
25270           ToolBarButtonClickEventArgs.cs,
25271           ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
25272           ToolBarTextAlign.cs: First Implementation of ToolBar control.
25273
25274 2004-08-15 15:31  pbartok
25275
25276         * ButtonBase.cs:
25277           - First (mostly) working version
25278
25279 2004-08-13 16:15  pbartok
25280
25281         * Control.cs:
25282           - Fixed Anchor default
25283
25284 2004-08-13 15:43  pbartok
25285
25286         * Control.cs:
25287           - Changed GetCursorPos signature
25288
25289 2004-08-13 15:42  pbartok
25290
25291         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
25292           - Changed signature for GetCursorPos
25293
25294 2004-08-13 15:25  pbartok
25295
25296         * XplatUIX11.cs:
25297           - Cleanup
25298           - Fixed resizing/exposure handling
25299
25300 2004-08-13 15:22  jordi
25301
25302         * ThemeWin32Classic.cs: removes redundant code and fixes issues
25303           with tickposition
25304
25305 2004-08-13 14:55  jordi
25306
25307         * TrackBar.cs: change from wndproc to events
25308
25309 2004-08-13 13:00  jordi
25310
25311         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
25312           XplatUIX11.cs: implements PointToClient (ScreenToClient)
25313
25314 2004-08-13 12:53  pbartok
25315
25316         * XplatUIWin32.cs:
25317           - Changed GetWindowPos to also provide client area size
25318           - Fixed broken prototypes for several win32 functions
25319
25320 2004-08-13 12:53  pbartok
25321
25322         * XplatUI.cs, XplatUIDriver.cs:
25323           - Changed GetWindowPos to also provide client area size
25324
25325 2004-08-13 12:52  pbartok
25326
25327         * XplatUIX11.cs:
25328           - Added generation of WM_POSCHANGED
25329           - Changed GetWindowPos to also provide client area size
25330
25331 2004-08-13 12:52  pbartok
25332
25333         * Control.cs:
25334           - Added Dispose() and destructor
25335           - Fixed resizing and bounds calculation
25336           - Fixed Layout
25337           - Added memory savings for invisible windows
25338
25339 2004-08-13 12:46  jordi
25340
25341         * TrackBar.cs: adds timer and grap window
25342
25343 2004-08-13 10:25  jackson
25344
25345         * Timer.cs: SWF Timer
25346
25347 2004-08-12 16:59  pbartok
25348
25349         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
25350           - Implemented method to get current mouse position
25351
25352 2004-08-12 14:29  jordi
25353
25354         * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
25355           enhancement, fix mouse problems, highli thumb, etc
25356
25357 2004-08-12 13:31  pbartok
25358
25359         * Control.cs:
25360           - Fixed Anchoring bugs
25361
25362 2004-08-12 13:01  jackson
25363
25364         * StatusBar.cs: Don't forget things
25365
25366 2004-08-12 12:54  jackson
25367
25368         * ThemeWin32Classic.cs: Handle owner draw status bars
25369
25370 2004-08-12 12:54  jackson
25371
25372         * StatusBar.cs: Implement missing properties, events, and methods.
25373           Handle mouse clicking
25374
25375 2004-08-12 10:19  jackson
25376
25377         * StatusBarPanelClickEventArgs.cs,
25378           StatusBarPanelClickEventHandler.cs: Classes for handling status
25379           bar panel click events
25380
25381 2004-08-12 10:10  jackson
25382
25383         * Control.cs: Add missing properties
25384
25385 2004-08-12 09:46  pbartok
25386
25387         * BindingsManagerBase.cs:
25388           - Name changed to BindingManagerBase.cs
25389
25390 2004-08-12 09:25  jordi
25391
25392         * ScrollableControl.cs: calls ctrlbase instead of exeception
25393
25394 2004-08-11 16:28  pbartok
25395
25396         * InputLanguageChangingEventArgs.cs:
25397           - Never check in before compiling. Fixes the last check-in
25398
25399 2004-08-11 16:26  pbartok
25400
25401         * InputLanguageChangingEventArgs.cs:
25402           - More signature fixes
25403
25404 2004-08-11 16:20  pbartok
25405
25406         * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
25407           Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
25408           ImageListStreamer.cs, InputLanguage.cs,
25409           InputLanguageChangedEventArgs.cs,
25410           InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
25411           LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
25412           ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
25413           XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
25414           - Signature fixes
25415
25416 2004-08-11 16:16  pbartok
25417
25418         * Application.cs:
25419           - Fixed Signature
25420           - Added .Net 1.1 method
25421
25422 2004-08-11 15:25  pbartok
25423
25424         * SWF.csproj:
25425           - Fixed BindingManagerBase.cs filename
25426
25427 2004-08-11 15:22  pbartok
25428
25429         * BindingManagerBase.cs:
25430           - Was checked in with wrong filename
25431
25432 2004-08-11 14:50  pbartok
25433
25434         * SWF.csproj:
25435           - Updated
25436
25437 2004-08-11 13:41  jordi
25438
25439         * XplatUIWin32.cs: Fixes ClientRect
25440
25441 2004-08-11 13:19  pbartok
25442
25443         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
25444           XplatUIX11.cs:
25445           - We had SetWindowPos and MoveWindow to set window positions and
25446             size, removed MoveWindow. We have GetWindowPos, so it made sense to
25447             keep SetWindowPos as matching counterpart
25448           - Added some X11 sanity checking
25449
25450 2004-08-11 12:59  pbartok
25451
25452         * Control.cs:
25453           - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
25454             (It seems that SetBounds is just a front for SetBoundsCore and
25455              SetBoundsCore updates the underlying window system and
25456              UpdateBounds is responsible for updating the variables associated
25457              with the Control and sending the events)
25458           - Major cleanup of Size handling; we now have two sizes, client_size
25459             and bounds. Bounds defines the window with decorations, client_size
25460             without them.
25461
25462 2004-08-11 12:55  pbartok
25463
25464         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
25465           - Added method to calculate difference between decorated window and
25466             raw client area
25467
25468 2004-08-11 12:54  pbartok
25469
25470         * Label.cs:
25471           - Forcing redraw on resize
25472
25473 2004-08-11 11:43  pbartok
25474
25475         * ImageList.cs:
25476           - Removed disposing of the actual images when the list is disposed
25477
25478 2004-08-11 09:13  pbartok
25479
25480         * Control.cs:
25481           - Now properly reparents windows
25482
25483 2004-08-11 08:37  pbartok
25484
25485         * Control.cs:
25486           - Duh!
25487
25488 2004-08-11 07:47  pbartok
25489
25490         * Control.cs:
25491           - Rewrote the collection stuff. Might not be as fast now, not
25492             keeping the number of children around and accessible directly, but
25493             it's more straightforward
25494
25495 2004-08-11 07:44  pbartok
25496
25497         * AccessibleObject.cs:
25498           - Fixed to match ControlCollection rewrite
25499
25500 2004-08-11 07:43  pbartok
25501
25502         * ImageList.cs:
25503           - Added missing creation of the collection list
25504
25505 2004-08-10 20:08  jackson
25506
25507         * StatusBar.cs: Get the paint message from WndProc
25508
25509 2004-08-10 19:31  jackson
25510
25511         * ThemeWin32Classic.cs: Create Brushes as little as possible
25512
25513 2004-08-10 19:20  jackson
25514
25515         * UICues.cs: Add Flags attribute
25516
25517 2004-08-10 19:19  jackson
25518
25519         * StatusBarPanel.cs: Signature cleanup
25520
25521 2004-08-10 19:10  jackson
25522
25523         * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
25524           Initial implementation of status bar item drawing
25525
25526 2004-08-10 17:27  jordi
25527
25528         * TrackBar.cs: add missing methods, properties, and restructure to
25529           hide extra ones
25530
25531 2004-08-10 16:24  jackson
25532
25533         * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
25534           ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
25535           attribute
25536
25537 2004-08-10 13:21  jordi
25538
25539         * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
25540           enhancements and standarize on win colors defaults
25541
25542 2004-08-10 12:52  jackson
25543
25544         * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
25545           ThemeWin32Classic.cs: Implement DrawItem functionality
25546
25547 2004-08-10 12:47  jordi
25548
25549         * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
25550
25551 2004-08-10 12:32  jordi
25552
25553         * Control.cs: throw ontextchange event
25554
25555 2004-08-10 11:43  pbartok
25556
25557         * Control.cs:
25558           - Added more to the still unfinished Dock/Anchor layout code
25559
25560 2004-08-10 11:39  pbartok
25561
25562         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
25563           - Added GetWindowPos method
25564
25565 2004-08-10 11:36  pbartok
25566
25567         * XplatUIWin32.cs:
25568           - Implemented several methods
25569
25570 2004-08-10 09:47  jackson
25571
25572         * TrackBar.cs: Allow control to handle buffering
25573
25574 2004-08-10 09:41  jackson
25575
25576         * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
25577
25578 2004-08-10 09:24  jackson
25579
25580         * Label.cs, LinkLabel.cs: Let Control handle buffering.
25581
25582 2004-08-10 09:09  jackson
25583
25584         * StatusBar.cs: Let Control handle all the buffering.
25585
25586 2004-08-10 09:08  jackson
25587
25588         * Control.cs: Control will now handle the buffering code, so each
25589           control does not have to implement this.
25590
25591 2004-08-10 08:34  jackson
25592
25593         * XplatUIDriver.cs: Use default colors from the theme
25594
25595 2004-08-09 17:12  pbartok
25596
25597         * ImageList.cs:
25598           - Fixed several bugs Ravindra pointed out
25599
25600 2004-08-09 16:11  pbartok
25601
25602         * Control.cs:
25603           - Added incomplete dock layout code
25604           - Added support for mouse wheel
25605
25606 2004-08-09 16:09  pbartok
25607
25608         * XplatUIX11.cs:
25609           - Added handling for middle and right mousebutton
25610           - Added handling for mouse wheel
25611           - Added handling for key state and mouse state and position
25612           - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
25613           messages
25614
25615 2004-08-09 15:40  jackson
25616
25617         * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
25618           StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
25619           checkin
25620
25621 2004-08-09 15:37  jackson
25622
25623         * StatusBar.cs: Initial implementation of StatusBar
25624
25625 2004-08-09 15:36  jackson
25626
25627         * ITheme.cs: Add support for drawing status bar and getting status
25628           bar item sizes
25629
25630 2004-08-09 15:35  pbartok
25631
25632         * MouseButtons.cs:
25633           - Fixed values
25634
25635 2004-08-09 15:34  jackson
25636
25637         * ThemeWin32Classic.cs: Add support for drawing status bar and get
25638           status bar item sizes
25639
25640 2004-08-09 15:21  jackson
25641
25642         * ThemeWin32Classic.cs: Use known colors for default control
25643           colours
25644
25645 2004-08-09 15:12  jackson
25646
25647         * ThemeWin32Classic.cs: Make the default font static, it is static
25648           in control so this doesn't change functionality and creating fonts
25649           is sloooooow.
25650
25651 2004-08-09 14:56  pbartok
25652
25653         * X11Structs.cs:
25654           - Added GrabMode enum
25655
25656 2004-08-09 14:55  pbartok
25657
25658         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
25659           - Removed Run method, was only required for initial development
25660
25661 2004-08-09 14:51  pbartok
25662
25663         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
25664           - Implemented GrabWindow/ReleaseWindow methods to allow pointer
25665           capture
25666
25667 2004-08-09 13:48  pbartok
25668
25669         * XplatUIX11.cs:
25670           - Fixed default sizing for child windows
25671
25672 2004-08-09 12:56  pbartok
25673
25674         * XplatUIX11.cs:
25675           - Added generation of WM_DESTROY message
25676           - Added handling of window manager induced shutdown
25677
25678 2004-08-09 11:31  jackson
25679
25680         * ThemeWin32Classic.cs: New names for control properties
25681
25682 2004-08-09 11:25  jackson
25683
25684         * Control.cs: Use new color names
25685
25686 2004-08-09 11:02  jackson
25687
25688         * XplatUI.cs: Get default window properties from the theme
25689
25690 2004-08-09 11:01  jackson
25691
25692         * ITheme.cs: The theme engine now controls default window
25693           properties
25694
25695 2004-08-09 11:00  jackson
25696
25697         * ThemeWin32Classic.cs: Add default window color properties
25698
25699 2004-08-09 10:17  jackson
25700
25701         * ThemeWin32Classic.cs: Use correct default back color
25702
25703 2004-08-09 10:05  jackson
25704
25705         * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
25706           the theme now.
25707
25708 2004-08-09 09:56  jackson
25709
25710         * XplatUI.cs: Remove defaults, these are handled by the theme now.
25711
25712 2004-08-09 09:54  jackson
25713
25714         * Control.cs: Get default properties from the theme.
25715
25716 2004-08-09 09:53  jackson
25717
25718         * ITheme.cs: Themes now handle default control properties
25719
25720 2004-08-09 09:53  jackson
25721
25722         * ThemeWin32Classic.cs: Themes now handle default control
25723           properties so coloring will be consistent
25724
25725 2004-08-08 16:54  jordi
25726
25727         * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
25728
25729 2004-08-08 15:08  jordi
25730
25731         * XplatUIX11.cs: fixes keyboard crash
25732
25733 2004-08-08 13:47  jordi
25734
25735         * Label.cs: add cvs header info
25736
25737 2004-08-08 12:09  jackson
25738
25739         * ThemeWin32Classic.cs: Add pen_buttonface
25740
25741 2004-08-08 11:52  jordi
25742
25743         * Label.cs, LinkLabel.cs: [no log message]
25744
25745 2004-08-08 11:34  jordi
25746
25747         * ThemeWin32Classic.cs: Use Windows Standard Colours
25748
25749 2004-08-07 17:32  jordi
25750
25751         * TrackBar.cs: throw exceptions of invalid enums values
25752
25753 2004-08-07 17:31  jordi
25754
25755         * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
25756           draw method name
25757
25758 2004-08-07 16:56  jackson
25759
25760         * HorizontalAlignment.cs: Initial checkin
25761
25762 2004-08-07 13:16  jordi
25763
25764         * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
25765           methods
25766
25767 2004-08-07 13:05  jordi
25768
25769         * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
25770           GetSysColor defines
25771
25772 2004-08-06 18:01  pbartok
25773
25774         * ThemeWin32Classic.cs:
25775           - Fixed some rounding issues with float/int
25776
25777 2004-08-06 18:00  jackson
25778
25779         * DockStyle.cs, AnchorStyles.cs:
25780
25781                   Add flags and serializable attributes.
25782
25783 2004-08-06 17:46  pbartok
25784
25785         * XplatUIX11.cs:
25786           - Implemented GetParent
25787
25788 2004-08-06 17:18  pbartok
25789
25790         * TrackBar.cs:
25791           - Fixed some rounding issues with float/int
25792
25793 2004-08-06 17:17  pbartok
25794
25795         * X11Structs.cs, XplatUIX11.cs:
25796           - Fixed Refresh and Invalidate
25797
25798 2004-08-06 15:30  pbartok
25799
25800         * Control.cs, X11Structs.cs, XplatUIX11.cs:
25801           - Fixed recursive loop when resizing
25802           - Improved/fixed redrawing on expose messages
25803
25804 2004-08-06 09:53  jordi
25805
25806         * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
25807           keyboard navigation
25808
25809 2004-08-06 08:02  pbartok
25810
25811         * X11Structs.cs, XplatUIX11.cs:
25812           - Fixed reparenting
25813           - Fixed window border creation
25814
25815 2004-08-05 15:38  pbartok
25816
25817         * XplatUIX11.cs:
25818           - Attempted fix for reparenting problems
25819
25820 2004-08-04 15:14  pbartok
25821
25822         * Control.cs:
25823           - Fixed Invalidation bug (calculated wrong client area)
25824           - Added ClientSize setter
25825
25826 2004-08-04 15:13  pbartok
25827
25828         * Form.cs:
25829           - Added AutoScale properties
25830
25831 2004-08-04 15:13  pbartok
25832
25833         * SWF.csproj:
25834           - Added latest files
25835
25836 2004-08-04 14:11  pbartok
25837
25838         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
25839           XplatUIX11.cs:
25840           - Added Invalidate handling
25841
25842 2004-08-03 17:09  jordi
25843
25844         * XplatUIDriver.cs: fixes spelling mistake
25845
25846 2004-07-27 09:53  jordi
25847
25848         * TrackBar.cs: fixes trackbar events, def classname, methods
25849           signature
25850
25851 2004-07-27 09:29  jordi
25852
25853         * ScrollBar.cs: fixes scrollbar events
25854
25855 2004-07-27 04:38  jordi
25856
25857         * Control.cs: changes to be able to run winforms samples
25858
25859 2004-07-26 11:42  jordi
25860
25861         * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
25862           ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
25863
25864 2004-07-26 05:41  jordi
25865
25866         * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
25867           MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
25868           implementation
25869
25870 2004-07-22 09:22  jordi
25871
25872         * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
25873           check link overlapping, implement events, and fixes
25874
25875 2004-07-21 10:28  jordi
25876
25877         * DialogResult.cs, IButtonControl.cs: fixes comments filenames
25878
25879 2004-07-21 10:19  jordi
25880
25881         * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
25882           LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
25883           LinkLabelLinkClickedEventArgs.cs,
25884           LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
25885           XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
25886           implementation
25887
25888 2004-07-19 13:09  jordi
25889
25890         * Control.cs, Label.cs: label control re-written: added missing
25891           functionlity, events, and properties
25892
25893 2004-07-19 10:49  jordi
25894
25895         * Control.cs: fixes SetBounds logic
25896
25897 2004-07-19 01:29  jordi
25898
25899         * Control.cs: Call RefreshWindow only if the window has created
25900
25901 2004-07-15 14:05  pbartok
25902
25903         * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
25904           - Implemented ImageList and ImageList.ImageCollection classes
25905           - Added ColorDepth enumeration
25906           - Updated SWF VS.Net project
25907
25908 2004-07-15 11:06  jordi
25909
25910         * XplatUIStructs.cs: added MsgButons enum
25911
25912 2004-07-15 11:03  jordi
25913
25914         * Control.cs: added basic mouse handeling events
25915
25916 2004-07-15 03:38  jordi
25917
25918         * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
25919           Vertical TrackBar control implementation
25920
25921 2004-07-13 09:33  jordi
25922
25923         * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
25924
25925 2004-07-13 09:31  jordi
25926
25927         * Control.cs, Form.cs: commit: new properties and fixes form size
25928           problems
25929
25930 2004-07-09 14:13  miguel
25931
25932         * ProgressBar.cs: Spelling
25933
25934 2004-07-09 11:25  pbartok
25935
25936         * ProgressBar.cs:
25937           - Removed usage of Rectangle for drawing. Miguel pointed out it's
25938           faster
25939
25940 2004-07-09 11:17  miguel
25941
25942         * ProgressBar.cs: 2004-07-09  Miguel de Icaza  <miguel@ximian.com>
25943
25944                 * ProgressBar.cs: Fixed spelling for `block'
25945
25946                 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
25947                 style guidelines.
25948
25949                 Avoid using the += on rect.X, that exposed a bug in the compiler.
25950
25951 2004-07-08 23:21  pbartok
25952
25953         * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
25954           AnchorStyles.cs, Application.cs, ApplicationContext.cs,
25955           BaseCollection.cs, Binding.cs, BindingContext.cs,
25956           BindingMemberInfo.cs, BindingsCollection.cs,
25957           BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
25958           BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
25959           ButtonState.cs, CaptionButton.cs, CheckBox.cs,
25960           ContainerControl.cs, Control.cs, ControlEventArgs.cs,
25961           ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
25962           ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
25963           CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
25964           DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
25965           FrameStyle.cs, GiveFeedbackEventArgs.cs,
25966           GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
25967           HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
25968           IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
25969           InputLanguageChangedEventArgs.cs,
25970           InputLanguageChangedEventHandler.cs,
25971           InputLanguageChangingEventArgs.cs,
25972           InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
25973           InvalidateEventArgs.cs, InvalidateEventHandler.cs,
25974           KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
25975           KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
25976           LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
25977           MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
25978           PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
25979           QueryAccessibilityHelpEventArgs.cs,
25980           QueryAccessibilityHelpEventHandler.cs,
25981           QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
25982           RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
25983           ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
25984           ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
25985           TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
25986           UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
25987           XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
25988           XplatUIX11.cs, lang.cs:
25989           - Initial check-in
25990
25991