2007-04-03 Jonathan Pobst <monkey@jpobst.com>
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
1 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
2
3         * Control.cs: Fix an issue where if a user resized a control inside
4         a sizing method like OnResize, we would overwrite their explicit
5         value.  Also, only call DefaultSize once in the constructor instead
6         of 4 times.  Also, do not call SetBoundsCore from SetBounds if 
7         nothing actually changed.
8
9 2007-04-03  Jackson Harper  <jackson@ximian.com>
10
11         * TextControl.cs: Don't attempt to copy text for lines with no
12         text in them (technically this shouldn't happen, but we aren't
13         always inserting line endings when we should be).
14
15 2007-04-03  Jackson Harper  <jackson@ximian.com>
16
17         * TextBoxBase.cs: Calculate the scrollbars before calculating the
18         document, because this sets some of the document size properties
19         that are needed.
20
21 2007-04-03  Jackson Harper  <jackson@ximian.com>
22
23         * TextBoxBase.cs: We need to calculate maximums even if this is
24         not a multiline control, because the maxs are used for scrolling.
25         - Display the caret after doing a page up/down, we need to
26         manually display it because a proper CaretMoved event isn't
27         triggered (this is because of the way the math is done to
28         determine how far to scroll).
29
30 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
31
32         * ToolBar.cs: Fix some breakage caused by the SetBoundsCore change.
33         (ToolBar was relying on SetBoundsCore to default the values sent 
34         base off of BoundsSpecified.)
35
36 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
37
38         * DateTimePicker.cs: Change Text so that when a null value or empty
39           string is assigned to the test we always raise ValueChanged and
40           TextChanged (earlier implementation would only raise ValueChanged
41           if the current date value was different from DateTime.Now).
42
43 2007-04-03  Andreia Gaita <avidigal@novell.com> 
44
45         * ButtonBase: Call update after invalidation, fixes #80194
46
47 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
48
49         * ThemeWin32Classic.cs: Draw StatusBar using double buffering. Fixes
50           #79335.
51
52 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
53
54         * XplatUIX11.cs: SetWMStyles: If the control is a form with
55           FormBorderStyle = None, don't give the window any decorations.
56           Fixes #81276.
57
58 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
59
60         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
61         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style
62           to check for is a mix of several styles (such as WS_CAPTION for
63           instance).
64         * Control.cs: Don't paint an area bigger than the client area when
65           painting the background colour. Add an internal GetCreateParams.
66           Update calls to XplatUI.CalculateWindowRect due to API change.
67         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole
68           window's size, and handle WM_NCCALCSIZE in DefWndProc to calculate
69           the size if it hasn't been handled by any windows. When creating
70           and moving windows, X wants the location of the entire window, but
71           the size of the client window, so add
72           TranslateClientRectangleToXClientRectangle,
73           TranslateWindowSizeToXWindowSIze and
74           TranslatedXWindowSizeToWindowSize to cope with this, and call them
75           before every window creation and move. Update CalculateWIndowRect
76           to use Hwnd.GetWindowRect (one step towards removing DeriveStyles).
77           In AddConfigureNotify don't do anything if the hwnd is a zombie
78           (fixes the BadWindow we were getting while running the tests),
79           always calculate the offsets when it's a parentless window, not
80           only when reparented, and translate the window size, since we're
81           getting the client size of the whole window, excluding entire
82           window.
83         * Theme.cs: Added BorderSizableSize.
84         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
85           anymore. Update calls to XplatUI.CalculateWindowRect due to API
86           chang
87         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API
88           change. Fake the window styles here instead of in XplatUIWin32 so
89           that all back-ends get the same window styles (and it's Form that's
90           deciding when to use wm, not the Win32 backend anyways)
91         * Hwnd.cs: Completely reworked GetWindowRectangle and
92           GetClientRectangle - they are now passed a CreateParams and they
93           only use Style and ExStyle to determine the rectangles (they should
94           now work just like Win32AdjustWindowRectEx - though quite a few
95           special cases are probably missing). They should also be 100%
96           complimentary (i.e. GetWindowRectangle (GetClientRectangle (rect))
97           == rect), and all numbers (borders, menu sizes) are taken from the
98           current theme. Added a GetBorders helper function that will return
99           the borders for any given CreateParams (including captions and
100           menus), and GetBorderSize that returns the given border size only.
101         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
102           Hwnd.GetClientRectangle.
103
104 2007-04-02  Chris Toshok  <toshok@ximian.com>
105
106         * DataGridBoolColumn.cs: rewrite things a bit, and fix up the
107         logic between the values we present to the user and the values
108         which are stored in the column's property.  Also, don't call
109         GetPreferredSize - it's virtual. Along the way, fix bug #80965.
110
111 2007-04-02  Jackson Harper  <jackson@ximian.com>
112
113         * TextBoxBase.cs: Scroll faster!
114
115 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
116
117         * StatusStrip.cs: Layout fixes for PDN.
118         * ToolStrip.cs: Set item's available to true, and placement to main when
119         added.
120         * ToolStripItem.cs: Fix an Available issue, check that Parent is really
121         changing in setter before doing any work, add InternalVisible.
122         * ToolStripPanel.cs: Remove unused variable to fix compiler warning.
123         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
124         infinite loop.
125
126 2007-04-02  Jackson Harper  <jackson@ximian.com>
127
128         * TextBox.cs: LBUTTON does not make the textbox select all of it's
129         text on focus.
130
131 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
132
133         * XplatUIWin32.cs: Use the previous change in SetParent for forms only.
134           Makes ToolStripComboBoxes show up again.
135
136 2007-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
137
138         * ListView.cs: Add a hover_pending field in ListView
139         to fire just one OnMouseHover event for each MouseEnter/MouseLeave
140         cycle (we are resetting the MouseHover logic in XplatUI
141         to handle HoverSelection). Fixes #80429.
142
143 2007-04-02  Jackson Harper  <jackson@ximian.com>
144
145         * TextControl.cs: Make sure the attributes get set on the last
146         tag.
147         - Still have to do the end tag if we have stepped all the ways to
148         the end.
149
150 2007-04-02  Sebastien Pouliot  <sebastien@ximian.com>
151
152         * XplatUIOSX.cs, XplatUIX11.cs, XplatUIX11GTK.cs: Remove dependency
153         on an internal libgdiplus call when the information is already 
154         available via the public API.
155
156 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
157
158         * Control.cs: Call ContainerControl.ChildControlRemoved whenever a
159           control is removed from a control collecftion.
160         * XplatUIX11.cs: The first location for toplevel form is (22, 22).
161           Fixes FormPropertyTest (failed on rare occasions).
162         * XplatUIWin32.cs: Add a workaround in SetParent for strange behaviour
163           of Win32SetParent (when changing from no parent to a parent it
164           might add the new parent's location in screen coordinates to this
165           window's location).
166         * Form.cs: Rework ChangingParent once again, now the handle is
167           recreated whenever a FormWindowManager is added or removed (that is
168           whenever a normal form is parented or abandoned). Also change
169           CreateParams so that all non-toplevel windows always get the
170           specified sice (StartupPosition is never considered for
171           non-TopLevel forms).
172         * ContainerControl.cs: Add ChildControlRemoved, the container control
173           needs to be notified when a control is removed from it's
174           collection, in the case the removed control is the active control.
175
176 2007-04-02  Jackson Harper  <jackson@ximian.com>
177
178         * RichTextBox.cs: Use the new methods for setting the font and
179         color, these methods set the specified attribute without
180         overriding the other attributes.
181
182 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
183
184         * ToolStripPanel.cs: Fixes for better layouts in PDN.
185
186 2007-03-31  Gert Driesen  <drieseng@users.sourceforge.net>
187
188         * TextBox.cs: Added internal ChangeBackColor method to special-case
189         Color.Empty. Added check for invalid ScrollBars value.
190         * TextBoxBase.cs: Added internal ChangeBackColor method.
191         * RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added
192         internal ChangeBackColor method to special-case Color.Empty. Added
193         check for invalid ScrollBars value.
194
195 2007-03-30  Everaldo Canuto  <everaldo@simios.org>
196
197         * MenuItem.cs: On invalidate prevent form to create handle. [Fixes #81272]
198
199 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
200
201         * ScollableControl.cs: Add HorizontalScroll and VerticalScroll properties.
202         * ScrollProperties.cs, HScrollProperties.cs, VScrollProperties.cs: Added.
203         [Based on submitted patch from Olivier Duff.]
204
205 2007-03-30  Jackson Harper  <jackson@ximian.com>
206
207         * TextBox.cs: Only select all on initial focus if the user has not
208         specified a selection area.
209
210 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
211
212         * UserControl.cs: Override CreateParams.
213
214 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
215
216         [ Fixes #80995 ]
217
218         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
219         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style to
220           check for is a mix of several styles (such as WS_CAPTION for instance).
221         * Control.cs: Don't paint an area bigger than the client area when painting
222           the background colour. Add an internal GetCreateParams. Update calls to
223           XplatUI.CalculateWindowRect due to API change.
224         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole window's
225           size, and handle WM_NCCALCSIZE in DefWndProc to calculate the size if it
226           hasn't been handled by any windows. When creating and moving windows, X
227           wants the location of the entire window, but the size of the client
228           window, so add TranslateClientRectangleToXClientRectangle,
229           TranslateWindowSizeToXWindowSIze and TranslatedXWindowSizeToWindowSize
230           to cope with this, and call them before every window creation and move.
231           Update CalculateWIndowRect to use Hwnd.GetWindowRect (one step towards
232           removing DeriveStyles). In AddConfigureNotify don't do anything if the
233           hwnd is a zombie (fixes the BadWindow we were getting while running the
234           tests), always calculate the offsets when it's a parentless window, not
235           only when reparented, and translate the window size, since we're getting
236           the client size of the whole window, excluding entire window.
237         * Theme.cs: Added BorderSizableSize.
238         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
239           anymore. Update calls to XplatUI.CalculateWindowRect due to API change.
240         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API change.
241           Fake the window styles here instead of in XplatUIWin32 so that all
242           back-ends get the same window styles (and it's Form that's deciding when
243           to use wm, not the Win32 backend anyways)
244         * Hwnd.cs: Completely reworked GetWindowRectangle and GetClientRectangle -
245           they are now passed a CreateParams and they only use Style and ExStyle
246           to determine the rectangles (they should now work just like
247           Win32AdjustWindowRectEx - though quite a few special cases are probably
248           missing). They should also be 100% complimentary (i.e. GetWindowRectangle
249           (GetClientRectangle (rect)) == rect), and all numbers (borders, menu
250           sizes) are taken from the current theme. Added a GetBorders helper
251           function that will return the borders for any given CreateParams
252           (including captions and menus), and GetBorderSize that returns the given
253           border size only.
254         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
255           Hwnd.GetClientRectangle.
256
257 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
258
259         * Form.cs: Don't layout mdi children on MdiParent creation, the initial
260           layout of the mdi children is handled by CreateParams. Fixes
261           #79964,
262
263 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
264
265         * MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is
266         processed.
267
268         * Form.cs: When active tracker mouse down is not processed, send event 
269         back to control inside mouse position. [Fixes #81227]
270
271 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
272
273         * ComboBox.cs: Override the ComboListBox's ActivateOnShow property and
274         remove WS_VISIBLE from CreateParams to prevent combobox dropdowns from
275         stealing focus from the active form on Windows.  (Control will be made
276         visible in ShowWindow.)
277
278 2007-03-29  Mike Kestner  <mkestner@novell.com>
279
280         * ImageList.cs : add internal Changed event.
281         * ListView.cs : hook up to StateImageList.Changed to perform
282         invalidations when the the state icon list changes. [Fixes #81191]
283
284 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
285
286         * ToolTip.cs: Override the ToolTipWindow's ActivateOnShow property
287         to prevent tooltips from stealing focus from the active form on Windows.
288
289 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
290
291         * ThemeWin32Classic.cs: Small stetic fixes in notifyicon balloon. 
292
293         * ThemeClearlooks.cs: Implement notifyicon balloon for clearlooks theme.
294
295 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
296
297         * NotifyIcon.cs, ThemeWin32Classic.cs: Icon support added to notifyicon
298         balloons.
299
300 2007-03-29  Jackson Harper  <jackson@ximian.com>
301
302         * TextControl.cs: When deleting text from non multiline textboxes,
303         we need to update the entire document, because line offsets will
304         be shifting.
305
306 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
307
308         * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method
309         added to theme, now we can create themes that uses diferent notify engines
310         like notification-daemon from galago project or growl for Mac OS.
311
312 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
313
314         * NotifyIcon.cs: Prevent Balloon to show in task bar.
315
316 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
317
318         * XplatUIX11.cs: Prevent system to open more than one balloon.
319
320         * NotifyIcon.cs: Prevent system to open more than one balloon and remove
321         some compiler warning messages.
322
323 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
324
325         [Fixes #79149]
326
327         * XplatUIX11.cs: Implement SystrayBalloon for X11 systems.
328
329         * ThemeWin32Classic.cs, Theme.cs: DrawBalloonWindow and BalloonWindowRect 
330         implemented, this methods is used by NotifyIcon.BalloonWindow class.
331
332         * NotifyIcon.cs: BalloonWindow class added to support Balloon in X11 
333         systems.
334
335 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
336
337         * ListViewItem.cs: Forgot to make Invalidate internal.
338
339 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
340
341         * ListView.cs: Add a InvalidateSelection method to
342         invalidate methods which are currently selected, and call
343         it when setting FullRowSelect and HideSelection, instead of
344         calling Redraw.
345
346 2007-03-28  Chris Toshok  <toshok@ximian.com>
347
348         * XplatUIX11.cs (UnmapWindow): reindent this block.
349
350         * DataGrid.cs (UpdateSelectionAfterCursorMove): we need to update
351         the selection_start if we're moving the selection (that is, not
352         extending it). Fixes bug #80461.
353
354 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
355
356         * ProgressBar.cs: Make the default MarqueeAnimationSpeed = 100.
357         * ToolStripPanel.cs: Fix RowMargin, Renderer, RenderMode, and
358         create private ControlCollection.
359
360 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
361
362         * Control.cs: We need to call OnVisibleChanged for our implicit
363         children as well as our normal children.  Fixes scrollbars in
364         comboboxes not showing up.
365
366 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
367
368         * Control.cs, Form.cs: Anywhere we call CreateHandle, we need to do
369         the check for IsHandleCreated first.  The check in CreateHandle is not
370         good enough because CreateHandle can be overriden, and the override 
371         should not be called if the handle is already created.
372
373 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
374
375         * ToolStrip.cs: Remove MonoTODO for tooltips.
376         * ToolStripComboBox.cs: Fix MonoTODO for DropDownHeight and events.
377         * ToolStripContainer.cs: Add custom ControlCollection class.
378         * ToolStripContentPanel.cs: Fix Renderer setting to match MS behavior.
379         * ToolStripDropDown.cs: Add some missing properties/methods.
380         * ToolStripDropDownMenu.cs: Override OnLayout and SetDisplayedItems.
381         * ToolStripItem.cs: Remove MonoTODO for tooltips.
382         * ToolStripManager.cs: Add IsShortcutDefined.
383         * ToolStripOverflow.cs: Override LayoutEngine.
384         * ToolStripProgressBar.cs: Add MarqueeAnimationSpeed.
385         * ToolStripSeparator.cs: Add ImageKey.
386
387 2007-03-28  Jackson Harper  <jackson@ximian.com>
388
389         * TextControl.cs: If a char delete removes a line ending, we need
390         to update the ending style.
391         - Make sure the line ending calcs get called.
392
393 2007-03-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
394
395         * XplatUIX11.cs: CreateWindow: Remove old default form location code,
396           it was making the new code not work. Fixed a typo in the new code
397           as well. Fixes #79826.
398
399 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
400
401         * XplatUIWin32.cs:
402         - NIF_STATE and NIF_INFO added to NotifyIconFlags.
403         - NOTIFYICONDATA properties sizes fixed, szTip is 128, not 64.
404         - SystrayBalloon method implemented.
405         [Add support for notifyicon balloon on win32, #79149]
406
407 2007-03-27  Mike Kestner  <mkestner@novell.com>
408
409         * ThemeWin32Classic.cs : update StateImageList selection to mirror
410         the ms behavior when only one image is added to the list.
411         [Fixes #81191]
412
413 2007-03-27  Jackson Harper  <jackson@ximian.com>
414
415         * TextControl.cs: Improvements to non multiline line ending
416         drawing/measuing.
417
418 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
419
420         * XplatUIX11.cs: Fix the time which tooltip is opened for NotifyIcon. 
421
422 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
423
424         * NotifyIcon.cs: 
425         - Balloon message handling added.
426         - Call XplatUI.SystrayBalloon in ShowBalloonTip. 
427
428         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
429         XplatUIOSX.cs, XplatUIX11-new.cs: ShowBalloonTip method renamed 
430         to SystrayBalloon to me like other Systray method, also a
431         handle parameter added.
432
433 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
434
435         * ListView.cs: Show scrollbars even when items.Count == 0
436         but the columns Width is bigger than the ListView.Width.
437         Also, when columns.Count == 0 set layout_wd and layout_ht
438         to the ClientRectangle values, so we don't show any scrollbar
439         in that case.
440
441 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
442
443         * XplatUIStructs.cs: Balloon (NIN_BALLOON*) constants added.
444
445 2007-03-27  Jackson Harper  <jackson@ximian.com>
446
447         * RichTextBox.cs: The RTF library decodes the text properly for us
448         now.
449
450 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
451
452         * ListView.cs: Display HeaderControl even when columns.Count == 0.
453         * ThemeWin32Classic.cs: Use SystemBrushes.Control to draw the
454         ListView header (HeaderControl), instead of Control.BackColor.
455
456 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
457
458         * Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
459         Fixes tab control issues where controls would not show up because they
460         never received their OnVisibleChanged call.
461
462 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
463
464         * NotifyIcon.cs: Balloon events added (BalloonTipClicked, BalloonTipClosed,
465         BalloonTipShown).
466
467 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
468
469         * Control.cs: We won't get a WM_SHOWWINDOW when we create a window that
470         is maximized or minimized, so move CreateControl to Control.OnVisibleChanged.
471         * Form.cs: After we set the form visible, send a fake WM_SHOWWINDOW if we
472         are max or min.  Remove WS_VISIBLE from CreateParams unless we are recreating
473         the handle.  Fix WindowState by using the internal variable until we are 
474         sure that we've been shown.
475         * XplatUIX11.cs: Do not generate a WM_SHOWWINDOW message if new form is
476         max or min.
477         [Fixes bug #81198]
478
479 2007-03-27  Rolf Bjarne Kvinge <RKvinge@novell.com> 
480
481         * XplatUIX11.cs: Windows without WS_CAPTION can still get decorations
482           (at least borders). Fixes #79386 on Linux (with a small difference
483           in behaviour: when trying to resize a caption-less window metacity
484           shows the sysmenu. Resizing is still possible though).
485         * XplatUIWin32.cs: When setting window styles send request an extra
486           WM_NCCALCSIZE when it's a form without title (due to no text and no
487           caption), since Win32 seems to calculate it wrong the first time we
488           get the message, though the second time things work as they should.
489         * Form.cs: Reorder a few statements in ChangingParent, otherwise the
490           newly reparented window might show up unparented. Update
491           CreateParams to exclude WS_DLGFRAME if ControlBox is false and
492           there's no title text. Fixes #79386.
493
494 2007-03-27  Mike Kestner  <mkestner@novell.com>
495
496         * ListBox.cs : don't perform invalidations if the handle hasn't been
497         created.  [Fixes #80753]
498
499 2007-03-27  Mike Kestner  <mkestner@novell.com>
500
501         * ListBox.cs : don't adjust top item when SelectedIndex is set to -1.
502         [Fixes #80428]
503
504 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
505
506         * XplatUIWin32.cs: Complete NOTIFYICONDATA structure, additional fields 
507         needed to implement Balloon.
508
509 2007-03-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
510
511         * ListViewItem.cs: In the constructors that take
512         an array of strings, don't use ListViewSubItemCollection.AddRange
513         method to add items, since we need to have a different behaviour (in
514         the constructors we add an item for each null string, opposed to
515         the behaviour of AddRange, which adds nothing).
516
517 2007-03-26  Andreia Gaita  <avidigal@novell.com>
518
519         * NumericUpDown.cs: Fix broken 1.1 api for ParseEditText
520
521 2007-03-26  Jackson Harper  <jackson@ximian.com>
522
523         * TextControl.cs: Draw and measure line endings when in non
524         multiline mode.
525         - When searching the text, count the end of the last line as a
526         word boundary.
527
528 2007-03-26  Jackson Harper  <jackson@ximian.com>
529
530         * RichTextBox.cs: The selection_start and selection_end don't
531         really track the correct tags for the selection. So we'll manually
532         compute the correct tag here.
533
534 2007-03-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
535
536         * ProgressBar.cs, ThemeWin32Classic.cs: Implemented drawing of Marquee
537           and Continuous styles. Fixes #79469.
538
539 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
540
541         * ToolStrip.cs: Implement Tooltips.
542         * ToolStripItem.cs: Create internal method for determining tooltip.
543
544 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
545
546         * PropertyGrid.cs: Hide a EditorBrowsable attribute from 1.1 API.
547
548 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
549
550         * NotifyIcon.cs: On disposing verify if icon is visible and hide it,
551         it prevents a problem thak keeps icon visible after application 
552         closes on win32.
553
554 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
555
556         * NotifyIcon.cs: Balloon properties and methods created.
557
558         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
559         XplatUIOSX.cs, XplatUIX11-new.cs: Implement ShowBalloonTip method.
560
561 2007-03-25  Jonathan Pobst  <monkey@jpobst.com>
562
563         * ToolStripComboBox.cs: Default the ComboBox's FlatStyle to Popup.
564
565 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
566
567         * Control.cs: Make SetBoundsCore match MS better.  The BoundsSpecified
568         parameter indicates which aspects were explicit/user-set.
569         * ComboBox.cs, ListBox.cs: Call SetBoundsCore correctly. (no 0 parameters).
570
571 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
572
573         * ProgressBar.cs: Throw AOORE instead of AE for property Value (2.0).
574         * ScrollBar.cs: Throw AOORE instead of AE for properties LargeChange,
575         SmallChange, and Value (2.0).
576         * Timer.cs: Throw AOORE instead of AE for property Interval (2.0).
577
578 2007-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
579
580         * ListView.cs: Always set item_control.Width in LayoutDetails
581         if View is Details. Setting it later in CalculateScrollBars
582         in a not-so-corner scenario (the sum of columns width is
583         not bigger than the ListView width when handle is created, and then
584         that sum gets bigger by increasing the width of the columns)
585         causes a very weird recursion path (which shouldn't be happening,
586         since header_control sets it in CalculateScrollBars too). This bug
587         appeared after Chris' fixes for handle created issues, so probably
588         it's related to some handle-creation time.
589
590 2007-03-23  Chris Toshok  <toshok@ximian.com>
591
592         * DataGrid.cs (GetVisibleRowCount): increase the row count in the
593         case where there's an add row, just so we don't end up in a case
594         where it's not displayed (this happens when the row is partially
595         obscured).  Fixes bug #79574.
596
597 2007-03-23  Jackson Harper  <jackson@ximian.com>
598
599         * TextControl.cs:
600         * TextBoxBase.cs:
601         * RichTextBox.cs: Preserve line endings in the lines text buffer,
602         also added an enum that represents the line ending type. 
603
604 2007-03-23  Andreia Gaita  <avidigal@novell.com>
605
606         * NumericUpDown.cs: Fix logic so Text and Value properties are not
607         messed with in every method call, but only from DownButton, 
608         UpButton, UpdateEditText() and ValidateText. Fixes #80346
609
610 2007-03-23  Chris Toshok  <toshok@ximian.com>
611
612         * DataGridTextBoxColumn.cs (GetFormattedValue): don't try to
613         format objects if the format spec is "".  Fixes bug #80889.
614
615 2007-03-22  Miguel de Icaza  <miguel@novell.com>
616
617         * ToolStripPanel.cs (Join): added stubs to build PDN3
618
619         * Control.cs (AutoScrollOffset): Add.
620
621         * SystemInformation.cs (MouseWheelScrollDelta): Expose this
622         property, its only implemented for Win32, on X11 it defaults to
623         some hardcoded value.
624
625         * ToolStripItem.cs (AllowDrop): Add property
626
627 2007-03-22  Mike Kestner  <mkestner@novell.com>
628
629         * ListView.cs : in FullRowSelect Details mode, only enable box
630         selection if the user clicks over the "item" column outside of the
631         text area.  Mmmmm, compatibility.  [Fixes #80374 subpart 7]
632
633 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
634
635         * Control.cs: ChangeParent: Call Form's ChangingParent even if the
636           handle is not created yet.
637         * Form.cs: Select: Don't call CreateHandle if the handle is already
638           created, avoids a stack overflow on Windows when we are recreating
639           controls.
640         * ScrollableControl.cs: Set the correct z-order for the scrollbars when
641           they are made visible, and override AfterTopMostControl to keep
642           them on top when other controls are brought to front.
643           CalculateCanvas: Scrollbars are only visible if auto_scroll is true
644           or force_*scroll_visible is true (old implementation always shows
645           scrollbars when needed, no matter what auto_scroll was set to).
646         * InternalWindowManager.cs: UpdateWindowDecorations: Add a
647           IsHandleCreated check.
648
649 2007-03-22  Andreia Gaita  <avidigal@novell.com>
650
651         * DataGrid.cs: Implement Column and Row auto sizing when double-clicking on
652         row or col separator.
653         * DataGridTextBoxColumn.cs: Implement GetPreferredHeight and GetPreferredSize
654
655 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
656
657         * MenuAPI.cs: Remove unneeded check for grab_control in UpdateCursor.
658
659 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
660
661         * MenuAPI.cs: UpdateCursor method added, it is calling in OnMotion to update
662         cursor for child controls. In ShowWindow and HideWindow now call SetCursor 
663         every time. Fixes #80410.
664
665 2007-03-22  Chris Toshok  <toshok@ximian.com>
666
667         * BindingSource.cs (AddNew): partially implement.
668
669         remove a couple of NotImplementedException's
670         to get bug #81148 closed.
671
672 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
673
674         [Fixes #80380]
675         
676         * Control.cs:
677         - UpdateCursor method added to update the screen cursor.
678         - GetAvailableCursor method added to return cursor for enabled tree,
679         it searches for cursor on control and it's parent's for enabled control.
680         - Call UpdateCursor method on setter of Cursor property.
681         - On setter of Enabled call UpdateCursor when it is false, we need to
682         change cursor to normal (or to this parent cursor) because cursor 
683         setting theres no effect to disabled controls.
684         - Some minor source changes to follow the coding style guidelines.
685
686         * XplatUIX11.cs: In MotionNotify only dispatch SET_CURSOR event for enabled 
687         controls.
688
689 2007-03-22  Chris Toshok  <toshok@ximian.com>
690
691         * XplatUIX11.cs: ignore the BadPicture errors cairo+render
692         generates.
693
694 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
695
696         * XplatUIX11.cs: Implement default locations for forms.
697         * Form.cs: Completely rework startup location for forms. Fixes #79964.
698         * Hwnd.cs: Add previous_child_startup_location (to track the current
699           startup location for any child forms of the current form) and
700           previous_main_startup_location (to track the startup location for
701           the current toplevel form).
702
703 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
704
705         * Control.cs: Don't trigger a layout if an implicit control is added
706         that isn't visible.  Also, don't notify the owner when an implicit control
707         is added.  (Owners shouldn't even know about their implicit controls.)
708
709 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
710
711         * ScrollableControl.cs: Add implicit controls with AddRangeImplicit
712         to save some re-layouts.
713
714 2007-03-21  Everaldo Canuto  <everaldo@simios.org>
715
716         * MenuAPI.cs: In ProcessKeys returns false when key is not processed.
717         [Fixes #81203]
718
719 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
720
721         * FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
722         ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.
723
724 2007-03-21  Mike Kestner  <mkestner@novell.com>
725
726         * ListView.cs : disable selection update for non-left button clicks
727         with mods and over selected items.  [Fixes #80524]
728
729 2007-03-20  Jackson Harper  <jackson@ximian.com>
730
731         * TextControl.cs:
732         * TextBoxBase.cs: Allow different types of line endings. \r, \r\n,
733         \r\r\n, \n.
734
735 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
736
737         * ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
738           very probably a more complicated calculation there. Update the
739           textbox' ForeColor and BackColor when the ComboBox' colors are
740           changed. Change the border change in LayoutComboBox to only affect
741           the textbox, not all the calculations there. Seems to fix most of
742           #79436.
743
744 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
745
746         * ComboBox.cs: Handle Home and End keys as well as all combinations of
747           modifiers + navigation keys as input keys, enables advanced text
748           selection in the combobox (like Shift+Left Arrow for instance).
749           ComboTextBox now overrides Focused and returns whatever
750           ComboBox.Focused returns, since it really should be focused
751           whenever the ComboBox is. Fixes #80795. Also make the border around
752           the text box one pixel bigger, as mentioned in #79436.
753
754 2007-03-20  Jackson Harper  <jackson@ximian.com>
755
756         * TreeView.cs: Don't offset the images, this was causing some
757         artifacts when expanding/collapsing with images that were the
758         exact height of the treenode.
759
760 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
761
762         * TrackBar.cs: Query the theme for the correct value when the mouse
763           moves and the thumb is pressed. 
764         * Theme.cs: Added TrackBarValueFromMousePosition
765         * ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
766           implementation was updating the trackbar value when drawing, now
767           the drawing methods only draw. Fixes #80900. Refactored the
768           calculations out to TrackBarValueFromMousePosition and
769           GetTrackBarDrawingInfo, so that TrackBar can get the correct value
770           according to the mouse position whenever it wants to. Changed the
771           light coloured pen when drawing the thumb from ControlLight to
772           ControlLightLight, because the ControlLight is the same colour as
773           the background so the 3D effect is lost. 
774
775 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
776
777         * Form.cs: In ShowDialog uses MainForm as transient form when no form is
778         defined. Fixes #80784.
779
780 2007-03-20  Marek Habersack  <mhabersack@novell.com>
781
782         * ContextMenuStrip.cs: align with the change introduced in
783         revision 74664.
784
785 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
786
787         * XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs, 
788         XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner 
789         in SetTopmost.
790
791 2007-03-19  Chris Toshok  <toshok@ximian.com>
792
793         * Control.cs (WmPaint): don't make use of the Handle property
794         after an event is emitted, as the user could have closed the
795         form/destroyed the control.  Store the Handle in a local variable
796         and make use of that.  Fixes bug #80768.
797
798 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
799
800         * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
801         behavior in X11 environments.
802
803 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
804
805         * Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
806         because on setter of topmost we dont call SetTopmost when handle is not
807         created.
808
809 2007-03-20  Jackson Harper  <jackson@ximian.com>
810
811         * TextControl.cs: Need to use SelectionLength () not
812         selection_length, since that var is reset to -1.
813         - Draw the caret when we don't have focus.
814         * TextBox.cs: The selectall actually doesn't occur until the first
815         focus.
816         * TextBoxBase.cs: Need to update the caret position after a
817         selectall.
818         
819 2007-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
820
821         * ListView.cs: Enable scrolling when using Tile view.
822
823 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
824
825         [Fixes #80902]
826
827         * XplatUIDriver.cs: Abstract SetOwner method created.
828
829         * XplatUIOSX.cs: Override SetOwner to prevent compilation errors method 
830         must be implemented and was masked as todo.
831
832         * XplatUIWin32.cs: SetOwner implemented using SetWindowLong with 
833         GWL_HWNDPARENT.
834
835         * XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but 
836         cheking for null owner to remove transient. The SetTopmost will be change
837         on a decond step.
838
839         * Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
840         SetTopmost. Now owned forms will work properly in win32 and X11.
841
842 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
843
844         * MdiWindowManager.cs: Update function name.
845         * Form.cs: After closing a form MdiParent is always null.
846         * MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
847           better what it should do: necessary book-keeping when the form is
848           closed, it should not close the form itself.
849
850 2007-03-19  Andreia Gaita  <avidigal@novell.com>
851
852         * ListViewItem.cs: Fix back and fore color. The subitems only
853         use their own colors if they are set, otherwise use the listview's
854         colors. Don't set default colors on constructor for subitem.
855         Fixes #79315.
856
857 2007-03-19  Mike Kestner  <mkestner@novell.com>
858
859         * ListView.cs : make box selection for Details views with 
860         FullRowSelect conform to MS behavior when clicking in the "item" 
861         column and clicking outside the defined columns.
862         [Fixes case 5-6 of #80374]
863
864 2007-03-19  Chris Toshok  <toshok@ximian.com>
865
866         * ScrollableControl.cs: create the controls from within the ctor,
867         but don't actually add them until our handle is created.  this
868         fixes a NRE possibility jpobst found (if you override OnLayout in
869         a subclass, it's called before your ctor).  Also, add a
870         IsHandleCreated guard to UpdateSizeGripVisibility as well.
871
872 2007-03-19  Jackson Harper  <jackson@ximian.com>
873
874         * TextBox.cs: Reduce the amount of invalidation we do.
875         * TextBoxBase.cs: Make shortcuts enabled true by default, at least
876         some of them are true by default on MS.
877         - Add some functions to reduce the amount of invalidates we do.
878         * TextControl.cs: Less invalidation.
879
880 2007-03-19  Chris Toshok  <toshok@ximian.com>
881
882         [ Fixes #81773, and *seems* to fix #81553 as well ]
883
884         * XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
885         AccumulateDestroyedHandles.  We need to do it *after* we send
886         WM_DESTROY, as the user's code can access Control.Handle in
887         OnHandleDestroyed, and this shouldn't cause a recreation.  Also,
888         move the WM_DESTROY/zombie handling to before the call to
889         XDestroyWindow.  For some reason without this ordering
890         FormTest.RecreateHandle hangs.  This ordering is semantically
891         equivalent, however, as XDestroyWindow is async anyway.
892
893 2007-03-19  Gert Driesen  <drieseng@users.sourceforge.net>
894
895         * RichTextBox.cs: Reset backcolor_set after setting default.
896
897 2007-03-19  Chris Toshok  <toshok@ximian.com>
898
899         * ScrollableControl.cs: the scroll position should not effect the
900         canvas size.  commit patch from georgegiolfan@yahoo.com, which
901         fixes some really bizarre behavior on resizing.  Fixes bug #80778.
902         
903 2007-03-19  Chris Toshok  <toshok@ximian.com>
904
905         * ScrollableControl.cs: clean this up a bit.  create the
906         scrollbars in the ctor and just show/hide them as needed.  Also,
907         make hscroll_visible/vscroll_visible internal to Recalculate, and
908         just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
909         everywhere else.  This seems to fix the scrollbars appearing
910         beneath the content for me (i have *no* idea why that is,
911         however.)
912
913 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
914
915         * ToolStrip.cs: Don't call DoAutoSize when we change Dock.  Also, remove
916         some redundacy for stuff in Anchor and Dock that base will take care of.
917         [Fixes #80762]
918
919 2007-03-19  Mike Kestner  <mkestner@novell.com>
920
921         * ListView.cs : make box selection for Details views without 
922         FullRowSelect dependent on the text bounds, not item bounds.
923         * ListViewItem.cs : add an internal property to obtain the TextBounds
924         in Details view.  [Fixes case 1-4 of #80374]
925
926 2007-03-19  Andreia Gaita  <avidigal@novell.com>
927
928         * PaintEventArgs.cs (Dispose): Only dispose of graphics object if
929         we're < 2.0. #78448 && #80316
930
931 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
932
933         * FontDialog.cs: Don't crash when we switch to a new font that doesn't
934         have the same style available as the previously selected one.  Also,
935         support FixedPitchOnly property.  [Fixes bugs #80918, #80947]
936
937 2007-03-19  Jackson Harper  <jackson@ximian.com>
938
939         * TextControl.cs: Add an alignment property that all new lines
940         will be given.
941         - Make sure to use the align shift when calculating the line's X
942         position.
943         * TextBox.cs: Set the alignment on the document as well as on all
944         the document lines.
945
946 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
947
948         * Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
949           throw if setting the parent of an mdichild that already has an
950           mdiparent. Update signature for 2.0 profile. ProductName: If there's no
951           AssemblyProductAttribute in the assembly, use the type's namespace (as
952           MS seems to do). CreateControl: don't create the handle if the control
953           is not visible (according to MS behaviour and spec).  SetTopLevel: Only
954           create handle if the control is not a form. Change FocusInternal to
955           virtual so that it can be overriden by Form.
956         * TextBox.cs: Update call to FocusInternal.
957         * Form.cs: Always create the handle when calling Focus on a MdiChild. The
958           form is not a toplevel form when it's a mdi child, so update is_toplevel
959           accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
960           hasn't been created. Show (IWin32Window): Don't allow this overload for
961           toplevel windows. CenterToParent/CenterToScreen/Select: create the
962           handle as MS does. SetVisibleCore: if called on a MdiChild and the
963           parent isn't visible yet, save the visibility and restore it when the
964           parent is made visible.
965         * ScrollableControl.cs: Refactor out scrollbar visibility code to separate
966           methods, since the visibility of the scrollbars can be changed from
967           several places, not only from AutoScroll.
968           [Fixes #81179]
969
970 2007-03-19  Jackson Harper  <jackson@ximian.com>
971
972         * RichTextBox.cs: Enable shortcuts by default.
973         * TextBoxBase.cs: Add conditional shortcuts.  
974
975 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
976
977         * MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).  
978
979 2007-03-19  Chris Toshok  <toshok@ximian.com>
980
981         [ Fixes bug #80604]
982         
983         * XplatUIX11.cs (WaitForHwndMessage): change this to actually
984         swallow the message we're waiting on, instead of delivering it, as
985         this is only used for the WM_SHOWWINDOW raised from
986         MapWindow/UnmapWindow, and the message needs to be generated
987         (MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
988         before doing the Map/Unmap.  Also make sure that the Hwnd is still
989         alive after the message has been handled.
990
991         *before* the window is shown.
992
993         * Control.cs (CreateControl): guard a few more things inside the
994         if (!is_created) block, as we might end up being called again -
995         yay .net.
996         (WmShowWindow): call CreateControl if we're showing the control.
997
998 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
999
1000         * Control.cs: Fix 2.0 signature for Invoke. Support invoking on
1001           controls without a handle if they have any parent with a handle. In
1002           Dispose add a check whether the handle is created or not before
1003           calling BeginInvoke, this removes the need of the extra disposing
1004           parameter (which was bogus anyway since it didn't prevent the
1005           invoke from happening, it only skipped the check for an existing
1006           handle, meaning that the invoke would call on an inexistent
1007           handle).
1008
1009 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
1010
1011         * MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
1012         appears in taskbar.
1013
1014 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
1015
1016         * MessageBox.cs:
1017         - Fixed a problem that dont show help button for messages with 3 buttons.
1018         - Refactory button size and position calculations, now dont use fixed 
1019         values, also fixed button sizes (#80043) and form's border space.
1020         - AddButton method created, now all other AddButton methods call this one.
1021         - Some other source code cosmetic changes.
1022
1023 2007-03-18  Jackson Harper  <jackson@ximian.com>
1024
1025         * RichTextBox.cs: Don't do this all fonts must match check if
1026         there is only one char selected.
1027
1028 2007-03-18  Jackson Harper  <jackson@ximian.com>
1029
1030         * TreeView.cs: ScrollWindow works properly now, so we don't need
1031         to screw around with the scroll area.  This fixes some artifacts
1032         when expanding and collapsing.
1033
1034 2007-03-18  Jackson Harper  <jackson@ximian.com>
1035
1036         * TextBoxBase.cs: Allow updating the selection position when the
1037         cursor is outside the textarea, but we have a capture.
1038         * TextControl.cs: A special case for when the cursor is outside
1039         the bounds of the TB.
1040         
1041 2007-03-18  Jackson Harper  <jackson@ximian.com>
1042
1043         * TextBoxBase.cs: Remove image pasting code for now.  There is no
1044         way to get an image on the clipboard right now anyways.
1045         * TextControl.cs:
1046         * RichTextBox.cs: Use the new RTF Picture class for pictures.
1047
1048 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
1049
1050         * MessageBox.cs:
1051         - Set window properties in constructor intead of on CreateParams.
1052         - Remove topmost from Window ExStyle.
1053         - Set ShowInTaskbar to false.
1054         - Set form border to FixedDialog.
1055         - Some cosmetic changes and remove unneeded comments.
1056         - It fixes itens 2,3 and 4 of bug #80043.
1057
1058 2007-03-18  Gert Driesen  <drieseng@users.sourceforge.net>
1059
1060         * TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
1061         none was explicitly set. Fixes part of bug #79949.
1062
1063 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
1064
1065         * ToolStripComboBox.cs: Add AutoComplete*.
1066
1067 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
1068
1069         * ToolStripComboBox.cs: Add FlatStyle.
1070
1071 2007-03-16  Jonathan Pobst  <monkey@jpobst.com>
1072
1073         * ToolStrip.cs, ToolStripProfessionalRenderer.cs,
1074         ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
1075
1076 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1077
1078         * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
1079           CheckBox.cs, RadioButton.cs, BindingSource.cs,
1080           DataGridColumnStyle.cs: Remove warnings.
1081
1082 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1083
1084         * Menu.cs: MergeMenu: Check menu argument for null before looping over
1085           it.
1086         * MdiWindowManager.cs: Add IsVisiblePending to track the pending
1087           visibility of mdi child forms. FormSizeChangedHandler: update the
1088           maximized size if size has changed while maximized.
1089         * MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
1090           creating the handle.
1091         * InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
1092           avoid creating the handle if not created.
1093         * XplatUI.cs: Update debug output.
1094         * XplatUIStructs.cs: Added ToString's for a couple of structs.
1095
1096 2007-03-16  Jonathan Pobst <monkey@jpobst.com>
1097
1098         * ContainerControl.cs: Give ToolStripManager the opportunity to handle
1099         ProcessCmdKey().
1100         * ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs, 
1101         ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
1102         Implement keyboard shortcuts.
1103
1104 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
1105
1106         * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
1107         Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog, 
1108         ColorDialog and all derived classes.
1109
1110 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
1111
1112         [ Fixes bug #79828 ]
1113
1114         * ToolBar.cs:
1115         - Rename ToolBarButtonInfor to ToolBarItem.
1116         - Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
1117         - Maintain an array of ToolBarItem, used instead of ToolBarButton
1118         collection to be able add same button more than one time on a toolbar.
1119         - Refactory all properties and methods to use ToolBarItem. 
1120
1121         * ToolBarButton.cs: 
1122         - Remove all propeties and methods that is now in ToolBarItem.
1123         - Rectangle propery now gets the rectangle from first ToolBarItem to
1124         mimic win32 behavior.
1125         - Size calculation and layout methods also removed.
1126
1127         * ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
1128         ToolBarItem instead of ToolBarButton to right drawing buttons when
1129         same button/separator was added more than one time to ToolBar.
1130
1131         * ThemeNice.cs: Same as above. 
1132
1133 2007-03-15  Andreia Gaita  <avidigal@novell.com>
1134
1135         * XplatUIX11.cs: Fire extra MouseMove events right after
1136         MouseDown and MouseUp, emulating win32's <censored> behaviour
1137         for apps that rely on it.
1138
1139 2007-03-15  Jackson Harper  <jackson@ximian.com>
1140
1141         * TextControl.cs:
1142         * TextBoxBase.cs: On MS, a fixed single border is not in NC area,
1143         it is drawn on the controls client window and there is no NC
1144         area.
1145         - Set the background color to gray on 2.0 when we are readonly.
1146
1147 2007-03-15  Chris Toshok  <toshok@ximian.com>
1148
1149         [ Fixes bug #81144 ]
1150         
1151         * XplatUIX11.cs: implement VirtualScreen independently of
1152         WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
1153         property.
1154
1155 2007-03-15  Chris Toshok  <toshok@ximian.com>
1156
1157         * Hwnd.cs: add an internal field for the cached_window_state.
1158
1159         * XplatUIX11.cs: cache the window state, invalidating the cache
1160         (and thus re-querying the X server) only when we see an update to
1161         the _NET_WM_STATE property.
1162
1163 2007-03-15  Chris Toshok  <toshok@ximian.com>
1164
1165         * BindingSource.cs: get a lot of the unit tests working.
1166
1167 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
1168
1169         * Control.cs: Modify UpdateStyles to store distances when bounds >=
1170         0 instead of just bounds > 0.  [Fixes bug #80912]
1171
1172 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
1173
1174         * ToolStrip.cs, ToolStripItem.cs: Implement several new properties
1175         and methods.
1176
1177 2007-03-15  Ivan N. Zlatev <contact@i-nz.net>
1178         
1179         * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
1180         XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
1181         XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
1182         WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
1183
1184 2007-03-15  Chris Toshok  <toshok@ximian.com>
1185
1186         [ Fixes #81101 ]
1187         
1188         * Control.cs: add Ivan's fix for 81101, with a slight modification
1189         - you can set control.Target to null.
1190
1191 2007-03-14  Jonathan Pobst  <monkey@jpobst.com>
1192
1193         * ToolStripItem.cs: If our OwnerItem is null, we can't use 
1194         HideDropDown, use Hide instead to prevent an NRE.
1195         [Fixes bug #81147]
1196
1197 2007-03-14  Jackson Harper  <jackson@ximian.com>
1198
1199         * TextBoxBase.cs: Mess with the creation stuff a little. We need
1200         to calculate the document before the handle is created, in some
1201         cases. (Actually just one case).
1202
1203 2007-03-14  Jackson Harper  <jackson@ximian.com>
1204
1205         * TextBoxBase.cs: Need to display the caret after letting the base
1206         wndproc handle the focus methods, because the caret display
1207         methods check the focus state.
1208         - Try to display the caret after updating it's position with SelectWord.
1209         - Don't need to do an immediate update on this recalc, since there
1210         will be an invalidate anyways.
1211
1212 2007-03-14  Jackson Harper  <jackson@ximian.com>
1213
1214         * TreeView.cs: Some workarounds so that we can match event order a
1215         little better.
1216
1217 2007-03-14  Gert Driesen  <drieseng@users.sourceforge.net>
1218
1219         * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
1220         #80803. Avoid NullReferenceException when Control does not have
1221         parent. Fixed different blinkstyle issues. Only subscribe to Tick
1222         event a single time. Only draw error icon when control is created and
1223         visible. Fixes failing unit tests.
1224
1225 2007-03-14  Andreia Gaita  <avidigal@novell.com>
1226
1227         * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
1228         Selecting events. Fire Leave and Enter events when changing tabs.
1229
1230 2007-03-14  George Giolfan  <georgegiolfan@yahoo.com>
1231
1232         * TreeView.cs: Add TreeViewNodeSorter.
1233         * TreeNodeCollection.cs: Add sorter parameter to Sort method.
1234
1235 2007-03-14  Chris Toshok  <toshok@ximian.com>
1236
1237         * Form.cs: go ahead and remove the RecreateHandles that jpobst
1238         removed earlier and I had him add back it.  It turns out metacity
1239         *does* in fact handle the MOTIF_WM_HINTS property changing, it
1240         just doesn't redraw the window titlebar until you resize the
1241         window.  This also means we aren't recreating the entire window
1242         hierarchy on X when you change this property.  And it looks better
1243         on windows, too.
1244
1245 2007-03-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1246
1247         * ListViewItem.cs:
1248         * ListView.cs: Collecting selection information
1249         is now done in SelectedIndexCollection rather than in
1250         SelectedListViewItemCollection. This is done so we can
1251         have the selection information code in one single place
1252         (virtual mode selection information entirely depends on
1253         SelectedIndexCollection).
1254
1255 2007-03-13  Miguel de Icaza  <miguel@novell.com>
1256
1257         * ErrorProvider.cs: Add stubs for ISupportInitialize
1258
1259 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1260
1261         * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
1262         in the right order with the right values, from the Checked property, 
1263         just as MS does (instead of triggering them from ListView).
1264
1265         * ListView.cs: Make OnItemCheck and OnItemChecked internal.
1266
1267 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1268
1269         * ListView.cs: Implement ItemChecked 2.0 event. Also cast to 
1270         the correct handler in OnItemCheck method (ItemCheckEventHandler 
1271         instead of EventHandler). This used to throw an InvalidCastException.
1272
1273 2007-03-13  Jackson Harper  <jackson@ximian.com>
1274
1275         * TextBoxBase.cs: Calculate the document before the handle is
1276         created, so there isn't an extra invalidate called.
1277
1278 2007-03-13  Jonathan Pobst  <monkey@jpobst.com>
1279
1280         * Form.cs: Don't set owner in ShowDialog until we are sure
1281         that we aren't going to throw an exception.  [Fixes bug #80773]
1282
1283 2007-03-12  George Giolfan  <georgegiolfan@yahoo.com>
1284
1285         * TreeView.cs: Make it compile.
1286
1287 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
1288
1289         * Control.cs: Another place we don't call SizeFromClientSize.
1290         * Form.cs: Another place we don't call SizeFromClientSize.
1291         [Fixes bug #81125]
1292
1293 2007-03-12  Jackson Harper  <jackson@ximian.com>
1294
1295         * TreeView.cs: Basically emulating some strangness here with
1296         exanding nodes and setting node positions when windows aren't
1297         created.
1298         - Also attempting to walk the node tree less than previously, and
1299         just use visible order calculations for determining offsets.
1300         - oops made scrolling backwards.
1301         * TreeNode.cs: We need to start nodes with a zero visible order,
1302         because the order calcs are based on the first nodes order.
1303
1304 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
1305
1306         * Form.cs: Don't exit the program if RecreateHandle is called on
1307         the main form.
1308
1309 2007-03-12  Chris Toshok  <toshok@ximian.com>
1310
1311         * XEventQueue.cs: remove the use of PostQuitState.
1312
1313         * XplatUIX11.cs: remove the use of PostQuitState.  If we get a
1314         WM_QUIT message in GetMessage, return false (and if we're in the
1315         nested WaitForHwndMessage, repost the WM_QUIT message).
1316
1317 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
1318
1319         * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
1320         or the MaximizeBox properties.  [Part of bug #80640]
1321
1322 2007-03-12  Everaldo Canuto  <everaldo@simios.org>
1323
1324         * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
1325         no links.
1326
1327 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
1328
1329         * ToolStripItem.cs: Fix some tests I broke by checking Visible
1330         instead of visible.
1331
1332 2007-03-12  Gert Driesen  <drieseng@users.sourceforge.net>
1333
1334         * FileDialog.cs: Use text of File name combobox to determine what
1335         files the user selected. Added tokenizer to parse the file names.
1336         Fixes bug #81123.
1337
1338 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
1339
1340         * Control.cs: We can't call SizeFromClientSize in the constructor,
1341         but we still need to do the same work, so make an internal version.
1342         [Fixes bug #80621]
1343
1344 2007-03-12  Jackson Harper  <jackson@ximian.com>
1345
1346         * TreeView.cs:
1347         * TreeNode.cs:
1348         * OpenTreeNodeEnumerator: Match MS better for IsVisible and
1349         IsExpanded.
1350
1351 2007-03-12  Jackson Harper  <jackson@ximian.com>
1352
1353         * TextBoxBase.cs: Now that the handles are being created a little
1354         later, we need to make sure that the document is recalculated when
1355         the handle is created.
1356
1357 2007-03-11  Everaldo Canuto  <everaldo@simios.org>
1358
1359         * Theme.cs: GetLinkFont abstract method added.
1360         
1361         * LinkLabel.cs: 
1362         - Remove CalcTrimRectangle, no longer needed.
1363         - Factor also remove, position issues must be fixed in libgdiplus.
1364         - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
1365         - GetPieceFont, CreateLinkFont and link_font removed, theme must be 
1366         care about font used to draw links.
1367         - Set TabStop to true when control is "Selectable", control is selectable
1368         when have one or more links. Fixes #80501 (test case is also added).
1369         - Set the LinkArea values after links change, LinkArea values must be
1370         based in first link position and size, a test case was created.
1371         - Fix ControlStyles.Selectable value, now is based on LinkArea value, 
1372         the attribute must be true LinkArea.Length > 0. The same was applied to
1373         TabStop.
1374         
1375         * ThemeWin32Classic.cs: 
1376         - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used 
1377         in draw method.
1378         - Use CPDrawStringDisabled to draw disabled text instead of hard code 
1379         color change.
1380         - Draw focus rectangle for every parts focused, including parts that 
1381         is on another line, its because regions returns various rectangles
1382         and not only one. Needed to mimic W32 look.
1383         - Uses Graphics.Clip to delimite region painted, it mean that now 
1384         complete text is passed to DrawString, with this we solve layout
1385         issues without create another text renderer.
1386         - Uses Region.Intersect to fix some flickers problems, now only needed
1387         parts will redrawed.
1388         - This changes fixes #79614 and some other unreported issues, on Linux 
1389         some layout problems still remain, the problem is under 
1390         MeasureCharacterRanges but it is an libgdiplus bug.
1391
1392 2007-03-10  Gert Driesen  <drieseng@users.sourceforge.net>
1393
1394         * TextBox.cs: Set for foreground color.
1395         * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
1396         this is already done in Control.
1397
1398 2007-03-10  Jackson Harper  <jackson@ximian.com>
1399
1400         * TextBox.cs: Set the background color, but reset the
1401         backcolor_set flag which is just for the user setting the
1402         background color.
1403
1404 2007-03-09  Chris Toshok  <toshok@ximian.com>
1405
1406         * Control.cs: really remove the call to XplatUI.SetVisible from
1407         CreateHandle(), like I said I did when I merged the branch.
1408
1409         * BindingSource.cs: implement some more of this stuff.
1410
1411 2007-03-09  Jackson Harper  <jackson@ximian.com>
1412
1413         * TextBox.cs: Don't explicitly set our background colors.
1414         * TextControl.cs:
1415         * TextBoxBase.cs: Draw readonly text.
1416         - Need to invalidate when backcolor or readonly are changed.
1417         
1418 2007-03-09  Jackson Harper  <jackson@ximian.com>
1419
1420         * TextBoxBase.cs: Don't set the forecolor until the handle is
1421         created.
1422         - Do not raise OnPaint, and removed some old debug code.
1423
1424 2007-03-09  George Giolfan  <georgegiolfan@yahoo.com>
1425
1426         * ScrollableControl.cs: Fix mouse wheel scrolling.
1427
1428 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
1429
1430         * Control.cs: Wire up MouseDoubleClick event.
1431
1432 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
1433
1434         * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
1435         top or bottom.
1436         * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
1437         * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
1438         item is added.  This logic was moved to ToolStrip.OnItemAdded.
1439         [Fixes bug #81090]
1440
1441 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1442
1443         * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
1444
1445 2007-03-08  Jackson Harper  <jackson@ximian.com>
1446
1447         * TreeView.cs: Show the correct image for selected node (this used
1448         to work, not sure how the code got deleted). Also implemented 2.0 feature
1449         SelectedImageKey.
1450
1451 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1452
1453         * ListView.cs:
1454         * ListViewItem.cs: Cache index in items when retrieving them
1455         in VirtualMode.
1456
1457 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
1458
1459         * ToolStripItem.cs: Don't return the explicit_size if we are using 
1460         AutoSize.  Fixes invalidation issue when user has explicitly set a
1461         size and has AutoSize = true.
1462
1463 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
1464
1465         * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
1466
1467 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
1468
1469         * DataGridView.cs: Remove event handler from DataView when a
1470         DataTable is used as DataSource.
1471
1472 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
1473
1474         * Control.cs: Create internal setter for client_size to allow it to be
1475         set without triggering resizing code.
1476         * Form.cs: Calculate client_size in constructor, only change client_size
1477         in FormBorderStyle property if Handle has been created.
1478         [Fixes #80574, #80791]
1479
1480 2007-03-08  George Giolfan  <georgegiolfan@yahoo.com>
1481
1482         * SystemInformation.cs: Add TerminalServerSession.
1483
1484 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
1485
1486         * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
1487         TreeView code.
1488
1489 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
1490
1491         * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
1492         Handle before we were supposed to.  Now checks ActivateOnShow property
1493         in Control.
1494         * Control.cs: Add internal ActivateOnShow property.
1495         * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
1496         for ActivateOnShow.
1497         * Hwnd.cs Remove no longer needed no_activate field.
1498
1499 2007-03-07  Jackson Harper  <jackson@ximian.com>
1500
1501         * TreeView.cs: Implement owner draw tree nodes.  And a couple more
1502         2.0 properties
1503         * DrawTreeNodeEventHandler.cs: Add
1504         * DrawTreeNodeEventArgs.cs: Correct default value.
1505         
1506 2007-03-07  Chris Toshok  <toshok@ximian.com>
1507
1508         * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
1509         to be called before NativeWindow.WndProc.  Put the HwndCreating
1510         magic there to hook up our Hwnd's to handles.
1511
1512 2007-03-07  Gert Driesen  <drieseng@users.sourceforge.net>
1513
1514         * DataGridView.cs: Comment out debug code.
1515
1516 2007-03-07  Chris Toshok  <toshok@ximian.com>
1517
1518         [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
1519         to make the rest of the world happy]
1520
1521         * Control.cs (CreateHandle): there's no need to call
1522         XplatUI.SetVisible here, it's effectively done by
1523         XplatUI.CreateWindow on X now, and always was on windows.
1524
1525         * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
1526         shortcircuit out of the loop if we have a message loop running on
1527         this thread.
1528
1529         [Changelog from merge]
1530
1531         2007-03-05  Chris Toshok  <toshok@ximian.com>
1532
1533                 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
1534                 causes handle creation.
1535
1536         2007-02-28  Chris Toshok  <toshok@ximian.com>
1537
1538                 * ApplicationContext.cs: Add a flag to make sure we only raise the
1539                 ThreadExit event once (ExitThreadCore can be indirectly called
1540                 from a few places.)  I don't like the additional flag, but it
1541                 makes the event ordering/count correct.
1542
1543                 * Application.cs (MWFThread.LoopCount): don't use an enumerator
1544                 without locking the collection.  An enumerator doesn't give us any
1545                 protection from modification anyway.  Lock the thread hash and
1546                 replace the complicated enumerator loop with a foreach.
1547                 (Application.CloseForms): make internal so it can be called from
1548                 ApplicationContext.  This should probably be moved to MWFThread.
1549                 (Application.ExitThread): don't call MWFThread.Current.Exit()
1550                 here.  just call XplatUI.PostQuitMessage.  We'll exit the thread
1551                 when the runloop exits (in response to WM_QUIT.)
1552                 (Application.RunLoop): add a comment (and check) for
1553                 context.MainForm being null after setting context.MainForm.Visible
1554                 = true.  This is because you're perfectly free to dispose of a
1555                 form in VisibilityChanged.  Chalk this up to another case where we
1556                 need to synchronously generate WM_ACTIVATE from Control.Show.
1557                 Also, add handling for WM_QUIT here so we'll exit the loop.
1558                 
1559                 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit.  The
1560                 fact that we don't wait if we're only unmapping the whole_window
1561                 makes me a bit nervous, but it doesn't seem to cause any problems
1562                 yet.
1563
1564                 also, add a comment about the stupid, broken and wrong resetting
1565                 of PostQuitState to false in GetMessage().
1566
1567                 In PostQuitMessage, we need to add a WM_QUIT message to the
1568                 thread's queue.  We use the FosterParent to get the right
1569                 handle/hwnd/queue.
1570
1571                 Lastly, in SetVisible, we need to unmap both windows, since the
1572                 waiting only happens when we're unmapping the client window.  So
1573                 now, the *only* time we unmap just the whole_window is in the hack
1574                 for resizing a control to 0,0.
1575                 
1576         2007-02-21  Chris Toshok  <toshok@ximian.com>
1577
1578                 * Application.cs (CloseForms): rewrite this so that we don't
1579                 modify the list while we're traversing it.
1580
1581         2007-02-20  Chris Toshok  <toshok@ximian.com>
1582
1583                 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
1584                 of OnHandleCreated.
1585                 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
1586                 handle is created.  otherwise we'll create it here.
1587                 (VerticalScrollEvent): same here.
1588
1589                 * Application.cs (CloseForms): call Form.Dispose, don't post
1590                 WM_CLOSE_INTERNAL.
1591
1592                 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
1593                 here. Application should Dispose() of the Form's.
1594
1595                 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
1596                 WM_DESTROY as well.
1597                 (MapWindow,UnmapWindow): only actually do the waiting for
1598                 SHOWWINDOW if the control we're dealing with is a Form.
1599                 (CreateWindow): if the control isn't a form, SendMessage
1600                 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
1601
1602                 * Control.cs (SetVisibleCore): always use is_visible here, not
1603                 value.  If we use value, we can end up re-setting something
1604                 visible if, for instance, you do Control.Hide() in a delegate
1605                 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
1606
1607         2007-02-20  Chris Toshok  <toshok@ximian.com>
1608
1609                 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
1610                 the message we need.  PeekMessage returning false should not be a
1611                 condition under which we exit the loop.
1612
1613         2007-02-15  Chris Toshok  <toshok@ximian.com>
1614
1615                 * Control.cs (Refresh): only refresh if we've got a handle and are
1616                 visible.
1617                 (CreateAccessibilityInstance): CreateControl() here.
1618                 (UpdateChildrenZOrder): complicate the code loop even more by
1619                 taking into account controls that haven't had their handle
1620                 created, and those that aren't visible.  But on the flip side,
1621                 simplify the code by splitting it into two loops.  one which
1622                 builds up the list of child controls we're interested in, and the
1623                 other that sets the z order of those children.
1624
1625         2007-02-14  Chris Toshok  <toshok@ximian.com>
1626
1627                 * Control.cs: Control.AccessibilityObject causes the control to be
1628                 created, not just the handle.
1629
1630         2007-02-14  Chris Toshok  <toshok@ximian.com>
1631
1632                 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
1633                 problem on X where a window might have its handle created (and be
1634                 visible) while the window is unmapped.  calling XConfigureWindow
1635                 on an unmapped window is bad, and generates X errors.
1636
1637         2007-02-13  Chris Toshok  <toshok@ximian.com>
1638
1639                 * Control.cs (CreateHandle): don't loop over our children setting
1640                 their parent here.  do it when in WndProc when we're shown.
1641                 (UpdateChildrenZOrder): make this internal so we can call it from
1642                 ScrollableControl.
1643                 (WndProc): for WM_SHOWWINDOW, reparent the child control after
1644                 creating its handle.  Also, remove the calls to PerformLayout from
1645                 here.  they're done in ScrollableControl.OnVisibleChanged.  Also,
1646                 OnVisibleChanged only seems to be called directly here for the
1647                 toplevel control.  It's propagated down the window hierarchy by
1648                 calls to child.OnParentVisibleChanged.
1649                 (OnVisibleChanged): don't do layout here - it's done (oddly
1650                 enough, according to a glance at stack traces on ms.net..) in
1651                 ScrollableControl.
1652                 
1653                 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
1654                 z order of our children before calling PerformLayout.
1655
1656         2007-02-12  Chris Toshok  <toshok@ximian.com>
1657
1658                 [big change, fixes #80020]
1659                 
1660                 * AccessibleObject.cs: we need to make owner internal again to fix
1661                 some of ControlAccessibleObject.
1662
1663                 * Control.cs: lots of changes here.  add support for WM_CREATE,
1664                 for which we generate OnHandleCreated.  Remove the OnHandleCreated
1665                 call from CreateHandle.  Also add support for WM_SHOWWINDOW where
1666                 we create child controls.  leave the MonoTODO's for the
1667                 accessibility calls, but fix the exceptions so the tests pass.
1668
1669                 Add the InvalidOperationExceptions to Invoke methods, and remove a
1670                 couple of InvokeInternal methods we aren't using.
1671                 
1672                 Also, add a couple of CreateHandle calls in places where we know
1673                 the handles are being created but our code doesn't reference
1674                 .Handle.
1675
1676                 Make SetVisibleCore call OnVisibleChange if the handle isn't
1677                 created.  If the handle is created, we rely on XplatUI.SetVisible
1678                 generating the event synchronously.
1679                 
1680                 Lastly, make sure we don't use this.Handle inside CreateHandle,
1681                 because we can call back into client (and that code can dispose of
1682                 the control).
1683
1684                 * XplatUIStructs.cs: misc/cleanup.
1685
1686                 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
1687                 although we don't populate the wParam properly.
1688                 (CreateWindow): generate WM_CREATE.
1689                 (MapWindow,UnmapWindow): make these calls synchronous, at great
1690                 performance expense (particularly in the unmap case), to match
1691                 win32 behavior.
1692
1693                 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
1694                 to call it.
1695                 (set_MdiParent): don't recreate the handle unless it's been
1696                 created already.
1697                 
1698                 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
1699                 it's created.
1700
1701                 * NativeWindow.cs: this is probably the weirdest part of the
1702                 patch.  We need a way to link up the window being created to the
1703                 WM_CREATE message.  Since we can only be creating one window at a
1704                 time on a given thread, we keep track of a per-thread reference so
1705                 we can dispatch it properly.  We also need to keep track of the
1706                 Hwnd currently being created so that the win32 backend doesn't
1707                 have problems.
1708                 
1709                 * XplatUIWin32.cs: a similar change to the one we made in
1710                 NativeWindow.cs.
1711
1712 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
1713
1714         * ToolStripItem.cs: Make CalculatePreferredSize virtual.
1715         * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
1716         to draw the menu shortcut string.
1717
1718 2007-03-07  Jackson Harper  <jackson@ximian.com>
1719
1720         * TreeNode.cs: Add the 2.0 collapse method.
1721
1722 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
1723
1724         * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
1725
1726 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
1727
1728         * DataGridView.cs: Change DataSource will clear column and row
1729         lists. Call Invalidate() to reflect DataSource change.
1730
1731 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
1732
1733         * DataGridView.cs: Add rows when DataSource is System.Data.DataView
1734         and a new row is added to it.
1735
1736 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
1737
1738         * DataGridView.cs: Add columns when DataSource is en empty list but
1739         is a System.Data.DataView (from a System.Data.DataTable).
1740
1741 2007-03-06  Andreia Gaita  <avidigal@novell.com>
1742
1743         * Label.cs: Implement AutoEllipsis (2.0)
1744
1745 2007-03-06  Jackson Harper  <jackson@ximian.com>
1746
1747         * TreeView.cs: Implement 2.0 TopNode setter property.
1748         - Use a local var instead of the skipped_nodes field for computing
1749         how many nodes to skip.  Otherwise we won't scroll because the
1750         valuechanged handler checks if skipped_nodes is equal to the new
1751         value.
1752         - Implement 2.0 Sort method.
1753         - Add useless 2.0 DoubleBuffer property
1754         - Implement 2.0 LineColors property.  Lets you change the color of
1755         the lines in the tree. Terribly useful for creating non cohesive
1756         desktops.
1757         - Implement 2.0 image key feature.
1758
1759 2007-03-06  Jackson Harper  <jackson@ximian.com>
1760
1761         * TreeView.cs: We can't get the bounds of the nodes before raising
1762         the AfterSelect event, because that event could change the node's
1763         bounds (scrolling, font change, etc).
1764
1765 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1766
1767         * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
1768         * Form.cs: Don't recreate handle when creating FormWindowManager, just
1769           update window styles. In CreateParams us VisibleInternal instead of
1770           VIsible to get the actual visible flag set for this form.
1771         * FormWindowManager.cs: Activate the form whenever the mouse clicks on
1772           the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
1773           handle the case when the form is already maximized, in which case
1774           it should be restored. Fixes #81043.
1775
1776 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1777
1778         * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
1779
1780 2007-03-05  Jackson Harper  <jackson@ximian.com>
1781
1782         * TreeViewHitTestInfo.cs: implement.
1783
1784 2007-03-05  Jackson Harper  <jackson@ximian.com>
1785
1786         * InternalWindowManager.cs: class status fix.
1787
1788 2007-03-05  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1789
1790         * InternalWindowManager.cs: All windows that have a parent
1791         are confined to their parent when they're being moved.
1792         Fixes #80822.
1793
1794 2007-03-04  Gert Driesen  <drieseng@users.sourceforge.net>
1795
1796         * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
1797         on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
1798
1799 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1800
1801         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
1802           buttons invisible before deciding which ones should be visible
1803           (fixes minimize/maximize buttons showing up in toolwindows). Remove
1804           an unused variable.
1805         * InternalWindowManager.cs: Remove warning.
1806
1807 2007-03-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1808
1809         * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
1810         to throw an InvalidOperationException is virtual mode is being used.
1811
1812 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
1813
1814         * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
1815         ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
1816         ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
1817         ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
1818         ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
1819         ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
1820
1821 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1822
1823         * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
1824           driver.KeyboardDelay from XplatUI.KeyboardDelay 
1825         * XplatUIW      in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
1826           (patch by Sergey Volk)
1827
1828 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1829
1830         * ToolWindowManager.cs: Added, contains logic for
1831           tool windows.
1832         * CreateParams.cs: Add a few helper methods and an
1833           internal variable to know which control the CreateParams belongs
1834           to.
1835         * Control.cs: Call Form.ChangingParent when the
1836           parent is about to be changed.
1837         * XplatUIX11.cs: DeriveStyles (): Set
1838           caption_height for all windows that have captions and are children.
1839           Update to use ToolWindowManager instead of InternalWindowManager
1840           for ToolWindows.
1841         * XplatUIWin32.cs: Set fake window styles for all
1842           windows that have window managers.
1843         * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
1844           now duplicated for mdi windows when they are
1845           maximized, first for the buttons the window itself has, then for
1846           the buttons that appear in the menu bar. Makes things a little
1847           easier). Updated UpdateWindowDecorations, SetWindowState and the
1848           mouse eventhandlers accordingly.
1849         * Form.cs: Add ChangingParent (), contains the
1850           logic of what should happen when the parent changes. In MdiParent
1851           don't set things that ChangingParent () is doing. When handling
1852           WM_CLOSE, we can close the form if there are any other modal forms
1853           and the current form is a descendent of the modal form.
1854         * InternalWindowManager.cs: A lot of refactoring,
1855           the title buttons are now extracted to a separate container class
1856           that takes care of all button code (clicks, tooltips, etc). Moved
1857           Iconic|Maximized|Normal Bounds properties to this class from
1858           MdiWindowManager, so that the window state logic can succeed for
1859           other than mdi wm's. Implemented general window state change logic.
1860           Moved CreateButtons to ThemeWin32Classic, since the theme might
1861           override which buttons are available when as well as the exact
1862           location.
1863         * FormWindowManager.cs: Added, contains logic for
1864           normal forms.
1865         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
1866           which buttons go where (and if they are at all visible). 
1867           Removed special handling of maximized windows, since they aren't special. 
1868           In DrawManagedWindowDecorations don't try to draw the text if it is
1869           empty.
1870         * MdiClient.cs: ArrangeIconicWindows: Don't  calculate any sizes, 
1871           use whatever the wm gives us.
1872
1873 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
1874
1875         * ButtonBase.cs: Add 2.0 properties.
1876         * Button.cs: Override Draw for 2.0.
1877         * Control.cs: Add Entered and Selected properties.
1878         * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
1879         TextRenderer.cs: Make internal for 1.1 to unify drawing code.
1880         * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
1881         buttons.
1882         * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
1883
1884 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
1885
1886         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code.  :/
1887
1888 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
1889
1890         * XplatUIWin32.cs: Register a new class with Windows each time we get
1891         a new ClassStyle.  [Fixes bugs #79432, #80817]
1892         * Controls.cs: Set the correct ClassStyle in CreateParams.
1893         * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
1894
1895 2007-03-01  Gert Driesen  <drieseng@users.sourceforge.net>
1896
1897         * ListView.cs: Add fireEvent argument to ReorderColumn since the
1898         ColumnReordered event must not be signaled when modifying DisplayIndex
1899         of a ColumnHeader. Added internal ReorderColumns method which takes
1900         care of drawing, and updating the internal DisplayIndex of the
1901         ColumnHeader. Added AddColumn method which is invoked from
1902         ColumnHeaderCollection when adding or inserting columns, and which
1903         ensures that reorder_columns_indices is kept in sync. Avoid redrawing
1904         after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
1905         Recalculated dispay indices after removing a ColumnHeader.
1906         * ColumnHeader.cs: Save DisplayIndex separately from ListView to
1907         match MS. Allows last display index to be returned after ListView
1908         is disposed. Update actual location of ColumnHeader when DisplayIndex
1909         is modified.
1910
1911 2007-03-01  Everaldo Canuto  <everaldo@simios.org>
1912
1913         * LinkLabel.cs: Improve CalcTrimRectangle.
1914         
1915         * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
1916
1917 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
1918
1919         * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
1920         get rectangle as a result value.
1921
1922 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
1923
1924         * LinkLabel.cs: Theres some diferences between rectangle return from 
1925         MeasureCharacterRanges and the area used for DrawString to fix this 
1926         CalcMeasurementFactor method was created, it calcules the diferences
1927         to be use later to adjust rectangle in draw operations. Fixes #80473.
1928         
1929         * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
1930         to adjust draw rectangle.
1931
1932 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
1933
1934         * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
1935         text and some other changes to reduce and optimize source code.
1936
1937 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
1938
1939         * RadioButton.cs: Implement 2.0 event.
1940         * RelatedImageListAttribute.cs: Implement new class.
1941
1942 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
1943
1944         * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
1945
1946 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
1947
1948         * CheckBox.cs: Implement 2.0 functionality.
1949
1950 2007-02-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1951
1952         * ListView.cs: Refactor Add and AddRange methods of
1953         ListViewItemCollection, to not update the ListView
1954         everytime an item is added in AddRange. Also move the update
1955         code to a new CollectionChanged method, and call it
1956         from other methods that need it as well (this should also fix some
1957         bugs when Sorting is used).
1958
1959 2007-02-27  Jackson Harper  <jackson@ximian.com>
1960
1961         * TextControl.cs: Try to never let the caret stay in a non-text
1962         tag.
1963         * TextBoxBase.cs: Update the caret.
1964
1965 2007-02-26  Jonathan Pobst  <monkey@jpobst.com>
1966
1967         * XplatUIStructs.cs: Add some convenience methods for POINT structure.
1968         * XplatUIWin32.cs: Add some convenience methods for RECT structure,
1969         delete POINT structure, duplicate of one in XplatUIStructs.
1970         * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
1971
1972 2007-02-26  Gert Driesen  <drieseng@users.sourceforge.net>
1973
1974         * ListView.cs: Initialize LabelEditEventArgs after setting Text of
1975         edit box since otherwise the Label would immediately be set (even if
1976         the user did not modify the label). In OnKeyDown set Handled to true
1977         if Return or Escape was pressed. In ColumnHeaderCollection unlink
1978         columns that are to be removed. In ListViewItemCollection unlink items
1979         that are to be removed.
1980
1981 2007-02-24  Jonathan Pobst  <monkey@jpobst.com>
1982
1983         * TextRenderer.cs: If we set a GDI clip region, we need to clear
1984         it when we are done.  [Fixes bug #80949]
1985
1986 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
1987
1988         * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
1989
1990 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1991
1992         * ListView.cs: I forgot to commit the changes for ListView 
1993         in my previous patch.
1994
1995 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
1996
1997         * Clipboard.cs: Partially implement an overload of SetDataObject.
1998         * Form.cs: Implement ShowWithoutActivation.
1999         * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
2000
2001 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2002
2003         This is a first set of changes to make the Virtual mode works,
2004         by avoiding the retrieval of ListViewItem instances until
2005         draw time.
2006
2007         * ListView.cs: Store item position in the ListView instead of the
2008         ListViewItem, this way we don't request the Bounds property of
2009         ListViewItem inside the ListView calculations, as well as cache the item
2010         size in item_size field. Store indexes instead of ListViewItem
2011         instances in the matrix used by icon view. Add a ItemMatrixLocation
2012         struct to hold the row and col info of the matrix info.
2013
2014         * ListViewItem.cs: Don't store the location anymore, and only cache
2015         the rectangles for GetBounds. Use the ListView.GetItemLocation
2016         method to retrieve the actual location.
2017
2018 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
2019
2020         * TextRenderer.cs: Add clipping support, thanks to George.
2021         [Fixes bug #80949]
2022
2023 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
2024
2025         * ListViewItem.cs: Cancel label edit when item is removed from 
2026         ListView.
2027         * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
2028         event before the edit textbox is displayed.  Added CancelEdit method
2029         which is used end to editing while ignoring the value set by the
2030         user. In EndEdit, set focus to ListView to avoid losing focus to
2031         other controls. In ListViewItemCollection.Clear, cancel editing of
2032         any of the items.  In Remove, cancel editing of item being removed.
2033         Avoid udplicate code by modifing RemoveAt to invoke Remove.
2034
2035 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
2036
2037         * FileDialog.cs: Update FSEntry when move is successful. Fixes
2038         bug #80948.  
2039
2040 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
2041
2042         * MainMenu.cs: Change Draw method to take care about MenuOrigin to be 
2043         compatible with non X11 systems. Fixes #80901.
2044
2045 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
2046
2047         * ListView.cs: Added bool argument to UpdateMultiSelection to specify
2048         whether the item should be unselected and reselect. We do no want this
2049         when we're starting to edit the label. Do not fire the 
2050         SelectedIndexChanged event from ListView when its already been fired
2051         by modifying ListViewItem.Selected. Fixes bug #80943.
2052
2053 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
2054
2055         * TextRenderer.cs: Previos commit logic was backwards.
2056
2057 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
2058
2059         * TextRenderer.cs: Don't add padding on MeasureText if we were
2060         sent the NoPadding flag.
2061
2062 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
2063
2064         * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
2065         after DrawButton. To prevent image overlaps button borders SetClip and 
2066         ResetClip added before and after draw image. Fixes #79129.
2067
2068 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
2069
2070         * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify 
2071         window size, it fix problem when you run under win32 that theres
2072         Size diferent than ClientSize. Also fix controls size and positions
2073         to mimic Win32. Fixes #80837.
2074
2075 2007-02-22  Everaldo Canuto  <everaldo@simios.org>
2076
2077         * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on 
2078         menu area to fix some problems for non X11 systems. Fixes #80613.
2079
2080 2007-02-22  Jackson Harper  <jackson@ximian.com>
2081
2082         * TreeNode.cs: When a node is expanded, set its is_expanded flag
2083         even if it doesn't have any children.
2084
2085 2007-02-22  Jackson Harper  <jackson@ximian.com>
2086
2087         * TreeView.cs: Calculate the top node 'on the fly', this
2088         eliminates issues where you need to click on the tree before
2089         scrolling it to get the top node computed correctly.
2090         * TreeNodeCollection.cs: We don't need to mess with the top node
2091         anymore.
2092
2093 2007-02-22  Jackson Harper  <jackson@ximian.com>
2094
2095         * DataGridViewRow.cs: Fix typo so height can actually be set.
2096         Patch by Peter Grimm.
2097
2098 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
2099
2100         * FileDialog.cs: Fixed support for renaming files and directories.
2101         * ListView.cs: Do not lose focus when edit is canceled. Process
2102         Escape as regular key (to prevent closing of dialogs).
2103
2104 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
2105
2106         * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
2107         spaces. Changed spaces to tabs. Removed unnecessary init of bools.
2108
2109 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
2110
2111         * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
2112         did not modify label.
2113         * ListView.cs: Only set LabelEditEventArgs.Label if user actually
2114         modified the text. Reset Label when user presses Escape in edit mode.
2115         Move focus to ListView after having cancelled or finished editing the
2116         label.
2117
2118 2007-02-21  Gert Driesen  <drieseng@users.sourceforge.net>
2119
2120         * ComboBox.cs: Removed unnecessary initializations. Marked items field
2121         private. Clear textbox when Text is set to null and SelectedIndex is
2122         already -1.
2123         * FileDialog.cs: Removed unnecessary initializations. Removed 
2124         workarounds for ComboBox bugs that are now fixed. Modified
2125         DefaultExt, InitialDirectory and Title property to change null to
2126         zero-length string in getters. Avoid directly accessing fields.
2127
2128 2007-02-20  Jackson Harper  <jackson@ximian.com>
2129
2130         * TextControl.cs: Remove RecalAlignments call, that was some
2131         debugging leftovers.
2132         - Don't use the line indent when we shouldn't.
2133         * RichTextBox.cs: Add support for paragraph left indents.
2134
2135 2007-02-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
2136
2137         * Control.cs: Fix BeginInvoke signature for 2.0 profile.
2138         Seems like the class status pages doesn't catch params differences.
2139
2140 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
2141
2142         * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
2143
2144 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
2145
2146         * ComboBox.cs: Setting Text should have no effect if item text of
2147         selected item exactly matches value. First lookup text using
2148         case-sensitive comparison, and fallback to case-insensitive comparison.
2149         FindString(Exact) returns -1 if search string is null. On 2.0 profile, 
2150         allow startIndex to be last index. Changed ArgumentOutOfRangeException
2151         paramname to match MS. Restart from first item if string is not found
2152         after startIndex. Fixed paramname of ArgumentNullException that is
2153         thrown for null value in ObjectCollection.Contains.
2154
2155 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
2156
2157         * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
2158
2159 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2160
2161         * ListControl.cs: In SelectedValue use value.Equals to compare for
2162         equality instead of ==, otherwise it will fail for strings.
2163         Fixes #80794.
2164
2165 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2166         
2167         * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
2168         since the caret won't show up unless ShowSelection is true. 
2169         Fixes #80795.
2170
2171 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2172
2173         * Application.cs: When disabling all forms but the main form, do not
2174           disable any descendants of the main form (such as mdi children or
2175           other parented forms). Fixes #80822 on Windows.
2176         * Form.cs: If we have a parent, set the WS_CHILD style.
2177         * Control.cs: Update the window styles if the control whose parent has
2178           changed is a form (the WS_CHILD style has to be switched).
2179
2180 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
2181
2182         * XplatUIStructs.cs: MsgUIState structure added.
2183
2184 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
2185
2186         * FileDialog.cs: Removed need for separate fileName field. On 2.0
2187         profile, do not check filename(s) for illegal character if filename(s)
2188         were set non-interactively but always check on 1.0 profile. Fixed NRE
2189          in DefaultExt and only strip off first leading dot. Improve exception
2190         message when invalid Filter is set. Do not ignore InitialDirectory if
2191         it does no exist. Store specified Title, and if empty use default
2192         title (depending on type of dialog). Added an internal DialogTitle 
2193         property for retrieving dialog title. Fixed logic of displayed dir to
2194         more closely match MS. Avoid setting ComboBox.Text to a zero-length 
2195         string as its buggy.
2196         * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
2197         FileName is a zero-length string (it can never be null). Override 
2198         DialogTitle property to set default title of dialog box.
2199         * SaveFileDialog.cs: Override DialogTitle property to set default
2200         title of dialog box.
2201
2202 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
2203
2204         * FileDialog.cs: Modify default text of filename and filetype labels
2205         to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
2206         after we've updated the SelectedIndex. Fixes part of bug #80887.
2207         * SaveFileDialog.cs: Set text of filetype label.
2208
2209 2007-02-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2210
2211         * LabelEditEventArgs.cs: New internal SetLabel method, to set the
2212         label field. Needed by latest Jackson's fixes for ListView.
2213
2214 2007-02-16  Andreia Gaita  <avidigal@novell.com>
2215
2216         * PrintPreviewControl/PrintPreviewDialog: Properly dispose of 
2217         print preview images.
2218
2219 2007-02-16  Jackson Harper  <jackson@ximian.com>
2220
2221         * ListView.cs: Make AfterLabelEdit work correctly.
2222         * FileDialog.cs: After changing the name of the folder, we have to
2223         make sure that it is created, or that we pop up an error because
2224         it already exists.
2225
2226 2007-02-16  Jackson Harper  <jackson@ximian.com>
2227
2228         * X11Dnd.cs: Implement aliases on mime handlers, so things like
2229         System.String are mapped to text.
2230         - Handle dataobjects, getting all the possible formats out of them
2231         - We dont need the drag event args before we give feedback. This
2232         allows feedback cursors to be immediate before selections have
2233         been converted.
2234
2235 2007-02-16  Jackson Harper  <jackson@ximian.com>
2236
2237         * TextBoxBase.cs: Modified the method for inserting images to
2238         taking a line and position instead of tag and position.
2239         * RichTextBox.cs: Handle PngBlip data by inserting the png image
2240         into the RTF file.
2241         * TextControl.cs: Allow images to be inserted as the first tag of
2242         a line.
2243         - Fix some off by one issues when we assume the first tag is a
2244         text tag, not an image tag.
2245
2246 2007-02-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2247
2248         * ListView.cs: Set focus to ListView when ItemControl gets a
2249         WM_RBUTTONDOWN message, to mimic .Net behaviour. 
2250         Fixes part of #80467.
2251
2252 2007-02-15  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2253
2254         * DateTimePicker.cs: Call RecreateHandle if the Format changes and
2255           validate Text input (if null or empty string reset Value to default
2256           value). Fixes #80830.
2257
2258 2007-02-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2259
2260         * ListView.cs: Set owner as null for columns and items when
2261         Dispose is invoked. Fixes #80607.
2262
2263 2007-02-14  Jonathan Pobst  <monkey@jpobst.com>
2264
2265         * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
2266         showing DropDowns, don't show a Grip when doing Flow layout.
2267         [This fixes the toolbox in PDN 2.72.]
2268         * ToolStripItem.cs: Add Anchor property and some internal properties to
2269         reduces needed changes to FlowLayout.
2270         * ToolStripOverflow.cs: Remove unused variable.
2271         * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
2272         use it in the layout calculations.
2273
2274 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
2275
2276         * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
2277         reported in #79640.
2278         
2279         * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
2280         size calculation.
2281
2282 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
2283
2284         * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from 
2285         MeasureString format, it can make button very large in some cases, it is
2286         strange but is what win32 do.
2287
2288 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
2289
2290         * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string 
2291         size calculation.
2292
2293         * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
2294         rendering, the value is based on MenuAccessKeysUnderlined.
2295
2296 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
2297
2298         * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
2299         for most themes.
2300         
2301         * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
2302         
2303         * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
2304         and use MenuAccessKeysUnderlined instead.
2305
2306 2007-02-13  Andreia Gaita  <avidigal@novell.com>
2307
2308         * ContainerControl.cs: Focus fix for nunit treeview selection bug.
2309         A selected control would not get a Focus call if:
2310                 - the default active control of the container is the same as
2311                   the one that was selected
2312                 - we are switching from one container to another
2313         Under these conditions, the container being selected already has
2314         an active_control, which is the same as the one being activated, 
2315         so set_ActiveControl would always return and not send the Focus
2316         call. Fix to check if the currently active control of the container
2317         is actually focused.
2318
2319 2007-02-13  Jonathan Pobst  <monkey@jpobst.com>
2320
2321         * StatusStrip.cs: Implement the spring layout.
2322         * ToolStripControlHost.cs: Make sure the hosted control's visibility
2323         always matches the host.
2324         * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
2325         and TextAfterImage.
2326
2327 2007-02-13  Andreia Gaita  <avidigal@novell.com>
2328
2329         * Control.cs: Code reorganization only.
2330           - Reorganize the WndProc cases so that each case has it's own handling method, 
2331           to help with the no-line-numbering stack traces.
2332           - Formatting changes (it's vstudio's fault, really :p)
2333
2334 2007-02-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2335
2336         * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
2337           Thread.CurrentUICulture to match DateTimePicker's (and MS)
2338           behaviour.
2339
2340 2007-02-12  Jackson Harper  <jackson@ximian.com>
2341
2342         * RichTextBox.cs:
2343         * TextBox.cs: By default we have a non multiline document
2344         - use the multiline property instead of the internal variable
2345         * TextBoxBase.cs: Treat multiline and non multiline the same in
2346         most places.
2347         - Use the documents multiline flag instead of tracking it ourself
2348         * TextControl.cs: Attempt at getting multiline to match MS
2349         behavior.  Lines now track an offset, which is either their X or Y
2350         offset depending on whether or not we are in multiline mode.
2351         - Update all the methods to understand that lines have an X value.
2352         - Fix crash in Undo::Duplicate when empty lines are deleted.
2353
2354 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
2355
2356         * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and 
2357         code moved to properties PreferredHeight and PreferredWidth. It solve the
2358         all problems when preferred sizes must be recalculated. Fixes #80801.
2359
2360 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
2361
2362         * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
2363         font height when compatible_text_rendering is false. Partially fix #80801.
2364
2365 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
2366
2367         * Form.cs: Fixed typo in exception message. Fixes bug #80779.
2368
2369 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
2370
2371         * Form.cs: Improved exception messages in ShowDialog.
2372
2373 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
2374
2375         * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
2376         PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
2377         if not set. Fixes bug #80764. Avoid accessing current_settings field
2378         directly.
2379
2380 2007-02-08  Everaldo Canuto  <everaldo@simios.org>
2381
2382         * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
2383         false.
2384
2385         * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
2386         public in 2.0 and for easy maintenance and dont break compatibility it is 
2387         internal in 1.1.
2388         
2389 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
2390
2391         * ToolStripItem.cs: Implement using images from ImageList.
2392
2393 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2394
2395         * DateTimePicker.cs: Change default date-formatting culture from
2396           CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
2397           seems to be the way MS does it.
2398
2399 2007-02-08  Andreia Gaita  <avidigal@novell.com>
2400
2401         * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image 
2402         (the 6 was cut off on the right side)
2403
2404 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
2405
2406         * Form.cs: Tell MenuStrips to close when the form is clicked.
2407         * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs, 
2408         ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
2409         ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
2410         ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add 
2411         support for Overflow, where items that do not fit are automatically
2412         reparented to a drop down menu.
2413         * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
2414         Also: fixes bug #80747.
2415
2416 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2417
2418         * ComboBox.cs: Remove warning (unused code).
2419         * ScrollableControl.cs: Remove warning for 1.1 profile.
2420
2421 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2422
2423         * Form.cs: Remove a warning.
2424
2425 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2426
2427         * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
2428           'g' specifier, not documented anywhere, but seems to always show up
2429           as a single space (might have something to do with the DateTime 'g'
2430           specifier, which is the era format, but since DateTimePicker can't
2431           go earlier than 1753 it wouldn't matter) . Fixed quote handling,
2432           won't crash if the format has an unmatched quote. Now shows
2433           single-character formats correctly. Fixes #80744.
2434
2435 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
2436
2437         * StatusStrip.cs: Stretch property needs to call base.Stretch,
2438         not this.Stretch to fix stack overflow. [Fixes bug #80760]
2439
2440 2007-02-07  Chris Toshok  <toshok@ximian.com>
2441
2442         * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
2443         background color.  it overwrites the background image we've
2444         already painted.  Fixes #80599.
2445
2446 2007-02-07  Chris Toshok  <toshok@ximian.com>
2447
2448         * DataGrid.cs: return immediately from Edit() when there are no
2449         columns.  Fixes #80662.
2450
2451 2007-02-07  Chris Toshok  <toshok@ximian.com>
2452
2453         * MessageBox.cs: fix #80625.  don't always show the Help button in
2454         2.0.  use the displayHelpButton parameter to determine if we
2455         should show it. Also, make the internal show_help field private.
2456
2457 2007-02-07  Chris Toshok  <toshok@ximian.com>
2458
2459         * Control.cs (SetVisibleCore): check in the proposed patch for
2460         80604, and set is_visible before calling CreateControl.
2461
2462 2007-02-07  Jonathan Pobst  <monkey@jpobst.com>
2463
2464         * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to 
2465         MonoInternalNote.  This is added automagically by VS2005, so let's not crash
2466         on it.
2467
2468 2007-02-06  Everaldo Canuto  <everaldo@simios.org>
2469
2470         * MenuAPI.cs: hotkey_active internal field added, it is required because
2471         we need to know when hotkeys must be draw, before this change a keystate
2472         Navigating was used but we can have menu in navigating state without
2473         hotkeys. Fixes #80694.
2474         
2475         * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
2476
2477 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2478
2479         * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
2480           corresponding events and methods to be internal for 1.1 profile and
2481           public for 2.0 profile (required by SizeGrip).
2482         * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
2483           implicit control list). Don't set the size nor the location of the
2484           SizeGrip anymore as it's not needed.
2485         * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
2486           draw directly on the captured control (fixes #80656). Removed
2487           ShowGrip (it wasn't used anywhere), redraw (always true), added
2488           GetDefaultSize and GetDefaultRectangle to calculate defaults.
2489         * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
2490           be called from SizeGrip.
2491
2492 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2493
2494         * Timer.cs: Throw ArgumentException if Interval <= 0.
2495
2496 2007-02-05  Jackson Harper  <jackson@ximian.com>
2497
2498         * TreeView.cs: We need to check scrollbar visibility when window
2499         visibility is updated, because non visible trees don't ever add
2500         scrollbars.
2501         * Cursor.cs: We want the override cursor to be reset to NULL when
2502         we set current cursor to the default cursor.
2503
2504 2007-02-05  Jackson Harper  <jackson@ximian.com>
2505
2506         * TextControl.cs: Don't have crlfs when we are non multiline.
2507         - Consolidate the line position.
2508
2509 2007-02-05  Jackson Harper  <jackson@ximian.com>
2510
2511         * X11Keyboard.cs: BACK+CTRL gets a special char code.
2512
2513 2007-02-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2514
2515         * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
2516           handling LeaveNotify->NotifyUngrab in order to send
2517           WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
2518           after calling XUngrabPointer, so we call WindowUngrabbed directly
2519           from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
2520         * Control.cs: Handle WM_CAPTURECHANGED in order to raise
2521           MouseCaptureChanged correctly. Also create handles if changing
2522           Capture (matches MS behaviour).
2523
2524 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2525
2526         * SizeGrip.cs: Make the last change 2.0 only.
2527
2528 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2529
2530         * SizeGrip.cs: If resizing and the capture is lost, revert any size
2531           changes to initial size (fixes #80597).
2532
2533 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2534
2535         * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
2536
2537 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2538
2539         * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
2540           background) and only allow dragging if enabled. This way the
2541           sizegrip can be used to fill the open square that otherwise would
2542           have been shown in the bottom right corner of ScrollableControl
2543           when ScrollableControl is not suppose to support sizing.
2544         * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
2545           sizegrip is shown and enabled, and hook up with necessary events.
2546
2547 2007-02-01  Chris Toshok  <toshok@ximian.com>
2548
2549         * DataGridTextBoxColumn.cs: clean up the
2550         GetFormattedString/GetColumnValueAtRow combination of functions.
2551         Also fix UpdateUI, and the initial state of
2552         IsInEditOrNavigateMode.
2553
2554         * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
2555         aren't supposed to scroll the textbox here, we're supposed to
2556         scroll the datagrid.
2557
2558 2007-02-01  Chris Toshok  <toshok@ximian.com>
2559
2560         * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
2561         setting the position.
2562
2563 2007-02-01  Chris Toshok  <toshok@ximian.com>
2564
2565         * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
2566         here, since the most recent focus fixes keep us from generating
2567         the Leave event when our textbox gets focus.
2568         (Edit): we should be passing null for the column style's
2569         instantText parameter.
2570         
2571 2007-02-01  Jonathan Pobst  <monkey@jpobst.com>
2572
2573         * ToolStripDropDownItem.cs: Make sure DropDownOpening event is 
2574         raised.  Fixes menu text/icons not showing up in PDN.
2575
2576 2007-02-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
2577
2578         * Control.cs: Remove code in constructor that makes every
2579         control with WS_CHILD set have initial location -1, -1.
2580
2581 2007-01-31  Jackson Harper  <jackson@ximian.com>
2582
2583         * X11Dnd.cs: Take the keyboard on init to reduce coupling with
2584         XplatUIX11.
2585         * XplatUIX11.cs: Give teh keyboard to teh dnd.
2586
2587 2007-01-31  Jackson Harper  <jackson@ximian.com>
2588
2589         * X11Dnd.cs: Use IDataObject instead of the DataObject class.
2590         - Remove some debug code.
2591
2592 2007-01-31  Jackson Harper  <jackson@ximian.com>
2593
2594         * XplatUIX11.cs: If you set the override cursor during a grab, it
2595         should actually override the grab cursor.  This comes into play
2596         when you are setting custom cursors in a DND feedback method.
2597
2598 2007-01-31  Jackson Harper  <jackson@ximian.com>
2599
2600         * X11Dnd.cs: Add support for handling the QueryContinue and
2601         GiveFeedback events.
2602         - Cancel drag and drop actions when the escape key is clicked.
2603         * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
2604         can handle the ESCAPE key.
2605         - Allow dnd to swallow BUTTONUP messages if it needs to.  This is
2606         done when dnd events are continued after the button is released.
2607         - Add a new helper method so that dnd can translate key events.
2608
2609 2007-01-31  Alexander Olk  <alex.olk@googlemail.com>
2610
2611         * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
2612         make it more obvious what is happening.
2613
2614 2007-01-30  Jackson Harper  <jackson@ximian.com>
2615
2616         * XplatUIX11.cs: Don't break when handling button release in drag
2617         and drop operations. We need that BUTTONUP message to get through
2618         so capture is released.
2619         * X11Dnd.cs: We don't need to manually grab the pointer anymore,
2620         this is handled automatically when the mouse is down.
2621
2622 2007-01-30  Jackson Harper  <jackson@ximian.com>
2623
2624         * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
2625         is closed, so we need to make sure that we aren't changing the
2626         dialog result when the OK (Open or Save) button has been clicked
2627         and we are closing the window ourselves.  Note we don't need to
2628         worry about the cache being written in this case, because it was
2629         already done in the previous FilOk call.
2630
2631 2007-01-30  Rolf Bjarne Kvinge  <RKvinge@novell.com>
2632         
2633         * DateTimePicker.cs: Remove a warning.
2634         * ComboBox.cs: Remove a couple of warnings.
2635
2636 2007-01-29  Chris Toshok  <toshok@ximian.com>
2637
2638         * XplatUIX11.cs: don't crash, and remove the icon if the user has
2639         set one, if SetIcon is passed a null icon.
2640
2641 2007-01-29  Andreia Gaita  <avidigal@novell.com>
2642
2643         * TextBox.cs: Redraw when the password characters changes
2644         * TextControl.cs: Check if textbox has a password char and draw 
2645         a line of password chars instead of the text in the line. LineTag gets 
2646         an extra Draw() method which allows document.Draw to override the text 
2647         that will be drawn. Removes 1024 char limitation on length of passworded 
2648         lines.
2649
2650 2007-01-29  Jackson Harper  <jackson@ximian.com>
2651
2652         * TextBoxBase.cs: Deleting sections of text is undoable.  Deleting
2653         single chars is not.
2654
2655 2007-01-28  Jonathan Pobst  <monkey@jpobst.com>
2656
2657         * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
2658         one pixel.  Fix a StackOverflowException caused by an overload wrongly
2659         calling itself.
2660
2661 2007-01-26  Everaldo Canuto  <everaldo@simios.org>
2662
2663         * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
2664         also remove ProcessArrowKey and put the code inside ProcessKeys.
2665
2666 2007-01-26  Jonathan Pobst  <monkey@jpobst.com>
2667
2668         * PaddingConverter.cs: Added.
2669
2670 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
2671         
2672         * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
2673         ShowPanels is false (fixes #80600). Only draw up to 127 characters
2674         of text (fixes #80601). For panels clip the text to draw to the
2675         panel (fixes #80603).
2676
2677 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
2678
2679         * ComboBox.cs: Fixed implementation of ResetText.
2680
2681 2007-01-25  Jackson Harper  <jackson@ximian.com>
2682
2683         * TextControl.cs: For the last char of a line we need to use the
2684         line size, not that chars width, since it won't actually be
2685         computed since the right side of a char is based on the start of
2686         the left side of the next char, and the next char does not exist.
2687
2688 2007-01-25  Chris Toshok  <toshok@ximian.com>
2689
2690         * Splitter.cs: fix the new unit tests, and reindent some switch
2691         statements.
2692
2693 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
2694
2695         * ComboBox.cs: Implemented 2.0 methods and events.
2696         * TextBoxBase.cs: Added OnTextUpdate, so that
2697         ComboBox.ComboTextBox can inform ComboBox of it.
2698
2699 2007-01-25  Jackson Harper  <jackson@ximian.com>
2700
2701         * TextControl.cs: Respect ShowSelection when deciding whether or
2702         not to display the caret, this allows comboboxes to have carets
2703         when the combotextbox does not have focus.
2704
2705 2007-01-25  Jackson Harper  <jackson@ximian.com>
2706
2707         * TextControl.cs: Add a Suspend/Resume for updating, basically the
2708         same as the Suspend/Resume for recalc, except this will do actual
2709         Invalidates.
2710         - New Undo manager, works much like the MS version.
2711         - Implemented Redo
2712         * TextBoxBase.cs: The Cut operation is undoable.
2713
2714 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
2715         
2716         * TextBoxBase.cs: Don't antialias text. Makes it look way better
2717         on Windows (no difference on Linux).    
2718
2719 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
2720
2721         * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
2722         we don't want to activate any windows. Fixes #79433.
2723
2724 2007-01-25  Jonathan Pobst  <monkey@jpobst.com>
2725
2726         - ButtonBase.cs: Fix capitalization of parameter: disposing.
2727         [Fixes bug #80609]
2728
2729 2007-01-25  Alexander Olk  <alex.olk@googlemail.com>
2730
2731         * FileDialog.cs:
2732         - Move to using System.ComponentModel.EventHandlerList
2733         - Replace Refresh with Invalidate
2734         - Clear the mime filecache on closing
2735         - Some other memory reducing work. After beeing closed FD now uses
2736           only about 300 KB for the fdo mime stuff plus the memory of the
2737           cached icons.
2738         * Mime.cs: Changed coding style and removed unnecessary commented
2739         code. Some more memory memory reducing work.
2740
2741 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
2742
2743         * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
2744         a few other missing 2.0 properties.
2745         * Theme.cs: Added DrawFlatStyleComboBox.
2746         * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
2747
2748 2007-01-24  Chris Toshok  <toshok@ximian.com>
2749
2750         * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
2751         wake_waiting flag, not just when there's data to be read.  if we
2752         don't, then future wakeup's won't reach us and we'll be doomed to
2753         wait for the entire 1 second timeout forever (unless there are X
2754         events to be had).
2755
2756 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
2757
2758         * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
2759         until you pass Items.Count, not Items.Count - 1 like 1.1.
2760
2761 2007-01-24  Gert Driesen  <drieseng@users.sourceforge.net>
2762
2763         * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
2764
2765 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
2766
2767         * ToolStripContainer.cs: The recent Dock fix exposed that I was
2768         adding the panels in the wrong order.
2769
2770 2007-01-24  Jackson Harper  <jackson@ximian.com>
2771
2772         * TextBoxBase.cs: When we move the caret we also need to move the
2773         selection, this fixes some random crashing after doing select
2774         text, unselect, delete a char, paste.
2775
2776 2007-01-24  Rolf Bjarne Kvinge  <RKvinge@novell.com>
2777
2778         * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
2779
2780 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
2781
2782         * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
2783         OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553. 
2784         * ToolBar.cs: Force redraw in BackgroundImageChanged.
2785
2786 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
2787
2788         * ToolBar.cs:
2789         - Implement support for vertical toolbars. Fixes #80539;
2790         - Call LayoutToolBar when resize, it fix some other problems in layout.
2791         - Rename requested_height to requested_size, as we can have width on it
2792         when toolbar is vertical.
2793         - Create a private property "Vertical" that uses Dock to verify when 
2794         toolbar is vertical or not.
2795         - Set ControlStyles when change Dock property.
2796         - Refactory in LayoutToolBar to have better variables names and to support
2797         vertical toolbars.
2798         - Fixes default value for ButtonSize when button count is equal zero, size
2799         must be (39, 36) test case writed.
2800
2801 2007-01-23  Chris Toshok  <toshok@ximian.com>
2802
2803         * Control.cs: fix the checks so that they work correctly for mdi
2804         parents/children.
2805
2806 2007-01-23  Chris Toshok  <toshok@ximian.com>
2807
2808         * Control.cs: ControlCollection seems to have super-secret
2809         abstraction breaking knowledge of Mdi containers.  allow MdiClient
2810         to add toplevel controls.
2811
2812 2007-01-23  Chris Toshok  <toshok@ximian.com>
2813
2814         * Control.cs: throw an ArgumentException if a toplevel control is
2815         added to our control collection from ControlCollection.Add, as
2816         well as from ControlCollection.IList.Add.  This fixes the
2817         ControlSetTopLevelTest.TestTopLevelAdd unit test.
2818
2819         Also, in ControlCollection.IList.Add, don't through an
2820         ArgumentNullException, throw an ArgumentException, when value ==
2821         null.  This matches MS.
2822
2823 2007-01-23  Chris Toshok  <toshok@ximian.com>
2824
2825         * BindingSource.cs: initial, incomplete, implementation of
2826         BindingSource.
2827
2828 2007-01-23  Jackson Harper  <jackson@ximian.com>
2829
2830         * TextControl.cs:
2831         * TextBoxBase.cs: Checking in some pieces of the undo stuff so
2832         that I can fix a broken unit test (TextBoxTest::ClearUndo)
2833         
2834 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
2835
2836         * ToolBar.cs: Add status fields to ToolBarButtonInfo.
2837
2838 2007-01-23  Andreia Gaita  <avidigal@novell.com>
2839
2840         * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
2841         * TreeNodeCollection.cs: New Add() methods, ContainsKey and
2842         IndexOfKey() for 2.0
2843
2844 2007-01-23  Rolf Bjarne Kvinge  <RKvinge@novell.com>
2845
2846         * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
2847         to prevent it from changing z-order.
2848         * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
2849         leave UI updates in MdiWindowManager.
2850         * InternalWindowManager.cs: Check for 0 sized nc areas and make them
2851         1 sized (NC handling goes weird on Linux otherwise).
2852         * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
2853         necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
2854         remove a few NCRequestRecalcs. Changed calculations in IconicBounds
2855         to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
2856         and SetWindowState(s) to allow for changing the size of an activated child
2857         before activating it (reduces a lot of flicker).
2858
2859 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
2860
2861         * Form.cs: Changing FormBorderStyle has different semantics based
2862         on whether the Form is visible or not.  If not visible, don't change
2863         the Size.  But InvalidateNC needs to be called to force the window
2864         to pick up the changes and redraw itself.  [Fixes bug #80574]
2865
2866 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
2867
2868         [Moma work]
2869         * ContainerControl.cs: ProcessCmdKey.
2870         * ErrorProvider.cs: new constructor.
2871         * Form.cs: fix AutoValidateEvent compiler warning.
2872         * Label.cs: fix OnAutoSizeChanged compiler warning.
2873         * MenuStrip.cs: fix CanOverflow compiler warning.
2874         * TabControl.cs: SelectTab, OnSelected methods, Selected event.
2875         * TextBox.cs: Dispose.
2876         * ToolStrip.cs: CanOverflow, re-enable double buffering.
2877         * ToolStripControlHost.cs: fix CausesValidation compiler warning.
2878         * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
2879         * ToolStripItem.cs: Overflow, RightToLeft properties.
2880
2881 2007-01-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
2882
2883         * Form.cs: Move the layout of the main form to MdiWindowManager.
2884         * MdiWindowManager.cs: If WindowState changes from or to Maximized,
2885         do a layout of the main window to update MdiClient's client area to
2886         the right area. Fixes #80533. Remove the calculation of nc size, 
2887         it was just wrong and the correct one is the same as for 
2888         InternalWindowManager. 
2889
2890 2007-01-20  Jonathan Pobst  <monkey@jpobst.com>
2891
2892         * Control.cs: Setting Anchor or Dock needs to reset the other
2893         to its default.  [Fixes bug #80556]
2894
2895 2007-01-20  Chris Toshok  <toshok@ximian.com>
2896
2897         * CheckedListBox.cs: class status changes.
2898
2899         * ScrollableControl.cs: same.
2900
2901         * RichTextBox.cs: same.
2902
2903         * ContainerControl.cs: same.
2904
2905         * ListView.cs: same.
2906
2907         * NotifyIcon.cs: same.
2908
2909         * MenuStrip.cs: same.
2910
2911         * RadioButton.cs: same.
2912
2913         * CheckBox.cs: same.
2914
2915         * PrintPreviewDialog.cs: same.
2916
2917         * Form.cs: same.
2918
2919 2007-01-19  Jonathan Pobst  <monkey@jpobst.com>
2920
2921         * TreeNode.cs: Apply Alan's patch for Name property.
2922
2923 2007-01-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
2924         
2925         * Form.cs: Implemented SizeGripStyle.
2926         * SizeGrip.cs: Check for minimum and maximum size for the
2927         control being resized and only resize if size has actually
2928         changed.
2929
2930 2007-01-19  Chris Toshok  <toshok@ximian.com>
2931
2932         * DataGridColumnStyle.cs: stop setting _readonly in the
2933         PropertyDescriptor setter.  fixes a unit test failure.
2934
2935         also, rename ParentReadOnly to TableStyleReadOnly, and have it
2936         just consult our table style (if we have one).  We don't need to
2937         consult the datagrid readonly attribute because that's passed in
2938         as the _ro arg to Edit.  this simplifies things a little.
2939         
2940         * DataGrid.cs: use CurrentColumn instead of
2941         current_cell.ColumnNumber just to simplify some of the code.
2942
2943         switch the order of some things in the CurrentCell setter to keep
2944         the previous cell from getting a textbox again -
2945         EnsureCellVisibility causes scrolling to happen, which calls Edit.
2946         So we need to set the new cell before calling it.
2947         
2948         call Edit in OnEnter, as does Microsoft.
2949         
2950         also, make sure the current table style isn't the one we create
2951         initially when checking to see if it's different than the one
2952         we're setting it to in BindColumns (this fixes #80421).
2953
2954         * GridTableStylesCollection.cs: table styles can have "" for a
2955         mapping name.  part of the fix for #80421.
2956
2957         * DataGridTextBoxColumn.cs: simplify the readonly calculation in
2958         Edit significantly.
2959
2960 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
2961
2962         * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
2963         and less GDI object leaky-er.
2964
2965 2007-01-18  Andreia Gaita  <avidigal@novell.com>
2966
2967         * LinkLabel.cs: Add opaque control style
2968
2969 2007-01-18  Jackson Harper  <jackson@ximian.com>
2970
2971         * TextControl.cs: Calculate width properly.
2972         - Don't store the tag's X offset, this can be figured out very
2973         easily.
2974         - When getting the caret tag make sure to get the last empty tag.
2975
2976 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
2977
2978         * Form.cs: Recalculate our size after setting a new FormBorderStyle.
2979         [Fixes bug #79959]
2980
2981         * Control.cs: Color.Empty shouldn't count for previous transparent
2982         redraw changes.
2983
2984 2007-01-18  Jackson Harper  <jackson@ximian.com>
2985
2986         * TextBox.cs:
2987         * RichTextBox.cs:
2988         * TextControl.cs: Starting to merge in some pieces of my older
2989         undo work.  Basically just some slight cleanup of the undo API.
2990
2991 2007-01-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
2992
2993         * TrackBar.cs: Fix signature of RightToLeftLayout.
2994         * StatusBar.cs: Implemented missing 2.0 methods and attributes.
2995         * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
2996         * Application.cs: Implemented UseWaitCursor.
2997
2998 2007-01-18  Jackson Harper  <jackson@ximian.com>
2999
3000         * TextControl.cs: We can't skip tags if any part of the tag is
3001         visible.
3002
3003 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
3004
3005         * ContainerControl.cs: Override OnLayout.
3006
3007 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
3008
3009         * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
3010
3011         * ContextMenuStrip.cs: Make sure context menu is shown on top of 
3012         everything else.
3013
3014 2007-01-18  Chris Toshok  <toshok@ximian.com>
3015
3016         * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
3017         (leftover from the container_selected days, I'd wager).  fixes bug
3018         #80546.
3019
3020 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
3021
3022         * Control.cs: Apply patch from George to fix the new testcase on
3023         bug #80451.  We can't just check for Color.Transparent, we need 
3024         to check if the back color's alpha channel is < 255.
3025
3026 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
3027
3028         * Form.cs: Move setting show_icon = true to before the constructor
3029         so that the base constructor has that information when it calculates
3030         the form's size.  Was causing forms to be (6, 6) bigger than they
3031         were supposed to be.  Thanks for catching this Rolf!
3032
3033 2007-01-18  Jackson Harper  <jackson@ximian.com>
3034
3035         * TextControl.cs: When replacing a selection we need to invalidate
3036         from the initial selection start, because selection start is moved
3037         to the end of the replacement.
3038
3039 2007-01-18  Andreia Gaita  <avidigal@novell.com>
3040
3041         * LinkLabel.cs: Missing ControlStyles. Fixes #80482
3042
3043 2007-01-18  Chris Toshok  <toshok@ximian.com>
3044
3045         * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
3046         I just added.
3047
3048 2007-01-17  Everaldo Canuto  <everaldo@simios.org>
3049
3050         * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every 
3051         layout methods and properties from ToolBarButton must be available
3052         into ToolBarButtonInfo.
3053
3054 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
3055
3056         * Control.cs: If the control has a transparent background, we
3057         need to refresh it when it moves and when it's parent's background
3058         image changes.  [Fixes bug #80451]
3059
3060 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
3061
3062         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code!  Doh!
3063
3064 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
3065
3066         * XplatUIWin32.cs: Implement proper double buffering for Windows.
3067         [Fixes bug #80447, and probably speeds up things as well]
3068
3069 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
3070
3071         * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
3072         * XplatUIWin32.cs: We need to recalculate NC size after changing 
3073         window style to toolwindow (otherwise the client rectangle will be
3074         3 pixels to small for some reason).
3075         * MdiWindowManager.cs: Revert NC size calculations to match how
3076         they are calculated only based on window styles (to match
3077         Win32AdjustWindowRectEx, since otherwise when setting size or 
3078         location, Control will call Win32AdjustWindowRectEx to update client 
3079         size, which would provoke a paint, then we'd get a NCCALCSIZE and 
3080         calculate a different value of client size causing another paint 
3081         (and flickering))
3082         * InternalWindowManager.cs: When moving or resizing a window only
3083         update size or location if they actually changed.
3084         * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
3085         (seems to match Windows behaviour better). Cleaned up 
3086         ManagedWindowDecorations to draw what's needed and nothing else
3087         (was drawing borders and lines where they shouldn't be)
3088         * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
3089         (style = 0xFFFF) and takes into account caption height when 
3090         calculating window rectangle.   
3091
3092 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
3093
3094         * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button 
3095         can be added to toolbar multiple times, we need to maintain a list of 
3096         button information for each positions.
3097
3098 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
3099
3100         * ToolBar.cs: Some small stetic changes.
3101
3102 2007-01-16  Jackson Harper  <jackson@ximian.com>
3103
3104         * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
3105         that allow us to have nested recalc = false blocks.
3106         - Add paste support for images in the RichTextBox
3107         * RichTextBox.cs: flush the text after the color is changed, so
3108         the change takes effect.
3109         - Use SuspendRecalc
3110         - Some extra debugging info
3111         * TextControl.cs: Tags no longer track their length, it is just
3112         computed from the next tags length, this makes things a little
3113         simpler and reduces places that we have to track length changes.
3114         - Refactored the linetag class a little so we could make it
3115         a base class for different kinds of tags
3116         - Created a image tag, a tag that can have a single image inserted
3117         into it
3118         - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
3119         that we can call suspend multiple times.
3120         - Add some debugging methods
3121
3122 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
3123
3124         * MdiClient.cs: Add ActivatePreviousChild for 
3125         mdi child window navigation.
3126         * Form.cs: Use MdiClient.ActivateNextChild/
3127         ActivatePreviousChild instead of Form.SelectNextControl
3128         to select the next/previous child since 
3129         SelectNextControl doesn't do it in the same order
3130         as mdi children should do it.
3131
3132 2007-01-16  Chris Toshok  <toshok@ximian.com>
3133
3134         * Control.cs: remove container_selected field.
3135
3136 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
3137
3138         * MdiClient.cs: Update main form's ActiveChild when
3139         updating keyboard focus for the mdi child.
3140
3141 2007-01-16  Jonathan Pobst  <jpobst@novell.com>
3142
3143         * Control.cs: PreferredSize fix.
3144
3145         * Form.cs: Add several 2.0 events, properties, and methods.
3146
3147 2007-01-16  Gert Driesen  <drieseng@users.sourceforge.net>
3148
3149         * Form.cs: Provide meaningful message when MdiParent is assigned a
3150         Form that is not an MdiContainer.
3151
3152 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
3153
3154         * MdiClient.cs: Update main form's ActiveChild when
3155         activating a mdi child.
3156
3157 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
3158
3159         * MdiWindowManager.cs: Fix NRE when merging menus and main form
3160         doesn't have a menu.
3161
3162         * Form.cs: Request NCRecalc after creating a mdi child window.
3163         Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab, 
3164         Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
3165         
3166         * MdiClient.cs: Add new method SendFocusToActiveChild that either
3167         sends keyboard focus to the active child, or to the MdiClient
3168         if there are no child forms.
3169         
3170 2007-01-15  Chris Toshok  <toshok@ximian.com>
3171
3172         * ListView.cs: drop the *Internal overrides, just do our work in
3173         ItemControl's WndProc instead.
3174
3175         * UpDownBase.cs: a few large changes.  Fix up the Selectable state
3176         of the various controls, and forward the events properly (in the
3177         same manner as MS) from the textbox to the UpDown.  Also the
3178         ActiveControl of the UpDownBase gets set properly now.  Finally,
3179         we don't call UpdateEditText from the ctor.  Fixes bug #79957.
3180
3181         * NumericUpDown.cs: set Text in the ctor.
3182
3183         * DomainUpDown.cs: call UpdateEditText in the ctor.
3184         
3185         * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
3186         so even a Selectable = false textbox can be focused if you click
3187         in it.  Go figure.
3188
3189         * Control.cs: remove On{Got,Lost}FocusInternal.  Subclasses can
3190         just add their handling in their respective WndProc's.  Also add
3191         an explicit FocusInternal method that doesn't consult CanFocus
3192         before calling Select(this).
3193
3194         * TextBoxBase.cs: deal with removal of the FocusInternal calls -
3195         do our work in WndProc instead.
3196
3197         * TabControl.cs: same.
3198
3199         * ComboBox.cs: same.
3200
3201 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
3202
3203         * Menu.cs: implement MergeItems and Replace for MenuMerge method.
3204         Fixes #80006.
3205
3206 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3207
3208         * ListViewItem.cs:
3209         * ThemeWin32Classic.cs: Don't draw the item text outside
3210         item bounds in Details view, as well as use trimming.
3211         Fixes bug #80376.
3212
3213 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
3214
3215         * Form.cs: Implement Form.ShowIcon.
3216         
3217         * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
3218         null, which when combined with the DlgModalFrame window style removes
3219         the icon from the title bar.
3220
3221 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
3222
3223         * Control.cs: Call OnMouseClick after OnClick. (2.0)
3224
3225 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
3226
3227         * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
3228         menu when mdi child windows theres a menu, uses insert to get icon
3229         at first position. Partially fix #80006.
3230
3231 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
3232
3233         * Clipboard.cs: Implement 2.0 methods.
3234
3235 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
3236
3237         * Menu.cs: Implement Insert method of MenuItemCollection class
3238         to fix MenuMerge.
3239
3240 2007-01-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3241
3242         * ListView.cs: Implement 2.0 FindItemWithText method.
3243
3244 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
3245
3246         * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
3247         to calculate menu bar size. Fixes #80290.
3248
3249 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
3250
3251         * ThemeWin32Classic.cs: Fix position of menuitem check mark.
3252
3253 2007-01-11  Chris Toshok  <toshok@ximian.com>
3254
3255         * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
3256         initial form.
3257
3258 2007-01-11  Chris Toshok  <toshok@ximian.com>
3259
3260         * LinkLabel.cs: make sure to call base.Select in our Select method
3261         if it turns out we're going to be selected (i.e. if we have a link
3262         that is going to receive focus).  That way our container's
3263         ActiveControl is updated properly.
3264
3265 2007-01-11  Chris Toshok  <toshok@ximian.com>
3266
3267         * LinkLabel.cs: turns out that LinkLabels are only Selectable if
3268         they have 1 or more links.  this fixes the crash gert reported.
3269
3270 2007-01-11  Andreia Gaita  <avidigal@novell.com>
3271
3272         * ContainerControl.cs: Remove ContainerSelected flag, not needed
3273         anymore.
3274
3275         * Control.cs (Controls.Add): Check if control to be added to the collection
3276         is a top level control, and throw an ArgumentException if it is.
3277         Remove ContainerSelectedFlag, not needed anymore.
3278
3279         * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
3280         top most control doesn't activate the form. This fixes a problem in the
3281         MessageBox, where the default button wouldn't get focus because the form
3282         was activated before being Loaded - when the Owner is set, SetTopMost is
3283         called, and it would activate it.
3284
3285 2007-01-11  Jonathan Pobst  <jpobst@novell.com>
3286
3287         * Button.cs: When clicked and setting the parent form's DialogResult,
3288         use FindForm instead of Parent, since parent could be a container
3289         control and not the Form.  Fixes bug #80495.
3290
3291 2007-01-10  Chris Toshok  <toshok@ximian.com>
3292
3293         * Form.cs: move the call to SendControlFocus into the same
3294         is_loaded check.
3295
3296 2007-01-10  Chris Toshok  <toshok@ximian.com>
3297
3298         * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
3299         It breaks in the face of the new ActiveControl stuff, and should
3300         be unnecessary.
3301
3302         * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
3303         activecontrol's focus if it's not already set, after we set
3304         ActiveControl, but before we call OnActivated.  Re-fixes #79667
3305         after the previous focus/active control fixes regressed it.
3306
3307         * Control.cs: reindent some code.
3308         
3309 2007-01-10  Chris Toshok  <toshok@ximian.com>
3310
3311         * Splitter.cs: clearing some outstanding changes from my tree.
3312         Replace all accesses (not writes) to the internal dock_style field
3313         with the Dock property.
3314
3315 2007-01-10  Chris Toshok  <toshok@ximian.com>
3316
3317         * Control.cs: make FireEnter, FireLeave, FireValidating, and
3318         FireValidated virtual.
3319
3320         * Form.cs: override and don't chain up calls to FireEnter and
3321         FireLeave.
3322
3323 2007-01-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3324
3325         * ListView.cs: Add more text padding space when using
3326         auto resize for columns (the previous value didn't work fine).
3327
3328         * ThemeWin32Classic.cs: Update text position inside columns,
3329         to match the appeareance of .Net.
3330
3331         * ColumnHeader.cs: When using auto resize, only the Width should
3332         depend on the sub items, not the Height. Also, set width after
3333         auto resizing (the value of Width should never remain as -1 or -2).
3334
3335 2007-01-10  Chris Toshok  <toshok@ximian.com>
3336
3337         * Application.cs: fix compilation errors when debug is enabled.
3338
3339 2007-01-10  Chris Toshok  <toshok@ximian.com>
3340
3341         * ContainerControl.cs (set_ActiveControl): rework this a bit (and
3342         add some nice ascii art pictures and explanation of the process).
3343         (GetMostDeeplyNestedActiveControl): new utility function we need
3344         because our ActiveControl can refer to a child container with its
3345         own ActiveControl.
3346
3347         * Form.cs (OnActivated): remove the call to SelectActiveControl
3348         from here, since you can override this method and not chain up,
3349         and winforms still sets the active control.
3350         (OnCreateControl): also remove the unnecessary SelectActiveControl
3351         call from here.
3352         (WndProc): it's actually called from the WM_ACTIVATE block, just
3353         before calling OnActivated.
3354
3355         * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
3356         inside the else.  the ActiveControl setter will end up setting
3357         focus on @control.  This keeps us from setting it again (and
3358         generating an extra LostFocus/GotFocus pair).
3359         (Select (bool, bool)): reindent.
3360
3361 2007-01-10  Jonathan Pobst  <jpobst@novell.com>
3362
3363         * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
3364         StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
3365         ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
3366         ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
3367         ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
3368         ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
3369         ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
3370         ToolStripTextBox.cs: Another wave of corcompare work.
3371
3372 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3373
3374         * ColumnHeader.cs: Implement 2.0 AutoResize method using
3375         the Width property.
3376
3377         * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
3378         methods by callling Column.AutoResize method on columns.
3379
3380 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
3381
3382         * Control.cs: Provide proper implementations of PreferredSize
3383         and GetPreferredSize (2.0).
3384
3385 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
3386
3387         * Form.cs: Remove one character (!) to make my previous OnClosing
3388         stuff work for modal windows like MessageBox.
3389
3390 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3391
3392         * ListView.cs:
3393         * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
3394         ListView.Columns to get the last displayed column. Fixes #80452.
3395
3396 2007-01-09  Everaldo Canuto  <everaldo@simios.org>
3397
3398         * Label.cs, LinkLabel.cs: Source code identation fixes.
3399
3400 2007-01-08  Everaldo Canuto  <everaldo@simios.org>
3401
3402         * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
3403         we dont need to invalidate only borders because when we invalidate four
3404         border lines the invalidate's generates a complete redraw of button, 
3405         because it now invalidate a complete rect some other redraws operations
3406         are fixed. Fixes #80196.
3407         
3408         * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
3409         Remove ToolBarInvalidateEntireButton as it is not used.
3410
3411 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
3412         
3413         * Form.cs: Make sure that both OnClosing and OnFormClosing are
3414         called for 2.0 profile.
3415         * CloseReason.cs: Make class internal for 1.1.
3416
3417 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
3418
3419         * ToolStripManager.cs: Implement FindToolStrip functionality.
3420         * ToolStrip.cs: Register and unregister with ToolStripManager.
3421
3422 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
3423
3424         * Control.cs: This was messy.  2.0 moves much of ControlCollection
3425         to ArrangedElementCollection.  Implemented this with as few #if's as 
3426         possible (which is still too many).
3427
3428 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
3429
3430         * Control.cs: Implement SizeFromClientSize() [2.0].
3431
3432 2007-01-07  Everaldo Canuto  <everaldo@simios.org>
3433
3434         * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
3435         use Theme.BorderSize to calculate area instead of static value 1, 
3436         by the way use new BorderStaticSize instead     Border3DSize when 
3437         border_static is true. Fixes #79537.
3438         
3439         * XplatUIOSX.cs: Fix call to GetClientRectangle. 
3440         
3441         * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
3442         it is not needed.
3443
3444 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
3445
3446         * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
3447
3448 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
3449
3450         * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
3451         WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
3452         
3453         * Hwnd.cs: 
3454         - border_static field added, it will used to define when a control 
3455         theres 3D border but it must be static (thin).
3456         - In GetWindowRectangle use Theme.BorderSize to calculate area 
3457         instead of static value 1, by the way use new BorderStaticSize instead
3458         Border3DSize when border_static is true.
3459
3460         * XplatUIX11.cs, XplatUIOSX.cs: 
3461         - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
3462         
3463         * Theme.cs: BorderStaticSize field added.
3464
3465 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
3466
3467         * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
3468
3469 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
3470
3471         * Control.cs: Under InternalBorderStyle call RecreateHangle to 
3472         mimic same behavior than win32 that set border only in CreateParams,
3473         it fix problems under CreateParams overrides. Fix #79442 and partial
3474         fix #79537.
3475         
3476         * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
3477         of thi control you must call recreate handle. 
3478         
3479         * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
3480         need to do anything as RecreateHangle will take care about borders.
3481
3482 2007-01-05  Mike Kestner  <mkestner@novell.com>
3483
3484         * ListView.cs: hack to eliminate Lost/Got focus notifications on
3485         cycles between the ItemControl and parent.  Fixes #80388.
3486
3487 2007-01-05  Gert Driesen  <drieseng@users.sourceforge.net>
3488
3489         * Control.cs: Lazy init layout engine. Do not directly use 
3490         layout_engine since LayoutEngine may be overridden (on 2.0 profile).
3491
3492 2007-01-05  Chris Toshok  <toshok@ximian.com>
3493
3494         * DataGrid.cs: don't forceably rebind columns in SetDataSource
3495         unless our list manager has changed (i.e. unless we have reason to
3496         believe our columns have changed).  Fixes #80422.
3497         
3498         also, disable the call do BindColumns in
3499         OnListManagerMetaDataChanged.  this breaks this test in 2.0 (in
3500         1.1 the event isn't raised in response to a column addition on a
3501         table.)
3502
3503 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
3504
3505         * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
3506         that inheritors can not call it if they choose.  Fixes bug #80456.
3507
3508 2007-01-05  Andreia Gaita  <avidigal@novell.com>
3509
3510         * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it 
3511         doesn't blow up with a null exception on marshalling.
3512         
3513 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
3514
3515         * Control.cs: Implement several 2.0 protected properties and methods.
3516         Ensure that all necessary events are being called when properties
3517         are set.
3518
3519 2007-01-05  Mike Kestner  <mkestner@novell.com>
3520
3521         * ListView.cs: implement PgUp/PgDn for Details view.  Also
3522         fixes First/LastVisibleIndex to use the item_control.ClientRect 
3523         instead of the parent control.  Fixes #80378.
3524
3525 2006-01-05  Atsushi Enomoto  <atsushi@ximian.com>
3526
3527         * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
3528           determine whether to use yard-pound or not (bug #78399).
3529
3530 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
3531
3532         * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
3533         problems. So it is time to bring back the old popupbutton colors.
3534
3535 2006-01-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3536
3537         * ColumnHeader.cs:
3538         * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
3539         property by using the internal information of the
3540         columns order in ListView.
3541
3542 2007-01-04  Jonathan Pobst  <monkey@jpobst.com>
3543
3544         * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
3545         Add 2.0 Tag properties.
3546
3547         * LinkArea.cs: Add 2.0 ToString method.
3548
3549 2007-01-03  Chris Toshok  <toshok@ximian.com>
3550
3551         * DataGrid.cs: the Alt+0 handling was wrong, it should have been
3552         Ctrl+0.  Fixes bug #80367.  Also, don't eat the Delete keypress
3553         when we're editing, which fixes #80047.
3554
3555 2007-01-03  Chris Toshok  <toshok@ximian.com>
3556
3557         * Form.cs: apply patch contributed by Dominik Seichter.  fixes
3558         #80404.
3559
3560 2007-01-03  Jonathan Pobst  <monkey@jpobst.com>
3561
3562         * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
3563         property and implementation.
3564
3565         * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
3566         for MdiWindowListItem property.
3567
3568         * ToolStripDropDown.cs: Don't consider hidden menu items while
3569         laying out the menu.
3570
3571 2007-01-03  Andreia Gaita  <avidigal@novell.com>
3572
3573         * SendKeys.cs: window handle is not needed in win32, so just
3574         get the active window for X after parsing keys and don't use
3575         it when building the message; it is passed by parameter to the 
3576         Xplat method and used there to build the message instead. Also,
3577         wait for events to be processed on SendWait, as opposed to Send,
3578         which doesn't wait :) Playing with threads and Send() completely 
3579         hangs on ms.net, only SendWait() works.
3580         
3581         XplatUIX11.cs
3582         X11Display.cs: Check for valid window handle.
3583
3584 2007-01-03  Jackson Harper  <jackson@ximian.com>
3585
3586         * TextControl.cs: Need to prevent wrap calculations when replacing
3587         text (this was there before i removed it accidently).
3588         - Don't update the cursor during the positioning, just set it to
3589         selection_start at the end of the operaion.
3590
3591 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
3592
3593         * Control.cs:
3594         * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
3595         
3596 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
3597
3598         * MonthCalendar.cs: Added Click and DoubleClick events again,
3599         but this time they only hide Control's Click and DoubleClick.
3600         
3601 2007-01-03  Gert Driesen  <drieseng@users.sourceforge.net>
3602
3603         * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
3604         System.Drawing assembly. Spaces to tabs. Removed extra tabs.
3605
3606 2007-01-02  Jackson Harper  <jackson@ximian.com>
3607
3608         * TextBoxBase.cs: We move the caret with the split now, so we
3609         don't need to explicitly move the caret after splitting.  This
3610         fixes the caret bumping down an extra line on Enter.
3611
3612 2007-01-02  Miguel de Icaza  <miguel@novell.com>
3613
3614         * ContainerControl.cs: Add AutoValidateChanged event (for PDN
3615         2.72). 
3616
3617         * ScrollableControl.cs: Add Scroll event.
3618
3619 2007-01-02  Mike Kestner  <mkestner@novell.com>
3620
3621         * ListView.cs: one more try with help from georgegiolfan@yahoo.com 
3622         to fix all hdr height padding codepaths.  Fixes #80207.
3623
3624 2007-01-02  Chris Toshok  <toshok@ximian.com>
3625
3626         * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
3627         setting it to the Control defaults anyway, and it being after the
3628         Dock set was screwing up layout.
3629         (set_Dock): don't short circuit out of setting base.Dock.  Also,
3630         no need to call UpdateStatusBar here, as it'll be re-layed out if
3631         it needs to be.
3632
3633 2007-01-02  Mike Kestner  <mkestner@novell.com>
3634
3635         * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
3636         to header height for width == -1. Fixes the rest of #80207.
3637
3638 2007-01-02  Mike Kestner  <mkestner@novell.com>
3639
3640         * ListView.cs: rework the mouse event forwarding everaldo added
3641         to translate the coordinates to the parent control not
3642         raise the parent events until after we've done our work. Hover
3643         needs more work, in the case where HoverSelection is on, because
3644         the item control receives more than one MouseHover per Enter
3645         event, so we need to ensure only the "first" hover gets forwarded.
3646         Opening a minor bug for that.
3647
3648 2007-01-02  Gert Driesen  <drieseng@users.sourceforge.net>
3649
3650         * CheckedListBox.cs: Fixed SelectionMode to match MS.
3651         * ListControl.cs: Implemented AllowSelection property. Removed extra
3652         tabs.
3653         * ListBox.cs: Implemented AllowSelection property.
3654
3655 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
3656
3657         * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
3658         SelectedItem, it prevent for errors when you must disable item
3659         before perform click. Fixes #80409.
3660
3661 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
3662
3663         * MenuAPI.cs: Prevent second level and beyond submenus to close
3664         until first level when move out side of popup.
3665         
3666 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
3667
3668         * MenuAPI.cs:
3669         - Down submenu positin in three pixels.
3670         - Closes sub menu when mouse leaves from menu. Fixes #80402.
3671
3672 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
3673
3674         * ThemeWin32Classic.cs:
3675         - Fix popup menu size adding one pixel on the top.
3676         - Down menu item border from two to one to mimic Win32.
3677         - Some source identation fixes. 
3678
3679 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
3680
3681         * ThemeWin32Classic.cs: Use float numbers to calculate size and
3682         position of menu arrows, it fix wrong arrow size.
3683
3684 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
3685
3686         * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
3687         instead of line, it simplify draw operation and fix it using 3D
3688         borders to mimic Win32.
3689
3690 2007-01-01  Jonathan Pobst  <monkey@jpobst.com>
3691
3692         * StatusStrip.cs: Add implementation of the sizing grip.
3693
3694         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
3695         StatusStrip rendering.
3696
3697 2006-12-31  Chris Toshok  <toshok@ximian.com>
3698
3699         * ToolBar.cs: don't assign to dock_style in the .ctor.  it doesn't
3700         override the layout style (anchor/dock) of the control.  assign to
3701         Dock instead.  Fixes bug #80416.
3702
3703         * ToolStrip.cs: same.
3704
3705 2006-12-31  Andreia Gaita  <avidigal@novell.com>
3706
3707         * ContainerControl.cs: Use ContainerSelected flag to check if 
3708         a Container is directly selected, or if Select is called on a 
3709         non-container. If a container is directly selected, focus events 
3710         should not be raised.
3711         Apply #80411 patch to throw exception on set_ActiveControl if 
3712         control is the same as the current one.
3713         
3714         * Control.cs: Use ContainerSelected flag (see above).
3715         Add invalidation check to raise event but not invalidate if 
3716         dimensions are 0.       
3717         Apply #80411 patch.
3718         
3719
3720 2006-12-31  Everaldo Canuto  <everaldo@simios.org>
3721
3722         * MenuAPI.cs: After click, dont close popup menu when menu is
3723         ContextMenu. Fixes #80399.
3724
3725 2006-12-30  Chris Toshok  <toshok@ximian.com>
3726
3727         * ContainerControl.cs: make sure we throw the exception if the
3728         container control doesn't contain the control we're setting
3729         ActiveControl to.
3730
3731 2006-12-30  Chris Toshok  <toshok@ximian.com>
3732
3733         * Control.cs (SetTopLevel): fix the exception raised by
3734         SetTopLevel for child controls.
3735         (set_Anchor): call UpdateDistances when setting the anchor type.
3736         This fixes bug #80336.
3737
3738 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
3739
3740         * Theme.cs: For now, revert back to 8pt font.
3741
3742 2006-12-29  Everaldo Canuto  <everaldo@simios.org>
3743
3744         * MenuAPI.cs: Set popup as active when open a ContextMenu. 
3745         Fixes #80395.
3746
3747 2006-12-29  Chris Toshok  <toshok@ximian.com>
3748
3749         * Control.cs: reorder the code in OnResize to give the same event
3750         ordering as MS.
3751
3752 2006-12-29  Rolf Bjarne Kvinge  <RKvinge@novell.com>
3753
3754         * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
3755         TileHorizontally and TileVertically.
3756         
3757 2006-12-29  Alexander Olk  <alex.olk@googlemail.com>
3758
3759         * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
3760         FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
3761         SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
3762         Corrected copyright and email adress.
3763
3764 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
3765
3766         * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
3767         of Exception in FullPath property if no TreeView is associated with
3768         the TreeNode.
3769
3770 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
3771
3772         * Theme.cs: Marked default_font as private, and initialize it in ctor
3773         with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
3774         on 2.0 profile.
3775         * ThemeGtk.cs: Removed default_font intialization.
3776         * ThemeWin32Classic.cs: Removed default_font initialization.
3777
3778 2006-12-28  Chris Toshok  <toshok@ximian.com>
3779
3780         * Control.cs: fix a couple of place where we were creating handles
3781         more aggressively than we should be.  Fixes ControlRefresh unit
3782         tests.
3783
3784 2006-12-28  Chris Toshok  <toshok@ximian.com>
3785
3786         * Control.cs: contrary to what the comment said, Control.Dock does
3787         not supercede Control.Anchor - the last one you assign to decides
3788         the layout behavior.  so we need to keep track of which was the
3789         last set.  Also, fix some of the affected property arguments in
3790         PerformLayout calls, and remove an redundant parent.PerformLayout
3791         call in OnResized.
3792
3793         Add a VisibleInternal property, which returns is_visible.  We
3794         can/should get rid of all the usage of this field elsewhere.
3795
3796 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
3797         
3798         * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
3799         control style, not DoubleBuffer. Added UseDoubleBuffering property
3800         that indicates whether doublebuffering is enabled and supported.
3801         (comment from and code based on Gert Driesen's patch in #80324).
3802         Fixes #80324.
3803
3804 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
3805         
3806         * Control.cs: Fixed a NRE.
3807
3808 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
3809
3810         * TrackBar.cs: Fix SmallChange and LargeChange exceptions
3811         for 2.0.
3812
3813 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
3814
3815         * Control.cs: Rewrote double buffering, now a seperate
3816         class handles all the buffering, no Graphics is disposed of
3817         until the painting is finished (earlier implementation 
3818         would crash if the control was resized in the OnPaint, 
3819         since it would cause the double buffer to be recreated
3820         and the old one disposed), a separate Graphics is 
3821         created for every paint (MS behaviour and anyways the state
3822         of the Graphics would have to be saved and restored otherwise)
3823         
3824         * XplatUIDriver.cs: 
3825         * XplatUIX11.cs:
3826         * XplatUI.cs: Added and implemented GetOffscreenGraphics 
3827         so that we can get the graphics for the back buffer without
3828         having to create a new one and remove the offscreen_dc parameter
3829         from CreateOffscreenDrawable and DestroyOffscreenDrawable.
3830         
3831 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3832
3833         * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
3834         Also make virtual all the key-related methods.
3835
3836         * ListViewItem.cs: Make virtual the key related methods for
3837         ListViewSubItemCollection.
3838
3839 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3840
3841         * ListView.cs:
3842         * ListViewItem.cs:
3843         * ThemeWin32Classic.cs:
3844         * Theme.cs: Initial support for Tile view in ListView,
3845         as well as the implementation of the required bits for it (Item
3846         and Subitem).
3847
3848 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
3849
3850         * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
3851         of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
3852         Provide useful exception messages.
3853
3854 2006-12-27  Rolf Bjarne Kvinge  <RKvinge@novell.com>
3855
3856         * TrackBar.cs: Remove a warning.
3857         * MonthCalendar.cs: Moved back to using Capture to hide the calendar
3858         when used by DateTimePicker, fixes #80287. This also requires that 
3859         MonthCalendar implements it's own drawing for the yearly updown control,
3860         otherwise the Capture tracking would be too complicated. Removed the Click 
3861         and DoubleClick events (according to comments they were hiding the base class
3862         event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
3863         raise these events, not that they cannot be raised. It is possible to raise 
3864         them by calling OnClick and OnDoubleClick). Added two internal fields in 
3865         HitTestInfo in order to track give more tracking info needed by MonthCalendar.
3866         * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
3867         * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
3868         event, no longer needed.
3869         
3870 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
3871
3872         * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
3873         true if new value differs from current value.
3874
3875 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
3876
3877         * Control.cs: ControlCollection.Count must be public. Fixed build of
3878         unit tests.
3879
3880 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
3881
3882         * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
3883
3884 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
3885
3886         * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
3887
3888 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
3889
3890         * Control.cs: Invalidates control including when Width and Height is 
3891         equal zero or is not visible, only Paint event must be care about 
3892         this. Fixes #79913.
3893
3894 2006-12-26  Chris Toshok  <toshok@ximian.com>
3895
3896         * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
3897         more corcompare work.
3898
3899         * DataGridView.cs: fix compiler warning.
3900
3901         * ColumnHeader.cs: some corcompare work, and also take the
3902         opportunity to make the internal fields private.
3903
3904         * ListView.cs: fix the fallout from the above field change.
3905
3906 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
3907
3908         * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
3909         ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
3910         ToolStripTextBox.cs: Fixes to events and corcompare.
3911
3912 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
3913
3914         * ListView.cs: Call owner.OnMousexx event to propagate events from
3915         item to ListView. Fixes #80367.
3916
3917 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
3918
3919         * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
3920         if value is less than one. ItemHeight should not be set to a value
3921         less than 1, and throw ArgumentOutOfRangeException on 2.0 profile. 
3922         Removed extra tabs.
3923
3924 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
3925
3926         * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
3927         * ToolStripStatusLabel.cs: Add Spring for Moma.
3928
3929 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
3930
3931         * DataGridView.cs: Fixed several NullReferenceException in On* methods.
3932         Fixed code formatting. Removed debug code.
3933         * DataGridViewTextBoxEditingControl.cs: Removed debug code.
3934
3935 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
3936
3937         * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
3938         RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
3939         ArgumentOutOfRangeException if ColumnCount is negative. In 
3940         ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
3941         less than 4 or higher than 32768.
3942         * DataGridViewCellStyle.cs: Fixed default value for NullValue.
3943         Fixed FormatProvider to return CurrentCulture unless explicitly set.
3944         Fixed IsFormatProviderDefault to return true if FormatProvider has
3945         not been explicitly set.
3946
3947 2006-12-25  Chris Toshok  <toshok@ximian.com>
3948
3949         * Application.cs: add a couple of 2.0 events.
3950
3951 2006-12-25  Chris Toshok  <toshok@ximian.com>
3952
3953         * Control.cs: fix compiler warning.
3954
3955         * AxHost.cs: corcompare fixes.
3956
3957         * ApplicationContext.cs: corcompare fixes.
3958
3959 2006-12-25  Chris Toshok  <toshok@ximian.com>
3960
3961         * Control.cs: only update dist_right/dist_bottom if the
3962         width/height is > 0.  this fixes anchored controls being resized
3963         smaller until they disappear and then resized larger again.
3964
3965 2006-12-25  Chris Toshok  <toshok@ximian.com>
3966
3967         * Control.cs: a couple of changes.  Remove dist_left and dist_top,
3968         since they're nothing more than X/Left and Y/Top, respectively.
3969
3970         Also, move back to a per-control Bitmap/Graphics for
3971         DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
3972         MT case.  Go with a tiny bitmap though, 1x1, instead of Width x
3973         Height.
3974
3975 2006-12-25  Miguel de Icaza  <miguel@novell.com>
3976
3977         * MessageBox.cs: Implemented overload that takes a new "bool
3978         displayHelpButton" by adding a new internal field "show_help".
3979         When clicked this will raise the HelpRequested on the owner or the
3980         main form. 
3981
3982         From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
3983         From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
3984
3985         * ListView.cs: Add support ColumnWidthChanged and
3986         ColumnWidthChanging. 
3987
3988         Add support for ColumnReordered event.
3989         (ReorderColumn): Add NET_2_0 specific support for cancelling the
3990         reorder.
3991
3992         Very nice codebase!
3993
3994         * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
3995
3996         This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
3997
3998 2006-12-24  Chris Toshok  <toshok@ximian.com>
3999
4000         * GridTablesFactory.cs: 2.0 corcompare work.
4001
4002         * ToolStripContainer.cs: add "override" to
4003         ContextMenuStripChanged, and remove the local event object.
4004
4005         * ToolStripDropDown.cs: same with a couple properties.
4006
4007         * ToolStripPanel.cs: same with AutoSizeChanged event.
4008
4009         * TextBoxBase.cs: add "override" to AutoSizeChanged.
4010
4011         * Form.cs: add the remaining 2.0 events, and do some corcompare
4012         attribute work.
4013
4014         * DateTimePicker.cs: add "new" to padding.
4015
4016         * ButtonBase.cs: use Control's use_compatible_text_rendering.
4017
4018         * ToolStripContentPanel.cs: use base.AutoSizeChanged.
4019
4020         * DataGridView.cs: PaddingChanged is overridden.
4021
4022 2006-12-24  Chris Toshok  <toshok@ximian.com>
4023
4024         * Control.cs: corecompare work here too.
4025
4026         * DataGridViewElement.cs, DataGridView.cs,
4027         DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
4028         DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
4029         DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
4030         DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
4031         work.
4032
4033 2006-12-24  Miguel de Icaza  <miguel@novell.com>
4034
4035         * Control.cs: Switched the error message on the console for a
4036         todo.  A review of the code will have to cope with this anyways
4037         (since its a large feature, it is in our radar) and it was
4038         producing too much output when running PDN.
4039
4040         * ToolStripComboBox.cs: Set the text when the SelectedIndex
4041         changes.  Applications depend on this (PDN 2.72)
4042
4043 2006-12-23  Chris Toshok  <toshok@ximian.com>
4044
4045         * TableLayoutSettings.cs: finish up the corcompare work for this
4046         class.
4047
4048 2006-12-23  Chris Toshok  <toshok@ximian.com>
4049
4050         * Control.cs: make SetImplicitBounds internal, do some futzing
4051         with LayoutEngine so that it's available in 1.1, and remove the
4052         entire duplicated code mess from PerformLayout.  Use
4053         System.Windows.Forms.Layout.DefaultLayout instead.
4054
4055         * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
4056
4057 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
4058
4059         * Form.cs: Add MainMenuStrip property.
4060
4061 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
4062
4063         * Control.cs: Add ContextMenuStrip property and implementation.
4064         Fix ContextMenu implementation to show menu centered on control when
4065         activated using the keyboard instead of showing at screen (0,0).
4066
4067         * ToolStripDropDown.cs: Fix needed overload of Show ().
4068
4069 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
4070
4071         * Menu.cs: Name property added for 2.0 profile.
4072         
4073 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
4074
4075         * Menu.cs: Update information about FindMenuItem, method to be
4076         implemented soon.
4077
4078 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
4079
4080         * MenuAPI.cs: When deselect items deselect also selected subitems.
4081         
4082 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
4083
4084         * MenuAPI.cs: When hides menu set Wnd to null, it prevents
4085         FindSubItemByCoord to found itens that is not active, also an
4086         cheking added to FindSubItemByCoord to search for items only 
4087         in visible popup windows. Fixes #80274.
4088
4089 2006-12-22  Everaldo Canuto  <everaldo@simios.org>
4090
4091         * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
4092         internal property, it be care about change ExStyle. 
4093
4094 2006-12-22  Andreia Gaita  <avidigal@novell.com>
4095
4096         * ContainerControl.cs: set activeControl for parent forms up the 
4097         tree when the new activecontrol is a container.
4098         When validating the active control, if it is a container, also
4099         raise up the validation for it's active control. Fixes #80280
4100         
4101         * Control.cs: Add internal property flag and check to prevent
4102         Focus events from getting raised when Select() is called for
4103         a ContainerControl. There are still too many focus events being
4104         raised at the moment though.
4105         Cleaned up the code a bit.
4106
4107 2006-12-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4108
4109         * Control.cs: Added all missing 2.0 events.and
4110         fixed a couple of corcompare issues.
4111         * TrackBar.cs: Implemented missing 2.0 bits.
4112         * MonthCalendar.cs, 
4113         * DateTimePicker.cs, 
4114         * MdiClient.cs: Fixed some corcompare issues.
4115
4116 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
4117
4118         * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
4119         SplitterPanel.cs: corecompare work.
4120
4121 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
4122
4123         * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
4124         Clean up warnings for BackgroundImageChanged and PaddingChanged
4125         events now that they are implemented in Control.cs.
4126
4127 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
4128
4129         * Control.cs: Make sure layout_engine isn't null before using it (2.0).
4130         
4131         * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
4132         TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
4133         of TableLayoutPanel and supporting cast.
4134
4135 2006-12-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4136
4137         * XplatUIWin32.cs: 
4138         - GrabWindow now confines the mouse pointer to the confine window.
4139         - Added Win32ClipCursor and Win32GetClipCursor.
4140
4141         * Control.cs: 
4142         - Added CaptureWithConfine to be able to capture and confine 
4143         mouse pointer.
4144         
4145         * InternalWindowManager.cs: 
4146         - Call CaptureWithConfine instead of Capture if we're an
4147         MdiChild (fixes #79982).
4148
4149 2006-12-21  Chris Toshok  <toshok@ximian.com>
4150
4151         * DataGrid.cs: guard against the initial state of selection, where
4152         selection_start == -1.  make sure we only select from index >= 0.
4153         Fixes bug #80291.
4154
4155 2006-12-21  Chris Toshok  <toshok@ximian.com>
4156
4157         * Control.cs: we don't need to be so draconian with
4158         UpdateDistances, and we thusly don't need to call it before
4159         calling PerformLayout in ResumeLayout.  Fixes bug #80289.
4160
4161 2006-12-21  Daniel Nauck  <dna@mono-project.de>
4162
4163         * ComboBox.cs,
4164         TextBox.cs: Implemented AutoComplete properties.
4165
4166 2006-12-20  Chris Toshok  <toshok@ximian.com>
4167
4168         * DataGridView*.cs: some corecompare work.
4169
4170 2006-12-20  Jackson Harper  <jackson@ximian.com>
4171
4172         * XplatUIX11.cs: We need to hide the caret when deleting it,
4173         otherwise you get carets left lying around everywhere.
4174         * TextBoxBase.cs: Kill then redraw the caret when scrolling.  This
4175         prevents getting some weird half drawn caret tracers when
4176         scrolling.
4177         * TextControl.cs: Attempt to reduce the number of times we need to
4178         recreate the caret.
4179
4180 2006-12-20  Gert Driesen  <drieseng@users.sourceforge.net>
4181
4182         * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
4183
4184 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4185
4186         * DateTimePicker.cs:
4187         - Implemented missing 2.0 bits.
4188         - Changed some default values to match MS.
4189         
4190 2006-12-20  Jackson Harper  <jackson@ximian.com>
4191
4192         * TextBoxBase.cs: When changing the font across the document we
4193         can't recalculate after changing each line, since that will cahnge
4194         the line count.
4195         - PreferredHeight is a little different than i thought.
4196         - When backspacing, move the caret before we do the actual char
4197         delete, because when that delete crosses a wrap boundary the
4198         positional information will change.
4199
4200 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4201
4202         * Control.cs: Added some missing 2.0 bits: 
4203         BackgroundImageLayout, BackgroundImageLayoutChanged, 
4204         OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and 
4205         add IBindableComponent and IDropTarget implementation.
4206         
4207         * MonthCalendar.cs: 
4208         - Added all missing 2.0 features:
4209         BackgroundImageLayout, RightToLeftLayout, 
4210         OnHandleDestroyed, RightToLeftLayoutChanged, 
4211         BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
4212         PaddingChanged.
4213         - Rewrote all the BoldDate code, it was completely broken.
4214         - Fixed all the tests (the tests can now be re-enabled, the
4215         problems were not with the tests, but with the control, it was
4216         mostly broken).
4217         
4218         * DateTimePicker.cs: Changed the location where the 
4219         MonthCalendar is shown.
4220         
4221 2006-12-19  Chris Toshok  <toshok@ximian.com>
4222
4223         * DataGridView.cs: add IDropTarget implementation.
4224
4225         * ToolStripPanel.cs: add IDropTarget implementation.
4226
4227 2006-12-19  Jackson Harper  <jackson@ximian.com>
4228
4229         * TextControl.cs: soft now means something different than what it
4230         used to mean, we want to move the caret regardless of whether or
4231         not this break was soft (would we really have wanted the caret
4232         to not move with the break in the old context?)
4233         * TreeView.cs: Make sure we factor in the vert scrollbar when
4234         calculating the horizontal scrollbar's maximum.
4235
4236 2006-12-19  Andreia Gaita  <avidigal@novell.org>
4237
4238         * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
4239         check for keywords in alternate casing, close bug #80049.
4240
4241 2006-12-19  Chris Toshok  <toshok@ximian.com>
4242
4243         * ToolStripItem.cs: add the implementation of the 4 IDropTarget
4244         methods (which all do nothing).
4245
4246         * IDropTarget.cs: add the 4 missing methods.
4247
4248 2006-12-19  Chris Toshok  <toshok@ximian.com>
4249
4250         * TableLayoutRowStyleCollection.cs: corcompare work.
4251         
4252         * TableLayoutSettings.cs: same.
4253
4254         * TableLayoutStyle.cs: same.
4255
4256         * TableLayoutColumnStyleCollection.cs: same.
4257
4258 2006-12-19  Jonathan Pobst  <monkey@jpobst.com>
4259
4260         * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
4261         TableLayoutPanel I've had in my local tree for way too long.
4262
4263 2006-12-19  Miguel de Icaza  <miguel@novell.com>
4264
4265         * TableLayoutSettings.cs: Finish the public API (still needs all
4266         the logic to update on changes). 
4267
4268         * TableLayoutPanelCellPosition.cs: new file.
4269         
4270         * TableLayoutRowStyleCollection.cs,
4271         TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
4272         TableLayoutSettings.cs: Track the final 2.0 table api.
4273
4274 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4275
4276         * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
4277         and Image List 2.0 members for ColummnHeader.
4278         * ListView.cs: Add key-related 2.0 methods for
4279         ColumnHeaderCollection.
4280
4281 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
4282
4283         * ListViewItem.cs: Changed AddRange overloads to match MS: throw
4284         ArgumentNullException if items argument is null. Ignore null item in
4285         arrays. Removed extra tabs.
4286
4287 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
4288
4289         * MonthCalendar.cs: Fixed InvalidCastException.
4290
4291 2006-12-19  Jackson Harper  <jackson@ximian.com>
4292
4293         * TextControl.cs: Don't increment the position here.
4294         - When calculating char positions only add in the line break size
4295         for hard line breaks.
4296
4297 2006-12-19  Andreia Gaita  <avidigal@novell.org>
4298
4299         * SendKeys.cs: Changed some things to match ms.net behaviour
4300         when parsing shifted capital letters.
4301         
4302         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX: 
4303         Add window handle as parameter to SendInput. X11 needs the 
4304         window handle, and the handle being passed      to it in the keys 
4305         queue is the active control handle (which windows needs), not 
4306         the window handle.
4307         
4308         XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput 
4309         to support SendKeys on X.       
4310         
4311         * X11Keyboard: Implement helper method to lookup a linux keycode
4312         given the virtual keycode. Added table of keycode-2-virtualkey
4313         values to support this.
4314
4315 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4316
4317         * ListView.cs: Add support for SelectedIndexCollection
4318         and SelectedItemCollection 2.0 methods. Implement support
4319         for ImageKey too.
4320         * ListViewItem.cs: Add support for ListViewSubItemCollection
4321         2.0 methods. Also, fix an incorrect behavior of AddRange method
4322         (it shouldn't call Clear).
4323         * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
4324
4325 2006-12-19  Jackson Harper  <jackson@ximian.com>
4326
4327         * RichTextBox.cs: 
4328         * TextBoxBase.cs: New args for FormatText
4329         * TextControl.cs: Rewrote the main drawing method, this version
4330         feels a little easier to understand and debug to me.  Hopefully it
4331         does to others also
4332         - Fix FormatText to OR in the new formating values.  Added
4333         FormatSpecified param, basically this works in the same way as
4334         BoundsSpecified in Control.
4335         - Set the caret properties when the caret is positioned.
4336         - When wrapping text make sure that we calculate the width of the
4337         last character
4338         - when calculating alignments we might have wrapped down to the
4339         next line, so don't search for an individual tag, search for the
4340         end of the line
4341         - We need to invalidate the selection area when we replace the
4342         selection.
4343         
4344 2006-12-19  Daniel Nauck  <dna@mono-project.de>
4345
4346         * Application.cs: add Restart () 2.0 support
4347
4348 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
4349
4350         * MenuItem.cs: Invalidate menu item rectangle after change Enable
4351         property. Fixes #80268.
4352         
4353 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
4354
4355         * MenuAPI.cs: Dont trigger select event when closes top menu
4356         item. Fixes #80270.
4357
4358 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
4359
4360         * MenuAPI.cs: When you click on menuitem only trigger onselect
4361         event for top menu itens. Fixes #80271.
4362         
4363 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4364
4365         * MdiWindowManager.cs: Make IconicBounds depend on
4366         the bottom of MdiClient, not the top (fixes #80267)
4367         
4368 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4369
4370         * MdiClient.cs: Added missing 2.0 attribute
4371
4372 2006-12-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4373
4374         * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
4375         as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
4376
4377 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
4378
4379         * MenuAPI.cs: Fix click when menuitem is not popup,
4380         this regression was caused by last commit (#80272).
4381
4382 2006-12-17  Everaldo Canuto  <everaldo@simios.org>
4383
4384         * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
4385         fire click event or close menu. Fixes #80272.
4386
4387 2006-12-17  Daniel Nauck  <dna@mono-project.de>
4388
4389         * ListViewHitTestInfo.cs: add
4390
4391 2006-12-17  Daniel Nauck  <dna@mono-project.de>
4392
4393         * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
4394         * FlatButtonAppearance.cs: add
4395         * DockingAttribute.cs: add
4396
4397 2006-12-17  Chris Toshok  <toshok@ximian.com>
4398
4399         * DataGrid.cs: hook up MetaDataChanged event on the list manager,
4400         and rebind our columns when it does - this way, if you make
4401         changes to the DataTable (or set the Table attribute on a DataView
4402         after setting it as the DataGrid's DataSource, the changes are
4403         made visible.)  Fixes bug #80107.
4404
4405 2006-12-17  Daniel Nauck  <dna@mono-project.de>
4406
4407         * ListViewGroup.cs: add internal Location property for layouting.
4408         * Theme.cs: add abstract ListViewGroupHeight function.
4409         * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
4410
4411 2006-12-16  Andreia Gaita  <avidigal@novell.com>
4412
4413         * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
4414         Added reset of selected index to 0 when adding first tab page.
4415         Fixes #80264
4416         
4417         * NumericUpDown.cs: Fix NET_2_0 check
4418
4419 2006-12-16  Daniel Nauck  <dna@mono-project.de>
4420
4421         * ListViewGroup.cs: fixed DefaultValueAttribute value
4422
4423 2006-12-16  Daniel Nauck  <dna@mono-project.de>
4424
4425         * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
4426
4427 2006-12-15  Miguel de Icaza  <miguel@novell.com>
4428
4429         * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
4430         TextBoxBase.cs, ListView.cs, ContainerControl.cs,
4431         ScrollableControl.cs: Add a handful of methods that are
4432         overwritten in 2.0 
4433
4434 2006-12-15  Chris Toshok  <toshok@ximian.com>
4435
4436         * XplatUIWin32.cs: initial implementation of the Reversible
4437         drawing functions.  there are some problems.  DrawReversibleFrame
4438         doesn't seem to work at all for Dashed FrameStyle, and in the
4439         Thick case there are drawing errors at the corners (we probably
4440         need to bind Rectangle instead of doing moveto/lineto's.)
4441
4442 2006-12-16  Andreia Gaita  <avidigal@novell.com>
4443         
4444         * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput, 
4445         to send blocks of key messages. Send accumulates keys to send with Flush, 
4446         while SendWait sends all keys immediately.
4447                 
4448         * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, 
4449         XplatUIX11.cs,  XplatUIX11-new.cs:
4450         - Define SendInput and stubs for OSX and X11, implements Win32 with a call
4451         to Win32 SendInput.
4452         - Added INPUT support structures to XplatUIWin32 for Win32SendInput
4453         
4454         Tests:  It seems ms.net is hooking the keyboard to implement this, so doing unit
4455         testing for ms.net on this class is very tricky, as the tests run too fast 
4456         to allow the hook to release, essentially freezing the keyboard and the 
4457         test. So, barring a win32 miracle, they'll be commited in the ms-notworking     
4458         category :p
4459
4460 2006-12-16  Daniel Nauck  <dna@mono-project.de>
4461
4462         * Padding.cs: fixed serialization compability to MS ("_var" field names),
4463                         added missing attributes.
4464  
4465 2006-12-15  Daniel Nauck  <dna@mono-project.de>
4466
4467         * ListViewGroup.cs: Added missing attributes.
4468         * ListViewGroupCollection.cs: Added missing attributes.
4469
4470 2006-12-15  Daniel Nauck  <dna@mono-project.de>
4471
4472         * ListViewItem.cs: fixed ListViewSubItem text property.
4473
4474 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4475         
4476         * Control.cs: Added missing 2.0 attributes
4477         
4478 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4479         
4480         * MdiClient.cs: Added missing 2.0 attribute.
4481         * MonthCalendar.cs: Added some missing 2.0 attributes 
4482         and properties.
4483         
4484 2006-12-15  Daniel Nauck  <dna@mono-project.de>
4485
4486         * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
4487
4488 2006-12-15  Jonathan Pobst  <monkey@jpobst.com>
4489
4490         * MainMenu.cs: Add the new 2.0 constructor to help out people
4491         using the MainMenu in VS2005.
4492
4493 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4494         
4495         * MdiChildContext.cs: Removed it, no longer used.
4496         * MdiClient.cs: Added missing 2.0 attributes.
4497         
4498 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4499         
4500         * InternalWindowManager.cs: Fix a NullRef with previous 
4501         changes for toolwindows.
4502         
4503 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4504
4505         * Control.cs: 
4506         - Added AfterTopMostControl to allow for certain controls 
4507         to always stay on top when normal controls are brought to 
4508         front.
4509         
4510         * XplatUIWin32.cs: 
4511         - (DrawInversibleRectangle): Get window rectangle from Win32 
4512         in stead of from control, since Win32 doesn't calculate
4513         screen coords correctly from control's Location if it 
4514         have docked siblings.
4515         
4516         * MdiWindowManager.cs:
4517         - Correct the control menu popup location when clicked on
4518         the maximized form icon. (fixes #80223.1)
4519         - Don't show moving rectangle if mouse hasn't moved from
4520         the original clicked point.
4521         - Removed FormGotFocus handler (not used).
4522         - Calculate the control buttons location from the main
4523         window's size and not client size (fixes #79770).
4524         - Form is now closed when the form icon is double-clicked
4525         (fixes #79775). 
4526         - Correct NCCalcSize numbers a little bit (fixes #80223.2)
4527         
4528         * InternalWindowManager.cs:
4529         - Moved some MDI-only methods to MdiWindowManager.
4530         - Removed unused properties and methods.
4531         - Unified method naming for methods handling wm messages.
4532         - Moved all message handling to seperate methods for
4533         each message.
4534         
4535         * ThemeWin32Classic.cs:
4536         - DrawManagedWindowDecorations now draws the title bar 
4537         with a gradient brush.
4538         - Add a CPDrawButtonInternal that allows us to specify
4539         light, normal and dark colors for the buttons (control 
4540         buttons for MDI children were drawn with the same light
4541         color as the background, therefore loosing the 3D effect).
4542         
4543         * SizeGrip.cs:
4544         - Add a CapturedControl property that is used to 
4545         determine the control to resize (defaults to parent). 
4546         Needed for MdiClient, since its SizeGrip's parent is
4547         MdiClient, but the control to resize is the main form.
4548         
4549         * MdiClient.cs:
4550         - Set SizeGrip's CapturedControl to the main form in order
4551         to resize the main form and not the MdiClient.
4552         - Override AfterTopMostControl to leave the scrollbars 
4553         always on top.
4554
4555 2006-12-15  Daniel Nauck  <dna@mono-project.de>
4556
4557         * ListView.cs: fixed ListViewItemCollection AddRange and
4558                         implemented ListViewItemCollection AddRange 2.0 support.
4559
4560 2006-12-15  Daniel Nauck  <dna@mono-project.de>
4561
4562         * ListViewGroup.cs: Add.
4563         * ListViewGroupCollection.cs: Add
4564         * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
4565         * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
4566                                 stub for ImageKey 2.0 support.
4567
4568 2006-12-14  Mike Kestner  <mkestner@novell.com>
4569
4570         * ListView.cs: add text padding to the autocalculation for columns
4571         of width -2.  Fixes #80207.
4572  
4573 2006-12-14  Mike Kestner  <mkestner@novell.com>
4574
4575         * ListView.cs: add some index guarding for partial row navigation 
4576         logic.  Fixes #80250.
4577
4578 2006-12-14  Mike Kestner  <mkestner@novell.com>
4579
4580         * ListView.cs: throw ArgumentExceptions when parented ListViewItems
4581         are added or inserted to the collection.  Fixes #81099.
4582
4583 2006-12-13  Everaldo Canuto  <everaldo@simios.org>
4584
4585         * MenuAPI.cs: Closes menu when right click out side of popup
4586         it fix problem in ContextMenu and MainMenu. Fixes #80252.
4587
4588 2006-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4589
4590         * ListViewItem.cs: Fix dumb error.
4591
4592         * ListView.cs: Add Find and ContainsKey methods in 
4593         ListViewItemCollection, and also return true for IsReadOnly
4594         and IsFixedSize (changes for 2.0). 
4595
4596 2006-12-13  Gert Driesen  <drieseng@users.sourceforge.net>
4597
4598         * Control.cs: Allow Region to be set to null.
4599
4600 2006-12-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4601
4602         * MdiWindowManager.cs: Remove unused (commented out) code.
4603         * Form.cs: When the MdiChild is maximized, the form needs 
4604         WM_NCMOUSELEAVE, so request it.
4605         * InternalWindowManager.cs: 
4606         - Added tooltips to control buttons.
4607         - Removed duplicated control button handling code.
4608         - Removed unused (commented out) code.
4609         
4610 2006-12-12  Everaldo Canuto  <everaldo@simios.org>
4611
4612         * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor 
4613         was used because we must set cursor without trigger ChangeCursor event
4614         and without change Cursor control property. Fixes #79963.
4615
4616 2006-12-12  Andreia Gaita  <avidigal@novell.com>
4617         
4618         * Control.cs: Check if Region setter value is null, and ignore
4619
4620 2006-12-12  Jackson Harper  <jackson@ximian.com>
4621
4622         * TextControl.cs: We were almost always drawing one more line then
4623         needed, since the GetLineByPixel will return the last line found
4624         at that pixel. In most cases though, we were invalidating up to
4625         the junction between two lines.
4626         - Improve debug code.
4627
4628 2006-12-12  Chris Toshok  <toshok@ximian.com>
4629
4630         * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
4631         and FillReversibleRectangle.
4632
4633         * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
4634         and FillReversibleRectangle.
4635
4636         * XplatUIWin32.cs: add stubs which do nothing for
4637         DrawReversibleFrame, DrawReversibleLine, and
4638         FillReversibleRectangle.
4639
4640         * XplatUIOSX.cs: add stubs which raise NIE for
4641         DrawReversibleFrame, DrawReversibleLine, and
4642         FillReversibleRectangle.
4643
4644         * XplatUIX11.cs: add working implementation for
4645         DrawReversibleFrame, DrawReversibleLine, and
4646         FillReversibleRectangle.
4647         
4648         * ControlPaint.cs: implement DrawReversibleFrame,
4649         DrawReversibleLine, and FillReversibleRectangle, by calling into
4650         the appropriate XplatUI method.
4651
4652 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4653
4654         * Form.cs: Make MdiClient have the focus even if it's
4655         not selectable, since it should receive WM_KEY* and WM_MOUSE 
4656         messages. Fixes #79907.
4657         
4658 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4659
4660         * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
4661         queried after the window is created.
4662         
4663         * XplatUIX11.cs: Added SendParentNotify to implement 
4664         WM_PARENTNOTIFY logic. Fixes #79965.
4665         
4666         * Control.cs: Added MakeParam.
4667         
4668 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4669
4670         * MdiClient.cs: Resume Layout before setting window
4671         states (fixes #80201).
4672
4673 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4674
4675         * MenuAPI.cs: Deselect a menu item after performing
4676         the click (fixes #80197).
4677
4678 2006-12-11  Jackson Harper  <jackson@ximian.com>
4679
4680         * TextBoxBase.cs: We need to cap this value, since Maximum -
4681         ViewPortHeight can be less than zero.
4682         - Only do selection with the left mouse button.
4683         * TextBox.cs: Don't tell the world that we have a context menu.
4684         * Control.cs: New method so that we can control whether or not the
4685         context menu is visible outside MWF.
4686
4687 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
4688
4689         * ToolBarButton.cs: Fix text positon. 
4690
4691 2006-12-11  Miguel de Icaza  <miguel@novell.com>
4692
4693         * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
4694
4695         * Control.cs (DoubleBuffered): Add implementation.
4696
4697         * Application.cs (OpenForms): Add.
4698
4699 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
4700
4701         * Form.cs: Use opacity instead of Opactiy to determine if we need
4702         to set the WS_EX_LAYERED bit.  [Fixes bug #80185]
4703
4704 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
4705
4706         * Control.cs: Fix NRE if Control.Site was set to null.
4707
4708 2006-12-11  Chris Toshok  <toshok@ximian.com>
4709
4710         * Control.cs: ControlCollection.Remove should return if the arg is
4711         null, and ControlCollection.SetChildIndex should raise a ANE.
4712
4713 2006-12-11  Gert Driesen  <drieseng@users.sourceforge.net>
4714
4715         * Control.cs: Verify value set for Dock property. Code formatting
4716         updates.
4717
4718 2006-12-11  Jackson Harper  <jackson@ximian.com>
4719
4720         * TextControl.cs: Draw the caret and the selection when a flag is
4721         set on the owner.
4722         * TextBoxBase.cs: We want to draw the caret and the selection for
4723         TextBox but not for TextBoxBase.
4724         - If the window is resized and scrolling is no longer needed (the
4725         whole doc is visible) set the scroll position to zero.
4726         - The default SelectWord (the one TextBox uses) should move the
4727         caret to the end of the word.
4728         - SelectAll moves the caret to the end of the selection.
4729         * TextBox.cs: We don't selectall on focus, we just do it when the
4730         control is created.
4731         
4732 2006-12-11  Mike Kestner  <mkestner@novell.com>
4733
4734         * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
4735
4736 2006-12-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4737
4738         * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer 
4739         2.0 support.
4740         * ListViewItem.cs: Add Name 2.0 property.
4741
4742 2006-12-11  Andreia Gaita  <avidigal@novell.com>
4743
4744         * TabControl.cs: Set visibility on selected or default tab 
4745         when tabcontrol handle is created, so that it's contents
4746         actually show up (duh). Fixes #80193
4747         Don't redraw the control if there is no handle created, as
4748         the selected index might be completely invalid. Added some tests
4749         to check for this.
4750
4751 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
4752
4753         * ToolBar.cs: Uses maximun width and height of all buttons as 
4754         button rectangle when ButtonSize specified, it looks strange but
4755         is what happens in Win32. Fixes #80189.
4756
4757 2006-12-11  Jackson Harper  <jackson@ximian.com>
4758
4759         * TextControl.cs: Need to track undo levels ourself, since
4760         compound actions will mess them up.
4761
4762 2006-12-10  Andreia Gaita  <avidigal@novell.com>
4763
4764         * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
4765         SelectedIndex value is changed (even if it's not valid).
4766         Reset SelectedIndex to 0 when the handle is created and if
4767         the current index is invalid.
4768         Fixes SelectdeIndex unit tests and #80128
4769
4770 2006-12-08  Chris Toshok  <toshok@ximian.com>
4771
4772         * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
4773         calls EndEdit, it needs to be called before we set current_cell to
4774         its new value.  Otherwise, we end up committing the value in the
4775         textbox to the new cell as well.  Fixes bug #80160.
4776
4777 2006-12-08  Chris Toshok  <toshok@ximian.com>
4778
4779         * Form.cs (set_CancelButton): if the button's DialogResult is
4780         None, set it to Cancel.  Fixes bug 80180.
4781
4782 2006-12-08  Jackson Harper  <jackson@ximian.com>
4783
4784         * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
4785         to watch ourselves when setting the canvas size and setting the
4786         scrollbar values.
4787
4788 2006-12-08  Chris Toshok  <toshok@ximian.com>
4789
4790         * DataGrid.cs: comment out the two MakeTransparent calls for the
4791         time being so people using trunk (and not 1.2.2) on windows can
4792         actually use the datagrid.  This deals with bug #80151.
4793
4794 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
4795
4796         * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
4797         Graphics.DrawImage (image, int, int, int, int) overload instead
4798         of Graphics.DrawImage (image, int, int).  GDI+ can't figure out
4799         the dpi difference and was blurring images it drew.
4800         [Fixes bug #79960]
4801
4802 2006-12-08  Chris Toshok  <toshok@ximian.com>
4803
4804         * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
4805         rowcnt is 0 (such as with an empty datasource), and make sure we
4806         initialize not_usedarea.Y to cells.Y, so we don't draw over the
4807         other areas (caption, parent row, etc, etc).  Fixes bug #80095.
4808
4809 2006-12-08  Chris Toshok  <toshok@ximian.com>
4810
4811         * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
4812         grid.
4813
4814 2006-12-08  Chris Toshok  <toshok@ximian.com>
4815
4816         [ Fixes bug #80167 ]
4817         
4818         * ThemeWin32Classic.cs: don't draw the image if the button's flat
4819         style is FlatStyle.System.
4820
4821         * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
4822         ButtonBase.flat_style private, and switch uses of it to the public
4823         property.
4824         
4825 2006-12-08  Chris Toshok  <toshok@ximian.com>
4826
4827         [ Fixes bug #80121 ]
4828         
4829         * ThemeWin32Classic.cs: center the caption text in the datagrid
4830         when we draw it.
4831
4832         * DataGrid.cs: lessen the amount we add to the caption height from
4833         6 to 2.  6 was making it huge.
4834
4835 2006-12-08  Andreia Gaita  <avidigal@novell.com>
4836
4837         * UpDownBase: Handle MouseWheel call directly instead of capturing
4838         the inner textbox's OnMouseWheel. Fixes #80166
4839
4840 2006-12-08  Jackson Harper  <jackson@ximian.com>
4841
4842         * TextControl.cs: We need to invalidate the textbox when we empty
4843         it (how had this not been discovered before?)
4844
4845 2006-12-08  Jackson Harper  <jackson@ximian.com>
4846
4847         * TextBoxBase.cs: Reworked the mouse down code so I could get it
4848         to behave like MS, we now ignore the eventargs.Click and just
4849         track state ourself, which we were already doing anyways.
4850         - Constrain the double click handler to the double click size.
4851         
4852 2006-12-08  Chris Toshok  <toshok@ximian.com>
4853
4854         * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
4855         direction if that scrollbar isn't shown.  fixes bug #80158.
4856
4857 2006-12-08  Andreia Gaita  <avidigal@novell.com>
4858
4859         * NumericUpDown.cs: Update value on getter. Fixes #79950
4860
4861 2006-12-08  Chris Toshok  <toshok@ximian.com>
4862
4863         * MenuItem.cs: add back in the event cloning code.  I didn't know
4864         how to do it in the face of the EventHandlerList work i'd done
4865         last week.  Fixes bug #80183.
4866
4867 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
4868
4869         * Control.cs: Add an invalidate to the BackgroundImage setter.
4870         [Fixes 80184]
4871
4872 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
4873
4874         * ToolStrip*: Add some small properties reported by MoMA, fix event
4875         firing and default properties based off of unit tests, and add some
4876         attributes based off of the class status page.
4877
4878 2006-12-07  Jackson Harper  <jackson@ximian.com>
4879
4880         * TextBoxBase.cs: Take HideSelection into account when determining
4881         whether or not to show the selection.
4882         * RichTextBox.cs: After inserting the RTF into the document move
4883         the cursor to the beginning of the document.
4884
4885 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
4886
4887         * Control.cs: Remove static ArrayList "controls" which maintained
4888         a reference to every control created.
4889         * Application.cs: Create a static FormCollection to maintain a reference
4890         to every form created.  Use it in places that formerly enumerated through
4891         the controls one looking for forms.
4892         * Form.cs: Add and remove self from above FormCollection.
4893
4894 2006-12-07  Alexander Olk  <alex.olk@googlemail.com>
4895
4896         * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
4897           not libgdk (though it makes me wonder why I didn't have any
4898           problems)
4899
4900 2006-12-07  Chris Toshok  <toshok@ximian.com>
4901
4902         [ you had to know this was coming after that last commit...]
4903         
4904         * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
4905         XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
4906         DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
4907         XCopyArea).
4908
4909 2006-12-07  Chris Toshok  <toshok@ximian.com>
4910
4911         * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
4912         DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
4913         all the behavior we need for double buffering.
4914
4915         * XplatUIDriver.cs: implement the 3 double buffer methods using a
4916         client side Bitmap, just like the old Control-based double buffer
4917         code did.  The methods are virtual, so each XplatUI driver
4918         subclass can replace the implementation to use a faster, platform
4919         specific approach.
4920
4921         * Control.cs: make use of the 3 Offscreen XplatUI calls in the
4922         double buffer code, and clean things up a bit in the process.
4923
4924 2006-12-06  Chris Toshok  <toshok@ximian.com>
4925
4926         * Control.cs: reindent WndProc.
4927
4928 2006-12-06  Chris Toshok  <toshok@ximian.com>
4929
4930         [ I wanna be like BenM when I grow up ]
4931         
4932         * Hwnd.cs: create a single static Graphics object on the static
4933         Bitmap we create.  use this for our text measurements.
4934
4935         * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
4936         This was causing us to allocate a backbuffer for every control,
4937         even when it wasn't flagged as double buffered.  Instead use the
4938         single graphics instance.  This might have implications for
4939         multithreaded applications.  If we run into problems we can switch
4940         to creating 1 Graphics per control, on the static Hwnd bitmap.
4941
4942         this change nets us a 7M savings in private dirty mappings when
4943         running FormsTest.exe.
4944
4945 2006-12-06  Chris Toshok  <toshok@ximian.com>
4946
4947         * ListView.cs: the BackgroundImage override is just to set
4948         attributes.  chain up to base.BackgroundImage.
4949
4950         * RichTextBox.cs: same.
4951
4952         * ToolBar.cs: same, but we need to also redraw the toolbar when it
4953         changes, so instead a handler for BackgroundImageChanged.
4954         
4955         * Control.cs: make background_image private.
4956
4957 2006-12-06  Chris Toshok  <toshok@ximian.com>
4958
4959         * ScrollBar.cs: change the assignment of cursor to Cursor.  not
4960         sure we even need this assignment, but roll with it for now.
4961
4962         * Control.cs: make the cursor field private.
4963
4964 2006-12-06  Chris Toshok  <toshok@ximian.com>
4965
4966         * Form.cs: we don't need to explicitly set ImeMode to
4967         ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
4968         behavior in the face of ImeMode.Inherit.
4969
4970         * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
4971         change the ctor's assignment to use ImeMode instead of ime_mode.
4972
4973         * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
4974         ImeModeInherit.  Only check for the parent's imemode (and return
4975         NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
4976         This fixes the button unit test, which sets both ImeMode and
4977         DefaultImeMode to ImeMode.Disable.
4978
4979         also make the ime_mode field private.
4980
4981 2006-12-06  Chris Toshok  <toshok@ximian.com>
4982
4983         * Control.cs: make control_style private.
4984
4985         * TextBoxBase.cs: fix the HandleClick override.  it was explicitly
4986         setting the styles to true, then setting them to false instead of
4987         reverting to their previous values.
4988
4989         also, call SetStyle on the scrollbars instead of using
4990         control_style directly.
4991
4992 2006-12-06  Jonathan Pobst  <monkey@jpobst.com>
4993
4994         * FormCollection.cs: Implement. [2.0]
4995
4996 2006-12-06  Chris Toshok  <toshok@ximian.com>
4997
4998         * Control.cs: make tab_stop private.
4999
5000         * Label.cs: set TabStop, not tab_stop.  reformat some event
5001         add/remove methods to make them more compact.
5002
5003 2006-12-06  Chris Toshok  <toshok@ximian.com>
5004
5005         * RadioButton.cs: fix TabStop handling.
5006
5007 2006-12-06  Chris Toshok  <toshok@ximian.com>
5008
5009         * TextBox.cs: remove the explicit assignments to has_focus.
5010         Control does that.
5011
5012         * ButtonBase.cs: remove the assignment to has_focus.  Control will
5013         manage that.
5014         
5015 2006-12-06  Chris Toshok  <toshok@ximian.com>
5016
5017         * ButtonBase.cs: remove all uses of is_enabled from this code.
5018         it's always true when any of the code containing the checks is
5019         executed.
5020
5021 2006-12-06  Chris Toshok  <toshok@ximian.com>
5022
5023         * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
5024         with different semantics (some are present in both 1.1 and 2.0
5025         profiles) so that we match MS's behavior in our unit tests.
5026
5027 2006-12-06  Jackson Harper  <jackson@ximian.com>
5028
5029         * TextControl.cs: Make this operation undoable.
5030         * TextBoxBase.cs: Factor the border width into the preferred
5031         height.
5032         - implement Modified as per the spec.
5033
5034 2006-12-06  Chris Toshok  <toshok@ximian.com>
5035
5036         * Timer.cs, Control.cs, Menu.cs: make control_tag private.
5037
5038 2006-12-06  Chris Toshok  <toshok@ximian.com>
5039
5040         * Control.cs: make right_to_left and context_menu fields private.
5041
5042 2006-12-06  Chris Toshok  <toshok@ximian.com>
5043
5044         * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
5045         XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
5046         Control.child_controls private.  switch all uses over to
5047         Control.Controls.
5048
5049 2006-12-06  Chris Toshok  <toshok@ximian.com>
5050
5051         * System.Windows.Forms/GroupBox.cs,
5052         System.Windows.Forms/AccessibleObject.cs,
5053         System.Windows.Forms/ErrorProvider.cs,
5054         System.Windows.Forms/Control.cs,
5055         System.Windows.Forms/UpDownBase.cs,
5056         System.Windows.Forms/ScrollBar.cs,
5057         System.Windows.Forms/DateTimePicker.cs,
5058         System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
5059         System.Windows.Forms/ToolTip.cs,
5060         System.Windows.Forms/RadioButton.cs,
5061         System.Windows.Forms/LinkLabel.cs,
5062         System.Windows.Forms/Splitter.cs,
5063         System.Windows.Forms/TextBoxBase.cs,
5064         System.Windows.Forms/ToolStripTextBox.cs,
5065         System.Windows.Forms/ContainerControl.cs,
5066         System.Windows.Forms/ThemeWin32Classic.cs,
5067         System.Windows.Forms/SizeGrip.cs,
5068         System.Windows.Forms/ToolStripDropDown.cs,
5069         System.Windows.Forms/ScrollableControl.cs: Make Control.parent
5070         private.  switch all uses over to Control.Parent.
5071
5072 2006-12-06  Chris Toshok  <toshok@ximian.com>
5073
5074         * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
5075         Control does this before calling emitting these events.
5076
5077         * TabControl.cs: same.
5078
5079         * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
5080         Control.client_rect.
5081
5082         * ButtonBase.cs: use the ClientSize property instead of the
5083         client_size field.
5084
5085         * ScrollableControl.cs: same.
5086
5087         * Control.cs: another pass at making properties private.  also,
5088         move the initialization of tab_stop to the ctor.
5089
5090 2006-12-05  Andreia Gaita <avidigal@novell.com>
5091
5092         * TabControl.cs: Let the selected index be set freely if the 
5093         control handle is not yet created.
5094
5095 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
5096
5097         * Control.cs: Revert dist_top, dist_right, and dist_bottom to 
5098         internal until I can rewrite DefaultLayout.
5099         * ToolStrip.cs: Fix build error and some general cleaning.
5100         * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
5101         Fix build errors caused by making some of Control's fields private.
5102
5103 2006-12-05  Jackson Harper  <jackson@ximian.com>
5104
5105         * TextControl.cs: Redo Insert a little so that it use IndexOf
5106         instead of Split, this prevents it from messing up on things like
5107         \n\n\n. Also more effecient since the split array doesn't need to
5108         be created.
5109         * TextBoxBase.cs: AppendText doesnt handle multiline and non
5110         multiline text differently, this is the first of many fixes that
5111         will make multiline/non-multiline the same thing as far as the
5112         TextBoxBase is concerned.
5113         - Don't split the text and insert lines, this can lose some line
5114         endings (like is the last line a soft or hard break). Instead use
5115         the new Insert.
5116         - Fix an off by one when combining all the lines in the Text
5117         getter.
5118         - Remove separate multiline handling from the Text getter/setter.
5119
5120 2006-12-05  Chris Toshok  <toshok@ximian.com>
5121
5122         * ButtonBase.cs: a few changes:
5123
5124         - don't reinitialize internal Control fields in the ctor when they
5125         have the same values as Control sets them.
5126
5127         - don't set has_focus in OnGotFocus/OnLostFocus.  Control does
5128         this before calling those methods.
5129
5130         - we don't need to call Refresh for anything.  use Invalidate
5131         instead.
5132
5133         - OnEnabledChanged doesn't need to redraw at all - Control.cs
5134         calls Refresh in its OnEnabledChanged.
5135         
5136         - several of the events we were registered for in the ctor to
5137         redraw ourselves already include calls to Invalidate in the
5138         property setters that raise the events.  remove the extra
5139         invalidation.
5140
5141         - reformat a switch statement that was 83274658 columns wide.
5142         
5143 2006-12-05  Mike Kestner  <mkestner@novell.com>
5144
5145         * ComboBox.cs: fix a unit test regression from a TextBox
5146         SelectionLength return of -1 when there's no selection.  
5147
5148 2006-12-05  Chris Toshok  <toshok@ximian.com>
5149
5150         * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
5151         ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
5152         cleaning up some of the internal Control fields being used by
5153         subclasses.
5154
5155 2006-12-05  Mike Kestner  <mkestner@novell.com>
5156
5157         * ComboBox.cs: fix some Simple mode regressions.  Set Visible on the
5158         listbox after AddImplicit calls since it defaults to hidden. Add a 
5159         hack to preserve requested heights across DropDownStyle changes.
5160
5161 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
5162
5163         * PropertyGrid.cs: Hide FindFirstItem method from public API.
5164
5165 2006-12-05  Chris Toshok  <toshok@ximian.com>
5166
5167         * DataGridView.cs: fix compiler warnings.
5168
5169         * PrintControllerWithStatusDialog.cs: same.
5170
5171         * ToolBar.cs: same.
5172
5173         * FolderBrowserDialog.cs: same.
5174
5175         * Splitter.cs: same.
5176
5177         * DataGridViewComboBoxCell.cs: same.
5178
5179         * XplatUIWin32.cs: same.
5180
5181         * PictureBox.cs: same.
5182
5183         * Win32DnD.cs: same.
5184
5185         * PageSetupDialog.cs: same.
5186
5187         * FileDialog.cs: same.
5188
5189         * PrintDialog.cs: same.
5190
5191         * DataGridTextBoxColumn.cs: same.
5192
5193         * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
5194
5195 2006-12-05  Chris Toshok  <toshok@ximian.com>
5196
5197         * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
5198         MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
5199         System.ComponentModel.EventHandlerList work.
5200
5201 2006-12-05  Jonathan Chambers  <joncham@gmail.com>
5202
5203         * DrawTreeNodeEventArgs.cs: Added.
5204
5205 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5206         
5207         * InternalWindowManager.cs: Remove an unused field.
5208         
5209 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5210
5211         * InternalWindowManager.cs:
5212         - Save the point where the title bar is clicked.
5213         
5214         * MdiWindowManager.cs:
5215         - Only allow moving of the window as long as the 
5216         clicked point on the title bar does not get out of
5217         MdiClient's rectangle. Fixes #79982.
5218         
5219         * MdiClient.cs:
5220         - Added Horizontal/VerticalScrollbarVisible.
5221         - Simplified the scrollbar sizing algorithm.
5222         - Cache the difference in scrolled value in
5223         H/VBarValueChanged and move the calculation out
5224         of the for loop.
5225
5226 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5227
5228         * Control.cs: Make the Console.WriteLine in WndProc 
5229         write more info.
5230
5231 2006-12-05  Chris Toshok  <toshok@ximian.com>
5232
5233         * ToolStripManager.cs, ToolStripButton.cs,
5234         ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
5235         ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
5236         ToolStripSplitButton.cs, ToolStripSeparator.cs,
5237         ToolStripRenderer.cs, ToolStripDropDownItem.cs,
5238         ToolStripProgressBar.cs, ToolStripContainer.cs,
5239         ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
5240         to using System.ComponentModel.EventHandlerList.
5241
5242 2006-12-04  Chris Toshok  <toshok@ximian.com>
5243
5244         * LinkLabel.cs: fix up compiler warnings.
5245
5246         * TableLayoutSettings.cs: same.
5247
5248         * TreeView.cs: same.
5249
5250         * ToolBar.cs: same.
5251
5252         * TabControl.cs: same.
5253
5254         * RichTextBox.cs: same.
5255
5256         * ListViewItem.cs: same.
5257
5258         * PropertyGrid.cs: same.
5259
5260         * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
5261
5262         * ToolTip.cs same.
5263
5264         * TextRenderer.cs: fix up compiler warnings.
5265
5266         * Label.cs: same.
5267
5268         * Form.cs: corcompare fixes.
5269
5270         * PictureBox.cs: fix up compiler warnings.
5271
5272         * ImageListStreamer.cs: same.
5273
5274         * TrackBar.cs: corcompare fix.
5275
5276         * Control.cs: fix up compiler warnings.
5277
5278         * SplitterPanel.cs: same.
5279
5280         * NumericTextBox.cs: same.
5281
5282         * ImageList.cs: same.
5283
5284         * StatusStrip.cs: same.
5285
5286         * ProgressBar.cs: corcompare fix.
5287
5288         * ToolStripButton.cs: fix up compiler warnings.
5289
5290         * ToolStripStatusLabel.cs: same.
5291
5292         * ToolStripSplitButton.cs: same.
5293
5294         * ToolStripSeparator.cs: same.
5295
5296         * ToolStripProgressBar.cs: same.
5297
5298         * ToolStripDropDownMenu.cs: same
5299
5300         * ToolStripDropDown.cs: same.
5301
5302         * ToolStripDropDownButton.cs: same.
5303
5304         * ToolStrip.cs: same.
5305
5306         * ToolStripControlHost.cs: same.
5307
5308         * ToolStripContentPanel.cs: same.
5309
5310         * ToolStripDropDown.cs: same.
5311
5312         * ToolStripContainer.cs: same.
5313
5314         * ToolStripPanel.cs: same, and add "new" where we need it to work
5315         with the new ArrangedElementCollection.
5316
5317         * ToolStripItemCollection.cs: add "new" where we need it to work
5318         with the new ArrangedElementCollection.
5319
5320 2006-12-04  Andreia Gaita <avidigal@novell.com>
5321
5322         * TabControl.cs: Fix default tab selection to after TabControl
5323         gets focus and not before. Fixes #80128
5324
5325 2006-12-04  Chris Toshok  <toshok@ximian.com>
5326
5327         * DataGridTableStyle.cs: remove the gross calling of
5328         datagrid.Refresh from here.  It's a broken idea and it doesn't
5329         work anyway.
5330
5331         * DataGrid.cs: instead, just register/unregister from the
5332         DataGridTableStyle events in CurrentTableStyle.  we play it
5333         conservatively and EndEdit + CalcAreasAndInvalidate on any event,
5334         even though some would most likely not require it.  Fixes bug
5335         #80115 (and one portion of #80117 as a side effect).
5336
5337 2006-12-04  Chris Toshok  <toshok@ximian.com>
5338
5339         * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
5340         so the textbox (if any) goes away.  Fixes bug #80117.
5341
5342 2006-12-04  Chris Toshok  <toshok@ximian.com>
5343
5344         * DataGridColumnStyle.cs: set the column's readonly property
5345         initially based on the property descriptor's IsReadOnly.  Fixes
5346         bug #80044.
5347
5348 2006-12-04  Chris Toshok  <toshok@ximian.com>
5349
5350         * ComboBox.cs: wrap the dropdown style changing work in
5351         SuspendLayout/ResumeLayout.  Fixes bug #79968.
5352
5353 2006-12-04  Jackson Harper  <jackson@ximian.com>
5354
5355         * TextBoxBase.cs: Fix off by one, since these are one-based.
5356         * TextBox.cs: Select all the text when we get focus.  The TextBox
5357         does this but the RTB does not.
5358
5359 2006-12-04  Chris Toshok  <toshok@ximian.com>
5360
5361         * DataGridTextBoxColumn.cs: remove some spew.
5362
5363         * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
5364         but some part of me is saying "it shouldn't be here.."  At any
5365         rate, it fixes bug #80046.  Call IEditableObject.EndEdit after
5366         setting the value.
5367
5368 2006-12-04  Chris Toshok  <toshok@ximian.com>
5369
5370         * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
5371         to reassign the propertydescriptor.
5372
5373 2006-12-04  Jackson Harper  <jackson@ximian.com>
5374
5375         * TextBoxBase.cs:
5376         * TextControl.cs: Remove some unused variables.  Maybe this will
5377         patch things up between mike and I.
5378         - don't split lines less then one char wide, if the viewport is
5379         that small text won't be visible anyways.
5380         
5381 2006-12-04  Jackson Harper  <jackson@ximian.com>
5382
5383         * TextBoxBase.cs: Default selection length is -1, need to do some
5384         more testing on windows to see when this is used for the property.
5385         - Redid the Lines [] property to that we properly remove soft line
5386         breaks
5387         - added support for preserving carriage returns
5388         -  CanUndo is not a variable like 'is undo enabled' it just returns
5389         true if there is undo operations available.
5390         - AppendText doesn't need to grab the last tag itself anymore,
5391         this happens automatically when we move the cursor.
5392         * TextControl.cs: Add CompoundActions to the undo class. This
5393         allows combining the other operations into one big option.  ie a
5394         paste will combine { delete old, insert new, move cursor }
5395         - Add InsertString undo operation
5396         - New method for deleting multiline text
5397         - Add carriage returns to lines. So we can preserve carriage
5398         returns when text is 'roundtripped'
5399
5400 2006-12-04  Chris Toshok  <toshok@ximian.com>
5401
5402         * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
5403         minimum 0.  Fixes the scrollbar exception in bug #80136.
5404
5405 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5406
5407         * MdiClient.cs: 
5408         * MdiWindowManager: Removed unused fields and methods.
5409         
5410 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5411         
5412         * StatusBar.cs: Update all panels when a AutoSize=Contents
5413         panel needs updating.
5414         
5415         * StatusBarPanel.cs: Remove twidth and only use initialize.
5416         Fixes #80031.
5417                 
5418 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5419
5420         * Form.cs: When a form's MdiParent is set add it directly
5421         on top of the z-order in stead of relying on MdiClient's
5422         ActivateChild to do it. Fixes #80135.
5423         
5424         * MdiClient.cs: 
5425         - Remove original_order, mdi_child_list is already doing
5426         the same thing.
5427         - Create mdi_child_list on construction in
5428         stead of first use (avoids a few null checks).
5429
5430         * MenuItem.cs: Use an already existing list of mdi children
5431         to get the correct order of children and remove the other
5432         redundant list.
5433
5434 2006-12-04  Chris Toshok  <toshok@ximian.com>
5435
5436         * PropertyGridView.cs: cached_splitter_location is only used in
5437         !DOUBLEBUFFER code.
5438
5439         * PropertyGrid.cs: implement the ComComponentNameChanged event
5440         using Events, hoping that would fix the warning.  Looks like a
5441         compiler bug instead (#80144).
5442
5443         * PropertyManager.cs: remove unused method.
5444
5445 2006-11-04  Everaldo Canuto  <everaldo@simios.org>
5446
5447         * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar, 
5448         include parentesis to fix expression evaluation. Fixes #79634.
5449
5450 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
5451         
5452         * MenuAPI.cs:
5453         - Changes to fix behavior in Menu control, some reported in #80097
5454         and other detected during behavior refactory like a select event
5455         problems.
5456         - Remove unneded "if's" conditions.
5457         - Created an internal to flag when popup is active in control, we need 
5458         it because in .NET you can have menu active but without popup active
5459         when you active menu using popup without visible items.
5460         - Mimic win32 behavior for Select and Popup events.  
5461         - Dont open popup menu when you dont have visible subitems.
5462         - Do nothing when click on disabled menu item.
5463         - Some small changes to follow the coding style guidelines.
5464         - Unselect menu only when another control gives focus. Fixes #80097.
5465         - Remove unused code.
5466         
5467         * MenuItem.cs: internal VisibleItems method to check if menu
5468         theres visible subitems, it will be usefull to fix some 
5469         behavior in Menu control.
5470         
5471 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
5472         
5473         * Timer.cs: Tag property for 2.0 profile.
5474         
5475 2006-12-01  Chris Toshok  <toshok@ximian.com>
5476
5477         [ after removing all warning suppressions, this cleans up over 100 warnings. ]
5478         
5479         * Win32DnD.cs: comment out some unused fields.
5480
5481         * XplatUIWin32.cs: comment out some unused pinvokes, and remove
5482         some unused properties/methods.
5483
5484         * XplatUIX11.cs: fix MousePosition so we override the base class's
5485         property instead of conflicting with it.
5486
5487         * PictureBox.cs: comment out some unused fields
5488
5489         * OSXStructs.cs: make some struct fields public.
5490
5491         * XplatUIOSX.cs: comment out some unused pinvokes, and fix
5492         MousePosition so we override the base class's property instead of
5493         conflicting with it.
5494
5495         * X11Dnd.cs: comment out some unused fields
5496
5497         * X11DesktopColors.cs: fix some struct field visibility to quiet
5498         the compiler.
5499
5500         * X11Dnd.cs: remove some debug code.
5501
5502         * ThemeClearlooks.cs: comment out unused field.
5503
5504         * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
5505
5506         * ThemeGtk.cs: comment out some unused pinvokes.
5507
5508         * Timer.cs: remove some unused fields.
5509
5510         * ThemeClearlooks.cs: comment out unused field.
5511
5512         * UpDownBase.cs: comment out unused field.
5513
5514         * DataObject.cs: comment out unused field.
5515
5516         * DataGridBoolColumn.cs: reomve unused field.
5517
5518         * DataGrid.cs: remove unused field.
5519
5520         * Cursor.cs: remove old ToBitmap code.
5521
5522         * ControlPaint.cs: remove unused method.
5523
5524         * ScrollBar.cs: remove unused fields.
5525
5526         * ComboBox.cs: remove unused field, and chain up to
5527         AccessibleObject ctor.
5528
5529         * ListBox.cs: remove unused field.
5530
5531         * ButtonBase.cs: wrap a couple fields in NET_2_0.
5532
5533         * GridEntry.cs: remove unused fields.
5534
5535         * Binding.cs: remove unused fields.
5536
5537         * AxHost.cs: remove unused method.
5538
5539         * ContainerControl.cs: remove unused field.
5540
5541         * ScrollableControl.cs: remove unused fields.
5542
5543 2006-12-01  Chris Toshok  <toshok@ximian.com>
5544
5545         * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
5546         the Where/WhereString stuff.  it's easy enough to CWL
5547         Environment.StackTrace.
5548
5549         * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
5550         unused private fields.
5551
5552 2006-12-01  Jackson Harper  <jackson@ximian.com>
5553
5554         * TextControl.cs: Do not update the view while inserting multiline
5555         text. If we update the view we might wrap lines, before entering
5556         the new lines, which causes the new line insertion calculations to
5557         be totally fubared.
5558         - Remove an old TODO
5559         - Make debug output a little nicer
5560         
5561 2006-12-01  Chris Toshok  <toshok@ximian.com>
5562
5563         * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
5564
5565 2006-12-01  Chris Toshok  <toshok@ximian.com>
5566
5567         [ fix the majority of the CS0108 warnings we've been suppressing ]
5568         
5569         * TreeView.cs: mark BackgroundImageChanged as 'new'.
5570
5571         * ToolBar.cs: ImeMode just passes stuff to Control.  Rename Layout
5572         to "LayoutToolBar" to quiet mcs.
5573         
5574         * TabControl.cs: mark our ControlCollection class as 'new'.
5575
5576         * TextBoxBase.cs: mark some events as 'new'.
5577
5578         * Splitter.cs: TabStop is 'new'.
5579
5580         * ControlBindingsCollection.cs: mark a few methods as new since
5581         they change the visibility from protected to public.
5582
5583         * RadioButton.cs: DoubleClick -> base class, and remove unused
5584         HaveDoubleClick.
5585
5586         * MonthCalendar.cs: ImeMode property -> base class, and mark many
5587         events as new.
5588
5589         * NumericUpDown.cs: TextChanged -> base class.
5590
5591         * CheckedListBox.cs: mark our ObjectCollection class as new to
5592         quiet mcs.
5593
5594         * FolderBrowserDialog.cs: make HelpRequest event new and have it
5595         muck with the base class.
5596
5597         * StatusBar.cs: fix some mcs warnings about Update being the same
5598         name as a base class method.
5599
5600         * RichTextBox.cs: mark some events as new, and make them do things
5601         to the base class impl.
5602
5603         * UserControl.cs: mark TextChanged as new, and have it manipulate
5604         base.TextChanged.
5605
5606         * UpDownBase.cs: mark some things new.
5607
5608         * CheckBox.cs: mark DoubleClick "new", and add some text about
5609         what we need to look at.
5610
5611         * Panel.cs: make the events "new", and manipulate the base
5612         version.  these are just here for attributes.
5613
5614         * AccessibleObject.cs: make owner private.
5615
5616         * Control.cs: deal with AccessibleObject.owner being private.
5617         cache our own copy if we need it.
5618
5619         * Button.cs: add "new" to the DoubleClickEvent.
5620
5621         * ListBox.cs: no need to track our own has_focus here.  let
5622         Control.has_focus do it for us.  Also some other work to clear up
5623         warnings about not overriding base class methods of the same name.
5624         
5625         * ComboBox.cs: clear up some warnings about not override base
5626         class methods of the same name.
5627
5628 2006-12-01  Chris Toshok  <toshok@ximian.com>
5629
5630         * Form.cs: flag a few things as "new" to quiet some of the mcs
5631         warnings.
5632
5633         * AxHost.cs: same.
5634
5635         * PrintPreviewDialog.cs: same.
5636
5637         * DataGridView.cs: fix a ton of corcompare warnings.  not all, but
5638         now DGV isn't so horrible on the class status page.  also, move
5639         all events to using System.ComponentModel.EventHandlerList.  my
5640         wrists hurt.
5641
5642 2006-12-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5643
5644         * MdiWindowManager.cs:
5645         - Set form to active mdi child if shown,
5646         and update the active mdi child to the next 
5647         remaining child in the z-order if the form is hidden.
5648
5649         * Form.cs: 
5650         - Track if the form has been visible and if its 
5651         visibility is beeing changed, so that the MdiClient
5652         can properly decide the ActiveMdiChild. The MdiClient 
5653         cannot track this since the form can change visibility 
5654         before MdiClient is created.
5655
5656         * MdiClient.cs:
5657         - Don't activate anything of the parent form is changing
5658         its visibility.
5659         - Rework ActiveMdiChild to only return visible mdi 
5660         children and take into account several other corner 
5661         cases.
5662
5663 2006-12-01  Chris Toshok  <toshok@ximian.com>
5664
5665         * IBindableComponent.cs: new 2.0 interface.
5666
5667 2006-12-01  Gert Driesen  <drieseng@users.sourceforge.net>
5668
5669         * DataGrid.cs: Font for caption area is bold by default.
5670
5671 2006-12-01  Everaldo Canuto  <everaldo@simios.org>
5672
5673         * Menu.cs: Tag property for 2.0.
5674         
5675 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
5676
5677         * ThemeWin32Classic.cs: Adjust menu separator drawing. 
5678         
5679 2006-12-01  Chris Toshok  <toshok@ximian.com>
5680
5681         * TreeView.cs: doh, the Begin* events should be
5682         TreeViewCancelEventHandler.
5683
5684 2006-12-01  Chris Toshok  <toshok@ximian.com>
5685
5686         * Form.cs: Form.ControlCollection already stores off the
5687         form_owner field.  don't access the base class's internal "owner"
5688         field.
5689
5690         * Control.cs: make all the fields in Control.ControlCollection
5691         private.  there's no need for any internal fields here.
5692
5693 2006-12-01  Chris Toshok  <toshok@ximian.com>
5694
5695         * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
5696         OnHandleCreated.  Fixes bug #80109.
5697
5698 2006-12-01  Chris Toshok  <toshok@ximian.com>
5699
5700         * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
5701         SplitContainer.cs, Control.cs, StatusStrip.cs,
5702         DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
5703         NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
5704         DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
5705         DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
5706         Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
5707         LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
5708         MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
5709         TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
5710         PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
5711         DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
5712
5713         do most of the work to convert our code over to use
5714         System.ComponentModel.Component.Events for
5715         adding/removing/dispatching events.
5716
5717
5718 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
5719
5720         * DataGridView.cs: Fix an ArgumentNullException reported 
5721         twice today in IRC.
5722
5723 2006-11-30  Mike Kestner  <mkestner@novell.com>
5724
5725         * ComboBox.cs: fix the scrollbar mouse event forwarding in the 
5726         grabbed listbox.  Fixes #80036 and #80101.
5727
5728 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
5729
5730         * Message.cs: Changed ToString() to match MS.
5731         
5732 2006-11-30  Jackson Harper  <jackson@ximian.com>
5733
5734         * TextBoxBase.cs: You can still change the selected text on a read
5735         only textbox.
5736         * TextControl.cs: Lower magic number for wrap calculations. This
5737         lets text get closer to the right (far) edge.
5738
5739 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
5740
5741         * Control.cs: Tweak 2.0 layout properties.
5742         * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
5743         * TextRenderer.cs: Add a new overload.
5744         * ToolStrip*: Huge amount of changes and new features.
5745
5746 2006-11-30  Mike Kestner  <mkestner@novell.com>
5747
5748         * ComboBox.cs: fixes for LargeChange and Maximum to get the 
5749         scroll range correct.  Fixes #79994.
5750
5751 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
5752
5753         * MdiWindowManager.cs: Update main form's text when
5754         a form is closed. (fixes #80038)
5755         
5756 2006-11-30  Everaldo Canuto  <everaldo@simios.org>
5757
5758         * ToolBar.cs:
5759         - Fix an regression in ButtonSize.
5760         - Get ImeMode default value change to "Disable".
5761         - Get ShowTooltips default value change to true, default value is 
5762         "false" but after make a test in .NET we get "true" result as default.
5763         
5764 2006-11-29  Jonathan Pobst  <monkey@jpobst.com>
5765
5766         * ToolStripDropDown.cs: Fix for SupportsTransparency change.
5767
5768 2006-11-29  Chris Toshok  <toshok@ximian.com>
5769
5770         * XplatUIWin32.cs (GetWindowTransparency): check return value of
5771         GetLayeredWindowAttributes.  if it's 0, return 1.0, as
5772         SetWindowTransparency hasn't been called.
5773
5774 2006-11-29  Chris Toshok  <toshok@ximian.com>
5775
5776         * Form.cs (set_TransparencyKey): only call SetWindowTransparency
5777         if it's supported.
5778         (set_AllowTransparency): reorder things a little so that the
5779         WS_EX_LAYERED style is removed properly.
5780
5781 2006-11-29  Chris Toshok  <toshok@ximian.com>
5782
5783         [ totally cosmetic eye-candy feature, fixes bug #80089 ]
5784         
5785         * Form.cs: only call the XplatUI transparency method (get/set) if
5786         SupportsTransparency says it's supported. Otherwise fallback to
5787         doing nothing (in the set case) or returning the instance field we
5788         cache (in the get case).
5789
5790         * XplatUIStructs.cs: add TransparencySupport flag enum.
5791         
5792         * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
5793         change to SupportsTransparency.
5794
5795         * XplatUIOSX.cs: stub out GetWindowTransparency, and return
5796         TransparencySupport.None from SupportsTransparency.
5797
5798         * XplatUIX11.cs: Stub out GetWindowTransparency, and return
5799         TransparencySupport.Set from SupportsTransparency.
5800
5801         * XplatUIWin32.cs: implement GetWindowTransparency calling
5802         GetLayeredWindowAttributes, and implement SupportsTransparency by
5803         checking whether or not both
5804         GetWindowTransparency/SetWindowTransparency are available
5805         entrypoints.  We need to do this since SetWindowTransparency is
5806         available as of win2k, but GetWindowTransparency requires winxp.
5807         yay win32 api.
5808
5809         * XplatUI.cs: Add GetWindowTransparency, and change
5810         SupportsTransparency to allow for either/both Get/Set.
5811
5812 2006-11-29  Chris Toshok  <toshok@ximian.com>
5813
5814         * DataGrid.cs: keep from going into an infinite loop redrawing a
5815         datagrid that has no datasource.  Fixes bug #80033.
5816
5817 2006-11-29  Chris Toshok  <toshok@ximian.com>
5818
5819         * MenuItem.cs: fix the NRE when we assign text (and therefore call
5820         Invalidate) before the mainmenu has been assigned to a control.
5821
5822 2006-11-29  Chris Toshok  <toshok@ximian.com>
5823
5824         * DataGrid.cs: detect when we should be double the double click
5825         row/column autosize stuff, although that codepath has yet to be
5826         written.  part of the work for bug #79891.
5827
5828 2006-11-29  Chris Toshok  <toshok@ximian.com>
5829
5830         * Binding.cs (SetControl): fix unit test.
5831
5832 2006-11-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5833
5834         * PageSetupDialog.cs: Validate the margins and set them in
5835         PageSettings. 
5836         * NumericTextBox.cs: New class to mimic the behavior of the
5837         textboxes used in the printing dialogs.
5838
5839 2006-11-29  Andreia Gaita  <avidigal@novell.com>
5840         
5841         * Form.cs: Revert previous change (remove call UpdateBounds
5842         from form constructor), because it messes with the handle creation
5843         order, and that one needs lots and lots of love.
5844         * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
5845         for valid printer and throw InvalidPrinterException if document
5846         is set but printer not valid), adding a MonoTODO. Once 
5847         handle creation is done properly, we can put this back in.
5848
5849 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
5850
5851         * MenuItem.cs: Create a invalidate method for menu item, to be
5852         calling from set text, it make text changes to imadiate update
5853         on screen. Fixes #80013. 
5854         
5855 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
5856
5857         * ToolBar.cs: Fixes and simplify toolbar button layout, it 
5858         fixes bug #80070 and some other problem on toolbar buttons
5859         layout.
5860
5861 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
5862
5863         * ThemeWin32Classic.cs: Paint toolbar toggle button background 
5864         with dotted brush.      Fixes #79564
5865         
5866 2006-11-28  Andreia Gaita  <avidigal@novell.com>
5867
5868         * Form.cs: Removed call to UpdateBounds on Form
5869         constructor, it was causing a call to CreateHandle
5870         before it was supposed to.
5871         * PrintControllerWithStatusDialog: Applied patch
5872         by Chris Toshok to hide controller when there are
5873         no printers available.
5874         PrintDialog.cs: initialize printer settings to 
5875         null - correct DefaultValues test #5
5876         * PrintPreviewControl.cs: Move PrintController
5877         initialization to GeneratePreview
5878         * PrintPreviewDialog.cs: 
5879         - Remove Preview generation     from Document_set(). It is 
5880         called on OnPaint
5881         - Throw InvalidPrinterException on CreateHandle if
5882         a Document is set but there are no printers or 
5883         printer is not valid.
5884         * ThemeWin32Classic: don't paint PrintPreviewControl
5885         if there is nothing to paint    
5886
5887 2006-11-28  Miguel de Icaza  <miguel@novell.com>
5888
5889         * Form.cs: Add another popular method.
5890
5891         * TabPage.cs: ditto.
5892
5893 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5894
5895         * MenuItem.cs: Fixed a warning.
5896         * InternalWindowManager: Fixed a warning.
5897
5898 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5899
5900         * MenuItem.cs:
5901         - When cloning a menu also clone MdiList and clone the 
5902           window menu items properly (as the forms and menuitems
5903           are kept in an internal hashtable, these need updating 
5904           as well)
5905         - Rewrote the window menu code, menu items are added in the
5906           order the forms were added to their parent, and they are
5907           updated every time the window menu is shown (before the
5908           list was only generated once, in the current order of the
5909           forms, and would never be updated). A checkmark is shown
5910           next to the item corresponding to the active mdi child.
5911
5912 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5913
5914         * XplatUIStructs.cs: 
5915         - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
5916         
5917         * XplatUIWin32.cs: 
5918         - Added TME_NONCLIENT to TMEFlags.
5919         - Handles WM_NCMOUSEMOVE in GetMessage to 
5920           generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
5921
5922         * MdiWindowManager:
5923         - Now merges mdi child menu to parent menu when maximized.
5924         - Recalculate NC areas of both mdi child and mdi parent. 
5925           Fixes #79757 (4).
5926           on window state and size changes.Fixes #79844 (3).
5927         - Handle WM_NCCALCSIZE to properly calculate borders.
5928
5929         * Form.cs:
5930         - Add/remove to the mdi containers list of mdi children 
5931           in the order they are added.
5932         - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE 
5933           to the maximized mdi child.
5934         
5935         * InternalWindowManager.cs:
5936         - Only execute a click on the control buttons on the mouse up,
5937           not on the mouse down. Show the state of the button 
5938           (was only showing Normal state, never Pressed state). The
5939           pressed button now follows the mouse (if you click the Close 
5940           button and move the mouse over the Maximize button, the 
5941           Maximize button will be shown as pressed). Since Win32 does
5942           not generate WM_NCLBUTTONUP if you release the button outside
5943           of the nc area, we need to handle WM_NCMOUSELEAVE and treat
5944           it as a mouse up.
5945         
5946         * ThemeWin32Classic.cs:
5947         - Draw a missing border around mdi child forms. Fixes #79844 (2).
5948
5949         * MdiClient.cs:
5950         - Added a list of forms which contains the order the forms are
5951           added to the mdi parent.
5952         - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
5953         - Handle WM_NCCALCSIZE to properly calculate the 3D border.
5954         - If the active form changes set the scrollbars to the top
5955           of the Z order, otherwise the form could hide them.
5956         - Scrollbars are now sized according to ClientSize, not 
5957           to Size, and they take into account the other scrollbar
5958           to determine maximum.
5959         
5960 2006-11-28  Rolf Bjarne Kvinge <RKvinge@novell.com>
5961         
5962         * XplatUI.cs:
5963         * XplatUIDriver.cs:
5964         * XplatUIX11.cs:
5965         * XplatUIWin32.cs:
5966         * XplatUIOSX.cs:
5967         - Added RequestAdditionalWM_NCMessages for windows to 
5968           opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
5969           Currently only implemented in XplatUIWin32.
5970
5971 2006-11-27  Chris Toshok  <toshok@ximian.com>
5972
5973         * Hwnd.cs: only add the hwnd to the windows hash in
5974         set_WholeWindow and set_ClientWindow if whole_window/client_window
5975         are not IntPtr.Zero.  also, remove the unused SetObjectWindow.
5976
5977 2006-11-27  Mike Kestner  <mkestner@novell.com>
5978
5979         * ComboBox.cs: remove redundant OnDropDown call.  It is called
5980         from the ComboListBox.ShowWindow code. Fixes #79969.
5981
5982 2006-11-27  Chris Toshok  <toshok@ximian.com>
5983
5984         * Hwnd.cs: remove the setters for ExposePending and
5985         NCExposePending - noone uses them.
5986
5987 2006-11-27  Jackson Harper  <jackson@ximian.com>
5988
5989         * TextControl.cs: new param for ReplaceSelection which determines
5990         whether we select the new selection, or set the cursor to the end
5991         of the new selection.
5992         * TextBoxBase.cs: Use new param for ReplaceSelection.  When
5993         pasting, select the new text.
5994         * RichTextBox.cs: Use new param for ReplaceSelection.
5995
5996 2006-11-27  Jackson Harper  <jackson@ximian.com>
5997
5998         * TextBoxBase.cs: Set the selection to the caret after the caret
5999         is moved, otherwise they get out of sync.
6000
6001 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
6002
6003         * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
6004         it fixes #80015
6005
6006 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
6007
6008         * ThemeWin32Classic.cs: 
6009         - Fix toolbar drop down arrow position.
6010         - Fix drop down appearance when ToolBar.Appearance is normal,
6011         it fixes #80018.
6012         
6013 2006-11-26  Gert Driesen  <drieseng@users.sourceforge.net>
6014
6015         * ProgressBar.cs: GetStyle fixes for 2.0 profile.
6016         * Control.cs: Same.
6017         * UpDownBase.cs: Same.
6018         * ButtonBase.cs: Same.
6019         * ScrollBar.cs: Same.
6020         * TrackBar.cs: Same.
6021         * PictureBox.cs: Same.
6022         * UserControl.cs: Same.
6023         * Label.cs: Same.
6024         * ListControl.cs: Same.
6025         * TextBoxBase.cs: Same.
6026         * ListView.cs: Same.
6027         * RichTextBox.cs: Same.
6028         * TreeView.cs: Same.
6029
6030 2006-11-25  Jordi Mas i Hernandez <jordimash@gmail.com>
6031
6032         * PrintDialog.cs:
6033         - Text label for where 
6034         - Text label comment was not shown
6035
6036 2006-11-23  Everaldo Canuto  <everaldo@simios.org>
6037
6038         * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
6039
6040 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
6041
6042         * InternalWindowManager.cs: 
6043         - Handle WM_PARENTNOTIFY to activate the form
6044         if any child control is clicked.
6045         - The form is only sizable if not minimized.
6046
6047         * MdiWindowManager.cs:
6048         - Save the IconicBounds if the form is moved.
6049         - Rework SetWindowState, now the window bounds 
6050         are stored only if the old window state is Normal.
6051         
6052         * MdiClient.cs:
6053         - In SetWindowStates store the old window state if 
6054         the window is maximized and restore window state if
6055         the window looses focus.
6056         - Don't handle any scrollbar value changes if 
6057         initializing the scroll bars. Fixes #79771.
6058         - Reworked ArrangeIconicWindows. Current algorithm
6059         tests bounds agains all other minimized windows, if
6060         any intersections create new bounds (going left to 
6061         right, bottom to top) and then test again. When 
6062         successful the bounds are saved and never computed
6063         again. Fixes #79774.
6064
6065 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
6066
6067         * InternalWindowManager.cs: Added HandleTitleBarUp.
6068
6069 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
6070
6071         * NumericUpDown.cs: In .NET 1.1, user entered text is still
6072         hexadecimal in ParseUserEdit.
6073
6074         
6075 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
6076
6077         * MdiWindowManager.cs: 
6078         - Handle a click on the form's icon to show the 
6079         system menu (when maximized). Fixes #79775.
6080         - Change the existing click handler for the form's
6081         icon when not maximized to show on MouseUp.
6082         Fixes #79776.
6083
6084         * Form.cs: In OnResize only layout the mdi child's
6085         parent if it actually has a parent. Might not if
6086         the window is closing.
6087
6088
6089 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
6090
6091         * MdiClient.cs: Ignore active MDI client for text of parent, if
6092         child has no text set.
6093
6094 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
6095
6096         * ToolBar.cs: Fixed ToString to match MS.
6097
6098 2006-11-22  Andreia Gaita  <avidigal@novell.com>
6099
6100         * NumericUpDown: 
6101         - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to 
6102         update inner values on set. Fixes #79966.
6103         - Override OnLostFocus to update value on NET 2. Fixes #79950.
6104         - Fix hexadecimal parsing.
6105         
6106         * UpDownBase: Override OnGotFocus and OnLostFocus to notify 
6107         parent. Fixes #79957
6108
6109 2006-11-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6110
6111         * Control.cs: After calling SetWindowsPos in SetBoundsCore 
6112         the actual size has to be queried, since if height /
6113         width is negative Win32 changes it to 0. 
6114         Fixes #79999 on Windows.
6115         
6116         * XplatUIX11.cs: Set height / width to 0 if negative
6117         in SetWindowPos. Fixes #79999 on Linux.
6118         
6119 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
6120
6121         * ThemeWin32Classic.cs: Fix text redenring when button is
6122         pressed.
6123
6124 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
6125
6126         * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
6127         and later navigate by mouse. Fixes #79528.
6128
6129 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
6130
6131         * ToolBar.cs: Set default value for TabStop to false in
6132         constructor, it fixes remaining behavior of bug #79863.
6133
6134 2006-11-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6135
6136         * MdiWindowManager.cs:
6137         * InternalWindowManager.cs:
6138         - Moved a few methods specific to Mdi from 
6139         InternalWindowManager to MdiWindowManager.
6140         Fixes #79996.
6141         
6142 2006-11-21  Chris Toshok  <toshok@ximian.com>
6143
6144         * XplatUIOSX.cs: stub out InvalidateNC.
6145
6146         * XplatUIWin32.cs: implement InvalidateNC using the call I found
6147         at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
6148
6149         * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
6150
6151         * XplatUIDriver.cs: add InvalidateNC abstract method.
6152
6153         * XplatUI.cs: add InvalidateNC.
6154
6155 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
6156
6157         * ToolBar.cs: Invalidate complete button area when pressed status 
6158         was changed.
6159         * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
6160         * ThemeWin32Classic.cs: Increase vertical and horizontal position 
6161         by 1 when button is pressed.
6162
6163 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
6164
6165         * ToolButton.cs: Invalidate middle of DropDown button when
6166         ToolBar theres DropDownArrows.
6167         * ThemeWin32Classic.cs: Change position of DropDown arrow and
6168         fix DropDown drawing operations.
6169
6170 2006-11-20  Chris Toshok  <toshok@ximian.com>
6171
6172         * NativeWindow.cs: fix the formatting of functions ('{' on the
6173         following line), and enable the thread exception dialog.
6174
6175         * Application.cs: remove the duplicate exception catching from
6176         here.
6177
6178 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
6179
6180         * Toolbar.cs: Triggers button click event when click on icon
6181         of dropdown ToolBarButton. Fixes #79912.
6182         
6183 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6184
6185         * Theme.cs:
6186         * ThemeWin32Classic.cs:
6187         - Added a property WindowBorderFont to enable themeing
6188           of mdi child windows' Text.
6189           
6190 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6191
6192         * InternalWindowManager.cs:
6193         * Form.cs:
6194         * MdiClient.cs:
6195         * MdiWindowManager.cs: 
6196         - If mdi child is maximized, set mdi parent's
6197           text to "Parent - [Child]". Fixes #79770.
6198         - If there is any maximized mdi child windows, only the active 
6199           window (and any new windows) is maximized, the rest are normal.
6200         - On a WindowState change only save mdi child's window bounds 
6201           if the old window state was normal. Fixes #79774.
6202         - The scroll bars are now calculated on hopefully all
6203           necessary events. Fixed #79771 / #79844->6 / #79906.
6204         - MdiClient.SizeScrollBars() now takes into account docked 
6205           controls in the parent when calculating available space.
6206         - InternalWindowManager now always repaints the entire title
6207           area. Fixes #79844->1/4/5.
6208         - Added RequestNCRecalc on mdi child windowstate changes.
6209           Fixes #79772.
6210
6211 2006-11-20  Mike Kestner  <mkestner@novell.com>
6212
6213         * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
6214         in the MouseUp handler of the listbox and move the return handling
6215         code to FireMouseUp to avoid scrolling on ups.  Fixes #79952.
6216
6217 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
6218
6219         * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855. 
6220
6221 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
6222
6223         * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
6224           working in 1.2.x anymore. So, updated.
6225
6226 2006-11-19  Gert Driesen  <drieseng@users.sourceforge.net>
6227
6228         * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
6229         NumberGroupSeparator of current culture instead of assuming en-US.
6230         Fixed bug #79967.
6231
6232 2006-11-17  Mike Kestner  <mkestner@novell.com>
6233
6234         * Control.cs: Add the concept of implicit bounds setting so that
6235         dock/undock round trips preserve explicitly set size/locations.
6236         Fixes #79313.
6237
6238 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
6239
6240         * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
6241           can't handle those filters. (Fixes bug #79961)
6242
6243 2006-11-17  Chris Toshok  <toshok@ximian.com>
6244
6245         [ fixes the exit/crashes associated with #79835.  it's clearly
6246         suboptimal though, we need to figure out a better way to solve
6247         this. ]
6248         
6249         * PrintPreviewControl.cs: deal with the new invalid printer
6250         exceptions.
6251
6252         * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
6253         and return false (so CommonDialog.ShowDialog doesn't actually show
6254         the form.)
6255
6256         * PrintDialog.cs: enable/disable the Ok button depending on
6257         whether or not the printer is valid.
6258
6259         * CommonDialog.cs (ShowDialog): only actually show the form if
6260         RunDialog returns true.
6261
6262 2006-11-17  Jackson Harper  <jackson@ximian.com>
6263
6264         * TextControl.cs: When soft splitting a line, mark it as a soft
6265         split line. Also carry over the current line break to the next
6266         line.
6267
6268 2006-11-17  Chris Toshok  <toshok@ximian.com>
6269
6270         * XplatUIX11.cs: when scrolling a window with an invalid area, we
6271         only want to shift the part of the invalid area that overlaps the
6272         area we're scrolling.  we also don't want to clear the invalid
6273         area unless the invalid area was entirely contained within the
6274         scrolling area.
6275
6276 2006-11-16  Chris Toshok  <toshok@ximian.com>
6277
6278         * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
6279         also make sure to free the memory returned by XGetWindowProperty
6280         in GetText().
6281
6282         * X11Structs.cs: remove the TimerEvent stuff, it's unused.
6283
6284 2006-11-16  Chris Toshok  <toshok@ximian.com>
6285
6286         * XplatUI.cs: add a new super secret way to get at the totally
6287         unsupported X11 backend.
6288
6289 2006-11-16  Gert Driesen  <drieseng@users.sourceforge.net>
6290
6291         * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
6292
6293 2006-11-16  Jackson Harper  <jackson@ximian.com>
6294
6295         * TreeView.cs: Allow more explicit setting of top node position
6296         for scrollbars. Slower algo, but more accurate.
6297         - CollapseAll should maintain the current top node.
6298         * TextBoxBase.cs: When positioning the caret, use the line, pos
6299         method, since the x, y method does not grab the correct tag, and
6300         the caret height never gets set correctly. (Maybe I should just do
6301         away with the caret having its own height, and always use the
6302         carets current tag for height).
6303
6304 2006-11-16  Jonathan Pobst  <monkey@jpobst.com
6305
6306         [Fixes 79778, 79923]
6307
6308         * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
6309         Parent to the FosterParent instead.
6310
6311 2006-11-16  Jackson Harper  <jackson@ximian.com>
6312
6313         * TreeView.cs: Need to recalc the topnode when we expand or
6314         collapse. The scrolling methods can't handle this on their own,
6315         since they use differences between the last scroll position, and
6316         those difference get completely messed up since we are expanding
6317         nodes.  This problem should probably be fixed in the scrolling
6318         methods, so they can figure out exactly where they are, but this
6319         will slow things down a little.
6320         * ThemeWin32Classic.cs: Special case for groupboxes with empty
6321         strings, makes nunit-gui look a lot nicer.
6322
6323 2006-11-16  Chris Toshok  <toshok@ximian.com>
6324
6325         * XplatUIX11.cs: nasty, nasty, nasty changes required because of
6326         the broken multithreaded event handling we have in here.  File
6327         this entry under "Why we should move to the new X11 backend".
6328
6329         Any thread can make it into UpdateMessageQueue, which gets events
6330         from the X socket - some of which could belong to hwnds being
6331         managed by a different thread.  We can also have multiple threads
6332         in UpdateMessageQueue at the same time, with each one reading from
6333         the X socket.  This leads to many problems, with the following
6334         solutions:
6335
6336         We can't use hwnd.Queue.Enqueue anywhere in here and must use
6337         EnqueueLocked.
6338
6339         The MotionNotify compression we do can't work across threads
6340         (without locking the entire queue, perhaps) since we call
6341         hwnd.Queue.Peek, so we just punt and don't compress motion events
6342         unless the owning thread is the one which got the X event.
6343
6344         ConfigureNotify is another fun one, since it modifies the hwnd's
6345         bounds and then enqueues the event.  We add a lock to Hwnd which
6346         is held when setting configure_pending to true (and enqueuing the
6347         event).
6348
6349         There is a race wrt the wake socket.  we need to make sure that
6350         only 1 thread is waiting on that socket, or else a thread could
6351         sleep waiting for data that never comes.  It's difficult (but not
6352         impossible) to make happen, because it seems to require something
6353         like the following:
6354
6355             1. Thread 1 polls on wake_receive
6356         
6357             2. poll returns saying there's data to be read on
6358                wake_receive.
6359         
6360             3. Thread 2 polls on wake_receive and immediately returns
6361                saying there's data to be read.
6362
6363             4. Thread 2 reads the wakeup byte from wake_receive
6364
6365             5. Thread 1 attempts to read the wakeup byte from
6366                wake_receive.
6367
6368             6. Thread 2 exits (due to a form closing, perhaps).
6369
6370             7. Thread 1 blocks forever.
6371         
6372         Fun, eh?
6373
6374         Fixing the Expose handling isn't done yet, and the races inherent
6375         in that piece of code are responsible for the drawing mistakes you
6376         see when generating expose events in a MT app (like NPlot).  This
6377         one is the likely to be the hardest to bandaid, and it doesn't
6378         appear to cause anything but drawing problems.  The other issues
6379         caused apps to exit or hang.
6380
6381         * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
6382         called from a different thread than the one that should be calling
6383         these functions.
6384
6385         * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
6386
6387 2006-11-15  Chris Toshok  <toshok@ximian.com>
6388
6389         * Application.cs: null out the context's MainForm when we exit
6390         RunLoop.  Fixes a newly checked in unit test as well as the last
6391         ODE from bug #79933.
6392
6393 2006-11-15  Chris Toshok  <toshok@ximian.com>
6394
6395         * Form.cs (set_Owner): allow a null value so we can clear the
6396         form's owner.
6397         (Dispose): set all our owned_form's Owner properties to null, and
6398         clear the owned_forms collection.
6399         (WM_CLOSE): clean up this a little bit.. still not right though.
6400
6401         * ApplicationContext.cs: OnMainFormClosed should only call
6402         ExitThreadCore if the main form isn't recreating.  Fixes unit
6403         test.
6404
6405 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
6406
6407         [Fixes 78346]
6408
6409         * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
6410
6411 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
6412
6413         [Fixes 79433]
6414
6415         * Hwnd.cs: Add a flag to show a window, but not activate it, to 
6416         keep popup window types from stealing focus from the main form
6417         on Windows.
6418
6419         * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
6420
6421         * MenuAPI.cs: Set above flag to true.
6422
6423 2006-11-15  Chris Toshok  <toshok@ximian.com>
6424
6425         * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
6426         the button being released is not in wParam.
6427
6428 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
6429
6430         * Form.cs: Add the released button to MouseEventArgs.Button
6431         for the OnMouseUp call to the MenuTracker.  Fixes menu clicking
6432         on Win32.
6433
6434 2006-11-15  Chris Toshok  <toshok@ximian.com>
6435
6436         * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
6437         GetText().  untested because it's unused in our implementation.
6438         Control.Text always caches the text, even if
6439         ControlStyles.CacheText is not set.
6440
6441         fixes bug #79939.
6442
6443 2006-11-15  Chris Toshok  <toshok@ximian.com>
6444
6445         [ fixes #79933 ]
6446         
6447         * Form.cs: in Close() don't do anything after we send the WM_CLOSE
6448         message.  no hiding, no disposing.
6449
6450         in the WM_CLOSE handler, hide the form if it's modal.
6451
6452 2006-11-15  Chris Toshok  <toshok@ximian.com>
6453
6454         * XplatUIX11.cs: use AddExpose instead of sending a message.
6455         fixes textbox border drawing.
6456
6457 2006-11-15  Chris Toshok  <toshok@ximian.com>
6458
6459         * PropertyGridView.cs: keep from crashing on mouse move/down when
6460         the property grid is empty.
6461
6462 2006-11-14  Jackson Harper  <jackson@ximian.com>
6463
6464         * TextControl.cs: Make PageUp and PageDown more like the MS
6465         versions.
6466         * TextBoxBase.cs: When we set the text property position the
6467         cursor at the beginning of the document.
6468
6469 2006-11-14  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6470
6471         * Form.cs: if a mdi child's WindowState has changed
6472         before it's creation, it would display wrong control
6473         buttons.
6474         
6475 2006-11-14  Alexander Olk  <alex.olk@googlemail.com>
6476
6477         * TreeView.cs: De-uglify TreeView checkbox checkmarks.
6478           (Fixes bug #79927)
6479
6480 2006-11-14  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6481
6482         * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that 
6483         the window gets to paint its borders even if the window is
6484         getting smaller.
6485         
6486         * Form.cs: on a WM_NCPAINT invalidate the entire menu, 
6487         otherwise the old control buttons would still be painted 
6488         if the window gets bigger.
6489         
6490         * PaintEventArgs.cs: add an internal method so that the clip 
6491         rectangle can be changed.
6492         
6493 2006-11-13  Chris Toshok  <toshok@ximian.com>
6494
6495         [ fixes bug #79745 ]
6496         
6497         * NotifyIcon.cs: lots of cleanup.
6498
6499         * X11Structs.cs: add an enum for XEMBED messages.
6500
6501         * XplatUIX11.cs: reindent one of the giant switch statements, it
6502         was taking up an additional tab stop, and this file is already way
6503         too wide for my laptop's screen.
6504
6505         Also, add handling for the XEmbed EMBEDDED_NOTIFY message.  When
6506         we get it, resize the hwnd to the WMNormalHints max_width/height.
6507
6508 2006-11-13  Jackson Harper  <jackson@ximian.com>
6509
6510         * TextBoxBase.cs: Compute the value changes for the mouse wheel
6511         teh simple way.
6512
6513 2006-11-13  Chris Toshok  <toshok@ximian.com>
6514
6515         * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
6516         #79898.  force a reference to the Region to stick around so the
6517         unmanaged object isn't collected (rendering our handle in the MSG
6518         stale).
6519
6520 2006-11-13  Chris Toshok  <toshok@ximian.com>
6521
6522         * XplatUIX11.cs: fix #79917 for window managers which support
6523
6524         using XStoreName on the raw utf8, and we need to convert to
6525         COMPOUND_TEXT if it's non-latin1.
6526
6527 2006-11-13  Chris Toshok  <toshok@ximian.com>
6528
6529         * Form.cs (set_DialogResult): we need to set closing to false if
6530         we're setting our result to None.  fixes bug #79908.
6531
6532 2006-11-13  Jackson Harper  <jackson@ximian.com>
6533
6534         * TextControl.cs: When formatting text, compute the adjusted tag
6535         lengths correctly, using FindTag for the end tag instead of trying
6536         to figure it out outselves.
6537         * TreeNode.cs: Use ActualItemHeight, which is the actual height of
6538         the item, ItemHeight doesn't work, because trees with large
6539         imagelists use those for their height
6540         * TreeView.cs: ActualItemHeight factors in the image height
6541         - compute left edge of checkboxes correctly
6542         - when expanding/collapsing move the bottom down one pixel, so we
6543         aren't moving part of the node
6544
6545 2006-11-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6546
6547         * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
6548         stack in PaintEventStart so that it won't get disposed by the gc
6549         before reaching PaintEventEnd.
6550
6551 2006-11-13  Jackson Harper  <jackson@ximian.com>
6552
6553         * TextBoxBase.cs: Don't select the word if we are on a line with
6554         no text.
6555         - We don't need to position the caret on mouse up, since the mouse
6556         move handler should be doing this
6557         - When double clicking a blank line, the caret is advanced to the
6558         next line.
6559
6560 2006-11-13  Gert Driesen  <drieseng@users.sourceforge.net>
6561
6562         * TreeNodeCollection.cs: Avoid duplicating indexer code.
6563
6564 2006-11-12  Gert Driesen  <drieseng@users.sourceforge.net>
6565
6566         * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
6567         Fixes part of bug #79910.
6568
6569 2006-11-11  Alexander Olk  <alex.olk@googlemail.com>
6570
6571         * ColorDialog.cs: Fix a NRE when adding a color to custom colors
6572           (bug #79903). Some minor string updates to match ms.
6573
6574 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
6575
6576         * FileDialog.cs: Don't add an extension if the filename
6577           already ends with that extension.
6578
6579 2006-11-10  Jackson Harper  <jackson@ximian.com>
6580
6581         * TreeView.cs: Use the currently highlighted node for the
6582         BeforeSelect event.
6583         * TextBoxBase.cs: There is no need to expand selection on
6584         MouseMove.
6585         - CanUndo means 'is there any undo operations', not 'is undo
6586         allowed on this textcontrol. Fixed ClearUndo unit test.
6587
6588 2006-11-10  Andreia Gaita  <shana.ufie@gmail.com>
6589
6590         * Button.cs: only perform click when button is Selectable (so as 
6591         not to activate default buttons when they're disabled)
6592         
6593         * Control.cs: Rewrite of the SelectNextControl and related 
6594         methods. HandleClick now selects next control if the current one
6595         is being disabled.
6596         
6597         * Form.cs: OnActivated selects next active control only if Load 
6598         has already occurred. If Load hasn't run, there's no point in 
6599         selecting here, Load might change the state of controls.
6600         
6601         * FocusTest.cs: Tests marked as working again for these fixes
6602
6603 2006-11-10  Chris Toshok  <toshok@ximian.com>
6604
6605         * XplatUIX11.cs: a couple of fixes.
6606
6607         - use XInternAtoms with almost all the atoms we need to register,
6608         instead of many, many calls to XInternAtom.  should help a bit on
6609         startup time, at the expense of making the code look a little
6610         worse.
6611
6612         - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
6613         isn't reparented (which seems to be a clue that we're running fon
6614         compiz) and they have an Owner form.  This fixes the tool windows
6615         in paint.net when running under compiz.
6616
6617         - when setting the opacity of a window, support both the case
6618         where the window has been reparented and also when it hasn't been.
6619         Since compiz/beryl doesn't seem to reparent windows, and these are
6620         the only window managers which support translucency, I'm not sure
6621         why we need the hwnd.reparented case at all.. but leave it in.
6622         now we get translucent windows in paint.net under compiz/beryl.
6623
6624 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
6625
6626         * FileDialog.cs: Always return the value for FilterIndex that
6627           was set. Internally convert it to values that make sense.
6628
6629 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
6630         
6631         * ThemeWin32Classic.cs: Fix drowp down arrow borders.
6632
6633 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
6634
6635         * Toolbar.cs: Change default value of DropDownArrows to true, the 
6636         signature still using false to make it compatible with MS but the 
6637         initial value is true. Fixes #79855.
6638
6639 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
6640
6641         * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
6642           only available on Linux.
6643
6644 2006-11-09  Everaldo Canuto  <everaldo@simios.org>
6645
6646         * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
6647         reduce number of calls to redraw method during toolbar creation.
6648
6649 2006-11-09  Mike Kestner  <mkestner@novell.com>
6650
6651         * ListView.cs : raise SelectedIndexChanged when an item is selected
6652         programmatically via the Item.Selected property.  Gert's nice 
6653         ListViewSelectedIndexChanged test fixture now runs clean.
6654
6655 2006-11-09  Mike Kestner  <mkestner@novell.com>
6656
6657         * ListView.cs : raise SelectedIndexChanged when a selected item is
6658         removed from the item collection using Remove or RemoveAt.
6659
6660 2006-11-09  Mike Kestner  <mkestner@novell.com>
6661
6662         * ListView.cs : raise SelectedIndexChanged once per selected item
6663         for compat with MS.  Fixes #79849+.
6664
6665 2006-11-09  Chris Toshok  <toshok@ximian.com>
6666
6667         * TabControl.cs: initialize row_count to 0, and set it to 1 when
6668         we need to (if we have any tab pages).  Fixes unit test.
6669
6670 2006-11-09  Chris Toshok  <toshok@ximian.com>
6671
6672         * Label.cs (CalcPreferredWidth): if Text == "", our preferred
6673         width is 0, not 3.  Fixes a unit test.
6674
6675 2006-11-09  Mike Kestner  <mkestner@novell.com>
6676
6677         * ListView.cs : use Implicit scrollbars so that focus isn't 
6678         stolen from the listview when they are clicked. Fixes #79850.
6679
6680 2006-11-09  Chris Toshok  <toshok@ximian.com>
6681
6682         * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
6683         have a root item.  Fixes #79879.
6684
6685 2006-11-09  Alexander Olk  <alex.olk@googlemail.com>
6686
6687         * FileDialog.cs:
6688           - Fix ToString ()
6689           - An ArgumentException is now thrown if a wrong filter
6690             is applied (matches ms). The previous filter doesn't change
6691             anymore if an exception is thrown.
6692           - Changing the FileName property also affects FileNames
6693         * ColorDialog.cs: The length of the CustomColors array is always
6694           16. It doesn't matter if we use a smaller array or null to update
6695           or change the custom colors property.
6696         * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
6697           for RootFolder if we get a undefined value.
6698
6699 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6700
6701         * StatusBarPanel.cs: 
6702         - Width is set to MinWidth if Width is smaller than
6703         MinWidth. Fixes #79842.
6704         - MinWidth now always overrides Width (MSDN says MinWidth
6705         is set to Width when AutoSize = None, but they do not 
6706         behave like that).
6707         - Style has now the the correct default value.
6708         
6709 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6710  
6711         * TrackBar.cs: 
6712         - The control is completely invalidated on 
6713         Got/LostFocus to draw the focus rectangle correctly.
6714         - When AutoSize then height is always 45 (width for 
6715         vertical controls).
6716         
6717         * ThemeWin32Classic.cs: The TrackBar thumb is now centered
6718         on the mouse when moved and it doesn't move when grabbed
6719         until the mouse moves as well. Also fixed some wrong 
6720         calculations when clicking on the thumb (control thought
6721         click was outside of thumb and didn't grab it).
6722         Fixes some of the issues in #79718.
6723
6724 2006-11-08  Everaldo Canuto  <everaldo@simios.org>
6725
6726         * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
6727
6728 2006-11-08  Chris Toshok  <toshok@ximian.com>
6729
6730         * PropertyGridView.cs: only call ToggleValue if the item is not
6731         readonly.
6732
6733 2006-11-08  Jackson Harper  <jackson@ximian.com>
6734
6735         * TextBoxBase.cs: The RichTextBox and textbox have very different
6736         word selection methods.  Implement the textbox's simple word
6737         selection here, and let the RichTextBox override and provide it's
6738         own.
6739         - Don't do extra selection on mouseup
6740         * RichTextBox.cs: Use the documents word selection algorithm, I
6741         think ideally, this function will be pulled into the
6742         RichTextBox.cs code someday.
6743
6744 2006-11-08  Chris Toshok  <toshok@ximian.com>
6745
6746         * RootGridEntry.cs: new class to represent GridItemType.Root.
6747
6748         * CategoryGridEntry.cs: reformat, and add boilerplate.
6749         
6750         * GridEntry.cs: remove the UIParent stuff - turns out .Parent
6751         returns the UI parent anyway, and we need special handling to
6752         implement the GetTarget method in the face of it.  Also, implement
6753         Select().
6754
6755         * PropertyGrid.cs, PropertyGridView.cs: a number of fixes.  create
6756         a root grid item, and use that instead of PropertyGrid.grid_items.
6757         Also, make use of TypeConverters (and add limitted support for
6758         ICustomTypeDescriptors) when initially populating the grid.
6759         Arrays now show up more or less properly.
6760
6761 2006-11-08  Chris Toshok  <toshok@ximian.com>
6762
6763         * Application.cs: set the modal dialog to non modal after we close
6764         it.  Fixes bug #79866.
6765
6766 2006-11-08  Jackson Harper  <jackson@ximian.com>
6767
6768         * TextControl.cs: When combining lines carry over the line end
6769         style from the end line.
6770         - Invalidate the selected area when setting it, if it is visible.
6771         * TextBoxBase.cs: Only rich text box can do full line selects.
6772         - Make sure to set the cursor position when there is a click,
6773         otherwise two clicks in separate areas could cause a large chunk
6774         to be selected.
6775
6776 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
6777
6778         * Toolbar.cs: Release flat button borders when Toolbar lost focus. 
6779         Fixes #79863.
6780
6781 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
6782
6783         * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
6784         time. Remove tooltips when ToolButton click events.  Fixes #79856.
6785
6786 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
6787
6788         * MenuAPI.cs: Ignore right click for menu actions and fixes
6789         menu border when clicked.  Fixes #79846.
6790
6791 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
6792
6793         * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
6794         MouseState after create wParam for message, this fixes mouse button 
6795         equal none in mouse up events.
6796         
6797 2006-11-07  Andreia Gaita  <shana.ufie@gmail.com>
6798
6799         * Control.cs : Focus() now calls Select to set the Container's
6800         Active Control and to give it focus. To avoid infinite recursion
6801         (because ActiveControl also calls Focus at one point), a check 
6802         is made in Focus with the help of a new internal variable
6803         is_focusing.
6804
6805 2006-11-07  Mike Kestner  <mkestner@novell.com>
6806
6807         * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
6808         if there's a selection.  Fixes #79849.
6809
6810 2006-11-07  Gert Driesen  <drieseng@users.sourceforge.net>
6811
6812         * PropertyGrid.cs: Avoid fixed height of help description label.
6813         Fixes part of bug #79829.
6814
6815 2006-11-07  Chris Toshok  <toshok@ximian.com>
6816
6817         * XplatUIX11.cs: fix #79790 again, by using the
6818         _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
6819
6820 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
6821
6822         * ToolBar.cs: Fix left click checking.
6823
6824 2006-11-07  Chris Toshok  <toshok@ximian.com>
6825
6826         * ProgressBar.cs: fix a typo in ToString().  fixes a unit test.
6827
6828 2006-11-07  Chris Toshok  <toshok@ximian.com>
6829
6830         * RelatedPropertyManager.cs: set property_name in our ctor.  fixes
6831         PropertyManager unit tests.
6832
6833         * PropertyManager.cs: make property_name internal.
6834
6835 2006-11-07  Chris Toshok  <toshok@ximian.com>
6836
6837         * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
6838         pass a unit test.  Also, don't set image_index to anything in
6839         response to setting the ImageList property.
6840
6841 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
6842
6843         * ToolBar.cs: Ignore click events when mouse button is not a
6844         left button, only accepts other button for dropdown menus.  
6845         Fixes #79854.
6846
6847 2006-11-07  Chris Toshok  <toshok@ximian.com>
6848
6849         * DataGrid.cs: make the back and parent row buttons a little less
6850         ugly.
6851
6852 2006-11-07  Jackson Harper  <jackson@ximian.com>
6853
6854         * TextBoxBase.cs: When converting to Text don't put line breaks in
6855         for soft line breaks.
6856         * TextControl.cs: There is an initial "fake" line in the document,
6857         this is now a soft break line, so that an extra line feed doesn't
6858         get added to the end of documents.
6859
6860 2006-11-07  Chris Toshok  <toshok@ximian.com>
6861
6862         [ fix bug #79778 ]
6863         
6864         * CurrencyManager.cs: if the list is readonly, don't bother
6865         checking if IBindingList.AllowNew is true.
6866
6867         * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
6868         for non-DataRowView datasources..  or rather, make it not crash.
6869         (DataGridPaintRelationRow): make sure we limit the row painting to
6870         the area not covered by the row header, and make our cell width at
6871         least large enough to cover the relation area.  This allows grids
6872         that have relations but no rows to render correctly.
6873         (DataGridPaintRowContents): same type of changes here.
6874         (SetDataSource): move back to always calling
6875         CalcAreasAndInvalidate.  this fixes a crash/drawing problem when
6876         navigating back through relations.
6877         (HitTest): handle the case where we have no cells but have
6878         relations.  Right now we generate a hit in cell 0 of whatever the
6879         row is, not sure if this is strictly correct, but it works for our
6880         purposes.
6881         
6882         * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
6883         bother doing anything.
6884
6885 2006-11-07  Jonathan Pobst  <monkey@jpobst.com>
6886
6887         * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
6888         early version of StatusStrip.  Not responsible for eaten
6889         application or firstborn children.
6890
6891 2006-11-06  Chris Toshok  <toshok@ximian.com>
6892
6893         * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
6894         call GetTabRect with a -1 index.  Fixes #79847.
6895
6896 2006-11-06  Jackson Harper  <jackson@ximian.com>
6897
6898         * TreeNodeCollection.cs: Update scrollbars after clearing.
6899
6900 2006-11-06  Chris Toshok  <toshok@ximian.com>
6901
6902         * NumericUpDown.cs: fix the ToString method for some unit test
6903         love.
6904
6905 2006-11-06  Chris Toshok  <toshok@ximian.com>
6906
6907         * PropertyGrid.cs:
6908         - set the initial SelectedGridItem if we can.
6909
6910         - Exclude non-mergable properties only if we're merging > 1
6911         object.  Merging 1 object isn't really merging, obviously.
6912
6913         - Handle PropertySort.NoSort just like Alphabetical, which is
6914         wrong of course, but at least gets things on the screen.
6915         
6916         * PropertyGridView.cs:
6917         - Add method "FindFirstItem" which finds the first property grid
6918         item, so we can select it by default.
6919
6920         - make use of GridEntry.CanResetValue.
6921
6922         - Don't call RedrawBelowItemOnExpansion here anymore, the
6923         individual GridEntry's will do that.
6924
6925         - Remove the ITypeDescriptorContextImpl internal class.
6926         
6927         * GridEntry.cs:
6928         - this class needs to implement ITypeDescriptorContext, as it's
6929         what MS's PropertyDescriptorGridEntry does, which means we can
6930         remove the ITypeDescriptorContextImpl internal class from
6931         PropertyGrid.cs.  This fixes the crashing portion of bug #79829.
6932
6933         - keep a reference to our PropertyGridView, and move the call to
6934         RedrawBelowItemOnExpansion here from PGV.  This means
6935         programmaticly setting Expanded actually does something visible.
6936
6937         - add a CanResetValue() function which takes into account our
6938         possibly multiple "selected_objects" in the merged case.  Shifting
6939         PropertyGridView to use this method fixes another unreported
6940         crasher found running the test for #79829.
6941
6942         - when Top or Bounds is updated, make sure the PropertyGridTextBox
6943         is updated to reflect this.
6944
6945         * CategoryGridEntry.cs: the ctor takes the PGV now.
6946         
6947 2006-11-06  Jackson Harper  <jackson@ximian.com>
6948
6949         * TextControl.cs: These are 1 based.
6950         * TextBoxBase.cs: When setting the selected text, don't change the
6951         selected text tags, this is done by ReplaceText, just position the
6952         cursor at the end of the new text.
6953
6954 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
6955
6956         * ListView.cs: Allow label edit only when, when LabelEdit is
6957           set to true.
6958
6959 2006-11-06  Jackson Harper  <jackson@ximian.com>
6960
6961         * TextControl.cs: If a suitable wrapping position isn't found,
6962         just wrap right in the middle of a word.
6963
6964 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
6965
6966         * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
6967           bug #79820.
6968
6969 2006-11-06  Jackson Harper  <jackson@ximian.com>
6970
6971         * TreeView.cs: Can't use the VisibleCount property when setting
6972         scrollbar heights, because this doesn't take into account whether
6973         or not the horz scrollbar just came visible.
6974
6975 2006-11-05  Everaldo Canuto  <everaldo@simios.org>
6976
6977         * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
6978         activated.  Fixes #79369, #79832.
6979
6980 2006-11-05  Alexander Olk  <alex.olk@googlemail.com>
6981
6982         * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
6983           had to remove support for links that point to a directory. FileInfo
6984           returns no usefull information (means, the directory they point to)
6985           for such links. Replaced some empty string ("") with String.Empty.
6986
6987 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
6988
6989         * TreeNodeCollection.cs: To match MS, in 1.0 profile throw 
6990         NullReferenceException when attempting to remove node that is not in
6991         collection. Throw NullReferenceException when null is passed to 
6992         Remove. Allow first element of the collection to be removed. Fixes
6993         bug #79831.  In GetEnumerator ().Current return null if positioned 
6994         before the first element of the collection. In GetEnumerator ().Reset,
6995         position before first element of the collection.
6996
6997 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
6998
6999         * PropertyGrid.cs: To match MS, remove default title and description
7000         for panel. Fixed tooltips for Categorized and Alphabetic toolbar
7001         buttons.
7002
7003 2006-11-04  Chris Toshok  <toshok@ximian.com>
7004
7005         * Theme.cs: add a Clamp method, just for kicks.
7006
7007         * ThemeWin32Classic.cs: clamp all color components to [0..255].
7008
7009 2006-11-04  Chris Toshok  <toshok@ximian.com>
7010
7011         * Form.cs: if the form isn't visible, Close() does nothing.
7012
7013 2006-11-03  Chris Toshok  <toshok@ximian.com>
7014
7015         * Form.cs (Close): if the form is modal, don't Dispose of it, only
7016         Hide it.
7017         (WndProc): don't Dispose after handling the WM_CLOSE message.
7018
7019         * Application.cs (RunLoop): toplevels is a list of Forms, so treat
7020         them as such, instead of using casts from Control to Form.  Also,
7021         don't Dispose of the modal dialog when we fall out of the loop -
7022         Close() it instead.
7023
7024         fixes bug #79813.
7025
7026 2006-11-03  Chris Toshok  <toshok@ximian.com>
7027
7028         * Control.cs (Dispose): only go through the dispose thing if we're
7029         @disposing, and we haven't already been disposed.  Fixes bug
7030         #79814.
7031
7032         * Form.cs: no reason to call "base.Dispose()" here instead of
7033         "Dispose()".
7034
7035 2006-11-03  Mike Kestner  <mkestner@novell.com>
7036
7037         * ComboBox.cs : use ToString instead of casts in AddItem for
7038         sorting functionality.  Fixes #79812.
7039
7040 2006-11-03  Chris Toshok  <toshok@ximian.com>
7041
7042         * Application.cs: pave the way for actually using the thread
7043         exception dialog.  it's ifdefed out at the moment.
7044
7045 2006-11-03  Chris Toshok  <toshok@ximian.com>
7046
7047         * ThreadExceptionDialog.cs: until we get a better layout, actually
7048         hide the details textbox and label when we shouldn't see them.
7049
7050 2006-11-03  Jackson Harper  <jackson@ximian.com>
7051
7052         * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
7053         multiline textboxes anymore.  This method also determines the
7054         width/height of a textboxes canvas area.
7055         - Sorta a revert of the last patch.  For multiline just position
7056         the controls, then bail.  This way the scrollbar width won't be
7057         altered.
7058
7059 2006-11-03  Everaldo Canuto  <everaldo@simios.org>
7060
7061         * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
7062         it dont need.  Fixes #79537.
7063
7064 2006-11-02  Jackson Harper  <jackson@ximian.com>
7065
7066         * X11Dnd.cs: We always allow copy, since XDND implies Copy.  Also
7067         send the status after firing the DndOver event.
7068
7069 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7070
7071         * TrackBar.cs: Now orientation only switches height / width if
7072         the control's handle is created (Win32 does it like this). Also 
7073         fixed a typo in ToString() for a test to pass, changed the 
7074         exception thrown in set_LargeChange and set_SmallChange to 
7075         match Win32 behaviour, and added TrackBar tests to the unit 
7076         tests.
7077
7078 2006-11-02  Chris Toshok  <toshok@ximian.com>
7079
7080         * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
7081         not _NET_WM_STATE_NO_TASKBAR.
7082
7083 2006-11-02  Jackson Harper  <jackson@ximian.com>
7084
7085         * TextControl.cs: Increment count by one, since in the update view
7086         count - 1 is used.
7087
7088 2006-11-02  Jackson Harper  <jackson@ximian.com>
7089
7090         * TextBoxBase.cs: Use client rectangle not bounds for checking if
7091         the mouse is in the client rectangle (duh).
7092
7093 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7094         
7095         * TrackBar.cs: Fixed trackbar jumping around when clicking
7096         on it - the trackbar was not detecting correctly at which
7097         side of the thumb the click was done. (fixes #79718)
7098
7099 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
7100
7101         * ListBox.cs: scroll visible area when change SelectedIndex to
7102         a non visible area.  Fixes #79481.
7103
7104 2006-11-01  Jackson Harper  <jackson@ximian.com>
7105
7106         * TextControl.cs: When replacing the selection move the selection
7107         start/end/anchor to the end of the new text.
7108
7109 2006-11-01  Jackson Harper  <jackson@ximian.com>
7110
7111         * XplatUIWin32.cs: When setting the parent change the controls
7112         visibility to it's visibility flag, not to it's old parents
7113         visibility (.Visible walks the parent chain).
7114
7115 2006-11-01  Chris Toshok  <toshok@ximian.com>
7116
7117         * XplatUIX11.cs: revert the #79790 fix, as the simple.
7118         XSetTransientForHint fix breaks paint .net's tool windows.  more
7119         work needed for that one.
7120
7121 2006-11-01  Chris Toshok  <toshok@ximian.com>
7122
7123         * ScrollBar.cs: throw ArgumentException instead of Exception in
7124         LargeChange/SmallChange setters.  fixes unit tests.
7125
7126 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
7127
7128         * ContainerControl.cs: reverted rev.67183 (which was itself
7129         a reversion of rev.66853... eh).
7130         
7131         * Control.cs: Fixes Reflector hang by changing Focus() call
7132         to what it was before rev.66643 (calling Select() here sets 
7133         ActiveControl, which in some situations calls back Focus and 
7134         eventually does a stack overflow). Temp fix.    
7135         Changes to GetNextControl() to not look for children to select when
7136         parent cannot be selectable (so it looks for siblings instead)  
7137         
7138 2006-10-31  Mike Kestner  <mkestner@novell.com>
7139
7140         * CheckedListBox.cs : off by one error in returned index from
7141         ObjectCollection.Add.  Fixes #79758.
7142
7143 2006-10-31  Chris Toshok  <toshok@ximian.com>
7144
7145         * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
7146         calls for the textbox/spinner, to keep from recursing to the point
7147         where we crash.  Fixes #79760.
7148
7149 2006-10-31  Chris Toshok  <toshok@ximian.com>
7150
7151         * ListControl.cs (set_SelectedValue): don't throw exceptions on
7152         null/"" value, just return.  matches ms's behavior and fixes some
7153         failing tests.
7154
7155 2006-10-31  Chris Toshok  <toshok@ximian.com>
7156
7157         * Control.cs (set_Capture): make a logic a little easier to
7158         follow.
7159
7160         * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
7161         if it's being destroyed.  A necessary fix surely, but a bandaid
7162         also, to fix the stuck capture problem in bug #78413.
7163
7164 2006-10-31  Chris Toshok  <toshok@ximian.com>
7165
7166         * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
7167         convention of clearing hwnd.ClientRect when we set the
7168         width/height (so it'll be recalculated by Hwnd).
7169
7170 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
7171
7172         * ContainerControl.cs: reversed Contains check from
7173         ActiveControl due to hanging problems. This fix
7174         partly regresses #79667 (button does not have
7175         initial focus), so this might be a symptom for 
7176         a larger parenting problem (set_ActiveControl
7177         is being called but the child control does
7178         not have the parent set yet?)   
7179         
7180 2006-10-31  Mike Kestner  <mkestner@novell.com>
7181
7182         * MenuAPI.cs : fix keynav when menu is click activated.
7183
7184 2006-10-31  Jonathan Pobst  <monkey@jpobst.com>
7185
7186         * ToolStrip*: Version 0.2.
7187
7188         * MenuStrip.cs: Version 0.1.
7189
7190         * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
7191
7192 2006-10-30  Chris Toshok  <toshok@ximian.com>
7193
7194         [ fixes the oversized notify icon issue in bug #79745 ]
7195         
7196         * NotifyIcon.cs: scale the icon down to the size we're given by
7197         the XplatUI layer (this would be faster if we did it once instead
7198         of whenever we paint..)  Also, remove the WM_NCPAINT handling,
7199         since it's never invoked.
7200
7201         * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
7202         pixels high by default, so let's hardcode our systray icon to that
7203         size.  The SYSTEM_TRAY protocol should really have a way for
7204         client apps to query for the correct icon size.. but oh well.  A
7205         couple of patches to deal with the screwy client_window ==
7206         whole_window notifyicon stuff (we don't want to PerformNCCalc, for
7207         instance, and also make sure we don't XSelectInput twice).
7208
7209 2006-10-30  Chris Toshok  <toshok@ximian.com>
7210
7211         * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
7212         recreating forms.  Control recreation is the bane of my existence.
7213         Fix it in a way that keeps everyone happy.
7214
7215 2006-10-30  Chris Toshok  <toshok@ximian.com>
7216
7217         * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
7218         just non-CHILD ones.  otherwise sometimes scrollbars end up with
7219         client_windows not being resized to the proper size (ReportBuilder
7220         shows this extremely well).
7221
7222 2006-10-30  Chris Toshok  <toshok@ximian.com>
7223
7224         * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
7225         for non-WS_EX_APPWINDOW windows.  This is what keeps them from
7226         showing up in the gnome taskbar.  Fixes bug #79790.
7227
7228 2006-10-30  Chris Toshok  <toshok@ximian.com>
7229
7230         * ApplicationContext.cs: guard against a NRE.
7231
7232         * Application.cs: null out the old MainForm for the context, so we
7233         don't try to use it again once it's disposed.  Fixes bug #79783.
7234
7235 2006-10-30  Chris Toshok  <toshok@ximian.com>
7236
7237         * DataGrid.cs (set_DataSource, set_DataMember): if we have a
7238         BindingContext, set the data source directly, otherwise do the
7239         lazy approach - the actual ListManager will be created when we get
7240         a BindingContext. Fixes bug #79700.
7241
7242 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
7243
7244         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
7245           XplatUIX11.cs: Remove old 2 parameter SetVisible.
7246
7247         * Control.cs: Use the new 3 parameter SetVisible with activate = true.
7248
7249 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
7250
7251         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
7252         of SetVisible that allows a window to be shown, but not activated.
7253         This is needed on Windows for MenuStrip, and can probably be used
7254         with MainMenu and ComboBox to fix the focus stealing issues on
7255         Windows.
7256
7257         * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
7258
7259 2006-10-30  Alexander Olk  <alex.olk@googlemail.com>
7260
7261         * PictureBox.cs: Fix the output of the ToString method.
7262
7263 2006-10-29  Chris Toshok  <toshok@ximian.com>
7264
7265         * Control.cs (get_TopLevelControl): fix bug #79781.
7266
7267 2006-10-29  Chris Toshok  <toshok@ximian.com>
7268
7269         * ListControl.cs (set_DataSource): throw Exception here, not
7270         ArgumentException, to match MS behavior.
7271
7272 2006-10-29  Chris Toshok  <toshok@ximian.com>
7273
7274         * Form.cs: remove the try-catch's around calls to GetWindowState.
7275         We can just check the return value.
7276
7277         * XplatUIX11.cs: don't throw exceptions from GetWindowState.
7278         Instead return -1.
7279
7280         * XplatUI.cs: Add note about additional return value for
7281         GetWindowState.
7282
7283 2006-10-29  Chris Toshok  <toshok@ximian.com>
7284
7285         * Control.cs (CreateHandle): when we create our handle, we also
7286         create the handles of our child controls.  Fixes one of the
7287         Control unit tests (CH11).
7288
7289 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
7290
7291         * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
7292
7293 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
7294
7295         * ThemeClearlooks.cs: A little speedup.
7296
7297 2006-10-27  Chris Toshok  <toshok@ximian.com>
7298
7299         * Control.cs: implement Control.FromChildHandle in a way that
7300         matches the docs (and fixes the failed test.)
7301
7302 2006-10-27  Chris Toshok  <toshok@ximian.com>
7303
7304         * DataGridTableStyle.cs: reproduce buggy MS behavior (with
7305         comments).
7306
7307         * DataGrid.cs: implement ResetForeColor such that the tests
7308         succeed.
7309         
7310 2006-10-27  Chris Toshok  <toshok@ximian.com>
7311
7312         * ToolBarButton.cs: setting text/tooltiptext to null results in it
7313         being set to "".  Fixes bug #79759.
7314
7315 2006-10-27  Jackson Harper  <jackson@ximian.com>
7316
7317         * TextControl.cs: We need to clear the entire selection area when
7318         setting the start, otherwise multiline selections are still
7319         visible.
7320
7321 2006-10-26  Chris Toshok  <toshok@ximian.com>
7322
7323         * PropertyGridView.cs: 
7324
7325         - ifdef all the code specific to the double
7326         buffer case, and provide some alternatives in the non-doublebuffer
7327         code, which makes heavy use of XplatUI.ScrollWindow to move things
7328         around without having to invalidate (and cause flicker).  There
7329         are still some drawing problems in the non-doublebuffered case, so
7330         DOUBLEBUFFER is defined by default.
7331
7332         - Fix the way dropdowns are handled.  now we explicitly watch for
7333         the events which might cause the dropdown to close, and break out
7334         of the nested event loop there.  This gets rid of all Capture
7335         code, at the expense of the Msg special casing.  Seems to work,
7336         though, and fixes bug #79743.
7337
7338 2006-10-27  Rolf Bjarne Kvinge <RKvinge@novell.com>
7339         * Control.cs: SetIsRecreating now recreates implicitly added
7340         child controls as well. Finally fixes #79629. The flag passed to 
7341         SetIsRecreating has also been removed since it wasn't used.
7342         
7343 2006-10-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7344
7345         * PageSetupDialog.cs: Clean some code, fix some bits, 
7346         add some checks, and add a printer sub-dialog.
7347
7348 2006-10-26  Chris Toshok  <toshok@ximian.com>
7349
7350         * PropertyGrid.cs: make set_SelectedObject call
7351         set_SelectedObjects, and move the duplicate logic to the
7352         SelectedObjects setter.  Also, raise SelectedObjectsChanged.
7353
7354         * PropertyGridView.cs: hide the textbox when we get a
7355         SelectedObjectsChanged event.
7356
7357         Fixes bug #79748.
7358
7359 2006-10-26  Chris Toshok  <toshok@ximian.com>
7360
7361         * PropertyGridView.cs: deal with the type converter not supporting
7362         GetStandardValues() or GetStandardValues() returning null, which
7363         is does in the default case.  Fixes #79742.
7364
7365 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
7366
7367         * CheckedListBox.cs: nunit no longer crashes when selecting 
7368         Project/Edit menu option
7369         
7370 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
7371
7372         * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
7373         is no menu selected. fixes #79739
7374
7375 2006-10-25  Chris Toshok  <toshok@ximian.com>
7376
7377         * PropertyGridView.cs: factor out the splitter invalidation code
7378         into the SplitterPercent setter, and for kicks implement the
7379         Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
7380         amount in either direction.
7381
7382 2006-10-25  Chris Toshok  <toshok@ximian.com>
7383
7384         * PropertyGridView.cs: do some cleanup of the brush used to draw
7385         text - read only fields should be grayed out.  not sure how to do
7386         this with the textbox, though.  but the textbox's should also be
7387         readonly now at least.  Also, hide/show the textbox when resizing
7388         the control.
7389         
7390         * CursorConverter.cs: use System.Reflection when getting the
7391         properties of Cursors, as TypeDescriptor.GetProperties isn't
7392         returning static properties.
7393
7394 2006-10-25  Chris Toshok  <toshok@ximian.com>
7395
7396         * PropertyGridView.cs: factor out the up/down handling, and reuse
7397         it for page up/down.  also add End/Home support.
7398
7399 2006-10-25  Chris Toshok  <toshok@ximian.com>
7400
7401         * PropertyGridView.cs:
7402
7403         - ensure the selected grid item is visible in the scrolled area,
7404         fixes bug #79572.
7405
7406         - fix Keys.Down handling when you're on the last item in the
7407         propertygrid.
7408
7409 2006-10-25  Mike Kestner  <mkestner@novell.com>
7410
7411         * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup 
7412         clicks too.  Fixes #79725.
7413
7414 2006-10-24  Chris Toshok  <toshok@ximian.com>
7415
7416         * PropertyGrid.cs: use property.Converter instead of
7417         TypeDescriptor.GetConverter(property.PropertyType), so we catch
7418         TypeConverters declared on the property as well as on the
7419         PropertyType.  Fixes bug #79678.
7420
7421 2006-10-24  Alexander Olk  <alex.olk@googlemail.com>
7422
7423         * MimeIcon.cs, Mime.cs:
7424           Fallback to the default platform handler if no shared mime info
7425           stuff exists (fixes #79693).
7426
7427 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
7428         * ContainerControl.cs: Incorrect contains check in ActiveControl 
7429         from previous fix (duh).
7430
7431 2006-10-20  Chris Toshok  <toshok@ximian.com>
7432
7433         * PropertyGridView.cs: the dropdown should be MIN(number of items
7434         in list, 15).  Fixes #79551.
7435
7436 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
7437         Fixes #79384, #79394, #79652, #79667
7438         * Application.cs: 
7439         
7440         - Modal windows are now destroyed in the proper order for windows
7441         
7442         * ContainerControl.cs:
7443         
7444         - ActiveControl setter has more conditions on when to return:
7445                 - if we're reselecting the active control, but it actually
7446                 didn't have focus (window hidden or some such), it runs
7447                 - if the active control being selected doesn't actually 
7448                 exist in the container, it returns
7449         
7450         * Form.cs
7451         
7452         - The ShowDialog now gets the current form as the owner when
7453         invoking without parameters, and correctly activates the owner 
7454         when returning
7455         
7456         * MessageBox.cs
7457         
7458         - MessageBox now catches the Escape key to exit
7459
7460 2006-10-20  Chris Toshok  <toshok@ximian.com>
7461
7462         * PropertyGridView.cs: fix a number of issues (bug #78565, and
7463         most of bug #79676):
7464
7465         - you can navigate around the property grid with the arrow keys.
7466
7467         - the dropdown is sized properly when the pg has a vertical
7468         scrollbar.
7469
7470         - fix the indentation for subentries, and properly select the
7471         entire label rect.
7472
7473         - fix the gray bar's drawing (only draw it to the last element,
7474         not for the height of the control.  Also make sure we draw that
7475         last horizontal grid line.
7476
7477         - use the same mechanism the datagrid uses wrt the editing textbox
7478         when scrolling/resizing/etc.  Namely, we hide it first, do the
7479         operation, then show it again (if it's still visible).
7480         
7481         - aggressively remove a lot of unnecessary refreshes (and also
7482         calls to Invalidate(). call more limited variants, and only redraw
7483         what we need.)
7484         
7485         * PropertyGrid.cs:
7486
7487         - when we're populating the merged collection, fill in the UI
7488         parent with either the passed in item, or the category item we
7489         create.
7490
7491         - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
7492
7493         * GridItem.cs: drop some fully qualified names.
7494         
7495         * GridEntry.cs: add a "UIParent", which is basically the parent
7496         treenode.
7497
7498         * GridItemCollection.cs: add an IndexOf method.
7499
7500 2006-10-20  Mike Kestner  <mkestner@novell.com>
7501
7502         * MainMenu.cs : go back to Draw in OnMenuChanged.  Until we get
7503         a working win32 NC invalidation mechanism, we can't invalidate
7504         menus.  [Fixes #79705]
7505
7506 2006-10-20  Mike Kestner  <mkestner@novell.com>
7507
7508         * ListBox.cs : don't update the VScrollbar if the list is empty,
7509         just hide it.  [Fixes #79692]
7510
7511 2006-10-20  Jackson Harper  <jackson@ximian.com>
7512
7513         * RichTextBox.cs: Handle some special chars better, and don't skip
7514         the entire group when we encounter a special char that we don't
7515         handle correctly.
7516
7517 2006-10-18  Chris Toshok  <toshok@ximian.com>
7518
7519         * PropertyGridView.cs: address a number of issues from bug #79676,
7520         mostly of the cosmetic variety.
7521
7522         - The highlight rectangle for indented items not extends all the
7523         way to the left.
7524
7525         - Indented items aren't indented so much.
7526
7527         - the dropdown is properly sized width-wise if the pg has a
7528         vertical scrollbar.
7529
7530 2006-10-18  Chris Toshok  <toshok@ximian.com>
7531
7532         * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
7533         systray stuff is rather convoluted to begin with.
7534
7535         systray icons are a single window for some reason (that I haven't
7536         figured out yet), and for them, client_window == whole_window.
7537         Given the way the tests are structured elsewhere to determine
7538         which paints are pending (client vs. nc), that situation will
7539         always yield PAINT, not NCPAINT.  So, if we have a pending
7540         nc_expose and no pending expose, remove the hwnd from the paint
7541         queue, and also set nc_expose_pending to false, to keep us from
7542         blocking further expose's adding the hwnd to the paint queue.
7543
7544         phew.  like i said, a rather convoluted change.  Fixes the
7545         notifyicon repaint issues in bug #79645.
7546
7547 2006-10-18  Chris Toshok  <toshok@ximian.com>
7548
7549         * Form.cs: when getting the backcolor of the form, don't get
7550         base.BackColor, as this allows parents to influence the background
7551         color.  This breaks mdi forms.  Instead, if the background_color
7552         is empty, return the default.
7553
7554 2006-10-18  Chris Toshok  <toshok@ximian.com>
7555
7556         * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
7557         to being private instead of internal static.
7558
7559         * Control.cs: remove all the stupid ParentWaitingOnRecreation
7560         crap, it wasn't working for more deeply nested controls anyway,
7561         and we already have the is_recreating flag - use that instead.
7562         Before calling DestroyHandle in RecreateHandle, recurse through
7563         the control tree setting it to true.  this returns the recreate
7564         code to much of its original simplicity, while now guaranteeing we
7565         actually recreate everything we're supposed to.  This change gets
7566         fyireporting actually showing mdi children.
7567
7568 2006-10-17  Chris Toshok  <toshok@ximian.com>
7569
7570         * Form.cs: remove some debug spew, and collapse some duplicate
7571         code at the end of SetClientSizeCore.
7572
7573         * XplatUIX11.cs: 
7574         - add some more debug spew here too wrt Destroy handling.
7575         - don't call hwnd.Dispose in DestroyWindow, it's effectively done
7576         in Control's handling of WM_DESTROY.
7577         - Remove the handling of zombie window DestroyNotifies from the
7578         event loop - we don't need it.  Now the only DestroyNotifies we
7579         actually handle are ones generated by X.
7580         - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
7581         match gtk's (functioning) handling of this. This keep metacity
7582         from leaving droppings in the form of wm borders with no window
7583         contents all over the place.
7584
7585         * Control.cs:
7586         - add a bunch of debug spew wrt control recreation.
7587         - fix a bug where we weren't tracking Visible properly on
7588         recreated hwnds.
7589         - fixed the WM_PAINT double buffer handling to support re-entrant
7590         calls (yes, i know it's gross, but it's happening to us).
7591
7592 2006-10-17  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
7593         * ThemeWin32Classic.cs: changed drawing of selected days
7594         to make them look better.
7595
7596 2006-10-16  Chris Toshok  <toshok@ximian.com>
7597
7598         * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
7599         drawing_stack.  Nuke the ClientDC/NonClientDC properties.
7600
7601         * XplatUIX11.cs: move away from using hwnd.client_dc and
7602         hwnd.non_client_dc and on to a stack of dc's (and in window's
7603         case, PAINTSTRUCT's), so we can deal with nested Paint calls
7604         without puking or not disposing of Graphics objects.
7605
7606         * XplatUIOSX.cs: same.
7607
7608         * XplatUIWin32.cs: same.
7609
7610 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
7611
7612         * FileDialog.cs: Don't call on_directory_changed inside
7613           OnSelectedIndexChanged (it changes the SelectedIndex too).
7614           Instead move it to OnSelectionChangeCommitted.
7615
7616 2006-10-13  Chris Toshok  <toshok@ximian.com>
7617
7618         * XplatUIX11.cs: more Destroy work.  the current code does the
7619         following things, in order:
7620
7621         1. Enumerates all handles of all controls at or below the one
7622         being destroyed, in pre-order.  As it is doing this, it marks the
7623         handles as zombie and clears all references to them.
7624         
7625         2. calls XDestroyWindow on the window passed in.
7626
7627         3. SendMessage's WM_DESTROY to all he handles in the accumulated
7628         list.
7629
7630 2006-10-13  Chris Toshok  <toshok@ximian.com>
7631
7632         * XplatUIX11.cs: set hwnd.zombie to true before calling
7633         SendMessage (WM_DESTROY).  this keeps us from marking the new
7634         window a zombie, and also keeps us from calling sendmessage at
7635         all.
7636
7637 2006-10-13  Jackson Harper  <jackson@ximian.com>
7638
7639         * TextControl.cs: Do not show the caret and selection at the same
7640         time.  Reduces ugliness by 35%.
7641
7642 2006-10-13  Chris Toshok  <toshok@ximian.com>
7643
7644         * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
7645         zombie after we do the recursive call, so we actually do call
7646         SendMessage on the children controls.
7647         (GetMessage): if we find a pending paint event for a zombie hwnd,
7648         remove the hwnd from the paint queue, or else it will always be
7649         there (and we'll effectively loop infinitely)
7650
7651 2006-10-13  Mike Kestner  <mkestner@novell.com>
7652
7653         * MenuItem.cs : add Selected format under keynav too.
7654         Fixes #79528.
7655
7656 2006-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
7657
7658         * PropertyGrid.cs: Fixed some NRE's and small difference between our
7659         implementation and that of MS.
7660
7661 2006-10-13  Chris Toshok  <toshok@ximian.com>
7662
7663         * Control.cs (OnInvalidated) only futz with the invalid_region if
7664         the control is double buffered.  this fixes the apparent hang in
7665         the ListView unit tests.  Someone needs to make the
7666         BeginEndUpdateTest not call OnInvalidated 15004 times, though..
7667
7668 2006-10-13  Chris Toshok  <toshok@ximian.com>
7669
7670         * PropertyGridView.cs:
7671
7672         - do a little refactoring so that only one place calls
7673         dropdown_form.Hide, and that is CloseDropDown.  make everywhere
7674         else call that.  Also make it Refresh, since there are redraw bugs
7675         otherwise (we should take a look at that...)
7676
7677         - do a little more refactoring work to share the body of code
7678         involved with the drop down.  it was duplicated in the code
7679         dealing with the listbox handling and in the code dealing with the
7680         UITypeEditors.
7681
7682         - add a Capture to the dropdown form's control once it's
7683         displayed, and add a MouseDown handler that checks to make sure
7684         the position is inside the control.  If it's not, close the
7685         dropdown.  This fixes #78190.
7686
7687         - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
7688         if the value is different than the initial value.
7689         
7690 2006-10-13  Andreia Gaita  <shana.ufie@gmail.com>
7691
7692         * Control.cs: see #78650
7693         - Fixed GetNextControl for several cases:
7694                 - Changed FindFlatForward to return 
7695                 correct sibling control when more than one
7696                 control has same TabIndex as the currently 
7697                 focused one.
7698                 - Changed FindFlatBackward to loop children
7699                 from last to first and apply same logic as in
7700                 FindFlatForward
7701                 - Changed FindControlForward to search for
7702                 children when control is not a container
7703                 but has children, or search for siblings if
7704                 control is a container...
7705                 - Changed FindControlBackward   to continue
7706                 searching for child controls when hitting 
7707                 Panel-like parents
7708                 
7709         - Fixed Focus method to update ActiveControl
7710         (FocusTest.FocusSetsActive failure)
7711         
7712         * TabControl.cs:
7713         - Focus rectangle now refreshes when gaining
7714         or losing focus
7715         - Removed grab for Tab key on IsInputKey that 
7716         was keeping tab navigation from working (#78650)
7717
7718 2006-10-13  Chris Toshok  <toshok@ximian.com>
7719
7720         * PropertyGridView.cs:
7721         - Rewrite SetPropertyValue to loop over SelectedGridItem's
7722         SelectedObjects.
7723
7724         - Deal with GridItem.Value == null a few places.
7725
7726         * PropertyGrid.cs: 
7727         - replace the PopulateGridItemCollection with a pair of methods
7728         which compute the intersection of all the properties in the
7729         SelectedObjects array.  Fixes #79615.
7730
7731         - Throw ArgumentException from set_SelectedObjects if there's a
7732         null in the array.
7733
7734         - Add GetTarget method which can be used to traverse up the
7735         GridItem.Parent chain.  It depends on the assumption that
7736         selected_objects for different GridEntries are always in the same
7737         order (a safe assumption).  Use this method and loop over all the
7738         selected objects in the entry when calling RemoveValueChanged and
7739         AddValueChanged.
7740         
7741         * GridEntry.cs: Make this handle multiple selected objects.
7742         .Value returns null if not all the selected objects share the same
7743         value.
7744
7745 2006-10-12  Jonathan Pobst  <monkey@jpobst.com>
7746         * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
7747           ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
7748           ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
7749           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
7750           ToolStripTextBox.cs: Add accessibility, fix attributes/API and
7751         add additional functionality.
7752
7753 2006-10-12  Mike Kestner  <mkestner@novell.com>
7754
7755         * ErrorProvider.cs : new ToolTipWindow ctor sig.
7756         * HelpProvider.cs : new ToolTipWindow ctor sig.
7757         * ToolTip.cs : remove ToolTip param from Window sig since it is
7758         not used.
7759         * ToolBar.cs : add tooltip support.  Fixes #79565.
7760
7761 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
7762
7763         * ComboBox.cs: move the events in set_SelectedIndex to 
7764         after the call to HighlightIndex in order to avoid 
7765         possible recursion and subsequent problems with the call
7766         to HighlightIndex and include a range check in 
7767         set_HighlightIndex. Fixes #79588
7768         
7769 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
7770
7771         * MonthCalendar.cs: When FirstDayOfWeek is default set firstday 
7772         to ui thread's settings instead of sunday. 
7773         * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
7774
7775 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
7776
7777         * DateTimePicker.cs
7778         * MonthCalendar.cs
7779         * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
7780         and implement missing functionality (selecting different parts 
7781         of the date and edit them individually with the keyboard).
7782         
7783 2006-10-11  Chris Toshok  <toshok@ximian.com>
7784
7785         * Control.cs (OnInvalidated): fix NRE relating to last change.
7786
7787 2006-10-11  Chris Toshok  <toshok@ximian.com>
7788
7789         * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
7790         atoms in _NET_WM_STATE here if the window is maximized.  We need
7791         to do this because we're *replacing* the existing _NET_WM_STATE
7792         property, so those atoms will be lost otherwise, and any further
7793         call to GetWindowState will return Normal for a window which is
7794         actually maximized.  Fixes #79338.
7795
7796 2006-10-11  Jackson Harper  <jackson@ximian.com>
7797
7798         * TextControl.cs: Special case for setting selection end to
7799         selection start, we basically kill the anchor.
7800         - some todo comments.
7801
7802 2006-10-11  Chris Toshok  <toshok@ximian.com>
7803
7804         * Control.cs: switch to using an "invalid_region" to track which
7805         parts of the image buffer need updating.  This is more code than
7806         the simple fix from r66532.  That version just attempted to always
7807         fill the entire buffer on redraw, which turns out to be
7808         inefficient when invalidating small rectangles.  This version
7809         simply adds the invalid rectangle to the invalid region.  When we
7810         get any WM_PAINT message we see if it can be filled using the
7811         image buffer, and if it can't (if the paint event's clip rectangle
7812         is visible in the invalid region) we first fill the image buffer.
7813         So, the image buffer is still a cache, we just fill it lazily.
7814
7815         * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
7816         need it any longer.
7817
7818 2006-10-11  Chris Toshok  <toshok@ximian.com>
7819
7820         * XplatUIX11.cs (SetWindowPos): we need to update both position as
7821         well as size after calling XMoveResizeWindow.  This keeps us from
7822         ignoring future SetWindowPos calls.  Fixes the disappearing
7823         DateTimePicker in the ToolBarDockExample from bug #72499.
7824
7825 2006-10-11  Chris Toshok  <toshok@ximian.com>
7826
7827         * TextBoxBase.cs: reorder things a bit when it comes to
7828         resizing-causing-recalculation.  we were recalculating the
7829         document when our position was changed, which shouldn't happen.
7830         We only care about size changes.  Clear up some more redundant
7831         recalculation calls while I'm at it.  This makes the toolbar dock
7832         example snappy when you're just dragging toolbars around (since it
7833         causes a relayout whenever you move one.)
7834
7835 2006-10-11  Chris Toshok  <toshok@ximian.com>
7836
7837         * ToolBarButton.cs (get_Rectangle): this only returns
7838         Rectangle.Empty if Visible == false, or Parent == null.
7839         Parent.Visible doesn't matter.
7840
7841 2006-10-10  Chris Toshok  <toshok@ximian.com>
7842
7843         * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
7844         by .net 1.1, so switch to an internal method instead.
7845
7846 2006-10-10  Chris Toshok  <toshok@ximian.com>
7847
7848         * Control.cs (WM_PAINT): when a control is double buffered we draw
7849         initially to the ImageBuffer and then copy from there.  But when a
7850         parent control which has child controls is double buffered, the
7851         initial drawing doesn't encompass the entire ClientRectangle of
7852         the parent control, so we end up with uninitialized bits (this is
7853         easily seen by dragging the top toolbar in
7854         wf-apps/ToolBarDockExample to the right, quickly).  The fix is to
7855         manually set the ClipRectangle of the paint_event (only the one we
7856         use to populate the ImageBuffer) to ClientRectangle.  Fixes more
7857         of the nastiness in bug #72499.
7858
7859         * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
7860         which we use in Control.cs's WM_PAINT handling.
7861
7862 2006-10-10  Jackson Harper  <jackson@ximian.com>
7863
7864         * TextBoxBase.cs: Finish off the autoscrolling stuff.
7865
7866 2006-10-10  Chris Toshok  <toshok@ximian.com>
7867
7868         * Cursor.cs: Apply a slightly different patch to the one suggested
7869         in #79609.
7870
7871 2006-10-10  Jackson Harper  <jackson@ximian.com>
7872
7873         * MenuItem.cs: Make sure to put the mdi child in the hashtable,
7874         not the parent form.
7875         * TextControl.cs: use difference in old line count vs new count to
7876         calculate how many lines were added, this takes into account soft
7877         line breaks properly.
7878
7879 2006-10-10  Chris Toshok  <toshok@ximian.com>
7880
7881         * LinkLabel.cs: don't call MeasureCharacterRanges against a
7882         rectangle located at 0,0 and the size of the text.  Use
7883         ClientRectangle instead.  This fixes rendering of non-left aligned
7884         link labels.
7885
7886 2006-10-10  Jackson Harper  <jackson@ximian.com>
7887
7888         * TextBoxBase.cs: When we set the selection start position the
7889         caret.
7890         * TextControl.cs: Need to update the caret when we decrement it to
7891         zero.
7892         - Make sure that the selection_visible flag gets reset to false if
7893         the selection isn't visible.  Before this you could get it set to
7894         visible by changing the selection start, then changing the end to
7895         equal the start.
7896
7897 2006-10-09  Jackson Harper  <jackson@ximian.com>
7898
7899         * TreeView.cs: Don't update scrollbars when we aren't visible.
7900         * TreeNodeCollection.cs: Only need to update scrollbars if being
7901         added to an expanded visible node or the root node.
7902
7903 2006-10-09  Chris Toshok  <toshok@ximian.com>
7904
7905         * XplatUIX11.cs (SendMessage): fix NRE.
7906
7907 2006-10-09  Jackson Harper  <jackson@ximian.com>
7908
7909         * TextBoxBase.cs: Implement horizontal autoscrolling.
7910         * TextControl.cs: Add a movement types that allows moving forward
7911         and backwards without wrapping.
7912
7913 2006-10-09  Mike Kestner  <mkestner@novell.com>
7914
7915         * ListViewItem.cs : layout changes for wrapped LargeIcon labels
7916         with focus "expansion" of labels.  Fixes #79532 and then some.
7917         * ThemeWin32Classic.cs : add LineLimit to ListView label format
7918         when wrapping.
7919
7920 2006-10-09  Jackson Harper  <jackson@ximian.com>
7921
7922         * TextBoxBase.cs: Set the default max values to MaxValue since
7923         we use the scrollbar for autoscrolling and the default value is
7924         100.  If we don't do this the caret won't keep up with typing
7925         after about 18 characters.
7926         * TextControl.cs: Make sure the selection is offset by the
7927         viewport x.  This fixes selection when using auto scrolling.
7928
7929 2006-10-07  Andreia Gaita <shana.ufie@gmail.com>
7930         
7931         * Form.cs: The active control should be selected after the 
7932         OnLoad so that any child control initialization that affects
7933         the selection is done. Fixes #79406
7934
7935 2006-10-06  Chris Toshok  <toshok@ximian.com>
7936
7937         * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
7938         to have no evil effects.
7939
7940         - Stop selecting StructureNotifyMask on non-toplevel windows.
7941
7942           The only way children should be resized is by using the SWF api,
7943           and we already send WM_WINDOWPOSCHANGED messages in those cases.
7944           Toplevel windows can be interacted with via the window manager,
7945           and so we keep the input mask there.
7946
7947           The other event StructureNotifyMask gives us (that we care
7948           about) is DestroyNotify.  The code is already structured such
7949           that it assumes we won't be getting a DestroyNotify event for
7950           the window we pass to XDestroyWindow (which is what
7951           StructureNotifyMask is supposed to guarantee.)  So, that code
7952           shouldn't be affected by this either.
7953
7954         - Stop selecting VisibilityChangeMask altogether.
7955
7956           We weren't doing anything with the resulting events anyway.
7957         
7958         This vastly reduces the number of X requests and events we see
7959         when resizing/laying out a large ui.
7960
7961 2006-10-06  Chris Toshok  <toshok@ximian.com>
7962
7963         * ScrollableControl.cs (DisplayRectangle): we need to take into
7964         account the DockPadding regardless of whether or not auto_scroll
7965         == true.  rework this slightly to this effect, and fix bug #79606,
7966         and part of #72499 (you can now see the drag handles and drag
7967         toolbars around).
7968
7969 2006-10-06  Gert Driesen  <drieseng@users.souceforge.net>
7970
7971         * ListViewItem.cs: Collections of selected and checked items are now
7972         dynamically rebuilt. Whenever an item is (un)checked or (de)selected
7973         we mark the collection "dirty".
7974         * ListView.cs: Marked collections readonly. Modified UpdateSelection
7975         to only clear SelectedItems when a new item is selected and MultiSelect
7976         is enabled. CheckedItems and SelectedItems now subscribe to Changed
7977         event of ListViewItemCollection, and mark its list dirty whenever
7978         that event is fire. This allows us to return selected/checked items 
7979         in the same order as they are in the Items collection. This matches
7980         the MS behavior.
7981
7982 2006-10-06  Chris Toshok  <toshok@ximian.com>
7983
7984         * NotifyIcon.cs (HandleMouseUp): only show the context menu on
7985         right mouse clicks.  Fixes bug #79593.
7986
7987 2006-10-06  Chris Toshok  <toshok@ximian.com>
7988
7989         * Splitter.cs: doh, fix splitters that don't want to cancel the
7990         movement when you drag them.  Also, impose the limits on the
7991         values we send to the SplitterMovingEvent.  Fixes #79598.
7992
7993 2006-10-06  Jackson Harper  <jackson@ximian.com>
7994
7995         * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
7996         since we use this for auto scrolling also.
7997
7998 2006-10-05  Chris Toshok  <toshok@ximian.com>
7999
8000         * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus.  I'm
8001         beginning to think that most datagrid column types don't need this
8002         method.  Fixes bug #79392.
8003
8004 2006-10-05  Chris Toshok  <toshok@ximian.com>
8005
8006         * DataGrid.cs: move back to a more lazy scheme for creating the
8007         CurrencyManager, so we aren't updating it every time you set
8008         either DataSource or DataMember.  Also, don't call
8009         RecreateDataGridRows if the currency manager hasn't changed.
8010
8011 2006-10-05  Chris Toshok  <toshok@ximian.com>
8012
8013         * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
8014         emitted, SelectedIndex should already be updated.  Fixes bug
8015         #78929.
8016
8017 2006-10-05  Jonathan Pobst  <monkey@jpobst.com>
8018
8019         * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
8020           ToolStripTextBox.cs: Initial commit.
8021         * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
8022
8023 2006-10-05  Jackson Harper  <jackson@ximian.com>
8024
8025         * TabControl.cs: We need to invalidate the tab control area when
8026         new ones are added (duh).
8027
8028 2006-10-03  Chris Toshok  <toshok@ximian.com>
8029
8030         * Form.cs (ProcessDialogKey): if the focused control is in this
8031         form and is a button, call its PerformClick method here.  Fixes
8032         #79534.
8033
8034 2006-10-04  Jackson Harper  <jackson@ximian.com>
8035
8036         * TabPage.cs: Ignore setting of Visible, and add an internal
8037         method for setting the controls visibility.  TabPage's Visible
8038         property is a little strange on MS, this seems to make us
8039         compatible, and fixes cases where people set all the tab pages to
8040         visible.
8041         * TabControl.cs: Use the new internal setting on tab pages
8042         visibility.
8043
8044 2006-10-03  Mike Kestner  <mkestner@novell.com>
8045
8046         * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
8047
8048 2006-10-03  Mike Kestner  <mkestner@novell.com>
8049
8050         * ListView.cs : use is_visible instead of Visible to check if 
8051         scrollbars should be placed/sized.  Also some max_wrap_width
8052         love for LargeIcon view.  [Fixes #79533]
8053
8054 2006-10-03  Atsushi Enomoto  <atsushi@ximian.com>
8055
8056         * TextControl.cs :
8057           Make set_TextAlign() do actually update the align. Fixed #78403.
8058
8059 2006-10-03  Chris Toshok  <toshok@ximian.com>
8060
8061         * DataGrid.cs: fix a crash when switching datasources if the
8062         vertical scrollbar is at someplace other than Value = 0.  Also,
8063         reduce the number of recalculation passes we do in SetDataSource
8064         from 2 to 1.
8065
8066 2006-10-03  Jackson Harper  <jackson@ximian.com>
8067
8068         * TextBoxBase.cs: Move the if value the same bail check up, we
8069         don't want to empty the document if it is already empty, this
8070         seems to severly mess up the caret.  TODO: I should probably fix
8071         the empty statement to update teh caret somehow.
8072
8073 2006-10-03  Chris Toshok  <toshok@ximian.com>
8074
8075         * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
8076         incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
8077         reflection, an internal row type, properties on said type, etc.)
8078         will work with our datagrid.  Fixes #79531.
8079
8080 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
8081
8082         * FileDialog.cs: Don't crash if a path is not accessible
8083           (System.UnauthorizedAccessException). Fixes #79569.
8084         * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
8085           a ':' too. Return unknown icon for those paths/files.
8086
8087 2006-10-03  Sebastien Pouliot  <sebastien@ximian.com>
8088
8089         * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when 
8090         GetContainerControl returns null.
8091
8092 2006-10-02  Chris Toshok  <toshok@ximian.com>
8093
8094         * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
8095         call to XGetWindowAttributes instead of "handle".  fixes an X
8096         error using notifyicon after the NotifyIconWindow to Form base
8097         class switch.
8098
8099 2006-10-02  Chris Toshok  <toshok@ximian.com>
8100
8101         * XplatUIX11.cs (QueryPointer): new function, encapsulating the
8102         server grab and looping we need to do to get down to the most
8103         deeply nested child window.
8104         (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
8105         QueryPointer again after the WarpPointer so we can generate a
8106         proper (fake) MotionNotify event to be enqueued in the destination
8107         window's queue.
8108         (GetCursorPos): call QueryPointer.
8109
8110         Fixes #79556.
8111
8112 2006-10-02  Jackson Harper  <jackson@ximian.com>
8113
8114         * NotifyIcon.cs: Derive the notify icon from a form, so things
8115         like FindForm work on it.
8116         - Swallow the WM_CONTEXTMENU message, since that is generated on
8117         mouse down, and context menu is a mouse up kinda guy.  I believe
8118         the correct fix here is probably to make the notify icon entirely
8119         NC area, but this seems to work fine for anyone not manipulating
8120         WndProc.
8121
8122 2006-10-02  Jonathan Pobst  <monkey@jpobst.com>
8123
8124         * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
8125           ToolStripItemCollection.cs, ToolStripLabel.cs,
8126           ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
8127           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
8128           Initial implementation.
8129         * TextRenderer.cs: Provide padding to MeasureText.
8130
8131 2006-10-02  Sebastien Pouliot  <sebastien@ximian.com>
8132
8133         * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
8134         of ButtonBaseAccessibleObject. Fix bug #79552.
8135
8136 2006-10-02  Jackson Harper  <jackson@ximian.com>
8137
8138         * MdiWindowManager.cs: When maximizing use the containers client
8139         rect, not it's bounds, so nc area is accounted correctly.
8140         - Use the parent form's size for the menu position, since the
8141         client isn't always the full form size.
8142
8143 2006-10-01  Chris Toshok  <toshok@ximian.com>
8144
8145         * ScrollableControl.cs: make sure neither right_edge or
8146         bottom_edge are < 0, since they're used as LargeChange for the
8147         horiz/vert scrollbars respectively.  Fixes #79539.
8148
8149 2006-10-01  Chris Toshok  <toshok@ximian.com>
8150
8151         * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
8152         the xplatuix11 code can cause us to destroy/recreate our handle.
8153
8154         * XplatUIX11.cs
8155         (SystrayAdd):
8156         - this code can be invoked many times for the same Hwnd.  Make
8157           sure we only destroy the client window once (the first time this
8158           method is called).  This fixes bug #79544.
8159         - Remove the call to the improperly bound XSync.  why we had two
8160           bindings to this, I will never know, but this call resulted in
8161           events being discarded from the queue(!).
8162         - correct a misunderstanding of _XEMBED_INFO - the second atom is
8163           not our current state but the state we wish to be in.  So, 0 if
8164           we don't want to be mapped.  Change it to 1.
8165         (SystrayRemove): The XEMBED spec makes mention of the fact that
8166         gtk doesn't support the reparent of client windows away from the
8167         embedder.  Looking at gtksocket-x11.c seems to agree with this.
8168         The only avenue we have for removing systray icons is to destroy
8169         them.  We don't want the handle to go away for good, though, so
8170         call InternalRecreateHandle on the NotifyIconWindow.  Fixes
8171         #79545.
8172         
8173 2006-10-01  Chris Toshok  <toshok@ximian.com>
8174
8175         * Form.cs (WndProc): inline the native_enabled variable usage into
8176         the cases in which it's used.  Fixes #79536.
8177
8178 2006-09-29  Mike Kestner  <mkestner@novell.com>
8179
8180         * ListView.cs : toggle the selection state for ctrl clicks in 
8181         multiselect mode. [Fixes #79417]
8182
8183 2006-09-29  Mike Kestner  <mkestner@novell.com>
8184
8185         * ListView.cs : kill CanMultiSelect and refactor the selection
8186         code to support multiselection in the absence of mod keys. Steal
8187         arrow/home/end keys by overriding InternalPreProcessMessage to
8188         restore regressed keynav behavior.
8189         [Fixes #79416]
8190
8191 2006-09-29  Jackson Harper  <jackson@ximian.com>
8192
8193         * MdiClient.cs: Repaint the titlebars when the active window is
8194         changed.
8195
8196 2006-09-29  Chris Toshok  <toshok@ximian.com>
8197
8198         * Application.cs: when entering a runloop with a modal, make sure
8199         the hwnd is enabled.  Fixes #79480.
8200
8201 2006-09-29  Chris Toshok  <toshok@ximian.com>
8202
8203         * DataGrid.cs (CurrentCell): if we try to navigate to the add row
8204         when ListManager.CanAddRows == false, bump us back one.
8205
8206         * DataGridColumnStyle.cs (ParentReadOnly): remove the
8207         listmanager.CanAddRows check.  This makes ArrayLists uneditable
8208         using a datagrid, which is not right.
8209         (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
8210         is an IEditable, but call property_descriptor.SetValue regardless.
8211         fixes #79435.
8212
8213 2006-09-29  Chris Toshok  <toshok@ximian.com>
8214
8215         * DataGridBoolColumn.cs: we need to test equality in the face of
8216         possible null values (as is the case with the default NullValue).
8217         This patch keeps us from crashing in that case.
8218
8219 2006-09-29  Jackson Harper  <jackson@ximian.com>
8220
8221         * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
8222         here, since it will get called for every node collection in the
8223         tree. This is now done in the treeview once the sorting is
8224         finished.
8225         * TreeView.cs: Recalculate the visible order, and update the
8226         scrollbars after sorting, set the top nope to the root so that the
8227         recalc actually works.
8228
8229 2006-09-29  Chris Toshok  <toshok@ximian.com>
8230
8231         * LinkLabel.cs: more handling of the default link collection in
8232         the face of LinkArea manipulation.  The default link collection
8233         contains 1 element (start=0,length=-1).  If the user sets LinkArea
8234         to anything and the links collection is the default, clear it.
8235         Then only add the link if its nonempty.  Fixes #79518.
8236
8237 2006-09-29  Chris Toshok  <toshok@ximian.com>
8238
8239         * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
8240         piece correctly when we hit a '\n'.  Fixes #79517.
8241
8242 2006-09-29  Chris Toshok  <toshok@ximian.com>
8243
8244         * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
8245         change the binding of gdk_init_check to take two IntPtr's, and
8246         pass IntPtr.Zero for both of them.  Fixes #79520.
8247
8248 2006-09-29  Mike Kestner  <mkestner@novell.com>
8249
8250         * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
8251         [Fixes #78779]
8252
8253 2006-09-28  Jackson Harper  <jackson@ximian.com>
8254
8255         * XplatUIX11.cs: When translating NC messages make sure we go from
8256         whole window to screen, not client window to screen.
8257         * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
8258         method doesn't exist
8259         - Skip over controls that aren't forms when arranging.
8260
8261 2006-09-28  Jackson Harper  <jackson@ximian.com>
8262
8263         * XplatUIWin32.cs: Clip the rect to the parent window.
8264         * XplatUIStructs.cs: Add clipping modes struct.
8265         * InternalWindowManager.cs: New private method that factors title
8266         bar heights in when calculating the pos of an NC mouse message.
8267         - Use SendMessage to force a paint when the form's size is changed
8268         instead of painting the decorations immediately.
8269         - Don't let the NC button click messages get to DefWndProc,
8270         because they will attempt to handle windowing themself, and this
8271         messes up z-order (it will put them in front of the scrollbars).
8272         * XplatUIX11.cs: Make sure that we don't reset window managers if
8273         we already have one (ie the window is an MDI window).
8274
8275 2006-09-28  Chris Toshok  <toshok@ximian.com>
8276
8277         * MainMenu.cs: fix #79405 by way of a disgusting hack.  all the
8278         menu code really needs going over.
8279
8280 2006-09-27  Chris Toshok  <toshok@ximian.com>
8281
8282         * XplatUIX11.cs (SetWMStyles): more metacity wonderment.  turns
8283         out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
8284         window is maximizable.  So, we need to make sure that even if we
8285         clear the border/wm frame of those functions, they're still
8286         available (basically, we remove the decoration without removing
8287         the function).  Half the fix for #79338.
8288
8289 2006-09-27  Chris Toshok  <toshok@ximian.com>
8290
8291         * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
8292         Fixes bug #79515.
8293
8294 2006-09-27  Chris Toshok  <toshok@ximian.com>
8295
8296         * Splitter.cs: reorder things a bit so that we don't actually
8297         draw/move the splitter until after calling OnSplitterMoving.  This
8298         lets users cancel/disallow the movement by explicitly setting
8299         event.SplitX/SplitY.  Fixes #79372.
8300
8301 2006-09-27  Jackson Harper  <jackson@ximian.com>
8302
8303         * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
8304         because it is most likely on a window being destroyed, and that
8305         will give us an X11 error.
8306
8307 2006-09-27  Chris Toshok  <toshok@ximian.com>
8308
8309         * PropertyGridView.cs: half of the fix for #78190.  Clicking on
8310         the dropdown button now toggles between showing and hiding the
8311         dropdown.  Also, get rid of dropdown_form_showing and just use
8312         dropdown_form.Visible.  We still don't do a grab, but I'll leave
8313         that part to someone who has handled Capture-fu before.
8314
8315 2006-09-27  Chris Toshok  <toshok@ximian.com>
8316
8317         * DataGrid.cs: return false if alt isn't pressed when '0' is
8318         pressed.  this keeps the '0' key from being swallowed, and fixes
8319         bug #79350.
8320
8321 2006-09-27  Chris Toshok  <toshok@ximian.com>
8322
8323         * ComboBox.cs: use Invalidate when scrolling the dropdown list.
8324         Calling Refresh (in response to a scrollbar event) screws up the
8325         scrollbar painting.  Fixes bug #78923.
8326
8327 2006-09-27  Chris Toshok  <toshok@ximian.com>
8328
8329         * Theme.cs (SystemResPool): make the "if hashtable[key] == null
8330         then insert into hashtable" blocks threadsafe.
8331
8332 2006-09-27  Chris Toshok  <toshok@ximian.com>
8333
8334         * MessageBox.cs (CreateParams): the styles should be |'ed with our
8335         baseclass's, since otherwise the
8336         ControlBox/MinimizeBox/MaximizeBox assignments above have no
8337         effect.  This gets the close button back in messageboxes.
8338
8339 2006-09-27  Chris Toshok  <toshok@ximian.com>
8340
8341         * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
8342         flag, not just != 0.  this makes flags that are actually multiple
8343         bits (like WS_CAPTION) work.  fixes bug #79508.
8344
8345 2006-09-27  Jordi Mas i Hernandez <jordimash@gmail.com>
8346
8347         * PageSetupDialog.cs: add support for getting and settings the 
8348         paper size, source and orientation.
8349
8350 2006-09-26  Chris Toshok  <toshok@ximian.com>
8351
8352         * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
8353         and caption == "", we need to remove the resize handles as well as
8354         the title bar.
8355
8356         * Control.cs (set_Text): turns out that setting Text on a form
8357         should change the WM styles on the window, since if ControlBox ==
8358         false, the only way to get a window border is to have a non-""
8359         Text property.  check winforms/forms/text.cs for an example.  so,
8360         call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
8361         update both window styles and title.  This fixes a lot of dialogs
8362         (including the preferences dialog in MonoCalendar.)
8363
8364 2006-09-26  Chris Toshok  <toshok@ximian.com>
8365
8366         * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
8367         control isn't a Form), call Win32ShowWindow to hide the window,
8368         but don't update the control Visible property.  When we reparent
8369         back to a parent control, call SetVisible in order for the
8370         window's visibility to be reinstated.
8371
8372         * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
8373         the FosterParent.
8374
8375         * Control.cs (ControlCollection.Remove): remove that value.Hide()
8376         call for good, since it breaks MonoCalendar (and other things I'm
8377         sure.) Also, set all_controls to null *after* the owner calls,
8378         which end up regenerating it.
8379         (ChangeParent): allow new_parent to be == null, passing
8380         IntPtr.Zero down to XplatUI.
8381
8382         this fixes #79294 the right way.
8383
8384 2006-09-26  Mike Kestner  <mkestner@novell.com>
8385
8386         * GridEntry.cs : internal SetParent method.
8387         * PropertyGrid.cs : attach to property changed on the proper
8388         target if we have a hierarchical grid with subobjects. Setup
8389         GridItem.Parent for hierarchical items.
8390         * PropertyGridView.cs : Set value on the correct target for
8391         hierarchical grids. [Fixes #78903]
8392
8393 2006-09-26  Chris Toshok  <toshok@ximian.com>
8394
8395         * Control.cs (ChildNeedsRecreating): this should return true if
8396         either we're being recreated and the child is in our list, or our
8397         parent is waiting for our recreation.
8398
8399 2006-09-26  Chris Toshok  <toshok@ximian.com>
8400
8401         * Control.cs (ControlCollection.Remove): reinstate the
8402         value.Hide() call as suggested in bug #79294.
8403
8404 2006-09-26  Sebastien Pouliot  <sebastien@ximian.com>
8405
8406         * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
8407         coordinates (versus a relative move).
8408
8409 2006-09-26  Chris Toshok  <toshok@ximian.com>
8410
8411         * Control.cs: rework child recreation a little bit.  It turns out
8412         that we race between the DestroyNotify the WM_DESTROY message.  If
8413         the parent gets its DestroyNotify before the child gets the
8414         WM_DESTROY message, the child ends up not recreating (since the
8415         parent finishes its recreation on DestroyNotify, and the child
8416         checks ParentIsRecreating.)
8417
8418         So, instead we store off a list of all the child controls which
8419         need to be recreated when the parent control starts to recreate
8420         itself.  Then, when child controls get their WM_DESTROY message we
8421         check to see if they're in the parent's pending recreation list,
8422         and if so, we recreate.  This removes all dependency on ordering
8423         from the code and fixes the initial MonoCalendar upgrade dialog.
8424         
8425 2006-09-26  Jackson Harper  <jackson@ximian.com>
8426
8427         * TextControl.cs: Use the Line to get the length of the line,
8428         since soft line breaks can change the end line.
8429
8430 2006-09-26  Chris Toshok  <toshok@ximian.com>
8431
8432         * Control.cs (ControlCollection.AddImplicit): don't add the
8433         control again if it's already in one of our lists.  This keeps us
8434         from adding controls over and over again for comboboxes when their
8435         handle gets recreated (as the combobox adds implicit controls in
8436         OnHandleCreated).  Fixes the X11 errors in bug #79480.
8437
8438 2006-09-26  Jackson Harper  <jackson@ximian.com>
8439
8440         * TextControl.cs: When deleting characters make sure that any
8441         orphaned zero lengthed tags get deleted.
8442         - Fix ToString for zero lengthed tags.
8443
8444 2006-09-25  Jackson Harper  <jackson@ximian.com>
8445
8446         * TextControl.cs: When getting a tag at the location there can be
8447         multiple tags at the same spot, these are 0-lengthed tags that
8448         appear when extra formatting has been stuck in a location.  We
8449         need to pull out the last of these 0 lengthed tags.
8450
8451 2006-09-25  Jackson Harper  <jackson@ximian.com>
8452
8453         * TextControl.cs: Fix print out in debug method.
8454         * TextBoxBase.cs: When text is set bail if we are setting to the
8455         previous value.
8456         
8457 2006-09-24  Alexander Olk  <alex.olk@googlemail.com>
8458
8459         * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
8460           It is now possible to change the selected index in a FontXXXListBox
8461           with the up and down arrow keys from the FontXXXTextBoxes.
8462           Also, send the FontXXXTextBox mouse wheel event to the corresponding
8463           FontXXXListBoxes to match ms.
8464
8465 2006-09-22  Sebastien Pouliot  <sebastien@ximian.com>
8466
8467         * SystemInformation.cs: Return a clone of the theme's MenuFont because
8468         anyone can dispose it, anytime. All other properties returns enums, 
8469         structs or basic types so they don't need such tricks.
8470
8471 2006-09-22  Jackson Harper  <jackson@ximian.com>
8472
8473         * XplatUI.cs:
8474         * XplatUIWin32.cs:
8475         * Clipboard.cs:
8476         * DataFormats.cs:
8477         * XplatUIOSX.cs:
8478         * XplatUIDriver.cs: Update interface to add a primary selection
8479         flag, so the driver can use the primary selection buffer if
8480         needed.
8481         * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
8482
8483         * RichTextBox.cs: We need to supply the data object to paste now
8484         (so we can choose to supply CLIPBOARD or PRIMARY).
8485         * TextBoxBase.cs: Supply data object to paste (see above).
8486         - Middle click uses the primary selection data object.
8487         
8488 2006-09-21  Chris Toshok  <toshok@ximian.com>
8489
8490         * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
8491         of SetWMStyles.  It's still a rat's nest and is largely
8492         order-dependent which I dislike immensely.  This also fixes the X
8493         button disappearing from toplevel forms.
8494
8495 2006-09-21  Mike Kestner <mkestner@novell.com>
8496
8497         * ListBox.cs: move Jordi's click/dblclick raising code to the
8498         mouse up handler.
8499
8500 2006-09-21  Jordi Mas i Hernandez <jordimash@gmail.com>
8501
8502         * ListBox.cs: Fixes 79450
8503
8504 2006-09-21  Mike Kestner <mkestner@novell.com>
8505
8506         * TreeView.cs: guard against disposed conditions in UpdateScrollbars
8507         to deal with people updating the TreeNodeCollection after the tree
8508         is disposed.  "Fixes" 79330.
8509
8510 2006-09-20  Jackson Harper <jackson@ximian.com>
8511
8512         * TextControl.cs: Push the cursor record onto the undo stack
8513         before the delete action. This fixes 78651.
8514
8515 2006-09-20  Jonathan Chambers  <joncham@gmail.com>
8516
8517         * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
8518         CreateParams. Fixes 79329.
8519
8520 2006-09-19  Chris Toshok  <toshok@ximian.com>
8521
8522         * XplatUIX11.cs: a couple of blanket code massage passes to clean
8523         things up a bit.  First, get rid of the NetAtoms array (and the NA
8524         enum), and just embed the atoms as static fields.  Also, add a
8525         couple of functions (StyleSet and ExStyleSet) to clean up all the
8526         bitmask testing of styles.
8527
8528         * X11Structs.cs: remove the NA enum, not needed anymore.
8529         
8530 2006-09-19  Chris Toshok  <toshok@ximian.com>
8531
8532         * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
8533         (mapping them to _NET_WM_WINDOW_TYPE_UTILITY).  and add a little
8534         added cleanup to get MessageBox titles appearing again, which were
8535         broken by my earlier fix for caption-less/ControlBox-less windows.
8536
8537 2006-09-18  Jonathan Pobst <monkey@jpobst.com>
8538
8539         * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
8540           ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
8541           ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
8542           ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
8543           ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
8544           ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
8545           ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
8546           ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
8547           ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
8548           ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
8549           ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
8550             Inital import.
8551         * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
8552           ToolStripButton.cs: Stubs needed for above.
8553         * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
8554
8555 2006-09-15  Chris Toshok  <toshok@ximian.com>
8556
8557         * XplatUIX11.cs:
8558         - make the MessageQueues hashtable Synchronized.
8559         
8560         - SendMessage: if the Hwnd is owned by a different thread, use the
8561         AsyncMethod stuff to dispatch the SendMessage on the hwnd's
8562         thread.  Fixes bug #79201.
8563
8564 2006-09-15  Chris Toshok  <toshok@ximian.com>
8565
8566         * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly.  If
8567         ControlBox == false, we disallow maximize/minimize/close.  If the
8568         form Caption is "" we also disallow move (and get rid of the Title
8569         decoration).  Unfortunately, regardless of how things are set,
8570         we're stuck with the Title and WM menu.
8571
8572 2006-09-15  Chris Toshok  <toshok@ximian.com>
8573
8574         * Application.cs: add locking around the static message_filters
8575         ArrayList, part of #79196.
8576
8577 2006-09-15  Chris Toshok  <toshok@ximian.com>
8578
8579         * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
8580         Form.ControlBox == false, the window has no titlebar nor resize
8581         handles.  fixes bug #79368.
8582
8583 2006-09-15  Chris Toshok  <toshok@ximian.com>
8584
8585         * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
8586         >= 0.  Fixes bug #79370.
8587
8588 2006-09-15  Jonathan Pobst <monkey@jpobst.com>
8589         * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
8590         * Control.cs:
8591             Add properties: LayoutEngine, Margin, DefaultMargin.
8592             Add method: GetPreferredSize.
8593             Move layout logic from PerformLayout to layout engines. 
8594
8595 2006-09-13  Chris Toshok  <toshok@ximian.com>
8596
8597         * XplatUIX11.cs: more destroy work.  Jackson pointed out that my
8598         fix for #79326 broke #78718, so this change addresses that.
8599
8600         - in SendWMDestroyMessages remove the call to
8601         CleanupCachedWindows, since we might be recreating the control and
8602         need to maintain the references to right Hwnd handles.  Also, set
8603         the zombie flag to true for each of the children in the hierarchy
8604         instead of calling hwnd.Dispose.  This will cause GetMessage to
8605         ignore all events for the window except for DestroyNotify.
8606
8607         - In GetMessage, ignore messages except for DestroyNotify for
8608         zombie hwnds.
8609         
8610         * Control.cs: revert the is_recreating fix from the last
8611         ChangeLog.  It's definitely "right", but it breaks switching from
8612         an MDI form to a non-MDI form.  Will need to revisit that.
8613
8614         * Hwnd.cs: add a zombie flag, which means "the
8615         client_window/whole_window handles are invalid, but we're waiting
8616         for the DestroyNotify event to come in for them".  Set the flag to
8617         false explicitly if setting WholeWindow/ClientWindow, and also
8618         when Disposing.
8619         
8620 2006-09-13  Chris Toshok  <toshok@ximian.com>
8621
8622         * XplatUIX11.cs: rework window destruction slightly.
8623
8624         - when destroying the windows associated with a control, we don't
8625         need 2 separate XDestroyWindow calls.  Just the one for the
8626         whole_window (or for client_window if whole_window is somehow
8627         IntPtr.Zero -- can this happen?) is enough.
8628
8629         - reworked SendWMDestroyMessages slightly, so we always dispose
8630         the child control hwnd's after sending the messages.
8631         
8632         - refactored out the ActiveWindow/FocusWindow/Caret clearing from
8633         the two places it was used (one was even using hwnd.Handle and the
8634         other hwnd.client_window.  ugh), adding another call in
8635         SendWMDestroyMessages.  We need this new call because now the
8636         DestroyNotify events in the queue will be ignored for the child
8637         controls (as their hwnd's were disposed, and the window id's
8638         removed from the hashtable in SendWMDestroyMessages.) fun, eh?
8639
8640         - this fixes bug #79326.
8641
8642 2006-09-13  Chris Toshok  <toshok@ximian.com>
8643
8644         * Control.cs: don't always set is_recreating to false at the end
8645         of RecreateHandle, since sometimes we're not done (and won't be
8646         until WndProc handles the WM_DESTROY message).  Also, set
8647         is_recreating to false in the WM_DESTROY handling code.  Part of
8648         the fix for bug #79326.
8649
8650 2006-09-13  Miguel de Icaza  <miguel@novell.com>
8651
8652         * X11DesktopColors.cs: Start the droppage of debugging messages.
8653
8654         * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
8655
8656 2006-09-13  Jonathan Pobst <monkey@jpobst.com>
8657
8658         * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
8659
8660 2006-09-12  Chris Toshok  <toshok@ximian.com>
8661
8662         * DataGrid.cs (get_ListManager): if the list_manager is null, try
8663         to create it using SetDataSource.  Fixes bug #79151.
8664
8665 2006-09-11  Chris Toshok  <toshok@ximian.com>
8666
8667         * XEventQueue.cs: add a DispatchIdle property.
8668
8669         * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
8670         either the queue is null, or the queue has DispatchIdle set to
8671         true.
8672         (DoEvents): set queue.DispatchIdle to false around the
8673         peek/translate/dispatch message loop in this method.  This keeps
8674         Application.Doevents from emitting idle events.  Part of the fix
8675         for #78823.
8676
8677 2006-09-11  Chris Toshok  <toshok@ximian.com>
8678
8679         * DataGrid.cs (set_DataSource): make this work for both the
8680         winforms/datagrid test and ReportBuilder.  It seems as though when
8681         we've created a ListManager (or maybe it's if we have a
8682         BindingContext?), when we set the DataSource it clears the
8683         DataMember to "".  otherwise we reuse the datamember.  Fixes bug
8684         #79333.
8685
8686 2006-09-11  Chris Toshok  <toshok@ximian.com>
8687
8688         * XplatUIX11.cs: deal with queue being null, which happens in all
8689         the Clipboard functions.  Fixes one of the two problems mentioned
8690         in #78612.
8691
8692 2006-09-11  Chris Toshok  <toshok@ximian.com>
8693
8694         * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
8695         button on various spots (including outside the menu) works closer
8696         to MS, and doesn't crash.  Fixes #79343.
8697
8698 2006-09-11  Gert Driesen  <drieseng@users.sourceforge.net>
8699
8700         * ListView.cs: Do not initialize item_sorter in init. To match MS,
8701         return null for ListViewItemSorter if View is SmallIcon or LargeIcon
8702         and the internal comparer is set. When a new ListViewItemSorter is set,
8703         sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
8704         was specified. No further processing is necessary if SortOrder is set
8705         to it's current value. If Sorting is modified to None, and View is
8706         neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
8707         (either custom or our internal ItemComparer) to null, on 1.0 profile
8708         only set item_sorter to null if its our internal IComparer. If Sorting
8709         is modified to Ascending or Descending, then use our internal IComparer
8710         if none is set, and if the current IComparer is our internal one then:
8711         on 2.0 profile always replace it with one for new Sorting, and on 1.0
8712         profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
8713         Enum.IsDefined to verify whether a valid View value is specified in
8714         its setter. Automatically sort listview items when listview is
8715         created. In Sort, do nothing if ListView is not yet created, or if
8716         no item_sorter is set (no Sorting was set, Sorting was explicitly set
8717         to None or ListViewItemSorter was set to null). Added Sort overload
8718         taking a bool to indicate whether the ListView should be redrawn when
8719         items are sorted (we use this in ListViewItemCollection to avoid double
8720         redraws). Modified our internal IComparer to take the sort order into
8721         account. In Add and AddRange methods of ListViewItemCollection, also
8722         call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
8723         view), but use overload with noredraw option to avoid double redraw.
8724         On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
8725         true when View is Tile, and do the same when attempting to set View to
8726         Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
8727         for selected/checked indices, as it involves overhead when sorting is
8728         done while these collections are not used all that often. Instead
8729         we'll build the indices on demand. Modified IList implementation of
8730         CheckedIndexCollection to use public methods if object is int.
8731         Modified CheckedListViewItemCollection to hide checked items if
8732         ListView.CheckBoxes is false. Removed LAMESPEC remark in 
8733         ListViewItemCollection as the .NET SDK docs have been fixed. Modified
8734         IList implementation in SelectedIndexCollection to use public methods
8735         if object is int. Modified SelectedListViewItemCollection to hide
8736         selected items if listview is not yet created.
8737         * ListViewItem.cs: CheckedIndices list no longer needs to be
8738         maintained separately (see ListView changes). Also clone font, fixes
8739         test failure.
8740
8741 2006-09-11  Mike Kestner  <mkestner@novell.com>
8742
8743         * ComboBox.cs: if we are updating the contents of the currently
8744         selected index, refresh the control or the textbox selection.
8745         [Fixes #79066]
8746
8747 2006-09-11  Mike Kestner  <mkestner@novell.com>
8748
8749         * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since 
8750         the 'specified' logic has been moved there.  This seems like a bug 
8751         in Control.cs, since our current SetBoundsCore completely ignores 
8752         the specified parameter.  Peter's commit seems to indicate that is 
8753         the way the MS control implementation works.  [Fixes #79325]
8754
8755 2006-09-10  Jonathan Chambers  <joncham@gmail.com>
8756
8757         * XplatUI.cs: Set default_class_name to be composed
8758         of current domain id. This allows MWF to be loaded in multiple
8759         domains on Win32.
8760
8761 2006-09-09  Miguel de Icaza  <miguel@novell.com>
8762
8763         * X11Keyboard.cs: If we are unable to obtain the input method, do
8764         not call CreateXic to create the input context.   Should fix
8765         #78944/79276.
8766
8767 2006-09-08  Alexander Olk  <alex.olk@googlemail.com>
8768
8769         * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
8770           Simplified gnome support by adding more pinvokes to get the
8771           icon for a file or mime type.
8772
8773 2006-09-08  Jackson Harper  <jackson@ximian.com>
8774
8775         * MenuAPI.cs: Deslect popup context menu items before closing the
8776         window, so that you don't see the previously selected item
8777         selected when you reopen the menu.
8778         * TextControl.cs: Update the cursor position even if we don't have
8779         focus.  This fixes typing in things like the ComboBox.  I'm not
8780         totally sure we should always set the visibility if we don't have
8781         focus, but couldn't find any corner cases where the cursor showed
8782         up when it shouldn't.
8783
8784 2006-09-08  Chris Toshok  <toshok@ximian.com>
8785
8786         * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
8787         our arrays are length 256.  & 0xff before indexing.  Fixes the
8788         crash in bug #78077.
8789         
8790 2006-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8791
8792         * ThemeWin32Classic.cs: 
8793         * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
8794         is true. Handle that check box too.
8795
8796 2006-09-07  Chris Toshok  <toshok@ximian.com>
8797
8798         * MenuAPI.cs: move the PerformClick call to OnMouseUp.  Fixes bug
8799         79244.
8800
8801 2006-09-07  Chris Toshok  <toshok@ximian.com>
8802
8803         * Control.cs: in set_BackColor only do the work if
8804         background_color != value.
8805
8806         * XplatUIX11.cs: move the clearing of invalid areas (both client
8807         and nc) to the same block of code where we set (nc_)expose_pending
8808         to false.  That is, move it from PaintEventEnd to PaintEventStart,
8809         so things that cause invalidates from within OnPaint will trigger
8810         another call to OnPaint.  Fixes bug #79262.
8811
8812 2006-09-07  Alexander Olk  <alex.olk@googlemail.com>
8813
8814         * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
8815         * FileDialog.cs: Fix typo
8816
8817 2006-09-07  Jackson Harper  <jackson@ximian.com>
8818
8819         * ThemeWin32Classic.cs:  oops, forgot to commit.  Draw the images
8820         for tab pages if they have any.
8821
8822 2006-09-06  Mike Kestner  <mkestner@novell.com>
8823
8824         * Splitter.cs: use the "current" rect when finishing drag handle
8825         to avoid an artifact demonstrated by resedit.exe.  [Fixes #79251]
8826
8827 2006-09-06  Mike Kestner  <mkestner@novell.com>
8828
8829         * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
8830         support offset splitters. [Fixes #79298]
8831
8832 2006-09-06  Alexander Olk  <alex.olk@googlemail.com>
8833
8834         * Mime.cs: Fixed a bug that could override the global mime type
8835           result.
8836
8837 2006-09-05  Jackson Harper  <jackson@ximian.com>
8838
8839         * TabControl.cs: Better calculation method for setting the slider
8840         pos. Prevents crashes on really wide tabs.
8841         - Draw Image on tab pages if an image list is used.
8842
8843 2006-09-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8844
8845         * MonthCalendar.cs: When Font changes, the Size should be
8846         updated to fit the new font's space requirements.
8847
8848 2006-09-02  Alexander Olk  <alex.olk@googlemail.com>
8849
8850         * ListBox.cs: If the items are cleared with Items.Clear set
8851           top_index to 0.
8852
8853 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8854
8855         * MonthCalendar.cs: Handle arrow keys as input keys. Also
8856         fire DateChanged event instead of DateSelected event when
8857         the date was changed by keyboard interaction.
8858
8859 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8860
8861         * DateTimePicker.cs: Handle DateChanged for the associated
8862         month_calendar control, and set month_calendar.Font from 
8863         OnFontChanged method, as well as resize the height of the
8864         control when needed. Make PreferredHeight proportional.
8865
8866 2006-09-01  Chris Toshok  <toshok@ximian.com>
8867
8868         * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
8869         properties.
8870
8871         * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
8872
8873 2006-09-01  Peter Dennis Bartok  <pbartok@novell.com> 
8874
8875         * FileDialog.cs: Set ClientSize instead of window size, to allow space
8876           for decorations (Fixes #79219)
8877
8878 2006-09-01  Mike Kestner  <mkestner@novell.com>
8879
8880         * ComboBox.cs: first stab at sorting plus some selection handling
8881         fixes to bring us more in line with MS behavior.  Also switches back
8882         to index based selection.  Alternative patches for index-based 
8883         selection were provided by Jackson Harper, Carlos Alberto Cortez, 
8884         and latency@gmx.de on bug 78848.  I assume they were similar to this
8885         code I've had simmering in my tree forever.
8886         [Fixes #78848]
8887
8888 2006-09-01  Chris Toshok  <toshok@ximian.com>
8889
8890         * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
8891         when setting list position guard against ending up with a -1 index
8892         (the other part of the fix for #78812).  Should probably make sure
8893         we don't need the analogous fix in the ItemDeleted case.
8894
8895         * DataGrid.cs:
8896         - in SetDataSource, work around the fact that the way
8897         OnBindingContextChanged is invoked will cause us to re-enter this
8898         method.  I'll remove the hack once I investigate
8899         OnBindingContextChanged.
8900
8901         - fix the logic in set_DataSource and set_DataMember (basically
8902         what to do if the other of the two is null.)
8903         
8904         - in OnListManagerItemChanged, we need to take into account the
8905         edit row when deciding whether or not to call RecreateDataGridRows
8906         (part of the fix for #78812).
8907
8908 2006-09-01  Jackson Harper  <jackson@ximian.com>
8909
8910         * Splitter.cs: Don't do anything if there is no control to affect
8911         (prevents us from crashing in weird tet cases).
8912         * TreeView.cs: Bounding box for the mouse movement reverting
8913         focus/selection back to previously selected node.  This matches
8914         MS, and makes the tree a lot more useable.
8915         * GroupBox.cs: Instead of drawing over the lines of the groupbox,
8916         use clipping so they are not drawn.  This fixes when the control
8917         is set to have a transparent background, or if it was over an
8918         image.
8919
8920 2006-09-01  Alexander Olk  <alex.olk@googlemail.com>
8921
8922         * MimeIcon.cs: Improved handling for reading default icons when
8923           using gnome (2.16 made it necessary). Check and read svg icons
8924           first, then 48x48 and then 32x32 icons.
8925
8926 2006-08-31  Chris Toshok  <toshok@ximian.com>
8927
8928         * DataGridTextBoxColumn.cs: only hide the textbox if it's still
8929         visible.
8930
8931         * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
8932         ProcessKeyPreview.  Fixes part of #77806.
8933
8934         * DataGrid.cs: big patch.
8935
8936         - revert the queueing up of DataSource/DataMember if inside
8937         BeginInit/EndInit calls.  That's not the way the datagrid achieves
8938         its delayed databinding.  Instead, call SetDataSource in
8939         OnBindingContextChanged.  This mimic's MS's behavior, and fixes
8940         #78811.
8941
8942         - Also, it wasn't mentioned in #78811, but the test case exhibits
8943         behavior that was lacking in our datagrid implementation - Columns
8944         that have mapping names that don't exist in the datasource's
8945         properties aren't shown.  Yuck.  To fix this I added the bound
8946         field to the column style, and basically any calculation to figure
8947         out anything about columns uses a loop to find the bound columns.
8948         still need to investigate if I can cache an array of the bound
8949         columns or if the indices must be the same.
8950
8951         - When setting CurrentCell, we no longer abort if the cell being
8952         edited was in the add row.  This fixes the other part of #77806.
8953
8954         - The new code also fixes #78807.
8955         
8956         * ThemeWin32Classic.cs: perpetrate the same disgusting
8957         column.bound field hack, and only render bound fields.
8958
8959 2006-08-31  Chris Toshok  <toshok@ximian.com>
8960
8961         * DataGridColumnStyle.cs: add bound field.  this field is true if
8962         the datasource has a property corresponding to the mapping name.
8963
8964         * DataGridTableStyle.cs: set the bound field on the column styles
8965         depending on whether or not we have a column for that property.
8966
8967 2006-08-31  Peter Dennis Bartok  <pbartok@novell.com> 
8968
8969         * Splitter.cs (SetBoundsCore): Don't ignore width/height of the 
8970           splitter control (fixes #79228)
8971
8972 2006-08-31  Chris Toshok  <toshok@ximian.com>
8973
8974         * DataGridColumnStyle.cs: we need to delay the assignment of
8975         property descriptor until the last possible moment due to the lazy
8976         databinding stuff in the datagrid.  Also, fix the exceptions
8977         thrown by CheckValidDataSource to match MS.
8978
8979 2006-08-31  Jackson Harper  <jackson@ximian.com>
8980
8981         * Form.cs: When activated select the active control, if there is
8982         no active control, we select the first control.
8983         * XplatUIX11.cs: If there is no focus control when we get a
8984         FocusIn event, find the toplevel form and activate it.  This
8985         occurs when you popup a window, it becomes the focus window, then
8986         you close that window, giving focus back to the main window.
8987
8988 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8989
8990         * MonthCalendar.cs: 
8991         * ThemeWin32Classic.cs: Cache Font in bold style, as well
8992         as StringFormat with Center alignments in MonthCalendar,
8993         instead of creating new ones when drawing the control. 
8994         Also, draw the month name in bold style.
8995
8996 2006-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
8997
8998         * Control.cs:
8999           - PerformLayout(): It would seem MS performs the fill even if the 
9000             control is not visible (part of #79218 fix)
9001           - ResetBackColor(): Use the setter to reset the color, to allow
9002             overriders to catch the change.
9003         * Form.cs:
9004           - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
9005           - CreateHandle(): dito (part of $79218 fix)
9006           - Don't set an icon if we have a dialog
9007         * ScrollableControl.cs:
9008           - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
9009           - ScrollIntoView(): No need to scroll if control is already visible
9010             (resolves fixme and fixes #79218)
9011
9012 2006-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9013
9014         * MonthCalendar.cs: Change proportions in SingleMonthSize
9015         to match the aspect of the original control.
9016
9017 2006-08-29  Alexander Olk  <alex.olk@googlemail.com>
9018
9019         * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
9020           get updated when they get maximized.
9021
9022 2006-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
9023
9024         * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
9025
9026 2006-08-29  Chris Toshok  <toshok@ximian.com>
9027
9028         * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
9029
9030 2006-08-29  Jackson Harper  <jackson@ximian.com>
9031
9032         * TreeView.cs: Need to track selected node and highlighted node,
9033         they aren't always the same thing, when the mouse is down on a
9034         node it is hilighted, but not selected yet.
9035         - Do the HideSelection stuff right
9036         - Need to focus on rbutton mouse down. And redraw selection when
9037         right click is mouse upped.
9038
9039 2006-08-29  Mike Kestner  <mkestner@novell.com>
9040
9041         * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
9042         when SubItems.Count < Columns.Count.  [Fixes #79167]
9043
9044 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com> 
9045
9046         * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
9047
9048 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com>
9049
9050         * XplatUIX11.cs: Preempt the roundtrip for getting the location back
9051           from X. Only send based on ConfigureNotify if we don't have the
9052           correct location in hwnd (if the window manager moved us)
9053
9054 2006-08-28  Mike Kestner  <mkestner@novell.com>
9055
9056         * ListView.cs: remove a TODO. 
9057         * ThemeWin32Classic.cs: implement HideSelection support for ListView.
9058         [Fixes ListView part of #79166]
9059
9060 2006-08-28  Mike Kestner  <mkestner@novell.com>
9061
9062         * ListView.cs: move wheel handler to parent since it is focused
9063         instead of the item_control now.  [Fixes #79177]
9064
9065 2006-08-28  Mike Kestner  <mkestner@novell.com>
9066
9067         * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
9068         when the control is focused. [Fixes #79171]
9069
9070 2006-08-28  Mike Kestner  <mkestner@novell.com>
9071
9072         * ListView.cs: size the item and header controls for empty and
9073         unscrollable views.
9074         * ThemeWin32Classic.cs: draw disabled backgrounds.
9075         [Fixes #79187]
9076
9077 2006-08-28  Chris Toshok  <toshok@ximian.com>
9078
9079         * Form.cs: remove unused "active_form" static field.
9080
9081         * Hwnd.cs: lock around accesses to static windows collection.
9082
9083         * Application.cs: lock threads in Exit ().
9084
9085 2006-08-28  Chris Toshok  <toshok@ximian.com>
9086
9087         * NativeWindow.cs: lock around accesses to window_collection.
9088         
9089 2006-08-28  Chris Toshok  <toshok@ximian.com>
9090
9091         * Control.cs: err, fix this the right way, by locking on controls
9092         when using it.  not by making it synchronized.
9093
9094 2006-08-28  Chris Toshok  <toshok@ximian.com>
9095
9096         * Control.cs: make the static "controls" field synchronized, as it
9097         gets updated from multiple threads.
9098
9099 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
9100
9101         * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
9102           Prevent other threads from exiting when calling thread sets quit state.
9103         * XEventQueue.cs: Added PostQuitState property
9104
9105 2006-08-27  Chris Toshok  <toshok@ximian.com>
9106
9107         * AsyncMethodData.cs: add a slot for the window handle.
9108
9109         * XplatUIX11.cs (SendAsyncMethod): send the event to the right
9110         window (the destination control's window, not the foster window).
9111
9112         * Control.cs (BeginInvokeInternal): store the window's handle in
9113         the AsyncMethodData.
9114         
9115
9116 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
9117
9118         * XplatUIX11.cs:
9119           - PostQuitMessage: Removed resetting S.D display handle, we might have
9120             another loop started after calling PostQuitMessage (Fixes #79119)
9121           - Created destructor to reset S.D handle
9122
9123 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com> 
9124
9125         * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
9126
9127 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
9128
9129         * TextControl.cs (Insert): Update the caret position even if we don't
9130           have a handle yet, just don't call the driver in that case.
9131         * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
9132           to the end of the new selection text (Fixes #79184)
9133
9134 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
9135
9136         * Form.cs (Activate): Only activate if the handle is created)
9137         * Control.c:
9138           - Mark window as invisible when it's disposed
9139           - Check if window handle is created when setting window visible, 
9140             instead of relying just on the is_created variable
9141           - Check if object is disposed when creating the control (Fixes #79155)
9142
9143 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
9144
9145         * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
9146           when allowing layout again. Otherwise we re-generate the anchoring 
9147           distance to the border again and actually alter what the user wanted
9148           This is ugly, it'd be better if we used DisplayRectangle instead of
9149           ClientRectangle for Control.UpdateDistances, but that causes us to
9150           have other problems (initial anchoring positons would be wrong)
9151           (Fixes #78835)
9152
9153 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
9154
9155         * Control.cs:
9156           - The size and location setters shouldn't go directly to 
9157             SetBoundsCore, but to SetBounds, which triggers layout on the
9158             parent, then calls SetBoundsCore. (Related to fix for #78835)
9159           - SetBounds: Moved actual location update code into this function
9160             from SetBoundsCore, to match MS. Added call to PerformLayout if
9161             we have a parent (to trigger resizing of anchored parents if the 
9162             child size has changed (see testcase for #78835) 
9163         * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match 
9164           new control code
9165         * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
9166
9167 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
9168
9169         * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
9170           System.Drawing when a toplevel window gets closed; there might
9171           be other toplevel windows belonging to the same app (Fixes #78052)
9172
9173 2006-08-26  Alexander Olk  <alex.olk@googlemail.com>
9174
9175         * FileDialog.cs: After reading FileDialog settings from mwf_config
9176           use Desktop prefix only if a real folder doesn't exist anymore.
9177         * FontDialog.cs: Added char sets.
9178           It is now possible to select the font, size or style with the
9179           textboxes.
9180
9181 2006-08-25  Kornél Pál  <kornelpal@gmail.com>
9182
9183         * PrintPreviewDialog.cs: Use assembly name constants.
9184
9185 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
9186
9187         * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
9188           scrollbar from whacking it's buttons)
9189
9190 2006-08-24  Chris Toshok  <toshok@ximian.com>
9191
9192         * ScrollableControl.cs: fix #78271.  There's a lot of misc stuff
9193         in this patch (aggregating setting Left/Top/Width/Height to
9194         setting Bounds on the scrollbars), but the crux of the fix is in
9195         Recalculate, where we scroll by the remaining scroll_position if
9196         we're hiding a scrollbar.  The 2*$5 reward in the comment is
9197         serious.
9198
9199 2006-08-24  Jackson Harper  <jackson@ximian.com>
9200
9201         * MdiClient.cs:
9202         * MdiWindowManager.cs: If the form is made a non-mdi window we
9203         need to remove the form closed event so that closing forms works
9204         correctly.
9205
9206 2006-08-24  Jackson Harper  <jackson@ximian.com>
9207
9208         * Control.cs: Make IsRecreating internal so that the driver can
9209         check it
9210         - Temporarily remove the Hide when controls are removed, its
9211         making a whole bunch of things not work because visibility isn't
9212         getting reset elsewhere correctly
9213         * Form.cs: Need to do a full handle recreation when the mdi parent
9214         is set.
9215         * XplatUIX11.cs: If we are recreating handles don't dispose the
9216         HWNDs.  What was happening is the handles were being recreated in
9217         SendWMDestroyMessages, but then flow continued on in that method
9218         and destroyed the new handles.
9219
9220 2006-08-23  Jackson Harper  <jackson@ximian.com>
9221
9222         * Form.cs: MdiClient is always at the back of the bus
9223         * Control.cs: When the order of items in the collection is changed
9224         we need to reset the all_controls array
9225         - do the same sorta setup thats done when adding a control when a
9226         control is set on the collection.
9227
9228 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
9229
9230         * TextBoxBase.cs (get_Text): Return an empty array if our document
9231           is empty (fixes #79052)
9232
9233 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
9234
9235         * Control.cs: We should call IsInputChar on only on WM_CHAR but not
9236           on WM_SYSCHAR messages (fixes #79053)
9237
9238 2006-08-23  Chris Toshok  <toshok@ximian.com>
9239
9240         * DataGrid.cs: fix flickering when scrolling vertically.
9241
9242 2006-08-23  Chris Toshok  <toshok@ximian.com>
9243
9244         * DataGrid.cs (EndEdit): only invalidate the row header when we
9245         need to.
9246
9247 2006-08-23  Chris Toshok  <toshok@ximian.com>
9248
9249         * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
9250         methods.  fixes the flicker when scrolling around.
9251
9252 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
9253
9254         * FileDialog.cs: Making sure the control is created before we get a 
9255           chance to use it with BeginInvoke (Fixes #79096)
9256
9257 2006-08-23  Chris Toshok  <toshok@ximian.com>
9258
9259         * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
9260         width to use when painting the rows.
9261
9262 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
9263
9264         * TextBoxBase.cs:
9265           - Throw ArgumentException if a negative value is passed to SelectionLength
9266           - Update the selection end if start is moved. end needs to be always
9267             after start. (Fixes #79095)
9268           - Track selection length; MS keeps the selection length even if start
9269             is changed; reset on all other operations affection selection
9270
9271 2006-08-22  Jackson Harper  <jackson@ximian.com>
9272
9273         * TreeView.cs: Make sure both scrollbars get displayed and sized
9274         correctly when the other bar is visible.
9275         - Use the original clip rectangle for checking if the area between
9276         the two scrollbars is visible, not the viewport adjusted clipping
9277         rectangle.
9278
9279 2006-08-22  Jackson Harper  <jackson@ximian.com>
9280
9281         * Binding.cs: We don't use IsBinding because it requires the
9282         control to be created, which really shouldn't be necessary just to
9283         set a property on the control.
9284
9285 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9286
9287         * ComboBox.cs: Some CB.ObjectCollection methods must throw
9288         ArgumentNullReferenceException when the argument is null.
9289
9290 2006-08-21  Jackson Harper  <jackson@ximian.com>
9291
9292         * Timer.cs: Track the thread that the timer is started in (NOT
9293         CREATED), this way messages for it will only be triggered on its
9294         queue.
9295         * XEventQueue.cs: Track the timers here, this makes timers per
9296         thread, like MS.
9297         * XplatUIX11.cs: The timers are moved to the XEventQueue.
9298
9299 2006-08-19  Chris Toshok  <toshok@ximian.com>
9300
9301         * XplatUIX11.cs: after further communication with pdb, we get the
9302         best of both worlds.  SetZOrder working for un-Mapped windows, and
9303         no X errors for un-mapped windows.
9304
9305 2006-08-19  Chris Toshok  <toshok@ximian.com>
9306
9307         * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
9308         as it was causing pdn toolbars to not have the correct stacking.
9309
9310 2006-08-18  Mike Kestner  <mkestner@novell.com> 
9311
9312         * ListView.cs : guard against negative ClientArea.Width in scrollbar
9313         calculation.  Not sure why control should ever be setting a negative
9314         width though.  Fixes #78931.
9315
9316 2006-08-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9317
9318         * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
9319         null items in ObjectCollection class.
9320         * ListBox.cs.: Likewise.
9321
9322 2006-08-18  Atsushi Enomoto  <atsushi@ximian.com>
9323
9324         * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
9325           as the base method in ThemeWin32Classic should work fine.
9326           Fixed bug #78607.
9327
9328 2006-08-18  Jackson Harper  <jackson@ximian.com>
9329
9330         * Binding.cs: When validating if the value entered doesn't convert
9331         properly reset to the old value.
9332         * RadioButton.cs: Don't fire click when we get focus.
9333
9334 2006-08-18  Jackson Harper  <jackson@ximian.com>
9335
9336         * FileDialog.cs: Paint the selection on the directory combobox the
9337         same way as on MS. 
9338
9339 2006-08-17  Jackson Harper  <jackson@ximian.com>
9340
9341         * ErrorProvider.cs: Don't allow the error control to be selected.
9342         * Control.cs: Don't send the SetFocus messages, the control
9343         activation will do this, and if we do it blindly here validation
9344         does not work.
9345
9346 2006-08-17  Jackson Harper  <jackson@ximian.com>
9347
9348         * Control.cs:
9349         * ContainerControl.cs: Make validation events fire in the correct
9350         order.  TODO: For some reason the first validation event is not
9351         getting fired.
9352
9353 2006-08-17  Mike Kestner  <mkestner@novell.com> 
9354
9355         * ComboBox.cs : some null guarding for ComboListBox.Scroll.
9356
9357 2006-08-17  Mike Kestner  <mkestner@novell.com> 
9358
9359         * ComboBox.cs : implement scroll wheel support for popped-down
9360         state. Fixes #78945. 
9361
9362 2006-08-17  Jackson Harper  <jackson@ximian.com>
9363
9364         * TreeView.cs: Specify treeview actions (old patch that didn't get
9365         committed for some reason).
9366         - Don't let the mouse wheel scroll us too far.  Just want to make
9367         the bottom node visible, not scroll it all the ways to the top.
9368
9369 2006-08-17  Jackson Harper  <jackson@ximian.com>
9370
9371         * XplatUIX11.cs: Mouse wheel events go to the focused window.
9372
9373 2006-08-17  Mike Kestner  <mkestner@novell.com> 
9374
9375         * ComboBox.cs : don't do mouseover selection in simple mode.
9376
9377 2006-08-16  Jackson Harper  <jackson@ximian.com>
9378
9379         * Form.cs: Fire the closing events for all the mdi child windows
9380         when a window is closed.  If the cancel args are set to true, the
9381         main window still gets the event fired, but it doesn't not close.
9382         * MdiWindowManager.cs: Do this closing cleanup in a Closed
9383         handler, instead of when the button is clicked, so cancelling the
9384         close works correctly.
9385         * ComboBox.cs: Send the mouse down to the scrollbar.
9386
9387 2006-08-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9388
9389         * ListBox.cs: When passing 'null' to SelectedItem,
9390         set SelectedIndex to -1, to unselect items. This is the
9391         observed behaviour in .Net.
9392
9393 2006-08-16  Peter Dennis Bartok  <pbartok@novell.com> 
9394
9395         * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
9396           MS flags saying there won't be any. (fixes #78800)
9397         * Control.cs (HandleClick): Made virtual
9398
9399 2006-08-16  Atsushi Enomoto  <atsushi@ximian.com>
9400
9401         * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
9402           cultures. Fixed bug #78399.
9403
9404 2006-08-16  Jackson Harper  <jackson@ximian.com>
9405
9406         * Form.cs: Use the MdiClients MdiChildren property to access
9407         MdiChildren instead of creating the array from the child controls.
9408         * MdiClient.cs: Maintain a separate array of the mdi children, so
9409         that insertion order is maintained when the Z-order is changed.
9410
9411 2006-08-16  Mike Kestner  <mkestner@novell.com> 
9412
9413         * ListView.cs : add an ItemComparer and default to it for sorting.
9414         Fixes #79076, but sorting needs a complete overhaul to be compat with
9415         MS.
9416
9417 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
9418
9419         * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
9420
9421 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
9422
9423         * Hwnd.cs (Mapped): Properly traverse the tree
9424
9425 2006-08-15  Chris Toshok  <toshok@ximian.com>
9426
9427         * Binding.cs: fix PullData/SetPropertyValue.  We don't want to
9428         pass manager.Current.GetType() to ParseData.  It has to be the
9429         property type.  So, hold off doing the ParseData until we're in
9430         SetPropertyValue where we know the type.  This fixes the crash in
9431         #78821 but the textbox is still empty.
9432
9433 2006-08-15  Chris Toshok  <toshok@ximian.com>
9434
9435         * DataGrid.cs:
9436         - when we're scrolling, only call Edit() again if the
9437         current cell is still unobscured. Fixes bug #78927.
9438         - when handling mousedown on a cell, ensure the cell is visible
9439         before calling Edit.
9440         - remove the properties from DataGridRow, and remove the
9441         DataGridParentRow class altogether.
9442         
9443
9444 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
9445
9446         * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
9447           fire OnTextChanged by ourselves. There's no point calling base,
9448           we don't set the base value anywhere else. Fixes #78773.
9449
9450 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9451
9452         * ListBox.cs: Call CollectionChanged when modifying
9453         an item from Items indexer, to update the actual items
9454         in the list box.
9455
9456 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9457
9458         * PrintDialog.cs: Small fixes for focus and a pair of checks,
9459         to match .Net behaviour.
9460
9461 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
9462
9463         * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
9464
9465 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
9466
9467         * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
9468
9469 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
9470
9471         * MessageBox.cs: Prevent potential NRE exception.
9472         * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
9473
9474 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
9475
9476         * MessageBox.cs: Calculate the owner of a messagebox, also make
9477           it topmost. Fixes #78753
9478
9479 2006-08-14  Chris Toshok  <toshok@ximian.com>
9480
9481         * XplatUIX11.cs: A couple of fixes so that metacity will let us
9482         programmatically move windows.  first, set the PPosition hint as
9483         well as the USPosition hint.  Second include some code from pdb
9484         that sets the window type to NORMAL when we set the transient for
9485         hint.  This is because, in the absence of a window type, metacity
9486         thinks any window with TransientFor set is a dialog, and refuses
9487         to let us move it programmatically.  fascists.
9488
9489 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
9490
9491         * XplatUIX11.cs: When setting normal hints, take into consideration
9492           an different hints previously set so we don't delete them (fixes #78866)
9493
9494 2006-08-12  Chris Toshok  <toshok@ximian.com>
9495
9496         * ToolBarButton.cs: make Layout return a boolean, if something to
9497         do with the button's layout changed.
9498
9499         * ToolBar.cs:
9500         - add another parameter to Redraw, @force, which all existing
9501           calls set to true.
9502         - make the Layout function return a boolean which is true if the
9503           layout has actually changed.  Redraw now uses this (and @force)
9504           to determine when to invalidate.  At present the only place
9505           where @force can be false is the call from OnResize, when
9506           background_image == null.  So, resizing a toolbar when the
9507           layout doesn't change results in no drawing.
9508
9509 2006-08-12  Chris Toshok  <toshok@ximian.com>
9510
9511         * ThemeWin32Classic.cs: fix the bottom right corner painting.  had
9512         the VScrollBar and HScrollbar reversed.  oops.
9513
9514         * DataGrid.cs: fix the logic that assigns sizes to the implicit
9515         scrollbars.  we were assigning them twice (once in
9516         Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
9517         therefore causing two scrollbar resizes (and redraws?) to happen
9518         per grid resize.
9519
9520 2006-08-12  Chris Toshok  <toshok@ximian.com>
9521
9522         * ToolBarButton.cs: redraw the entire button if the theme tells us
9523         to.
9524
9525         * Theme.cs: add ToolBarInvalidateEntireButton.
9526
9527         * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
9528         buttons, just the border.
9529
9530         * ThemeNice.cs: redraw the entire toolbar button since we need to
9531         draw the highlight image.
9532
9533         * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
9534         we need to redraw the entire button (not just the border).
9535
9536 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
9537
9538         * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
9539           for vertical bars. Fixes the mismatches shown by #78513
9540
9541 2006-08-11  Alexander Olk  <alex.olk@googlemail.com>
9542
9543         * FileDialog.cs: If a saved/remembered path doesn't exist
9544           anymore, fall back to "Desktop".
9545
9546 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
9547
9548         * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
9549           parent. It's apparently legal to not have one
9550         * XplatUIX11.cs:
9551           - SetZOrder: Don't try to set Z-Order on an unmapped window
9552           - CreateWindow: 0,0 are legal coordinates for a window. don't move
9553             it unless the coordinates are negative
9554
9555 2006-08-10  Mike Kestner  <mkestner@novell.com>
9556
9557         * ListControl.cs: allow null for DataSource.  Clear DisplayMember
9558         when setting to null per msdn docs.  Fixes #78854.
9559
9560 2006-08-10  Chris Toshok  <toshok@ximian.com>
9561
9562         * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
9563         flickering by setting a clip rectangle on the Graphics when we
9564         need to redraw just a particular menuitem.  Also, rename "OnClick"
9565         to "OnMouseDown" to reflect what it actually is.
9566         
9567         * Form.cs: track the OnMouseDown change.
9568
9569 2006-08-10  Peter Dennis Bartok  <pbartok@novell.com>
9570
9571         * CommonDialog.cs: Properly inherit the CreateParams from the form
9572           and only change what we need. Fixes #78865
9573
9574 2006-08-10  Chris Toshok  <toshok@ximian.com>
9575
9576         * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
9577         flickering in flat mode (and most of the flickering in general) by
9578         only invalidating the button border (and not the entire rectangle)
9579         when the state changes.  A couple of cases still flicker:
9580         ToggleButtons, and the dropdown arrow case when the user mouse
9581         ups.
9582
9583 2006-08-10  Alexander Olk  <alex.olk@googlemail.com>
9584
9585         * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
9586           for german keyboards. Numlock state shouldn't affect the behaviour
9587           of the Del key. Fixes bug #78291.
9588
9589 2006-08-10  Chris Toshok  <toshok@ximian.com>
9590
9591         * ListControl.cs: remove the items.Clear line from BindDataItems,
9592         as this is the first thing done by both subclasses in their
9593         SetItemsCore overrides.  Also, add a ItemChanged handler, and when
9594         passed -1, refresh the list.  This gets databinding working when
9595         the datasource is set on the list before the datasource is
9596         populated (as in wf-apps/ReportBuilder.)
9597
9598         * ComboBox.cs: remove the argument to BindDataItems.  This call
9599         should really go away, and be initiated by the ListControl code.
9600
9601         * ListBox.cs: same.
9602
9603 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
9604
9605         * TextControl.cs (Document.ctor): Initialize caret so we don't crash
9606           if no data is in the document when the control is displayed
9607
9608 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com> 
9609
9610         * TextBoxBase.cs: Don't try moving the caret if we don't have a window
9611           yes (fixes #78806)
9612         * TextControl.cs: 
9613           - PositionCaret: Allow positioning of caret but don't call methods 
9614             requiring a handle if the window isn't created yet
9615           - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
9616           - owner_HandleCreated: Don't position the caret, just update it's 
9617             location. User might have already set a different position
9618
9619 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
9620
9621         * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
9622           windows. Screws up the returned coordinates for child windows. 
9623           Fixes #78825. I'm hoping this doesn't break something, since the
9624           code was explicitly put in 8 months ago, but no bug was attached.
9625           Menus still seem to work properly.
9626
9627 2006-08-08  Chris Toshok  <toshok@ximian.com>
9628
9629         * DataGrid.cs: make BeginInit/EndInit actually do what they're
9630         supposed to do - delay data binding until the EndInit call.  Also,
9631         make the table style collection's CollectionChangeAction.Refresh
9632         work properly.
9633
9634         * GridTableStylesCollection.cs: raise a CollectionChangeEvent
9635         (with action = Refresh) when a consituent table's MappingName is
9636         changed.
9637
9638 2006-08-08  Chris Toshok  <toshok@ximian.com>
9639
9640         * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
9641         Invalidate, since changing the text can change the size of the all
9642         toolbar buttons.
9643
9644 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
9645
9646         * Form.cs (AddOwnedForm): Still need to add the form to our listif
9647           we don't have it yet
9648
9649 2006-08-08  Chris Toshok  <toshok@ximian.com>
9650
9651         * PrintControllerWithStatusDialog.cs: don't .Close() the status
9652         dialog, as this causes X errors later on, since we actually
9653         destroy the window.  Instead, .Hide() it.
9654
9655 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
9656
9657         * ComboBox.cs: Added focus reflection for popup window
9658         * XplatUIX11.cs: 
9659           - Removed transient setting for non-app windows for now, not sure it
9660             was needed
9661           - Fixed logic checking if we have captions when deciding 
9662             override_redirect, WS_CAPTION is two bits and a 0 check was not
9663             sufficient
9664           - Removed the WINDOW_TYPE stuff, it was unneeded and making things
9665             complicated
9666         * Form.cs: 
9667           - AddOwnedForm: Don't just add the form to the list, call the property
9668             to ensure the driver is informed about the ownership as well
9669           - CreateHandle: Set the TopMost status in the driver if we have an owner
9670         * XplatUI.cs: Fixed debug statement
9671
9672 2006-08-08  Jonathan Pobst <monkey@jpobst.com>
9673         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
9674           GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
9675           ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs, 
9676           TrackBarRenderer.cs: Make constructor private.
9677         * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
9678         * ProfessionalColorTable.cs: Make properties virtual.
9679
9680 2006-08-06  Duncan Mak  <duncan@novell.com>
9681
9682         * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
9683         is not changing.
9684
9685 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
9686         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
9687           GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
9688           ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
9689           TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
9690           Initial import of new 2.0 classes.
9691
9692 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
9693         * Application.cs: Add 2.0 VisualStyles properties.
9694
9695 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
9696         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
9697           XplatUIX11.cs: Create property to allow access to existing private
9698           variable "themes_enabled"
9699
9700 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
9701
9702         * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
9703         file size, as otherwise our class libraries fail using windows. Fixes
9704         bug #78759.
9705
9706 2006-08-04  Jackson Harper  <jackson@ximian.com>
9707
9708         * Form.cs:
9709         * XplatUIX11.cs: Move the toolwindow window manager creation into
9710         the X11 driver, this way on win32 we can let windows create/handle
9711         the toolwindows.
9712
9713 2006-08-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9714
9715         * PrintDialog.cs: Remove some redundant checks, add some others,
9716         clean some code, and move the focus to the text boxes when the
9717         values are incorrect.
9718
9719 2006-08-04  Alexander Olk  <alex.olk@googlemail.com>
9720
9721         * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
9722
9723 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
9724
9725         * NumericUpDown.cs: Setting the Minimum and Maximum is now
9726           handled correctly. Fixes bug #79001.
9727
9728 2006-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9729
9730         * PrintDialog.cs: The "Copies" numeric up down must have
9731         set the Minimum property to 1; only if the value is bigger
9732         than 1, activate "Collate" check box. This is the behaviour of .Net.
9733         Also modify the Document elements only if it is not null.
9734
9735 2006-08-03  Jackson Harper  <jackson@ximian.com>
9736
9737         * TreeNodeCollection.cs: Fix copyto to use the correct nodes
9738         length. (We have a larger array then actual node count).
9739                 
9740 2006-08-03  Jackson Harper  <jackson@ximian.com>
9741
9742         * ComboBox.cs: Don't show selection by default.
9743         - The SelectAll isn't needed here, since the focus code should do
9744         that
9745         - DDL style lists to manual selection drawing, so when they
9746         get/lose focus they have to invalidate.
9747
9748 2006-08-03  Peter Dennis Bartok  <pbartok@novell.com>
9749
9750         * TextBoxBase.cs: Don't always show all selections by default.
9751
9752 2006-08-03  Jonathan Pobst  <monkey@jpobst.com>
9753         * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
9754           HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
9755           Fixed various typos.
9756
9757 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
9758
9759         * Control.cs: Removing the controls in a ControlCollection with
9760           Clear now hides the controls as expected. Fixes bug #78804. 
9761
9762 2006-08-03  Jackson Harper  <jackson@ximian.com>
9763
9764         * Control.cs: Revert previous focus patch, it breaks reflector.
9765
9766 2006-08-03  Jackson Harper  <jackson@ximian.com>
9767
9768         * ComboBox.cs: Cleanup selection and focus with the combobox.
9769         This also eliminates some duplicated keyboard code, since now
9770         everything is handled by the main class.
9771         - Make list selection work on mouse up instead of down, to match
9772         MS.
9773
9774 2006-08-02  Jackson Harper  <jackson@ximian.com>
9775
9776         * Control.cs: Setting focus needs to go through the whole
9777         selection mechanism.
9778
9779 2006-08-02  Chris Toshok  <toshok@ximian.com>
9780
9781         * PrintPreviewDialog.cs: change MinimumSize to use
9782         base.MinimumSize so it works.
9783
9784 2006-08-02  Peter Dennis Bartok  <pbartok@novell.com>
9785
9786         * TextControl.cs:
9787           - UpdateCaret: Added sanity check in case caret isn't defined yet
9788           - Line.Delete: Now updating selection and caret markers if we're
9789             transfering a node (Properly fixes #78323)
9790           - SetSelectionEnd: Added sanity check
9791         * TextBoxBase.cs: Removed broken attempt to fix #78323
9792
9793 2006-08-01  Chris Toshok  <toshok@ximian.com>
9794
9795         * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
9796         Close() call is handled in Form, not here.
9797
9798 2006-08-01  Chris Toshok  <toshok@ximian.com>
9799
9800         * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
9801         layout/rendering.
9802
9803         * PrintPreviewDialog.cs: add scrollbars, and add an image cache
9804         for sizes < 100% zoom.  The code now aggressively attempts to keep
9805         from calling document.Print (), and tries not to use the scaling
9806         g.DrawImage whenever possible (it still does if you scale to >
9807         100%, since usually that involves huge images).
9808
9809         * PrintPreviewControl.cs: hook up the close button.
9810
9811 2006-08-01  Jonathan Pobst  <monkey@jpobst.com>
9812         * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
9813           ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
9814           ItemDragEventHandler.cs, LabelEditEventHandler.cs,
9815           LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
9816           MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
9817           PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
9818           SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
9819           Removed [Serializable] for 2.0 Event Handlers.
9820
9821 2006-07-31  Jackson Harper  <jackson@ximian.com>
9822
9823         * TextBoxBase.cs: Make ShowSelection invalidate when changed.
9824         * TextControl.cs: Uncomment out the body of this method.
9825
9826 2006-07-31  Alexander Olk  <alex.olk@googlemail.com>
9827
9828         * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
9829           standard cursors.
9830
9831 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
9832
9833         * TextBoxBase.cs: Added internal property ShowSelection to allow controls
9834           that embed TextBox and need selections visible even if textbox is not
9835           focused to enforce that behaviour.
9836         * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
9837           selection drawing
9838
9839 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
9840
9841         * TextControl.cs:
9842           - Added new SetSelectionStart/SetSelectionEnd overloads
9843           - Fixed viewport width assignment to be accurate
9844           - Adjusted alignment line shift calculations to allow cursor on right
9845             aligned lines to be always visible at the right border (like MS)
9846         * TextBoxBase.cs:
9847           - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
9848           - TextBoxBase_SizeChanged: recalculating canvas on size changes
9849           - CalculateScrollBars: Use ViewPort size instead of window size, to
9850             properly consider space occupied by the border and scrollbars 
9851             (Fixes #78661)
9852           - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll 
9853             calculations; no longer leaves artifacts
9854           - CaretMoved: Adjusted window scrolling to match MS and fixed several
9855             calculation bugs (Still missing right/center align calculations)
9856
9857 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com> 
9858
9859         * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
9860           use of both scroll rect and clip rect, as they do the same.
9861
9862 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
9863
9864         * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key 
9865           in the event handler (fixes #78912)
9866
9867 2006-07-31  Chris Toshok  <toshok@ximian.com>
9868
9869         * ThemeWin32Classic.cs: use grid.RowsCount here instead of
9870         grid.ListManager.Count, since grid.ListManager might be null.
9871         This of course begs the question "why are we drawing rows for a
9872         grid with no list manager (and therefor no rows)?"  Fixes the
9873         crash in bug #78929.
9874
9875 2006-07-31  Chris Toshok  <toshok@ximian.com>
9876
9877         * RelatedPropertyManager.cs: Don't always chain up to the parent
9878         ctor.  instead, call SetDataSource if the parent's position is !=
9879         -1.  Fixes the crash in #78822.
9880
9881 2006-07-31  Chris Toshok  <toshok@ximian.com>
9882
9883         * DataGrid.cs (get_ListManager): use field instead of property
9884         accessors for datasource and datamember.
9885         (RowsCount): make internal again.
9886         (OnMouseDown): end edits before resizing columns/rows.
9887         (OnMouseUp): restart edits after resizing columns/rows.
9888
9889 2006-07-30  Peter Dennis Bartok  <pbartok@novell.com>
9890
9891         * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
9892           This fixes the situation where the last set cursor is displayed
9893           whenever the mouse is over scrollbars.
9894
9895 2006-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9896
9897         * PrintDialog.cs: Fix the behaviour of PrinterSettings and
9898         Document properties, as well as initial values.
9899
9900 2006-07-29  Peter Dennis Bartok  <pbartok@novell.com>
9901
9902         * XplatUIWin32.cs (SetBorderStyle): Setting both border
9903           and ClientEdge results in a 3-pixel border, which is
9904           wrong.
9905
9906 2006-07-28  Jackson Harper  <jackson@ximian.com>
9907
9908         * TreeNodeCollection.cs: Fix the clear method.
9909         - Fix the Shrink also
9910
9911 2006-07-27  Jackson Harper  <jackson@ximian.com>
9912
9913         * TreeView.cs: Make sure the visible order is computed when we
9914         attempt to size the scrollbars (for trees that mess with the
9915         scrolling when they shouldn't.
9916         - Make sure to give the scrollbars valid values.
9917
9918 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
9919
9920         * XplatUIX11.cs: Move motion compression code to where it
9921           has less performance impact
9922
9923 2006-07-26  Jackson Harper  <jackson@ximian.com>
9924
9925         * UpDownBase.cs: When the control is selected make the child
9926         controls non selectable, so that a click on them won't do a
9927         focus/unfocus cycle.
9928         - Don't give focus to the text box when the spinner is selected.
9929         * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
9930
9931 2006-07-26  Chris Toshok  <toshok@ximian.com>
9932
9933         * ThemeWin32Classic.cs: add print preview rendering.  I'm not
9934         satisfied with this solution.  If the bitmaps are small, we should
9935         just cache them in the PrintPreviewDialog and draw them here.
9936         Also, the layout is broken for the 2-up and 3-up cases.
9937
9938         * Theme.cs: add PrintPReviewControlPaint.
9939
9940         * PrintPreviewDialog.cs: first pass implementation.
9941
9942         * PrintPreviewControl.cs: first pass implementation.  No
9943         scrollbars yet.
9944
9945         * PrintDialog.cs: only validate fields if that particular portion
9946         of the UI is enabled.  Also, set the document's controller to a
9947         PrintControllerWithStatusDialog wrapping the document's print
9948         controller.
9949
9950         * PrintControllerWithStatusDialog.cs: if we're printing to a file,
9951         bring up a SaveFileDialog (i hope we don't want to match the
9952         behavior of the crappy windows file entry) and set the
9953         PrinterSettings.PrintFileName accordingly.
9954
9955 2006-07-26  Jackson Harper  <jackson@ximian.com>
9956
9957         * ContainerControl.cs: Add a field that disables auto selecting
9958         the next control in a container when the container is activated.
9959         * UpDownBase.cs: Don't select the text box when the up down is
9960         selected.
9961
9962 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
9963
9964         * XEventQueue.cs: Added methods for peeking (used for compression
9965           of successive events)
9966         * XplatUIX11.cs (GetMessage): We're now compressing consecutive
9967           mouse move events (fixes #78732)
9968
9969 2006-07-25  Jackson Harper  <jackson@ximian.com>
9970
9971         * UpDownBase.cs: Use an internal class for the textbox so that we
9972         can control focus.  the updown control should always have focus,
9973         if either the text area or the buttons are clicked.
9974         - Send the key messages to the textbox, since it never actually
9975         has focus
9976         - Activate and decativate the textbox caret.
9977
9978 2006-07-24  Jackson Harper  <jackson@ximian.com>
9979
9980         * Control.cs: Use the directed select when selecting a control,
9981         this way the container controls override will get called and the
9982         whole ActiveControl chain will get triggered.  TODO: probably need
9983         to make sure this gets done everywhere instead of the old
9984         Select(Control).
9985         * ContainerControl.cs: Implement the directed Select method to
9986         find and activate the correct child control.    
9987         
9988 2006-07-22  Mike Kestner  <mkestner@novell.com>
9989
9990         * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
9991         menu handling code so that clicks without a grab work too.
9992         [Fixes #78914]
9993
9994 2006-07-22  Alexander Olk  <alex.olk@googlemail.com>
9995
9996         * FileDialog.cs: Enable the BackButton when dirstack has one element.
9997           Added some small optimizations.
9998
9999 2006-07-21  Matt Hargett  <matt@use.net>
10000
10001         * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
10002
10003 2006-07-21  Peter Dennis Bartok  <pbartok@novell.com> 
10004
10005         * Control.cs (GetNextControl): Fixes to make all of Jackson's unit 
10006           tests pass and match MS in some strange border cases.
10007
10008 2006-07-21  Chris Toshok  <toshok@ximian.com>
10009
10010         * ThemeWin32Classic.cs: handle drawing of the relation links and
10011         parent row buttons.
10012
10013         * Theme.cs: change args to DataGridPaintParentRow.
10014
10015         * DataGrid.cs: Don't use controls for the relation links and
10016         parent buttons, so we have to handle all their interactions in
10017         MouseMove, MouseDown, MouseUp, etc.  Also, store a lot more stuff
10018         when we're navigating through child tables, so we can reinstate
10019         selection, expanded state, current cell, etc.
10020
10021 2006-07-20  Chris Toshok  <toshok@ximian.com>
10022
10023         * ToolBar.cs: When we redraw a button, for whatever reason,
10024         there's no reason to redraw the entire toolbar.  Also, don't call
10025         Control.Refresh from within Redraw, as it's much heavier than
10026         Invalidate (which is really what we want).
10027
10028 2006-07-20  Chris Toshok  <toshok@ximian.com>
10029
10030         * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
10031         DataGridTextBoxColumn.cs, DataGridTextBox.cs,
10032         ThemeWin32Classic.cs, ListControl.cs: After staring at stack
10033         traces from within a debug IBindingList datasource
10034         (in mono/winforms/datagrid) for *days*, I've finally gotten things
10035         to work in a similar fashion.
10036
10037 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10038
10039         * ListBox.cs: Don't call Sort () when setting 
10040         the Sorted property to false (avoid an unnecessary sort).
10041
10042 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10043
10044         * ListControl.cs: DataSource should throw an ArgumentException
10045         instead of a normal exception when the argument is not of the 
10046         correct type.
10047
10048 2006-07-20  Mike Kestner  <mkestner@novell.com>
10049
10050         * Control.cs: add InternalPreProcessMessage to allow us to steal
10051         key events before MWF gets its paws on them.  Adapted from a
10052         suggestion by eno.
10053         * ToolBar.cs: add GotLostFocus handing for flat toolbars, with 
10054         up/down/left/right navigation. Override the new internal control
10055         method to steal the events since they never make it to WndProc.
10056         * ToolBarButton.cs: don't worry about pushed when setting hilight
10057         since the drawing code prefers pushed to hilight. Invalidate on 
10058         Hilight changes. Fixes #78547 and #78525.
10059
10060 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
10061
10062         * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
10063           the canvas size. Fixes #78868
10064
10065 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com>
10066
10067         * Splitter.cs: Track requested split position until first layout
10068           is performed. Fixes #78871
10069
10070 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
10071
10072         * Application.cs: Removed code that forces 1.x for the version
10073           number if the version started with 0. Not sure why that code was
10074           there and I couldn't find any bugs that indicated we needed it.
10075           Fixes #78869
10076
10077 2006-07-20  Alexander Olk  <alex.olk@googlemail.com>
10078
10079         * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
10080           ResetDefaults(), just write some output to the console until it's
10081           implemented. Fixes bug #78907 for now. Eliminated two warnings.
10082
10083 2006-07-19  Jonathan Chambers  <joncham@gmail.com>
10084
10085         * PropertyGridView.cs: set StartPosition of drop down forms
10086         so they appear in correct initial spot.  Fixes #78190.
10087
10088 2006-07-19  Mike Kestner  <mkestner@novell.com>
10089
10090         * ThemeWin32Classic.cs: use parent background color when drawing
10091         flat toolbars.  Restructure the conditionals to make sure non-flat
10092         non-Divider toolbars are filled too.  Fixes #78837.
10093
10094 2006-07-19  Mike Kestner  <mkestner@novell.com>
10095
10096         * ListBox.cs: Sort on collection changes even if the handle
10097         isn't created yet.  Fixes #78813.
10098
10099 2006-07-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10100
10101         * ListControl.cs: DisplayMember should never be null,
10102         and now we assign String.Empty when null is passed to it (this
10103         is the .Net way).
10104
10105 2006-07-17  Mike Kestner  <mkestner@novell.com>
10106
10107         * ListViewItem.cs: restructure Font and subitem Font handling 
10108         to hold a specific font and refer back to owner on null.
10109         Fixes #78761.
10110
10111 2006-07-17  Mike Kestner  <mkestner@novell.com>
10112
10113         * ToolBar.cs: bandaid for side-effect of previous patch which was
10114         discarding explicit heights for non-AutoSize toolbars.  Need to
10115         extend my format tester to deal with AutoSize=false. Fixes #78864.
10116
10117 2006-07-15  Jackson Harper  <jackson@ximian.com>
10118
10119         * LabelEditTextBox.cs:
10120         * TreeView.cs: Use a new LabelEdit class for node editing, this
10121         class automatically 'closes' itself when it gets the enter key or
10122         loses focus.
10123         - Use the client rectangle when setting the trees scrollbars, so
10124         border style is taken into account.
10125         
10126 2006-07-14  Jackson Harper  <jackson@ximian.com>
10127
10128         * TreeNode.cs:
10129         * TreeView.cs: Make the editing work similar to MSs, firing the
10130         events correctly and ending edits correctly.
10131
10132 2006-07-14  Mike Kestner  <mkestner@novell.com>
10133
10134         * ToolBarButton.cs:
10135         * ToolBar.cs: layout restructuring and redraw enhancements to support
10136         formatting changes gracefully, like setting TextAlign, ImageList, 
10137         ButtonSize, and Appearance.  Handles explicit button sizing quirks
10138         of the MS controls.  Things like flat toolbars ignoring button size
10139         but becoming constant sized at the largest button's size.  Normal
10140         toolbars with an image set cannot be shrunk smaller than the image,
10141         but text can be clipped/ignored.
10142         * ThemeWin32Classic.cs: don't draw text if text_rect height or width
10143         is zero.  Seems like DrawString should be smart enough to not put
10144         anything on screen though. Also trim labels and ellipsize at the char
10145         boundary, not word.
10146         Fixes #78711 and #78483.
10147
10148 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
10149
10150         * FolderBrowserDialog.cs: Disable "New Folder" button and
10151           "New Folder" contextmenu menuitem if a folder like "My Computer"
10152           is selected.
10153
10154 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
10155
10156         * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
10157         * FolderBrowserDialog.cs:
10158           - Use MWFConfig to store and read size and position settings
10159           - Added code to create a new folder (button or context menu).
10160             Use TreeView labeledit to change the name of the new folder.
10161
10162 2006-07-14  Jackson Harper  <jackson@ximian.com>
10163
10164         * TreeView.cs: Raise the OnAfterLabelEdit event correctly.  Also,
10165         when the tree is scrolled we end editing.
10166
10167 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
10168
10169         * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
10170           Down arrows
10171
10172 2006-07-14  Jonathan Pobst  <monkey@ipobst.com> 
10173
10174         WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
10175         BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
10176         BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
10177         CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
10178         ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
10179         ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
10180         ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
10181         FormClosedEventHandler.cs, FormClosingEventArgs.cs,
10182         FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
10183         ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
10184         ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
10185         ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
10186         ListViewItemSelectionChangedEventHandler.cs,
10187         ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
10188         ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
10189         MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
10190         PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
10191         PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
10192         RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
10193         SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
10194         SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs, 
10195         TabControlCancelEventHandler.cs, TabControlEventArgs.cs, 
10196         TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
10197         TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
10198         ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
10199         ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
10200         TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
10201         TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
10202         TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
10203         WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
10204         WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
10205         WebBrowserNavigatingEventHandler.cs, 
10206         WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
10207
10208 2006-07-14  Jonathan Pobst  <monkey@ipobst.com>
10209
10210         MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
10211         RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
10212         SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
10213         TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
10214         ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
10215         ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
10216         ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
10217         ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
10218         ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
10219         ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
10220         ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
10221         ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
10222         TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
10223         WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
10224         ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
10225         AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
10226         BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
10227         ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
10228         FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
10229         HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
10230         ListViewItemStates.cs, MaskFormat.cs: Added
10231
10232 2006-07-13  Jonathan Chambers  <joncham@gmail.com>
10233
10234         * PropertyGridView.cs: Fix keyboard navigation of drop down.
10235         Patch from eno for bug 78558.
10236         
10237 2006-07-13  Jackson Harper  <jackson@ximian.com>
10238
10239         * TreeView.cs: When an edit is finished make sure that the
10240         selected node is visible.
10241         - When setting the top/bottom use the scrollbars is_visible, so
10242         everything will be set correctly even if the tree isn't visible
10243         yet.
10244
10245 2006-07-13  Jackson Harper  <jackson@ximian.com>
10246
10247         * ComboBox.cs: Revert the item->index part of my previous patch.
10248         * TreeView.cs: Use LostFocus instead of Leave for detecting when
10249         the edit box has lost focus (duh).
10250         - Just make the edit box not visible when we get return, that will
10251         take the focus, which will call EndEdit
10252         * TreeNode.cs When we start editing, notify the treeview.
10253
10254 2006-07-12  Jackson Harper  <jackson@ximian.com>
10255
10256         * ComboBox.cs: Clear out old items before setting the item list.
10257         This prevents databound controls from having their items added
10258         twice.
10259         - Switch the combobox to use indices whereever possible instead of
10260         using Item's.  This allows usto navigate through lists that have
10261         more then one item with the same string value (ie a, b, b, a).
10262         - Scroll the listboxes scrollbar when a non visible item is
10263         highlighted
10264         - Allow keypress to cycle through all the possible values. For
10265         example if you have b1, b2, b3 and hold down the B key all the
10266         values will be cycled through.
10267         
10268 2006-07-12  Jackson Harper  <jackson@ximian.com>
10269
10270         * TextBoxBase.cs:
10271         * ListView.cs: Don't need to override SETFOCUS anymore, we can do
10272         this using the internal methods.
10273         * Control.cs: Add OnGotFocusInternal.  A new method that allows
10274         controls to "override" OnGotFocus and change focus behavior if
10275         needed.
10276         - Same thing for LostFocus
10277         * ComboBox.cs: Pass off focus to the text control properly.
10278
10279 2006-07-12  Alexander Olk  <alex.olk@googlemail.com>
10280
10281         * FileDialog.cs: Added GetFoldersOnly to MWFVFS
10282         * FolderBrowserDialog.cs: Almost a complete rewrite.
10283           - Better support for Environment.Specialfolders
10284           - Added support for MWFVFS
10285           - Made setting SelectedPath work
10286
10287 2006-07-12  Jackson Harper  <jackson@ximian.com>
10288
10289         * Control.cs: Optimze getting all the controls.
10290
10291 2006-07-11  Jackson Harper  <jackson@ximian.com>
10292
10293         * ContainerControl.cs: Override SETFOCUS in the container control,
10294         so that it is not selected on mouse click.
10295
10296 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com> 
10297
10298         * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel. 
10299           Hopefully we will have a better way once all of focus is complete.
10300
10301 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com>
10302
10303         * ThemeWin32Classic.cs: Commented out some debug code and fixed
10304           a compile error with csc.
10305
10306 2006-07-11  Jackson Harper  <jackson@ximian.com>
10307
10308         * Control.cs: When hiding a control only select the next control
10309         if the current control was focused.
10310         - Don't handle enter/leave when setting/killing focus, this is
10311         done by the container control.
10312         - Remove is_selected, it's not needed anymore.
10313         - Add utility methods for selecting a child control, and for
10314         firing the Enter/Leave events.
10315         * ContainerControl.cs: When a control is activated fire the
10316         enter/leave events.
10317         - Don't wrap when processing the tab key, so that focus can be
10318         moved outside of the container.
10319         - Use the correct active control
10320
10321 2006-07-11  Jackson Harper  <jackson@ximian.com>
10322
10323         * ComboBox.cs: Remove some debug code that was blinding me.
10324         * UpDownBase.cs: These controls actually aren't implicit, they are
10325         visible to the user.
10326
10327 2006-07-10  Chris Toshok  <toshok@ximian.com>
10328
10329         * DataGrid.cs: move back to the is_adding boolean field.  god i
10330         hate this is_editing/is_adding/is_changing stuff.
10331
10332 2006-07-10  Chris Toshok  <toshok@ximian.com>
10333
10334         * DataGridTableStyle.cs: just check if the property type is bool.
10335         if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
10336         Don't use CanRenderType.
10337
10338         * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
10339         if our text == NullText.  Remove CanRenderType.
10340
10341         * DataGridBoolColumn.cs: nuke CanRenderType.
10342
10343         * DataGrid.cs: reenable some code to end the current edit inside
10344         of set_CurrentCell.  This fixes the other 1.1.16 regression.
10345         Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
10346         Also, remove the visible_row_count arg from CalcRowHeaders, since
10347         we don't need to worry about the actual height of the area.
10348
10349 2006-07-10  Chris Toshok  <toshok@ximian.com>
10350
10351         * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
10352         mode, just return.
10353
10354         * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
10355         the real sense of the IsInEditOrNavigateMode property (true =
10356         navigate, false = edit).  Also, update OnKeyPress to reflect this.
10357
10358         * DataGridTableStyle.cs (CreateColumnsForTable): even if the
10359         column style exists, we still need to set its property descriptor
10360         to match up with our list manager.
10361
10362 2006-07-10  Chris Toshok  <toshok@ximian.com>
10363
10364         * ThemeWin32Classic.cs: implement the new row/header painting
10365         approach.  The parent row painting will likely go away and
10366         replaced with label controls, but the rest seems to work ok (and
10367         efficiently).
10368
10369         * Theme.cs: change the way we draw datagrid rows.  we don't draw
10370         the row headers as a block now.  Instead we draw them in the
10371         normal draw-row loop.  Add some calls for drawing parent rows and
10372         relation rows.
10373
10374         * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
10375         a default table style.  Set the defaults from ThemeEngine.Current,
10376         not SystemColors.  Fix lots of misc issues with property setters.
10377
10378         * DataGrid.cs: move loads of style information out of this class
10379         as it's being duplicated with DataGridTableStyle.  keep track of a
10380         special DataGridTableStyle for the properties we used to mirror
10381         here.  Switch all the style properties to access this table style
10382         instead of instance fields of this class.  Also add a internal
10383         class to represent parent rows (more needs to be stored here, like
10384         the selection state from the parent table, as well as the
10385         expansion state.)  Also, for datasources with relations, do the
10386         right thing for collapse/expand, and add support for the
10387         navigation/parent row buttons.
10388
10389         Lastly, fix the crash in the 1.1.16 build.
10390
10391         * GridTableStylesCollection.cs: make the explicit interface
10392         implementations call the class's methods as opposed to duplicating
10393         them.
10394
10395         * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
10396         0 so the text doesn't jump around when we move the cursor.
10397
10398 2006-07-10  Jackson Harper  <jackson@ximian.com>
10399
10400         * TextBoxBase.cs:
10401         * ListBox.cs: Match MS's ToString (this makes debugging focus
10402         stuff infinitely easier).
10403
10404 2006-07-10  Jackson Harper  <jackson@ximian.com>
10405
10406         * Control.cs (SelectNextControl): When checking the control's
10407         parent use this instead of ctrl.parent so that null can be passed
10408         to SelectNextControl. (I have unit tests for this).
10409         - Remove unused var.
10410
10411 2006-07-10  Chris Toshok  <toshok@ximian.com>
10412
10413         * CurrencyManager.cs: correct one regression, the removal of the
10414         finalType field.  Also, add a MonoTODO on CanAddRows, implement
10415         Refresh() correctly, and fix some event emission in
10416         ListChangedHandler.
10417
10418 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
10419
10420         * FileDialog.cs: Don't use brackets for new folders if they exist
10421           under *nix. Instead use -(number of existing folders +1).
10422
10423 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
10424
10425         * FileDialog.cs:
10426           - Fixed really nasty bug #78771
10427           - Don't block the whole GUI when reading directories with a lot of
10428             entries. Use an other thread instead and call BeginInvoke to
10429             update the ListView in MWFFileView
10430
10431 2006-07-07  Chris Toshok  <toshok@ximian.com>
10432
10433         * Control.cs (Dispose): release any Capture when disposing.
10434
10435 2006-07-07  Chris Toshok  <toshok@ximian.com>
10436
10437         * LinkLabel.cs (Select): if we chain up to the parent, set
10438         focused_index to -1 so we'll search for the first available link
10439         the next time the user tabs into us.  Also, if the direction is
10440         backward and focused_index == -1, start the search from the last
10441         element.
10442
10443 2006-07-07  Chris Toshok  <toshok@ximian.com>
10444
10445         * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
10446         is beyond the end of the text, don't do anything.
10447         (CreateLinkPieces): set our ControlStyles.Selectable based on
10448         whether or not we have any links.
10449         (Link.Invalidate): use a loop instead of foreach.
10450         (Link.set_Start): null out owner.sorted_links so it'll be
10451         recreated by CreateLinkPieces.
10452
10453 2006-07-06  Chris Toshok  <toshok@ximian.com>
10454
10455         * LinkLabel.cs: revert the SetStyle change.
10456
10457 2006-07-06  Chris Toshok  <toshok@ximian.com>
10458
10459         * LinkLabel.cs (.ctor): SetStyle Selectable to true.
10460         (OnEnableChanged): s/Refresh/Invalidate
10461         (OnGotFocus): if we have a focused index already, refocus it (so
10462         if we mouse out/in to the window it'll focus the right link).
10463         (OnKeyDown): move the tab handling out of here.
10464         (OnLostFocus): don't set focused_index to -1, so we can refocus it
10465         when we lose focus.
10466         (OnMouseDown): don't Capture here - Control handles it.  Also,
10467         focus the active link.
10468         (OnMouseUp): don't deal with Capture.
10469         (OnPaintBackgroundInternal): remove.
10470         (OnTextAlignChanged): CreateLinkPieces before calling the
10471         superclass's method.
10472         (OnTextChanged): call CreateLinkPieces before calling superclass's
10473         method.
10474         (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
10475         move around.
10476         (Select): implement this, moving the selection between different
10477         links, and call parent.SelectNextControl if we don't have another
10478         link to focus in the given direction.
10479         (CreateLinkPieces): call Invalidate instead of Refresh.
10480         
10481 2006-07-06  Chris Toshok  <toshok@ximian.com>
10482
10483         * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
10484         new LinkLabel internals.
10485
10486         * LinkLabel.cs: fairly major rewrite.  get rid of all the loops
10487         over pieces looking for active/focused/etc links.  also, deal with
10488         runs of text (and links) with embedded \n's in them, and use
10489         MeasureCharacterRanges instead of MeasureString to figure out the
10490         regions text occupies.  Lastly, do the usual s/Refresh/Invalidate
10491         two-step.
10492
10493 2006-07-04  Jackson Harper  <jackson@ximian.com>
10494
10495         * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
10496         XKB or key auto repeat, do it manually.  Without key auto repeat,
10497         when a key is held down we get key press, key release, key press,
10498         key release, ... with auto repeat we get key press, key press, key
10499         press ..., and then a release when the key is actually released.
10500
10501 2006-07-03  Jackson Harper  <jackson@ximian.com>
10502
10503         * TabControl.cs:
10504         * ThemeWin32Classic.cs: Tabs do not obey normal background color
10505         rules, they are always control color regardless of the background
10506         color.
10507
10508 2006-07-02  Alexander Olk  <alex.olk@googlemail.com>
10509
10510         * FileDialog.cs: Added internal class MWFConfig.
10511           Removed Registry support and replaced it with support for the new
10512           MWFConfig class. See MWFConfig comments for more information.
10513
10514 2006-06-30  Alexander Olk  <alex.olk@googlemail.com>
10515
10516         * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
10517           rectangle. Added some patches from eno from bug #78490 and fixed
10518           the arrow position for small up and down CPDrawScrollButtons.
10519
10520 2006-06-30  Jackson Harper  <jackson@ximian.com>
10521
10522         * InternalWindowManager.cs: Remove some debug code.
10523         * Form.cs: When an MdiParent is set to null, the window is
10524         "detatched" and becomes a normal window.
10525         * MdiClient.cs: Don't bring the new child form to the front until
10526         it is activated (setting it as active does this), this makes the
10527         previously active forms titlebar get redrawn as inactive.
10528
10529 2006-06-29  Peter Dennis Bartok  <pbartok@novell.com>
10530
10531         * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
10532           with later controls
10533
10534 2006-06-29  Mike Kestner  <mkestner@novell.com>
10535
10536         * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
10537         arrow in keynav state.  Fixes #78682.
10538
10539 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
10540
10541         * PrintDialog.cs: Reorder, relayout, remove extra code, set tab 
10542           order (fixes #78393)
10543
10544 2006-06-28  Jonathan Pobst  <monkey@ipobst.com>
10545
10546         * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs, 
10547           ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
10548           ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
10549           FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
10550           GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
10551           ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs, 
10552           PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
10553           Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
10554           TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
10555           ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
10556           enumerations (FlagsAttribute, SerializableAttribute, added/removed
10557           values)
10558
10559 2006-06-28  Mike Kestner  <mkestner@novell.com>
10560
10561         * ComboBox.cs: implement scroll wheel support. Fixes #78360.
10562
10563 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
10564
10565         * PropertyGrid.cs,
10566           PropertyGridTextBox.cs : explicitly set BackColor to differentiate
10567           item lines from other area (It also makes BackColor consistent and
10568           compatible with .NET). Fixed bug #78564.
10569
10570 2006-06-28  Jonathan Chambers  <jonathan.chambers@ansys.com>
10571
10572         * PropertyGrid.cs: refresh toolbar when PropertySort is set.
10573         Patch from Eno for #78555.
10574
10575 2006-06-27  Chris Toshok  <toshok@ximian.com>
10576
10577         * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
10578
10579         * DataGridColumnStyle.cs: same.
10580
10581         * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
10582         
10583         * DataGridDrawingLogic.cs: nuke.
10584
10585 2006-06-27  Chris Toshok  <toshok@ximian.com>
10586
10587         * DataGridTableStyle.cs: clean up the constructors, and build the
10588         list of child relations for this table.  I have no idea if this is
10589         where we should be doing it (it probably isn't), but since we're
10590         already iterating over the properties..
10591
10592         * DataGrid.cs: add row resizing.  for now we add a DataGridRow
10593         struct and array for keeping track of row information, similar to
10594         what's shown in a hack on
10595         http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
10596
10597         * Theme.cs: be consistent about the naming of DataGrid methods,
10598         prefering ColumnWidths and RowHeights over columnsWidths and
10599         RowsHeights.
10600
10601         * ThemeWin32Classic.cs: same, and also add support for variable
10602         sized rows (and the +/- expansion icons for related rows).
10603
10604 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
10605
10606         * TextBoxBase.cs: Applied Eno's patch from #78660
10607
10608 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
10609
10610         * Form.cs (ScaleCore): We don't want to scale our form if it's
10611           state is minimized or maximized, but we still need to scale our
10612           child windows. Also, added try/finally block to ensure layout
10613           gets reset (Fixes #78697)
10614
10615 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
10616
10617         * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
10618
10619 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
10620
10621         * Form.cs: Fixed c+p error and added check to resize form if minimum
10622           size is bigger than current size (Fixes #78709)
10623
10624 2006-06-26  Peter Dennis Bartok  <pbartok@novell.com> 
10625
10626         * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
10627
10628 2006-06-26  Mike Kestner  <mkestner@novell.com>
10629
10630         * ComboBox.cs: only do Keypress handling in the combo when there  
10631         are items in the collection. Fixes #78710.
10632
10633 2006-06-26  Chris Toshok  <toshok@ximian.com>
10634
10635         * Binding.cs: make this work bi-directionally.  also, clear up
10636         other mixups between Push/Pull Data (e.g. we're supposed to pull
10637         data when validating).
10638
10639         * BindingManagerBase.cs: trim some fully qualified collection
10640         types.
10641
10642         * PropertyManager.cs (get_IsSuspended): oops, fix this check.
10643
10644 2006-06-23  Chris Toshok  <toshok@ximian.com>
10645
10646         * PropertyManager.cs: It appears (according to the unit tests)
10647         that PropertyManager doesn't use
10648         PropertyDescriptor.AddValueChanged to track propery value changes
10649         in its datasource, but uses the same scheme as Binding, where it
10650         looks for a <Property>Changed event and binds to it.
10651
10652         Also, according to the docs, IsSuspended always returns false for
10653         a property manager with a non-null datasource.
10654
10655 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com> 
10656
10657         * Form.cs: (ShowDialog): If we're returning a forced cancel we still
10658           need to update the actual DialogResult. (Fixes #78613)
10659
10660 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com>
10661
10662         * Form.cs (ShowDialog): Release any captures before running the
10663           new message pump (fixes #78680)
10664
10665 2006-06-22  Mike Kestner  <mkestner@novell.com>
10666
10667         * ListView.cs: Layout column widths properly in details mode even 
10668         if HeaderStyle.None is set.  Fixes #78691.
10669
10670 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com>
10671
10672         * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
10673
10674 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com> 
10675
10676         * Control.cs (ContainsFocus): Using new driver method to get focused
10677           window, instead of trying to use internal tracking var, which can
10678           recursion issues (Fixes #78685)
10679         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
10680           XplatUIWin32.cs: Added GetFocus method to return focused window
10681
10682 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10683
10684         * ColorDialog.cs: when the mouse button is pressed inside the color
10685         matrix, don't let the cursor move out of it until the button is
10686         released, which is the behavior on windows. Changed 'colours' by
10687         'colors' to use the same word consistently.
10688
10689 2006-06-21  Chris Toshok  <toshok@ximian.com>
10690
10691         * DataGrid.cs: add in some basic navigation stuff (navigating to a
10692         child relation and back, using a stack).  Also, remove
10693         GetDataSource and the code that calls it - it's not needed.  Also,
10694         track CurrencyManager.ListName's removal.
10695
10696 2006-06-21  Chris Toshok  <toshok@ximian.com>
10697
10698         * CurrencyManager.cs: push some of the original type checking from
10699         BindingContext.CreateBindingManager to here, and remove some of
10700         the finalType stuff.  Need more tests to make sure I've got the
10701         ListName part right, and we might need more in SetDataSource.
10702
10703         * PropertyManager.cs: add a ctor that takes just the datasource,
10704         and no property name.  Make SetDataSource work with a null
10705         property_name, and make Current return the data_source if the
10706         property descriptor is null.  this makes 'string foo = "hi";
10707         BindingContext[foo].Current' return "hi" as it should.
10708
10709         * RelatedCurrencyManager.cs: make this code more generic - there's
10710         no reason the parent manager has to be CurrencyManager, and
10711         there's no reason to pass the DataRelation.  It suffices to use a
10712         BindingManagerBase and PropetyDescriptor.
10713
10714         * RelatedPropertyManager.cs: make a similar change here.
10715         
10716         * BindingContext.cs: make CreateBindingManager the beautiful, tiny
10717         flower I knew it could be.
10718
10719 2006-06-20  Chris Toshok  <toshok@ximian.com>
10720
10721         * PropertyManager.cs: the PropertyChangedHandler is invoked when
10722         data in the source has changed and we need to update the control,
10723         so s/PullData/PushData.
10724
10725         * CurrencyManager.cs: Refresh is meant to update the control from
10726         data in the datasource.  So, s/PullData/PushData.
10727
10728         * BindingContext.cs: add more ugliness (we weren't handling the
10729         case where data_source = DataTable and data_member = column_name).
10730
10731         * Binding.cs: fix PushData/PullData mixup.  Both are interpreted
10732         from the perspective of the datasource.  PullData pulls from the
10733         control, PushData pushes to the control.
10734
10735 2006-06-20  Chris Toshok  <toshok@ximian.com>
10736
10737         * BindingContext.cs: rewrite the CreateBindingManager code to
10738         handle navigation paths more or less properly.  This could
10739         definitely stand some more work, in particular to push the
10740         recursion up to the toplevel.  But that relies on fixes in other
10741         places (System.Data comes to mind).
10742
10743         Also, move to a flat hashtable (and encode the twolevel nature of
10744         the dictionary into the hash key).  This lets us implement the
10745         IEnumerable.GetEnumerator method.
10746
10747         * RelatedCurrencyManager.cs: new class.  Update our view based on
10748         our relation and our parent CurrencyManager's position.
10749
10750         * CurrencyManager.cs: split out some logic from the ctor into
10751         SetView, so it can be called from the new RelatedCurrencyManager
10752         subclass.
10753
10754         * RelatedPropertyManager.cs: new class.  Update our datasource
10755         based on the position of our parent CurrencyManager.
10756
10757         * PropertyManager.cs: split out some logic from the ctor into
10758         SetDataSource, so it can be called from the new RelatedDataSource
10759         subclass.  Also, make the Current getter return the value
10760         of the PropertyDescriptor, not the data_source.
10761
10762         * Binding.cs: no need to duplicate the string splitting code here.
10763
10764 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
10765
10766         * Control.cs:
10767           - set_Enabled: OnEnabledChanged is not called if the inherited state 
10768             of the control is not altered, even though  we might be changing the
10769             internal state of the control (#78458)
10770           - set_Enabled: (Re)Moved the enabling/disabling of the window to 
10771             OnEnabledChanged, to allow easy altering of any child window state
10772           - OnEnabledChanged: Added code to enable/disable driver window state
10773           - OnParentEnabledChanged: Instead of firing the event, call 
10774             OnEnabledChanged, which will fire the event and also a) set driver
10775             window state and pass the enabled state to any grandchildren (#78458)
10776
10777 2006-06-19  Jackson Harper  <jackson@ximian.com>
10778
10779         * InternalWindowManager.cs: We don't set the cursor explicitly
10780         thats done via the response to NCHITTESTs.
10781         - Don't need to adjust for titlebar heights anymore, the
10782         coordinates are coming in the correct coordinates now (see peters
10783         last patch).
10784
10785
10786 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
10787
10788         * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
10789           being translated relative to whole window, instead of client window.
10790           That caused broken offsets on mouseclick (and caused gas for our
10791           InternalWindowManager)
10792
10793 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
10794
10795         * TextControl.cs:
10796           - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
10797           - Undo(): Added replay of cursor move on DeleteChars action; added
10798             calling Undo() again if a recorded cursor move is invalid (to
10799             ensure that some action is performed on Undo)
10800         * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
10801
10802 2006-06-16  Jackson Harper  <jackson@ximian.com>
10803
10804         * MdiClient.cs: Instead of just sizing maximized windows when
10805         there is a resize we also have to adjust the Y of minimized
10806         windows, so they stay pinned to the bottom of the mdi container.
10807         - Eliminate separate tracking of the active control, we can just
10808         get this from the controls collection.
10809         - Paint the decorations for the newly activated titlebar so we get
10810         a pretty blue bar.
10811         * InternalWindowManager.cs:
10812         * ThemeWin32Classic.cs: Minimized windows get all three buttons
10813         even if they are a tool window.
10814         
10815 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
10816
10817         * TextControl.cs (Undo): Handle non-existent cursor locations in the
10818           undo buffer, these can happen when text was deleted and the cursor
10819           was recorded first. Since we will also have a recorded cursor
10820           after the delete this is not an issue. (Fixes #78651)
10821
10822 2006-06-14  Peter Dennis Bartok  <pbartok@novell.com> 
10823
10824         * AccessibleObject.cs: Remove dependence on Control.is_selected;
10825           instead properly track control states internally (allows us to
10826           remove is_selected from Control)
10827
10828 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10829
10830         * ImageListStreamer.cs: correctly generate the 1bpp mask for images
10831         whose width is not a multiple of 8.
10832
10833 2006-06-13  Jackson Harper  <jackson@ximian.com>
10834
10835         * MdiClient.cs:  Only maximize the next child if the current one
10836         is maximized.
10837
10838 2006-06-13  Chris Toshok  <toshok@ximian.com>
10839
10840         * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
10841         modified.  Also, guard against grid or grid_drawing being null in
10842         Invalidate.
10843
10844         * DataGrid.cs: Reformat tons of getters/setters.  In the
10845         DataMember setter, just call SetNewDataSource instead of
10846         duplicating some of its functionality.  In SetNewDataSource, don't
10847         check ListManager for null, since the property getter creates the
10848         object if needed.
10849
10850         * DataGridTableStyle.cs: don't set TableStyle or call
10851         SetDataGridInternal on the column here, it's done in
10852         GridColumnStylesCollection.Add.
10853
10854         * GridColumnStylesCollection.cs: fix all the explicit interface
10855         implementations to just call our methods.  Nuke AddInternal() and
10856         move the body of it to Add().  Also, add a call to
10857         column.SetDataGridInternal to Add().
10858
10859         * DataGridTextBoxColumn.cs (.ctors): call this() instead of
10860         base()+duplicate code.  Also, use the Format property instead of
10861         format to generate an Invalidate ala MS.  Lastly, create the
10862         textbox here, unconditionally.
10863         (set_Format): call Invalidate.
10864         (get_TextBox): no need to call EnsureTextBox.
10865         (Commit): remove the message box.
10866         (Edit) remove the call to EnsureTextBox.
10867         (EndEdit): call HideEditBox instead of ReleaseHostedControl.
10868         (EnterNullValue): no need to check textbox for null.
10869         (HideEditBox): no need to check textbox for null.
10870         (SetDataGridInColumn): add the textbox to the grid's controls.
10871         (EnsureTextBox): nuke.
10872         
10873 2006-06-13  Jackson Harper  <jackson@ximian.com>
10874
10875         * MdiWindowManager.cs: Hook up to the maximized menus paint event
10876         and redraw the buttons when needed. Unhook when the window is
10877         unmaximized.
10878         * MainMenu.cs: Add an internal Paint event, the mdi window manager
10879         needs this so that it can redraw its buttons when the menu is
10880         repainted.
10881         * InternalWindowManager.cs:
10882         * Form.cs: The method order has changed for DrawMaximizedButtons,
10883         so that it can be a PaintEventHandler.
10884         
10885 2006-06-13  Jackson Harper  <jackson@ximian.com>
10886
10887         * MdiClient.cs: When we close a maximized mdi window, the next mdi
10888         window is activated and maximized, even if it wasn't before.
10889         - When  a new window is activated repaint the decorations of the
10890         old one, so that it no longer has the Active "look" (the blue
10891         titlebar).
10892         * InternalWindowManager.cs: Open up CreateButtons to base classes
10893         so they can recreate the buttons on state changes.
10894         - If a window is maximized give it all three buttons
10895         * MdiWindowManager.cs: Create the titlebar buttons when the state
10896         is changed, this is needed because a toolwindow will not have all
10897         three buttons until it is maximized.
10898
10899 2006-06-13  Atsushi Enomoto  <atsushi@ximian.com>
10900
10901         * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
10902           Fixed bug #78609.
10903
10904 2006-06-12  Jackson Harper  <jackson@ximian.com>
10905
10906         * KeysConverter.cs: Make sure we handle the Ctrl special case
10907         if its the only key.
10908         
10909 2006-06-12  Jackson Harper  <jackson@ximian.com>
10910
10911         * Theme.cs: Add a method to get the size of a managed window
10912         toolbar button.
10913         * InternalWindowManager.cs: Remove the ButtonSize property, this
10914         should be retrieved from the theme.
10915         * MdiWindowManager.cs: Get the button size from the theme
10916         * ThemeWin32Classic.cs: Make the method to get the managed window
10917         titlebar button size public.
10918         - Handle the different button sizes of maximized toolwindows
10919         (should match any maximized window).
10920         - Get the titlebar height from the theme, not the WM (which gets
10921         it from the theme).
10922
10923 2006-06-12  Jackson Harper  <jackson@ximian.com>
10924
10925         * InternalWindowManager.cs: Handle NC Double Clicks, passing the
10926         event down to the mdi window manager.
10927         - Expose some extra stuff to base classes
10928         - Make sure to end the Capture on an NC Mouse up, so that we can
10929         get double clicks properly, and the sizing doens't stick.
10930         - When doing PointToClient contain it in the workable desktop
10931         area, this prevents windows from changing size when the cursor is
10932         pulled outside of the working area while sizing.
10933         * MdiWindowManager.cs: When we get a double click maximize the
10934         window.
10935         - Reset the cursor after handling mode changes.
10936
10937 2006-06-12  Peter Dennis Bartok  <pbartok@novell.com> 
10938
10939         * XplatUIX11.cs (WorkingArea): Read the actual workarea for the 
10940           current desktop, instead of just assuming a 0, 0 origin. This
10941           is needed for our internal window manager, to know the top
10942           margin of the desktop
10943
10944 2006-06-12  Chris Toshok  <toshok@ximian.com>
10945
10946         * DataGrid.cs (set_CurrentCell): concede focus as we move around.
10947         we need this to get rid of the selected background in the bool
10948         column.
10949         (CancelEditing): move the ConcedeFocus call to above the Abort
10950         call.  Also, set is_changing to false and invalidate the row
10951         header if we were changing before.
10952         (ProcessKeyPreviewInternal): remove, since noone outside this
10953         class calls it anymore.  Roll the code into ProcessKeyPreview.
10954         (EndEdit): remove the internal version.
10955         (InvalidateCurrentRowHeader): make private.
10956
10957         * DataGridBoolColumn.cs: simplify this class a bunch.  remove the
10958         Keys.Escape handling (and with it the last call to
10959         DataGrid.EndEdit from outside the class.)
10960
10961
10962 2006-06-12  Chris Toshok  <toshok@ximian.com>
10963
10964         * DataGridTextBox.cs (.ctor): isedit defaults to false.
10965         (OnKeyPress): set isedit to true.
10966         (ProcessKeyMessage): remove Keys.Enter handling from here.  it's
10967         already handled by the grid.
10968
10969         * DataGrid.cs (set_CurrentCell): more work here.  it's still not
10970         right.  ugh.
10971         (set_DataSource): SetDataSource always returns true, so stop
10972         putting it in an if statement.
10973         (EndEdit): get rid of some {}'s
10974         (ProcessGridKey): return true in case Keys.Escape.
10975         (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
10976         (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
10977         PositionChanged, stopped connecting to CurrentChanged.
10978         (GetDataSource): simplify this a bunch.
10979         (SetDataSource): change return type from bool to void.
10980         (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
10981         to this, and make sure we don't set ListManager.Position inside
10982         set_CurrentCell.
10983         (OnListManagerItemChanged): if we're passed an actual index,
10984         redraw that row.
10985
10986         * CurrencyManager.cs (set_Position): don't call PullData here.
10987
10988 2006-06-09  Jackson Harper  <jackson@ximian.com>
10989
10990         * TreeNode.cs:  Recalculate the visible order before doing the
10991         Expand/Collapse Below calls, because those calls generate an
10992         expose.
10993         - Reduce calls to the TreeView property, which is mildly expensive
10994         by using a local var.
10995         * Form.cs: Layout the MDI child windows when creating the parent
10996         form.
10997         - Don't use the internal constructor anymore
10998         * MdiClient.cs: use the parent form width/height (if available)
10999         when laying out the child windows, we do this because the
11000         mdiclient isn't docked yet when the initial layout is done.
11001         - Don't need an internal constructor anymore.
11002
11003 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
11004
11005         * FileDialog.cs: handle access errors when trying to create a folder
11006         or changing to a directory. No need to initialize out parameters.
11007
11008 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
11009
11010         * FileDialog.cs: Append a number when creating a new folder if the
11011           folder already exists (use parenthesis instead of square brackets)
11012
11013 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
11014
11015         * FileDialog.cs:
11016           - Disabled registry support for windows and added better registry
11017             error checking for other systems (need to investigate why it
11018             works perfectly on my system)
11019           - If a folder already exist show an error MessageBox instead of
11020             trying to create an indexed name.
11021           - Fixed a non intentional typo.
11022
11023 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
11024
11025         * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
11026
11027 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
11028
11029         * FileDialog.cs: When creating a new folder don't crash if the
11030           folder already exists.
11031
11032 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
11033
11034         * FileDialog.cs: Allmost a complete rewrite.
11035           - added a "virtual" file system that handles the differences
11036             between unix and windows file systems (especially the directory
11037             structure). Moved most of the directory and file handling code
11038             into the vfs.
11039             Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
11040             UnixFileSystem and FSEntry.
11041           - Recently used folder/directory, size, location and used file names
11042             (file name ComboBox) are now stored in the registry and get read
11043             before the dialog shows up (fixes part 6 of bug #78446).
11044           - Creation of new folders/directories is now possible (context menu
11045             or ToolBar). Added TextEntryDialog for this that fills in the gap
11046             until ListView.LabelEdit works.
11047           - Fixed cursor handling (bug #78527) and focus handling for
11048             PopupButtonPanel
11049           - Various "Search in" ComboBox enhancements. The content of the
11050             dropdown listbox now almost matches ms.
11051           - Changed the behaviour when the user switches to SpecialFolder
11052             Recent to show the ListView in View.Details.
11053           - Beside using the ToolBar to change the View property of the
11054             file ListView it is now possible to use the context menu too.
11055
11056 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
11057
11058         * ComboBox.cs: Don't create a new ObjectCollection when an item
11059           gets inserted. Just insert the item in the existing object_items
11060           ArrayList.
11061
11062 2006-06-08  Jackson Harper  <jackson@ximian.com>
11063
11064         * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
11065         that the treeview and root node checks are done also, this fixes a
11066         regression i caused in the unit tests.
11067
11068 2006-06-07  Wade Berrier <wberrier@novell.com> 
11069
11070         * RichTextBox.cs: More ISO8859-1 -> unicode
11071
11072 2006-06-07  Mike Kestner  <mkestner@novell.com>
11073
11074         * ComboBox.cs : use items to hold highlight/selection so that
11075         collection insertions don't require synchronization.
11076
11077 2006-06-07  Jackson Harper  <jackson@ximian.com>
11078
11079         * InternalWindowManager.cs: Simplify (and FIX) the window sizing
11080         routine.  We now always keep the sized edge at the cursor instead
11081         of computing movement and adjusting rects.  There is one buglet
11082         with this method though when the cursor is moved over area that
11083         the window can not expand too (such as the toolbars on the desktop).
11084
11085 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
11086
11087         * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
11088         here. Fixes crash on startup in AlbumSurfer.
11089
11090 2006-06-07  Peter Dennis Bartok  <pbartok@novell.com> 
11091
11092         * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
11093           values
11094
11095 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
11096
11097         * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
11098         statement to avoid calling XNextEvent which will block if another thread
11099         took the event that we were expecting. Fixes bug #78605.
11100
11101 2006-06-07  Mike Kestner  <mkestner@novell.com>
11102
11103         * ListView.cs : isolated checkbox clicking from the selection logic.
11104         Toggle check state on item doubleclicks.  Really fixes #78454 part2.
11105
11106 2006-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11107
11108         * Form.cs: Check that the value passed to Form.DialogResult
11109         is a valid enum value.
11110
11111 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
11112
11113         * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
11114         Computer'. Clicking it in the network view goes to 'My Computer'.
11115         Added CIFS filesystem type. Display the mount point of filesystems.
11116         Avoid duplicate mount points (happens for me with CIFS);
11117
11118 2006-06-06  Jackson Harper  <jackson@ximian.com>
11119
11120         * InternalWindowManager.cs: Draw the maximized windows buttons
11121         when resizing.
11122
11123 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
11124
11125         * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
11126         all other dialogs. Fixes bug #78585.
11127
11128 2006-06-06  Mike Kestner  <mkestner@novell.com>
11129
11130         * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
11131         Only invalidate checkbox on checkstate changes to avoid flicker.
11132         * ListBox.cs : avoid unselect/select when clicking selected item.
11133         avoid reselection flicker for already multiselected items.
11134         Fixes #78382.
11135
11136 2006-06-06  Jackson Harper  <jackson@ximian.com>
11137
11138         * MdiWindowManager.cs: When the window is closed do an NCRecalc on
11139         the parent form so that the menu is removed if needed.
11140
11141 2006-06-06  Mike Kestner  <mkestner@novell.com>
11142
11143         * ListBox.cs : add ScrollWindow call to UpdateTopItem.  fix
11144         Prev/Next/PrevPage/NextPage/Home/End index calculation.  Fixes #78559.
11145
11146 2006-06-06  Mike Kestner  <mkestner@novell.com>
11147
11148         * CheckedListBox.cs : rebuild check collection on Add.  Fixes #78426.
11149
11150
11151 2006-06-06  Jackson Harper  <jackson@ximian.com>
11152
11153         * Control.cs: Use the property (instead of the field) to get the
11154         default cursor so it is instantiated correctly.
11155         * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
11156         resizes so we need to manually repaint the window decorations here.
11157         - Set the titlebar button locations as soon as they are created,
11158         otherwise they are not set correctly on win32.
11159         
11160 2006-06-06  Chris Toshok  <toshok@ximian.com>
11161
11162         * CurrencyManager.cs (set_Position): call PullData before
11163         OnCurrentChanged.
11164         (AddNew): after calling IBindingList.AddNew, update our
11165         listposition, and call OnCurrentChanged/OnPositionChanged (without
11166         calling PullData).
11167         (OnCurrentChanged): remove the call to PullData from here.
11168         (OnItemChanged): remove the call to PushData from here.
11169         (OnPositionChanged): change the test from == null to != null to
11170         match the other methods.
11171         (ListChangedHandler): the grossest part of the patch.  Implement
11172         this such that it passes the unit tests in CurrencyManagerTest and
11173         the output more or less matches that of MS's implementation.
11174  
11175 2006-06-06  Mike Kestner  <mkestner@novell.com>
11176
11177         * ListView.cs : only update check state on single click.
11178         * ThemeWin32Classic.cs : fix focus drawing for details view without
11179         fullrowselect.  Fixes #78454.
11180         * XplatUIX11.cs : fix for double click emission.
11181
11182 2006-06-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
11183
11184         * PropertyGridView.cs : Applied Atsushi's patch to fix
11185         font dialog bug  (#78197).
11186
11187 2006-06-05  Jackson Harper  <jackson@ximian.com>
11188
11189         * TreeNode.cs: Compute the next node for expanding/collapsing
11190         correctly. We now factor in nodes without a NextNode
11191         correctly. (Fixes somes cases in nunit-gui).
11192         * InternalWindowManager.cs: Set the bounds when updating the
11193         virtual position of a tool window.
11194         
11195 2006-06-05  Chris Toshok  <toshok@ximian.com>
11196
11197         * DataGrid.cs: rename cached_currencymgr to list_manager.
11198         (set_CurrentCell): move SetCurrentCell code here, and clean it up
11199         some.
11200         (CurrentRow, CurrentColumn): single accessors so we can make the
11201         cursor movement code a lot easier to understand.
11202         (CurrentRowIndex): implement this in terms of CurrentRow.
11203         (BeginEdit): clean this up a bit.
11204         (CancelEditing): sort out the is_editing/is_changing/is_adding
11205         stuff a little.
11206         (EndEdit): minor changes.
11207         (OnKeyDown): add a comment about a (most likely) unnecessary
11208         check.
11209         (OnMouseDown): cancel editing when we click on a row header.  And
11210         use the CurrentRow setter, not CurrentCell.
11211         (ProcessDialogKey): directly call ProcessGridKey.
11212         (UpdateSelectionAfterCursorMove): factor out this common block of
11213         code (it's used everywhere that we move the cursor by updating row
11214         or column).
11215         (ProcessGridKey): pretty substantial overhaul.  Use the
11216         CurrentRow/CurrentColumn properties to make the code a lot more
11217         readable.  Only use the CurrentCell property when we have to
11218         modify both row and column at once.  Tab behavior is still broken,
11219         and Delete is untested.
11220         (Select): if we have no selected rows, set selection_start to
11221         @row.
11222         (EditCurrentCell): rename EditCell this.  It was only ever invoked
11223         with CurrentCell as the arg, so drop the arg and rename it.
11224
11225         * DataGridColumnStyle.cs: clean up the constructors a little, and
11226         drop CommonConstructor().
11227
11228         * DataGridTextBox.cs (.ctor): set accepts_return to true so we
11229         actually get notified when the user hits it.
11230         (ProcessKeyMessage): *substantially* simplify this method.
11231         There's no reason (that I can see) for the textbox to be making
11232         calls into the datagrid at all.  Remove all of them but the ones
11233         for Enter handling.  those will take some more work.
11234
11235         * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
11236         calling HideEditBox.
11237         (HideEditBox): if we have an active textbox, render it invisible
11238         without causing a re-layout of the datagrid.
11239
11240 2006-06-05  Mike Kestner  <mkestner@novell.com>
11241
11242         * ListView.cs : fix NRE crasher when focuseditem is cleared by
11243         collection changes by resetting it to Items[0].  Fixes #78587.
11244
11245 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
11246
11247         * MessageBox.cs: if the height of the text is larger than the icon_size,
11248         use that. Fixes bug #78575.
11249
11250 2006-06-05  Jackson Harper  <jackson@ximian.com>
11251
11252         * TreeView.cs: Fix line drawing when scrolling.  To do this each
11253         node is basically responsible for drawing its entire horizontal
11254         area.  When drawing a node it draws its parent node lines if
11255         needed.
11256         - Adjust the clip area to the viewport rectangle
11257         - Fix Left/Right key handling to match MS. (It expand/collapses
11258         and moves to parents/first child but does not move selection to
11259         sibling nodes).
11260         - Fix SetTop to work with new bound calculation code
11261         - When scrollbars are no longer needed we need to reset scrolling
11262         vars and recalculate the visible order so the redraw is correct
11263         * TreeNode.cs: We can't expand/collapse nodes with no children.
11264
11265 2006-06-03  John Luke  <john.luke@gmail.com> 
11266
11267         * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
11268         so the colors work without dev packages
11269         
11270 2006-06-02  Peter Dennis Bartok  <pbartok@novell.com> 
11271
11272         * Control.cs 
11273           - Select: Implemented to just use activate. Seems to match MS 
11274             behaviour closest. Documented to only do actual control walking 
11275             based on it's parameters if in a container control so I moved 
11276             the code there.
11277           - Removed selection check logic from our internal Select() method
11278         * ContainerControl.cs:
11279           - Select: Moved selection logic from Control here, since MS documents
11280             that containers obey the bool arguments. No longer calling base
11281
11282 2006-06-02  Jackson Harper  <jackson@ximian.com>
11283
11284         * TreeView.cs: If the selected node isn't changed when we get
11285         focus update the previously selected node so that we see the
11286         selection box.
11287
11288 2006-06-02  Mike Kestner  <mkestner@novell.com>
11289
11290         * ComboBox.cs: restructure grab and general mouse event handling.
11291         Make the composite control raise mouse events like it was a single
11292         control for leaves/enters/motion/up/down events.  fix dropdown list
11293         coordinate mangling and refactor it into the scrollbar subclass to
11294         reduce code duplication.  Fixes #78282 #78361 and #78457.
11295
11296 2006-06-02  Mike Kestner  <mkestner@novell.com>
11297
11298         * ScrollBar.cs: remove Capture setting/clearing, as it happens
11299         automatically in the Control.WndProc.
11300
11301 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
11302
11303         * FileDialog.cs: fix crash when running SharpChess, which sets the
11304         FilterIndex to 2 with only one Filter.
11305
11306 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
11307
11308         * ToolBar.cs: add SizeSpecified property.
11309         * ToolBarButton.cs: when the ButtonSize is calculated by the container,
11310         try to figure out our real size, otherwise fallback to what the
11311         container says.
11312
11313 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
11314
11315         * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
11316         * Control.cs (WndProc): MS always calls the DefWndProc to pass
11317           up the event
11318
11319 2006-06-01  Mike Kestner  <mkestner@novell.com>
11320
11321         * ListView.cs: revamp the focus management in ListView.  It still
11322         causes churn of LostFocus/GotFocus emissions on clicks, but it's
11323         better than not handling focus at all.  Will revisit when pdb feels
11324         the general focus handling is solid.  Fixes #78526.
11325
11326 2006-06-01  Jackson Harper  <jackson@ximian.com>
11327
11328         * TreeView.cs: Set the default border style in the constructor.
11329         - Move painting to use OnPaintInternal instead of capturing
11330         WM_PAINT, this is the correct way of doing things
11331         - UpdateBelow shouldn't invalidate the scrollbar area
11332         - Cap the top on update below in case the node was above the top
11333         of the viewport rectangle.
11334         - ExpandBelow and Collapse below need to obey Begin/End Update.
11335         * TreeNode.cs: Make is_expanded internal so the treenode
11336         collection can change it without firing the whole event chain.
11337         * TreeNodeCollection.cs: When clearing all the child nodes make
11338         sure to recalc the visible order.
11339         - Improve algo for remove the top node
11340
11341 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
11342
11343         * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
11344           SendMessage directly calling window procedures, which in turn might
11345           call SetFocus()
11346
11347 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com>
11348
11349         * Control.cs: Don't handle WM_SETFOCUS if the same window already
11350           has focus (works around X11 sending a FocusIn after our SetFocus)
11351         * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
11352
11353 2006-06-01  Alexander Olk  <alex.olk@googlemail.com>
11354
11355         * Mime.cs: Fix for the NET_2_0 build.
11356           NameValueCollection needs StringComparer now.
11357
11358 2006-05-31  Chris Toshok  <toshok@ximian.com>
11359
11360         * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
11361         return (via an out parameter) the starting X of the column.
11362         (UpdateVisibleColumn): track change to FromPixelToColumn.
11363         (HitTest): add a ColumnResize case here.
11364         (DrawResizeLine): new function, probably poorly named.
11365
11366         * DataGrid.cs (.ctor): get rid of cached_currencymgr_events.  We
11367         only need to keep one reference.
11368         (set_ListManager): same.
11369         (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
11370         Also, add support for HitTestType.ColumnResize.
11371         (OnMouseMove): add column resize behavior here, and change the
11372         cursor to the correct one as we move around the datagrid.
11373         (OnMouseUp): terminate the column resize if we're resizing.
11374         (ProcessGridKey): from the MS docs, Alt-0 enters the null value
11375         for the current cell.
11376         (ConnectListManagerEvents): use cached_currencymgr.
11377         (DisconnectListManagerEvents): fill this in, using
11378         cached_currencymgr.
11379         (SetCurrentCell): remove cached_currencymgr_events handling.
11380         (SetDataMember): only call DisconnectListManagerEvents if
11381         cached_currencymgr is != null.
11382         (SetDataSource): same.
11383         (OnListManagerCurrentChanged): cached_currencymgr_events ->
11384         cached_currencymgr.
11385
11386 2006-05-31  Jackson Harper  <jackson@ximian.com>
11387
11388         * BindingManagerBase.cs: Remove somedebug code that creeped into
11389         SVN.
11390         * TreeNode.cs: We get the indent level dynamically right now, so
11391         don't track it as a member.
11392         * TreeNodeCollection.cs: Make sure all nodes added to the list
11393         have parents, treeviews/topnodes setup properly.
11394         - Don't attempt to track indent level.
11395
11396 2006-05-30  Jackson Harper  <jackson@ximian.com>
11397
11398         * BindingContext.cs: Create the currency manager tables here.
11399         This allows us to more easily create null tables (when bad data
11400         members are used), and more easily create related currency
11401         managers.
11402         * CurrencyManager.cs: All the table creation stuff is done by the
11403         binding context now.
11404         - Current should throw an exception if listposition is -1.
11405         - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
11406         been bound yet.
11407
11408 2006-05-30  Mike Kestner  <mkestner@novell.com>
11409
11410         * ListView.cs: allow reexpansion of zero-width column headers.
11411         Fixes #78528.
11412
11413 2006-05-28  Chris Toshok  <toshok@ximian.com>
11414
11415         * CurrencyManager.cs (get_Current): after the late binding
11416         listposition = -1 fix, we need to guard against it here and return
11417         null, otherwise we raise an exception (which is swallowed
11418         elsewhere, and breaks datagrid databinding.)
11419
11420 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
11421
11422         * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
11423           than WM_SYSKEY, don't throw if get something unexpected (#78507)
11424
11425 2006-05-26  Jackson Harper  <jackson@ximian.com>
11426
11427         * ControlPaint.cs:
11428         * ThemeWin32Classic.cs: For color comparisons just use the ARGB
11429         values, it's faster and it's all we care about (we don't care if
11430         the names aren't equal).
11431         * KeyboardLayouts.cs: Eliminate some dead code.
11432         - Lazy init things
11433         * X11Keyboard.cs: Lazy init keyboard detection.
11434         - Cleanup access modifiers a little.
11435
11436 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
11437
11438         * XplatUIX11.cs: Once again, attempting to get layout just right.
11439
11440 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com> 
11441
11442         * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
11443           the sizes of each link section, that will result in sizes that
11444           match DrawString's layout (Fixes #78391)
11445
11446 2006-05-27  Alexander Olk  <alex.olk@googlemail.com>
11447
11448         * FileDialog.cs: If AddExtension property is true autocomplete the
11449           extensions in SaveFileDialog correctly. Fixes bug #78453.
11450           Set MyNetwork and MyComputer to "C:\" for windows. This should
11451           fix part 8 of bug #78446 for now.
11452
11453 2006-05-26  Chris Toshok  <toshok@ximian.com>
11454
11455         * DataGrid.cs (ColumnStartedEditing): fill these in.  for now just
11456         invalidate the current row header if we need to, but presumably
11457         we'll invalidate the row corrsponding to the bounds or
11458         editingControl.
11459         (GridHScrolled): switch back to this method, as it's part of the
11460         public api.  *sigh*.
11461         (GridVScrolled): same.
11462         (OnMouseWheel): hack up something that more or less works.  Call
11463         GridHScrolled/GridVScrolled directly, instead of duplicating much
11464         of their code here.
11465         (EnsureCellVisibility): reinstate a bunch of this code, since we
11466         can't just set the scrollbar Value and expect to do all the work
11467         in the ValueChanged handler.  Also, Call Update() after scrolling
11468         in one direction so the other XplatX11.ScrollWindow call has the
11469         proper stuff in the proper places.
11470         (EditCell): set is_editing to true before calling .Edit.
11471
11472         * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
11473         don't bother comparing first.
11474         (OnKeyPress): call grid.ColumnStartedEditing before calling
11475         base.OnKeyPress.  this will set is_changing and invalidate the row
11476         header if necessary.
11477         (ProcessKeyMessage): for WM_CHAR messages, call
11478         ProcessKeyEventArgs directly.  swallow anything other than WM_CHAR
11479         and WM_KEYDOWN.
11480         
11481         * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
11482         it's done in the DataGrid.
11483         (NextState): call grid.ColumnStartedEditing, which takes care of
11484         invalidating the row header (and setting is_changing).
11485
11486         * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
11487         here.  it's done in the DataGrid.
11488
11489 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
11490
11491         * Control.cs: allow changing the cursor when the mouse position is
11492         out of bounds but Capture is set.
11493         * LinkLabel.cs: handle the case when the mouse button is pressed on the
11494         linklabel but released somewhere else.
11495
11496 2006-05-25  Jackson Harper  <jackson@ximian.com>
11497
11498         * TreeView.cs: When we get focus if there is no selected node make
11499         it the top node
11500         - Remove some uneeded setup code from Draw.
11501         * TreeNodeCollection.cs: If the tree doesn't have a top node when
11502         a new node is inserted make the new node the top.
11503         * XplatUIX11.cs:
11504         * Timer.cs: Use Utc time so that no local time zone stuff needs to
11505         be used (should be faster).
11506         
11507 2006-05-25  Chris Toshok  <toshok@ximian.com>
11508
11509         * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
11510         problem with the last commit.
11511
11512 2006-05-25  Chris Toshok  <toshok@ximian.com>
11513
11514         * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
11515         need the invalidate call here, while scrolling right-to-left via
11516         the left arrow key (i.e. moving the editing cell while scrolling).
11517
11518         * DataGrid.cs (.ctor): remove the initialization of
11519         ctrl_pressed/shift_pressed.  We no longer track them using key
11520         up/down handlers, but by using Control.ModifierKeys.  Also, switch
11521         to using ValueChanged handlers on the scrollbars instead of
11522         Scrolled event handlers.  This simplifies a bunch of the scrolling
11523         code.
11524         (GridHValueChanged): rename from GridHScrolled, and change it to
11525         work with the new event args.
11526         (GridVValueChanged): same.
11527         (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
11528         (OnMouseWheel): actually scroll the datagrid.  Don't change the
11529         selected cell.
11530         (ProcessGridKey): correct all the keyboard navigation stuff I
11531         could find.  Ctrl up/down/left/right/home/end work now.
11532         (EnsureCellVisibility): correct method name spelling.  Also,
11533         simplify this a touch by not explicitly calling the
11534         ScrollToRow/ScrollToColumnInPixels methods.  We just set the
11535         scrollbar value.
11536         (OnKeyUpDG): no need for this method now.
11537         
11538 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
11539
11540         * LinkLabel.cs: display the OverrideCursor when hovering the label.
11541         Fixes bug #78392.
11542
11543 2006-05-25  Chris Toshok  <toshok@ximian.com>
11544
11545         * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
11546         r61019.
11547
11548 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
11549
11550         * Application.cs: Moved setting of is_modal and closing to before
11551           we create the control, to allow the event handlers called as a
11552           result of creation affect closing. Also removed Gonzalo's previous
11553           change to setting DialogResult, the behaviour has been moved to 
11554           Form.ShowDialog()
11555         * Form.cs: 
11556           - ShowDialog(): Removed explicit creation of the form, let RunLoop
11557             handle it instead
11558           - ShowDialog(): If no dialog result is set, we need to return Cancel
11559           - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
11560             the close is cancelled
11561
11562 2006-05-25  Jackson Harper  <jackson@ximian.com>
11563
11564         * StatusBar.cs: We only need to update the sizes of the other
11565         panels when we have auto size contents.  Also we are only updating
11566         the contents of the panel, not the borders, so compensate for the
11567         border width (TODO: get this width from the theme somehow).
11568         * TreeView.cs: Scrollable is true by default
11569         - Use invalidate instead of refresh where needed
11570         - Factor the scrollable value into scrollbar updating
11571         - Update the scrollbars if the Scrollable property is altered
11572         - Update the selected node if its ImageIndex is changed
11573         - Handle null nodes in UpdateNode (mainly so we don't have to
11574         check if selected is null when updating it
11575         - Fix VisibleCount to use the ViewportRectangle so that scrollbars
11576         are factored into the visible count
11577         - Use VisibleCount for clarity in the code
11578         - When the font is changed we need to recurse through all the
11579         nodes and invalidate their sizes
11580         
11581 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
11582
11583         * Application.cs: set the DialogResult to fixed when the main form is
11584         hidden or destroyed while being modal.
11585
11586 2006-05-25  Miguel de Icaza  <miguel@novell.com>
11587
11588         * Theme.cs: Use Tangoified messagebox icons. 
11589
11590         (GetSizedResourceImage): Also cope with width = 0 and do not
11591         trigger a warning in that case (0 means "give me your icon from
11592         the resouce, no special size needed).
11593
11594 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
11595
11596         * Application.cs: Leave runloop if the the main modal form is 
11597           hidden (fixes #78484)
11598
11599 2006-05-25  Atsushi Enomoto  <atsushi@ximian.com>
11600
11601         * BindingContext.cs : reject null datasource in Contains() and
11602           Item[].
11603         * CurrencyManager.cs : check data_member validity when data_source
11604           is dataset. When it is late binding, the initial position is -1.
11605
11606 2006-05-24  Jackson Harper  <jackson@ximian.com>
11607
11608         * TreeNodeCollection.cs: Dont't recalculate the visible order on
11609         inserted nodes that aren't visible.  This changes the
11610         max_visible_order which confuses scrollbar settings.
11611         - Use the enumerator to get the prev node instead of duplicating
11612         code.
11613         * TreeView.cs: Use new method for setting scrollbar values
11614         - Don't set the bounds every time the scrollbar is updated
11615         - When updating below the root node use an invalidate instead of a
11616         refresh to prevent the child controls (scrollbars) from being
11617         refreshed. (UpdateBelow still needs to be reworked anyways).
11618         - Reenable SetBottom now that visible orders are set correctly,
11619         added some debug code incase we ever get bad values there again.
11620         - Set the scrollbar max to 2 less then the max value, this
11621         compensates for the max value being one above the node count, and
11622         for scrollbars adding one extra "notch".
11623         - When drawing image nodes if there is an imagelist we draw the
11624         first image in the list if the supplied image index is out of the
11625         image list's bounds.
11626         
11627 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
11628
11629         * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when 
11630           we receive a size change from the WM (Fixes #78503)
11631
11632 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com>
11633
11634         * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip 
11635           rectangle (Fixes #78501)
11636
11637 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
11638
11639         * ButtonBase.cs: 
11640           - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button 
11641             as a bitfield.
11642           - Fixed MouseMove to no longer switch pressed state unless the left
11643             mouse button is pressed. Atsushi provided the original patch (#78485)
11644           
11645 2006-05-24  Jackson Harper  <jackson@ximian.com>
11646
11647         * ScrollBar.cs: New internal methods that allow us to change a
11648         couple values on the scrollbar (the most common case is maximum
11649         and large change) without getting multiple invalidates.
11650
11651 2006-05-24  Chris Toshok  <toshok@ximian.com>
11652
11653         * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
11654         (Edit): save off the original state in oldState, and set
11655         grid.is_editing to true.
11656         (OnKeyDown): abort editing if escape is pressed.  also, call
11657         NextState if space is pressed.
11658         (OnMouseDown): call NextState.
11659         (NextState): factor out shared code from OnKeyDown and OnMouseDown
11660         here.  Also, only invalidate the row header once (on the initial
11661         is_changing switch) to save on redraws.
11662
11663 2006-05-24  Chris Toshok  <toshok@ximian.com>
11664
11665         * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
11666         if the value in the cell is different than it was before.  This
11667         keeps us from triggering a layout when we move around a datarid
11668         with a highlighted cell.
11669         (Edit): suspend layout when creating/positining the text box, and
11670         resume passing false so we don't ever actually re-layout.
11671         (ReleaseHostedControl): same.
11672         (EnsureTextBox): reformat slightly, and set WordWrap to false.
11673
11674         * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
11675         control-key sequences should go to the datagrid - remove that
11676         lock.  Also, modify the conditions under which we move between
11677         cells when moving the cursor within a cell, and remove the "this"
11678         and "base" from field accesses.  We weren't even consistent, given
11679         they all were in the base class.
11680
11681 2006-05-24  Atsushi Enomoto  <atsushi@ximian.com>
11682
11683         * Binding.cs : (.ctor)
11684           An obvious NRE fix for BindingTest.CtorNullTest().
11685
11686 2006-05-23  Chris Toshok  <toshok@ximian.com>
11687
11688         * TextBoxBase.cs (get_Text): don't add a trailing newline, add
11689         them between lines.  This fixes some quirks editing cells in the
11690         datagrid.
11691
11692 2006-05-23  Jackson Harper  <jackson@ximian.com>
11693
11694         * TreeView.cs: Use begin/end update when doing expand/collapse all
11695         so that we don't get flicker on the scrollbar.
11696
11697 2006-05-23  Jackson Harper  <jackson@ximian.com>
11698
11699         * TreeNode.cs: Bounds are computed 'on the fly' now.  This allows
11700         treenode calculations to be independant of the painting code. To
11701         do this nodes track a visible order which is calculated by the
11702         treeview.
11703         - Call new methods for expanding/collapsing nodes.  These methods
11704         use scrollwindow so we don't have to update everything below the
11705         node.
11706         * TreeView.cs: Refactored drawing and scrolling code.  We don't
11707         need to update nodes when drawing anymore or calculate scrollbar
11708         stuff.
11709         - Added new methods for expanding/collapsing nodes. These methods
11710         use ScrollWindow so as to not have to redraw all the nodes below.
11711         * TreeNodeCollection.cs: Recalc visible order and scrollbars when
11712         we add/remove nodes or sort.
11713         - Handle removing the selected and the top node properly.
11714
11715 2006-05-23  Chris Toshok  <toshok@ximian.com>
11716
11717         * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
11718         maybe this should actually happen in the datagrid code?
11719         (EndEdit): no need to invalidate anything, given that
11720         ReleaseHostedControl causes the datagrid to relayout, which
11721         invalidates everything anyway.
11722
11723         * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
11724         in SetCurrentCell).
11725         (set_SelectionBackColor): call InvalidateSelection instead of
11726         Refresh.
11727         (set_SelectionForeColor): same.
11728         (BeginEdit): Flesh this out a bit.
11729         (CancelEditing): only do any of this if we're editing/adding.
11730         (EndEdit): same.
11731         (OnMouseDown): there's no need to cancel editing here, it's done
11732         in SetCurrentCell.
11733         (SetCurrentCell): only invalidate the current row header if it's a
11734         different row than the new one.
11735         (ShiftSelection): fix this to work like MS does.
11736         (ResetSelection): factor out the invalidation of selected_rows to
11737         InvalidateSelection.
11738         (SetDataSource): cancel any editing that's going on.
11739
11740         * DataGridColumnStyle.cs
11741         (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
11742         call the non-interface version.
11743
11744         * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
11745         header rectangle with the clip rectangle so we don't redraw the
11746         entire header for just a small area.  Gets rid of the last flicker
11747         when horizontally scrolling.
11748         (DataGridPaintRow): same.
11749
11750 2006-05-23  Mike Kestner  <mkestner@novell.com>
11751
11752         * ListViewItem.cs: remove size for line hack from LargeIcon layout.
11753         * ThemeWin32Classic.cs: don't draw line.  it's really the top of a
11754         poorly placed checkbox on the MS control.  Fixes Alex's unfiled
11755         Critical bug report.
11756
11757 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
11758
11759         * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
11760           and this fixes #78493
11761
11762 2006-05-23  Miguel de Icaza  <miguel@novell.com>
11763
11764         * Theme.cs (GetSizedResourceImage): Scale images if the proper
11765         size is not found.  
11766         
11767         * FileDialog.cs: Do not change the background for the side bar as
11768         it wont work nicely with the theme, and also reduces the artifacts
11769         in rendering the icons (which I want to fix too).
11770
11771         * MimeIcon.cs (ResourceImageLoader): Load images from assembly
11772         resources, not resgen resources. 
11773
11774         (PlatformDefaultHandler): Pull images using the new API.
11775
11776 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
11777
11778         * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
11779           a reference to the hwnd and will not remove it unless there are
11780           no pending exposures (fixes #78341)
11781         * XplatUI.cs: Improved debug
11782
11783 2006-05-23  Atsushi Enomoto  <atsushi@ximian.com>
11784
11785         * MenuAPI.cs : don't handle OnClick event when it was not the left
11786           button. Fixed bug #78487.
11787
11788 2006-05-23  Mike Kestner  <mkestner@novell.com>
11789
11790         * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
11791         prefer submenus to the top menu for item lookup, to avoid popping down
11792         top-row items.
11793
11794 2006-05-23  Alexander Olk  <alex.olk@googlemail.com>
11795
11796         * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
11797           Graphics.FillRectangle as the visual results are really bad (even
11798           on win). We now draw perfect arrows (and perfect shadows when the
11799           scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
11800           Pen.DashPattern to draw the dots of each line.
11801
11802 2006-05-22  Alexander Olk  <alex.olk@googlemail.com>
11803
11804         * FileDialog.cs: Update the filename combobox when navigating through
11805           the ListView with the cursor keys. Fixes part 7 of bug #78446.
11806
11807 2006-05-22  Mike Kestner  <mkestner@novell.com>
11808
11809         * ListView.cs: raise SelectedIndexChanged on keyboard selection.
11810         Fixes #78463.
11811
11812 2006-05-22  Mike Kestner  <mkestner@novell.com>
11813
11814         * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
11815         requests. Fix a misspelled parameter and a copy paste exception error
11816         in Select.
11817
11818 2006-05-22  Peter Dennis Bartok  <pbartok@novell.com> 
11819
11820         * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
11821           to get the same width/height (5/13) on X11 as the default font has on
11822           win32. This means that our DefaultFont emSize is smaller than the 
11823           the MS SWF equivalent (even thought the width/height stays the same)
11824
11825 2006-05-20  Jackson Harper  <jackson@ximian.com>
11826
11827         * MdiClient.cs:
11828         * MdiWindowManager.cs:
11829         * InternalWindowManager.cs: Make sure to use the border width from
11830         the theme.
11831
11832 2006-05-20  Jordi Mas i Hernandez <jordimash@gmail.com>
11833
11834         * PrintDialog.cs: Implements printer details
11835
11836 2006-05-19  Alexander Olk  <alex.olk@googlemail.com>
11837
11838         * FileDialog.cs: Added focus handling for PopupButtonPanel.
11839           Fixes part 1 and 2 of bug #78446
11840
11841 2006-05-19  Peter Dennis Bartok  <pbartok@novell.com> 
11842
11843         * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
11844           instead of sticking to the first ever calculated value
11845
11846 2006-05-19  Mike Kestner  <mkestner@novell.com>
11847
11848         * ComboBox.cs: fix mouse motion selection to use MousePosition and
11849         PointToClient, since Capture is set. Fixes #78344.
11850
11851 2006-05-19  Mike Kestner  <mkestner@novell.com>
11852
11853         * ListView.cs: match MS behavior in Details view where items are not
11854         drawn if Columns.Count == 0. 
11855         * ThemeWin32Classic.cs: only highlight ListView selection if focused.
11856         Use a separate pen to draw the check, since changing the width affects
11857         the box as well.  Fixes #78454.
11858
11859 2006-05-18  Miguel de Icaza  <miguel@novell.com>
11860
11861         * ListView.cs: ArgumentOutOfRangeException, single versions of the
11862         exception should throw the name of the invalid argument.
11863
11864         * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
11865         there are no files listed. 
11866
11867 2006-05-18  Jackson Harper  <jackson@ximian.com>
11868
11869         * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
11870         up.
11871
11872 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
11873
11874         * Control.cs: Brought back our old UpdateZOrder method as a private
11875           function and switched our calls from UpdateZOrder to the new one.
11876           This fixes the Paint.Net canvas disappearing bug.
11877
11878 2006-05-18  Jackson Harper  <jackson@ximian.com>
11879
11880         * Theme.cs:
11881         * ThemeWin32Classic.cs:
11882         * InternalWindowManager.cs: Move the drawing into the theme,
11883         expose everything the theme should need from the window manager.
11884
11885 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
11886
11887         * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value 
11888           from the call to NativeWindow to avoid walking up the parent chain
11889           further than needed (speeds up setting cursors and avoids setting
11890           the wrong cursor if a parent has another cursor defined)
11891         * Cursor.cs: When loading an icon as cursor, MS uses the center of
11892           the icon as hotspot, not what's contained as hotspot in the icon
11893           file. This fixes the perceived drawing offset seen with Paint.Net
11894         
11895 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
11896
11897         * XplatUIX11.cs: 
11898           - Store the calculated rectangle in Hwnd object and use it when 
11899             setting the client size
11900           - Force Toolwindows to always be type Dock, to ensure they're on top
11901
11902 2006-05-18  Mike Kestner  <mkestner@novell.com>
11903
11904         * ComboBox.cs: first pass at ComboBox rework.  Layout is more
11905         consistent with MS positioning.  IntegralHeight, ItemHeight, Sizing.
11906         Correctly initialize textcontrol and ListBox on DropDownStyle changes. 
11907         Substantial refactoring to remove confusing nested classes. Coding
11908         standard and Get+Set->property refactorings.  Shift to index based
11909         highlighting in ComboListBox instead of constantly using IndexOf and
11910         Items[]. Add invalidations on resize for DropDownList to fix ugliness
11911         in FileDialog growth.  Draw borders manually since Simple mode needs
11912         to look like two independent controls.  Make listbox border
11913         conditional to DropDownStyle.  Improved OwnerDraw support.
11914
11915 2006-05-18  Sebastien Pouliot  <sebastien@ximian.com>
11916
11917         * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor. 
11918         Don't set the disposed graphics to null, so we can throw the "right"
11919         exception if the graphics is reused later (added a flag to avoid 
11920         double disposing). Some behaviours are different under 2.0 and are
11921         filled under bug #78448.
11922
11923 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
11924
11925         * Control.cs: When double-buffering is enabled, we need to reset
11926           our graphics context between paint calls. Otherwise, any 
11927           transformations and other alterations on the context will 
11928           become cumulative (#77734)
11929
11930 2006-05-18  Mike Kestner  <mkestner@novell.com>
11931
11932         * ListView.cs: do focused item selection like MS on clicks. 
11933         Rework focus handling for ItemControl so LostFocus invalidates as
11934         well.
11935         * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
11936         the ListView ItemControl has focus.
11937
11938 2006-05-17  Peter Dennis Bartok  <pbartok@novell.com>
11939
11940         * XplatUIX11.cs: If client_window ends up being width or height zero
11941           due to border settings, move it off window inside whole_window (#78433)
11942
11943 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
11944
11945         * Mime.cs: Shrink the mime file cache correctly.
11946
11947 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
11948
11949         * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
11950
11951 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
11952
11953         * XplatUIX11.cs (AddExpose): More sanity checks
11954
11955 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
11956
11957         * XplatUIX11.cs:
11958           - AddExpose: Don't add expose ranges outside the size of our
11959             window
11960           - Cast opacity values to Int32 to avoid crashes with certain
11961             values
11962           - Added disabled code paths that protect against illegal cross-
11963             thread painting (Developers.exe)
11964
11965 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
11966
11967         * ProgressBar.cs: Invalidate the control when it's resized
11968           since block size is based on control size. (#78388)
11969
11970 2006-05-16  Miguel de Icaza  <miguel@novell.com>
11971
11972         * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
11973         of setting the incoming argument to the "reset" value, we set the
11974         this.datamember to string.empty (before we were invalidating the
11975         incoming data).   
11976
11977         Fixes 78420
11978
11979 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
11980
11981         * Form.cs: Only apply transparency settings after the form
11982           is created. (Fixes #77800)
11983
11984 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
11985
11986         * ApplicationContext.cs: Grab the HandleDestroyed event so
11987           we know when to fire OnMainFormClosed 
11988
11989 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
11990
11991         * Application.cs: Introduced sub-class to allow tracking of
11992           threads and centralized triggering of the event mess for
11993           ThreadExit, AppExit, etc..  (#76156)
11994
11995 2006-05-16  Alexander Olk  <alex.olk@googlemail.com>
11996
11997         * MimeIcon.cs:
11998           - Do not return a null icon index value for a mime subclass.
11999             Instead try the main mime type class too.
12000           - Seems that some newer distributions don't have a link to some
12001             gnome default icons anymore. So check the default gnome dir too.
12002           
12003
12004 2006-05-16  Jackson Harper  <jackson@ximian.com>
12005
12006         * MdiClient.cs: Don't paint the parent background image if we have
12007         our own background image.
12008
12009 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
12010
12011         * Control.cs:
12012           - PerformLayout: Do not shrink space filled by DockStyle.Fill
12013             controls, all filled controls are supposed to overlap (#78080)
12014           - UpdateZOrder is supposed to update the control's z-order in the
12015             parent's z-order chain. Fixed to behave like that
12016           - BringToFront: Removed obsolete code
12017           - SendToBack: Simplyfied
12018           - SetChildIndex: Trigger layout calculations when Z-order changes
12019             since layout is done by z-order
12020
12021 2006-05-16  Chris Toshok  <toshok@ximian.com>
12022
12023         [ fixes bug #78410 ]
12024         * DataGrid.cs (set_AlternatingBackColor): use
12025         grid_drawing.InvalidateCells instead of Refresh().
12026         (set_BackColor): call grid_drawing.InvalidateCells.
12027         (set_BackgroundColor): use Invalidate instead of Refresh.
12028
12029         * DataGridDrawingLogic.cs (InvalidateCells): new function, just
12030         invalidate the cell area.
12031
12032 2006-05-15  Chris Toshok  <toshok@ximian.com>
12033
12034         [ fixes bug #78011 ]
12035         * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
12036         on to DataGridPaintRow.
12037         (DataGridPaintRow): take a clip argument, and only draw the cells
12038         which intersect it.  same with the not_usedarea.
12039
12040         * Theme.cs (DataGridPaintRow) add @clip parameter.
12041
12042         * DataGrid.cs (ScrollToColumnInPixels): simplify, use
12043         XplatUI.ScrollWindow.
12044         (ScrollToRow): same.
12045
12046         * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
12047         with last column which was causing a gray swath to appear with the
12048         XplatUI.ScrollWindow code.
12049
12050 2006-05-15  Chris Toshok  <toshok@ximian.com>
12051
12052         * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
12053         use XplatUI.ScrollWindow.
12054         (VerticalScrollEvent): use XplatUI.ScrollWindow.
12055
12056 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com> 
12057
12058         * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
12059
12060 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
12061
12062         * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
12063           file since there are no equivalent X11 cursors
12064
12065 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
12066
12067         * MonthCalendar.cs : DateTimePicker should reflect selected date
12068           on mouse*up*, not mouse*down*. Fixed originally reported part of
12069           bug #76474.
12070
12071 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
12072
12073         * TabControl.cs : When argument index is equal or more than tab
12074           count, just ignore. Fixed bug #78395.
12075
12076 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
12077
12078         * Control.cs: Dispose all child controls when control is diposed (#78394)
12079
12080 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
12081
12082         * ColorDialog.cs: Finally it is possible to select the color with
12083           the text boxes
12084
12085 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
12086
12087         * PrintDialog.cs: Fix typo
12088
12089 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
12090
12091         * PrintDialog.cs: PrintDialog is not resizable
12092         * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
12093           color. Made some ToolBar drawing methods protected virtual.
12094
12095 2006-05-13  Jordi Mas i Hernandez <jordimash@gmail.com>
12096
12097         * PrintDialog.cs: Implementation of the PrintDialog
12098
12099 2006-05-12  Chris Toshok  <toshok@ximian.com>
12100
12101         * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
12102         thumb, instead use MoveThumb.  This has the side effect of making
12103         most of the other thumb moving machinery use MoveThumb as well.
12104         (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
12105         need to actually invalidate the rectangle where the new thumb will
12106         go.
12107         (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
12108         We force an Update() after, so it's not as fast as it could be,
12109         but at least there's zero flicker and no droppings.
12110         (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
12111         (UpdateThumbPos): add another argument (dirty), which says whether
12112         or not to calculate/add dirty regions which we later invalidate.
12113         For cases where we know we're going to use MoveThumb, we pass
12114         false for this.  Otherwise, pass true.
12115
12116 2006-05-12  Jackson Harper  <jackson@ximian.com>
12117
12118         * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
12119         the status bar.
12120         
12121 2006-05-12  Peter Dennis Bartok  <pbartok@novell.com>
12122
12123         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
12124           and GetClipRegion methods and UserClipWontExposeParent property.
12125         * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
12126           overriding UserClipWontExposeParent property, setting to false, since
12127           Win32 handles the required expose messages to draw our clipped parent
12128           areas internally
12129         * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
12130           PaintEventStart to set the user clip region if set.
12131         * Control.cs: 
12132           - Now internally tracking the Region for the control since we need to
12133             store it if the handle is not yet created and only set it when it
12134             becomes created. Before setting the region forced handle creation
12135           - Added code to draw the parents underneath a user-clipped region
12136         * Hwnd.cs: Added UserClip property
12137
12138 2006-05-12  Chris Toshok  <toshok@ximian.com>
12139
12140         * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
12141         (set_Maximum): same.
12142         (set_Minimum): same.
12143         (set_SmallChange): same.
12144         (OnMouseUpSB): remove the call to refresh when releasing the
12145         thumb.  We shouldn't need it.
12146         
12147 2006-05-12  Miguel de Icaza  <miguel@novell.com>
12148
12149         * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
12150         AutoSize set to None, we do not need to relayout everything, we
12151         just need to invalidate the current region.
12152
12153         (Draw): Do not draw the entire ClientArea, just redraw the
12154         clip area being passed.
12155
12156         * MdiClient.cs: Make MdiClient constructor with the Form argument
12157         internal. 
12158
12159 2006-05-12  Jackson Harper  <jackson@ximian.com>
12160
12161         * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
12162         parents background image,  but strangely not their own.
12163         - (DrawStatusBarPanel): Take into account horizontal alignment
12164         when drawing the strings and icons.
12165
12166 2006-05-12  Mike Kestner  <mkestner@novell.com>
12167
12168         * ListBox.cs: avoid invalidations for focus when the collection is
12169         empty. 
12170
12171 2006-05-12  Chris Toshok  <toshok@ximian.com>
12172
12173         * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
12174         invalidate the entire thumb area.  Call InvalidateDirty which
12175         limits the redraw to the thumb itself and surrounding pixels.
12176
12177         * XplatUIX11.cs (ScrollWindow): optimize copying.
12178         
12179 2006-05-12  Chris Toshok  <toshok@ximian.com>
12180
12181         * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
12182         Figure out the positioning/layout in a single pass instead of
12183         multiple recursive invocations.  Speeds up the initial display of
12184         the data grid.  Also, make many things private that were
12185         originally public but unused outside this class.
12186
12187 2006-05-11  Jackson Harper  <jackson@ximian.com>
12188
12189         * MdiClient.cs: Improved layout code.
12190
12191 2006-05-11  Jonathan Chambers  <jonathan.chambers@ansys.com>
12192
12193         * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
12194           not SelectedObject.
12195
12196 2006-05-11  Chris Toshok  <toshok@ximian.com>
12197
12198         * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
12199         union of that will always be {0,0,width,height}.
12200
12201 2006-05-11  Jackson Harper  <jackson@ximian.com>
12202
12203         * Form.cs: Match MS's DefaultSize for forms (they must have
12204         changed the size in sp2).
12205
12206 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
12207
12208         * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
12209
12210 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
12211
12212         * TextControl.cs : Fixed bug #78109. This incorrect position
12213           comparison caused crash on automatic line split.
12214         * TextBoxBase.cs : reduce duplicate code.
12215
12216 2006-05-10  Jackson Harper  <jackson@ximian.com>
12217
12218         * MdiClient.cs: Active form is only sent to the back when using
12219         the Next form functionality, when a form is clicked the current
12220         active shouldn't be sent to the back.
12221         - Layout the mdi windows when the container is first made visible.
12222         * Form.cs: Give the MdiClient a ref to the containing form when we
12223         create it.
12224         
12225 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
12226
12227         * LinkLabel.cs : link_font could be uninitialized, so populate one
12228           before actual use. Fixed bug #78340.
12229
12230 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
12231
12232         * XplatUIX11.cs : clipboard format native value is IntPtr.
12233           Fixed bug #78283.
12234
12235 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
12236
12237         * Control.cs: 
12238           - Instead of showing context menus directly we send WM_CONTEXTMENU, 
12239             which is passed up the parent chain by DefWndProc
12240           - We now handle WM_CONTEXTMENU to display any menu, or pass it 
12241             to DefWndProc (#77956)
12242         * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
12243
12244 2006-05-10  Jackson Harper  <jackson@ximian.com>
12245
12246         * MdiClient.cs: We need to remove the controls from the mdi
12247         collection, when we close the window.
12248         * MdiWindowManager.cs: Special handling of closing mdi windows.
12249         * InternalWindowManager.cs: Make the close method virtual so the
12250         mdi window manager can handle it specially.
12251
12252 2006-05-10  Jordi Mas i Hernandez <jordimash@gmail.com>
12253
12254         * DataGrid.cs:
12255           - Recalculate grid when the data source has changed
12256           - Matches styles provided by user from all data sources types
12257         * DataGridTableStyle.cs: For columns that provided by the user set the
12258         with the preferred value is there was unassigned.
12259         * CurrencyManager.cs: throw OnItemChanged event
12260
12261 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com> 
12262
12263         * PictureBox.cs: Don't animate until handle is created. Start animation
12264           when handle is created.
12265
12266 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
12267
12268         * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
12269           current codebase.
12270         * XEventQueue.cs: We don't need to provide the extra info
12271
12272 2006-05-10  Jackson Harper  <jackson@ximian.com>
12273
12274         * MdiClient.cs: If the mdi clients parent form has a background
12275         image set, we draw that background image for the mdi area's
12276         background.
12277
12278 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
12279
12280         * TextBoxBase.cs: Set IBeam cursor (#78347)
12281
12282 2006-05-10  Mike Kestner  <mkestner@novell.com>
12283
12284         * ToolBar.cs: fix some text padding issues with ButtonSize
12285         calculation. Update the default size to match MS documentation.
12286         * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
12287         button size. Fixes #78296.
12288
12289 2006-05-10  Mike Kestner  <mkestner@novell.com>
12290
12291         * ListBox.cs: use is_visible for scrollbar positioning in case the
12292         control isn't on screen yet.  Fix off by one with Right vs Width
12293         usage.  Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
12294         
12295 2006-05-10  Jackson Harper  <jackson@ximian.com>
12296
12297         * X11Dnd.cs: Drop to a control with another control on top of it.
12298         * ToolBar.cs: Work on a copy of the buttons list, so that it can
12299         be modified in click handlers. TODO: Look for similar problems in
12300         other controls.
12301
12302 2006-05-09  Jackson Harper  <jackson@ximian.com>
12303
12304         * Form.cs: Window managers need the old window state when setting
12305         window state now.
12306         * InternalWindowManager.cs: Allow the base mdi window manager to
12307         handle more of the MDI only stuff (like maximize buttons).
12308         * MdiWindowManager.cs: Fix some snafus in changing the window
12309         state.  Add all the menu functionality, for both popup and
12310         maximized menus.
12311         * MdiClient.cs: When a new form is selected the currently
12312         activated form is sent to the back, this matches MS.
12313         - Implement a new method to activate the next mdi child window.
12314
12315 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com>
12316
12317         * Control.cs: 
12318           - Added new InternalCapture method to allow controls to prevent
12319             the capture behaviour on the click handlers
12320           - Switched to use InternalCapture
12321         * ComboBox.cs:
12322           - Using InternalCapture to prevent mouse captures from being released
12323             on mouse button release (Fixes #78100)
12324         * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
12325           returns Form borders if a caption is present. (Fixes #78310)
12326
12327 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com> 
12328
12329         * TreeNode.cs: Changed serialization .ctor to not require every field
12330           to be present. (#78265)
12331         * OwnerDrawPropertyBag.cs: Added serialization .ctor
12332
12333 2006-05-05  Alexander Olk  <alex.olk@googlemail.com>
12334
12335         * MimeIcon.cs: for is faster than foreach for strings.
12336
12337 2006-05-05  Mike Kestner  <mkestner@novell.com>
12338
12339         * CheckedListBox.cs: update check handling code to not use selected.
12340         * ListBox.cs: rewrite of mouse selection handling to correspond to MS
12341         behavior for visual feedback, motion response, shift/ctrl handling,
12342         and properly deal with all 4 selection modes. Updates to bounds
12343         handling logic.  Add scroll wheel support. [Fixes #77842]
12344
12345 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
12346
12347         * ListView.cs:
12348           - Moved adding of Implicit controls into .ctor. That way, subsequent
12349             creation of the controls will not cause them to think they are 
12350             toplevel windows (fixes #78200 header problem)
12351           - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
12352           - Switched visibility setting of header control to use internal field
12353             to avoid triggering handle creation
12354           - Now checking if handle is created before causing a refresh when items
12355             are added (This makes us now match handle creation time with MS)
12356         * Splitter.cs: Removed loading of private splitter cursor, switched to
12357           Cursors version now that that is loading the right ones
12358         * Cursors.cs: Load proper splitter cursors from resources
12359         * Cursor.cs: Added second method of loading resource cursors for the 
12360           VS.Net users amongst us
12361
12362 2006-05-05  Mike Kestner  <mkestner@novell.com>
12363
12364         * ListView.cs: give header_control a minimum size based on the
12365         ListView size.
12366
12367 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
12368
12369         * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
12370           window seems to do that with metacity, so set that type. (#78120)
12371
12372 2006-05-05  Mike Kestner  <mkestner@novell.com>
12373
12374         * ListViewItem.cs: fix Details mode checkbox layout bug.
12375         * ThemeWin32Classic.cs: draw a ListView column header for unused space
12376         at the end of the header, if it exists. [Fixes for #78200]
12377
12378 2006-05-04  Jackson Harper  <jackson@ximian.com>
12379
12380         * MdiClient.cs: Add a helper property to get the container form.
12381         * MdiWindowManager.cs: We have to make sure to use the menu origin
12382         when drawing the icons and buttons, this fixes maximized window
12383         icons/buttons on win32.
12384         * InternalWindowManager.cs: Reset the restore captions when a
12385         window goes from Maximized to Minimized and vice versa. Move the
12386         DrawMaximizedButtons into the MdiWindowManager source, tool
12387         windows can't be maximized. NOTE: This could use a little
12388         refactoring if time ever permits.
12389         
12390 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
12391
12392         * TextBox.cs: Add MWFCategoryAttributes
12393         * TextBoxBase.cs: Add MWFCategoryAttributes
12394         * Form.cs: Add MWFCategoryAttributes
12395
12396 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
12397
12398         * Control.cs: Add MWFCategoryAttributes
12399         * ScrollableControl.cs: Add MWFCategoryAttributes
12400
12401 2006-05-03  Alexander Olk  <alex.olk@googlemail.com>
12402
12403         * ThemeWin32Classic.cs: Draw the ToolBar top border only if
12404           Divider is true. Fix a little glitch in PropertyToolBar
12405           drawing code
12406
12407 2006-05-02  Peter Dennis Bartok  <pbartok@novell.com> 
12408
12409         * Control.cs:
12410           - Dispose: Call base.Dispose, this causes the disposed event
12411             to be fired (and probably other, more important stuff)
12412           - SetVisibleCore: Set is_visible to true after creating the
12413             window so that the window still gets created invisible (if
12414             WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
12415             to generate a WM_ACTIVE message
12416         * Form.cs: Call Dispose when we want to destroy the window, instead of
12417           just destroying the handle (Dispose will do that for us)
12418         * XplatUIX11.cs:
12419           - RootWindow also needs a queue, so we can properly process the
12420             property change events from RootWindow (like Activate)
12421           - Generatic synthetic WM_ACTIVE message when the active window is
12422             being destroyed
12423
12424 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
12425
12426         * LinkLabel.cs: Trigger a recalc of our label dimensions when
12427           bounds are changed
12428
12429 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com>
12430
12431         * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
12432           for determining width and height (image might not be assigned if
12433           we're drawing an imagelist)
12434
12435 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
12436
12437         * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
12438         * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
12439           height from system
12440         * Theme.cs: No longer returns hardcoded menu height, instead calls
12441           new driver method
12442         * Form.cs (OnLoad): Scaling happens before triggering Load events 
12443           on MS (# 78257)
12444
12445 2006-05-01  Mike Kestner  <mkestner@novell.com>
12446
12447         * MenuItem.cs: fix NRE for text == null.  Fixes #78250.
12448
12449 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com> 
12450
12451         * TextBoxBase.cs: Removed Fixme
12452         * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
12453
12454 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com>
12455
12456         * XplatUIX11.cs:
12457           - ScrollWindow: We were passing hwnd.ClientRectangle which returns
12458             the rectangle relative to the parent, considering borders. We
12459             don't really want that.
12460           - ScrollWindow: Fixed warning to be more understandable
12461         * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
12462           scrollbars and scroll only the visible area
12463         * RichTextBox.cs: Removed debug output
12464
12465 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
12466
12467         * NumericUpDown.cs (Text): Just use base
12468         * UpDownBase.cs: Ensure txtView is created before using it
12469
12470 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
12471
12472         * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
12473           casting to IntPtr to avoid 64bit overflow errors
12474
12475 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
12476
12477         * Control.cs:
12478           - AllowDrop: Don't force handle creation.
12479           - CreateHandle: Added call to tell driver if we're allowed to drop
12480
12481 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
12482
12483         * FileDialog.cs: Remember the last directory not only for the
12484           current instance but also for new FileDialog instances.
12485
12486 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
12487         
12488         * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
12489           broke sending async messages
12490
12491 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
12492
12493         * XplatUIX11.cs:
12494           - ScrollWindow: Fixed method. We finally generate expose events again
12495             for scrolled areas. This was causing 'garbage' when scrolling
12496             textbox and other controls that used ScrollWindow
12497           - Switched from using the regular queue for paint events to the MS 
12498             model of 'generating' paint events when the queue is empty.
12499             We use the new XQueueEvent.Paint subclass to store which windows
12500             need painting.
12501           - AddExpose now takes the x/y/width/height of the exposed area
12502             and inserts the window into the paint queue if not already there
12503           - InvalidateWholeWindow: Switched to use new AddExpose method
12504           - UpdateMessageQueue: Added which queue to monitor for paint events
12505           - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
12506             the unlikely case nothing above handles it. We reset the expose
12507             pending states to get them off the queue.
12508           - GetMessage: Now pulls a paint event if no other events are in the
12509             queue
12510           - Invalidate: Switched to new AddExpose method
12511           - PeekMessage: Updated to understand pending paint events
12512           - UpdateWindow: Fixed logic bug. We were only updating if the window
12513             didn't need updating. Also switched to sending WM_PAINT directly,
12514             like MS does.
12515         * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
12516           and random access Remove(). The random access is needed to handle
12517           UpdateWindow() where a WM_PAINT is sent directly without accessing
12518           the queue.
12519         * ScrollBar.cs: Added Update() calls to cause immediate updates to
12520           allow for better feedback when scrolling. Scrollbars are small and
12521           the immediate update should make it 'feel' more responsive without
12522           slowing things down. ScrollBar still needs it's invaliate logic
12523           updated to not always invalidate the whole bar on certain changes.
12524
12525 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12526
12527         * Control.cs:
12528         (BackColor): if the control does not support a transparent background,
12529         return the default backcolor when the parent backcolor is transparent.
12530
12531 2006-04-28  Peter Dennis Bartok  <pbartok@novell.com>
12532
12533         * Application.cs: Updated to new StartLoop/GetMessage API
12534         * RichTextBox.cs: Provide some output on RTF parsing errors
12535         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
12536           new queue_id argument to GetMessage and PeekMessage to allow faster
12537           handling of per-thread queues in drivers.
12538         * Hwnd.cs: Added Queue tracking and property
12539         * MenuAPI.cs: Updated to new StartLoop/GetMessage API
12540         * XEventQueue.cs: Added thread trackingA
12541         * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
12542         * XplatUIX11.cs:
12543           - Implemented new per-thread queue
12544           - GetMessage: Fixed return/break behaviour on several cases. We were
12545             returning stale messages in some cases, instead of just processing
12546             the next message
12547
12548 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
12549
12550         * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
12551
12552 2006-04-27  Peter Dennis Bartok  <pbartok@novell.com>
12553
12554         * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
12555           fixed off-by-one comparisons between Width/Height and Right/Bottom.
12556
12557 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
12558
12559         * PropertyGridView.cs: Fix drop down width.
12560
12561 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
12562
12563         * ThemeWin32Classic.cs: Peter thinks that three additional lines are
12564           a mess in DrawToolBar, so I removed one of them.
12565
12566 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
12567
12568         * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
12569           needed (clip). Otherwise we get artifacts.
12570
12571 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
12572
12573         * FixedSizeTextBox.cs: Added constructor to allow specifying which
12574           dimension is fixed
12575         * UpDownBase.cs: Set the spinner control to be fixed height vertical,
12576           and switched FixedSizeTextBox to only be fixed vertical (#78116)
12577         * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
12578           if it matches the scale base font (avoids unneeded scaling)
12579
12580 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
12581
12582         * X11DesktopColors.cs: One gtk_init_check should be enough
12583
12584 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com> 
12585
12586         * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
12587           match MS behaviour
12588
12589 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
12590
12591         * TextBoxBase.cs: 
12592           - Generate OnTextChanged for Backspace even if we're only deleting
12593             the current selection
12594           - When setting the Text property, only select all text if the
12595             control does not have focus when it is being set. Otherwise
12596             just place the cursor at the beginning of the control
12597
12598 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
12599
12600         * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
12601           Added a little helper to draw PropertyGrid ToolBar with a different
12602           border and a different BackColor.
12603         * PropertyGrid.cs: Some background parts didn't get painted with the
12604           correct background color. Added a class that helps us to draw the
12605           correct border for PropertyGridView and a class that helps us to
12606           draw ToolBars with a different backcolor
12607         * PropertyGridView.cs: Draw PlusMinus with the correct colors.
12608
12609 2006-04-25  Jonathan Chambers  <jonathan.chambers@ansys.com>
12610
12611         * PropertyGrid.cs: Bug 78196, font size, and splitter location.
12612         * PropertyGridView.cs: Bug 78196, font size, and splitter location.
12613
12614 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
12615
12616         * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
12617           into the palette entries. Also, since we're working on a copy
12618           we needed to copy the palette back onto the bitmap.
12619         * Cursor.cs: Same fix as XplatUIWin32.cs.
12620
12621 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com>
12622
12623         * ImageListStreamer.cs: Need to read the var (or we're off)
12624
12625 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
12626
12627         * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs, 
12628           XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
12629           TextBoxBase.cs: Unused var fixes
12630         * AxHost.cs: Small 2.0 fix
12631         * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms 
12632           as it seems that is what at least Metacity expects. This will make
12633           icons show up on 64bit platforms. We still have some 64bit size
12634           issues, though, since the startup app window size still won't match.
12635
12636 2006-04-25  Mike Kestner  <mkestner@novell.com>
12637
12638         * *.cs: cleanup newly reported exception var unused warnings.
12639
12640 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
12641
12642         * ThemeWin32Classic.cs: Button image alignment now matches exactly
12643           ms
12644
12645 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
12646
12647         * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
12648           image. The image position is always the same, no matter if the
12649           button is pressed or not.
12650
12651 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
12652
12653         * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
12654           selection and set the correct filename for SaveFileDialog.
12655           Patch by Emery Conrad.
12656
12657 2006-04-24  Mike Kestner  <mkestner@novell.com>
12658
12659         * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
12660         check for item.X outside the ClientRect instead of item.Y. Fixes
12661         #78151.
12662
12663 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12664
12665         * ImageListStreamer.cs: some images store a wrong grow factor, so don't
12666         trust that value blindly and do some sanity check. Fixes bug #77814.
12667
12668 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12669
12670         * ImageListStreamer.cs: save the mask as a 1bpp image.
12671
12672 2006-04-21  Mike Kestner  <mkestner@novell.com>
12673
12674         * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
12675         pass Checked and Indeterminate to the Theme Engine. Improve
12676         encapsulation with ListBox.
12677         * ListBox.cs: Keep a StringFormat instead of calculating it every item
12678         draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
12679         nested types.  Move all CheckState functionality to CheckedListBox.
12680         Make IntegralHeight work like MS.  Rewrite of Layout engine.  Fix
12681         OwnerDrawVariable layout/rendering.  Fix multicolumn rendering.  Fix
12682         ScrollAlwaysVisible handling. Refactor "selected" collections to use a
12683         single base list. Fix scrollbar sizing and placement to mirror MS.
12684         * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
12685         used.
12686         * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
12687         for CheckedListBox by using new DrawItemState info.  Center the
12688         checkboxes on the items. Use new StringFormat property.
12689
12690 2006-04-18  Jackson Harper  <jackson@ximian.com>
12691
12692         * Form.cs: MdiChildren don't do default locations the same way as
12693         regular forms.  This prevents a crash when trying to position the
12694         mdi windows.
12695
12696 2006-04-17  Jonathan Chambers  <jonathan.chambers@ansys.com>
12697
12698         * PropertyGridTextBox.cs: Formatting, copyright
12699         * PropertiesTab.cs: Formatting
12700         * PropertyGrid.cs: Formatting
12701         * PropertyGridView.cs: Formatting, fix drop down, enabled double 
12702           click toggling of values
12703           
12704 2006-04-17  Peter Dennis Bartok  <pbartok@novell.com> 
12705
12706         * KeyPressEventArgs: Added 2.0 only setter for KeyChar
12707         * Control.cs (.ctor): verify_thread_handle is static, don't reset
12708           every time a control is created
12709         * Application.cs: Removed obsolete EnableRTLMirroring method
12710
12711 2006-04-18  Gert Driesen  <drieseng@users.sourceforge.net>
12712
12713         * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
12714         SelectedIndex to -1. Fixes bug #78121.
12715
12716 2006-04-17  Jackson Harper  <jackson@ximian.com>
12717
12718         * Binding.cs: Handle null values for Current and BindingContext.
12719         This occurs when binding is a little delayed.
12720         * CurrencyManager.cs: return null for Current when there are no
12721         items in the list.
12722         - Hookup to the listchanged event on the DataView and update
12723         bindings when the list is changed.  This fixes late binding of
12724         controls.
12725
12726 2006-04-17  Jackson Harper  <jackson@ximian.com>
12727
12728         * X11Dnd.cs:
12729         * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
12730         Ringenbach.
12731
12732 2006-04-15  Alexander Olk  <alex.olk@googlemail.com>
12733
12734         * ThemeWin32Classic.cs: Draw disabled combo button in the correct
12735           place
12736         * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
12737           with the correct ButtonState
12738
12739 2006-04-14  Peter Dennis Bartok  <pbartok@novell.com>
12740
12741         * XplatUIX11.cs: Improved distinguishing between window types to
12742           tell the WM a type closer to what the app wants (Fixes #78107)
12743
12744 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
12745
12746         * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
12747           GrabHandle
12748
12749 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
12750
12751         * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
12752           drawing code to reflect the size grip changes
12753
12754 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12755
12756         * ImageListStreamer.cs: fix handling of the mask that follows the main
12757         bitmap when deserializing and serialize it properly. The generated mask
12758         should better be a 1bpp image, but I'll do that later.
12759
12760 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
12761
12762         * FileDialog.cs: Show something in the DirComboBox on *nix if the
12763           path doesn't fit into some of our Current.Places
12764
12765 2006-04-13  Jackson Harper  <jackson@ximian.com>
12766
12767         * ComboBox.cs: Use borders instead of drawing our own decorations,
12768         try to obey correct rules for heights.
12769         * Theme.cs:
12770         * ThemeNice.cs:
12771         * ThemeClearLooks.cs:
12772         * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
12773         this is now handled by borders.
12774         - Remove unused DrawListBoxDecorationSize method.
12775         
12776 2006-04-13  Mike Kestner  <mkestner@novell.com>
12777
12778         * MenuAPI.cs: null guarding for the disbled click check fixes crash
12779         reported by Alex.
12780
12781 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
12782
12783         * ThemeWin32Classic.cs: 
12784           - Fixed CPDrawStringDisabled
12785           - Corrected drawing of disabled menu items
12786           - Fixed drawing of disabled radio buttons (bug #78095)
12787           - Draw check in a disabled CheckBox with color ControlDark 
12788
12789 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
12790
12791         * Form.cs: Use the provided width when calculating the menu size;
12792           when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
12793           and ClientSize.Width won't be updated yet
12794         * Application.cs: Use Visible instead of Show() to make form visible,
12795           this way we create the handle later and menusize is considered
12796
12797 2006-04-12  Mike Kestner  <mkestner@novell.com>
12798
12799         * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
12800         reporting.
12801
12802 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
12803
12804         * TextBox.cs: Implemented context menu
12805
12806 2006-04-12  Mike Kestner  <mkestner@novell.com>
12807
12808         * ListView.cs: implement box selection. fixes #77838.
12809         * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
12810
12811 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
12812
12813         * XplatUIX11.cs: Added setting of window type when transient window
12814           is created (metacity would move it otherwise)
12815         * X11Structs.cs: Added WINDOW_TYPE atoms
12816         * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
12817           background (the control is Opaque but still wants transparent
12818           backgrounds)
12819
12820 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
12821
12822         * Control.cs: Added OnPaintBackgroundInternal to allow controls
12823           that set Opaque but don't mean it (like all ButtonBase-derived
12824           controls) to still draw their background
12825         * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
12826           the background
12827
12828 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
12829
12830         * Control.cs (PaintControlBackground): Set the graphics object
12831           on our PaintEvent to null to prevent it from being disposed
12832           when the PaintEvent gets disposed
12833
12834 2006-04-12  Alexander Olk  <alex.olk@googlemail.com>
12835
12836         * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
12837         * ThemeNice.cs, ThemeClearlooks.cs: fix typo
12838
12839 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
12840
12841         * Control.cs: 
12842           - Added transparency check to BackColor property. Transparent
12843             backgrounds are only allowed if the control styles permit it
12844           - Added recursive painting of parent control background and
12845             foreground if a control with a transparent backcolor is drawn
12846             (Thanks to Tim Ringenback for providing his 'hack' as a base
12847              for this patch) Fixes #77985 and #78026.
12848           - Added Opaque style check before calling OnPaintBackground, no
12849             need to draw the background if the control is opaque
12850           - Removed ControlAccessibleObject owner variable (inherited from
12851             base, no need to define again)
12852           - Added some documentation links explaining the drawing events
12853             and styles
12854
12855 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
12856
12857         * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
12858           that the affected control is the located at the left border of our
12859           parent (Fixes #77936)
12860
12861 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
12862
12863         * TextBoxBase.cs: When rendering disabled or readonly controls,
12864           draw the background with 'Control' instead of 'Window' color as
12865           long as the user hasn't specifically set a color
12866
12867 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
12868
12869         * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
12870           since that won't be updated if the user types text (only if it's
12871           programatically set)
12872
12873 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
12874
12875         * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
12876           layout changes do to app-triggered resizes will have the proper
12877           display rectangle for layout
12878
12879 2006-04-11  Alexander Olk  <alex.olk@googlemail.com>
12880
12881         * ThemeWin32Classic.cs:
12882           - Make use of the SystemBrushes and SystemPens wherever possible
12883           - Corrected some highlight colors
12884           - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
12885             drawing
12886         * Theme.cs: Added Empty field to CPColor struct
12887
12888 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
12889
12890         * ScrollabeControl.cs: We need to consider whether or not a scrollbar
12891           is displayed when calculating the display rectangle. Thanks to Mike
12892           for teaching me the err of my ways.
12893
12894 2006-04-10  Peter Dennis Bartok  <pbartok@novell.com>
12895
12896         * ScrollableControl.cs:
12897           - Rewrote DisplayRectangle code, now returning the proper x/y coords 
12898             (instead of 0,0) and we now return the real width/height instead of
12899             just the clientrectangle, adjusted for padding. The rectangle is
12900             now cached and created by the new CalculateDisplayRectangle method.
12901           - Created new CalculateDisplayRectange method, which basically does
12902             what get_DisplayRectangle() did originally, but now using the 
12903             right edge instead of DisplayRectangle to determine the size of
12904             our scrollbars
12905           - get_Canvas(): Fixed it to properly calculate canvas for 
12906             right/bottom controls which seem to be placed to the right/bottom
12907             of any controls that have a fixed location
12908           - Removed TODO that's taken care of
12909           - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
12910             and SetDisplayRectLocation according to new MSDN2 docs
12911           - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
12912             event when that is called, this is added for compatibility
12913           - ScrollControlIntoView(): Implemented.
12914           - Switched scrollbars to be implicit, they shouldn't be selectable
12915         * ContainerControl: Now that ScrollControlIntoView is implemented, we 
12916           call it when the active control is set/changed
12917         * ScrollBar.cs: Added support for generating Win32 scrollbar messages
12918         * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
12919           implicit_control variable (used for native Win32 message generation)
12920         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new 
12921           HorizontalScrollBarHeight and VerticalScrollBarWidth properties
12922         * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
12923         * XplatUIStructs.cs: Added ScrollBarCommands enum
12924
12925 2006-04-10  Jackson Harper  <jackson@ximian.com>
12926
12927         * ButtonBase.cs:
12928         * CheckedListBox.cs:
12929         * ComboBox.cs:
12930         * DataGrid.cs:
12931         * DataGridView.cs:
12932         * Form.cs:
12933         * GroupBox.cs:
12934         * ListBox.cs:
12935         * PrintPreviewControl.cs:
12936         * ProgressBar.cs:
12937         * PropertyGrid.cs:
12938         * Splitter.cs:
12939         * StatusBar.cs:
12940         * TrackBar.cs:
12941         * UpDownBase.cs: Fixup base event overrides.
12942         
12943 2006-04-06  Mike Kestner  <mkestner@novell.com>
12944
12945         * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
12946         all user-initiated value changes to min <= value <= max-thumbsz+1.
12947         (set_Value): check for vert/horiz when calculating new thumb position.
12948         (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
12949         like MS does.
12950         (OnMouseMoveSB): refactor the thumb dragging code and refine
12951         invalidation logic to reduce flicker.
12952         (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
12953         (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
12954         (UpdateThumbPosition): small code readability cleanup
12955
12956 2006-04-10  Alexander Olk  <alex.olk@googlemail.com>
12957
12958         * ThemeNice.cs: Small UI polishing. Draw borders a little bit
12959           different
12960
12961 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
12962
12963         * ThemeNice.cs: Use a better graphics effect when a button is pressed
12964
12965 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
12966
12967         * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
12968         * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
12969           This dramatically reduces the number of Pen.Dispose calls. 
12970           Where possible call ResPool methods only once instead of calling it
12971           over and over again (for example for the same color).
12972
12973 2006-04-06  Mike Kestner  <mkestner@novell.com>
12974
12975         * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
12976         Also remove an unused private field on the collection. Fixes #77972.
12977
12978 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
12979
12980         * ThemeNice.cs: Added ToolBar drawing code
12981
12982 2006-04-06  Mike Kestner  <mkestner@novell.com>
12983
12984         * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
12985         I'm assuming that means we need to look up the toplevel for the
12986         provided control. Fixes the crash trace in #77911 but exposes another
12987         crash in some strange reflection usage in NDocGui.
12988
12989 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
12990
12991         * ThemeNice.cs: Gave it a little silver touch and added Images
12992           method
12993         * FontDialog.cs: FontDialog is not resizable
12994         * FileDialg.cs: Added SizeGripStyle.Show
12995
12996 2006-04-05  Jackson Harper  <jackson@ximian.com>
12997
12998         * KeyboardLayouts.cs: Remove warning.
12999
13000 2006-04-05  Jackson Harper  <jackson@ximian.com>
13001
13002         * Control.cs: Enable OnPaintInternal so we can use it for drawing
13003         all of our controls instead of Paint +=.
13004         * ListBox.cs:
13005         * ListView.cs:
13006         * MenuAPI.cs:
13007         * MessageBox.cs:
13008         * NotifyIcon.cs:
13009         * ProgressBar.cs:
13010         * ScrollBar.cs:
13011         * Splitter.cs:
13012         * StatusBar.cs:
13013         * TabControl.cs:
13014         * TextBoxBase.cs:
13015         * ToolBar.cs:
13016         * TrackBar.cs:
13017         * UpDownBase.cs:
13018         * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
13019         use OnPaintInternal. Remove Width/Height and Visible checks in
13020         paint handler, this is done at a higher level now.
13021         * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
13022         * PaintEventArgs.cs: Add a handled flag so controls that don't
13023         want anymore painting after OnPaintInternal can make sure OnPaint
13024         isn't called.
13025
13026 2006-04-05  Mike Kestner  <mkestner@novell.com>
13027
13028         * Form.cs: fix the menu WndProc hacks to respect the native enabled
13029         state of the form, so that we don't process events when Modal dialogs
13030         are up. Fixes #77922.
13031
13032 2006-04-05  Alexander Olk  <alex.olk@googlemail.com>
13033
13034         * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
13035           checking is done.
13036
13037 2006-04-05  Mike Kestner  <mkestner@novell.com>
13038
13039         * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
13040
13041 2006-04-05  Mike Kestner  <mkestner@novell.com>
13042
13043         * ListView.cs (HeaderMouseMove): null guarding for the over column
13044         when setting up the drag_to_index.  Fixes #78015.
13045
13046 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com>
13047
13048         * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
13049           in the taskbar. Transient windows seem to accomplish that.
13050
13051 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com> 
13052
13053         * Form.cs:
13054           - Re-enabled CreateParams.X/Y code for FormStartPosition
13055           - Added code for manual placement when creating the Control
13056           - Incomplete patch to treat MDI forms differently when
13057             setting the ClientSizeCore. (Still need to figure out handling
13058             x/y coords there)
13059         * XplatUIX11.cs:
13060           - When we're explicitly setting the X/Y position of a non-Child
13061             window, let the WM know. Metacity really wants this.
13062
13063 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
13064
13065         * ThemeNice.cs: Added CPDrawButton
13066
13067 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
13068
13069         * ThemeNice.cs: Changed the color for focused buttons and activated
13070           the arrows for small scroll buttons.
13071
13072 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
13073
13074         * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
13075           anymore. Changed some method modifiers to protected (virtual)
13076         * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
13077           changes
13078         * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
13079           Updated drawing of menus, buttons and progressbars; added
13080           CPDrawBorder3D 
13081
13082 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
13083
13084         * ImageListStreamer.cs: implemented serialization/deserialization
13085         of the images.
13086
13087 2006-04-03  Alexander Olk  <alex.olk@googlemail.com>
13088
13089         * ThemeWin32Classic.cs:
13090           - Removed all the DrawFrameControl stuff; CPDrawButton,
13091             CPDrawCheckBox and CPDrawRadioButton are now handled directly
13092             inside the methods
13093           - Updated and corrected the drawing code of CPDrawButton,
13094             CPDrawCheckBox and CPDrawRadioButton to better match ms
13095           - Updated theme checkbox and radiobutton code to use the CP*
13096             methods
13097
13098 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
13099
13100         * XplatUIX11.cs: Enable clipping again now that the libgdiplus
13101           bug is fixed
13102
13103 2006-03-31  Jackson Harper  <jackson@ximian.com>
13104
13105         * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
13106         sometimes.
13107         * UpDownBase.cs: Don't CreateGraphics manually, use a
13108         Refresh. Ideally we would invalidate the correct areas here.
13109
13110 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
13111
13112         * XplatUIX11.cs: 
13113           - We now track the mapping state of windows. If a window (or 
13114             one of it's parents) is not mapped we no longer permit
13115             WM_PAINT messages to be generated since we'd otherwise get 
13116             lots of BadMatch X errors. Jackson did all the work figuring
13117             out the problem.
13118           - Destroying the caret if the window it's contained in is 
13119             destroyed. Can't use regular DestroyCaret method since it
13120             might fall into a drawing function (trying to remove the
13121             caret) and with that generate new BadMatch errors. Again,
13122             Jackson tracked this down.
13123           - Changed DestroyChildWindows to SendWMDestroyMessages, we now
13124             make sure we send the messages to all windows. (The old code
13125             would send the WM_DESTROY to the window, and then all child
13126             windows would be 'gone' because the WM_DESTROY handle lookup
13127             would no longer find the destroyed window)
13128         * Hwnd.cs: Added Mapping property to track mapping state of hwnd
13129         * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
13130
13131 2006-03-31  Jackson Harper  <jackson@ximian.com>
13132
13133         * ScrollableControl.cs: Dont recalc if we are not visible.
13134
13135 2006-03-31  Mike Kestner  <mkestner@novell.com>
13136
13137         * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
13138         the visibility branch.
13139
13140 2006-03-31  Jackson Harper  <jackson@ximian.com>
13141
13142         * ScrollBar.cs: Cap values when incrementing/decrementing.
13143
13144 2006-03-31  Mike Kestner  <mkestner@novell.com>
13145
13146         * MenuAPI.cs: setup menu.tracker for popup/context menus.
13147         * ToolTip.cs: guard against timer expirations with no active control.
13148         Not sure why it happened.
13149
13150 2006-03-31  Mike Kestner  <mkestner@novell.com>
13151
13152         * ThemeWin32Classic.cs: add some horizontal padding space for the tip
13153         text.
13154         * ToolTip.cs: Position the tooltip based on where the cursor is at
13155         popup time, not at MouseEnter time.  Add a Down state so that we don't
13156         redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
13157         positioning offset. Lookup DisplaySize at positioning time, since it
13158         can theoretically change during invocation.
13159         * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
13160         * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
13161
13162 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
13163
13164         * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
13165           Fixes behaviour when the Text property of the box is String.Empty
13166
13167 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com>
13168
13169         * XplatUIX11.cs: Only send mouseleave for our client windows, not
13170           for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
13171           a window)
13172
13173 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
13174
13175         * FileDialog.cs: Visual enhancement for the popup buttons in 
13176           PopupButtonPanel
13177
13178 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
13179
13180         * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
13181           code
13182
13183 2006-03-30  Alexander Olk  <alex.olk@googlemail.com>
13184
13185         * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
13186           highlighted menu items to match ms
13187
13188 2006-03-30  Peter Dennis Bartok  <pbartok@novell.com> 
13189
13190         * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
13191
13192 2006-03-30  Mike Kestner  <mkestner@novell.com>
13193
13194         * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
13195         * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
13196         go active to account for HotLight to Selected transition.
13197         * MenuItem.cs: add internal Selected prop. Fill out the Status
13198         property by calculating it from item info. Add HotLight,
13199         NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
13200
13201 2006-03-30  Mike Kestner  <mkestner@novell.com>
13202
13203         * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
13204
13205 2006-03-29  Jackson Harper  <jackson@ximian.com>
13206
13207         * Form.cs: Implement TODO.
13208
13209 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com> 
13210
13211         * PrintPreviewDialog.cs: Implemented missing methods and events; still
13212           missing proper dialog setup in the constructor
13213
13214 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com>
13215
13216         * ProgressBar.cs: Added 2.0 Style property that apps seem to use
13217         * Control.cs:
13218           - Implemented CheckForIllegalCrossThreadCalls, removed TODO
13219           - Fixed ResetBindings and removed TODO
13220           - Added check for cross-thread calls to get_Handle()
13221           - Added Marshaller attribute for set_Font to satisfy class status
13222         * FontDialog.cs: Removed TODOs that seemed implemented
13223         * UpDownBase.cs: Removed unneeded TODO and Fixme
13224         * MessageBox.cs: Implemented support for Default button and removed TODO
13225         * FileDialog.cs: Removed obsolete TODO
13226         * DomainUpDown.cs: Removed obsolete TODO
13227         * ButtonBase.cs: Removed obsolete TODO
13228         * XplatUIWin32.cs: Removed obsolete TODO
13229         * Form.cs:
13230           - Removed obsolete TODO
13231           - Calling CheckAcceptButton when the acceptbutton is changed to allow
13232             internal status updates
13233           - Making sure the active control is selected when the control is created
13234         * CurrencyManager.cs: Removed obsolete TODO
13235
13236 2006-03-29  Mike Kestner  <mkestner@novell.com>
13237
13238         * *.cs: fix remaining corcompare issues for 1.1 API with the exception
13239         of PrintPreviewDialog and RichTextBox.
13240
13241 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
13242
13243         * Theme.cs: Added a little helper to SystemResPool to get the Dark,
13244           DarkDark, Light and LightLight colors for a specific color
13245         * ThemeWin32Classic.cs:
13246           - Use Button drawing code to draw RadioButtons and CheckBoxes with
13247             Appearance = Button 
13248           - Make use of the new ResPool helper CPColor
13249           - Draw ProgressBar and StatusBar with correct 3D borders
13250
13251 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
13252
13253         * ColorDialog.cs: Return selected color. Fixes bug #77940.
13254
13255 2006-03-28  Mike Kestner  <mkestner@novell.com>
13256
13257         * ListView.cs: fix Icon layout to plan for scrollbar widths when
13258         calculating col/row counts.
13259
13260 2006-03-28  Mike Kestner  <mkestner@novell.com>
13261
13262         * ColumnHeader.cs:
13263         * ListView.cs:
13264         * ListViewItem.cs:
13265         * Menu.cs: 
13266         switch to explicit interface method implementation for some methods
13267         corcompare identifies as inconsistent with MS.
13268
13269 2006-03-28  Mike Kestner  <mkestner@novell.com>
13270
13271         * MainMenu.cs: 
13272         * Menu.cs:
13273         add a few missing methods from the class status output.
13274
13275 2006-03-28  Alexander Olk  <alex.olk@googlemail.com>
13276
13277         * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
13278           correct.
13279
13280 2006-03-28  Mike Kestner  <mkestner@novell.com>
13281
13282         * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
13283
13284 2006-03-27  Mike Kestner  <mkestner@novell.com>
13285
13286         * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
13287         the Hilight state to adapt to Alex's CPDrawBorder3D changes.
13288
13289 2006-03-27  Alexander Olk  <alex.olk@googlemail.com>
13290
13291         * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
13292
13293 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
13294
13295         * ThemeWin32Classic.cs:
13296           - GroupBox: Inserted a little gap between the text and the lines
13297             on the right side
13298           - Made the code in CPDrawBorder3D more readable
13299           - Corrected the drawing location of the up and down arrows in 
13300             CPDrawScrollButton
13301
13302 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
13303
13304         * ControlPaint.cs: Corrected line widths in DrawBorder for
13305           ButtonBorderStyle Inset and Outset
13306
13307 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
13308
13309         * ThemeWin32Classic.cs:
13310           - Rewrote the totally broken CPDrawBorder3D method. That was
13311             one of the main problems for the terrific ThemeWin32Classic
13312             look
13313           - Updated and corrected Button drawing
13314           - Correct the dimensions of the SizeGrip to match ms ones
13315           - Removed a small drawing glitch in DrawComboBoxEditDecorations
13316         * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
13317           Border3DStyle.Sunken to match ms.
13318
13319 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
13320
13321         * ThemeWin32Classic.cs: First small part of the "de-uglify
13322           ThemeWin32Classic" effort, SizeGrip
13323
13324 2006-03-24  Jackson Harper  <jackson@ximian.com>
13325
13326         * XplatUIX11.cs: Give a max idle time of one second, this matches
13327         MS and forces an Idle event every second when there are no other
13328         events in the queue.
13329
13330 2006-03-24  Mike Kestner  <mkestner@novell.com>
13331
13332         * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
13333         * ListView.Item.cs: fix layout issues with null image lists and images
13334         smaller than checkbox size.
13335         * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
13336         mode like MS does.  It's weird, but consistent.  ;-)
13337         Fixes #77890.
13338
13339 2006-03-24  Mike Kestner  <mkestner@novell.com>
13340
13341         * ListView.cs: Scroll wheel support for the item control.  Fixes
13342         #77839.
13343
13344 2006-03-23  Jackson Harper  <jackson@ximian.com>
13345
13346         * ScrollableControl.cs: Special case negative sized areas, not
13347         zero.
13348         * MonthCalendar.cs: Save the rect of the clicked date so we can
13349         use it for invalidation.
13350         - Try to cut down on the number of invalidates
13351         - Invalidate the rect the mouse is over and was over when moving
13352         the mouse, so we get the focus box following the cursor.
13353
13354 2006-03-23  Mike Kestner  <mkestner@novell.com>
13355
13356         * ThemeWin32Classic.cs: fix FullRowSelect selection background and
13357         focus rectangle drawing. Fixes #77835.
13358
13359 2006-03-23  Mike Kestner  <mkestner@novell.com>
13360
13361         * XplatUIX11.cs: rework the fix for #77828 by changing the order of
13362         the if and else if and reverting back to the original == check on the
13363         None conditional.
13364
13365 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
13366
13367         * FontDialog.cs: Update the example panel if the selected index of
13368           the fontListBox changes.
13369
13370 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
13371
13372         * FileDialog.cs: Make FileDialog remember which directory it was in
13373           last in the same execution.
13374
13375 2006-03-22  Mike Kestner  <mkestner@novell.com>
13376
13377         * FileDialog.cs: make the DropDownMenu on the toolbar display
13378         RadioChecks since they are mutually exclusive and that's what MS does.
13379
13380 2006-03-22  Mike Kestner  <mkestner@novell.com>
13381
13382         * Theme.cs: add Color param to CPDrawMenuGlyph.
13383         * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
13384         checks and radio marks and arrows are visible on highlighted items.
13385         * ControlPaint.cs: update to use new Theme signature.
13386
13387 2006-03-22  Mike Kestner  <mkestner@novell.com>
13388
13389         * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
13390         is active. Fixes #77870.
13391
13392 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
13393
13394         * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
13395           to be focused/selected after startup
13396
13397 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
13398
13399         * ColorDialog.cs: 
13400           - Corrected behaviour of Color, AllowFullOpen, FullOpen,
13401             CustomColors and ShowHelp properties
13402           - Some internal rewrites to get better results when using the
13403             ColorMatrix
13404
13405 2006-03-22  Mike Kestner  <mkestner@novell.com>
13406
13407         * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
13408         HoverSelection.  Fixes #77836.
13409
13410 2006-03-22  Mike Kestner  <mkestner@novell.com>
13411
13412         * FileDialog.cs: bugfixes for the toolbar.  Use PushButtons instead of
13413         ToggleButtons.  (De)Sensitize the Back button around a stack count of
13414         1, not 0.  Update ButtonSize based on a pixel count of the win32
13415         control.  Adjust the toolbar size/location for new button size.
13416
13417 2006-03-22  Jackson Harper  <jackson@ximian.com>
13418
13419         * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
13420         true.
13421         * ScrollBar.cs: When doing increments and decrements we need to
13422         set the Value property so that ValueChanged gets raised. A
13423         possible optimization here would be to make an internal SetValue
13424         that doesn't invalidate immediately.
13425         * ToolTip.cs: Tooltips get added to their container (when
13426         supplied) so they get disposed when the container is disposed.
13427         - Don't create tooltips for String.Empty. This prevents all these
13428         little 2-3 pixel windows from showing up when running nunit-gui
13429         and driving me mad.
13430         * Form.cs: Don't set topmost when setting the owner if the handles
13431         haven't been created yet.  The topmost set will happen when the
13432         handles are created.
13433
13434 2006-03-22  Peter Dennis Bartok  <pbartok@novell.com> 
13435
13436         * XplatUIX11.cs:
13437           - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
13438           - SetVisible: Sending WINDOWPOSCHANGED for all controls when made 
13439             visible (to allow them to recalculate their sizes)
13440
13441 2006-03-21  Mike Kestner  <mkestner@novell.com>
13442
13443         * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
13444         methods. Removed a ton of redundant code.  Still not really happy with
13445         the border rendering, but I think that's mainly because of the
13446         ControlDarkDark being black instead of a dark grey. Depending on how 
13447         close we want to be, we might want to revisit those color choices.
13448         Among the new features added during the refactor were DropDownArrow
13449         pressed rendering, Disabled image rendering.  Proper flat appearance
13450         boundary rendering.  Removed the Divider and Wrapping dividers since I
13451         can't figure out any combination of themes and conditions to make the
13452         MS control draw a horizontal line on a toolbar despite what the
13453         Divider property docs indicate.
13454         * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
13455         conditions and incorrect layout.  Updated to coding standard.
13456         * ToolBarButton.cs: refactored layout and positioning code from
13457         ToolBar to here.  Invalidate wherever possible instead of forcing
13458         redraws of the whole toolbar. 
13459         (Known remaining issues: explicit ButtonSize smaller than provided
13460         images.)
13461
13462 2006-03-21  Mike Kestner  <mkestner@novell.com>
13463
13464         * ContextMenu.cs (Show): use the position parameter instead of just
13465         showing at the MousePosition.
13466
13467 2006-03-21  Jackson Harper  <jackson@ximian.com>
13468
13469         * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
13470         control handle this.
13471         * TreeNodeCollection.cs: If we are clearing the root node we need
13472         to reset top_node so calcs can still happen.
13473         * ThemeWin32Classic.cs: This is a Flags so we need to check
13474         properly.
13475         
13476 2006-03-21  Jackson Harper  <jackson@ximian.com>
13477
13478         * DataGrid.cs: Create columns when the binding context has been
13479         changed.
13480         * X11Structs.cs: Keysyms are uints.
13481         - Add size to fix build.
13482
13483 2006-03-21  Peter Dennis Bartok  <pbartok@novell.com> 
13484
13485         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
13486           XplatUIOSX.cs: 
13487           - Added ResetMouseHover method to allow controls to retrigger
13488             hovering if they need it more than once
13489           - Implemented MouseHoverTime and MouseHoverSize properties
13490         * Timer.cs: Start() must reset the interval
13491         * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
13492           properties
13493
13494 2006-03-21  Jackson Harper  <jackson@ximian.com>
13495
13496         * X11Keyboard.cs: improved layout detection. Move the nonchar
13497         tables into this file.
13498         * KeyboardLayouts.cs: Move the tables into resource files.
13499
13500 2006-03-21  Mike Kestner  <mkestner@novell.com>
13501
13502         * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
13503
13504 2006-03-21  Alexander Olk  <alex.olk@googlemail.com>
13505
13506         * Mime.cs: Various speed optimizations. Looking up mime types
13507           is now 2 times faster than before
13508
13509 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com> 
13510
13511         * CreateParams.cs: Added internal menu field
13512         * Control.cs: 
13513           - Switched call order for UpdateBounds; now we always call
13514             the one that also takes ClientSize, and we're calculating the 
13515             client size via driver method in the others. The previous
13516             method of tracking client size by difference wasn't working
13517             for forms where even the starting client size wouldn't match
13518             the overall form size (due to borders) (Part of fix for #77729)
13519           - CreateParams(): Do not use parent.Handle unless the handle is
13520             already created. Causes havoc with Nexxia and throws off our
13521             creation of controls
13522         * XplatUIX11.cs:
13523           - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
13524           - Switched handling of ConfigureNotify over to new PerformNCCalc 
13525             method (consolidates code)
13526           - Changed RequestNCRecalc to use new PerformNCCalc method
13527           - Added calls to RequestNCRecalc when menus and borders are changed
13528             to allow app to set NC size. (Part of fix for #77729) This matches
13529             when MS send a WM_NCRECALC on Win32 windows.
13530           - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
13531             (Part of fix for #77729). This matches what MS does, they also
13532             send that message when the form is made visible.
13533           - XException.GetMessage: Improved usability of X errors by including
13534             a translation of the window into Hwnd and Control class
13535           - Improved debug info for window creation, reparenting and destruction
13536           - Created helper method WindowIsMapped() [Currently not used]
13537         * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
13538         * Form.cs:
13539           - CreateParams: Now setting our menu on the new internal menu field
13540           - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
13541             avoid calculating the same property twice
13542         * Hwnd.cs:
13543           - Improved usability of ToString() for debugging purposes
13544           - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
13545             determine the height of the menu, instead of just the font. This
13546             required to also create a graphics context and to keep a bmp 
13547             around (for performance reasons)
13548
13549 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com>
13550
13551         * MenuAPI.cs: Added OnMouseUp method
13552         * Form.cs:
13553           - Now remembering the requested client size, avoids size errors
13554           - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
13555             instead of base if the menu is active. This is required due to
13556             control now capturing and releasing on down/up and it would
13557             prematurely release our menu capture
13558
13559 2006-03-17  Jackson Harper  <jackson@ximian.com>
13560
13561         * KeyboardLayouts.cs: Add the czech layouts.
13562
13563 2006-03-16  Jackson Harper  <jackson@ximian.com>
13564
13565         * Control.cs: Use the viewport space when sizing not the controls
13566         client size, so things like ScrollableControl that effect the
13567         viewport size (when scrollbars are added) are computed correctly.
13568         * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
13569         of ManagerEntrys.
13570         - Handle creating BindingManagers for null data sources.
13571         * DataGrid.cs: Bind the cached_currencymgr_events to the real data
13572         source, otherwise when rows are added they are added to the 'fake'
13573         datasource and we will crash when trying to set the position in
13574         those rows.
13575         - Use Implicit scrollbars on the datagrid so they arent
13576         selectable.
13577         
13578 2006-03-16  Jackson Harper  <jackson@ximian.com>
13579
13580         * Binding.cs:
13581         * InternalWindowManager.cs:
13582         * MdiWindowManager.cs:
13583         * X11Keyboard.cs: I really want Mike to love me again (fix
13584         compiler warnings).
13585
13586 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com>
13587
13588         * DataGrid.cs:
13589           - OnMouseDown: Switch to editing mode when clicking on the cell
13590                          even if we're clicking on the cell that's currently 
13591                          selected
13592           - ProcessGridKey: Left/Right now wrap like MS.Net does
13593           - ProcessGridKey: Tab now knows to add a new row when tab is
13594                             pressed in the cell of the last column of the 
13595                             last row
13596           - ProcessGridKey: Enter now adds another row  if pressed in the last
13597                             row and selectes the new row, same column cell
13598           - ProcessGridKey: Home/End navigate columns, not rows, like 
13599                             originally implemented
13600           - Broke ProcessKeyPreview code out into an extra Internal method
13601             so it can be called from the edit code
13602         * DataGridTextBox.cs (ProcessKeyMessage):
13603           - Switched to accept Tab keypresses
13604           - Added F2 handling to allow jumping to the end of the edited cell
13605           - Added logic to allow moving caret left/right inside edited cell
13606             and making the edited cell jump when the caret hits cell borders
13607           - Tab and Enter are now passed to the datagrid after being handled
13608         * TextBoxBase.cs:
13609           - Removed capture code now that Control handles it
13610           - set_SelectionStart now ensures caret is visible
13611
13612 2006-03-16  Jackson Harper  <jackson@ximian.com>
13613
13614         * TrackBar.cs: Debackwards the increment/decrement for handling
13615         mouse clicks on the bar with vertical trackbars.
13616         * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
13617         bottom to match MS.
13618
13619 2006-03-16  Mike Kestner  <mkestner@novell.com>
13620
13621         * ListView.cs: make shift/ctrl keyboard and mouse selection 
13622         consistent with the MS control. Fix a bug in
13623         SelectedListViewItemCollection.Clear that was pissing me off for the
13624         better part of a day because the collection was being altered
13625         underneath us as we walked the list.
13626
13627 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com> 
13628
13629         * Control.cs: Not sure how we could miss this so long, but it seems
13630           that MS.Net has Capture set all the way from before calling 
13631           OnMouseDown through sending the mouse events until after
13632           OnMouseUp. This will fix DataGrid's selection being set to end
13633           at the location of the MouseUp.
13634
13635 2006-03-15  Jackson Harper  <jackson@ximian.com>
13636
13637         * BindingContext.cs: Check the binding after its added so that it
13638           can initialize the binding managers and hookup to events.
13639         * Binding.cs: Data members seem to sometimes include rows/cols in
13640           the format Row.Column we now take this into account.
13641           - Hookup to the position changed event so we can update the
13642           control when the position has changed in the data set.
13643         * CurrencyManager.cs: Take into account the row/col naming
13644           convention when creating dataset tables.
13645         * BindingContext.cs: Using a newer better way of storing
13646           datasource/datamember pairs.  Hopefully this better matches MS for
13647           looking up binding managers.
13648
13649
13650 2006-03-15  Jackson Harper  <jackson@ximian.com>
13651
13652         * BindingContext.cs: The currency manager needs the data member
13653         name, if the member is a data set we use the name to find the
13654         correct table.
13655         * CurrencyManager.cs: When creating the list prefer an IList over
13656         an IListSource.
13657         - Attempt to create a DataTable from a DataSet (TODO: might need
13658         some better error checking here, although MS doesn't seem to have much)
13659         - If we have a DataTable create a view and use it as our list.
13660
13661 2006-03-15  Mike Kestner  <mkestner@novell.com>
13662
13663         * ListView.cs: keep a matrix of the icon mode layout to facilitate
13664         keyboard navigation. Support Up/Down/Left/Right selection correctly
13665         for all 4 View modes.
13666         * ListViewItem.cs: add internal row/col fields for icon layouts.
13667
13668 2006-03-15  Jackson Harper  <jackson@ximian.com>
13669
13670         * TabControl.cs: Redraw the tabs when we resize so their newly
13671         calculated sizes are drawn on screen.
13672         * X11Keyboard.cs: Begginnings of XIM support.  We also now support
13673         composite characters.
13674         * XplatUIX11.cs: Keyboard driver needs to know about focus changes
13675         - filter events so that composite characters can be created
13676         patches by peter
13677         * X11Structs.cs: Add XIMProperties enum.
13678
13679 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
13680
13681         * Control.cs (BringToFront, SendToBack): Don't use window or handle
13682           unless it's created
13683
13684 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
13685
13686         * Control.cs (PerformLayout): We don't need to consider visiblity
13687           for anchoring, only for docking. This fixes 'whacky' alignment
13688           in listbox and other controls that use implicit scrollbars after
13689           the previous PerformLayout patch
13690         * ListBox.cs: Switched to use implicit scrollbars
13691           
13692 2006-03-14  Mike Kestner  <mkestner@novell.com>
13693
13694         * ToolBar.cs: 
13695         * VScrollBar.cs:
13696         - chain up the "new event" overrides to base and use
13697         OnEvent to raise them.  Part of fix for bug #76509.
13698
13699 2006-03-14  Alexander Olk  <alex.olk@googlemail.com>
13700
13701         * FileDialog.cs: Do not select an item in the parent directory
13702           on backspace
13703
13704 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
13705
13706         * Control.cs (PerformLayout): It would seem that we considered
13707           invisible windows for our layout. Not quite the right thing
13708           to do. Now we don't any longer, thereby fixing bug #76889.
13709
13710 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
13711
13712         * Control.cs (CanFocus): I goofed. A control can have focus 
13713           even though it's not selectable. Made it match MS docs.
13714
13715 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
13716
13717         * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
13718           center by default (fixes #76895)
13719         * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced 
13720           all uses of Border3DSides.All with the explicit ORd together
13721           Left|Right|Top|Bottom because I assume that nobody was aware 
13722           that All also implies a center fill. Most places I checked had
13723           a fill right above.
13724         * ProgressBarStyle.cs: Added
13725
13726 2006-03-13  Mike Kestner  <mkestner@novell.com>
13727
13728         * ListView.cs: fix breakage in drag shadow header positioning 
13729         from Peter's csc compilation fix.
13730
13731 2006-03-13  Mike Kestner  <mkestner@novell.com>
13732
13733         * ListView.cs: fix NRE produced by backspacing twice in a focused
13734         FileDialog.
13735
13736 2006-03-13  Mike Kestner  <mkestner@novell.com>
13737
13738         * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
13739
13740 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
13741
13742         * Hwnd.cs: Added fixed_size field to track windows whose size cannot
13743           be changed
13744         * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
13745           the allowed size before making programmatic size changes
13746
13747 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com> 
13748
13749         * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are 
13750           set, metacity is broken and will still use the emty sizes in 
13751           the struct. (Fix for #77089)
13752
13753 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
13754
13755         * XplatUIStructs.cs: Split WindowStyles into WindowStyles and 
13756           WindowExStyles and marked both enums as Flags
13757         * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
13758           NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
13759           to match WindowStyles split
13760         * XplatUIX11.cs:
13761           - SetWMStyles: Added cehck to not apply WM attributes to Child windows
13762           - Updated to match WindowStyles split
13763         * XplatUIWin32.cs:
13764           - Fixed FosterParent creation, was using ExStyle on the Style field
13765             (This should help with Popup focus issues)
13766           - Updated to match WindowStyles split
13767
13768 2006-03-13  Jackson Harper  <jackson@ximian.com>
13769
13770         * MdiWindowManager.cs: Use the system menu height. Fixes some
13771         strange sizing issues.
13772
13773 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
13774
13775         * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
13776         * TextBoxBase.cs:
13777           - Scroll to caret after inserting text (#77672)
13778           - Make scroll range one pixel higher, fixes off-by-one error (and
13779             makes underlines visible on the last line)
13780
13781 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com> 
13782
13783         * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
13784           the keyboard state from being stuck with keys in 'pressed' state when
13785           focus is switched away via keyboard
13786         * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
13787           reset the keyboard if no X11 KeyUp events are expected to come
13788         * X11Structs.cs: Switched type of Visible to bool to match driver
13789
13790 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
13791
13792         * TextControl.cs:
13793           - Switched caret to be just 1 pixel wide, matches MS and looks less
13794             clunky
13795           - Moved caret display 1 pixel down from the top of the control
13796             to improve view
13797           - InsertCharAtCharet: Update the selection start if moving the caret
13798             (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
13799           - No longer always creating the caret when the caret methods are
13800             called. Only the actual ShowCaret/HideCaret will do that now
13801           - Only setting caret visible if the owner control has focus
13802           - UpdateView: Added invalidation-shortcut logic for center and right 
13803             aligned text. Previously we'd update all according to the left
13804             logic which caused drawing errors. Also fixed height of invalidated
13805             areas, now properly invalidating the whole area (was off-by-one)
13806           - owner_HandleCreated: Always generate the document when the
13807             handle is created; this ensures that 
13808         * TextBoxBase.cs:
13809           - Fixed situation where caret would disappear under the right
13810             window border, also improved scrolling behaviour on left-
13811             aligned textboxes
13812           - Fixed right-aligned textboxes to have a border to the
13813             right instead of the caret being under the right border
13814         * XplatUIX11.cs:
13815           - Switched from 'nested' to simple visible/not visible tracking 
13816             for caret (part of fix for #77671)
13817           - No longer passing through translated FocusIn/FocusOut messages
13818             since we were notifying too often and the wrong windows. Instead
13819             we just notify our focussed window of receiving or loosing focus
13820         * XplatUIWin32.cs: Switched from 'nested' show/hide 
13821           counting for caret to simple visible yes/no behaviour (part of 
13822           fix for #77671)
13823
13824 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
13825
13826         * Mime.cs: Remove debug code...
13827
13828 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
13829
13830         * MimeGenerated.cs: Removed
13831         * Mime.cs: Mime now reads the mime data (magic, globs, aliases
13832           and subclasses) from /usr/(local/)share/mime and
13833           $HOME/.local/share/mime.
13834
13835 2006-03-10  Jackson Harper  <jackson@ximian.com>
13836
13837         * MdiWindowManager.cs: Recalc the NC area when a window is
13838         maximized/restored so that the menu area is drawn on forms that
13839         don't have a menu.
13840
13841 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
13842
13843         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
13844           XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
13845           us to force a WM_NCCALCRESIZE message being sent. This is needed
13846           for MDI maximizing.
13847
13848 2006-03-10  Jackson Harper  <jackson@ximian.com>
13849
13850         * Form.cs: We need to use the ActiveMenu when calculating menu
13851         height.
13852         - Fix nullref when the window manager hasn't been created yet.
13853         * Control.cs: Fix nullref when we try to bring a control to the
13854         front that has no parent.
13855         * MdiWindowManager.cs: Use the MaximizedMenu for calculating
13856         height.
13857         - Add a dummy item to the maximized menu so it always has the
13858         correct height. Otherwise when there are no menus we don't get our
13859         icon and buttons.
13860         
13861
13862 2006-03-10  Jackson Harper  <jackson@ximian.com>
13863
13864         * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
13865         stuff.
13866         * Form.cs: Make the window_state internal so the window managers
13867         can track it.
13868         - When an MDI child is maximized let its window manager create the
13869         main menu (so it can add its icon).
13870         - Notify the window managers of state changes
13871         - Let the window manager paint its buttons and handle button
13872         clicks on the menu when it is maximized.
13873         * InternalWindowManager.cs: Move the prev_bounds into the mdi
13874         window manager, since tool windows don't use it, only mdi windows.
13875         - Tell the main form that we don't want it to handle NCPAINT
13876         itself to avoid extra painting.
13877         - Handle clicks on a maximized windows menu.
13878         - Handle window state changes
13879         - Handle minimize/maximize clicks correctly by setting the window state.
13880         * MdiWindowManager.cs: Add an icon menu that (the menu you get
13881         when clicking on the forms icon).
13882         - New method to create a forms maximized menu. This is its normal
13883         menu + an icon.
13884         - Handle window state changes.
13885         - Handle sizing of maximized windows.  Maximized windows are just
13886         drawn bigger then the parent visible area. All controls are still
13887         there, they are just outside the visible area (this matches windows).
13888         * MdiClient.cs: No scrollbars when a child window is maximized.
13889         - Let the children windows figure out how big they should be when
13890         sizing maximized windows.
13891         - Implement a version of ArrangeIconicWindows somewhat similar to
13892         Windows version.  There are some little differences, but I don't
13893         think any app will rely on the layout of minimized mdi windows.
13894
13895 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
13896
13897         * Padding.cs: Several fixes to allow compiling with csc 2.0
13898
13899 2006-03-09  Jackson Harper  <jackson@ximian.com>
13900
13901         * Menu.cs:
13902         * MenuItem.cs: Cheap hack so we can add items to the list without
13903         the events being raised.  This allows adding mdi items during
13904         drawing. TODO: Should probably find a better time to add the items.
13905
13906 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
13907
13908         * ThemeWin32Classic.cs:
13909           - CheckBox_DrawText: Added logic to not wrap if not enough space
13910             is available (Fix for bug #77727)
13911           - RadioButton_DrawText: Added logic not to wrap if not enough
13912             space is available (Fix for bug #77727). Also removed some
13913             duplicate code, DrawString always drawing the regular text
13914             before hitting the if statement.
13915
13916 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com> 
13917
13918         * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
13919
13920 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
13921
13922         * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
13923         * ContainerControl.cs: Partial implementation of some 2.0 scaling
13924           methods. Moved the new 2.0 properties into alphabetical order with
13925           other properties and added MonoTODO tags
13926
13927 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
13928
13929         * AutoScaleMode.cs: Added. Fix build.
13930
13931 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
13932
13933         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
13934           XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
13935           and was requiring premature handle creation for calls from above
13936         * Form.cs, Control.cs: Removed handle arguments from calls to
13937           CalculateClientRect()
13938
13939 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
13940
13941         * ListView.cs (HeaderMouseMove): Fix csc compilation. 
13942           drag_column.column_rect is MarshalByRef and can't be used that way
13943
13944 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
13945
13946         * AxHost.cs: Added deserialization constructor for 
13947           AxHost+State (fixes 77743)
13948
13949 2006-03-09  Mike Kestner  <mkestner@novell.com>
13950
13951         * ListView.cs: 
13952         - Added column drag reordering for details view.
13953         - fixed behavior when mouse is dragged off column and
13954         AllowColumnReorder is false.
13955         * ColumnHeader.cs: clone the format too in Clone.
13956         * Theme.cs: add DrawListViewHeaderDragDetails method.
13957         * ThemeWin32Classic.cs:
13958         - impl new method for drawing drag column shadows and targets.
13959         - support column offset for details mode in DrawListViewItem.
13960
13961 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
13962
13963         * TextControl.cs: Reset the char_count when the document is cleared
13964           (Fixes bug reported on mono-winforms mailing list)
13965
13966 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
13967
13968         * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
13969           of calling base we simply process the key ourselves, since both
13970           DefWindowProc and the handled method would set m.Result. 
13971           (Fixes #77732)
13972
13973 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
13974
13975         * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
13976           method also moves the window; instead implemented a copy of
13977           Control.ScaleCore (Part of fix for #77456)
13978         * TextBoxBase.cs: 
13979           - Created new CreateGraphicsInternal method to allow providing
13980             a graphics context when no handle is created without triggering
13981             handle creation. (Part of fix for #77456)
13982           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
13983         * TextControl.cs: 
13984           - Switched Constructor to require TextBoxBase instead of Control (to
13985             allow uncast access to CreateGraphicsInternal)
13986           - Safeguarded use of owner.Handle property. No longer accessing it
13987             unless the handle is already created.
13988           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
13989           - Now triggering a recalc when owning control becomes visible
13990         * TextBox.cs, RichTextBox.cs: Switched to use new internal 
13991           TextBoxBase.CreateGraphicsInternal() method to avoid triggering
13992           premature handle creation (Part of fix for #77456)
13993         * Control.cs:
13994           - We now only destroy our double-buffering buffers when the
13995             control is resized or disposed, but not when visibility
13996             changes. (The code even re-created them twice every time)
13997           - Now requiring a redraw of the buffer on visibility changes
13998             (fixes bug 77654 part 2)
13999           - Not passing OnParentVisibleChanged up unless the control
14000             is visible
14001           - CanFocus: Fixed to match MS documentation
14002           - Focus: Fixed to return actual focus state and to check if
14003             setting focus is legal before setting it
14004
14005 2006-03-08  Peter Dennis Bartok  <pbartok@novell.com>
14006
14007         * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
14008           when to draw focus rectangle by looking at parent focus and
14009           selected state instead. This fixes TabPages on Linux sometimes
14010           having none or multiple focus rectangles.
14011         * XplatUIX11.cs (SetFocus): 
14012           - Don't set the focus if the same window already has focus
14013           - Use SendMessage instead of PostMessage (like it's Win32
14014             equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
14015             to match MS behaviour
14016         * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
14017           are not selectable.
14018
14019 2006-03-07  Jackson Harper  <jackson@ximian.com>
14020
14021         * PictureBox.cs: Revert line I accidently committed last week.
14022
14023 2006-03-07  Peter Dennis Bartok  <pbartok@novell.com>
14024
14025         * Control.cs: 
14026           - Added new IsRecreating and ParentIsRecreating properties to
14027             allow testing if RecreateHandle has been called on ourselves
14028             or one of our parents
14029           - WndProc(WM_DESTROY): If our control handle is being recreated
14030             we immediately need to create the handle when receiving the
14031             destroy, that way our child windows find a valid parent handle
14032             when they themselves are being recreated upon WM_DESTROY receipt
14033             (fix for bug #77654 part 1)
14034         * XplatUIX11.cs:
14035           - DestroyWindow: WM_DESTROY must be sent to our own window before
14036             notifying any child windows. MS documents that child windows
14037             are still valid when WM_DESTROY is received. (Control now relies on
14038             this behaviour)
14039           - Added some fine-grain debug options
14040
14041 2006-03-06  Jackson Harper  <jackson@ximian.com>
14042
14043         * MdiClient.cs: Redid scrolling logic a bit to create a virtual
14044         box and base calculations off this.
14045         * MdiChildContext.cs:
14046         * MdiWindowManager.cs: Don't need to ensure scrollbars here
14047         anymore.
14048         
14049 2006-03-06  Peter Dennis Bartok  <pbartok@novell.com>
14050
14051         * Splitter.cs: In situations where the affected control is added
14052           to the parent's control list after the splitter, we would not
14053           populate affected. Now we try populating it on mousedown, if
14054           it's not already set, and force it to be re-set whenever our
14055           parent changes.
14056
14057 2006-03-03  Matt Hargett  <matt@use.net>
14058
14059         * Control.cs: implement Control.Padding
14060         * Padding.cs: -Padding.All returns -1 when constructing with the
14061         implicit default ctor
14062         -Padding.ToString() matches MS.NET
14063         * ContainerControl.cs: implement
14064         ContainerControl.AutoScaleDimensions
14065         * ListControl.cs: implement ListControl.FormattingEnabled
14066         * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
14067         * ButtonBase.cs:
14068         * TabPage.cs: Implement UseVisualStyleBackColor.
14069         * PictureBox.cs: Implement PictureBox.InitialImage.
14070
14071 2006-03-03  Mike Kestner  <mkestner@novell.com>
14072
14073         * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
14074         event declarations to proxy to base event.
14075         * ListViewItem.cs: update to use ItemControl.
14076         * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
14077         * ThemeWin32Classic.cs: update to new ListView theme API and fix
14078         column header label rendering for 0 width columns.
14079
14080 2006-03-03  Peter Dennis Bartok  <pbartok@novell.com>
14081
14082         * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
14083           that causes the control to be created. Fixes #77476.
14084
14085 2006-03-02  Jackson Harper  <jackson@ximian.com>
14086
14087         * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
14088         expose_pending.
14089
14090 2006-03-02  Peter Dennis Bartok  <pbartok@novell.com>
14091
14092         * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
14093           passed in for the EventArgs (fixes #77690)
14094
14095 2006-03-01  Jackson Harper  <jackson@ximian.com>
14096
14097         * ScrollBar.cs: Refresh afterbeing resized.
14098
14099 2006-02-28  Mike Kestner  <mkestner@novell.com>
14100
14101         * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
14102         Clean up a tracker compile warning.
14103         * MenuItem.cs: add internal PerformPopup method.
14104         [Fixes #77457]
14105
14106 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
14107
14108         * TextBoxBase.cs (set_Text): Recalculate the document (causing an
14109           implicit expose) when the text is set to null
14110
14111 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com>
14112
14113         * RichTextBox.cs (FlushText): When newline is true, we always
14114           need to split the line, even if no text is on it and we may
14115           never eat newlines. (Fixes #77669)
14116
14117 2006-02-28  Mike Kestner  <mkestner@novell.com>
14118
14119         * ListView.cs: Add UpdateSelection internal method. Remove SelectItem 
14120         and set Selected instead.
14121         * ListViewItem.cs: Call owner.UpdateSelection to manipulate the 
14122         collections.
14123
14124 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
14125
14126         * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
14127
14128 2006-02-28  Alexander Olk  <alex.olk@googlemail.com>
14129
14130         * FontDialog.cs:
14131           - Got rid of the panel. All controls are now directly added to
14132             the dialog form
14133           - It is now possible to set a font with the Font property
14134           - MinSize and MaxSize property do now what they should
14135           - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
14136           - Searching and selecting a font with the font textbox works now,
14137             the same applies to the style and size textbox
14138           - Draw the correct 3D border in the example panel
14139           - Fixed a little mem leak (unused fonts didn't get disposed)
14140           - Many other internal updates/rewrites...
14141           - Fix typo
14142
14143 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
14144
14145         * TextControl.cs: 
14146           - InsertRTFFromStream: Added 'number of characters inserted' argument
14147           - set_SelectedRTF: Now using the number of characters to calculate
14148             the new location for the selection and cursor (x/y cannot be used
14149             due to potentially already wrapped text)
14150
14151 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com>
14152
14153         * TextControl.cs: Added property and implemented means to allow 
14154           disabling recalculation of a document (can be used to speed up
14155           multiple inserts and is needed to make RTF inserts predictable, see
14156           bug #77659)
14157         * RichTextBox.cs: Using the new NoRecalc property of Document to
14158           keep x/y insert locations predictable. Also makes it faster inserting
14159           large chunks of RTF
14160
14161 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
14162
14163         * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
14164           it's easier for a child control to handle the other messages without
14165           having to duplicate the special functionality
14166         * TextBoxBase.cs
14167           - WndProc: Removed calling base handler for WM_KEYDOWN and added 
14168             code to handle processing the key ourselves, in order to get 
14169             access to the result of KeyEventArgs.Handled. We now only call 
14170             ProcessKey if they key hasn't been handled already. Fixes #77526.
14171           - set_Text: If null or empty string is given, just clear the 
14172             document. Fixes part of #77526
14173
14174 2006-02-27  Jackson Harper  <jackson@ximian.com>
14175
14176         * SizeGrip.cs: Paint the background color before painting the grip
14177         so things look right.
14178         * MdiClient.cs: Add the sizegrip when both scrollbars are used.
14179
14180 2006-02-27  Mike Kestner  <mkestner@novell.com>
14181
14182         * ListView.cs:
14183           - Restructure layout and invalidation model to remove a ton of
14184           flicker from the control and speed up performance in general.
14185           - Add manual column resize, flickers like crazy, but I already have
14186           some ideas on how I'll fix that. (#76822)
14187           - Merge the three Icon-based views into a single layout method.
14188           - Move item selection interaction logic from the item since 
14189           interaction with the collections is more appropriate to the view.
14190           - Deselection on non-item clicks.
14191         * ListViewItem.cs:
14192           - Encapsulate most of the layout. Add some internal props to trigger
14193           layout.  Move to a model where Items invalidate themselves instead
14194           of just invalidating the whole control every time something changes.
14195           - Invalidate on Text/Caption changes.
14196           - switch to an offset based layout model to avoid having to absolute
14197           position every element on item moves.
14198           - correct checkbox layout to conform to MS layout.
14199         * ThemeWin32Classic.cs:
14200           - refactor some column header drawing code.
14201           - fix string justification for column headers (#76821)
14202           - make SmallIcon labels top justified for compat with MS impl.
14203         * ThemeClearlooks.cs:
14204           - adjust to new ListViewItem internal checkbox bounds api.
14205
14206 2006-02-27  Jackson Harper  <jackson@ximian.com>
14207
14208         * Control.cs:  Change where implicit controls fall in the zorder.
14209         They are now on top of all children.
14210         - Synced AddImplicit code with Add
14211         - Removed unused enumerator.
14212         * SizeGrip.cs: Remove the TODO as its been TODONE.
14213
14214 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com> 
14215
14216         * TextControl.cs(Insert): Combine the last lines unless the insertion
14217           string ends with \n\n, otherwise we leave one line too many (Fixes
14218           something I noticed with the testapp for #77526; the bug itself was
14219           already fixed in the previous checkin)
14220
14221 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com>
14222
14223         * RichTextBox.cs:
14224           - SelectionColor and SelectionFont methods no longer set absolute
14225             styles. Instead, the keep font or color respectively (This 
14226             resolves a long-standing FIXME in the code)
14227           - When flushing RTF text, the insert code now considers text trailing
14228             behind the insertion point (Fixes the bug where when replacing
14229             the selected text via SelectedRTF the remainder of the line behind 
14230             the selection would stay on the first insertion line)
14231         * TextBoxBase.cs:
14232           - AppendText now updates the selection points after inserting text
14233           - AppendText now ensures that the last tag (sometimes 0-length) of
14234             the document is used for the style information (Fixes part of 
14235             bug #77220)
14236         * TextControl.cs:
14237           - Created new FontDefiniton class to allow describing partial style
14238             changes
14239           - StreamLine() now takes a lines argument, to allow it to decide
14240             whether an encountered zero-length tag is the last in the document
14241             (which must be kept to not loose the font/color contained in it,
14242             for later appends)
14243           - Created Combine() and Split() methods for Marker structs, to 
14244             support marker updates due to reformatted documents (soft line
14245             wraps)
14246           - Implemented Document.CaretTag setter
14247           - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
14248             of the last line (Not the cause, but also exposed by bug #77220)
14249           - Added LineTag argument to InsertString method, to allow callers
14250             to force a certain tag to be used (required to force use of the
14251             trailing zero-length tag of a document)
14252           - Now updating markers in Combine(), to avoid stale tag markers
14253           - Added some method descriptions to aid maintenance
14254           - Implemented new FormatText concept, allowing additive/subtractive
14255             formatting by only specifying the components that are to be 
14256             changed. This was needed for resolving the RTB.SelectedColor/
14257             RTB.SelectedFont fixmes
14258           - Added Break() support method to allow breaking up linetags (used
14259             for partial formatting)
14260           - Added GenerateTextFormat() method. It is used for partial 
14261             formatting and allows to generate a full font/color from given
14262             attributes and an existing tag.
14263
14264 2006-02-26  Jackson Harper  <jackson@ximian.com>
14265
14266         * XplatUIX11.cs:  Use the correct caption height.
14267         - Translate hittest coordinates to screen coords to match MS.
14268         * XplatUIWin32.cs: When we create MDI windows we need to reset
14269         some of the style flags, so we get a nice blank window, and can
14270         draw all the decorations ourselves.
14271         - Set a clipping rectangle on the non client paint event, the
14272         window manager drawing code needs one.
14273         * Form.cs: The window manager needs to know when the window state
14274         has been updated.
14275         * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
14276         don't need to factor in border and title sizes in these
14277         methods. TODO: Remove the args and fix the call points.
14278         * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
14279         properly.
14280         - Let the driver set the cursors.
14281         - Improve active window handling
14282         - Correct sizes for title bars and buttons.
14283         - Match MS drawing better
14284         * MdiWindowManager.cs: We don't need to handle border style
14285         updates specially anymore.
14286         - Check for scrollbars when windows are done moving
14287         - Handle Active properly.
14288         * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
14289         correctly. I am spewing the exception though, so we don't hide the
14290         bugs.
14291         
14292 2006-02-26  Pedro Martinez Julia  <pedromj@gmail.com>
14293
14294         * DataGridViewRowPostPaintEventArgs.cs,
14295           DataGridViewCellPaintingEventArgs.cs,
14296           DataGridViewRowCollection.cs,
14297           DataGridViewRowPrePaintEventArgs.cs,
14298           DataGridViewCell.cs: Clear a few warnings and implement a few
14299           exceptions that should be thrown.
14300
14301 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
14302
14303         * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
14304           'inheriting' our parent's (non-default) cursor. (Part of
14305            the fix for #77479)
14306
14307 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com> 
14308
14309         * XplatUIX11.cs: Fixed cast to make csc happy
14310
14311 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
14312
14313         * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
14314           it's for the client area (part of fix for #77479 and needed
14315           for MDI window cursor handling)
14316         * XplatUIX11.cs
14317           - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
14318             the appropriate default cursors and also passing the message
14319             up the parent chain 
14320           - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
14321             for non-client areas
14322
14323 2006-02-15  Jackson Harper  <jackson@ximian.com>
14324
14325         * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
14326         is a real MDI window
14327
14328 2006-02-14  Alexander Olk  <alex.olk@googlemail.com>
14329
14330         * X11DesktopColors.cs: Instead of checking the desktop session
14331           string for "KDE" check if it starts with "KDE"
14332
14333 2006-02-10  Jackson Harper  <jackson@ximian.com>
14334
14335         * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
14336         systems).
14337
14338 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
14339
14340         * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
14341           errors
14342         * ColorDialog.cs:
14343           - Got rid of the panel. All controls are now directly added to
14344             the dialog form
14345           - Changed to mono coding style
14346
14347 2006-02-10  Jackson Harper  <jackson@ximian.com>
14348
14349         * InternalWindowManager.cs: We don't need the set visibility to
14350         false hack anymore now that peter has written beautiful shutdown
14351         code.
14352
14353 2006-02-10  Peter Dennis Bartok  <pbartok@novell.com>
14354
14355         * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
14356           where already explicitly destroyed
14357
14358 2006-02-10  Jackson Harper  <jackson@ximian.com>
14359
14360         * MdiClient.cs: Handle the case where windows are too high or to
14361         the left and we need scrollbars.
14362
14363 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
14364
14365         * MimeIcon.cs: Added some icons
14366         * FileDialog.cs:
14367           - Fixed bug #77477
14368           - Got rid of the panel. All controls are now directly added to
14369             the dialog form
14370           - Changed to mono coding style
14371           - On Linux "My Computer" and "My Network" will now show some
14372             more usefull information. A new class, MasterMount, gathers
14373             this information from /proc/mount. Updated MWFFileView to make
14374             use of this information
14375           - Fixed a bug that caused FileDialog to crash when
14376             ".recently_used" file had a zero size
14377           - FilterIndex does now what it should
14378           - Some Refactoring
14379         * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
14380             FileDialog changes
14381
14382 2006-02-09  Jackson Harper  <jackson@ximian.com>
14383
14384         * ComboBox.cs: Don't touch if null.
14385
14386 2006-02-09  Peter Dennis Bartok  <pbartok@novell.com>
14387
14388         * Cursor.cs: 64bit safeness fix
14389         * XplatUIX11.cs: Removed several unneeded and one moronic cast.
14390
14391 2006-02-09  Jackson Harper  <jackson@ximian.com>
14392
14393         * Form.cs: If a form is made into an MDI form update the styles so
14394         all the props can get set correctly.
14395         - Kill the mdi_container when we dont need it anymore.
14396         * InternalWindowManager.cs: Add missing NOT
14397
14398 2006-02-08  Jackson Harper  <jackson@ximian.com>
14399
14400         * InternalWindowManager.cs: Respek clipping when drawing MDi
14401         decorations.
14402
14403 2006-02-08  Jackson Harper  <jackson@ximian.com>
14404
14405         * Hwnd.cs: Add bits to track non client expose events.
14406         * XplatUIX11.cs: Track non client expose events on the hwnd. This
14407         gives us a proper invalid rect and will allow for some nice
14408         optimizations with NC client drawing
14409         - MDI windows are children windows, so move their style handling
14410         into the child window block.
14411         * InternalWindowManager.cs: Remove a state reset that was
14412         getting invoked at the wrong time. Fixes managed windows getting
14413         into a 'stuck' captured state.
14414
14415 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
14416
14417         * TextControl.cs (Document.ctor): Now initializing 
14418           selection_anchor. Fixes #77493
14419
14420 2006-02-07  Jackson Harper  <jackson@ximian.com>
14421
14422         * TrackBar.cs: The increment/decrements were backwards.
14423
14424 2006-02-07  Mike Kestner  <mkestner@novell.com>
14425
14426         * Theme*.cs : remove ThemeEngine.Current usage as it just points back
14427         to the instance itself.
14428
14429 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
14430
14431         * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
14432           on ulongs and pointers, the size differs between 32bit and 64bit
14433           systems. 
14434
14435 2006-02-07  Mike Kestner  <mkestner@novell.com>
14436
14437         * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
14438         for 64 bit platforms to work around a metacity bug. 
14439
14440 2006-02-07  Jackson Harper  <jackson@ximian.com>
14441
14442         * TrackBar.cs: Process the input keys we need, and hookup to
14443         KeyDown instead of using WndProc, so we get key messages.
14444
14445 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com>
14446
14447         * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
14448           machine we're on. 
14449         * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
14450           we need to translate the XdndVersion atoms array before sending it
14451
14452 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com> 
14453
14454         * XplatUIX11.cs: 
14455           - The preceeding 64bit fixes had a bug: ChangeProperty expects the
14456             number of bits for the property, not the number of bytes. The
14457             change to provide IntPtr.Size broke 32bit. (64bit was also wrong
14458             but would not crash since it specified 8 bits instead of 4 bits)
14459           - More 64bit fixes: Switched all atoms from int to IntPtr (they are
14460             defined as XID -> long in the C headers)
14461           - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms 
14462             references since those are now IntPtr to begin with
14463           - Switched all Atom.XXX 'int' casts to IntPtr casts
14464           - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
14465           - Fixed XInternAtom signature for 64bit, now returns an IntPtr
14466           - Added XChangeActivePointerGrab DllImport (for X11DnD)
14467         * X11Structs.cs:
14468           - Changed 'int' type for Atoms in XEvent structures to IntPtr
14469           - Changed atom in HoverStruct to be IntPtr
14470         * X11DnD.cs:
14471           - Removed local DllImports, switched code to use those from XplatUIX11
14472           - Removed/fixed casts related to the switch of Atom to be a IntPtr
14473
14474 2006-02-06  Mike Kestner  <mkestner@novell.com>
14475
14476         * XplatUIX11.cs : many more 64 bit pinvoke changes.  I've audited all the 
14477         method signatures in the import region.  There may still be some
14478         lingering struct marshaling issues, as I didn't drill down into those.
14479         Yet.
14480
14481 2006-02-06  Jackson Harper  <jackson@ximian.com>
14482
14483         * ComboBox.cs: Dont manually set the top_item, this is computed
14484         when the scrollbar position is set.
14485
14486 2006-02-06  Mike Kestner  <mkestner@novell.com>
14487
14488         * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
14489         startup crashes on amd64.  There's other fixes needed.  All pinvoke
14490         usage of Atom needs to be mapped to IntPtr for example.  And there are
14491         likely other int/long issues to be addressed.
14492
14493 2006-02-04  Alexander Olk  <alex.olk@googlemail.com>
14494
14495         * FileDialog.cs: One more...
14496
14497 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
14498
14499         * FileDialog.cs: Next try
14500
14501 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
14502
14503         * FileDialog.cs: First part of fix for #77464
14504
14505 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
14506
14507         * ButtonBase.cs, ContainerControl.cs, Forms.cs,
14508           ThemeWin32Classic.cs: Fix for #77458. Correct handling of
14509           AcceptButton border drawing.
14510
14511 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com> 
14512
14513         * Form.cs: Moved positioning of form after auto scaling is applied,
14514           otherwise it would possibly use wrong form size.
14515
14516 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com>
14517
14518         * Control.cs (RecreateHandle): No need to re-create any child
14519           controls, the child windows will get destroyed automatically by
14520           the windowing system or driver, and re-created when the handle
14521           is being accessed the first time. Fixes #77456
14522         * Form.cs: No longer setting the form to closing if the handle is 
14523           being recreated. This seems like the right thing to do, don't
14524           have a bug or testcase for this, though.
14525
14526 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
14527
14528         * FileDialog.cs: Suspend/Resume layouting when changing sizes of
14529           controls to avoid unwanted side effects
14530
14531 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com> 
14532
14533         * Control.cs: 
14534           - ScaleCore needs to scale the bounds, not the ClientSize of the 
14535             control. Fixes #77416.
14536           - DefaultSize is 0,0 for control
14537         * TextBoxBase.cs: 
14538           - DefaultSize is 100, 20
14539           - SetBoundsCore: Now enforcing the height, no matter if the provided
14540             height is more or less than the preferred one, as long as AutoSize
14541             is on
14542         * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
14543
14544 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
14545
14546         * Control.cs:
14547           - ResumeLayout: Fixed logic when to call PerformLayout, we may not
14548             call unless both performLayout is true *and* we have a pending
14549             layout change
14550           - ResumeLayout: MS does not completely nest Suspend and Resume,
14551             they bottom out at 0, fixed our code to match that.
14552           - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
14553             SetBoundsCore, we were updating even when we shouldn't. This fixes
14554             swf-anchors mis-anchoring when resizing the app fast and lots.
14555           - UpdateDistances: Now only setting the left and top distance if 
14556             we have a parent and are not suspended, this is based on
14557             a suggestion by Don Edvaldson in bug #77355.
14558           - OnVisibleChanged: Fixed logic when to create the control. We may
14559             not create the control if we have no parent or if it's not visible;
14560             switched to using Visible property instead of is_visible field 
14561             since the property also considers parent states. This fixes a bug
14562             when starting Paint.Net
14563
14564 2006-02-02  Jackson Harper  <jackson@ximian.com>
14565
14566         * Form.cs: If the forms handle hasn't been created yet don't call
14567         into xplatui to make it top most, just set the topmost flag on the
14568         form in CreateParams
14569         * XplatUIX11.cs: Handle WS_EX_TOPMOST.
14570
14571 2006-02-01  Jackson Harper  <jackson@ximian.com>
14572
14573         * ScrollableControl.cs: Refactored the Recalculate method a
14574         little, this wasn't handling all the variants of bottom and right
14575         bars needed to be added and added/removed based on their
14576         counterparts being added/removed (which changes the drawable
14577         size). Also we special case client widths and heights of 0 and
14578         don't add the scrollbar for those.
14579
14580 2006-02-01  Peter Dennis Bartok  <pbartok@novell.com>
14581
14582         * XplatUIX11.cs: 
14583           - Added method to get AbsoluteGeometry(); currently unused, but might
14584             be used in the future, if we try again to figure out toplevel
14585             coordinates with some more crappy window managers
14586           - Added FrameExtents() method to retrieve the WM set decoration size
14587           - Tried to fix up AddConfigureNotify and handling of ReparentNotify 
14588             to deal with at least KDE, FVWM and metacity (Fixes #77092)
14589         * Hwnd.cs: 
14590           - Added whacky_wm tracking var for metacity
14591           - Added logic to have default menu height if the actual menu height
14592             has not yet been calculated (part of fix for #77426)
14593         * Form.cs: Keep track whether client size has been set and re-set 
14594           it if a menu is added/removed afterwards (Fixes #77426)
14595
14596 2006-01-31  Jackson Harper  <jackson@ximian.com>
14597
14598         * Control.cs: When a new Site is set on the component attempt to
14599         pull the AmbientProperties from it.
14600
14601 2006-01-31  Peter Dennis Bartok  <pbartok@novell.com>
14602
14603         * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
14604           in the background of the owning form. Fixes #77332
14605
14606 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
14607
14608         * MimeIcon.cs: Fix for #77409
14609
14610 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
14611
14612         * XplatUIX11GTK.cs: Initial import
14613
14614 2006-01-31  Jordi Mas i Hernandez <jordimash@gmail.com>
14615
14616         * FixedSizeTextBox: fixes class signature
14617
14618 2006-01-30  Jackson Harper  <jackson@ximian.com>
14619
14620         * FixedSizeTextBox.cs: New internal class that represents a
14621         textBox that will not be scaled.
14622         * TreeView.cs:
14623         * ComboBox.cs:
14624         * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
14625         standard TextBox.
14626                 
14627 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com> 
14628
14629         * XplatUIX11.cs: Retrieve default screen number instead of
14630           assuming 0. Attempted fix for #77318
14631
14632 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com>
14633
14634         * XplatUIWin32.cs: 
14635           - GetWindowPos: When a window is parented by FosterParent, use 
14636             the desktop instead of FosterParent as the base to get coordinates
14637           - CreateWindow: Don't make FosterParent the parent window for Popups
14638             if we don't want a taskbar entry, Popups automatically don't get one
14639         * Hwnd.cs: Need to call remove to actually remove the key from the
14640           hash table
14641
14642 2006-01-30  Mike Kestner  <mkestner@novell.com>
14643
14644         * MenuAPI.cs: adjust MainMenu item popup location to y=0.
14645
14646 2006-01-30  Jackson Harper  <jackson@ximian.com>
14647
14648         * TreeView.cs:
14649         * TreeNode.cs: Raise events no matter how the treenode is
14650         checked. Patch by Don Edvalson.
14651
14652 2006-01-30  Jackson Harper  <jackson@ximian.com>
14653
14654         * TreeNode.cs: Signature fix.
14655
14656 2006-01-29  Alexander Olk  <alex.olk@googlemail.com>
14657
14658         * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
14659
14660 2006-01-20  Mike Kestner  <mkestner@novell.com>
14661
14662         * Form.cs: Add ActiveTracker property to do Captures and perform mouse
14663         event forwarding when menus are active.
14664         * MenuAPI.cs: kill the GrabControl hack.  Use Form.ActiveTracker.
14665         Most of the patch is pdb's with a little rework.
14666
14667 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
14668
14669         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs: 
14670           Removed GetMenuDC and ReleaseMenuDC methods; replaced
14671           by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
14672         * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
14673         * InternalWindowManager.cs: Added use of PaintEventStart/End to
14674           handling of WM_NCPAINT message, now passing the PaintEventArgs to
14675           the PaintWindowDecorations method
14676         * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
14677         * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
14678         * MenuAPI.cs: Made tracker window invisible
14679         * XplatUIWin32.cs:
14680           - Removed GetMenuDC and ReleaseMenuDC methods
14681           - Implemented the client=false path for PaintEventStart and
14682             PaintEventEnd
14683
14684 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
14685
14686         * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
14687         * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
14688           styles
14689         * Form.cs: 
14690           - MaximizeBox, MinimizeBox: Recreate the handle when setting
14691             the style
14692           - CreateParams: Reworked the styles to match MS look'n'feel,
14693             removed automatic setting of MinimizeBox, MaximizeBox, etc. via
14694             the WS_OVERLAPPEDWINDOW style. This fixes #76823.
14695
14696 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
14697
14698         * XplatUIX11.cs(GetWindowState): Now throwing an exception when the 
14699           window is not mapped, since otherwise every form that's being 
14700           created is considered minimized, which is wrong.
14701         * Form.cs: Catching the exception and returning our internal value
14702           instead
14703
14704 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
14705
14706         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
14707           SetWindowMinMax() to have means to tell the driver about the minimum,
14708           maximum and maximized state window sizes. (Part of the fix for #76485)
14709         * Form.cs:
14710           - Implemented tracking of minimum and maximum window size, now calling
14711             new SetWindowMinMax() driver method to tell the driver (Part of the
14712             fix for #76485)
14713           - Finished handling of WM_GETMINMAXINFO method, now setting all values
14714             (Completes fix for #76485)
14715           - Calling new SetWindowMinMax driver method when the handle for a 
14716             form is created, to make sure the driver knows about it even if
14717             the values have been set before the window was created
14718           - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
14719             to avoid messing up our anchoring calculations (partial fix
14720             for #77355)
14721         * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
14722         * XplatUIX11.cs:
14723           - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
14724           - Improved GetWindowState() to detect 'Minimized' state on Metacity 
14725             (and presumably other freedesktop.org compliant WMs). Left the
14726             assumption unmapped=minimized, needed for SetVisible to work.
14727           - Now setting the window state when creating windows
14728           - Fixed SetVisible to consider/set the window state when mapping
14729             a Form. We cannot set the state before it's mapped, and we cannot
14730             use Form.WindowState once it's mapped (since it would ask the
14731             driver and get 'normal'. Therefore, we grab the state before
14732             mapping, map, and then set state.
14733           - Implmemented SetWindowMinMax method; Metacity does not seem to
14734             honor the ZoomHints, though.
14735         * XplatUIWin32.cs:
14736           - Removed MINMAXINFO (moved to XplatUIStructs)
14737           - Added SetWindowMinMax stub (on Win32 the only way to set that
14738             information is in response to the WM_GETMINMAXINFO message, which
14739             is handled in Form.cs)
14740           - Added logic to SetVisible to set the proper window state when a 
14741             form is made visible (fixes #75720)
14742
14743 2006-01-26  Jackson Harper  <jackson@ximian.com>
14744
14745         * Control.cs (BeginInvoke): Automagically handle EventHandlers the
14746         same way we handle them with Invoke.
14747
14748 2006-01-25  Peter Dennis Bartok  <pbartok@novell.com> 
14749
14750         * Form.cs:
14751           - Added tracking of window state so CreateParams can return
14752             the appropriate style
14753           - Moved setting of WS_CAPTION style in CreateParams to allow
14754             styles without caption
14755         * DataGridTextBoxColumn.cs: We are now also creating the TextBox 
14756           control if the TextBox property is accessed. Fixes #77345
14757         * Control.cs:
14758           - get_Created: now uses is_disposed and is_created to determine
14759             return value (suggested by Jackson)
14760           - CreateHandle: No longer exits if the handle is being recreated
14761           - RecreateHandle: If the handle is not yet created call the 
14762             appropriate method to create either control or handle. If the
14763             control is already created CreateHandle will simply exit instead
14764             of just creating the handle
14765         * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
14766           now SendMessage WM_DESTROY directly to the control when DestroyWindow
14767           is called.
14768         * XplatUIX11.cs: 
14769           - When DestroyWindow is called, instead of waiting for the 
14770             DestroyNotification from X11, we directly post it to the WndProc
14771             and immediately dispose the hwnd object.
14772             Same applies to DestroyChildWindows, and this obsoletes the
14773             expose_pending tracking. Contrary to Win32 behaviour we destroy our
14774             child windows before our own, to avoid X11 errors.
14775           - Removed the direct sending of WM_PAINT on UpdateWindow
14776         * XplatUIWin32.cs:
14777           - Reworked DoEvents and GetMessage to allow access to internal queue
14778             even when trying non-blocking access to the queue.  Fixes #77335. 
14779             Based on a patch suggestion by Don Edvalson. The new private
14780             GetMessage can now also be used as a backend for a PeekMessage
14781             frontend version.
14782         * XplatUI.cs: Improved debug output for CreateWindow
14783
14784 2006-01-25  Jackson Harper  <jackson@ximian.com>
14785
14786         * Help.cs: Allow param to be null. Patch by Don Edvalson.
14787
14788 2006-01-24  Jackson Harper  <jackson@ximian.com>
14789
14790         * ComboBox.cs: Clamp the max value set for the vertical scrollbar
14791         when we have a MaxDropItems lower then the selected index.
14792
14793 2006-01-24  Jackson Harper  <jackson@ximian.com>
14794
14795         * Control.cs: Don't allow selection of non visible controls, allow
14796         selection of controls without parents.
14797
14798 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
14799
14800         * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
14801         * DataGridDrawingLogic.cs: Add editing row only when is necessary
14802
14803 2006-01-23  Jackson Harper  <jackson@ximian.com>
14804
14805         * UpDownBase.cs: Make the textbox handle all the selection and
14806         tabbing. This fixes tabing to updown controls.
14807
14808 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
14809
14810         * TextBoxBase.cs: fixes exception thown the object was null
14811
14812 2006-01-23  Jackson Harper  <jackson@ximian.com>
14813
14814         * ButtonBase.cs: Just use the base CreateParams. They set
14815         visibility and enabled correctly.
14816         * ComboBox.cs:
14817         * TrackBar.cs:
14818         * MonthCalendar.cs: Lets let the base set as much of the
14819         createparams as possible so we don't have duplicate code all over
14820         the place.
14821
14822 2006-01-22  Alexander Olk  <alex.olk@googlemail.com>
14823
14824         * ThemeGtk.cs: Added TrackBar and some experimental code to
14825           get double buffering back
14826
14827 2006-01-21  Jordi Mas i Hernandez <jordimash@gmail.com>
14828
14829         * DataGrid.cs: Allows row number set internally higher than the last
14830         when creating a new row. Restores the editing functionality.
14831
14832 2006-01-20  Mike Kestner  <mkestner@novell.com>
14833
14834         * MimeIcon.cs: delay Image creation until the icons are accessed
14835         instead of creating 190 scaled images on GnomeHandler startup.
14836
14837 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com> 
14838
14839         * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
14840           first call base before processing the event. Fixes #77279
14841
14842 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com>
14843
14844         * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
14845           that the stride for the GDI bitmap would match the stride of
14846           a DIB or a Cursor.
14847
14848 2006-01-19  Alexander Olk  <alex.olk@googlemail.com>
14849
14850         * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
14851
14852 2006-01-19  Jackson Harper  <jackson@ximian.com>
14853
14854         * ComboBox.cs: Hookup the text controls keydown event so we get
14855         those when the text control has the focus.
14856
14857 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
14858
14859         * Label.cs: Now using the base events instead of defining new ones;
14860           this allows us to just call the base properties without having to
14861           duplicate all base property logic 
14862
14863 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
14864
14865         * Label.cs: A label by default is not a tabstop (Fixes one of our
14866           failing nunit tests)
14867
14868 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
14869
14870         * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
14871         * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
14872
14873 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
14874
14875         * Cursor.cs: Reimplemented creating cursor bitmaps without using
14876           the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
14877           This fixes #77218
14878         * XplatUIWin32.cs: 
14879           - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream) 
14880             constructor creates images that can't be saved. Part of the fix
14881             for #76103
14882           - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
14883           - SetWindowState: Switched ShowWindow flags (part of an upcoming 
14884             bug fix for handling window state in forms properly)
14885
14886 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
14887
14888         * ThemeGtk.cs: Simplify ScrollBar drawing
14889
14890 2006-01-18  Jackson Harper  <jackson@ximian.com>
14891
14892         * Splitter.cs: Set the default dock style for the splitter control
14893         in the constructor.
14894
14895 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
14896
14897         * ThemeGtk.cs: Corrected StateType and ShadowType for
14898           gtk_paint_box
14899
14900 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
14901
14902         * Control.cs: Make use of Theme.DoubleBufferingSupported
14903         * ThemeGtk.cs:
14904           - Added drawing for flat style buttons
14905           - Added ScrollBar drawing
14906
14907 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
14908
14909         * ThemeClearlooks.cs: Removed some unneeded code.
14910         * ThemeGtk.cs: First part of ThemeGtk enhancements.
14911
14912 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
14913
14914         * LinkLabel.cs: We need to update the hover drawing when
14915           leaving the control as well.
14916
14917 2006-01-18  Jordi Mas i Hernandez <jordimash@gmail.com>
14918
14919         * DataGrid.cs: Clicking on non empty areas in the columns
14920            area was giving an exception
14921
14922 2006-01-17  Jackson Harper  <jackson@ximian.com>
14923
14924         * ThemeWin32Classic.cs:
14925         * ListView.cs: Do not draw/clip the headers when the header style
14926         is None.
14927
14928 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
14929
14930         * DataGrid.cs: Fixes 77260
14931         
14932 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
14933
14934         * DataGrid.cs: Clicking on a column on a empty grid was giving
14935           an exception
14936
14937 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
14938
14939         * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
14940           or any keypress will crash the grid.
14941
14942 2006-01-17  Mike Kestner  <mkestner@novell.com>
14943
14944         * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
14945         * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for 
14946         invisible/previously-visible items.
14947         [Fixes #76909]
14948
14949 2006-01-17  Alexander Olk  <alex.olk@googlemail.com>
14950
14951         * ThemeClearlooks.cs:
14952         - Added CL_Draw_Button method; now other theme controls that are 
14953           not derived from button or do not have a button can draw buttons
14954           too
14955         - Updated ComboBox drawing
14956         - Beautified RadioButton drawing
14957         - Corrected drawing of bottom and left tabs
14958         - Beautified DateTimePicker and MonthCalendar
14959         - Added CPDrawButton and CPDrawRadioButton
14960
14961 2006-01-16  Jackson Harper  <jackson@ximian.com>
14962
14963         * ComboBox.cs: Set the initial value of the scrollbar to the
14964         current index. Reduce the numbers of refreshs and IndexOfs called.
14965
14966 2006-01-14  Alexander Olk  <alex.olk@googlemail.com>
14967
14968         * FileDialog.cs: When the file listview is focused hitting the
14969           backspace key moves the fileview to the parent directory
14970
14971 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
14972
14973         * Form.cs: 
14974           - Added RecreateHandle call when changing taskbar visibility to 
14975             trigger reparenting in Win32 driver (Fixes #75719)
14976           - If a window has minimize or maximize buttons, it cannot have
14977             a help button
14978         * XplatUIWin32.cs:
14979           - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
14980             the toplevel form with FosterParent (A toolwindow not on the
14981             taskbar) (Fixes #75719)
14982           - Made FosterParent a toolwindow
14983
14984 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
14985
14986         * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
14987
14988 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
14989
14990         * ToolTip.cs: If SetToolTip is called from a control and the mouse
14991           is currently over that control, make sure that tooltip_window.Text
14992           gets updated
14993
14994 2006-01-13  Mike Kestner  <mkestner@novell.com>
14995
14996         * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
14997
14998 2006-01-13  Jackson Harper  <jackson@ximian.com>
14999
15000         * TreeView.cs: On MS GetNodeAt never actually factors in the X
15001         value passed.  Also redraw the selected node when we recieve
15002         focus, so tabbing between trees works correctly.
15003
15004 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
15005
15006         * MimeIcon.cs: GnomeHandler: older gnome versions don't have
15007           ~/.gconf/%gconf-tree.xml, so use
15008           .gconf/desktop/gnome/interface/%gconf.xml
15009
15010 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
15011
15012         * TextControl.cs: Draw text in gray if control is disabled
15013
15014 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
15015
15016         * TreeView.cs: Draw the focus rectangle outside the highlight, to
15017           make sure it's always visible. Fixes #76680.
15018
15019 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
15020
15021         * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
15022
15023 2006-01-13  Jonathan Chambers  <jonathan.chambers@ansys.com>
15024
15025         * PageSetupDialog.cs: Added.
15026         * PrintDialog.cs: Attributes.
15027         * PrintPreviewControl.cs: Updates.
15028         * PrintPreviewDialog.cs: Updates.
15029         
15030 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
15031
15032         * Control.cs: Undid my selection check fix, since it's not needed
15033         * TextBoxBase.cs:
15034           - Now considering the presence of hscroll/vscroll when sizing
15035             vscroll/hscroll respectively. Fixed bug #77077
15036           - Added Left/Up/Down/Right to IsInputKey list to prevent
15037             ContainerControl from stealing them. This fixes what I broke
15038             with my last checkin.
15039
15040 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com> 
15041
15042         * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
15043           I finally understand how the property can be set without a setter :-)
15044
15045 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
15046
15047         * Application.cs:
15048           - Switched RunLoop to use static Message.Create to create a 
15049             Message object
15050           - Added PreProcessMessage call in runloop for keyboard events; this
15051             is part of the fix for #77219, I overlooked this originally in the
15052             MSDN doc for PreProcessMessage
15053         * Control.cs:
15054           - Removed call to PreProcessMessage from handling of keyboard 
15055             messages; it's supposed to be done in the message pump
15056           - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
15057             per MSDN documentation.
15058           - IsInputChar: All chars are input chars by default; removed the 
15059             parent calling chain, MS does not document that
15060           - PreProcessMessage: If IsInputChar is true, we want to return false
15061             to allow dispatching of the message
15062           - When selecting the next control, now also check that we're not
15063             selecting ourselves again and therefore return a false positive.
15064         * TextBoxBase.cs:
15065           - Tried to match return values for IsInputKey and ProcessDialogKey
15066             to what MS returns; moved processing of our special keys outside
15067             ProcessDialogKey since MS does not seem to return true on those.
15068           - Moved code that previously was in ProcessDialogKey into new private
15069             ProcessKey method, which gets called upon receipt of WM_KEYDOWN
15070           - Reworked handling of WM_CHAR to not have to duplicate code from
15071             Control.cs anymore, instead we simply call down to base.
15072            
15073 2006-01-12  Jackson Harper  <jackson@ximian.com>
15074
15075         * ComboBox.cs: We always need to refresh the text area when
15076         EndUpdate is called. Fixes the combobox in the file dialog.
15077         * Control.cs: Don't create the creator_thread until the controls
15078         handle is created.  Also in InvokeRequired we check if the
15079         creator_thread is null. This gives the effect of InvokeRequired
15080         returning true if the controls handle is not created yet, and
15081         matches MS.
15082
15083 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
15084
15085         * XplatUI.cs:
15086           - Added StartLoop() driver method. This is used to allow drivers to
15087             prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
15088             loop for a particular thread
15089           - Added EndLoop() driver method. This is called once the message
15090             pump for the thread is shut down
15091           - Added SupportsTransparency method to allow the driver to indicate
15092             opacity support for windows
15093         * Form.cs:
15094           - Removed TODO attribute, completed AllowTransparency property
15095           - Added documented logic to Opacity
15096         * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
15097           ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
15098           versions of CompatibleTextRendering
15099         * X11Structs.cs: Added opacity atom to our atom enumeration
15100         * Hwnd.cs: Added opacity tracking (we need to track since the opacity
15101           of a form might be set before it's reparented by the WM, and we need
15102           the opacity value without calling up to Form)
15103         * XplatUIDriver.cs: Added StartLoop(), EndLoop() and 
15104           SupportsTransparency() driver methods
15105         * Application.cs: Now calling StartLoop and EndLoop driver methods
15106         * XplatUIX11.cs:
15107           - Added opacity atom registration
15108           - Added StartLoop()/EndLoop() methods. They're empty right now but
15109             will need to get implemented when we switch to a per-thread queue
15110           - Implemented SupportsTransparency() method
15111           - Implemented SetWindowTransparency() method
15112           - Added support for setting the opacity value when a window is
15113             reparented (since the opacity needs to be set on the WM frame)
15114         * XplatUIOSX.cs, XplatUIWin32.cs:
15115           - Added SupportsTransparency(), StartLoop() and EndLoop() methods
15116
15117 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
15118
15119         * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
15120
15121 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
15122
15123         * FileDialog.cs: Added ToolTip for MWFFileView
15124         * MimeIcon.cs: Rewrote GnomeHandler.
15125           - Get currently used gnome icon theme from
15126             ($HOME)/.gconf/%gconf-tree.xml
15127           - Make use of inherited icon themes
15128           - Support SVG icon themes like Tango via librsvg
15129
15130 2006-01-12  Miguel de Icaza  <miguel@novell.com>
15131
15132         Revert's Jackson's revert which broke 2.0 builds.   Fix both
15133         builds. 
15134         
15135         * Application.cs: Move the use_compatible_text_rendering outside
15136         the NET_2_0 define.  If we ever need to use the
15137         use_compatible_text_rendering on the individual controls they will
15138         access the variable from the common shared code paths.
15139
15140 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
15141
15142         * XplatUI.cs:
15143           - Added more granular debug options
15144           - Added method to print both window text and id
15145           - Switched debug output to use new Window() debug method
15146           - Added IsEnabled() driver method
15147           - Added EnableWindow() driver method
15148         * Form.cs:
15149           - Removed end_modal; no longer needed, new loop handles termination
15150             via 'closing' variable
15151           - If form is modal, setting DialogResult will now initiate loop
15152             termination via 'closing' variable
15153           - Added support for is_enabled/WS_DISABLED to CreateParams
15154           - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
15155             does all the work
15156           - Removed code that's now in RunLoop from ShowDialog()
15157           - Added various documented sanity checks to ShowDialog()
15158           - Added handling of WM_DESTROY message; we set 'closing' on getting
15159             the message to indicate the message pump to terminate
15160           - Added handling of new internal WM_CLOSE_INTERNAL message - it's
15161             send by the Application.ExitThread method. (We send the message
15162             to destroy the window after all other events have been
15163             processed through the queue, instead of destroying the handle 
15164             directly)
15165           - Moved code from Close() method to WM_CLOSE handler; added logic
15166             to only send close-related events if the form is not displayed
15167             modal
15168         * Splitter.cs (..ctor): Fixed typo in resource name
15169         * Control.cs:
15170           - DrawBackgroundImage: Explicitly selecting the wrap mode for the
15171             brush now
15172           - set_Cursor: Now only setting calling into XplatUI if the handle for
15173             the control is already created; this avoids implict handle creation
15174             or crashes if it's not created
15175           - set_Enabled: Now setting the enabled state via the new driver method
15176             instead of just tracking it
15177           - CreateParams: Added logic to set WS_DISABLED based on enabled state
15178           - CreateControl: Reordered event firing and method calls to more
15179             closely fire events in the order MS does. Now setting the
15180             enabled state in the driver when creating the control.
15181           - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
15182             match MS order
15183         * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
15184           MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED 
15185         * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
15186         * Hwnd.cs:
15187           - Added tracking of window enabled state (get_Enabled/set_Enabled)
15188           - Added EnabledHwnd property to easily allow a driver to find the
15189             handle of the first enabled window in the parent chain (this is
15190             used by drivers to pass up input events of disabled windows)
15191         * XplatUIDriver.cs: Added IsEnabled() method
15192         * Application.cs:
15193           - Removed crude and obsolete exiting tracking variable
15194           - Removed internal ModalRun(); replaced by RunLoop()
15195           - Implemented private CloseForms() method to allow closing all 
15196             windows owned by a particular (or all) threads
15197           - Exit() now properly closes all windows without forcing the message
15198             pump to quit
15199           - Removed obsolete InternalExit() method
15200           - Changed Run() methods to use new RunLoop() message pump
15201           - Implemented new RunLoop() method for both modal and non-modal forms
15202         * CommonDialog.cs:
15203           - get_CreateParams: Added setting of WS_DISABLED
15204           - Simplified ShowDialog(); now all the work is done in RunLoop(),
15205             invoked via Form.ShowDialog()
15206         * NativeWindow.cs: We don't remove the window from the collection when
15207           the handle is destroyed; there might still be messages for it in the
15208           queue (mainly the resulting WM_DESTROY); instead it will be removed
15209           when Control calls InvalidateHandle in the WM_DESTROY handler
15210         * XplatUIX11.cs:
15211           - CreateWindow: Added logic to handle the WS_DISABLED window style
15212           - EnableWindow: Implemented based on Hwnd.Enabled
15213           - GetMessage: Reset PostQuitState so the method can be called again
15214           - Implemented support for disabled windows (passing messages to the
15215             first enabled parent) in handling all input messages
15216           - Added optimizations for handling Expose events
15217           - Implemeted new driver method IsEnabled()
15218           - Now always resetting paint pending tracking vars when we start paint
15219           - Re-implemented UpdateWindow via just sending a WM_PAINT message
15220         * XplatUIOSX.cs: Added IsEnabled method stub
15221         * XplatUIWin32.cs: Implemented new IsEnabled() method
15222
15223 2006-01-11  Jackson Harper  <jackson@ximian.com>
15224
15225         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
15226         LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
15227         variables a little.
15228         * ColorDialog.cs: Clear out the old form before adding the new
15229         panel.  
15230
15231 2006-01-11  Jackson Harper  <jackson@ximian.com>
15232
15233         * X11Dnd.cs: Make sure to add all the text formats when adding
15234         strings to the data object.
15235         * TreeNodeCollection.cs: When adding to a sorted tree we need to
15236         do some redrawing too.  Also change the UpdateNode to an
15237         UpdateBelow so the newly added node gets painted.
15238         
15239 2006-01-11  Miguel de Icaza  <miguel@novell.com>
15240
15241         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
15242         LinkLabel.cs, PropertyGrid.cs: Implement the
15243         UseCompatibleTextRendering property for 2.x
15244
15245         * Application.cs (SetCompatibleTextRenderingDefault): Add. 
15246
15247 2006-01-11  Jackson Harper  <jackson@ximian.com>
15248
15249         * TreeView.cs: Use the property for setting the selected node so
15250         the correct events get raised.
15251         * TreeNode.cs: Update the tree when the fore/back colours of a
15252         node are set.
15253
15254 2006-01-10  Jackson Harper  <jackson@ximian.com>
15255
15256         * TreeView.cs: Allow setting SelectedNode to null.
15257
15258 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
15259
15260         * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
15261
15262 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
15263
15264         * PrintControllerWithStatusDialog.cs: Update page number in dialog.
15265
15266 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
15267
15268         * PrintDialog.cs: Added attributes and set default property values.
15269
15270 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
15271
15272         * PrintControllerWithStatusDialog.cs: 
15273         Added PrintControllerWithStatusDialog.
15274
15275 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
15276
15277         * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
15278         XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
15279
15280 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
15281
15282         * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
15283
15284 2006-01-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
15285
15286         * ComboBox.cs: Added KeyDown event handler for processing arrow keys
15287         and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
15288
15289 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
15290
15291         * MimeIcon.cs: Added internal class SVGUtil.
15292
15293 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
15294
15295         * FileDialog.cs: Don't crash if there are two files with the
15296           same name but different locations.
15297
15298 2006-01-08  John BouAntoun  <jba-mono@optusnet.com.au>
15299
15300         * MonthCalendar.cs: Fixed annoying rendering bug when selecting
15301         dates across multiple month grids. Used to not highlight entire 
15302         month, but does now.
15303         
15304 2006-01-06  Jackson Harper  <jackson@ximian.com>
15305
15306         * MonthCalendar.cs: Removed DoEvents call to prevent a running
15307         message loop. Change timer intervals to numbers that seem more
15308         natural.
15309
15310 2006-01-06  John BouAntoun  <jba-mono@optusnet.com.au>
15311
15312         * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
15313           object for location info since screen object is now implemented.
15314
15315 2006-01-05  Jackson Harper  <jackson@ximian.com>
15316
15317         * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
15318         * AsyncMethodResult.cs: We no longer use a WeakReference for the
15319         AsyncMethodResult, this is because we ALWAYS want the
15320         ManualResetEvent to get set.
15321         * Control.cs: When disposing use an async invoke to call shutdown
15322         code, so that thigns don't block on the finalizer thread.  Also
15323         check if we even have a message loop before trying to send
15324         messages, if we don't then don't bother sending messages.
15325         - No more weak references for async methods
15326         * XplatUIDriver.cs: No more weak references for async methods.
15327
15328 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
15329
15330         * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
15331           returns two FontFamily with the same name
15332
15333 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
15334
15335         * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of 
15336           drawing disabled text. Instead using the ColorGrayText color
15337
15338 2006-01-04  Jackson Harper  <jackson@ximian.com>
15339
15340         * TreeNode.cs: redraw the node when its image index is changed.
15341
15342 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
15343
15344         * RichTextBox.cs: Same fix as last, just for SelectionColor. This
15345           time I checked there are no others like it.
15346
15347 2006-01-04  Jackson Harper  <jackson@ximian.com>
15348
15349         * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
15350         this gives the behavoir I was looking for.
15351         * Control.cs: Special case Invoking EventHandlers, this matches MS
15352         and fixes part of bug #76326.
15353
15354 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
15355
15356         * ThemeClearlooks.cs, FileDialog.cs:
15357           - Reflect the latest Theme class changes
15358           - Remove Mono.Unix.Syscall.time in FileDialg and replace it 
15359             with DateTime
15360             
15361 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
15362
15363         * Theme.cs: Cache UI resource images and resize them if needed
15364
15365 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
15366
15367         * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
15368           is called. This fixes the crash in Nexxia when setting the font
15369           attributes in the chat. [However, RTF needs a look-over to make sure
15370           that all SelectionXXX methods handle the special case that selection
15371           is empty and therefore the change must be applied to all text starting
15372           at the cursor/selection start]
15373
15374 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com> 
15375
15376         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
15377           XplatUIOSX.cs: Added SendMessage and PostMessage methods
15378         * X11Keyboard.cs: Switched to new way of calling PostMessage
15379
15380 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
15381
15382         * Theme.cs: Added theme interface for images to allow the theme to
15383           control what images are used for things like FileDialog, MessageBox
15384           icons, etc.
15385         * MessageBox.cs: Now uses the new Theme icon/image interfaces
15386
15387 2006-01-03  Alexander Olk  <alex.olk@googlemail.com>
15388
15389         * FileDialog.cs:
15390           - Removed some dead code
15391           - Opening a recently used file does work now
15392           - Small UI enhancements
15393           - Refactoring
15394
15395 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
15396
15397         * FileDialog.cs: Forgot too add __MonoCS__
15398
15399 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
15400
15401         * FileDialog.cs: We are able to read recently used files now let's
15402           go on and write them.
15403
15404 2006-01-01  Alexander Olk  <alex.olk@googlemail.com>
15405
15406         * FileDialog.cs: Breathe some life into "last open"/"recently used"
15407           button
15408         * MimeIcon.cs: Do a check for the top level media type also
15409
15410 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
15411
15412         * ThemeClearlooks.cs:
15413           - Added CPDrawStringDisabled
15414           - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
15415             some chars if the text doesn't fit into text_rect
15416           - DrawListViewItem: If View = View.LargeIcon center the image;
15417             rewrote the drawing of ListViewItem.Text if View = 
15418             View.LargeIcon
15419
15420 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
15421
15422         * MimeIcon.cs: Use default KDE icon theme if there is no
15423           "48x48" directory for the current icon theme, fixes #77114
15424         * Mime.cs: Disable not working and actually not used code. 
15425         * ThemeWin32Classic.cs:
15426           - Replace "new SolidBrush" in GetControlBackBrush and
15427             GetControlForeBrush with ResPool.GetSolidBrush
15428           - Changed DrawListViewItem from private to protected virtual
15429         * FileDialog.cs:
15430           - Added form.MaximizeBox = true
15431           - Don't throw an exception if there is a broken symbolic link
15432
15433 2005-12-23  Jackson Harper  <jackson@ximian.com>
15434
15435         * TabControl.cs: Give the panels focus, keyboard navigation is
15436         fixed so this works correctly now.
15437         - We need these key events also.
15438         * ToolBar.cs: Remove some of the poor mans double buffering.
15439         
15440 2005-12-24  Alexander Olk  <alex.olk@googlemail.com>
15441
15442         * ComboBox.cs: The internal TextBox now returns the focus.
15443
15444 2005-12-23  Jackson Harper  <jackson@ximian.com>
15445
15446         * ThemeWin32Classic.cs:  Draw the text for all tab appearances.
15447
15448 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
15449
15450         * Control.cs: Removed debug code
15451         * XplatUIX11.cs: Changed DestroyChildWindows to also consider
15452           implicit children
15453
15454 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com> 
15455
15456         * Control.cs: When creating the control, update the Z-order after
15457           all it's children are created, too. (Fixes nexxia not showing
15458           picturebox bug)
15459
15460 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
15461
15462         * Control.cs: Do not update the anchoring distances if layout is
15463           suspended, instead do it once layout is resumed
15464
15465 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com> 
15466
15467         * Control.cs: 
15468           - After many hours of debugging, for both Jackson and
15469             myself, it turns out that it helps to set the parent of a control
15470             if you want to actually see it onscreen. In the spirit of that
15471             discovery, we're now setting the parent of the control and
15472             it's children when the control's handle is created. This fix
15473             will make Lutz Roeder's Reflector run happily. 
15474           - now just creating the handle instead of the whole control when
15475             getting a graphics context for the control.
15476
15477 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
15478
15479         * ScrollableControl.cs: When calculating the canvas, don't consider
15480           the scrollbar widths. Instead, predict if horizontal scrollbar
15481           will affect canvas when deciding on vertical display and vice versa.
15482
15483 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
15484
15485         * RichTextBox.cs: Set default RTF font for documents that don't
15486           have a font table (Fixes #77076)
15487
15488 2005-12-22  Jackson Harper  <jackson@ximian.com>
15489
15490         * TextBoxBase.cs: It's difficult to do, but you can have an empty
15491         clipboard. This prevents a NullRef in that case.
15492         * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
15493         clipboard. PRIMARY is for the currently selected text only. (We
15494         should implement PRIMARY at some point.
15495
15496 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
15497
15498         * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
15499           a Unicode function with a structure that was defined in Ansi way.
15500           This fixes #76942.
15501
15502 2005-12-21  Jackson Harper  <jackson@ximian.com>
15503
15504         * StatusBar.cs: Statusbar handles its fore/back colours on it's
15505         on. Because thats how it rolls. (and this avoids it using ambient
15506         colours).
15507         * ThemeWin32Classic.cs: Use the proper back color for filling.
15508         * Menu.cs: Use the system menu bar color for drawing menu
15509         bars. Using the window back color will bring ambient colours into
15510         the picture.
15511
15512 2005-12-21  Alexander Olk  <alex.olk@googlemail.com>
15513
15514         * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
15515           Bitmaps were created and not disposed.
15516
15517 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
15518
15519         * Control.cs (CreateControl): Don't do anything if the control is
15520           already created, otherwise we'd fire the OnCreated event more than
15521           once
15522
15523 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
15524
15525         * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
15526           will always match. Instead return -1. Fixes #76464.
15527
15528 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
15529
15530         * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
15531           neither the beginning nor the end of the line (Fixes bug #76479)
15532
15533 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
15534
15535         * Control.cs:
15536           - ControlNativeWindow.ControlFromHandle(): Now handling situation
15537             where handle is invalid
15538           - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
15539             instead of slower linear search
15540         * NativeWindow.cs: Don't remove the window from the hashtable until
15541           after the driver has destroyed it (since the driver might use
15542           Control.FromHandle to lookup the control object
15543         * Hwnd.cs: Added DestroyPending property to track if a window is 
15544           already destroyed as far as the driver is concerned and only hasn't
15545           yet notified the control
15546         * XplatUIX11.cs:
15547           - Activate(): Check if the window is still valid before using the 
15548             handle
15549           - Implemented DestroyChildWindow() method to mark child windows as
15550             destroyed when a window is destroyed. This prevents situations 
15551             where we might call an X method based on queued events for a
15552             window that already has been destroyed but we haven't yet pulled
15553             the destroy method from the queue.
15554           - Added a call to the new DestroyChildWindow() method to the drivers
15555             DestroyWindow code. Also now marking the destroyed window itself
15556             as pending
15557
15558 2005-12-20  Jackson Harper  <jackson@ximian.com>
15559
15560         * StatusBar.cs:
15561         * StatusBarPanel.cs: Don't calculate panel sizes on draw
15562         anymore. Just do them when needed, also track the rects of panels
15563         so that we can optimize refreshing more in the future.
15564
15565 2005-12-20  Alexander Olk  <alex.olk@googlemail.com>
15566
15567         * ColorDialog.cs: Fixed focus drawing in small color controls
15568
15569 2005-12-19  Jackson Harper  <jackson@ximian.com>
15570
15571         * InternalWindowManager.cs:
15572         * MdiWindowManager.cs: Cleanup some coordinate system changes so
15573         moving windows works properly.
15574
15575 2005-12-19  Peter Dennis Bartok  <pbartok@novell.com> 
15576
15577         * Control.cs: 
15578           - Removed call to InitLayout() from SetBoundsCore(); doc says
15579             it's only called when a control is added to a container
15580           - Split InitLayout logic, moved to separate UpdateDistances() method
15581             since we need to perform those calculations more often than just
15582             when adding the control to a container. (Needed to fix #77022)
15583           - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
15584           - Reduced the OnBindingContextChanged events count, don't send them
15585             unless the control is created, we still aren't totally matching
15586             MS, but I can't quite figure out some of their rules
15587
15588 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
15589
15590         * ThemeClearlooks.cs: Corrected distance between ProgressBar
15591           stripes
15592
15593 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
15594
15595         * ThemeClearlooks.cs:
15596           - Updated ProgressBar drawing
15597           - Corrected drawing of ScrollBars and scroll buttons
15598           - Some temporary fixes for minor pixel artefacts
15599
15600 2005-12-18  Peter Dennis Bartok  <pbartok@novell.com> 
15601
15602         * Control.cs:
15603           - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
15604             cause events to be sent in the same order as MS does.
15605           - Added ChangeParent() method to trigger various OnXXXChanged events
15606             that need to be fired when a parent changes (This is a reworking
15607             of the patch from r54254, with the X11 errors fixed)
15608           - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
15609             since on MS we get OnLayoutChanged events when calling Clear()
15610           - Changed Enabled property to consider parent state as well, if a
15611             parent is not enabled, the control will not be either
15612           - Changed Parent property to simply call Controls.Add() since that
15613             now does all the work required, this way we avoid code duplication
15614           - Threw in a few OnBindingsContextChanged calls to try and match
15615             when MS sends them. We seem to send a few too many, though.
15616           - Added call to CreateControl when adding the control to a parent.
15617             We were never calling CreateControl. Still needs some work, in
15618             some places we treat HandleCreated and ControlCreated as equal, 
15619             which is wrong
15620           - Removed obsolete commented out code from UpdateZOrder()
15621
15622 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
15623
15624         * ThemeClearlooks.cs: Updated TrackBar drawing.
15625
15626 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
15627
15628         * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
15629
15630 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
15631
15632         * FileDialog.cs: Add the Help button and the open readonly
15633           checkbox only if needed
15634
15635 2005-12-16  Jackson Harper  <jackson@ximian.com>
15636
15637         * Control.cs: Make sure we have an active menu before trying to
15638         process commands on it. Prevents menu-less forms from crashing
15639         when Alt is pressed.
15640         * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
15641         Dieter Bremes.
15642         * RichTextBox.cs: Expand statement to help out gmcs and fix the
15643         2.0 build.
15644
15645 2005-12-16  Jackson Harper  <jackson@ximian.com>
15646
15647         * InternalWindowManager.cs: Don't translate tool windows screen
15648         coordinates. This fixes windows 'bouncing' around when being moved.
15649
15650 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
15651
15652         * TextBoxBase.cs:
15653           - MaxLength now treats 2^31-1 equal to unlimited length (this is
15654             not quite MS compatible, MS uses that number only for single line
15655             and 2^32-1 for multi-line, but I figure it won't hurt keeping
15656             the limit at 2GB)
15657           - Now enforcing the MaxLength limit when entering characters
15658           - Added argument to internal Paste() method to track if it's called
15659             from programatically or via keyboard, since keyboard driven pastes
15660             need to enforce max-length
15661           - Added logic to Paste to only paste as many chars as MaxLength 
15662             allows
15663         * RichTextBox.cs: Updated to use new obey argument for internal Paste()
15664         * TextControl.cs:
15665           - Added Length property to return number of characters in document
15666           - Added private CharCount property which only tracks actual chars
15667             in the document (no linefeeds) and fires event when CharCount
15668             changes
15669           - Added tracking of character count to all methods that alter it
15670           - Added LengthChanged event to allow applications to subscribe
15671             to any changes to the document
15672
15673 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
15674
15675         * TextBox.cs: 
15676           - Removed local password_char field (moved to TextBoxBase)
15677           - Now setting the document's password var when password is
15678             set
15679         * TextBoxBase.cs:
15680           - Added password_char field (needed here so MultiLine can
15681             access it)
15682           - Added logic to MultiLine property setter to set the document's
15683             variable when password display is allowed
15684           - Removed debug code and made some debug code conditional
15685         * TextControl.cs:
15686           - Added RecalculatePasswordLine() method to handle special password
15687             char only lines
15688           - Added PasswordChar property, also added related tracking vars
15689           - Draw() method now uses local text var for grabbing text to draw,
15690             this var is set to line.text unless we're doing password display,
15691             then it is set to the pre-generated all-password-chars line
15692           - Added calling RecalculatePasswordLine() method for password lines
15693
15694 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
15695
15696         * Hwnd.cs: 
15697           - Added Reparented property to allow tracking of Window Manager
15698             reparenting actions (which affect X/Y calculations of toplevel 
15699             windows)
15700           - Made ToString() print window handles in hex
15701         * XplatUIX11.cs:
15702           - AddConfigureNotify(): Now uses reparented state off Hwnd to
15703             determine if X/Y needs offsetting
15704           - AddConfigureNotify(): Fixed offset calculations
15705           - Now adds ReparentNotify messages into the queue
15706           - Now processes ReparentNotify messages and causes a 
15707             WM_WINDOWPOSCHANGED message to be sent upstream if a window
15708             is reparented (as most likely it's X/Y coordinates are changed
15709             due to that)
15710
15711 2005-12-14  Jackson Harper  <jackson@ximian.com>
15712
15713         * XplatUIX11.cs: Tool windows still need to respek focus.
15714
15715 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
15716
15717         * Control.cs: Undid 54254 (causing XConfigure errors) so we can
15718           have a working release
15719
15720 2005-12-13  Jackson Harper  <jackson@ximian.com>
15721
15722         * Form.cs: Update styles after setting the border style regardless
15723         of whether or not the window is using a window manager.
15724
15725 2005-12-13  Jackson Harper  <jackson@ximian.com>
15726
15727         * Form.cs: We now hook into an internal window manager instead of just an
15728         MDI subsystem, this is so we can have properly behaving tool windows.
15729         * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
15730         * InternalWindowManager.cs: New internal class that acts as a
15731         window manager for tool windows and as a base for mdi windows.
15732         * MdiWindowManager.cs: New class that acts as a window manager for
15733         mdi windows.
15734
15735 2005-12-12  Jackson Harper  <jackson@ximian.com>
15736
15737         * Control.cs: Updates so we match behavoir for for implicit
15738         controls. Fixes explosions in MDI.
15739
15740 2005-12-12  Jackson Harper  <jackson@ximian.com>
15741
15742         * Control.cs: Implement Invalidate (Region).
15743
15744 2005-12-12  Peter Dennis Bartok  <pbartok@novell.com> 
15745
15746         * Control.cs: 
15747           - Changed handling of Controls.Add/Controls.Remove to fire (almost) 
15748             the same events as MS does. MS fires events for each property 
15749             except, for unknown reasons, Cursor, when the control is reparented. 
15750             I can't seem to totally match add/remove since MS also fires some 
15751             VisibleChanged events, which makes no sense. Consolidated the
15752             parenting code into a separate method so it can be called from
15753             both Add and Remove. set_Parent no longer needs any special logic
15754             as it calls the parent's add method which implicitly fires
15755             all events
15756           - Removed some obsolete code and debug output
15757           - Enabled state is inherited from parents, if this is enabled
15758
15759 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com> 
15760
15761         * Form.cs: Removed commented out code
15762
15763 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com>
15764
15765         * Control.cs:
15766           - Added internal version of Invoke, with additional argument 
15767             indicating if we're calling it from a Dispose() handler. That
15768             way we can avoid BeginInvoke throwing an exception if we're
15769             calling for an already destroyed window.
15770           - Added a dispose argument to BeginInvokeInternal, and made the
15771             check if a valid window handle chain exists conditional on
15772             it not being a dispose call
15773           - Removed code in DestroyHandle to destroy our children. Since we
15774             now handle the WM_DESTROY message we will catch all our children
15775             being destroyed.
15776           - Now calling OnHandleDestroyed from our new WM_DESTROY handler
15777         * Form.cs:
15778           - Added a field to track the application context of the form.
15779           - No need to set closing variable as response to WM_CLOSE, instead
15780             we destroy the window. We also call PostQuitMessage if the form
15781             has an application context (which makes it the main app form,
15782             which, when closed terminates the app)
15783         * XplatUI.cs:
15784           - Dropped Exit() method, it's naming was confusing
15785           - Added PostQuitMessage() which causes GetMessage to return false
15786             once the message queue is empty
15787         * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added 
15788           PostQuitMessage()
15789         * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
15790           no longer a valid XplatUI method, but left it in since it's used
15791           internally. Added empty PostQuitMessage() method.
15792         * MenuAPI.cs: Replaced call to Exit() with call to
15793           PostQuitMessage, even though this is probably no longer needed.
15794         * Hwnd.cs: Added 'pretty' ToString() to support debugging.
15795         * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
15796         * Application.cs:
15797           - Replaced call to XplatUI.Exit() with PostQuitMessage()
15798           - Removed old debug code that would call XplatUI for exception
15799             display, enabled standard exception handling (Still not enabled
15800             though, until NativeWindow's ExternalExceptionHandler define
15801             is removed
15802         * NativeWindow.cs:
15803           - Added internal method to allow control to update NativeWindow
15804             after a window has been destroyed
15805           - Added handling of already destroyed windows when calling i
15806             DestroyWindow
15807           - Added removal of handle from list on ReleaseHandle
15808         * XplatUIX11.cs:
15809           - Dropped GetMessageResult var and related code
15810           - Added PostQuitState to field to track if PostQuitMessage has been
15811             called
15812           - Dropped Exit() method
15813           - Added PostQuitMessage() method
15814           - GetMessage now will return false if PostQuitState is set and no
15815             more messages are in the queue.
15816           - Expose handler will no longer generate WM_PAINT messages if we are
15817             in PostQuitState since it's very likely any windows have already
15818             been destroyed, and since Hwnd won't get updated until we have
15819             processed the DestroyNotify we'd be causing X errors.
15820         
15821 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
15822
15823         * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
15824           Thanks to Mike for pointing out the err of my ways.
15825
15826 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
15827
15828         * Control.cs(PreProcessMessage): Moved menu handling back, but
15829           after all other key handling, to match MS (who handles Menu in
15830           DefWndProc)
15831         * Menu.cs (WndProc): Removed my brainfart
15832
15833 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
15834
15835         * Control.cs(PreProcessMessage): Removed special menu handling 
15836         * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
15837
15838 2005-12-07  Mike Kestner  <mkestner@novell.com>
15839
15840         * Control.cs : special case SYSKEYUP so that we can adjust keynav
15841         state according in tracker.
15842         * Menu.cs : promote tracker field to base class and provide a tracker
15843         lookup capability.  Add/Remove shortcuts dynamically if the top menu
15844         has a tracker. Unparent items that are removed from the collection.
15845         * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
15846         * Theme*.cs: add always_show_hotkeys field to support configurability
15847         of mnemonic display.  win32 doesn't show mnemonics until Alt is
15848         pressed.
15849
15850 2005-12-07  Jackson Harper  <jackson@ximian.com>
15851
15852         * MdiChildContext.cs: Use Control.ResetCursor.
15853         * Control.cs: ResetCursor needs to set the property so that the
15854         correct XplatUI call gets made.
15855
15856 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
15857
15858         * Control.cs: More fixes to make our key events match MS. We
15859           were not setting the modifier state on KeyData, and we were
15860           not generating any events when Alt was pressed with a key
15861           since handling of WM_SYSxxx was missing for the OnKey methods.
15862
15863 2005-12-07  Jackson Harper  <jackson@ximian.com>
15864
15865         * MdiChildContext.cs: reenable the sizing code.
15866         - When the mouse leaves a window reset its cursor.
15867
15868 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
15869
15870         * ThemeClearlooks.cs: Reflect latest Hwnd changes
15871
15872 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
15873
15874         * Hwnd.cs: Now using the theme 3d bordersize to calculate
15875           widths of Fixed3D borders
15876
15877 2005-12-07  Jackson Harper  <jackson@ximian.com>
15878
15879         * MdiClient.cs: Fix warnings. Earn Mike's love.
15880
15881 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
15882
15883         * ThemeClearlooks.cs:
15884           - Adjusted mouse over button color
15885           - Added first parts of CheckBox drawing
15886           - Added correct color for selected text background
15887           - Fixed ComboBox drawing
15888           - Added CPDrawBorder3D and CPDrawBorder
15889
15890 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
15891
15892         * XplatUIX11.cs: Added call to XBell for AudibleAlert
15893
15894 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com> 
15895
15896         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
15897           XplatUIOSX.cs: Added AudibleAlert() method to have a means to
15898           alert users via sound. We could add an enum arg with different
15899           types of alerts in the future
15900
15901 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
15902
15903         * Control.cs: Fix behaviour problems pointed out by Mike
15904
15905 2005-12-05  Mike Kestner  <mkestner@novell.com>
15906
15907         * StatusBarPanel.cs: add Invalidate method and hook it into all the
15908         prop setters.  Calls parent.Refresh for now, but could be maybe be
15909         optimized with an internal method on StatusBar at some point.
15910         [Fixes #76513]
15911
15912 2005-12-05  Peter Dennis Bartok  <pbartok@novell.com> 
15913
15914         * RichTextBox.cs: Implemented get_SelectionColor
15915
15916 2005-12-05  Alexander Olk  <alex.olk@googlemail.com>
15917
15918         * ThemeClearlooks.cs:
15919           - Removed dead code
15920           - Draw black button border only if button is Form.AcceptButton
15921           - Draw correct button color for pressed RadioButton if the mouse 
15922             has entered the button
15923           - Updated ProgressBar drawing!
15924           - Updated CPDrawSizeGrip drawing
15925           - Updated StatusBarPanel drawing
15926
15927 2005-12-05  Mike Kestner  <mkestner@novell.com>
15928
15929         * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
15930         * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
15931
15932 2005-12-04  Alexander Olk  <alex.olk@googlemail.com>
15933
15934         * ThemeClearlooks.cs: Initial check-in, activate with
15935           export MONO_THEME=clearlooks
15936         * ThemeEngine.cs: Added ThemeClearlooks
15937
15938 2005-12-03  Mike Kestner  <mkestner@novell.com>
15939
15940         * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
15941         [Fixes #76897]
15942
15943 2005-12-02  Jackson Harper  <jackson@ximian.com>
15944
15945         * Form.cs: If the child form has no menu the default main menu is
15946         used as the active menu.
15947
15948 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com> 
15949
15950         * ListBox.cs: Check if any items exist before trying to resolve 
15951           coordinates into items
15952
15953 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
15954
15955         * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
15956           as the second color for the background hatch
15957
15958 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
15959
15960         * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
15961         * RichTextBox.cs: FormatText position arguments are 1-based, now making
15962           sure that what we pass to FormatText is always 1-based. Fixes #76885
15963
15964 2005-11-29  Miguel de Icaza  <miguel@novell.com>
15965
15966         * NumericUpDown.cs (EndInit): When we are done initializing,
15967         reflect any updates on the UI.
15968
15969 2005-12-02  Jackson Harper  <jackson@ximian.com>
15970
15971         * ImplicitHScrollBar.cs:
15972         * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
15973         their container controls.
15974         * TreeView.cs: Use the new implicit scrollbars.
15975
15976 2005-12-02  Jackson Harper  <jackson@ximian.com>
15977
15978         * TreeView.cs: Make top_node internal so the TreeNodeCollections
15979         can play with it.
15980         * TreeNodeCollection.cs: If we remove the topnode we need to
15981         update topnode to the next node in line.
15982         - When clearing nodes go through the same process as removing
15983         them, so they get depareneted and checked if they are top node.
15984
15985 2005-12-01  Jackson Harper  <jackson@ximian.com>
15986
15987         * TreeView.cs: When imagelists are used the image area is
15988         selectable as well as the text.
15989         - If there are no selected nodes select the first one.
15990         * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
15991         so don't do it more then we need to.
15992
15993 2005-12-01  Jackson Harper  <jackson@ximian.com>
15994
15995         * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
15996         that arrows can be scaled.
15997
15998 2005-12-01  Jackson Harper  <jackson@ximian.com>
15999
16000         * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
16001         fail. Patch by Dieter Bremes
16002
16003 2005-11-30  Jackson Harper  <jackson@ximian.com>
16004
16005         * Form.cs: Property is 2.0 only
16006         * PrintDialog.cs: Signature fix.
16007
16008 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
16009
16010         * TextControl.cs: 
16011           - No longer artificially moves text 2 pixels down (now that we have
16012             borders this is no longer needed)
16013           - Added calcs for left, hanging and right indent
16014
16015 2005-11-23  Mike Kestner  <mkestner@novell.com>
16016
16017         * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
16018
16019 2005-11-30  Jackson Harper  <jackson@ximian.com>
16020
16021         * MdiChildContext.cs: Set the cloned menus forms, as these don't
16022         get cloned as part of CloneMenu ().
16023         * Menu.cs: Make sure the parent of the items get set correctly
16024         when they are added.  And the owners are notified of the changes.
16025         * Form.cs: Create an ActiveMenu property, so that when MDI is used
16026         we can change the menu being displayed/handled by the form without
16027         changing the menu assosciated with the form.
16028         - Don't let Mdi children draw/handle menus.
16029         
16030 2005-11-30  Jackson Harper  <jackson@ximian.com>
16031
16032         * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
16033         a MenuChanged event. Just to make the API a little more
16034         consistent.
16035         * MainMenu.cs:
16036         * MenuItem.cs: Use the new OnMenuChanged
16037         * MdiChildContext.cs: Handle menu merging.
16038         * Form.cs: Implement MergedMenu.
16039         
16040 2005-11-30  Jackson Harper  <jackson@ximian.com>
16041
16042         * Menu.cs: We were misusing Add. Add goes behind the specified
16043         index according to the docs, and does not replace the specified
16044         index. So I added an Insert method.
16045
16046 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
16047
16048         * TextBoxBase.cs:  Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
16049           Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
16050           is for Jackson
16051         * RichTextBox.cs: Added calls to base for DnD events
16052
16053 2005-11-28  Peter Dennis Bartok  <pbartok@novell.com>
16054
16055         * TextControl.cs:
16056           - Fixed drag-selection related crash; style fixes
16057           - Implemented undo class
16058             o Implemented method to capture document state for specified
16059               range in document tree
16060             o Implemented method to restore captured document state
16061             o Implemented cursor tracking
16062             o Implemented basic undo stack
16063           - Added undo cursor tracking to methods altering cursor location
16064           - Added undo tracking to selection deletion (still missing
16065             other text-altering hookups)
16066         * RichTextBox.cs:
16067           - Added SelectionLength property
16068           - Implemented CanPaste()
16069           - Implemented Paste()
16070           - Added missing protected methods
16071           - Fixed RTF->Document conversion; now uses font index 0 and color 
16072             index 0 as the default font for the parsed text
16073           - Fixed RTF<->Document font size translation
16074           - Fixed RTF generation, now properly handles cross-tag boundaries
16075             for single line selection
16076           - No longer always appends blank line to generated RTF
16077           - Removed TODOs
16078           - Added missing attributes
16079           - Hooked up undo-related methods
16080         * TextBoxBase.cs:
16081           - Implemented Copy()
16082           - Implemented Paste()
16083           - Implemented Cut()
16084           - Fixed caret mis-behaviour on backspace across line-boundaries
16085
16086 2005-11-29  Jackson Harper  <jackson@ximian.com>
16087
16088         * MdiClient.cs: Add a method for activating mdi children. Very
16089         basic right now. I imagine someday it might need more girth.
16090         * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
16091         children windows names are added to the menu item.
16092         * ThemeWin32Classic.cs: Draw the arrow if the item is an
16093         mdilist. This happens regardless of whether or not there are any
16094         mdi windows to see in the list, and according to my tests happens
16095         before the items are even added. Also happens if there isn't even
16096         an mdi client to get windows from.
16097
16098 2005-11-29  Alexander Olk  <alex.olk@googlemail.com>
16099
16100         * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
16101         * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
16102
16103 2005-11-29  Jordi Mas i Hernandez <jordimash@gmail.com>
16104
16105         * DataGridTableStyle.cs:
16106           - Create always the styles for the missing columns even if they are
16107             provided by the user (not default table style)
16108         * DataGrid.cs:
16109           - Fixes bug 76770
16110           - Fixes SetDataBinding (always re-attach source)
16111           - Fixes SetNewDataSource (only clear styles if they are not for 
16112             this source)
16113          -  Expands OnTableStylesCollectionChanged to handle style refresh 
16114             and remove properly
16115
16116 2005-11-29  Jackson Harper  <jackson@ximian.com>
16117
16118         * FileDialog.cs: Implement missing bits, remove some dead
16119         code.
16120         * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
16121         creation of the panel so that the options set on the dialog are
16122         seen when the panel is created.
16123         * TreeView.cs: raise a click when items are clicked.
16124         
16125 2005-11-29  Jackson Harper  <jackson@ximian.com>
16126
16127         * MdiClient.cs: Pass some signature methods through to base.
16128
16129 2005-11-28  Jackson Harper  <jackson@ximian.com>
16130
16131         * ListView.cs: Raise the click event when items are clicked.
16132
16133 2005-11-28  Jackson Harper  <jackson@ximian.com>
16134
16135         * MdiClient.cs: Make this algorithm even more beautiful.  And fix
16136         a nullref.
16137
16138 2005-11-27  Alexander Olk  <alex.olk@googlemail.com>
16139
16140         * ThemeNice.cs: - Removed 1 pixel bitmaps
16141           - Use SmoothingMode.AntiAlias where it makes sense
16142             (ScrollButton arrow for example)
16143           - Enhanced Button focus drawing
16144           - Fixed ComboBox drawing (no artefacts anymore, focus
16145             rectangle is back again, reduced size of ComboButton, etc.)
16146           - Fixed RadioButton focus drawing for Appearence.Button
16147           - Slight ScrollButton redesign
16148           - Some LinearGradientBrush size fixes
16149           - GroupBoxes have now rounded edges
16150           - Fixed StatusBar drawing
16151
16152 2005-11-25  Alexander Olk  <alex.olk@googlemail.com>
16153
16154         * ThemeNice.cs: - Remove dead code
16155           - use correct background colors for menus, etc.
16156           - Fake pixel drawing with 1 pixel bitmaps
16157
16158 2005-11-24  Jackson Harper  <jackson@ximian.com>
16159
16160         * MdiClient.cs: Size the scrollbars when resizing the window.
16161         - Resize the maximized windows when the client is resized
16162         * Form.cs: Make the child context available
16163         
16164 2005-11-23  Jackson Harper  <jackson@ximian.com>
16165
16166         * MdiChildContext.cs: Don't size windows if they are maximized.
16167
16168 2005-11-23  Mike Kestner  <mkestner@novell.com>
16169
16170         * ContextMenu.cs: use MenuTracker.
16171         * Control.cs: remove menu handle usage.
16172         * Form.cs: remove menu handle usage.
16173         * Hwnd.cs: remove menu handle usage.
16174         * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
16175         motion and clicks to the new Tracker handlers.
16176         * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
16177         and handle usage.
16178         * MenuAPI.cs: refactored to combine popup and menubar event handling.
16179         Killed the MENU and MENUITEM data types and associated collections
16180         since we now keep the info on Menu and MenuItem. Expanded TRACKER into
16181         MenuTracker class that exposes the leftovers from the old MenuAPI
16182         static methods. Restructured Capture handling so that only one grab is
16183         done for the entire menu hierarchy instead of handing off grabs to
16184         submenus. Tracker now has an invisible control to Capture when active.
16185         * MenuItem.cs: add sizing accessors, kill Create
16186         and handle usage.
16187         * Theme.cs: remove menu handle and MENU(ITEM) usage.
16188         * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
16189         MENU(ITEM). remove menu handle usage, use Menu directly.
16190         * XplatUIDriver.cs: remove menu handle usage.
16191         * XplatUIOSX.cs: remove menu handle usage.
16192         * XplatUIWin32.cs: remove menu handle usage.
16193         * XplatUIX11.cs: remove menu handle usage.
16194
16195 2005-11-22  Jackson Harper  <jackson@ximian.com>
16196
16197         * Hwnd.cs: Don't compute the menu size for
16198         DefaultClientRectangle.
16199         - Reenable menu sizes being computed for GetClienRectangle.
16200         * Form.cs: Remove comment of trechery
16201         
16202 2005-11-22  Jackson Harper  <jackson@ximian.com>
16203
16204         * Hwnd.cs: The adjustments for the menu bar are made when it is
16205         attached to the form.
16206
16207 2005-11-19  Jackson Harper  <jackson@ximian.com>
16208
16209         * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
16210         (just like on windows).
16211
16212 2005-11-19  Jackson Harper  <jackson@ximian.com>
16213
16214         * MdiChildContext.cs: Handle all the buttons ourselves. We can't
16215         use real buttons anymore because they are in non client area. The
16216         one TODO here is that I need to somehow invalidate a section of
16217         the non client area.
16218
16219 2005-11-18  Jackson Harper  <jackson@ximian.com>
16220
16221         * Control.cs: Put the enum check back in now that MDI doesnt have
16222         to use this to set border styles.
16223         * Form.cs: Only set mdi child windows borders if the handle has
16224         been created.
16225         * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
16226         this directly on to the driver.
16227         - Get the move start position before adjusting for the titlebar
16228         height, this fixes the windows "skipping" when they are first
16229         moved.
16230
16231 2005-11-18  Jackson Harper  <jackson@ximian.com>
16232
16233         * XplatUIX11.cs: Just compute the mdi borders separately as they
16234         don't totally match up with normal form borders.
16235
16236 2005-11-18  Jackson Harper  <jackson@ximian.com>
16237
16238         * Control.cs: Set WS_ styles for borders, so that the driver does
16239         not have to retrieve the control instance to figure out what kind
16240         of borders it should have.
16241         * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
16242         driver can know its an mdi child easily.
16243         * XplatUIX11.cs: Get the border styles and whether the window is
16244         MDI from the Styles and ExStyles params instead of having to get a
16245         control. This prevents a chicken and egg problem.       
16246
16247 2005-11-18  Jackson Harper  <jackson@ximian.com>
16248
16249         * MdiClient.cs: Fix typo so scrollbars show up correctly.
16250
16251 2005-11-18  Jackson Harper  <jackson@ximian.com>
16252
16253         * MdiClient.cs: Calculate when to add and remove scrollbars
16254         correctly.
16255         * MdiChildContext.cs: Adjust the y position to take the titlebar
16256         into account.
16257         - No height for FormBorderStyle.None
16258
16259 2005-11-18  Jackson Harper  <jackson@ximian.com>
16260
16261         * Control.cs: Allow non enum values to be used for
16262         InternalBorderStyle.  MDI does this to set a special border style.
16263         - New utility methods for converting points to/from client coords
16264         - Add the newly created control to the Controls collection before
16265         updating its style. This way UpdateStyle can walk the control
16266         heirarchy to find the control if needed.
16267         so I don't need to create a new Point object all the time.
16268         * Form.cs: Let MDI windows handle their border styles.
16269         - Set styles on MDI windows so the correct title style is derived.
16270         * MdiChildContext.cs: Move all the painting and window handling
16271         into the non client area.
16272         - Use correct sizing and put correct buttons on frames based on
16273         the FormBorderStyle.
16274         - Notify the mdi client about scrolling
16275         - Need to handle the buttons ourselves now, because they are all
16276         in non client areas and we can't add controls there.
16277         * MdiClient.cs: Halfway to scrolling, this implementation is
16278         somewhat broken though, we need to check to make sure other
16279         windows aren't causing scrolling before removing the bars. Also
16280         the bars need to be drawn on top, maybe I can switch implicit
16281         controls to be on top.
16282         * Hwnd.cs: caption_height and tool_caption_height are now
16283         properties of an hwnd, this way they can be set by the driver
16284         based on the type of window they are.  In X11 the window manager
16285         handles the decorations so caption_height is zero unless its an
16286         MDI window.
16287         - Add 3 pixel borders for MDI windows (0xFFFF).
16288         - Get rid of some code duplication, have DefaultClientRectanle
16289         just call GetClientRectangle.
16290         * XplatUIX11.cs: Pass caption_height and tool_caption_height to
16291         Hwnd now.
16292         - Set border styles differently for mdi windows.
16293         * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
16294         Hwnd now.
16295         
16296 2005-11-15  Mike Kestner  <mkestner@novell.com>
16297
16298         * Menu.cs: when adding an item to the collection, if item is already 
16299         parented, remove it from the parent.
16300
16301 2005-11-13  Alexander Olk  <alex.olk@googlemail.com>
16302
16303         * X11DesktopColors.cs: Added KDE support
16304
16305 2005-11-11  Peter Dennis Bartok  <pbartok@novell.com>
16306
16307         * XplatUIWin32.cs: 
16308           - Clipboard methods now can translate Rtf format
16309           - No longer removes clipboard contents whenever a new format is added
16310             to allow placing multiple formats on the clipboard
16311         * Clipboard.cs: Clipboard now supports getting a IDataObject and
16312           will place all formats contained in it onto the clipboard. Also
16313           now cleans the clipboard before placing a new object onto it
16314         * RichTextBox.cs:
16315           - Implemented set_Rtf
16316           - Implemented set_SelectedRtf
16317           - Created InsertRTFFromStream() method to allow single code base
16318             for all properties and methods that insert RTF into document
16319           - Removed debug output
16320         * TextControl.cs:
16321           - Fixed Delete(int) to fix up line numbers
16322           - Fixed ReplaceSelection to combine start and end line
16323           - Fixed serious DeleteChars bug that would leave the document tree
16324             broken
16325           - Improved DumpTree with several logic checks to detect broken
16326             document trees
16327           - Removed debug lines
16328           - Fixed Caret.WordForward/WordBack moving code, now always also 
16329             updates caret.tag (fixes crash when word-selecting across tag
16330             boundaries via keyboard)
16331           - Added Insert() method for inserting multiline text into documents
16332           - Fixed DeleteChars() calculation errors that would cause a broken
16333             tag chain with multiple tag lines
16334           - DeleteChars() no longer crashes on multi-tag lines if not all tags
16335           - Split() no longer moves caret if split is at caret location
16336           - ReplaceSelection() now updates the cursor and re-displays it
16337           - ReplaceSelection() now uses new Insert() method to avoid code
16338             duplication
16339           - FormatText() can now handle formatting partial lines
16340         * TextBoxBase.cs:
16341           - Append now uses new TextControl.Insert() method (this avoids 
16342             duplicate code)
16343           - Implemented Ctrl-X (Cut) (
16344           - Implemented Ctrl-C (Copy)
16345           - Implemented Ctrl-V (Paste) (Still some bugs related to screen 
16346             regeneration when pasting text; roundtripping Copy&Paste within
16347             edit control still fails due to some calculation bugs in GenerateRTF)
16348           - The Delete key will now remove the current selection if it is visible
16349         * TextBox.cs: Removed debug lines
16350         * XplatUI.cs: Trigger initialization of DataFormats (which requires the
16351           driver to be initialized and can't therefore be done via a static ctor)
16352
16353 2005-11-10  Peter Dennis Bartok  <pbartok@novell.com>
16354
16355         * TextControl.cs: Added backend code for finding char arrays and strings
16356         * TextBoxBase.cs:
16357           - Added mouse wheel scroll support
16358           - Added support for VScroll and HScroll events
16359         * RichTextBox.cs:
16360           - Implemented all seven Find() variants
16361           - Implemented GetCharFromPosition()
16362           - Implemented GetCharIndexFromPosition()
16363           - Implemented GetLineFromIndex()
16364           - Implemented GetPositionFromCharIndex();
16365           - Implemented SaveFile for PlainText and UnicodeText
16366           - Fixed set_Font, now setting a new font applies that font to
16367             the whole document
16368           - Implemented generic Document to RTF converter
16369           - Implemented SaveFile for RichText format (still missing unicode
16370             conversion for non-ansi chars)
16371           - Implemented get_Rtf
16372           - Implemented get_SelectedRtf
16373
16374 2005-11-09  Peter Dennis Bartok  <pbartok@novell.com>
16375
16376         * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
16377           to allow any captures to be released before triggering OnClick. This
16378           way a click handler may capture the mouse without interference.
16379         * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
16380           This way we send them even though X may not allow a grab (if the window
16381           isn't visible, for example)
16382
16383 2005-11-08  Pedro Martinez Julia <pedromj@gmail.com>
16384
16385         * DataGridViewRowEventArgs.cs: DataGridView implementation
16386         * DataGridViewElement.cs: DataGridView implementation
16387         * DataGridViewComboBoxCell.cs: DataGridView implementation
16388         * DataGridViewDataErrorContexts.cs: DataGridView implementation
16389         * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
16390         * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
16391         * ImageLayout.cs: DataGridView implementation
16392         * DataGridViewComboBoxColumn.cs: DataGridView implementation
16393         * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
16394         * DataGridViewSelectionMode.cs: DataGridView implementation
16395         * IDataGridViewEditingControl.cs: DataGridView implementation
16396         * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
16397         * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
16398         * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
16399         * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
16400         * DataGridViewColumnSortMode.cs: DataGridView implementation
16401         * DataGridView.cs: DataGridView implementation
16402         * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
16403         * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
16404         * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
16405         * Padding.cs: DataGridView implementation
16406         * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
16407         * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
16408         * DataGridViewRowEventHandler.cs: DataGridView implementation
16409         * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
16410         * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
16411         * DataGridViewButtonCell.cs: DataGridView implementation
16412         * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
16413         * DataGridViewEditMode.cs: DataGridView implementation
16414         * DataGridViewCellValueEventArgs.cs: DataGridView implementation
16415         * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
16416         * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
16417         * DataGridViewCheckBoxColumn.cs: DataGridView implementation
16418         * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
16419         * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
16420         * DataGridViewCellEventHandler.cs: DataGridView implementation
16421         * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
16422         * DataGridViewCellStyleConverter.cs: DataGridView implementation
16423         * DataGridViewSelectedRowCollection.cs: DataGridView implementation
16424         * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
16425         * DataGridViewColumnEventArgs.cs: DataGridView implementation
16426         * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
16427         * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
16428         * QuestionEventArgs.cs: DataGridView implementation
16429         * IDataGridViewEditingCell.cs: DataGridView implementation
16430         * DataGridViewTriState.cs: DataGridView implementation
16431         * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
16432         * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
16433         * DataGridViewColumnCollection.cs: DataGridView implementation
16434         * DataGridViewCellValueEventHandler.cs: DataGridView implementation
16435         * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
16436         * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
16437         * DataGridViewColumn.cs: DataGridView implementation
16438         * DataGridViewCellBorderStyle.cs: DataGridView implementation
16439         * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
16440         * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
16441         * DataGridViewRow.cs: DataGridView implementation
16442         * DataGridViewImageCellLayout.cs: DataGridView implementation
16443         * DataGridViewImageCell.cs: DataGridView implementation
16444         * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
16445         * DataGridViewCheckBoxCell.cs: DataGridView implementation
16446         * DataGridViewHeaderCell.cs: DataGridView implementation
16447         * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
16448         * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
16449         * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
16450         * DataGridViewTextBoxColumn.cs: DataGridView implementation
16451         * QuestionEventHandler.cs: DataGridView implementation
16452         * DataGridViewCellStyleScopes.cs: DataGridView implementation
16453         * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
16454         * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
16455         * DataGridViewCell.cs: DataGridView implementation
16456         * DataGridViewCellEventArgs.cs: DataGridView implementation
16457         * DataGridViewClipboardCopyMode.cs: DataGridView implementation
16458         * DataGridViewCellStyle.cs: DataGridView implementation
16459         * DataGridViewColumnHeaderCell.cs: DataGridView implementation
16460         * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
16461         * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
16462         * TextFormatFlags.cs: DataGridView implementation
16463         * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
16464         * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
16465         * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
16466         * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
16467         * DataGridViewButtonColumn.cs: DataGridView implementation
16468         * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
16469         * HandledMouseEventArgs.cs: DataGridView implementation
16470         * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
16471         * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
16472         * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
16473         * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
16474         * DataGridViewRowCollection.cs: DataGridView implementation
16475         * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
16476         * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
16477         * DataGridViewHitTestType.cs: DataGridView implementation
16478         * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
16479         * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
16480         * DataGridViewColumnEventHandler.cs: DataGridView implementation
16481         * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
16482         * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
16483         * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
16484         * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
16485         * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
16486         * DataGridViewContentAlignment.cs: DataGridView implementation
16487         * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
16488         * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
16489         * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
16490         * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
16491         * DataGridViewPaintParts.cs: DataGridView implementation
16492         * DataGridViewCellCollection.cs: DataGridView implementation
16493         * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
16494         * DataGridViewImageColumn.cs: DataGridView implementation
16495         * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
16496         * DataGridViewElementStates.cs: DataGridView implementation
16497         * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
16498         * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
16499         * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
16500         * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
16501         * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
16502         * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
16503         * DataGridViewRowHeaderCell.cs: DataGridView implementation
16504         * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
16505         * DataGridViewTextBoxCell.cs: DataGridView implementation
16506         * DataGridViewBand.cs: DataGridView implementation
16507         * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
16508         * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
16509         * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
16510         * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
16511         * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
16512         * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
16513         * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
16514         * DataGridViewSelectedCellCollection.cs: DataGridView implementation
16515         * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
16516         * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
16517         * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
16518
16519 2005-11-08  Peter Dennis Bartok  <pbartok@novell.com>
16520
16521         * ThemeWin32Classic.cs: 
16522           - Draw the outside focus rectangle around buttons
16523           - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
16524             doesn't use end caps for every dash of a line anymore. This
16525             workaround ignores the forecolor.
16526
16527 2005-11-08  Kornél Pál  <kornelpal@hotmail.com>
16528
16529         * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
16530           endian safe.
16531
16532 2005-11-07  Jackson Harper  <jackson@ximian.com>
16533
16534         * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
16535
16536 2005-11-07  Jackson Harper  <jackson@ximian.com>
16537
16538         * ScrollableControl.cs: Calculate the maximum and change vars
16539         (more) correctly so that scrollbars appear as a sensible size.
16540
16541 2005-11-04  Jackson Harper  <jackson@ximian.com>
16542
16543         * TreeNodeCollection.cs: Refresh when nodes are cleared from the
16544         collection.
16545         * TreeView.cs: When the tree is sorted null out the top_node so
16546         that it is recalculated.
16547         - Use dotted lines instead of dashed lines to match MS better.
16548
16549 2005-11-04  Jordi Mas i Hernandez <jordimash@gmail.com>
16550
16551         * ListView.cs: 
16552           - Implements key search for items. Useful when browsing files with FileDialog
16553           - When changing view mode or when clear the items reset scrollbar positions
16554
16555 2005-11-04  Jackson Harper  <jackson@ximian.com>
16556
16557         * CurrencyManager.cs: Implement the MetaDataChanged event, the
16558         Reset method, and the CheckEmpty. CheckEmpty is just a total guess
16559         as to what the method may do as there is no real way of creating a
16560         derived CurrencyManager and calling the method. 
16561
16562 2005-11-03  Jackson Harper  <jackson@ximian.com>
16563
16564         * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
16565         * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
16566         method which seems to just be used internally to refresh the tabs.
16567
16568 2005-11-03  Jackson Harper  <jackson@ximian.com>
16569
16570         * TabControl.cs: Implement the remove method. Fix some broken
16571         comments.
16572
16573 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
16574
16575         * DateTimePicker.cs:
16576           - Added missing DateTimePickerAccessibleObject class
16577           - Added missing events
16578           - Added OnFontChanged method
16579         * Form.cs: Added missing attributes
16580         * TreeView.cs: Added missing attributes
16581
16582 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com> 
16583
16584         * GridItemCollection.cs: Fix signatures
16585
16586 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
16587
16588         * XplatUI.cs: Updated build rev/date
16589         * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs, 
16590           DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
16591         * Application.cs: Trigger context-specific ExitThread events
16592
16593 2005-11-03  Jackson Harper  <jackson@ximian.com>
16594
16595         * Menu.cs:
16596         * MainMenu.cs:
16597         * GridTableStylesCollection.cs:
16598         * Timer.cs:
16599         * TabPage.cs:
16600         * HelpProvider.cs:
16601         * StatusBar.cs:
16602         * MonthCalendar.cs: Signature fixes
16603
16604 2005-11-03  Jackson Harper  <jackson@ximian.com>
16605
16606         * TreeNodeCollection.cs: Remove should not be virtual.
16607         * TreeView.cs: Implement the last of the missing methods.
16608
16609 2005-11-03  Jackson Harper  <jackson@ximian.com>
16610
16611         * TreeNodeConverter.cs: Implement to get off my class-status back.
16612
16613 2005-11-03  Jackson Harper  <jackson@ximian.com>
16614
16615         * TreeView.cs: Hookup the bits for drag and drop.
16616         * TreeNode.cs: Don't cache the tree_view or index anymore, now
16617         that nodes can be moved from tree to tree easily this just causes
16618         all sorts of problems.
16619         * TreeNodeCollection: Don't need to give treenodes an index and
16620         treeview anymore when they are added, these are computed on the
16621         fly. Also make sure to remove a node before its added.
16622
16623 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
16624
16625         * TextControl.cs:
16626           - Added CaretSelection enum
16627           - Added comparison methods to Marker struct, makes selection code
16628             more readable
16629           - Added SelectionStart and SelectionEnd as 'moveable' location for
16630             the CaretDirection enum and handler
16631           - Added selection_prev variable to track optimized invalidation for
16632             word and line selection
16633           - Added SelectionVisible property (returns true if there is a valid 
16634             selection)
16635           - Switched CaretHasFocus to only display the caret if there is no
16636             visible selection
16637           - Avoiding StringBuilder.ToString to retrieve a single char, instead
16638             using the direct character index; should be much faster
16639           - Added various conditional debug statements
16640           - Fixed invalidation calculation for selection ranges
16641           - Added ExpandSelection() method to support word and line selection
16642           - Switched SetSelectionToCaret to use new Marker compare overloads
16643           - Added central IsWordSeparator() method to determine word 
16644             separators/whitespace and FindWordSeparator() to streamline common
16645             usage of IsWordSeparator()
16646         * TextBoxBase.cs:
16647           - Removed unneeded grabbed variable, it was just mirroring
16648             Control.Capture
16649           - No longer firing OnTextChanged event when Text setter is called,
16650             since the base will fire the event for us
16651           - Added handling of Ctrl-Up/Down selection
16652           - Added handling of Shift-Cursorkey selection
16653           - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
16654             words
16655           - Added handling of Shift and Ctrl-Shift-Home/End selection
16656           - Removed some debug output
16657           - Added handling for single/double/tripple-click to place caret/
16658             select word/select line respectively (Fixes bug #76031)
16659           - Added support for drag expansion of word/line selection
16660         * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
16661           current selection
16662
16663 2005-11-02  Jackson Harper  <jackson@ximian.com>
16664
16665         * X11Dnd.cs: If the drag is going to and from a MWF window just
16666         copy the data instead of sending it out through the X Selection
16667         mechanism.
16668
16669 2005-11-02  Jackson Harper  <jackson@ximian.com>
16670
16671         * X11Dnd.cs:
16672         * XplatUIX11.cs: When in a drag we don't want motion notify
16673         messages to get passed on to the other controls. This prevents
16674         mouse move messages from showing up in the drag source.
16675
16676 2005-11-02  Jackson Harper  <jackson@ximian.com>
16677
16678         * X11Dnd.cs: Remove unneeded call to XAllowEvents.  Make sure that
16679         the correct button is release to end a drag.
16680         * XplatUIX11.cs: Make the button state internal so the drag system
16681         can access it.  Dragging needs to know about all button releases,
16682         not just left button.
16683
16684 2005-11-02  Miguel de Icaza  <miguel@novell.com>
16685
16686         * Form.cs (Icon): If the icon is null, reset the icon to the
16687         default value. 
16688
16689         * Cursor.cs: When writing the AND-mask bitmap do not include the
16690         number of colors, but hardcode those to two (black and white),
16691         fixes the loading of color cursors (Paint Dot Net).
16692
16693         * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
16694         turn off autoscaling.
16695
16696         * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
16697
16698 2005-11-02  Jackson Harper  <jackson@ximian.com>
16699
16700         * X11Dnd.cs: Make sure to send a status message if the pointer
16701         enters a control that can not accept a drop, otherwise the cursor
16702         isn't updated correctly. Also tried to compress the lines of code
16703         a bit.
16704
16705 2005-11-02  Jackson Harper  <jackson@ximian.com>
16706
16707         * X11Dnd.cs: Change cursors based on drag action. Also attempt to
16708         set actions correctly.  This isn't perfect as XDND and win32 have
16709         some differences on how you allow actions. I'll clear this up by
16710         adding a path for drag from MWF to MWF windows.
16711         * XplatUIX11.cs: Hook into the dnd system.
16712
16713 2005-11-02  Jordi Mas i Hernandez <jmas@softcatala.org>
16714
16715         * ListView.cs: Fixes scroll bar visibility. Hide them if they were
16716         previously shown but they are no longer need it. Very obvious when 
16717         browsing files with FileDialog.
16718
16719 2005-11-01  Peter Dennis Bartok  <pbartok@novell.com>
16720
16721         * Control.cs: We always need to call OnPaintBackground. We pretty much
16722           ignore AllPaintingInWmPaint and always do the painting there, whether 
16723           it's set or not, since we always ignore the WM_ERASEBKGND message 
16724           (which we don't generate on X11). This fixes #76616.
16725         * Panel.cs: Removed unneeded background painting. This happens properly
16726           in Control.cs already
16727
16728 2005-10-31  Mike Kestner  <mkestner@novell.com>
16729
16730         * Menu.cs: Add items to collection before setting their index.
16731         * MenuItem.cs : add range checking with ArgumentException like MS.
16732         [Fixes #76510]
16733
16734 2005-10-31  Jackson Harper  <jackson@ximian.com>
16735
16736         * ListBox.cs: Invalidate if the area is visible at all not just
16737         contained in the visible rect. Fixes unselection of semi visible
16738         items.
16739
16740 2005-10-31  Jackson Harper  <jackson@ximian.com>
16741
16742         * Control.cs: Consistently name the dnd methods. Make them
16743         internal so we can override them to match some MS behavoir
16744         internally.
16745         * Win32DnD.cs: Use the new consistent names.
16746
16747 2005-10-31  Jackson Harper  <jackson@ximian.com>
16748
16749         * TreeView.cs: Don't draw the selected node when we lose focus.
16750
16751 2005-10-31  Jackson Harper  <jackson@ximian.com>
16752
16753         * X11Dnd.cs: We still need to reset the state even though a full
16754         reset isn't being done, otherwise status's still get sent all over
16755         the place.
16756
16757 2005-10-31  Jackson Harper  <jackson@ximian.com>
16758
16759         * Control.cs: Make the dnd_aware flag internal so the dnd
16760         subsystem can check it. Catch exceptions thrown in dnd handlers to
16761         match MS behavoir.
16762         * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
16763         * X11Dnd.cs: Handle null data in the converters. Set the XDND
16764         version when sending a XdndEnter. Use the control/hwnd dnd_aware
16765         flags to reduce the number of dnd enters/status's sent.
16766
16767 2005-10-31  Jackson Harper  <jackson@ximian.com>
16768
16769         * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
16770
16771 2005-10-31  Jordi Mas i Hernandez <jordi@ximian.com>
16772
16773         * PictureBox.cs: Fixes 76512
16774
16775 2005-10-28  Jackson Harper  <jackson@ximian.com>
16776
16777         * X11Dnd.cs: Early implementation to support winforms being a drag
16778         source for data on X11. Also restructured the converters so they
16779         can go both ways now.
16780         * XplatUIX11.cs: Tie ins to the the Dnd stuff.
16781         
16782 2005-10-27  Peter Dennis Bartok  <pbartok@novell.com>
16783
16784         * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
16785           clipboard requests
16786
16787 2005-10-27  Jackson Harper  <jackson@ximian.com>
16788
16789         * TreeNode.cs: Implement serialization so my DnD examples will work.
16790
16791 2005-10-24  Kornél Pál  <kornelpal@hotmail.com>
16792
16793         * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
16794           TreeView.cs: Don't dispose objects that are not owned.
16795           
16796 2005-10-24  Peter Dennis Bartok  <pbartok@novell.com>
16797
16798         * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
16799           should retrieve the current cursor and report that, but XplatUI
16800           doesn't (yet) have an interface for that (and I'm not sure I even
16801           can, on X11)
16802         * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
16803           until any message loop processing is done (and the WM_SETCURSOR
16804           replaces the cursor to the proper one)
16805         * XplatUIX11.cs: 
16806           - Fixed override behaviour, we can't set the cursor globally on X11, 
16807             just for our windows.
16808           - Invalidating the System.Drawing X11 display handle when we are
16809             shutting down
16810         * Control.cs: Fix to make csc happy
16811
16812 2005-10-23  Peter Dennis Bartok  <pbartok@novell.com>
16813
16814         * TextBoxBase.cs: 
16815           - get_Text: Add last line (without trailing newline) to returned
16816             value (Fixes 76212)
16817           - get_TextLength: Count last line in returned length
16818           - ToString: Call Text property instead of duplicating code
16819
16820 2005-10-23  Kornél Pál  <kornelpal@hotmail.com>
16821
16822         * ImageList.cs: Dispose ImageAttributes objects.
16823
16824 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
16825
16826         * ImageList.cs: Use attribute constructors with less arguments where
16827           possible.
16828
16829 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
16830
16831         * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
16832           Use typeof instead of strings when assembly is referenced. Added
16833           some more comments.
16834
16835 2005-10-21  Jackson Harper  <jackson@ximian.com>
16836
16837         * ListView.cs: Raise a double click event. Also tried to somewhat
16838         fix when the selectedindexchanged event is raised. Its still
16839         broken though.
16840
16841 2005-10-21  Jackson Harper  <jackson@ximian.com>
16842
16843         * TreeView.cs: New method to invalidate the plus minus area of a
16844         node without invalidating the whole node (maybe this can be used
16845         in some more places).
16846         * TreeNodeCollection.cs: When adding to an empty node we need to
16847         invalidate its plus minus area so the little block shows up.
16848         
16849 2005-10-21  Jackson Harper  <jackson@ximian.com>
16850
16851         * TreeView.cs: Make sure that when we invalidate a node the bounds
16852         are big enough to cover the selected box and the focus
16853         rectangle. Use a different colour for the lines connecting nodes
16854         so they show up with all themes.
16855
16856 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
16857
16858         * NativeWindow.cs: Don't call anything that could call into the driver,
16859           we might be on a different thread.
16860
16861 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com> 
16862
16863         * Control.cs(Dispose): Since Dispose might run on a different thread,
16864           make sure that we call methods that could call into the driver via
16865           invoke, to avoid thread issues
16866
16867 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
16868
16869         * XplatUI.cs: Removed finalizer
16870         * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
16871           not allowing to be called on the finalizer thread.
16872
16873 2005-10-21  Kornél Pál  <kornelpal@hotmail.com>
16874
16875         * ImageList.cs:
16876           - Reverted r51889 and r51891.
16877           - Added ImageListItem class that stores unmodified image items and image
16878             properties required to create list images until handle is created.
16879           - Added AddItem and moved image creation logic to AddItemInternal.
16880           - Added CreateHandle method that creates images based on unmodified items.
16881           - Added DestroyHandle that changes state to store unmodified items.
16882           - Add and AddStrip methods no more create handle.
16883           - ReduceColorDepth has no return value.
16884           - Dispose destroys handle.
16885           - Modified other methods to reflect the above changes.
16886           - Implemented key support.
16887           - Added profile 2.0 members and attributes.
16888           - Added private Reset and ShouldSerialize methods that provide the same
16889             behavior as MS.NET but the Visual Studio .NET designer seems to ignore
16890             them as they are private.
16891           - Added some more comments about implementation details.
16892
16893 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
16894
16895         * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
16896
16897 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
16898
16899         * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
16900
16901 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
16902
16903         * DataGridDrawingLogic.cs: Fixes column hit calcultation
16904         * DataGridColumnStyle.cs: Remove debug message
16905
16906 2005-10-20  Jackson Harper  <jackson@ximian.com>
16907
16908         * TreeView.cs: We can always get input keys regardless of whether
16909         or not editing is enabled. They are used for navigation.
16910
16911 2005-10-20  Jackson Harper  <jackson@ximian.com>
16912
16913         * TreeNode.cs: Use the viewport rect for determining if a node
16914         needs to be moved for visibility. Don't use Begin/End edit. This
16915         calls a full refresh when its done.
16916         * TreeView.cs: New SetBottom works correctly.  Make the viewport
16917         rect property internal so the treenodes can see it. When clicking
16918         on a node we need to ensure that its visible because it might just
16919         be partly visible when clicked.
16920
16921 2005-10-20  Jackson Harper  <jackson@ximian.com>
16922
16923         * TreeNodeCollection.cs: Remove debug code.
16924
16925 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
16926
16927         * Datagrid.cs: Implements column sorting in Datagrid
16928         * DataGridColumnStyle.cs: Implements column sorting in Datagrid
16929
16930 2005-10-20  Jackson Harper  <jackson@ximian.com>
16931
16932         * TreeNodeCollection.cs: Remove items properly. Update the correct
16933         area after removing them.
16934
16935 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
16936
16937         * Datagrid.cs: Should not call base.OnPaintBackground
16938
16939 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
16940
16941         * XplatUIX11.cs (GetMessage):
16942           - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
16943             window instead of client window
16944           - Now properly calculates NC_xBUTTONUP message coordinates
16945           - ScreenToMenu now properly calculates it's coordinates of whole 
16946             window, since menus are in the whole window, not in the client
16947             window
16948           - Added WholeToScreen coordinate translation method
16949
16950 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com> 
16951
16952         * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
16953           want to return a message, loop back to the beginning of the function
16954           and grab the next real message to process instead.
16955
16956 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
16957
16958         * Splitter.cs: Properly set limits if no filler control is used
16959
16960 2005-10-19  Jackson Harper  <jackson@ximian.com>
16961
16962         * ColorDialog.cs: Don't show the help button if it is not enabled
16963         instead of disabling it (this is what MS does). Don't create the
16964         panel until the dialog is run, otherwise the vars (such as
16965         ShowHelp) are not set yet.
16966
16967 2005-10-19  Jackson Harper  <jackson@ximian.com>
16968
16969         * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
16970         are reduced when adding nodes.
16971         * TreeNode.cs:
16972         * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
16973         tree.
16974         
16975 2005-10-19  Jackson Harper  <jackson@ximian.com>
16976
16977         * FolderBrowserDialog.cs: End editing our treeview so the window
16978         actually gets refreshed.
16979
16980 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
16981
16982         * Control.cs: Fixed logic flip on when to call OnPaintBackground. 
16983           Obsoleted handling of WM_ERASEBKGND, now always draws our background
16984           inside of WM_PAINT
16985
16986 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
16987
16988         * MenuAPI.cs: Returns after Hidding window
16989         * XplatUIX11.cs: Added TODO found while debugging menu issues
16990
16991 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
16992
16993         * XplatUIX11.cs: Do not re-map the whole window when it's size
16994           becomes non-zero unless it's supposed to be actually visible
16995
16996 2005-10-18  Jackson Harper  <jackson@ximian.com>
16997
16998         * TreeView.cs: We don't need to keep a count anymore.
16999         * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
17000         use the Grow method.
17001
17002 2005-10-18  Jackson Harper  <jackson@ximian.com>
17003
17004         * TreeNodeCollection.cs: Insert is not supported on arrays, so
17005         implement it manually here.
17006
17007 2005-10-18  Jackson Harper  <jackson@ximian.com>
17008
17009         * ImageList.cs: Dont kill the list when the colour depth is
17010         changed, just change the colour depth of all the images.
17011         - Same goes for setting the image size. Just resize them all
17012         instead of killing the list softly.
17013
17014 2005-10-18  Jackson Harper  <jackson@ximian.com>
17015
17016         * Control.cs: Don't invalidate empty rectangles.
17017
17018 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
17019
17020         * ListViewItem.cs:
17021           - Adds checked item to the Checked/Item lists (where empty before)
17022           - Do not add items to the Selected lists if they are already present
17023         * ListView.cs:
17024           - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
17025           - When deleting items make sure that we delete them for the Selected
17026           and Checked list also.
17027
17028 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
17029
17030         * Label.cs: Dispose objects no longer used
17031         * ThemeWin32Classic.cs: Dispose objects no longer used
17032
17033 2005-10-18  Jackson Harper  <jackson@ximian.com>
17034
17035         * TabControl.cs: Don't refresh the whole control when the tabs are
17036         scrolled, we just need to refresh the tab area.
17037
17038 2005-10-17  Jackson Harper  <jackson@ximian.com>
17039
17040         * XplatUIX11.cs: Compress code a little bit. Only calculate the
17041         after handle when we need it.
17042
17043 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
17044
17045         * Control.cs: When the parent size changes, recalculate anchor 
17046           positions. Partial fix for #76462
17047
17048 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
17049
17050         * ThemeWin32Classic.cs: Make sure the picturebox has it's background 
17051           drawn. Fixes #76462
17052
17053 2005-10-17  Jackson Harper  <jackson@ximian.com>
17054
17055         * MonthCalendar.cs: Don't create the numeric up down until our
17056         handle is created. Otherwise our handle is created in the
17057         constructor and we don't know if we are a WS_CHILD or WS_POPUP
17058         yet.
17059
17060 2005-10-17  Jackson Harper  <jackson@ximian.com>
17061
17062         * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
17063         correctly.
17064
17065 2005-10-17  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
17066         * TreeNode.cs : small logical fix (was using local var instead of field)
17067         
17068 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
17069
17070         * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
17071
17072 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
17073
17074         * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
17075
17076 2005-10-16  Peter Dennis Bartok  <pbartok@novell.com> 
17077
17078         * Control.cs: 
17079           - Re-implemented anchoring code. My first version was really broken.
17080             This fixes bug #76033. Unlike the previous implementation we will
17081             no longer have round errors since all numbers are calculated from
17082             scratch every time. Removed various anchor-related obsolete vars.
17083           - InitLayout no longer causes layout event firing and layout to be 
17084             performed
17085
17086 2005-10-16  Jackson Harper  <jackson@ximian.com>
17087
17088         * Hwnd.cs: Compute invalid area correctly (fixes my last commit
17089         which was broken).
17090
17091 2005-10-16  Jackson Harper  <jackson@ximian.com>
17092
17093         * TabControl.cs: Remove debug code.
17094
17095 2005-10-16  Jackson Harper  <jackson@ximian.com>
17096
17097         * XEventQueue.cs: Increase the default queue size (very simple
17098         apps needed to grow the queue).
17099         * Hwnd.cs: No finalizer so we don't need to suppress
17100         finalization. Compute the invalid area manually so a new rectangle
17101         does not newto be created.
17102         * ScrollableControl.cs: Don't set any params (otherwise visibility
17103         isn't set correctly).
17104         * MdiChildContext.cs: New constructor takes the mdi parent so it
17105         doesn't have to be computed and avoids a crash on windows. Draw
17106         the window icon properly, and allow the text to be seen.
17107         * Form.cs: Use new MdiChildContext constructor. Make sure the
17108         child context isn't null in wndproc.
17109         * TabControl.cs: Don't set focus, this is muddling keyboard
17110         behavoir. Expand the tab rows when a window size increase will
17111         allow extra tabs to be seen. Don't allow tabs smaller than the
17112         width of a window to be scrolled out of view.
17113         * TreeNode.cs:
17114         * TreeView.cs: Use measure string to calculate a nodes width, the
17115         width is cached and only updated when the text or the font is
17116         changed. Don't check for expand/collapse clicks on the first level
17117         nodes if root lines are disabled.
17118         
17119 2005-10-16  Ritvik Mayank  <mritvik@novell.com>
17120
17121         * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
17122
17123 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
17124
17125         * DataGridBoolColumn.cs: fixes warning
17126
17127 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
17128
17129         * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
17130         to match more to match more precisely the MS Net behavior
17131
17132 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
17133
17134         * Hwnd.cs: Added field to track if window is mapped
17135         * XplatUIX11.cs: 
17136           - Unmap windows if they become 0-size, re-map when 
17137             they are >0 again; fixes #76035
17138           - Re-set our error handler after initializing X11Desktop
17139             to override any error handlers Gtk or whatever was called
17140             may have set.
17141
17142 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
17143
17144         * CheckedListBox.cs: Removed unused vars
17145         * ListView.cs: Fixed signatures
17146         * RichTextBox.cs: Removed unused vars
17147         * TextBoxBase.cs: Removed unused vars
17148         * XplatUIWin32.cs: Removed unused vars
17149         * XplatUIX11.cs: Removed unused vars
17150         * XplatUI.cs: Updated version and date to latest published
17151
17152 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
17153
17154         * Cursor.cs: Added private .ctor to work around a bug in
17155           resourceset (Thanks to Geoff Norton for the help on this)
17156         * SplitterEventArgs.cs: Made fields accessible so we don't
17157           waste boatloads of objects and can reuse the same one
17158           in Splitter
17159         * XplatUIWin32.cs(DrawReversibleLine): Now also considers
17160           any captions and borders when generating screen coordinates
17161         * Splitter.cs: Reimplemented control, now fully complete, uses
17162           rubberband drawing, supports and obeys all properties, has
17163           proper cursors
17164
17165 2005-10-13  Miguel de Icaza  <miguel@novell.com>
17166
17167         * Form.cs (Form): Setup default values for autoscale and
17168         autoscale_base_size;  Make these instance variables, not static
17169         variables. 
17170
17171         (OnLoad): on the first load, adjust the size of the form.
17172
17173 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
17174
17175         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added 
17176           width argument to DrawReversibleRectangle()
17177         * XplatUIWin32.cs, XplatUIX11.cs: 
17178           - Implemented width for DrawReversibleRectangle()
17179           - Added logic to DrawReversibleRectangle that recognizes a zero
17180             width or height and only draws a line in that situation
17181         
17182 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com> 
17183
17184         * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
17185         * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
17186         * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
17187           method (it uses our FosterParent window to get a graphics context)
17188
17189 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com>
17190
17191         * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground 
17192           and SetWindowBackground methods
17193         * Control.cs:
17194           - Setting proper ControlStyles
17195           - We no longer call XplatUI.SetWindowBackground and XplatUI.
17196             EraseWindowBackground, instead we draw the window background
17197             ourselves in PaintControlBackground. This behaviour is
17198             required to match MS, where, when OnPaintBackground is not
17199             called, the background is not drawn.
17200           - Removed unneeded Refresh() in set_Text
17201         * Hwnd.cs: Dropped the ErasePending support. No longer needed
17202         * XplatUIX11.cs:
17203           - Created DeriveStyles method to translate from CreateParams to
17204             FormBorderStyle and TitleStyle, also handles BorderStyle (which
17205             matches FormBorderStyle enum values)
17206           - Consolidated SetHwndStyles and CalculateWindowRect border/title
17207             style calculations into single DeriveStyles method
17208           - Fixed CreateWindow to (finally) use Gravity. This prevents X11
17209             from redrawing the whole window on any resize or expose.
17210           - Fixed CreateWindow usage of SetWindowValuemask. Before not
17211             all styles were applied to our whole/client window appropriately
17212           - Removed EraseWindowBackground() and SetWindowBackground() methods
17213           - Removed handling of WM_ERASEBKGND message from DefWndProc, we
17214             no longer clear/redraw the background through X
17215           - Removed handling of erase_pending bit, we have no use for it (or
17216             so it seems)
17217         * XplatUIOSX.cs:
17218           - Removed generation and handling of WM_ERASEBKGND message
17219           - Removed EraseWindowBackground() and SetWindowBackground() methods
17220           - Removed handling of hwnd.ErasePending flag
17221         * XplatUIWin32.cs:
17222           - Removed EraseWindowBackground() and SetWindowBackground() methods
17223           - We no longer call EraseWindowBackground on PaintEventStart, we 
17224             ignore the fErase flag, erasing is handled in Control in the
17225             background handler
17226         * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
17227           LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
17228           TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs, 
17229           CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs, 
17230           DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, 
17231           TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
17232           DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
17233
17234 2005-10-12  Jonathan Chambers <jonathan.chambers@ansys.com>
17235
17236         * PropertyGrids.cs: Get sub properties
17237         * PropertyGridView.cs: Fix drawing code
17238
17239 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
17240
17241         * ListBox.cs: Fixes 76383
17242
17243 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
17244
17245         * DataGridTextBoxColumn.cs: Sets location and size before attachment
17246         * ThemeWin32Classic.cs: Fixes border drawing and calculations
17247         * DataGridDrawingLogic.cs: Fixes border drawing and calculations
17248
17249
17250 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
17251
17252         * ComboBox.cs: Fixes border drawing
17253
17254 2005-10-10  Miguel de Icaza  <miguel@novell.com>
17255
17256         * MimeIcon.cs: Ignore errors if the file can not be read.
17257
17258 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
17259
17260         * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
17261          - Fixed border calculations
17262          - Fixed horizontal scrolling in single column listboxes
17263          - Fixed drawing issues
17264
17265 2005-10-10  Peter Dennis Bartok  <pbartok@novell.com>
17266
17267         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to 
17268           FormBorderStyle enum
17269         * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added 
17270           code to determine FormBorderStyles from CreateParams
17271         * Form.cs:
17272           - Fixed bug where we'd set the wrong window styles if we were
17273             not creating an MDI window
17274           - Added call to XplatUI.SetBorderStyle when form borders are set
17275         * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
17276         * Hwnd.cs:
17277           - Removed obsolete edge style
17278           - Switched from BorderStyle to FormBorderStyle
17279         
17280 2005-10-10  Jackson Harper  <jackson@ximian.com>
17281
17282         * Form.cs: Use the property to get the window handle instead of
17283         accessing it directly. Prevents a null reference exception.
17284
17285 2005-10-10  Jackson Harper  <jackson@ximian.com>
17286
17287         * TreeView.cs: Don't adjust the rect given to DrawString now that
17288         our libgdiplus draws correctly.
17289
17290 2005-10-08  Jackson Harper  <jackson@ximian.com>
17291
17292         * TreeView.cs: Don't try to find the clicked on node if there are
17293         no nodes in the tree.
17294
17295 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
17296
17297         * RichTextBox.cs:
17298
17299           restore
17300
17301 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
17302
17303         * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
17304           ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
17305           ErrorProvider.cs:
17306           Use ResPool for brushes and dispose System.Drawing objects that
17307           are not used anymore.
17308
17309 2005-10-07  Jackson Harper  <jackson@ximian.com>
17310
17311         * MdiChildContext.cs: Use the new borders instead of drawing them
17312         ourselves.
17313
17314 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
17315
17316         * Calling UpdateBounds after changing the window's BorderStyle 
17317         since the style can change the ClientSize
17318
17319 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
17320
17321         * Control.cs: Made PaintControlBackground virtual
17322         * Panel.cs: Overriding PaintControlBackground instead of using paint
17323           event; paint event method was interfering with 'real' users of the
17324           event.
17325
17326 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
17327
17328         * ThemeWin32Classic.cs: remove border drawing since it is handled
17329         by the base control class now and was causing double border drawing.
17330
17331 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
17332
17333         * Panel.cs: Redraw our background on paint. Not a pretty solution,
17334           but it does seem to match MS behaviour. This fixes bug #75324
17335
17336 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
17337
17338         * XplatUIX11.cs: A better DrawReversibleRectangle version, however
17339           somewhat hackish looking
17340
17341 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
17342
17343         * TextBoxBase.cs:
17344           - We now accept Enter even if AcceptEnter is false, if the containing
17345             form does not have an AcceptButton configured (fixes bug #76355)
17346           - Calculations are now fixed to no longer use Width/Height, but
17347             ClientSize.Width/Height, since we now support borders (this was
17348             a result of fixing borders and therefore bug #76166)
17349           - We no longer show the horizontal scrollbar if TextBox.WordWrap is 
17350             true (fixes bug #76354)
17351         
17352 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
17353
17354         * Control.cs: 
17355           - Defaulting BorderStyle and setting it in XplatUI when our window 
17356             is created
17357           - Added enum check to InternalBorderStyle setter
17358         * XplatUIX11.cs: 
17359           - Added drawing of window borders
17360           - Now properly calculates WM decorations offset for toplevel 
17361             windows (fixes bug #74763)
17362         * XplatUIWin32.cs: 
17363           - Implemented BorderStyles for windows (we're letting win32 draw 
17364             the border for us)
17365           - Fixed the signature for SetWindowLong
17366         * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
17367           ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for 
17368           setting borders
17369         * UpDownBase.cs: Remove drawing of borders, this is handled by
17370           the driver, outside the client area
17371         * ListView.cs: Removed bogus border calculations. The control should
17372           be oblivious to borders, since those are not part of the client
17373           area. 
17374         * X11DesktopColors.cs: Commented out (currently) unneeded variables
17375         * ThemeWin32Classic.cs: Removed border calculations from ListView 
17376           drawing code
17377
17378 2005-10-06  Jackson Harper  <jackson@ximian.com>
17379
17380         * MdiChildContext.cs: Clear out the old virtual position remove
17381         all the unneeded calls to CreateGraphics.
17382
17383 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
17384
17385         * TextControl.cs: Use proper color for highlighted text; fixes #76350
17386
17387 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
17388
17389         * Form.cs: 
17390           - Added loading and setting of our new default icon
17391           - Only set icon if window is already created
17392
17393 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
17394
17395         * Label.cs:
17396           - Do not explicitly set the foreground and background colors, to
17397             allow inheriting from parents (fixes #76302)
17398           - Use Control's InternalBorderStyle property to deal with borders
17399
17400 2005-10-06  Jackson Harper  <jackson@ximian.com>
17401
17402         * MdiChildContext.cs: Use the new xplatui function to draw a
17403         reversible rect.
17404
17405 2005-10-06  Jackson Harper  <jackson@ximian.com>
17406
17407         * Form.cs: Add the parent before creating the child context cause
17408         we need the parent when setting up the child.
17409
17410 2005-10-06  Jackson Harper  <jackson@ximian.com>
17411
17412         * FolderBrowserDialog.cs: redo the tree population code so a
17413         second thread isn't used. Should be a lot faster and more stable
17414         now.
17415
17416 2005-10-05  Jackson Harper  <jackson@ximian.com>
17417
17418         * TreeView.cs: There are no expand/collapse boxes if the node has
17419         no children.
17420
17421 2005-10-05  Jackson Harper  <jackson@ximian.com>
17422
17423         * X11DesktopColors.cs: Get menu colours for the gtk theme.
17424
17425 2005-10-05  Alexander Olk  <alex.olk@googlemail.com>
17426
17427         * FileDialog.cs: Fix InitialDirectory
17428
17429 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
17430
17431         * ComboBox.cs:
17432                 - Fixes changing between styles
17433                 - Fixes simple mode
17434                 - Fixes last item crashing when navigating with keyboard
17435
17436 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
17437
17438         * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
17439
17440 2005-10-05  Jackson Harper  <jackson@ximian.com>
17441
17442         * TreeView.cs: If updating the root node do a full refresh.
17443         * TreeNode.cs: The root node should be expanded by default. Also
17444         added a utility prop to tell if we are the root node.
17445         * TreeNodeCollection.cs: Only refresh if the node we are being
17446         added to is expanded. Also added a comment on a potential
17447         optimization.
17448         
17449 2005-10-04  Peter Dennis Bartok  <pbartok@novell.com>
17450
17451         * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize() 
17452           in dispose method. Fixes #76330
17453
17454 2005-10-04  Jordi Mas i Hernandez <jordi@ximian.com>
17455
17456         * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
17457
17458                 - Implements vertical and horizontal scrolling using XplatUI
17459                 - Fixes keyboard navagation
17460                 - Fixes EnsureVisible
17461                 - Drawing fixes
17462                 - Handles and draws focus properly
17463
17464
17465 2005-10-04  Kornél Pál  <kornelpal@hotmail.com>
17466
17467         * ImageList.cs: Use upper case initials for internal fields. ImageStream:
17468           Create handle. NET_2_0: Destroy handle when value is null.
17469
17470 2005-10-03  Jackson Harper  <jackson@ximian.com>
17471
17472         * ScrollBar.cs: My last scrollbar patch was broken. This is a
17473         revert and a new patch to prevent the thumb from refreshing so
17474         much.
17475
17476 2005-10-02  Jackson Harper  <jackson@ximian.com>
17477
17478         * ScrollBar.cs: Don't update position if it hasn't actually
17479         changed. This occurs when you hold down the increment/decrement
17480         buttons and the thumb gets to the max/min.
17481
17482 2005-10-01  Jackson Harper  <jackson@ximian.com>
17483
17484         * Form.cs:
17485         * MdiChildContext.cs:
17486         * MdiClient.cs: Implement ActiveMdiChild in Form.
17487
17488 2005-10-01  Jordi Mas i Hernandez <jordi@ximian.com>
17489
17490         * ComboBox.cs: Include ComboBoxEdit flag for the edit item
17491
17492 2005-10-01  Peter Dennis Bartok  <pbartok@novell.com>
17493
17494         * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
17495           be found
17496
17497 2005-09-30  Jackson Harper  <jackson@ximian.com>
17498
17499         * ListBox.cs: Don't do a full refresh unless some data has
17500         actually changed.
17501
17502 2005-09-30  Jackson Harper  <jackson@ximian.com>
17503
17504         * TreeView.cs: Make sure that the checkboxes size is factored in
17505         even when not visible.
17506
17507 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
17508
17509         * FileDialog.cs: Fix Jordi's build break
17510
17511 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
17512
17513         * FileDialog.cs: 
17514                 - Use standard the Windows colours for the combobox as espected
17515                 - Dispose objects that use resouces when no longer need them
17516
17517 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
17518
17519         * X11DesktopColors.cs: Initial incomplete implementation
17520         * XplatUIX11.cs: Added call to initialize X11DesktopColors
17521
17522 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com>
17523
17524         * Theme.cs: 
17525           - Switched Theme color names to match the names defined in 
17526             System.Drawing.KnownColors. Life's hard enough, no need to make 
17527             it harder.
17528           - Added setters to all theme color properties so themes can set
17529             their color schemes. The setters also propagate the color changes
17530             to System.Drawing.KnownColors via reflection
17531         * ControlPaint.cs,  Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
17532           ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
17533           DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
17534           use the new, more logical theme color names
17535         * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
17536           post-NT colors
17537         * ThemeWin32Classic.cs:
17538           - Removed code to set the old classic Windows colors. Instead it
17539             now relies on the colors returned by System.Drawing.KnownColors
17540             which will be either modern static colors (Unix) or colors
17541             read from the user's configuration (Win32)
17542           - Updated to use the new, more logical theme color names
17543           - Switched DataGrid drawing code to use only Theme colors instead of
17544             a mix of System.Drawing.KnownColors and Theme colors
17545           - DrawFrameControl(): Removed code that fills the button area, the
17546             fill would overwrite any previous fill done by a control. This
17547             fixes bug #75338 
17548           - Added DrawReversibleRectangle() stub
17549         * ScrollableControl.cs: Set visible state to false when scrollbars
17550           are removed (pdn fix)
17551         * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added 
17552           DrawReversibleRectangle() method to allow drawing primitive 
17553           'rubber bands'
17554         * XplatUIX11.cs: Implemented DrawReversibleRectangle()
17555
17556 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
17557
17558         * ImageList.cs: Add(Icon): Create handle.
17559
17560 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
17561
17562         * ListView.cs:
17563         * ThemeWin32Classic.cs:
17564                 - Fixes detail mode
17565                 - Sets clippings
17566                 - Issues with drawing
17567
17568 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
17569
17570         * ImageList.cs: Moved RecreateHandle back to ImageList as event
17571           source has to be the ImageList.
17572
17573 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
17574
17575         * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
17576
17577 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
17578
17579         * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
17580
17581 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
17582
17583         * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
17584
17585 2005-09-29  Jonathan Chambers <jonathan.chambers@ansys.com>
17586         * GridItem.cs: Fixed TODOs
17587         * GridItemCollection.cs: Added ICollection interface
17588
17589 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
17590
17591         * ImageList.cs: Resize icons when needed.
17592
17593 2005-09-29  Jordi Mas i Hernandez <jordi@ximian.com>
17594
17595         * ListViewItem.cs
17596                 - Fixes GetBounds and returns on screen rects
17597         * ListView.cs:
17598                 - Fixes vertical and horzintal scrolling of items
17599         * ThemeWin32Classic.cs:
17600                 - Fixes drawing
17601                 
17602 2005-09-29  Raja R Harinath  <harinath@gmail.com>
17603
17604         * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
17605
17606 2005-09-29  Kornél Pál  <kornelpal@hotmail.com>
17607
17608         * ImageList.cs: Added comments about handle creation. Moved Handle,
17609           HandleCreated and OnRecreateHandle implementations to ImageCollection.
17610           Handle is created in Add methods.
17611
17612 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
17613          
17614         * DataGridDrawingLogic.cs: 
17615                 - Takes rows into account on Colum calculations
17616                 - Returns the column when clickig
17617         * DataGrid.cs:
17618                 - Fixes default HitTestInfo values
17619                 - Fixes HitTestInfo.ToString
17620                 - Fixes ResetBackColor          
17621         
17622 2005-09-28  Jackson Harper  <jackson@ximian.com>
17623
17624         * MdiChildContext.cs: Obey rules for fixed sized windows (no
17625         sizing or cursor changes). Also added some temp code to draw the
17626         titlebars text (Makes dev a little easier).
17627
17628 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
17629
17630         * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
17631
17632 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
17633          
17634         * ListBox.cs: Fixes bug 76253
17635
17636 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
17637
17638         * ImageList.cs: Added comments about the current implementation. Added
17639           ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
17640           Format32bppArgb to preserve transparency and can use Graphics.FromImage
17641           while using the specified ColorDepth. ReduceColorDepth uses unsafe code
17642           with Bitmap.LockBits for better performance. Revised the whole file to
17643           match MS.NET behaviour and provide better performance. Non-public
17644           interface members are calling public members even when they throw
17645           NotSupportedException for better maintainability. Moved ColorDepth,
17646           ImageSize, ImageStream and TransparentColor implementations to
17647           ImageCollection for better performance as these properties are not used
17648           by ImageList.
17649         * ImageListStreamer.cs: Added a new internal constructor that takes an
17650           ImageList.ImageCollection and serializes Images based on
17651           ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
17652           match ImageList property name.
17653
17654 2005-09-28  Kazuki Oikawa <kazuki@panicode.com>
17655
17656         * ListBox.cs: Fixes IndexFromPoint for last item
17657
17658 2005-09-27  Jackson Harper  <jackson@ximian.com>
17659
17660         * Form.cs: Set the position of new mdi children correctly.
17661
17662 2005-09-27  Jackson Harper  <jackson@ximian.com>
17663
17664         * MdiClient.cs: New mdi children need to be added to the back of
17665         the controls collection so the zorder is set correctly. Also add a
17666         count of all the child windows that have been created.
17667
17668 2005-09-27  Jackson Harper  <jackson@ximian.com>
17669
17670         * Form.cs (CreateParams): Setup MDI forms correctly.
17671
17672 2005-09-27  Jackson Harper  <jackson@ximian.com>
17673
17674         * MdiChildContext.cs:
17675         * MonthCalendar.cs:
17676         * UpDownBase.cs:
17677         * ListBox.cs:
17678         * ListView.cs:
17679         * TextBoxBase.cs:
17680         * TreeView.cs:
17681         * ScrollableControl.cs:
17682         * ComboBox.cs: Add implicit controls using the new implict control
17683         functionality in ControlCollection. Also try to block multiple
17684         control add in a suspend/resume layout to save some cycles.
17685         
17686 2005-09-27  Jackson Harper  <jackson@ximian.com>
17687
17688         * Control.cs: Add functionality to the controls collection to add
17689         'implicit controls' these are controls that are created by the
17690         containing control but should not be exposed to the user. Such as
17691         scrollbars in the treeview.
17692         * Form.cs: The list var of the ControlsCollection is no longer
17693         available because of the potential of implicit controls getting
17694         ignored by someone accessing the list directly.
17695
17696 2005-09-26  Peter Dennis Bartok  <pbartok@novell.com>
17697
17698         * Control.cs: Fixed SetChildIndex; it no longer causes a child to
17699           loose it's parent. (Fixed bug introduced in r49103 when we added
17700           setting the child parent to null on Remove)
17701
17702 2005-09-26  Gert Driesen  <drieseng@users.sourceforge.net>
17703
17704         * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
17705         * Splitter.cs: Added missing attributes for BorderStyle property.
17706         * TextBoxBase.cs: Marked Calculate* methods internal.
17707         * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
17708         MS.NET.
17709
17710 2005-09-26  Jordi Mas i Hernandez <jordi@ximian.com>
17711          
17712         * ListBox.cs: Fixes navigation to the last item in multicolumn lists
17713
17714 2005-09-25  Jackson Harper  <jackson@ximian.com>
17715
17716         * TreeView.cs: Update the node bounds correctly regardless of
17717         whether the node is visible.
17718
17719 2005-09-25  Jackson Harper  <jackson@ximian.com>
17720
17721         * ImageList.cs: Don't dispose the image after it is added to the
17722         image list. Only reformat images that need to be resized.
17723
17724 2005-09-25  Jackson Harper  <jackson@ximian.com>
17725
17726         * ImageList.cs: Don't set the format when changing the image.
17727
17728 2005-09-25  Jackson Harper  <jackson@ximian.com>
17729
17730         * TreeView.cs: We can't just assume the node has a font. Use the
17731         treeviews font if no node font is available.
17732
17733 2005-09-25  Jackson Harper  <jackson@ximian.com>
17734
17735         * TreeView.cs: Allow the scrollbars to be reset with negative
17736         values.
17737         - Don't add scrollbars to negative sized windows.
17738
17739 2005-09-23  Jackson Harper  <jackson@ximian.com>
17740
17741         * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
17742         old Mono.Posix. Also remove some stray code that shouldn't have
17743         been committed.
17744
17745 2005-09-23  Jackson Harper  <jackson@ximian.com>
17746
17747         * TreeView.cs: Attempt at proper sizing of the horizontal
17748         scrollbar. Also don't resize the scrollbars unless they are
17749         visible.
17750
17751 2005-09-23  Jackson Harper  <jackson@ximian.com>
17752
17753         * TreeView.cs: We don't need to expand the invalid area when the
17754         selection changes, as this is all drawn in the node's bounding
17755         box. The area needs to be expanded (previous typo was contracting
17756         it) when the focus rect moves.
17757
17758 2005-09-23  Jackson Harper  <jackson@ximian.com>
17759
17760         * TreeView.cs: Display the selection box under the correct
17761         circumstances. We were rendering white text with no selection box
17762         before.
17763
17764 2005-09-23  Peter Dennis Bartok  <pbartok@novell.com>
17765
17766         * TextControl.cs(Split): Now updates selection start/end if it points 
17767           into a line that's being split. Fixes a FIXME and bug #75258
17768
17769 2005-09-23  Jackson Harper  <jackson@ximian.com>
17770
17771         * Binding.cs:
17772         * ListControl.cs: Don't use the path when retrieving binding
17773         managers from the binding context. My bat sense tells me that the
17774         path is only used on insertion.
17775
17776 2005-09-22  Jackson Harper  <jackson@ximian.com>
17777
17778         * Splitter.cs: Set the cursor an easier way. (Thanks peter).
17779
17780 2005-09-22  Jackson Harper  <jackson@ximian.com>
17781
17782         * Splitter.cs: There are special cursors used for splitting.
17783         * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
17784
17785 2005-09-22  Jackson Harper  <jackson@ximian.com>
17786
17787         * Splitter.cs: Change the cursor appropriately when the splitter
17788         is moused over, so the user actually knows there is a splitter
17789         there.
17790
17791 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
17792
17793        * Label.cs : Fix ToString method to give same output as MS.NET
17794
17795 2005-09-22  Jackson Harper  <jackson@ximian.com>
17796
17797         * TreeView.cs: Create the scrollbars when the handle is created
17798         and add them right away, just make them invisble. Also account for
17799         the window being shrunk vertically to the point that the vert
17800         scrollbar needs to be added.
17801         - Remove some 0.5 adjustments to get around anti aliasing issues.
17802         
17803 2005-09-22  Jordi Mas i Hernandez <jordi@ximian.com>
17804          
17805         * MainMenu.cs: Fixes default value
17806         * MenuItem.cs: Fixes default value
17807
17808 2005-09-22  Kazuki Oikawa  <kazuki@panicode.com>
17809
17810         * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
17811
17812 2005-09-21  Jackson Harper  <jackson@ximian.com>
17813
17814         * Control.cs: Don't try to set the border style on the window if
17815         it hasn't been created. When the window is created the border
17816         style will be used.
17817
17818 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
17819
17820         * Control.cs (Update): Don't call XplatUI if we don't have a
17821           window handle yet
17822
17823 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
17824
17825         * ContainerControl.cs: Instead of throwing an exception, print
17826           a one-time warning about Validate not being implemented
17827         * XplatUIWin32.cs: Removed debug output
17828
17829 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
17830
17831         * Control.cs: Only set XplatUI background if we expect the windowing
17832           system to handle the background. This stops controls that draw their
17833           own background from flickering
17834
17835         * XplatUIX11.cs: Support custom visuals and colormaps for window 
17836           creation. This allows, amongst other things, using MWF X11 windows 
17837           with OpenGL.
17838
17839 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
17840
17841         * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
17842           CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
17843           GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
17844           SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
17845           TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
17846           IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
17847           KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
17848           RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
17849           ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
17850           ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
17851           GridColumnStylesCollection.cs, 
17852           IDataGridColumnStyleEditingNotificationService.cs,
17853           PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
17854           MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
17855           GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs, 
17856           TreeNodeCollection.cs, AmbientProperties.cs, 
17857           RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
17858           DataObject.cs, ErrorProvider.cs, Splitter.cs,
17859           DataGridLineStyle.cs, Shortcut.cs, Control.cs,
17860           FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
17861           BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
17862           IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
17863           FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
17864           IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
17865           NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
17866           PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
17867           SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
17868           FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
17869           DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
17870           ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
17871           RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
17872           MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
17873           ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
17874           CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
17875           MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
17876           NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
17877           ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
17878           SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
17879           Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
17880           RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
17881           DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
17882           ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
17883           PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
17884           DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
17885           ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
17886           AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
17887           RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
17888           CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
17889           SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
17890           Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
17891           SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
17892           ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
17893           TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
17894
17895 2005-09-21  Jackson Harper  <jackson@ximian.com>
17896
17897         * TreeNode.cs: Call Before/After Expand not Collapse when
17898         expanding.
17899
17900 2005-09-20  Jackson Harper  <jackson@ximian.com>
17901         
17902         * XplatUIX11.cs: Use the more hand looking hand (in most themes).
17903
17904 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
17905          
17906         * ListViewItem.cs:
17907                 - Fixes bug 76120
17908                 - Fixes proper storing of subitems
17909                 - Fixes not updated items
17910
17911 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com>
17912
17913         * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
17914           things if our window handle isn't created yet. Also disabled 
17915           debug for TextBoxBase
17916
17917 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com> 
17918
17919         * MenuAPI.cs: Remove filtering of events to allow menu usage
17920
17921 2005-09-20  Miguel de Icaza  <miguel@novell.com>
17922
17923         * Cursor.cs: Allow null to be passed to Cursor.Current.
17924
17925 2005-09-20  Alexander Olk  <alex.olk@googlemail.com>
17926
17927         * ThemeWin32Classic.cs:
17928           - Change some private methods/fields to protected virtual so that 
17929             they can be accessed and overriden in derived classes
17930           - First refactoring of some methods. Derived themes now don't 
17931             need to duplicate the complete code from ThemeWin32Classic
17932         * ThemeNice.cs:
17933           - Added nice StatusBar
17934           - Derive from ThemeWin32Classic and not Theme
17935           - Removed duplicate ThemeWin32Classic code
17936
17937 2005-09-20  Miguel de Icaza  <miguel@novell.com>
17938
17939         * Control.cs (ControlCollection.Add): If the value null is passed
17940         the control is ignored. 
17941
17942         Optimize this loop.
17943
17944 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com> 
17945
17946         * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
17947           PostQuitMessage state.
17948         * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
17949
17950 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com>
17951
17952         * Application.cs: Our constructor will never get called, move 
17953           initialization to fields; fixes bug #75933
17954
17955 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
17956
17957         * FileDialog.cs :
17958                 - Allow files to be selected properly using file name
17959                 combo box.
17960                 - Add ability to change diretory (absolute / relative)
17961                 using file name combo box.
17962
17963 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
17964          
17965         * ListBox.cs: 
17966                 - Fixes Multicolumn listboxes item wrong calculations
17967                 - Allows to click when only one item is in the listbox
17968                 - Fixes crash when no items using keyboard navigation
17969
17970 2005-09-16  Alexander Olk  <alex.olk@googlemail.com>
17971
17972         * ComboBox.cs: Reverted almost everything from the latest patch which
17973           broke ComboBox
17974
17975 2005-09-16  Kazuki Oikawa <kazuki@panicode.com>
17976         
17977         * ToolTip.cs:
17978                 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
17979         * ComboBox.cs:
17980                 - When DropDownStyle is Simple, it does not show scrollbar 
17981                 to the last item of the list.
17982                 - When DropDownStyle is Simple, it crashed when the list was 
17983                 scrolled down with the down cursor key.
17984                 - Fixed a bug that when DropDownStyle is DropDownList, the 
17985                 selected item was not shown.
17986                 - The position of the selected item was not preserved when 
17987                 the next dropdown happened.
17988         * ThemeWin32Classic.cs:
17989                 - Items were wrapped at the right end.
17990         * CheckedListBox.cs:
17991                 - Fixed Add method
17992         * ListBox.cs:
17993                 - Items should be fully shown.
17994                 - When resizing and vertical scrollbar disappeared, the item 
17995                 of index 0 should be on the top of the list.
17996                 - GetItemRectangle should consider the size of ver. scrollbar
17997         * StatusBar.cs:
17998                 - SizingGrip area should not be allocated when it is not 
17999                 displayed.
18000                 - Now it reflects MinWidth of the containing panel and 
18001                 fixed a crash that happens when its width becomes so small.
18002
18003 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
18004
18005         * CheckedListBox.cs: Fixes bug 76028
18006         * ListBox.cs: Fixes bug 76028
18007
18008 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
18009
18010         * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
18011         * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
18012
18013 2005-09-12  Jordi Mas i Hernandez <jordi@ximian.com>
18014
18015         * XplatUIX11.cs: fixes System.NullReferenceException in some situations
18016
18017 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
18018
18019         * IRootGridEntry.cs: Changed namespace to PropertyGridInternal 
18020
18021 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
18022
18023         * IRootGridEntry.cs: Added
18024         * PropertyGridCommands.cs: Added
18025         * PropertiesTab.cs: Added missing methods and property
18026         * PropertyGridView.cs: Made class internal
18027         * PropertyGridTextBox.cs: Made class internal
18028
18029 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
18030
18031         * MimeIcon.cs: Try to check some other environment variables
18032           if "DESKTOP_SESSION" returns "default"
18033
18034 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
18035
18036         * ThemeNice.cs: Corrected background colors (e.g. menus)
18037         * ColorDialog.cs: Use correct background colors for controls
18038
18039 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
18040
18041         * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
18042
18043 2005-09-08  Peter Dennis Bartok  <pbartok@novell.com>
18044
18045         * RichTextBox.cs: Added initial implementation
18046         * lang.cs: Removed. Was accidentally checked in long time ago
18047         * TODO: Removed. Contents were obsolete
18048
18049 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
18050                                                                                 
18051         * PropertiesTab.cs : Added
18052
18053 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
18054                                                                                 
18055         * PropertyGrid.cs : Update
18056         * PropertyGridView.cs : Update
18057         * System.Windows.Forms.resx : Added images and strings
18058
18059 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com> 
18060
18061         * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
18062  
18063 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com>
18064
18065         * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
18066           a busy loop right after the Ungrab the X11 display is otherwise 
18067           blocked
18068
18069 2005-09-06  Jordi Mas i Hernandez <jordi@ximian.com>
18070
18071         * ThemeWin32Classic.cs: Optimise the use of clipping
18072
18073 2005-09-05  Jordi Mas i Hernandez <jordi@ximian.com>
18074
18075         * DataGrid.cs: fixes recursion bug
18076
18077 2005-09-03  Alexander Olk  <alex.olk@googlemail.com>
18078
18079         * ThemeNice.cs: 
18080           - Draw RadioButton and CheckBox Buttons with DrawButtonBase
18081           - Cleanup
18082
18083 2005-09-02  Alexander Olk  <alex.olk@googlemail.com>
18084
18085         * ThemeNice.cs: Draw nice ProgressBars
18086
18087 2005-09-01  Miguel de Icaza  <miguel@novell.com>
18088
18089         * VScrollBar.cs: Another buglet found by Aaron's tool. 
18090
18091         * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
18092         bug finder.
18093
18094 2005-08-30  Alexander Olk  <alex.olk@googlemail.com>
18095
18096         * ThemeNice.cs:
18097           - Added nicer menu drawing
18098           - Updated DrawTab
18099           - some refactoring
18100
18101 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
18102
18103         * CreateParams.cs (ToString): Made output match MS
18104         * Control.cs (Text): Don't set Text or Focus via XplatUI unless 
18105             handle is already created (to avoid forcing window creation)
18106         * XplatUIX11.cs: Set window text to caption after creating window,
18107           in case Text was set before window was created
18108         * Form.cs: Use this.Text instead of a static string as caption
18109
18110 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
18111
18112         * NotifyIcon.cs: Don't set the window to visible; this screws
18113           up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
18114           OnPaint without a bitmap)
18115         * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't 
18116           happen very often anyway; we could add the check to the WM_PAINT 
18117           event generation code
18118
18119 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
18120
18121         * NotifyIcon.cs: Fill the icon area with a background color, to 
18122           avoid 'residue' when transparent icons are drawn
18123         * XplatUIX11.cs:
18124           - Handle whole_window == client_window when destroying windows
18125           - SystrayAdd(): Set client_window to whole_window value to
18126             get mouse and other events passed to NotifyIcon
18127
18128 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
18129
18130         * Form.cs: Set proper default for Opacity property
18131         * NotifyIcon.cs:
18132           - ShowSystray(): Don't bother creating telling the OS
18133             about the systray item if no icon is provided
18134           - Now handles WM_NCPAINT message to deal with whole/client window
18135             split
18136           - Create window as visible to not get caught by Expose optimization
18137         * Hwnd.cs: Removed debug message
18138         * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
18139           StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched 
18140             PaintEventStart/End to use new client argument
18141         * TextBoxBase.cs:
18142           - Commented out debug messages
18143           - Switched PaintEventStart/End to use new client argument
18144         * XplatUI.cs: Added client window bool to PaintEventStart()/
18145           PaintEventEnd() calls, to support drawing in non-client areas
18146         * XplatUIDriver.cs: 
18147           - Added client window bool to PaintEventStart()/PaintEventEnd() 
18148             calls, to support drawing in non-client areas
18149           - Added conditional compile to allow using MWF BeginInvoke 
18150             on MS runtime
18151         * XplatUIX11.cs:
18152           - Added some conditional debug output
18153           - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
18154             whole/client window split
18155           - Implemented handling of client argument to PaintEventStart()/End()
18156         * Control.cs:
18157           - Throw exception if BeginInvoke() is called and the window handle
18158             or one of the window's parent handles is not created
18159           - Added conditional compile to allow using MWF BeginInvoke on
18160             MS runtime
18161           - get_Parent(): Only sets parent if handle is created. This avoids
18162             forcing window handle creation when parent is set.
18163           - Now fires Layout and Parent changed events in proper order
18164           - Switched to use Handle instead of window.Handle for Z-Order setting,
18165             the get_Parent() patch above causes us to possibly get null for 'window'
18166           - Implemented handling of client argument to PaintEventStart()/End()
18167           - Now reports back to windows that WM_SETCURSOR was handled (to avoid
18168             default handling)
18169           - Now sends a Refresh() to all child windows when Refresh() is called
18170
18171 2005-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
18172
18173         * Form.cs: Added (non-functional) Opacity property
18174         * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
18175
18176 2005-08-29  Alexander Olk  <xenomorph2@onlinehome.de>
18177         * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
18178           use export MONO_THEME=nice to activate it.
18179           Currently supported controls:
18180           - Button
18181           - ComboBox
18182           - ScrollBar
18183           - TabControl (TabAlignment.Top only, other will follow)
18184         * ThemeEngine.cs: Add theme nice
18185         * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
18186           if enabled
18187
18188 2005-08-25  Jonathan Chambers  <jonathan.chambers@ansys.com> 
18189
18190         * Splitter.cs: Resize docked control and its neighbor.
18191
18192 2005-08-24  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
18193         -- Making Windows with Menus layout correctly --
18194         * Form.cs : The first leg of the fix
18195                 Menu setter - adjust Client Size as needed to make space for the menu
18196                 SetClientSizeCore - doesn't call base version to be able to pass the 
18197                         menu handle to XplatUI.CalculateWindowRect
18198         * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
18199         * XplatUIX11.cs: The critical second leg of the fix
18200                 GetWindowPos needs to use a recalculated client_rect
18201                 so that resizing the window doesn't break layout of child controls. 
18202                 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
18203                 Lots of \t\n killed
18204
18205 2005-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
18206
18207         * Label.cs: Now properly recalculates width and height on Font and Text
18208           changes if AutoSize is set
18209
18210 2005-08-19  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
18211         * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
18212
18213 2005-08-19  Jordi Mas i Hernandez <jordi@ximian.com>
18214
18215         * ImageList.cs: Makes ToString method compatible with MS
18216
18217 2005-08-18  Jordi Mas i Hernandez <jordi@ximian.com>
18218
18219         * MenuAPI.cs: fixes bug 75716
18220
18221 2005-08-11 Umadevi S <sumadevi@novell.com>
18222         * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
18223
18224 2005-08-11 Umadevi S <sumadevi@novell.com>
18225         * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
18226
18227 2005-08-10  Umadevi S <sumadevi@novell.com>
18228         * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
18229
18230 2005-08-07  Jordi Mas i Hernandez <jordi@ximian.com>
18231
18232         * Menu.cs: fixes bug 75700
18233         * MenuAPI.cs: fixes navigation issues
18234
18235 2005-08-09  Umadevi S <sumadevi@novell.com>
18236         * CheckedListBox.cs - simple fix for GetItemChecked.
18237
18238 2005-08-08  Jordi Mas i Hernandez <jordi@ximian.com>
18239
18240         * ComboBox.cs: Serveral fixes
18241         * ListBox.cs: Serveral fixes
18242
18243 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
18244
18245         * ComboBox.cs: Fixes FindString methods and GetItemHeight
18246         * ListBox.cs: Fixes FindString methods
18247
18248 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
18249
18250         * DataGrid.cs: fixes bugs exposed by new tests
18251
18252 2005-08-04  Peter Dennis Bartok  <pbartok@novell.com> 
18253
18254         * Mime.cs: Compile Mono assembly references only if compiling
18255           with Mono (Allows to build with VS.Net again)
18256
18257 2005-07-28  Marek Safar  <marek.safar@seznam.cz>
18258
18259         * Control.cs (PaintControlBackground): Draw background image
18260         corrrectly.
18261         (CheckForIllegalCrossThreadCalls): Stubbed.
18262         
18263         * Form.cs (OnCreateControl): Center when should be centered.
18264         
18265         * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
18266
18267 2005-07-19  Jordi Mas i Hernandez <jordi@ximian.com>
18268
18269         * Binding.cs: Binding to properties should be case unsensitive
18270
18271 2005-07-18 vlindos@nucleusys.com
18272
18273         * DataGrid.cs: fixes setmember order
18274
18275 2005-07-07  Alexander Olk  <xenomorph2@onlinehome.de>
18276
18277         * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
18278         * FileDialog.cs: FileDialog is now resizable and uses the new
18279           MimeIconEngine
18280
18281 2005-07-06  Jordi Mas i Hernandez <jordi@ximian.com>
18282
18283         * DataGridTextBoxColumn.cs: default value
18284         * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
18285         * GridTableStylesCollection.cs: fixes checking MappingName
18286         * DataGridDrawingLogic.cs: fixes drawing logic issues
18287         * DataSourceHelper.cs: rewritten to make compatible with more data sources
18288         * DataGrid.cs: fixes    
18289
18290 2005-07-06  Alexander Olk  <xenomorph2@onlinehome.de>
18291
18292         * MimeGenerated.cs: Use case sensitive comparer for
18293           NameValueCollections
18294
18295 2005-07-01  Jordi Mas i Hernandez <jordi@ximian.com>
18296
18297         * DataGridTextBoxColumn.cs: bug fixes, code refactoring 
18298         * ThemeWin32Classic.cs: bug fixes, code refactoring
18299         * DataGridDrawingLogic.cs:  bug fixes, code refactoring
18300         * DataGrid.cs: bug fixes, code refactoring
18301         * DataGridTextBox.cs: bug fixes, code refactoring
18302         * DataGridColumnStyle.cs:  bug fixes, code refactoring
18303         * Theme.cs:  bug fixes, code refactoring
18304
18305 2005-07-01  Peter Bartok  <pbartok@novell.com> 
18306
18307         * TextControl.cs: Quick fix for the reported crash on ColorDialog
18308           and other text box usage
18309
18310 2005-07-01  Jackson Harper  <jackson@ximian.com>
18311
18312         * TabControl.cs: Make sure the bottom of the tab covers the pages
18313         border.
18314
18315 2005-06-30  Peter Bartok  <pbartok@novell.com> 
18316
18317         * Form.cs (ShowDialog): Assign owner of the dialog
18318         * TextBoxBase.cs: Always refresh caret size when deleting, caret
18319           might have been moved to a tag with different height
18320
18321 2005-06-30  Jackson Harper  <jackson@ximian.com>
18322
18323         * Form.cs: Don't create an infinite loop when setting focus
18324         * MenuItem.cs: Don't dirty the parents if we don't have any
18325
18326 2005-06-29  Ben Maurer  <bmaurer@ximian.com>
18327
18328         * LibSupport.cs: Rename
18329
18330 2005-06-29  Peter Bartok  <pbartok@novell.com>
18331
18332         * TextBoxBase.cs: Re-align caret after deleting a character
18333         * TextControl.cs:
18334           - DeleteChars(): Ensure that tag covers the provided position
18335           - StreamLine(): Drop reference for dropped tag
18336
18337 2005-06-29  Peter Bartok  <pbartok@novell.com> 
18338
18339         * TextControl.cs: 
18340           - Selections now work properly, anchoring at the initial location
18341             and properly extending in either direction (SetSelectionToCaret(),
18342             SetSelectionStart() and SetSelectionEnd())
18343           - No longer redraws the whole control on selection change, now
18344             calculates delta between previous and new selection and only
18345             invalidates/redraws that area
18346           - Fixed FindPos() math off-by-one errors
18347           - Changed DeleteChars() to verify the provided tag covers the
18348             provided position, selections may have a tag that doesn't cover
18349             the position if the selection is at a tag border
18350           - Fixed off-by-one errors in DeleteChars()
18351           - Added missing streamlining check in DeleteChars() to remove
18352             zero-length tags
18353           - Implemented Invalidate() method, now properly calculates exposures
18354             between two given lines/positions
18355           - Implemented SetSelection()
18356           - Obsoleted and removed FixupSelection()
18357           - Improved RecalculateDocument() logic, removing code duplication
18358
18359 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
18360
18361         * LibSupport.cs: changes to match different input/output arguments.
18362
18363 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
18364
18365         * LibSupport.cs: added libsupport.so init routine.
18366
18367 2005-06-29  Jordi Mas i Hernandez <jordi@ximian.com>
18368         
18369         * ControlBindingsCollection.cs
18370                 - Throws an exception on null datasource when adding
18371                 - Checks for duplicated bindings when adding
18372
18373 2005-06-28  Jackson Harper  <jackson@ximian.com>
18374
18375         * TreeView.cs (OnKeyDown): Support left and right properly
18376         (navigates as well as expanding and collapsing.
18377         - Add support for Multiply, this expands all the selected nodes
18378         children.
18379         - Fix some tabbing.
18380
18381 2005-06-28  Jackson Harper  <jackson@ximian.com>
18382
18383         * TreeView.cs: Implement keyboard navigation, currently supports,
18384         LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
18385         support for toggling checkboxes with the space bar.
18386
18387 2005-06-28  Jackson Harper  <jackson@ximian.com>
18388
18389         * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
18390         tree.
18391
18392 2005-06-28  Jackson Harper  <jackson@ximian.com>
18393
18394         * TreeView.cs: Add missing event.
18395
18396 2005-06-27  Peter Bartok  <pbartok@novell.com> 
18397
18398         * TextControl.cs:
18399           - Made line ending size configurable (now allows for counting 
18400             lineendings as \n or \r\n)
18401           - Added margin to viewport to keep caret visible on right side
18402           - Fixed translation routines for line/pos to documentpos to consider
18403             cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
18404           - Fixed some line-endings to be unix style
18405           - Fixed Document.FormatText to perform it's calculations 1-based
18406           - Added descriptions for a few methods that might otherwise get 
18407             used wrong
18408           - Added NOTE section with some basic conventions to remember at 
18409             the top of the file
18410           - Major fixup for RichTextBox selection drawing:
18411             * Fixed crashes when multiple tags on a single line were selected
18412             * fixed selection box drawing not overlaying text
18413             * fixed bogus offset calculation for tags not starting at index 1
18414             * Switched behaviour from using multiple Substrings of a 
18415               StringBuilder.ToString() to using multiple 
18416               StringBuilder.ToString(start, length) statements, hoping this is
18417               faster (kept original version commented out in the code, in case
18418               original version was faster)
18419         * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if 
18420           alignment != Left
18421         * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
18422           call it as well
18423
18424 2005-06-27  Jackson Harper  <jackson@ximian.com>
18425
18426         * TabControl.cs: Move to the left and right with the arrow
18427         keys. These keys don't cycle beyond first and last like
18428         tab. Refresh all the tabs when scrolling them to the left or
18429         right.
18430
18431 2005-06-27  Jackson Harper  <jackson@ximian.com>
18432
18433         * TabControl.cs:
18434           - ToString: Added method
18435           - CreateParams: Remove TODO and comment
18436           - OnKeyDown: Cycle through bounds properly.
18437           - SelectedIndex: Scroll to the right or left if we need to
18438           display the newly selected tab.
18439
18440 2005-06-23  Jackson Harper  <jackson@ximian.com>
18441
18442         * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
18443         set.
18444
18445 2005-06-23  Jackson Harper  <jackson@ximian.com>
18446
18447         * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
18448         CTRL-SHIFT-TAB, and HOME, END are there any others?
18449
18450 2005-06-23  Jackson Harper  <jackson@ximian.com>
18451
18452         * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
18453
18454 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
18455         
18456         * DataGridTextBoxColumn.cs: fixes and enhancements
18457         * ThemeWin32Classic.cs: fixes and enhancements
18458         * DataGridBoolColumn.cs:  fixes and enhancements
18459         * DataGridDrawingLogic.cs:  fixes and enhancements
18460         * CurrencyManager.cs: fixes and enhancements
18461         * DataGrid.cs: fixes and enhancements
18462         * DataGridColumnStyle.cs:  fixes and enhancements
18463
18464 2005-06-22  Jackson Harper  <jackson@ximian.com>
18465
18466         * TabControl.cs: Add some missing methods that just call into the
18467         base. Make the TabPageCollection's IList interface behave in the
18468         same manner as the MS implementation.
18469
18470 2005-06-22  Peter Bartok  <pbartok@novell.com> 
18471
18472         * TextControl.cs: Added sanity check
18473         * TextBoxBase.cs: 
18474           - Fixed wrapping behaviour, don't set wrap on single line controls
18475             (this fixes the breakage of colordialog introduced in an earlier
18476              checkin)
18477           - Added rudimentary support for autoscrolling right-aligned controls
18478             (still needs fixing, also, center alignment scroll is missing)
18479
18480 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
18481         
18482         * ScrollBar.cs: Fixes thumbpos on Maximum values
18483
18484 2005-06-21  Jonathan Chambers <jonathan.chambers@ansys.com>
18485         
18486         * PropertyGridView.cs: Pass context information to UITypeEditors 
18487
18488 2005-06-21  Peter Bartok  <pbartok@novell.com> 
18489
18490         * TextBoxBase.cs:
18491           - Now calling PositionCaret with absolute space coordinates
18492           - Enabled vertical scrolling
18493           - Better tracking of scrollbar changes, tied into WidthChange
18494             event
18495           - Improved cursor tracking
18496           - Removed debug output
18497         * TextControl.cs:
18498           - PositionCaret coordinates are now works in absolute space, not 
18499             the canvas
18500           - Improved tracking of document size
18501           - Added events for width and height changes
18502
18503 2005-06-21  Peter Bartok  <pbartok@novell.com>
18504
18505         * Form.cs: Set focus to active control when form is activated
18506         * TextControl.cs: 
18507           - Added word-wrap functionality to RecalculateLine() 
18508           - Added some short function descriptions for VS.Net to aid in
18509             writing dependent controls
18510           - Added Caret property, returning the current coords of the caret
18511           - Added ViewPortWidth and ViewPortHeight properties
18512           - Added Wrap property
18513           - Added CaretMoved event
18514           - Removed some old debug code
18515           - Split() can now create soft splits
18516           - Added PreviousTag()/NextTag() to allow walking "tag-lists"
18517           - Added method to format existing text
18518           - Fixed size/alignment calculations to use viewport
18519           - RecalculateDocument now can handle changing line-numbers while
18520             calculating lines
18521
18522         * TextBox.cs:
18523           - Added some wrap logic, we don't wrap if alignment is not left
18524           - Added casts for scrollbar var, base class switched types to
18525             also support RichTextBoxA
18526           - Implemented handling of scrollbar visibility flags
18527
18528         * TextBoxBase.cs:
18529           - Switched scrollbars type to RichTextBoxScrollBars to support
18530             RichTextBox
18531           - Added tracking of canvas width/height
18532           - Switched scrollbars to be not selectable (to keep focus on text)
18533           - Added central CalculateDocument() method to handle all redraw
18534             requirements
18535           - Added ReadOnly support
18536           - Added WordWrap support
18537           - Fixed handling of Enter key (we now treat it as a DialogKey)
18538           - Fixed caret positioning when h or v scroll is not zero
18539           - Fixed placing/generation of vertical scrollbar
18540           - Added CalculateScrollBars() method to allow updating scrollbar
18541             limits and visibility
18542           - Fixed handling of horizontal scroll
18543           - Added handling of vertical scroll
18544           - Implemented auto-'jump' when caret moves to close to a left or
18545             right border and there is text to be scrolled into view (currently
18546             there's the potential for a stack overflow, until a bug in
18547             scrollbar is fixed)
18548
18549 2005-06-21  Geoff Norton  <gnorton@customerdna.com>
18550         
18551         * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
18552
18553 2005-06-19  Alexander Olk  <xenomorph2@onlinehome.de>
18554
18555         * Mime.cs:
18556         - added inodes.
18557         - return application/x-zerosize for files with size zero
18558           (if no extension pattern matches).
18559         - check matches collection for strings too.
18560         - return only the first mime type if the name value
18561           collection has more than one mime type.
18562
18563 2005-06-18  Jonathan Chambers <jonathan.chambers@ansys.com>
18564         
18565         * PropertyGrid.cs: Cleaned up some TODOs
18566         * PropertyGridView.cs: Added support for UITypeEditors
18567
18568 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
18569         
18570         * DataGrid.cs: clears cached value
18571
18572 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
18573
18574         * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
18575         * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
18576         * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
18577         * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
18578         
18579 2005-06-16  Jordi Mas i Hernandez <jordi@ximian.com>
18580
18581         * ThemeWin32Classic.cs: fixes colour
18582
18583 2005-06-15  Peter Bartok  <pbartok@novell.com>
18584
18585         * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
18586         * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
18587         * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
18588         * Control.cs: Added some MWFCategory and MWFDescription attributes
18589         * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
18590
18591 2005-06-15  Alexander Olk  <xenomorph2@onlinehome.de>
18592
18593         * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
18594         usage
18595
18596 2005-06-14  Jordi Mas i Hernandez <jordi@ximian.com>
18597
18598         * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
18599         * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
18600         * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
18601         * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
18602         * DataGrid.cs: default datagrid settings for Default Styles, fixes
18603         * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
18604
18605 2005-06-13  Jackson Harper  <jackson@ximian.com>
18606
18607         * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
18608         isn't printed when the user enables dropping. (X11 does accept
18609         drops).
18610         
18611 2005-06-13  Jackson Harper  <jackson@ximian.com>
18612
18613         * TreeView.cs: Remove some TODOS.
18614
18615 2005-06-13  Jackson Harper  <jackson@ximian.com>
18616
18617         * Form.cs: Hook into the mdi framework.
18618         * MdiClient.cs: Use the base control collections add method so
18619         parents get setup correctly. Set the default back colour and dock
18620         style.
18621         * MdiChildContext.cs: New class, this bad actor handles an
18622         instance of an MDI window. Right now there is only basic
18623         support. You can drag, close, and resize windows. Minimize and
18624         Maximize are partially implemented.
18625
18626 2005-06-13  Jackson Harper  <jackson@ximian.com>
18627
18628         * XplatUIX11.cs: Mash numbers together properly, otherwise we get
18629         freaky when both vals are negative. NOTE: There are probably other
18630         places in XplatUIX11 that this needs to be done.
18631
18632 2005-06-13  Jordi Mas i Hernandez <jordi@ximian.com>
18633
18634         * DataGrid.cs: implement missing methods, move KeyboardNavigation
18635         * DataGridColumnStyle.cs: fixes signature
18636
18637 2005-06-12  Jackson Harper  <jackson@ximian.com>
18638
18639         * XplatUIX11.cs: Use sizing cursors similar to the ones on
18640         windows.
18641
18642 2005-06-11  Jackson Harper  <jackson@ximian.com>
18643
18644         * StatusBarPanel.cs: Signature cleanups. Implement
18645         BeginInit/EndInit.
18646
18647 2005-06-10  Jordi Mas i Hernandez <jordi@ximian.com>
18648
18649         * DataGridTextBoxColumn.cs: Honors aligment
18650         * GridColumnStylesCollection.cs: Contains is case unsensitive
18651         * GridTableStylesCollection.cs: several fixes
18652         * DataGridTableStyle.cs: default column creation
18653         * DataGridDrawingLogic.cs: fixes
18654         * CurrencyManager.cs: ListName property
18655         * DataGrid.cs: multiple styles support
18656         * DataGridColumnStyle.cs: fixes
18657         
18658
18659 2005-06-10  Peter Bartok  <pbartok@novell.com>
18660
18661         * Control.cs(Select): Moved SetFocus call to avoid potential
18662           loops if controls change the active control when getting focus
18663         * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
18664           the up/down buttons
18665
18666 2005-06-10  Matthias Felgner  <matthiasf@voelcker.ocm>
18667
18668         * ImageListConverter.cs: Implemented
18669
18670 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
18671
18672         * MonthCalendar.cs: Wired in NumericUpDown control for year
18673
18674 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
18675
18676         * MonthCalendar.cs: Removed MonoTodo attributes on Click and
18677           DoubleClick events, since they are not meant to be fired.
18678
18679 2005-06-09  Peter Bartok  <pbartok@novell.com>
18680
18681         * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
18682           Jonathan's standalone controls into MWF, implemented missing
18683           events, attributes and methods; added xxxAccessible classes
18684         * AccessibleObject.cs: Made fields internal so other classes
18685           can change them if needed
18686
18687 2005-06-09  Jonathan Gilbert  <2a5gjx302@sneakemail.com>
18688
18689         * UpDownBase.cs: Complete implementation
18690         * NumericUpDown.cs: Complete implementation
18691         * DomainUpDown.cs: Complete implementation
18692
18693 2005-06-09  Jordi Mas i Hernandez <jordi@ximian.com>
18694
18695         * DataGridTextBoxColumn.cs: drawing fixes
18696         * DataGridCell.cs: fixes ToString method to match MSNet
18697         * DataGridTableStyle.cs: fixes
18698         * DataGridBoolColumn.cs: fixes, drawing
18699         * DataGridDrawingLogic.cs: fixes, new methods
18700         * DataGridTextBox.cs: Keyboard and fixes
18701         * DataGrid.cs:
18702                 - Keyboard navigation
18703                 - Scrolling fixes
18704                 - Row selection (single, multiple, deletion, etc)
18705                 - Lots of fixes
18706         
18707 2005-06-07  Jackson Harper  <jackson@ximian.com>
18708
18709         * ThemeWin32Classic.cs: Clear the background area when drawing
18710         buttons.
18711
18712 2005-06-06  Peter Bartok  <pbartok@novell.com>
18713
18714         * ImageListStreamer.cs: Fixed signature for GetData
18715         * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
18716         * ComboBox.cs:
18717           - Added missing ChildAccessibleObject class
18718           - Added missing OnXXXFocus overrides, switched to using those
18719             instead of the event handler
18720         * Control.cs:
18721           - Added Parent property for ControlAccessibleObject
18722           - Fixed signatures
18723           - Fixed attributes
18724           - Added ResetBindings()
18725         * ListBindingConverter.cs: Implemented some methods
18726         * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
18727         * ImageList.cs: Implemented basic handle scheme, removed TODOs
18728         * ContainerControl.cs: Fixed signature, now subscribing to the
18729           ControlRemoved event instead of overriding the handler, LAMESPEC
18730         * CurrencyManager.cs: Added missing attribute
18731         * MonthCalendar.cs: Added missing properties
18732
18733 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
18734
18735         * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
18736         
18737 2005-06-06  Gaurav Vaish and Ankit Jain
18738
18739         * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
18740         * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
18741         
18742 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
18743
18744         * Control.cs: fixes CreateParams Width / Height.
18745
18746 2005-06-05  Peter Bartok  <pbartok@novell.com>
18747
18748         * Win32DnD.cs: Removed compilation warnings
18749
18750 2005-06-05  Peter Bartok  <pbartok@novell.com>
18751
18752         * Control.cs (CreateParams): Since we don't know if one of the
18753           properties we use is overridden, lets make sure if we fail accessing
18754           we continue with a backup plan
18755
18756 2005-06-05  Peter Bartok  <pbartok@novell.com>
18757
18758         * Win32DnD.cs:
18759           - Removed debug output
18760           - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
18761             struct
18762           - Plugged resource leak
18763         * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
18764           MS size
18765
18766 2005-06-05  Peter Bartok  <pbartok@novell.com>
18767
18768         * XplatUIWin32.cs: Removed DnD code
18769         * Win32DnD.cs: Implemented drop source and drop target functionality
18770
18771 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
18772
18773         * UpDownBase.cs: remove duplicate addition of event, enable some code
18774         that was commented out.
18775         * NumericUpDown.cs: added missing attributes and Hexadecimal property.
18776         Validate input when a key is pressed. It works fine now for every
18777         combination of Hexadecimal. Only missing some drawing love when sharing
18778         space with other controls.
18779
18780 2005-06-04  Peter Bartok  <pbartok@novell.com>
18781
18782         * Control.cs:
18783           - We need to pass a window for DragDrop, so enable callback events
18784           - Added DnD callback events when being a DragSource
18785         * XplatUI.cs (StartDrag): Added window handle argument
18786         * XplatUIDriver.cs (StartDrag): Added window handle argument
18787         * QueryContinueDragEventArgs: Made fields internally accessible so
18788           drivers can set them
18789         * GiveFeedbackEventArgs: Made fields internally accessible so drivers
18790           can set them
18791
18792 2005-06-03  Jordi Mas i Hernandez <jordi@ximian.com>
18793
18794         * DataGridTextBoxColumn.cs: column text editing
18795         * DataGridTableStyle.cs: Respect columns styles created by the user
18796         * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
18797         * DataGridBoolColumn.cs: bool column editing
18798         * DataGrid.cs: fixes to scrolling, properties, etc
18799         * DataGridTextBox.cs: handle keyboard
18800         * DataGridColumnStyle.cs: fixes
18801
18802 2005-06-02  Jackson Harper  <jackson@ximian.com>
18803
18804         * ImageListStreamer.cs: Somewhat broken implementation of
18805         GetObjectData. The RLE needs some work to match MS properly.
18806
18807 2005-06-02  Jackson Harper  <jackson@ximian.com>
18808
18809         * X11Dnd.cs: Attempting to keep at least one file in MWF
18810         monostyled.
18811
18812 2005-06-02  Peter Bartok  <pbartok@novell.com>
18813
18814         * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
18815           that way
18816
18817 2005-06-02  Peter Bartok  <pbartok@novell.com>
18818
18819         * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
18820         * XplatUI.cs: Added DoDragDrop() method
18821         * XplatUIDriver.cs: Added DoDragDrop() method
18822
18823 2005-06-02  Jackson Harper  <jackson@ximian.com>
18824
18825         * Splitter.cs: Implement BorderStyle.
18826
18827 2005-06-02  Jackson Harper  <jackson@ximian.com>
18828
18829         * XplatUIX11.cs: Tie into the X11Dnd subsystem.
18830         * X11Dnd.cs: New file. A subsystem that handles drag and drop on
18831         X11 using XDND.
18832
18833 2005-06-02  Peter Bartok  <pbartok@novell.com>
18834
18835         * DataObject.cs:
18836           - Added Data setter
18837           - Fixed broken insertion code for SetData, now also
18838             overwrites any existing entry of the same format name
18839         * Hwnd.cs: Added list of pointers that automatically gets
18840           freed when the window is disposed
18841         * XplatUI.cs: Call driver initialization method when loading
18842           a driver
18843         * Control.cs:
18844           - OnDragLeave takes EventArgs, not DragEventArgs
18845           - Added setting of WS_EX_ACCEPTFILES style when dropping is
18846             supported
18847           - Forces style update when drop state changes
18848         * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
18849           not perfect since we cannot (yet) call the IDataObject.GetData()
18850           method, we keep getting 0x80004005 error, dunno why)
18851
18852 2005-06-02  Peter Bartok  <pbartok@novell.com>
18853
18854         * DragEventArgs.cs: Make fields internal so we can cache the
18855           object and re-set the fields from XplatUI
18856
18857 2005-06-02  Jackson Harper  <jackson@ximian.com>
18858
18859         * Control.cs: Add some internal methods so the DnD subsystem can
18860         raise DnD events. Also call into the driver when AllowDrop is set.
18861         * XplatUI.cs:
18862         * XplatUIDriver.cs: New method for setting whether or not a window
18863         is allowed to accept drag and drop messages.
18864                 
18865 2005-06-01  Jordi Mas i Hernandez <jordi@ximian.com>
18866         
18867         * ScrollBar.cs: Make sure that values sent in Scroll events
18868         are always between Maximum and Minimum.
18869
18870 2005-06-01  Marek Safar  <marek.safar@seznam.cz>
18871
18872         * Menu.cs: Call MenuChanged when menuitem visibility has been
18873         changed.
18874         * MenuItem.cs: Rebuild menu when item is (not) visible.
18875         * MainMenu.cs: MainMenu has special MenuChanged.
18876         * Theme.cs: Caption and FrameBorderSize are not fixed.
18877         * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
18878         * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
18879         * XplatUIX11.cs,
18880         * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
18881         * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
18882
18883 2005-05-30  Jackson Harper  <jackson@ximian.com>
18884
18885         * DataFormat.cs: We can't statically initialize this stuff because
18886         it calls into the xplatui and could create a loop. So we lazy init
18887         it.
18888
18889 2005-05-28  Jackson Harper  <jackson@ximian.com>
18890
18891         * Control.cs: Proper implementation of Product(Name/Version).
18892
18893 2005-05-27  Jackson Harper  <jackson@ximian.com>
18894
18895         * DataObject.cs: Dont crash if no data is found.
18896
18897 2005-05-26  Rafael Teixeira  <rafaelteixeirabr@hotmail.com>
18898         * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
18899                 as per status page, guessing it should be set to true
18900
18901 2005-05-26  Jordi Mas i Hernandez <jordi@ximian.com>
18902
18903         * DataGridTextBoxColumn.cs: Draws text and basic text formatting
18904         * DataGridTableStyle.cs: set proper formatting text, def header text
18905         * ThemeWin32Classic.cs: new themable paramaters
18906         * DataGridBoolColumn.cs: paint check box, get data, fixes
18907         * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
18908         * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
18909         * DataGridColumnStyle.cs: fixes
18910         * Theme.cs: new themable paramaters
18911                 
18912 2005-05-26  Peter Bartok  <pbartok@novell.com>
18913
18914         * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
18915
18916 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
18917         * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
18918
18919 2005-05-24  Peter Bartok  <pbartok@novell.com>
18920
18921         * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
18922           Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
18923           Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
18924           FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
18925           NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
18926           ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
18927           DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
18928           AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
18929           DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
18930           StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
18931           missing attributes, etc
18932         * DataGridPreferredColumnWidthTypeConverter.cs: Added
18933
18934 2005-05-24  Peter Bartok  <pbartok@novell.com>
18935
18936         * Help.cs: Added, implemented trivial functions, throws up MessageBox
18937           when user tries to get help
18938         * DataObject.cs, DataFormats.cs, LinkArea.cs,
18939           SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
18940           to suppress warnings
18941         * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
18942           avoid unreachable code warning
18943
18944 2005-05-20  Peter Bartok  <pbartok@novell.com>
18945
18946         * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
18947
18948 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
18949
18950         * DataGridTextBoxColumn.cs: Basic painting methods
18951         * DataGridTableStyle.cs: Set table style in the column
18952         * ThemeWin32Classic.cs: Use Theme for colors
18953         * DataGridDrawingLogic.cs: Implement more drawing
18954         * DataGrid.cs: drawing, theming, enhacements, fixes
18955         * DataGridColumnStyle.cs: fixes, drawing
18956         * Theme.cs: theming for Datagrid
18957
18958 2005-05-20  Peter Bartok  <pbartok@novell.com>
18959
18960         * Cursor.cs: Implemented GetObjectData() method
18961
18962 2005-05-20  Peter Bartok  <pbartok@novell.com>
18963
18964         * Cursors.cs: Added setting of cursor name
18965         * Cursor.cs:
18966           - Implemented constructors
18967           - Implemented Draw and DrawStretched
18968           - Implemented Current property
18969           - Implemented == and != operators
18970           - Implemented Dispose()
18971           - Implemented ToString
18972           - Added missing attributes
18973         * XplatUIX11.cs:
18974           - Added missing reset for OverrideCursor when DoEvents is called
18975           - Fixed creation of cursor, logic was wrong
18976         * XplatUIWin32.cs:
18977           - Added missing reset for OverrideCursor when DoEvents is called
18978           - Fixed creation of cursor, bit arrays were swapped
18979         * Clipboard.cs: Removed obsolete MonoTODO attribute
18980
18981 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
18982
18983         * ComboBox.cs: fixes OnSelectedItemChanged
18984         * ControlBindingsCollection.cs: fixes item range check
18985
18986 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
18987
18988         * UpDownBase.cs:
18989                 - Calc preferred height properly
18990                 - Implement missing properties
18991                 
18992         * NumericUpDown.cs: Implement missing events
18993
18994 2005-05-19  Jackson Harper  <jackson@ximian.com>
18995
18996         * TabControl.cs: New method that resizes the tab pages before
18997         redrawing them. This as needed as the control is double buffered
18998         and sizing will not be recalculated unless ResizeTabPages is
18999         called.
19000         * TabPage.cs: Set base.Text instead of Text in the constructor so
19001         that UpdateOwner does not get called. Use the new Redraw method of
19002         TabControl instead of Refresh so the sizing is recalculated.
19003         * ThemeWin32Classic.cs: Draw the text for button tabs.
19004
19005 2005-05-19  Jackson Harper  <jackson@ximian.com>
19006
19007         * Control.cs: Paint control background images. Fix typo where
19008         PaintControlBackground was not getting called correctly.
19009
19010 2005-05-19  Peter Bartok  <pbartok@novell.com>
19011
19012         * ScrollableControl.cs (DisplayRectangle): Undid my last change until
19013           I can investigate, apparently I broke FileDialog
19014
19015 2005-05-19  Marek Safar  <marek.safar@seznam.cz>
19016
19017         * AxHost.cs: Some simple properties.
19018         * Control.cs: window must be accessible after ctor.
19019         * Form.cs: Added TransparencyKey property.
19020         * TextBoxBase.cs: Implemented Clear. Text property can be null.
19021         * XplatUIWin32.cs: SetBorderStyle implemented.
19022
19023 2005-05-18  Peter Bartok  <pbartok@novell.com>
19024
19025         * DataObject.cs: Entries are not global but particular to the
19026           DataObject, now it behaves that way
19027         * XplatUIWin32.cs: Implemented Clipboard methods
19028         * Clipboard.cs: Implemented
19029         * ScrollableControl.cs (DisplayRectangle): Fixed calculation
19030         * XplatUIOSX.cs: Updated to final clipboard prototypes
19031         * XplatUIX11.cs: Implemented Clipboard methods
19032         * XplatUIDriver.cs: Updated to final clipboard prototypes
19033         * XplatUIStructs.cs:
19034           - Added BITMAPINFOHEADER struct
19035           - Added ClipboardFormats enum
19036         * X11Structs.cs:
19037           - Added ClipboardStruct
19038           - Added Atom enum items for clipboard types
19039           - Fixed atom types for Selection event structures
19040         * DataFormats.cs:
19041           - Added internal properties and methods for drivers to enumerate
19042             all known formats
19043           - Switched initialization method to allow drivers to assign their
19044             own IDs even for the MS predefined clipboard IDs
19045         * XplatUI.cs: Updated to final clipboard interface
19046
19047 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
19048         * PropertyGridView.cs: Fixed compiler warnings.
19049
19050 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
19051         * PropertyGrid.cs: Added some event calls
19052         * PropertyGridView.cs: Change drawing code to use double buffering
19053         * PropertyGridTextBox.cs: Changed Text property name
19054         * GridItem.cs: Added Bounds property.
19055         * GridEntry.cs: Added Bounds property.
19056
19057 2005-05-17  Lluis Sanchez Gual  <lluis@novell.com>
19058
19059         * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
19060         since GetType() may not return the correct type if the object is
19061         a remoting proxy.
19062
19063 2005-05-17  Jordi Mas i Hernandez <jordi@ximian.com>
19064
19065         * TreeNodeCollection.cs: fixes get/set item ranges
19066         
19067 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
19068
19069         * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
19070                 
19071 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
19072
19073         * ComboBox.cs: Fix item range comparation
19074         * ListView.cs: Fix item range comparation
19075
19076 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
19077
19078         * FontDialog.cs:
19079           - Clear example panel when OnPaint is called
19080           - Better solution for displaying the example panel text
19081           - Select default indexes in the ListBoxes
19082
19083 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
19084
19085         * XplatUIOSX.cs: Avoid painting into invisible views.  Fixes #74926
19086
19087 2005-05-11  Peter Bartok  <pbartok@novell.com>
19088
19089         * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
19090         * SelectionRangeConverter.cs: Implemented
19091         * PropertyGrid.cs: Fixed attribute value
19092         * Control.cs:
19093           - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
19094           - Added Sebastien Pouliot's CAS Stack Propagation fixes
19095         * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
19096           that's common to all drivers. First methods to go there are
19097           Sebastien Pouliot's CAS Stack Propagation helper methods
19098         * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
19099           Sebastien Pouliot for CAS Stack Propagation
19100
19101 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
19102
19103         * OSXStructs.cs:
19104           XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
19105
19106 2005-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
19107
19108         * DataGridTextBoxColumn.cs: fixed some members
19109         * GridColumnStylesCollection.cs: indexed column is case insensitive
19110         * DataGridTableStyle.cs: fixes
19111         * ThemeWin32Classic.cs: add new theme parameter
19112         * Theme.cs: add new theme parameter
19113         * DataGridDrawingLogic.cs: Datagrid's drawing logic
19114         * DataGrid.cs: fixes, new internal properties, etc.
19115         * DataGridColumnStyle.cs: allows to set grid value
19116         *
19117
19118 2005-05-10  Peter Bartok  <pbartok@novell.com>
19119
19120         * AccessibleObject.cs:
19121           - Removed MonoTODO attribute on help, method is correct
19122           - Fixed Bounds property
19123         * AxHost.cs: Moved MonoTODO
19124         * ButtonBase.cs: Now setting AccessibleObject properties
19125         * RadioButton.cs: Setting proper AccessibleObject role
19126         * CheckBox.cs: Setting proper AccessibleObject role
19127         * ControlBindingsCollection.cs: Added properties, methods and attributes
19128         * DataFormats.cs: Fixed awkward internal API, and changed to enable
19129           userdefined DataFormats.Format items as well
19130         * ListControl.cs: Removed data_member from the public eye
19131         * OpenFileDialog.cs:
19132           - Made class sealed
19133           - Added missing attributes
19134         * SaveFileDialog.cs: Added missing attributes
19135         * ImageListStreamer.cs: Fixed code that caused warnings
19136         * LinkLabel.cs: Removed unreachable code
19137         * TreeView.cs: Fixed code that caused warnings
19138         * PropertyGridView.cs: Fixed code that caused warnings
19139         * GridColumnStylesCollection.cs: Added missing attributes
19140         * GridTableStylesCollection: Added missing attribute
19141         * PropertyManager: Added .ctor
19142         * SecurityIDType: Added
19143         * DataObject.cs: Implemented class
19144         * LinkArea.cs: Added missing attribute
19145
19146 2005-05-11  Jordi Mas i Hernandez <jordi@ximian.com>
19147
19148         * RadioButton.cs: call base method to allow to fire OnClick event
19149         * UpDownBase.cs: OnMouseUp call base method
19150         * CheckedListBox.cs: call base method before returning
19151         * TrackBar.cs: call base method before returning
19152         
19153
19154 2005-05-10  Peter Bartok  <pbartok@novell.com>
19155
19156         * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
19157           for messages
19158
19159 2005-05-10  Peter Bartok  <pbartok@novell.com>
19160
19161         * DataFormats.cs: Implemented
19162         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
19163           XplatUIX11.cs: Added Clipboard APIs
19164         * XplatUIWin32.cs: Implemented Clipboard APIs
19165         * FolderBrowserDialog.cs: Added missing event, attributes
19166
19167 2005-05-10  Jordi Mas i Hernandez <jordi@ximian.com>
19168
19169         * CheckBox.cs: call base method to allow to fire OnClick event
19170
19171 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
19172
19173         * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
19174
19175 2005-05-06  Peter Bartok  <pbartok@novell.com>
19176
19177         * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
19178         * Screen.cs: Implemented
19179         * HelpNavigator.cs: Added
19180         * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
19181           property
19182         * HelpProvider.cs: Implemented all we can do until we have a CHM
19183           help library (which means that "What's This" does work now)
19184
19185 2005-05-06  Jackson Harper  <jackson@ximian.com>
19186
19187         * XplatUIX11.cs: Fix waking up the main loop.
19188                 
19189 2005-05-05  Peter Bartok  <pbartok@novell.com>
19190
19191         * XplatUI.cs: Updated revision
19192         * Form.cs: Removed enless loop
19193         * GroupBox.cs (OnPaint): Added call to base.OnPaint()
19194         * Label.cs (OnPaint): Added call to base.OnPaint()
19195         * ToolTip.cs: Made ToolTipWindow reusable for other controls
19196         * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
19197         * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
19198         * AxHost.cs: Added
19199         * ButtonBase.cs: Moved base.OnPaint() call to end of method
19200         * ThemeWin32Classic.cs: Replaced references to ToolTip with references
19201           to ToolTip.ToolTipWindow for drawing and size methods; this allows
19202           reuse of ToolTipWindow by other controls
19203         * SizeGrip.cs: Moved base.OnPaint() call to end of method
19204         * XplatUIX11.cs: Now clipping drawing area (experimental)
19205         * PictureBox.cs: Moved base.OnPaint() call to end of method
19206         * Theme.cs: Fixed ToolTip abstracts to match new format
19207         * ErrorProvider.cs: Implemented
19208
19209 2005-05-05  Jordi Mas i Hernandez <jordi@ximian.com>
19210
19211         * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
19212         * LinkLabel.cs:
19213                 - Adds cursors
19214                 - Handles focus
19215                 - Implements LinkBehavior
19216                 - Fixes many issues
19217
19218 2005-05-03  Jackson Harper  <jackson@ximian.com>
19219
19220         * ListView.cs: Calculate the scrollbar positioning on resize and
19221         paint, so they get put in the correct place.
19222
19223 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
19224
19225         * ColorDialogs.cs: The small color panels are now handled by
19226           SmallColorControl. This fixes drawing of the focus rectangle
19227           and adds a 3D border.
19228
19229 2005-05-03  Peter Bartok  <pbartok@novell.com>
19230
19231         * Control.cs: Modified version of Jonathan Chamber's fix for
19232           double-buffering
19233
19234 2005-05-03  Jackson Harper  <jackson@ximian.com>
19235
19236         * ListView.cs: Remove redraw variable. Control now handles whether
19237         or not a redraw needs to be done, and will only raise the paint
19238         event if redrawing is needed.
19239
19240 2005-05-03  Jackson Harper  <jackson@ximian.com>
19241
19242         * Splitter.cs: No decorations for the splitter form. Cache the
19243         hatch brush.
19244
19245 2005-05-03  Jackson Harper  <jackson@ximian.com>
19246
19247         * TreeView.cs: Use dashed lines to connect nodes. Use the
19248         ControlPaint method for drawing the focus rect instead of doing
19249         that in treeview.
19250
19251 2005-05-02  Peter Bartok  <pbartok@novell.com>
19252
19253         * LinkLabel.cs: Fixed the fixes from r43566 and 43521
19254
19255 2005-04-29  Jackson Harper  <jackson@ximian.com>
19256
19257         * ThemeWin32Classic.cs: Don't clear the GC that will clear the
19258         entire image buffer. Just clear the clipping rectangle.
19259
19260 2005-04-29  Jackson Harper  <jackson@ximian.com>
19261
19262         * ThemeWin32Classic.cs: Don't draw list view items that are
19263         outside the clipping rectangle.
19264
19265 2005-04-29  Jordi Mas i Hernandez <jordi@ximian.com>
19266
19267         * ListBox.cs: added horizontal item scroll
19268
19269 2005-04-29  Jackson Harper  <jackson@ximian.com>
19270
19271         * ThemeWin32Classic.cs: Remove some old debug code that was
19272         causing flicker with the new double buffering code.
19273
19274 2005-04-29  John BouAntoun  <jba-mono@optusnet.com.au>
19275
19276         * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
19277         behave like combobox and comboboxlist (still not sure if this is
19278         correct though).
19279
19280 2005-04-28  Jackson Harper  <jackson@ximian.com>
19281
19282         * ThemeWin32Classic.cs: Don't fill the middle of progress
19283         bars. This fills areas outside of the clip bounds that don't need
19284         to be filled.
19285
19286 2005-04-28  Jackson Harper  <jackson@ximian.com>
19287
19288         * Control.cs: Don't expose functionality to touch the image buffers.
19289         * ProgressBar.cs:
19290         * ListView.cs: We do not need to (and no longer can) manipulate
19291         the image buffers directly. All of this is handled by Control.
19292
19293 2005-04-28  Peter Bartok  <pbartok@novell.com>
19294
19295         * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
19296           RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
19297           RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
19298
19299 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
19300
19301         * Combobox:
19302                 - Adjust control's height for non-simple comboboxes (bug fix)
19303                 - Remove dead code
19304         * MenuAPI.cs: remove unused var
19305         * ScrollBar.cs: remove unsed var
19306                  
19307         * ListBox.cs: unselect items when clearing
19308
19309 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
19310
19311         * ListControl.cs: honors OnPositionChanged and default Selected Item
19312         * ListBox.cs: unselect items when clearing
19313
19314 2005-04-27  Jackson Harper  <jackson@ximian.com>
19315
19316         * X11Keyboard.cs: Initialize a default keyboard and give a warning
19317         if a "correct" keyboard is not found. This will make us not crash,
19318         but might give some users bad keyboard layouts...seems to be the
19319         same thing rewind does.
19320
19321 2005-04-27  Jackson Harper  <jackson@ximian.com>
19322
19323         * BindingManagerBase.cs: Attach the current/position changed
19324         handlers to their respective events.
19325
19326 2005-04-27  Jackson Harper  <jackson@ximian.com>
19327
19328         * Control.cs: Make sure that the first WM_PAINT does a full draw,
19329         not just a blit.
19330         * ThemeWin32Classic.cs: Don't fill the background for picture
19331         boxes. This could overright user drawing.
19332         * ComboBox.cs: Just fill the clipping rect not the entire client
19333         rect when drawing the background. This prevents pieces of the
19334         image buffer from getting overwritten and is theoretically faster.
19335
19336 2005-04-26  Jordi Mas i Hernandez <jordi@ximian.com>
19337
19338         * ComboBox.cs: Databinding support fixes, fire missing events
19339         * ListControl.cs: implement missing methods and properties, fixes
19340         * ThemeWin32Classic.cs: Databiding support on Drawing
19341         * CheckedListBox.cs: Databinding support fixes, fire missing events
19342         * ListBox.cs: Databinding support fixes, fire missing events
19343         
19344 2005-04-25  Peter Bartok  <pbartok@novell.com>
19345
19346         * LinkLabel.cs: Length of LinkArea is not allowed to be negative
19347
19348 2005-04-25  Jackson Harper  <jackson@ximian.com>
19349
19350         * TreeView.cs: Use the horizontal scrollbars height not width when
19351         determining how much of the client area is available.
19352
19353 2005-04-25  Jackson Harper  <jackson@ximian.com>
19354
19355         * Control.cs: Double buffering is handled differently now. As per
19356         the spec, the extra buffer is created in the WM_PAINT message and
19357         passed down to the control's drawing code.
19358         * GroupBox.cs:
19359         * Label.cs:
19360         * CheckBox.cs:
19361         * ProgressBar.cs:
19362         * RadioButton.cs:
19363         * ColorDialog.cs:
19364         * ComboBox.cs:
19365         * PropertyGridView.cs:
19366         * UpDownBase.cs:
19367         * MessageBox.cs:
19368         * MenuAPI.cs:
19369         * ListView.cs:
19370         * ButtonBase.cs:
19371         * SizeGrip.cs:
19372         * ScrollBar.cs:
19373         * ListBox.cs:
19374         * TrackBar.cs:
19375         * ToolBar.cs:
19376         * PictureBox.cs:
19377         * DateTimePicker.cs:
19378         * StatusBar.cs:
19379         * TreeView.cs: Update to new double buffering system.
19380         * MonthCalendar.cs: Uncomment block, as Capture is now
19381         working. Update to new double buffering
19382         * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
19383         * PaintEventArgs.cs: New internal method allows us to set the
19384         graphics object. This is used for double buffering.
19385         * ThemeWin32Classic.cs: Give the picture box drawing code a clip
19386         rectangle. The internal paint_area var has been removed from
19387         StatusBar. The clipping rect should be used instead.
19388         * Theme.cs: Give the PictureBox drawing method a clipping rect.
19389         * TabPage.cs: The RefreshTabs method was removed, so just call the
19390         tab controls Refresh method now.
19391         * TabControl.cs: Update to new double buffering. Make sure the
19392         handle is created before sizing the tab pages, otherwise we will
19393         get stuck in a loop.
19394
19395 2005-04-24  Borja Sanchez Zamorano <borsanza@gmail.com>
19396
19397         * LinkLabel.cs: Fix typo, bug #74719; patch
19398           from Borja Sanchez Zamorano
19399
19400 2005-04-22  Jackson Harper  <jackson@ximian.com>
19401
19402         * TreeNode.cs: Implement Handle stuff.
19403         * TreeView.cs: Utility methods so nodes can get/lookup by handle.
19404
19405 2005-04-22  Jordi Mas i Hernandez <jordi@ximian.com>
19406
19407         * DataGridTextBoxColumn.cs: call base constructors, fixes
19408         * GridColumnStylesCollection.cs: missing events, methods, and functionality
19409         * GridTableStylesCollection.cs: fixes, check duplicate mapping names
19410         * DataGridTableStyle.cs: implements create default column styles
19411         * DataGridBoolColumn.cs: which types can handle
19412         * DataGrid.cs: missing methods, fixes, new functionality
19413         * DataGridColumnStyle.cs: fixes
19414
19415 2005-04-20  Alexander Olk  <xenomorph2@onlinehome.de>
19416         * FolderBrowserDialog.cs:
19417         - Use a thread to fill the TreeView
19418         - Adjusted some sizes
19419
19420 2005-04-19  Peter Bartok  <pbartok@novell.com>
19421
19422         * LinkLabel.cs: (Re-)create the pieces when setting the Text
19423           property. Fixes #74360.
19424
19425 2005-04-19  Jackson Harper  <jackson@ximian.com>
19426
19427         * XEventQueue.cs: Lock when getting the lockqueue size.
19428         * PictureBox.cs: Call base OnPaint
19429         
19430 2005-04-19  Peter Bartok  <pbartok@novell.com>
19431
19432         * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
19433           messages were no longer being processed (this broke BeginInvoke)
19434
19435           
19436 2005-04-18  Jackson Harper  <jackson@ximian.com>
19437
19438         * TreeView.cs: buglet that caused node images to get drawn
19439         regardless of whether or not they were in the clipping rectangle.
19440
19441 2005-04-18  Jackson Harper  <jackson@ximian.com>
19442
19443         * CurrencyManager.cs: There are four rules for GetItemProperties:
19444         - If the type is an array use the element type of the array
19445         - If the type is a typed list, use the type
19446         - If the list contains an Item property that is not an object, use
19447         that property
19448         - use the first element of the list if there are any elements in
19449         the list.
19450         
19451 2005-04-17  Jackson Harper  <jackson@ximian.oom>
19452
19453         * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
19454         click. This handles offsets for scrolling properly and reduces
19455         memory. Also fixed GetNode to not offset now that TopNode works
19456         properly.
19457         * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
19458         
19459 2005-04-17  Jackson Harper  <jackson@ximian.com>
19460
19461         * CursorConverter.cs: Initial implementation.
19462
19463 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
19464
19465         * ListControl.cs: work towards complex data binding support on ListControl
19466         * CurrencyManager.cs: work towards complex data binding support on ListControl
19467         * ListBox.cs: work towards complex data binding support on ListControl
19468
19469
19470 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
19471
19472         * GridTableStylesCollection.cs: fixes name and constructor
19473         * DataGridTableStyle.cs: fixes
19474         * DataGridBoolColumn.cs: fixes names and constructors
19475         * DataGrid.cs: define methods and properties. Some init implementations
19476         * DataGridCell.cs: define methods and properties. Some init implementations
19477         * GridTablesFactory.cs: Define methods and properties
19478
19479 2005-04-15  Geoff Norton  <gnorton@customerdna.com>
19480
19481         * XplatUIOSX.cs:  Handle proper mouse tracking even if the current
19482         graphics port changes.  We still want the coordinates in global screen
19483         coordinates.
19484
19485 2005-04-14  Jackson Harper  <jackson@ximian.com>
19486
19487         * TreeView.cs: Handle clicks when plus minus is disabled. Don't
19488         check plus minus or checkbox clicks unless those features are enabled.
19489
19490 2005-04-14  Jackson Harper  <jackson@ximian.com>
19491
19492         * TreeView.cs: Add methods for setting the top and bottom visible
19493         nodes. TreeNode::EnsureVisible uses these methods.
19494         * TreeNode.cs: Implement EnsureVisible
19495
19496 2005-04-13  Jordi Mas i Hernandez <jordi@ximian.com>
19497
19498         * Form.cs: Pospone menu assignation if the window has not been created yet
19499         * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
19500         size and position
19501
19502 2005-04-12  Jackson Harper  <jackson@ximian.com>
19503
19504         * TreeView.cs: Set the TopNode properly when scrolling
19505         occurs. This has the added benifit of reducing the amount of
19506         walking that needs to be done when drawing. Also removed an old
19507         misleading TODO.
19508         * OpenTreeNodeEnumerator.cs: Fix moving backwards.
19509         
19510 2005-04-11  Jordi Mas i Hernandez <jordi@ximian.com>
19511
19512         * Timer.cs: fixes interval setting when the timer is already enabled
19513         
19514 2005-04-10  Alexander Olk  <xenomorph2@onlinehome.de>
19515
19516         * FolderBrowserDialog.cs: First approach
19517
19518 2005-04-09  Peter Bartok  <pbartok@novell.com>
19519
19520         * FolderBrowserDialog: Added
19521
19522 2005-04-07  Jordi Mas i Hernandez <jordi@ximian.com>
19523
19524         * LinkLabel.cs: move drawing code into the theme
19525         * ThemeWin32Classic.cs: drawing code and painting background bugfix
19526         * Theme.cs: define DrawLinkLabel method
19527
19528 2005-04-05  Jackson Harper  <jackson@ximian.com>
19529
19530         * BindingContext.cs: Use weak references so these bad actors don't
19531         stay alive longer then they need to.
19532
19533 2005-04-05  Jackson Harper  <jackson@ximian.com>
19534
19535         * ListControl.cs: Basic implementation of complex databinding.
19536         * ComboBox.cs:
19537         * ListBox.cs: Add calls to ListControl databinding methods.
19538
19539 2005-04-05  Alexander Olk  <xenomorph2@onlinehome.de>
19540
19541         * FileDialog.cs:
19542           - Don't change PopupButtonState to Normal when the
19543             PopupButton gets pressed several times.
19544           - Renamed ButtonPanel to PopupButtonPanel
19545
19546 2005-04-05  Jordi Mas i Hernandez <jordi@ximian.com>
19547
19548         * ColorDialog.cs: Use cached objects instead of creating them
19549         * LinkLabel.cs: Use cached objects instead of creating them
19550         * Splitter.cs: Use cached objects instead of creating them
19551         * FontDialog.cs: Use cached objects instead of creating them
19552         * PropertyGridView.cs: Use cached objects instead of creating them
19553         * MessageBox.cs: Use cached objects instead of creating them
19554         * FileDialog.cs: Use cached objects instead of creating them
19555         * ThemeWin32Classic.cs: Use cached objects instead of creating them
19556         * TreeView.cs: Use cached objects instead of creating them
19557         
19558 2005-04-04  Jordi Mas i Hernandez <jordi@ximian.com>
19559
19560         * Control.cs: use Equals to compare the font since no == op
19561         * ScrollBar.cs: use Equals to compare the font since no == op
19562
19563 2005-04-04  Alexander Olk  <xenomorph2@onlinehome.de>
19564
19565         * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
19566
19567 2005-04-01  Jackson Harper  <jackson@ximian.com>
19568
19569         * Binding.cs: Implement IsBinding.
19570         * BindingManagerBase.cs:
19571         * PropertyManager.cs:
19572         * CurrencyManager.cs: Add IsSuspended property.
19573
19574 2005-04-01  Jackson Harper  <jackson@ximian.com>
19575
19576         * Binding.cs: Had some IsAssignableFrom calls backwards.
19577
19578 2005-04-01  Jackson Harper  <jackson@ximian.com>
19579
19580         * Binding.cs: Handle null data members when pulling data.
19581         * PropertyManager.cs: Handle the data member being a property that
19582         does not exist.
19583
19584 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
19585
19586         * DataGridTextBoxColumn.cs: fixes signature
19587         * DataGrid.cs: calls right constructor
19588
19589 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
19590
19591         * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
19592         * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
19593         * GridTableStylesCollection.cs: implements GridTableStylesCollection
19594         * DataGridTableStyle.cs: implements DataGridTableStyle
19595         * DataGridBoolColumn.cs: implements DataGridBoolColumn
19596         * DataGridTextBox.cs: implements DataGridTextBox
19597         * DataGridColumnStyle.cs: implements DataGridColumnStyle
19598
19599 2005-03-31  Alexander Olk  <xenomorph2@onlinehome.de>
19600
19601         * FileDialog.cs: Added simple PopupButton class for ButtonPanel
19602
19603 2005-03-29  Peter Bartok  <pbartok@novell.com>
19604
19605         * Application.cs:
19606           - Properly implemented CompanyName property
19607           - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
19608             returns a path that includes CompanyName, ProductName and
19609             Version (fixes bug #70330)
19610
19611 2005-03-29  Stefan Buehler  <sbuehler@gmx.ch>
19612
19613         * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
19614           fixes bug #72588.
19615
19616 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
19617
19618         * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
19619         
19620           - Added ReadOnly CheckBox
19621           - Further refactoring: moved some code from Open-/SaveFileDialog
19622             to FileDialog
19623
19624 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
19625
19626         * OpenFileDialog.cs: Fixed CheckFileExists
19627         * FileDialog.cs:
19628           Moved FileView and DirComboBox outside FileDialog class.
19629           They can now be used outside FileDialog
19630
19631 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
19632
19633         * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
19634         * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
19635
19636 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
19637
19638         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
19639           - Added missing CreatePrompt property in SaveDialog
19640           - Overall SaveDialog handling should be better now
19641           - Added non standard ShowHiddenFiles property
19642           - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
19643           - Added InitialDirectory and RestoreDirectory support
19644
19645 2005-03-26  Alexander Olk  <xenomorph2@onlinehome.de>
19646
19647         * FileDialog.cs: Made dirComboBox usable
19648
19649 2005-03-24  Alexander Olk  <xenomorph2@onlinehome.de>
19650
19651         * FileDialog.cs: Added Filter support (case sensitiv)
19652
19653 2005-03-24  Jackson Harper  <jackson@ximian.com>
19654
19655         * TabControl.cs: Need a couple more pixels for the lines.
19656
19657 2005-03-23  Jackson Harper  <jackson@ximian.com>
19658
19659         * TabControl.cs: Give the tab page focus when it is selected.
19660
19661 2005-03-23  Jackson Harper  <jackson@ximian.com>
19662
19663         * TabControl.cs: Account for the drawing of tabs borders when
19664         invalidating. If the slider was clicked dont do click detection on
19665         the tabs.
19666
19667 2005-03-23  Jackson Harper  <jackson@ximian.com>
19668
19669         * TabControl.cs: Fix typo, emilinates an unneeded expose event.
19670
19671 2005-03-22  Jonathan Chambers  <jonathan.chambers@ansys.com>
19672
19673         * CategoryGridEntry.cs: Added
19674         * GridItem.cs: Added helper properties
19675         * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
19676         * GridEntry.cs: Updated code for collection
19677         * PropertyGrid.cs: Cleaned up some formatting
19678         * PropertyGridView.cs: Added drop down functionality for enums.
19679         * GridItemCollection.cs: Added enumerator logic
19680         * PropertyGridEntry.cs: Added
19681
19682 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
19683
19684         * FileDialog.cs:
19685           - Removed unnecessary commented code
19686           - Fixed handling for entering the filename manually in the combobox
19687
19688 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
19689
19690         * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
19691
19692 2005-03-18  Peter Bartok  <pbartok@novell.com>
19693
19694         * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
19695           them being touching the border
19696
19697 2005-03-18  Peter Bartok  <pbartok@novell.com>
19698
19699         * TextControl.cs: Quick hack to center text better
19700
19701 2005-03-18  Peter Bartok  <pbartok@novell.com>
19702
19703         * ControlPaint.cs:
19704           - Don't throw NotImplemented exceptions, just print a notice once
19705             instead (requested by Miguel). This makes running existing SWF
19706             apps a bit easier
19707         * Control.cs:
19708           - Commented out Drag'N'Drop XplatUI call (no driver support yet)
19709           - Added context menu trigger on right click
19710         * Panel.cs: Trigger invalidate on resize
19711         * StatusBar.cs:
19712           - Removed old double-buffer drawing
19713           - Added ResizeRedraw style to force proper update of statusbar
19714         * ListView.cs:
19715           - Removed debug output
19716         * ThemeWin32Classic.cs:
19717           - Fixed drawing of status bar, now draws Text property if there
19718             are no defined panels
19719
19720 2005-03-18  Jackson Harper  <jackson@ximian.com>
19721
19722         * ImageList.cs: When the image stream is set pull all the images
19723         from it.
19724         * ImageListStreamer.cs: Implement reading image list streams.
19725
19726 2005-03-18  Peter Bartok  <pbartok@novell.com>
19727
19728         * ThemeWin32Classic.cs (DrawPictureBox):
19729           - Fixed calculations for centered drawing
19730           - Fixed drawing for normal mode, not scaling the image on normal
19731
19732 2005-03-18  Peter Bartok  <pbartok@novell.com>
19733
19734         * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
19735           textbox
19736         * FileDialog.cs:
19737           - Made Open/Save button the accept button for FileDialog
19738           - Tied the cancel button to the IButtonControl cancel button
19739           - Save/Open now properly builds the pathname
19740           - Now handles user-entered text
19741           - Preventing crash on right-click if no item is selected
19742           - Fixed Text property, now uses contents of textbox
19743           - Fixed SelectedText property, now just returns the text part that
19744             is selected in the text box
19745
19746 2005-03-18  Jackson Harper  <jackson@ximian.com>
19747
19748         * ThemeWin32Classic.cs: Use the proper func for drawing the focus
19749         rect, make sure to de-adjust the interior rect after drawing the
19750         tab text.
19751
19752 2005-03-18  Peter Bartok  <pbartok@novell.com>
19753
19754         * MenuAPI.cs: Remove menu *before* executing selected action to
19755           prevent the menu from 'hanging around'
19756           
19757 2005-03-17  Geoff Norton  <gnorton@customerdna.com>
19758
19759         * XplatUIOSX.cs: Implemented WorkingArea property
19760
19761 2005-03-17  Peter Bartok  <pbartok@novell.com>
19762
19763         * XplatUIX11.cs: Fixed menu coord calculations
19764         * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
19765           for calculating offsets
19766
19767 2005-03-17  Peter Bartok  <pbartok@novell.com>
19768
19769         * Hwnd.cs: Do not consider menu presence for default client
19770           rectangle location/size
19771         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
19772           XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
19773           translation functions
19774         * FileDialog.cs: Fixed (what I presume is a) typo
19775
19776 2005-03-17  Jonathan Gilbert  <logic@deltaq.org>
19777
19778         * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
19779           X access (avoids X-Async errors)
19780
19781 2005-03-16  Jackson Harper  <jackson@ximian.com>
19782
19783         * TabControl.cs: Raise the SelectedIndexChanged event.
19784
19785 2005-03-16  Alexander Olk  <xenomorph2@onlinehome.de>
19786
19787         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
19788           - Removed vertical ToolBar and replaced it with a custom panel
19789             (desktop and home button already work)
19790           - Added Help button (some controls get resized or relocated then)
19791           - Draw correct text depending on Open or Save.
19792           - Fixed some typos...
19793
19794 2005-03-16  Jordi Mas i Hernandez <jordi@ximian.com>
19795
19796         * ScrollBar.cs:
19797           - Only change Maximum and Minimum when need it (bug fix)
19798
19799 2005-03-15  Peter Bartok  <pbartok@novell.com>
19800
19801         * Form.cs: Use Handle for icon, to trigger creation if
19802           the window does not yet exist
19803         * Control.cs:
19804           - CanSelect: Slight performance improvement
19805           - Focus(): Preventing possible recursion
19806           - Invalidate(): Removed ControlStyle based clear flag setting
19807           - WM_PAINT: fixed logic for calling OnPaintBackground
19808           - WM_ERASEBKGND: Fixed logic, added call to new driver method
19809             EraseWindowBackground if the control doesn't paint background
19810         * XplatUIWin32.cs:
19811           - Moved EraseWindowBackground() method to internal methods
19812           - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
19813             is sent via SendMessage on BeginPaint call on Win32
19814         * XplatUIX11.cs:
19815           - Added EraseWindowBackground() method
19816           - No longer sends WM_ERASEBKGND on .Expose, but on call to
19817             PaintEventStart, which more closely matches Win32 behaviour
19818           - Fixed Invalidate() call, now updates new ErasePending Hwnd property
19819           - Fixed SetFocus() to properly deal with client and whole windows
19820         * Hwnd.cs: Added ErasePending property
19821         * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
19822         * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
19823
19824 2005-03-12  Geoff Norton  <gnorton@customerdna.com>
19825
19826         * XplatUIOSX.cs:
19827           - Fix hard loop when timers exist.
19828           - Fix bugs with middle and right click for 3 button mice.
19829
19830 2005-03-11  Peter Bartok  <pbartok@novell.com>
19831
19832         * XplatUIX11.cs:
19833           - get_WorkingArea: Need to call X directly, GetWindowPos only
19834             returns cached data now
19835           - Added sanity check to GetWindowPos hwnd usage
19836
19837 2005-03-11  Jackson Harper  <jackson@ximian.com>
19838
19839         * BindingManagerBase.cs: This method isn't used anymore as
19840         PullData now updates the data in the control.
19841
19842 2005-03-11  Jordi Mas i Hernandez <jordi@ximian.com>
19843
19844         * Form.cs: fixes menu drawing on X11
19845         * MenuAPI.cs:  fixes menu drawing on X11
19846
19847 2005-03-11  Peter Bartok  <pbartok@novell.com>
19848
19849         * Control.cs: Changed OnCreateControl behaviour based on a suggestion
19850           from Jonathan Gilbert; should fix bug #73606
19851         * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
19852           in Screen coordinates. Thanks, Jordi.
19853         * Form.cs: Added missing attribute
19854
19855 2005-03-11  Peter Bartok  <pbartok@novell.com>
19856
19857         * Form.cs:
19858           - Rudimentary Mdi support
19859           - Removed outdated FormParent code
19860           - Implemented lots of missing properties and methods, still missing
19861             transparency support
19862           - Added missing attributes
19863           - Implemented support for MaximumBounds
19864           - Added firing of various events
19865         * XplatUI.cs: Added SetIcon() method
19866         * XplatUIDriver.cs: Added SetIcon() abstract
19867         * XplatUIOSX.cs: Stubbed out SetIcon() method
19868         * XplatUIX11.cs:
19869           - Implemented SetIcon() support
19870           - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
19871           - Switched to unix line endings
19872         * XplatUIWin32.cs:
19873           - Made POINT internal so for can access it as part of MINMAX
19874           - Implemented SetIcon() support
19875           - Implemented support for CLIENTCREATESTRUCT (but might have to drop
19876             native Mdi support again, might have to go managed)
19877         * Control.cs: Now fires the StyleChanged event
19878         * MdiClient.cs: Added; still mostly empty
19879
19880 2005-03-10  Peter Bartok  <pbartok@novell.com>
19881
19882         * SaveFileDialog.cs: Added emtpy file
19883
19884 2005-03-08  Peter Bartok  <pbartok@novell.com>
19885
19886         * Control.cs: Fixed bug #73190; now invokes CreateControl (which
19887           in turn triggers OnCreateContro) when creating a handle for the
19888           first time.
19889         * TextControl.cs: Fixed endless loop in certain cases when
19890           replacing the current selection
19891
19892 2005-03-08  Jordi Mas i Hernandez <jordi@ximian.com>
19893
19894         * ScrollBar.cs:
19895           - Honors NewValue changes in Scroll events allowing apps to change it
19896           - Adds First and Last Scroll events
19897           - Fixes Thumb events
19898
19899 2005-03-07  Peter Bartok  <pbartok@novell.com>
19900
19901         * Hwnd.cs: Added DefaultClientRectangle property
19902         * XplatUI.cs: Now using the X11 driver Where() method, which provides
19903           more detailed debug information
19904         * XplatUIX11.cs:
19905           - Fixed size-change feedback loop, where we would pull an old size
19906             off the queue and mistakenly change our window's size to an
19907             earlier value
19908           - Now compressing ConfigureNotify events, to reduce looping and
19909             redraw issues
19910         * TextBoxBase.cs: Preventing crash when no text is set and ToString()
19911           is called
19912
19913 2005-03-07  Jackson Harper  <jackson@ximian.com>
19914
19915         * Binding.cs: Push data pushes from data -> property. Check if the
19916         property is readonly when attempting to set it.
19917
19918 2005-03-07  Jackson Harper  <jackson@ximian.com>
19919
19920         * Binding.cs: Format and parse data correctly. Use ASsignableFrom
19921         instead of IsSubclassOf. Pulling data now sets the value on the
19922         control.
19923         * PropertyManager.cs:
19924         * CurrencyManager.cs: Just need to pull data when updating now,
19925         because PullData will set the value on the control.
19926
19927 2005-03-04  Jackson Harper  <jackson@ximian.com>
19928
19929         * Binding.cs: Implement data type parsing and converting on pulled
19930         data. TODO: Are there more ways the data can be converted?
19931
19932 2005-03-04  Jackson Harper  <jackson@ximian.com>
19933
19934         * Binding.cs: Support <Property>IsNull checks. Also bind to the
19935         controls Validating method so we can repull the data when the
19936         control loses focus.
19937
19938 2005-03-03  Jordi Mas i Hernandez <jordi@ximian.com>
19939
19940         * ColumnHeader.cs:
19941           - Fixes null string format
19942           
19943         * ListView.cs:
19944           - Adds enum type checks
19945           - Fixes redrawing and recalc need after changing some properties
19946           - Fixes on focus_item set after the event
19947           - Fixes adding columns after the control has been created
19948           
19949         * ThemeWin32Classic.cs:
19950           - Fixes CheckBox focus rectangle
19951           - Fixes ColumnHeader drawing
19952
19953
19954 2005-03-03  Jackson Harper  <jackson@ximian.com>
19955
19956         * Binding.cs: Bind to <Property>Changed events so we can detect
19957         when properties are changed and update the data.
19958
19959 2005-03-02  Jordi Mas i Hernandez <jordi@ximian.com>
19960
19961         * ImageList.cs:
19962           - Changes 32-bit pixel format to Format32bppArgb to allow transparency
19963           - Fixes ImageList constructor with ImageList container
19964           - Fixes image scaling (wrong parameters at DrawImage)
19965
19966 2005-02-02  Jackson Harper  <jackson@ximian.com>
19967
19968         * Binding.cs: Make property searches case-insensitive. Eliminate
19969         some duplicated code.
19970
19971 2005-03-01  Jordi Mas i Hernandez <jordi@ximian.com>
19972
19973         * ComboBox.cs:
19974                 - Handle focus event
19975                 - Fix scrollbar events
19976                 - Discard highlighted item if remove it
19977                 - Fixes SelectedItem with strings
19978
19979 2005-03-01  Peter Bartok  <pbartok@novell.com>
19980
19981         * Control.cs:
19982           - Fixed Visible property, now follows (once again) parent chain
19983             to return false if any control in the chain is visible=false
19984           - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
19985           - Fixed several places where is_visible instead of Visible was used
19986           - Implemented FIXME related to focus selection when setting focused
19987             control to be invisible
19988
19989         * XplatUIWin32.cs: Now using proper method to find out if window is
19990           visible. Thanks to Jordi for pointing it out
19991
19992 2005-02-28  Jordi Mas i Hernandez <jordi@ximian.com>
19993
19994         * ComboBox.cs: show/hide scrollbar instead of creating it
19995
19996 2005-02-27  Jackson Harper  <jackson@ximian.com>
19997
19998         * CurrencyManager.cs: Add PositionChanged stuff.
19999
20000 2005-02-27  Peter Bartok  <pbartok@novell.com>
20001
20002         * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
20003         * XplatUIOSX.cs: Added GetMenuOrigin() stub
20004         * XplatUIWin32.cs: Implemented GetMenuOrigin()
20005         * XplatUIX11.cs:
20006           - Implemented GetMenuDC()
20007           - Implemented GetMenuOrigin()
20008           - Implemented ReleaseMenuDC()
20009           - Implemented generation of WM_NCPAINT message
20010           - Implemented generation and handling of WM_NCCALCSIZE message
20011         * Form.cs: Added debug helper message for Jordi's menu work
20012         * Hwnd.cs:
20013           - Modified ClientRect property; added setter, fixed getter to handle
20014             setting of ClientRect
20015           - Added MenuOrigin property
20016
20017 2005-02-26  Peter Bartok  <pbartok@novell.com>
20018
20019         * XplatUIX11.cs:
20020           - Destroys the caret if a window that's being destroyed contains it
20021           - Ignores expose events coming from the X11 queue for windows that
20022             already are destroyed
20023           - Now uses the proper variable for handling DestroyNotify, before we
20024             marked the wrong window as destroyed
20025           - Improved/added some debug output
20026
20027 2005-02-26  Peter Bartok  <pbartok@novell.com>
20028
20029         * X11Keyboard.cs: Fixes to work on 64bit systems
20030
20031 2005-02-26  Peter Bartok  <pbartok@novell.com>
20032
20033         * Control.cs:
20034           - Now calling OnHandleDestroyed from DestroyHandle()
20035             instead of Dispose()
20036           - Removed bogus call to controls.Remove() from DestroyHandle()
20037
20038 2005-02-26  Peter Bartok  <pbartok@novell.com>
20039
20040         * Control.cs: Properly destroy child windows when our handle is
20041           destroyed
20042
20043 2005-02-25  Peter Bartok  <pbartok@novell.com>
20044
20045         * XplatUI.cs:
20046           - Added 'DriverDebug' define to allow tracing XplatUI API calls
20047           - Alphabetized Static Methods and Subclasses
20048
20049         * XplatUIX11.cs:
20050           - Added XException class to allow custom handling of X11 exceptions
20051           - Created custom X11 error handler, tied into XException class
20052           - Added support for MONO_XEXCEPTIONS env var to allow the user
20053             to either throw an exception on X errors or continue running
20054             after displaying the error
20055           - Added handling of DestroyNotify message
20056           - Added handler for CreateNotify message (still disabled)
20057           - Improved (tried to at least) Where method to provide file and lineno
20058         * X11Structs.cs:
20059           - Added XErrorHandler delegate
20060           - Added XRequest enumeration (to suppor translation of errors)
20061
20062 2005-02-25  Jackson Harper  <jackson@ximian.com>
20063
20064         * PropertyManager.cs: Implement editing features
20065         * CurrencyManager.cs:
20066         * Binding.cs: First attempt at UpdateIsBinding
20067         * BindingManagerBase.cs: Call UpdateIsBinding before
20068         pushing/pulling data.
20069
20070 2005-02-25  Jordi Mas i Hernandez <jordi@ximian.com>
20071
20072         * MenuAPI.cs: Respect disabled items
20073         * ThemeWin32Classic.cs
20074                 - Caches ImageAttributes creation for DrawImageDisabled
20075                 - Fixes vertical menu line drawing
20076                 - Draws disabled arrows in disable menu items
20077
20078 2005-02-24  Peter Bartok  <pbartok@novell.com>
20079
20080         * Hwnd.cs:
20081           - Added UserData property to allow associating arbitrary objects
20082             with the handle
20083           - Fixed leak; now removing Hwnd references from static windows array
20084         * XplatUIWin32.cs:
20085           - Fixed Graphics leak in PaintEventEnd
20086           - Removed usage of HandleData, switched over to Hwnd class
20087         * HandleData.cs: Removed, obsoleted by Hwnd.cs
20088
20089 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
20090
20091         * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
20092         * ScrollBar.cs: Fixes bug
20093         * TrackBar.cs: removes death code, clipping, mimize refreshes,
20094          keyboard navigation enhancements
20095
20096 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
20097
20098         * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
20099         * GroupBox.cs: Add control styles
20100         * Label.cs: Add control styles
20101         * UpDownBase.cs: Add control styles
20102         * ListBox.cs: Add control styles
20103         * XplatUIWin32.cs: Fixes wrong parameter order
20104
20105
20106 2005-02-23  Chris Bacon  <chris.bacon@docobo.co.uk>
20107
20108         * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
20109
20110 2005-02-23  Jackson Harper  <jackson@ximian.com>
20111
20112         * PropertyManager.cs: Implement property binding. This doesn't
20113         seem to work yet though as (I think) there are some bugs in
20114         System.ComponentModel.PropertyDescriptor.
20115         * BindingContext.cs: Use new PropertyManager constructor.
20116
20117 2005-02-23  Jordi Mas i Hernandez <jordi@ximian.com>
20118
20119         * ProgressBar.cs: use clip region in ProgressBar
20120         * ThemeWin32Classic.cs: use clip region in ProgressBar
20121
20122 2004-02-22  Jackson Harper  <jackson@ximian.com>
20123
20124         * BindingsCollection.cs: Remove some debug code.
20125
20126 2005-02-22  Jackson Harper  <jackson@ximian.com>
20127
20128         * BindingContext.cs:
20129         * ControlBindingsCollection.cs:
20130         * CurrencyManager.cs:
20131         * Binding.cs:
20132         * BindingManagerBase.cs: Initial implementation
20133         * BindingsCollection.cs: Add an internal contains method that the
20134         BindingManagerBase uses to ensure bindings aren't added twice to
20135         the collection.
20136         * PropertyManager.cs: Stubbed out.
20137         * Control.cs:
20138         * ContainerControl.cs: Hook up databinding
20139         
20140 2005-02-22  Geoff Norton  <gnorton@customerdna.com>
20141
20142         * XplatUIOSX.cs:
20143           OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
20144           Fixed Invalidate/Update chain.
20145           Fixed tons of other minor bugs (this is almost a complete rewrite).
20146
20147 2005-02-22  Jordi Mas i Hernandez <jordi@ximian.com>
20148
20149         * ComboBox.cs: do subcontrol creation when the control is created
20150
20151 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
20152
20153         * Label.cs: fixes image drawing (image and imagelist)
20154         * ThemeWin32Classic.cs: cache brushes
20155         
20156 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
20157
20158         * Form.cs: Move menu drawing code to Theme class
20159         * ComboBox.cs: Move ComboBox drawing code to Theme class
20160         * MenuItem.cs: Move menu drawing code to Theme class
20161         * MenuAPI.cs: Move menu drawing code to Theme class
20162         * ThemeWin32Classic.cs: New methods
20163         * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
20164         * ListBox.cs: Move Listbox drawing code to Theme class
20165         * Theme.cs: New methods
20166
20167 2005-02-20  Peter Bartok  <pbartok@novell.com>
20168
20169         * Control.cs:
20170           - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
20171             only process mnemonics on those)
20172           - Fixed event sequence for key handling; first calling
20173             ProcessKeyEventArgs now
20174         * TextBoxBase.cs:
20175           - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
20176             for processing non-character keys
20177           - Fixed WM_CHAR to generate proper event sequence before processing
20178         * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
20179           generation
20180
20181 2005-02-19  Peter Bartok  <pbartok@novell.com>
20182
20183         * UserControl.cs: Added TextChanged event; added attributes
20184         * SizeGrip.cs: Implemented resizing and optional display of grip
20185         * Form.cs: Fixed attribute
20186         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
20187           Changed meaning of ScrollWindow bool argument; instead of the
20188           clear attribute (which will be true usually anyway), it gives the
20189           option of moving child controls as well.
20190         * XplatUIX11.cs:
20191           - Changed to match new ScrollWindow argument
20192           - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
20193             now handles the implicit parent window a WM puts around us
20194         * ScrollableControl.cs: Implemented (not the prettiest, but it seems
20195           to work)
20196         * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
20197         * TreeView.cs: Adjusted to new ScrollWindow arguments
20198
20199 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
20200
20201         * Form.cs: Menu integration with non-client area
20202         * MenuItem.cs: Menu integration with non-client area
20203         * MenuAPI.cs: Menu integration with non-client area
20204
20205 2005-02-18  Peter Bartok  <pbartok@novell.com>
20206
20207         * MethodInvoker.cs: Added
20208         * MdiLayout.cs: Added
20209         * SendKeys.cs: Started implementation
20210         * ErrorIconAlignment.cs: Added
20211
20212 2005-02-18  Peter Bartok  <pbartok@novell.com>
20213
20214         * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
20215         * Form.cs: Added handling for Menu-related Non-client messages
20216
20217 2005-02-17  Peter Bartok  <pbartok@novell.com>
20218
20219         * UpDownBase.cs: Fixed typo, compilation errors
20220         * DomainUpDown.cs: Fixed attribute value
20221
20222 2005-02-16  Miguel de Icaza  <miguel@novell.com>
20223
20224         * UpDownBase.cs: Attach entry events.
20225         Propagate events.
20226         Add ForeColor property, Focused, InterceptArrowKeys (interception
20227         does not work yet).
20228
20229 2005-02-17  Jordi Mas i Hernandez <jordi@ximian.com>
20230
20231         * Form.cs:
20232                 - Redraw non client are on Setmenu
20233                 - Calc proper menu starting point
20234
20235 2005-02-17  Peter Bartok  <pbartok@novell.com>
20236
20237         * Application.cs: Fixed message_filter check
20238
20239 2005-02-17  Peter Bartok  <pbartok@novell.com>
20240
20241         * Application.cs: Now calls registered message filters
20242         * DockStyle.cs: Fixed attribute
20243         * Form.cs: Fixed attribute
20244         * Menu.cs: Fixed attribute
20245         * ToolTip.cs: Fixed attribute
20246         * TreeNode.cs: Added missing attributes and arranged in regions
20247         * PropertyGrid.cs: Fixed signatures
20248         * TreeNodeCollection.cs: Added attributes
20249         * Splitter.cs: Added missing attributes; arranged into regions
20250         * TabPage.cs: Added missing attributes; arranged into regions
20251         * TextBoxBase.cs: Added missing attributes
20252         * TextBox.cs: Added missing attributes
20253         * ArrangeDirection.cs: Added missing attributes
20254         * TreeNodeConverter.cs: Added stub (needed for TreeNode)
20255         * ToolBarButton.cs: Fixed attributes
20256         * AnchorStyles.cs: Fixed attribute
20257         * TrackBar.cs: Fixed attributes
20258         * TabControl.cs: Added missing attributes and arranged into regions
20259         * ToolBar.cs: Fixed attribute
20260         * StatusBar.cs: Fixed signature, organized into regions and added
20261           attributes
20262         * StatusBarPanel.cs: Fixed attributes
20263         * ContentsResizedEventArgs.cs: Implemented
20264         * ContentsResizedEventHandler.cs: Implemented
20265         * DateBoldEventArgs.cs: Implemented
20266         * DateBoldEventHandler.cs: Implemented
20267         * UpDownEventArgs.cs: Implemented
20268         * UpDownEventHandler.cs: Implemented
20269         
20270 2005-02-16  Jordi Mas i Hernandez <jordi@ximian.com>
20271
20272         * Form.cs: first Menu NC refactoring
20273         * MenuAPI.cs: first Menu NC refactoring
20274         
20275 2005-02-16  Peter Bartok  <pbartok@novell.com>
20276
20277         * ImeMode.cs: Added missing attributes
20278         * Menu.cs: Fixed attribute
20279         * GroupBox.cs: Fixed attribute
20280         * Label.cs: Fixed attribute
20281         * ColorDialog.cs (RunDialog): Removed TODO attribute
20282         * ComboBox.cs: Fixed attributes
20283         * ListControl.cs: Added missing attributes
20284         * PropertyGrid.cs: Fixed attributes
20285         * Control.cs: Fixed attributes
20286         * ListViewItem.cs: Added TypeConverter attribute
20287         * NotifyIcon.cs: Fixed attributes
20288         * ListView.cs: Fixed attributes
20289         * ButtonBase.cs: Fixed attribute
20290         * ImageList.cs: Added missing attributes
20291         * ContainerControl.cs: Fixed signature
20292         * CheckedListBox.cs: Fixed attribute; added missing attributes
20293         * Panel.cs: Fixed attributes
20294         * PropertyTabChangedEventArgs.cs: Added missing attribute
20295         * PropertyValueChangedEventArgs.cs: Added missing attribute
20296         * Binding.cs: Fixed attribute
20297         * ListViewItemConverter: Implemented ListViewSubItemConverter class
20298         * ListBox.cs: Fixed attribute; added missing attributes;
20299         * ScrollableControl.cs: Added missing attributes
20300         * PictureBox.cs: Added missing attributes; implemented missing property
20301         * DateTimePicker.cs: Added missing attributes
20302         * Theme.cs (ToolWindowCaptionHeight): Fixed type
20303         * MonthCalendar.cs: Fixed attributes
20304         * StatusBarPanel.cs: Added missing attributes
20305         * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
20306
20307 2005-02-16  Peter Bartok  <pbartok@novell.com>
20308
20309         * TextBoxBase.cs: The previous method to enforce height yet remember
20310           the requested high was less than ideal, this is an attempt to do
20311           it better.
20312         * Control.cs: Added comment about possible problem
20313         * Copyright: Updated format
20314         * GridItemType.cs: Fixed swapped values
20315
20316 2005-02-15  Jackson Harper  <jackson@ximian.com>
20317
20318         * BaseCollection.cs: Use property so we never access an
20319         uninitialized list. Also initialize the list in the property.
20320
20321 2005-02-15  Peter Bartok  <pbartok@novell.com>
20322
20323         * GroupBox.cs (ProcessMnemonic): Implemented
20324         * Label.cs (ProcessMnemonic): Implemented
20325         * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
20326           hotkeys
20327
20328 2005-02-15  Peter Bartok  <pbartok@novell.com>
20329
20330         * RadioButton.cs (ProcessMnemonic): Implemented
20331         * CheckBox.cs (ProcessMnemonic): Implemented
20332         * Control.cs:
20333           - Added handling of WM_SYSxxx keyboard messages to support mnemonic
20334             handling
20335           - Added internal method to allow calling ProcessMnemonic from other
20336             controls
20337         * ContainerControl.cs:
20338           - Started support for handling validation chain handling
20339           - Implemented ProcessMnemonic support
20340           - Added Select() call to Active, to make sure the active control
20341             receives focus
20342         * Form.cs: Setting toplevel flag for Forms (this was lost in the
20343           FormParent rewrite)
20344         * ThemeWin32Classic.cs:
20345           - DrawCheckBox(): Fixed stringformat to show hotkeys
20346           - DrawRadioButton(): Fixed stringformat to show hotkeys
20347         * CommonDialog.cs: Removed WndProc override, not needed
20348
20349 2005-02-14  Peter Bartok  <pbartok@novell.com>
20350
20351         * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
20352           missed those in the rewrite
20353
20354 2005-02-14  Miguel de Icaza  <miguel@novell.com>
20355
20356         * NumericUpDown.cs (Increment, ToString): Add.
20357         (DecimalPlaces): implement.
20358         
20359         Add attributes.
20360         
20361         * UpDownBase.cs: Add the designer attributes.
20362
20363 2005-02-13  Peter Bartok  <pbartok@novell.com>
20364
20365         * Panel.cs: Removed border_style, now in Control
20366         * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
20367           ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
20368
20369 2005-02-13  Peter Bartok  <pbartok@novell.com>
20370
20371         * MouseButtons.cs: Added missing attributes
20372         * XplatUIStructs.cs: Added enumeration for title styles
20373         * LeftRightAlignment.cs: Added missing attributes
20374         * Hwnd.cs: Switched to use client_window as handle (slower, but makes
20375           it compatible with Graphics.FromHwnd()
20376         * SelectedGridItemChangedEventArgs.cs: Fixed property type
20377         * Keys.cs: Added missing attributes
20378         * SelectionRange.cs: Added missing attributes
20379         * SelectionRangeConverter.cs: Added
20380         * XplatUI.cs:
20381           - Introduced SetBorderStyle, SetMenu, GetMenuDC and
20382             ReleaseMenuDC methods
20383           - Renamed ReleaseWindow to UngrabWindow
20384           - Added proper startup notice to allow version identification
20385         * Form.cs:
20386           - Added missing attributes
20387           - Removed FormParent concept
20388         * Label.cs: Removed border_style field, now in Control
20389         * RadioButton.cs: Now properly selects RadioButton when focus is
20390           received
20391         * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
20392         * Control.cs:
20393           - Added missing attributes
20394           - Added borderstyle handling
20395           - Removed FormParent concept support
20396           - Fixed calls to XplatUI to match changed APIs
20397           - Fixed bug that would case us to use disposed Graphics objects
20398           - Removed unneeded internal methods
20399           - PerformLayout(): Fixed to handle DockStyle.Fill properly
20400           - SelectNextControl(): Fixed to properly check common parents
20401         * TextBoxBase.cs: Removed border_style field (now in Control)
20402         * MessageBox.cs:
20403           - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
20404             fixed calculations for form size
20405           - Added support for localized strings and icons
20406           - Improved form size calculations, added border
20407         * ListView.cs: Removed border_style field (now in Control)
20408         * X11Structs.cs: Moved several structs from X11 driver here
20409         * X11Keyboard.cs: Changed debug message
20410         * Application.cs: Removed FormParent concept support
20411         * CommonDialog.cs:
20412           - Resetting end_modal flag
20413           - Removed FormParent concept support
20414         * NativeWindow.cs: Removed FormParent concept support
20415         * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
20416           Client area and Non-Client whole window to allow support for WM_NC
20417           messages
20418         * XplatUIOSX.cs: Updated to match latest driver spec; added exception
20419           prevent using it until it supports Hwnd as per Geoff Norton's request
20420         * ToolBar.cs: Fixed drawing, was not doing proper drawing
20421         * PictureBox.cs: Removed border_style field, now in Control
20422         * XplatUIWin32.cs: Added new driver methods
20423
20424 2005-02-12  Peter Bartok  <pbartok@novell.com>
20425
20426         * OpacityConverter.cs: Implemented
20427         * Hwnd.cs: Internal class to support drivers that need to emulate
20428           client area/non-client area window behaviour
20429
20430 2005-02-11  Peter Bartok  <pbartok@novell.com>
20431
20432         * KeysConverter.cs: Implemented
20433
20434 2005-02-11  Jordi Mas i Hernandez <jordi@ximian.com>
20435
20436         * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
20437         * LinkLabel: Added missing attributes
20438         * MainMenu.cs: fixes ToString
20439         * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
20440         * ListBox.cs: fixes event position
20441         * TrackBar.cs: adds missing attributes and events
20442         
20443 2005-02-10  Jordi Mas i Hernandez <jordi@ximian.com>
20444
20445         * MenuItem.cs: Use SystemInformation and bug fixes
20446         * MenuAPI.cs: Use SystemInformation and bug fixes
20447
20448 2005-02-09  Jackson Harper  <jackson@ximian.com>
20449
20450         * X11Keyboard.cs: We ignore some keys, but still need to set/reset
20451         their keystate otherwise things like VK_MENU get stuck "on".
20452
20453 2005-02-09  Kazuki Oikawa <kazuki@panicode.com>
20454
20455         * ListBox.cs: Fixes AddRange bug
20456         
20457 2005-02-09  Jordi Mas i Hernandez <jordi@ximian.com>
20458
20459         * ProgressBar.cs
20460                 - Add missing attributes
20461                 - Add missing method
20462                 
20463         * CheckedListBox.cs: Added missing attributes
20464                 - Add missing attributes
20465                 - Remove extra method
20466         
20467         * ComboBox.cs: Added missing attributes
20468         * VScrollBar.cs: Added missing attributes
20469         * ScrollBar.cs:  Added missing attributes
20470         * ListBox.cs: Fixes signature, add missing consts
20471         * LinkArea.cs:   Added missing attributes
20472         
20473
20474 2005-02-08  Peter Bartok  <pbartok@novell.com>
20475
20476         * Menu.cs: Added missing attributes
20477         * MainMenu.cs: Added missing attributes
20478         * GroupBox.cs: Added missing attributes
20479         * Label.cs: Added missing attributes
20480         * CheckBox.cs: Implemented CheckBoxAccessibleObject class
20481         * ColorDialog.cs:
20482           - Added Instance and Options properties
20483           - Added missing attributes
20484         * Cursor.cs: Made Serializable
20485         * NotifyIcon: Added missing attributes
20486         * MenuItem.cs: Added missing attributes
20487         * TextBoxBase.cs: Implemented AppendText() and Select() methods
20488         * Panel.cs: Added Missing attributes
20489         * MonthCalendar.cs: Fixed CreateParams
20490
20491 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
20492         
20493         * LinkLabel.cs:
20494                 - Fixes signature
20495                 - Fixes issues with links
20496                 - Adds the class attributes
20497
20498 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
20499         
20500         * ComboBox.cs:
20501                 - Fixes button when no items available in dropdown
20502                 - Fixes repainting problems
20503                 - Adds the class attributes
20504                 
20505 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
20506
20507         * XplatUIOSX.cs: Detect the menu bar and title bar height from
20508         the current theme.  Cache these on startup.
20509
20510 2005-02-07  Jackson Harper  <jackson@ximian.com>
20511
20512         * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
20513         the scrollbar buttons when they are depressed.
20514
20515 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
20516
20517         * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
20518         Get the display size from the main displayid.  We currently dont
20519         support multiple display configurations.
20520
20521 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
20522
20523         * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
20524
20525 2005-02-07  Miguel de Icaza  <miguel@novell.com>
20526
20527         * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
20528
20529 2005-02-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
20530
20531         * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
20532
20533 2005-02-04  Jackson Harper  <jackson@ximian.com>
20534
20535         * ThemeWin32Classic.cs: Respect the clipping rect when
20536         drawing. Only fill the intersection of clips and rects so there
20537         isn't a lot of large fills.
20538         * ScrollBar.cs: Pass the correct clipping rect to the theme
20539         engine. Remove some debug code.
20540
20541 2005-02-05  John BouAntoun  <jba-mono@optusnet.com.au>
20542         
20543         * DateTimePicker.cs:
20544                 - Fixed crash on DateTime.Parse, use Constructor instead
20545
20546 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
20547         
20548         * MenuItem.cs:
20549         * MenuAPI.cs:
20550                 - Owner draw support (MeasureItem and DrawItem)
20551
20552 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
20553         
20554         *  Menu.cs:
20555                 - Implements FindMergePosition and MergeMenu functions (very poor documented)
20556                 - Fixes MenuItems.Add range
20557         * MenuItem.cs:
20558                 - MergeMenu and Clone and CloneMenu functions
20559
20560 2005-02-03  Jackson Harper  <jackson@ximian.com>
20561
20562         * ScrollBar.cs: Make abstract
20563         * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
20564         is abstract.
20565
20566 2005-02-03  Jackson Harper  <jackson@ximian.com>
20567
20568         * ScrollBar.cs: First part of my scrollbar fixups. This removes
20569         all the unneeded refreshes and uses invalidates with properly
20570         computed rects.
20571
20572 2005-02-03  Peter Bartok  <pbartok@novell.com>
20573
20574         * ComponentModel.cs: Added
20575         * IDataGridEditingService.cs: Added
20576         * Timer.cs: Added missing attributes
20577         * ToolTip.cs: Added missing attributes
20578
20579 2005-02-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
20580
20581         * PropertyGridView.cs: Added. Patch by Jonathan Chambers
20582
20583 2005-02-03  Peter Bartok  <pbartok@novell.com>
20584
20585         * ListBox.cs: Added missing attributes
20586
20587 2005-02-03  Jordi Mas i Hernandez <jordi@ximian.com>
20588         
20589         * ListBox.cs:
20590                 - Fixes font height after font change
20591                 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
20592                 
20593 2005-02-02  Peter Bartok  <pbartok@novell.com>
20594
20595         * HandleData.cs: Introduced static methods to allow class
20596           to be more self-contained and track it's own HandleData objects
20597         * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
20598           HandleData to use new static methods
20599
20600 2005-02-02  Jordi Mas i Hernandez <jordi@ximian.com>
20601
20602         * Combobox.cs:
20603                 - Fixes default size and PreferredHeight
20604                 - Missing events
20605                 - ObjectCollection.Insert implementation
20606                 
20607         * ListControl.cs
20608                 - Fixes signature
20609         * ListBox.cs:
20610                 - Several fixes
20611                 - ObjectCollection.Insert implementation
20612                 - No selection after clean
20613                 - Small fixes
20614
20615 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
20616
20617         * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
20618
20619 2005-02-01  Jordi Mas i Hernandez <jordi@ximian.com>
20620
20621         * Combobox.cs:
20622                 - Caches ItemHeight calculation for OwnerDrawVariable
20623                 - Handles dropdown properly
20624                 - Fixes several minor bugs
20625
20626 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
20627
20628         * ListBox.cs:
20629                 - Fixes 71946 and 71950
20630                 - Fixes changing Multicolumn on the fly
20631                 - Fixes keyboard navigation on Multicolumn listboxes
20632
20633 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
20634         
20635         * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
20636         crash reporter log.
20637
20638 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
20639
20640         * XplatUIOSX.cs: Allow applications to actually exit.
20641
20642 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
20643
20644         * XplatUIOSX.cs: SetWindowStyle implemented.  Reposition views in
20645         their parent at creation time rather than lazily later.  Fixes a major
20646         regression we were experiencing.
20647
20648 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
20649
20650         * ThemeWin32Classic.cs: more date time picker painting fixes
20651         * DateTimePicker.cs: more monthcalendar drop down fixes
20652         * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
20653
20654 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
20655
20656         * ScrollBar.cs:
20657                 - When moving the thumb going outside the control should stop the moving
20658                 - Adds the firing of missing events
20659                 - Fixes no button show if Size is not specified
20660                 - End / Home keys for keyboard navigation
20661
20662 2005-01-30  Peter Bartok  <pbartok@novell.com>
20663
20664         * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
20665           sanity check to prevent theoretical loop
20666         * XplatUIWin32.cs (SetVisible): Removed debug output
20667         * XplatUIX11.cs (SystrayChange): Added sanity check
20668         * ScrollableControl.cs (OnVisibleChanged): Now calls base method
20669         * Control.cs (OnVisibleChanged): Added workaround for ParentForm
20670           behaviour, valid until the X11 client window rewrite is done
20671         * TextBox.cs (ctor): Setting proper default foreground and background
20672           colors
20673
20674 2005-01-30      John BouAntoun  <jba-mono@optusnet.com.au>
20675
20676         * Theme: Added DrawDateTimePicker to interface
20677         * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
20678         * DateTimePicker.cs: Created (still needs keys and painting code)
20679         * DateTimePickerFormat.cs: added
20680         * MonthCalendar.cs: fixed CreateParams for popup window mode
20681           
20682 2005-01-29  Peter Bartok  <pbartok@novell.com>
20683
20684         * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
20685           this should also the calculations for ligher/darker
20686         * Theme.cs: Fixed defaults for ScrollBar widths/heights
20687
20688 2005-01-29  Peter Bartok  <pbartok@novell.com>
20689
20690         * ArrangeDirection.cs: Added
20691         * ArrangeStartingPositon.cs: Added
20692         * SystemInformation.cs: Implemented
20693         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
20694           XplatUIX11.cs, Theme.cs: Added/implemented new static properties
20695           used by SystemInformation class
20696         * X11Strucs.cs: Added XSizeHints structure
20697         * MenuAPI.cs:
20698           - Fixed CreateParams to make sure the menu window is always visible
20699           - TrackPopupMenu: Added check to make sure we don't draw the
20700             menu offscreen
20701
20702 2005-01-29  Peter Bartok  <pbartok@novell.com>
20703
20704         * HandleData.cs: Added method for altering invalid area
20705         * TextBoxBase.cs: Implemented TextLength
20706
20707 2005-01-28  Peter Bartok  <pbartok@novell.com>
20708
20709         * XplatUIX11.cs: Improvement over last patch, not sending
20710           the WM_PAINT directly anymore, instead we scroll any pending
20711           exposed areas and let the system pick out the WM_PAINT later
20712
20713 2005-01-28  Peter Bartok  <pbartok@novell.com>
20714
20715         * SWF.csproj: Deleted, no longer used. Instead,
20716           Managed.Windows.Forms/SWF.csproj should be used
20717         * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
20718           directly, to avoid a potential race condition with the next
20719           scroll
20720
20721 2005-01-28  Peter Bartok  <pbartok@novell.com>
20722
20723         * XplatUI.cs: Made class internal
20724
20725 2005-01-28  Jordi Mas i Hernandez <jordi@ximian.com>
20726
20727         * CheckedListBox.cs:
20728                 - Draw focus
20729                 - Fixed Drawing
20730                 - Missing methods and events
20731
20732 2005-01-27  Peter Bartok  <pbartok@novell.com>
20733
20734         * Application.cs (Run): Don't use form if we don't have one
20735
20736 2005-01-27  Peter Bartok  <pbartok@novell.com>
20737
20738         * TextBoxBase.cs (get_Lines): Fixed index off by one error
20739
20740 2005-01-27  Peter Bartok  <pbartok@novell.com>
20741
20742         * GridEntry.cs: Added; Patch by Jonathan S. Chambers
20743         * GridItem.cs: Added; Patch by Jonathan S. Chambers
20744         * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
20745         * GridItemType.cs: Added; Patch by Jonathan S. Chambers
20746         * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
20747         * PropertySort.cs: Added; Patch by Jonathan S. Chambers
20748         * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
20749         * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
20750         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
20751         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
20752         * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
20753         * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
20754
20755 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
20756
20757         * Combobox.cs:
20758                 - Draw focus on Simple Combobox
20759                 - Fixes drawing issues
20760                 - fixes 71834
20761
20762 2005-01-27  Peter Bartok  <pbartok@novell.com>
20763
20764         * Form.cs:
20765           - Place window in default location, instead of hardcoded 0/0
20766           - Send initial LocationChanged event
20767         * Control.cs:
20768           - UpdateBounds after creation to find out where the WM placed us
20769           - Make sure that if the ParentForm changes location the Form
20770             is notified
20771         * XplatUIX11.cs: XGetGeometry will not return the coords relative
20772             to the root, but to whatever the WM placed around us.
20773             Translate to root coordinates before returning toplevel
20774             coordinates
20775         * XplatUIWin32.cs: Removed debug output
20776         * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
20777           flag to GetWindowPos, to allow translation of coordinates on X11
20778
20779 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
20780
20781         * ListBox.cs: connect LostFocus Event
20782
20783 2005-01-27  Peter Bartok  <pbartok@novell.com>
20784
20785         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
20786           XplatUIX11.cs: Extended the Systray API
20787         * Form.cs: Removed debug output
20788         * Application.cs: Fixed focus assignment, always need to call
20789           XplatUI.Activate() since Form.Activate() has rules that may
20790           prevent activation
20791         * NotifyIcon.cs: Should be complete now
20792         * ToolTip.cs: Worked around possible timer bug
20793
20794 2005-01-27  Jackson Harper  <jackson@ximian.com>
20795
20796         * TabControl.cs:
20797         - Only invalidate the effected tabs when the
20798         selected index changes. This reduces drawing and gets rid of some
20799         flicker.
20800         - Only refresh if the tabs need to be shifted, otherwise only
20801         invalidate the slider button.
20802         - On windows the tabs are not filled to right if the slider is
20803         visible.
20804         
20805 2005-01-27  Jackson Harper  <jackson@ximian.com>
20806
20807         * TabControl.cs: Only refresh on mouseup if we are showing the
20808         slider. Also only invalidate the button whose state has changed.
20809
20810 2005-01-26  Peter Bartok  <pbartok@novell.com>
20811
20812         * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
20813         * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
20814           and SystrayRemove() methods
20815         * XplatUIOSX.cs: Stubbed Systray methods
20816         * XplatUIX11.cs:
20817           - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
20818             methods
20819           - Fixed broken XChangeProperty calls (marshalling messed up things)
20820         * X11Structs.cs: Added enums and structs required for Size hinting
20821         * NotifyIcon.cs: Added & implemented
20822
20823 2005-01-26  Jackson Harper  <jackson@ximian.com>
20824
20825         * TabControl.cs: Space vertically layed out tabs properly.
20826
20827 2005-01-26  Peter Bartok  <pbartok@novell.com>
20828
20829         * Form.cs (CreateClientParams): Always set the location to 0,0
20830           since we're a child window.
20831
20832         * Control.cs (SetVisibleCore): Always explicitly setting the location
20833           of a toplevel window, apparently X11 doesn't like to move windows
20834           while they're not mapped.
20835
20836 2005-01-26  Jackson Harper  <jackson@ximian.com>
20837
20838         * TabControl.cs: Implement FillToRight size mode with vertically
20839         rendered tabs.
20840
20841 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
20842
20843         * ControlPaint.cs, ThemeWin32Classic.cs
20844                 - Fixes DrawFocusRectangle
20845
20846 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
20847
20848         * MenuAPI.cs:
20849                 - MenuBar tracking only starts when item is first clicked
20850                 - Fixes menu hidding for multiple subitems
20851                 - Unselect item in MenuBar when item Executed
20852                 - Fixes bug 71495
20853
20854 2005-01-25  Jordi Mas i Hernandez <jordi@ximian.com>
20855
20856         * ListControl.cs:
20857                 - IsInputKey for ListBox
20858         * ListBox.cs:
20859                 - Focus item
20860                 - Shift and Control item selection
20861                 - Implement SelectionMode.MultiExtended
20862                 - Fixes RightToLeft
20863         * ComboBox.cs:
20864                 - IsInputKey implemented
20865                 - Do not generate OnTextChangedEdit on internal txt changes
20866                 
20867 2005-01-23  Peter Bartok  <pbartok@novell.com>
20868
20869         * AccessibleObject.cs: Partially implemented Select()
20870         * MonthCalendar.cs: Added missing attributes and events
20871         * Form.cs: Fixed CreateParams behaviour, now controls derived from
20872           form can properly override CreateParams.
20873         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
20874           XplatUIX11.cs: Dropped RefreshWindow method, not needed if
20875           Control performs Invalidate & Update
20876         * NativeWindow (CreateHandle): Added special handling for Form
20877           and Form.FormParent classes to allow overriding of From.CreateParams
20878         * Control.cs:
20879           - ControlNativeWindow: Renamed 'control' variable to more intuitive
20880             name 'owner'
20881           - ControlNativeWindow: Added Owner property
20882           - Removed usage of Refresh() on property changes, changed into
20883             Invalidate(), we need to wait until the queue is processed for
20884             updates, direct calls might cause problems if not all vars for
20885             Paint are initialized
20886           - Added call to UpdateStyles() when creating the window, to set any
20887             styles that CreateWindow might have ignored.
20888           - Added support for Form CreateParent overrides to UpdateStyles()
20889         * MessageBox.cs: Removed no longer needed FormParent override stuff,
20890           CreateParams are now properly overridable
20891         * CommonDialog.cs: Removed no longer needed FormParent override stuff,
20892           CreateParams are now properly overridable
20893
20894 2005-01-23  Miguel de Icaza  <miguel@ximian.com>
20895
20896         * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
20897         OnTextBoxChanged.
20898
20899         Capture LostFocus and OnTextBoxChanged.  The later introduces a
20900         recursive invocation that I have not figured out yet.
20901
20902         Reset the timer when not using (it was accumulating).
20903
20904
20905         (OnTextBoxChanged): Set UserEdit to true here to track whether the
20906         user has made changes that require validation.
20907
20908         Reset changing to avoid loops.
20909
20910 2005-01-22  Miguel de Icaza  <miguel@ximian.com>
20911
20912         * NumericUpDown.cs: Display value at startup.
20913
20914         * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
20915         ValidateEditText.
20916
20917         * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
20918         filled in.  Added some basic parsing of text.
20919
20920         Still missing the OnXXX method overrides, and figuring out the
20921         events that must be emitted.
20922
20923         * UpDownBase.cs: Handle UserEdit on the Text property.
20924         
20925 2005-01-22  Jordi Mas i Hernandez <jordi@ximian.com>
20926
20927         * ComboBox.cs:
20928           - Fixes IntegralHeight
20929           - ToString method
20930
20931 2005-01-21  Jackson Harper  <jackson@ximian.com>
20932
20933         * TabControl.cs: Set the SelectedIndex property when SelectedTab
20934         is set so that the page visibility is updated and the tabs are
20935         sized correctly.
20936
20937 2005-01-21  Jackson Harper  <jackson@ximian.com>
20938
20939         * TabControl.cs: Use cliping rectangle for blitting. Give the
20940         theme the clipping rect so we can do clipping while
20941         drawing. Remove some debug code.
20942
20943 2005-01-21  Jackson Harper  <jackson@ximian.com>
20944
20945         * TabPage.cs: Add a new method so tab pages can force the tab
20946         control to recalculate the tab page sizes.
20947         * TabControl.cs: UpdateOwner needs to make the tab control recalc
20948         sizes.
20949
20950 2005-01-20  Jackson Harper  <jackson@ximian.com>
20951
20952         * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
20953
20954 2005-01-20  Jackson Harper  <jackson@ximian.com>
20955
20956         * TreeView.cs: Set the bounds for nodes properly. They were
20957         getting screwed up when checkboxes were not enabled, but images
20958         were.
20959
20960 2005-01-20  Jordi Mas i Hernandez <jordi@ximian.com>
20961
20962         * ListBox.cs:
20963                 - Owner draw support
20964                 - Fixes
20965                 
20966 2005-01-20  Jackson Harper  <jackson@ximian.com>
20967
20968         * XplatUIStructs.cs: More misc keys
20969         * X11Keyboard.cs: Ignore some control keys.
20970
20971 2005-01-20  Jackson Harper  <jackson@ximian.com>
20972
20973         * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
20974         * X11Keyboard.cs: Set the AltGr mask when we get a key event.
20975
20976 2005-01-19  Peter Bartok  <pbartok@novell.com>
20977
20978         * Control.cs: Un-selecting the control when it is loosing focus
20979
20980 2005-01-19  Jackson Harper  <jackson@ximian.com>
20981
20982         * TreeView.cs: Hook up to the text controls leave event so we can
20983         end editing when the users clicks outside the text box.
20984         
20985 2005-01-19  Jackson Harper  <jackson@ximian.com>
20986
20987         * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
20988         get set in the conversion array.
20989
20990 2005-01-19  Peter Bartok  <pbartok@novell.com>
20991
20992         * Application.cs (ModalRun): Added a call to CreateControl to ensure
20993           focus is properly set
20994         * Button.cs:
20995           - Added missing attributes
20996           - removed styles, those are already set in the base class
20997         * ButtonBase.cs:
20998           - Added missing attributes
20999           - Added clip window styles
21000         * CheckBox.cs: Added missing attributes
21001         * CommonDialog.cs:
21002           - FormParentWindow.CreateParams: Added required clip styles
21003         * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
21004           also filters modifier keys
21005         * MessageBox.cs:
21006           - Added assignment of Accept and Cancel button to enable Enter
21007             and Esc keys in MessageBox dialogs
21008           - FormParentWindow.CreateParams: Added required clip styles
21009         * RadioButton.cs: Added missing attributes
21010         * TextControl.cs: No longer draws selection if control does not
21011           have focus
21012         * TextBoxBase.cs:
21013           - Now draws simple rectangle around test area to make it obvious
21014             there's a control. This is a hack until we properly support borders
21015           - A few simple fixes to support selections better, now erases selected
21016             text when typing, and resets selection when using movement keys
21017
21018 2005-01-19  Miguel de Icaza  <miguel@ximian.com>
21019
21020         * UpDownBase.cs: Added some new properties.
21021
21022         * DomainUpDown.cs: Implement a lot to get my test working.
21023
21024 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
21025
21026         * XplatUIOSX.cs: Fix a minor bug to bring the close box back
21027
21028 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
21029
21030         * OSXStructs (WindowAttributes): Fixed csc complaints
21031
21032 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
21033
21034         * XplayUIOSX.cs:
21035           OSXStructs.cs: Initial refactor to move enums and consts into
21036           OSXStructs and use them in the driver for greater readability.
21037
21038 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
21039
21040         * XplatUIOSX.cs: Initial support for Standard Cursors.
21041         * OSXStructs.cs: Move our structs here; added ThemeCursor enum
21042
21043 2005-01-19  Jordi Mas i Hernandez <jordi@ximian.com>
21044
21045         * ComboBox.cs: ability to change style when the ctrl is already
21046         created, missing methods and events, bug fixes, signature fixes
21047
21048 2005-01-19  Peter Bartok  <pbartok@novell.com>
21049
21050         * Cursors.cs (ctor): Added ctor to fix signature
21051
21052 2005-01-18  Peter Bartok  <pbartok@novell.com>
21053
21054         * Button.cs: Implemented DoubleClick event
21055         * ButtonBase.cs:
21056           - Fixed keyboard handling to behave like MS, where the press of
21057             Spacebar is equivalent to a mousedown, and the key release is
21058             equivalent to mouseup. Now a spacebar push will give the same
21059             visual feedback like a mouse click.
21060           - Added missing attributes
21061           - Added ImeModeChanged event
21062           - Added support for generating DoubleClick event for derived classes
21063         * CheckBox.cs:
21064           - Implemented DoubleClick event
21065           - Added missing attributes
21066         * CommonDialog.cs: Added missing attribute
21067         * ContextMenu.cs: Added missing attributes
21068         * RadioButton.cs:
21069           - AutoChecked buttons do not allow to be unselected when clicked
21070             (otherwise we might end up with no selected buttons in a group)
21071           - Added missing attributes
21072           - Implemented DoubleClickEvent
21073         * ThreadExceptionDialog.cs: Enabled TextBox code
21074
21075 2005-01-18  Peter Bartok  <pbartok@novell.com>
21076
21077         * Form.cs: Removed debug output
21078         * Button.cs: Added support for DoubleClick method
21079
21080 2005-01-18  Peter Bartok  <pbartok@novell.com>
21081
21082         * Form.cs:
21083           - Added method to parent window that allows triggering size
21084             calculations when a menu is added/removed
21085           - set_Menu: Cleaned up mess from early days of Form and Control,
21086             now properly triggers a recalc when a menu is added/removed
21087           - Added case to select form itself as focused form if no child
21088             controls exist
21089           - Added PerformLayout call when showing dialog, to ensure properly
21090             placed controls
21091         * Control.cs:
21092           - Select(): Made internal so Form can access it
21093           - Focus(): Only call Xplat layer if required (avoids loop), and sets
21094             status
21095         * Application.cs (Run): Removed hack and calls PerformLayout instead
21096           to trigger calculation when Form becomes visible
21097
21098 2005-01-18  Jordi Mas i Hernandez <jordi@ximian.com>
21099
21100         * ComboBox.cs: fixes for ownerdraw
21101
21102 2005-01-18  Peter Bartok  <pbartok@novell.com>
21103
21104         * TextControl.cs:
21105           - Sentinel is no longer static, each Document gets it's own, this
21106             avoids locking or alternatively overwrite problems when more
21107             than one text control is used simultaneously.
21108           - Switched to use Hilight and HilightText brushes for text selection
21109
21110         * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
21111
21112 2005-01-18  Peter Bartok  <pbartok@novell.com>
21113
21114         * Control.cs:
21115           - Hooked up the following events:
21116                 o ControlAdded
21117                 o ControlRemoved
21118                 o HandleDestroyed
21119                 o ImeModeChanged
21120                 o ParentChanged
21121                 o TabStopChanged
21122                 o Invalidated
21123                 o SystemColorsChanged
21124                 o ParentFontChanged
21125                 o Move
21126           - Removed debug output
21127           - Added a call to the current theme's ResetDefaults when a color change
21128             is detected
21129         * Form.cs: Now setting the proper ImeMode
21130         * Theme.cs: Defined a method to force recreation of cached resources
21131           and rereading of system defaults (ResetDefaults())
21132         * ThemeWin32Classic.cs: Added ResetDefaults() stub
21133
21134 2005-01-17  Peter Bartok  <pbartok@novell.com>
21135
21136         * Control.cs: Added missing attributes
21137
21138 2005-01-17  Jackson Harper  <jackson@ximian.com>
21139
21140         * TreeNode.cs: Implement editing. Add missing properties selected
21141         and visible.
21142         * TreeView.cs: Implement node editing. Also some fixes to use
21143         Invalidate (invalid area) instead of Refresh when selecting.
21144
21145 2005-01-17  Peter Bartok  <pbartok@novell.com>
21146
21147         * Control.cs:
21148           - Implemented InvokeGotFocus() method
21149           - Implemented InvokeLostFocus() method
21150           - Implemented InvokePaint() method
21151           - Implemented InvokePaintBackground() method
21152           - Implemented InvokeClick() method
21153           - Implemented FindForm() method
21154           - Implemented RectangleToClient() method
21155           - Implemented ClientToRectangle() method
21156           - Implemented ResetBackColor() method
21157           - Implemented ResetCursor() method
21158           - Implemented ResetFont() method
21159           - Implemented ResteForeColor() method
21160           - Implemented ResetImeMode() method
21161           - Implemented ResetLeftToRight() method
21162           - Implemented ResetText() method
21163           - Implemented Scale() methods
21164           - Implemented ScaleCore() method
21165           - Implemented Update() method
21166           - Removed unused variables
21167           - Stubbed AccessibilityNotifyClients and
21168             ControlAccessibleObject.NotifyClients() methods (dunno what to do
21169             with those yet)
21170           - Now setting proper default for RightToLeft property
21171           - Fixed bug in SetClientSizeCore that would cause windows to get
21172             really big
21173           - Now sending Click/DoubleClick events
21174           - Now selecting controls when left mouse button is clicked on
21175             selectable control
21176         * AccessibleEvents.cs: Added
21177         * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
21178         * XplatUIOSX.cs: Stubbed UpdateWindow() method
21179         * XplatUIWin32.cs: Implemented UpdateWindow() method
21180         * XplatUIX11.cs: Implemented UpdateWindow() method
21181         * Form.cs: Removed stray semicolon causing CS0162 warning
21182         * ThemeWin32Classic.cs: Fixed unused variable warnings
21183         * ScrollableControl.cs: Now calls base method for ScaleCore
21184         * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
21185           style to avoid interference with internal click handler (which is
21186           different than standard Control click handling)
21187         * RadioButton.cs:
21188           - Now unchecks all sibling radio buttons when control is
21189             selected (Fixes #68756)
21190           - Removed internal tabstop variable, using the one inherited from
21191             Control
21192
21193 2005-01-17  Jackson Harper  <jackson@ximian.com>
21194
21195         * NavigateEventArgs.cs: Fix base type.
21196         * LinkLabel.cs: Sig fix
21197         
21198 2005-01-17  Jackson Harper  <jackson@ximian.com>
21199
21200         * TreeView.cs: Only invalidate the effected nodes bounds when
21201         selecting nodes.
21202
21203 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
21204
21205         * XplatUIWin32.cs: fixes Win32 marshaling
21206         * XplatUIX11.cs: fixes method signature
21207
21208 2005-01-17  Peter Bartok  <pbartok@novell.com>
21209
21210         * XplatUIX11.cs: Clean up resources when we no longer need them
21211
21212 2005-01-17  Peter Bartok  <pbartok@novell.com>
21213
21214         * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
21215           OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
21216           and DestroyCursor() methods.
21217         * Cursor.cs: Partially implemented, now supports standard cursors;
21218           still contains some debug code
21219         * Cursors.cs: Implemented class
21220         * Control.cs:
21221           - WndProc(): Added handling of WM_SETCURSOR message, setting the
21222             appropriate cursor
21223           - Implemented Cursor property
21224           - Replaced break; with return; more straightforwar and possibly
21225             faster
21226           - Now properly setting the result for WM_HELP
21227         * X11Structs.cs: Added CursorFontShape enum
21228         * XplatUIStructs.cs:
21229           - Added StdCursor enum (to support DefineStdCursor() method)
21230           - Added HitTest enum (to support sending WM_SETCURSOR message)
21231         * XplatUIX11.cs:
21232           - Now sends the WM_SETCURSOR message
21233           - Implemented new cursor methods
21234         * XplatUIOSX.cs: Stubbed new cursor methods
21235         * XplatUIWin32.cs:
21236           - Implemented new cursor methods
21237           - Added GetSystemMetrics function and associated enumeration
21238
21239 2005-01-15  Peter Bartok  <pbartok@novell.com>
21240
21241         * Control.cs:
21242           - WndProc(): Now handles EnableNotifyMessage
21243           - SelectNextControl(): Fixed bug where if no child or sibling
21244             controls exist we looped endlessly
21245
21246 2005-01-14  Jackson Harper  <jackson@ximian.com>
21247
21248         * TreeView.cs: Recalculate the tab pages when a new one is added
21249         so that the proper bounding rects are created.
21250
21251 2005-01-14  Jackson Harper  <jackson@ximian.com>
21252
21253         * TreeView.cs: Draw a gray box instead of a grip in the lower
21254         right hand corner when there are both horizontal and vertical
21255         scroll bars.
21256
21257 2005-01-14  Jackson Harper  <jackson@ximian.com>
21258
21259         * Control.cs: When erasing backgrounds use FromHwnd instead of
21260         FromHdc when there is a NULL wparam. This occurs on the X driver.
21261         * XplatUIX11.cs: Set the wparam to NULL.
21262
21263 2005-01-13  Jackson Harper  <jackson@ximian.com>
21264
21265         * PictureBox.cs: Implement missing methods (except ToString, need
21266         to test that on windows) and events. When visibility is changed we
21267         need to redraw the image because the buffers are killed. When size
21268         is changed refresh if the sizemode needs it.
21269
21270 2005-01-13  Peter Bartok  <pbartok@novell.com>
21271
21272         * Control.cs (SelectNextControl): Was using wrong method to select
21273           a control
21274
21275 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
21276
21277         * ComboBox.cs: fixes dropstyle
21278
21279 2005-01-13  Peter Bartok  <pbartok@novell.com>
21280
21281         * Form.cs:
21282           - Implemented Select() override
21283           - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
21284           - Now sets keyboard focus on startup
21285         * Control.cs (SelectNextControl): Now properly handles directed=true
21286         * TextBoxBase.cs:
21287           - WndProc: Now passes tab key on to base if AcceptTabChar=false
21288           - Added (really bad) focus rectangle (mostly for testing)
21289         * TextBox.cs: Added code to handle getting/loosing focus and invalidating
21290           to enforce redraw on focus changes
21291         * ContainerControl.cs:
21292           - Fixed detection of Shift-Tab key presses
21293           - Fixed traversal with arrow keys
21294         * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
21295           gonna keep this or if it's complete yet
21296         
21297 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
21298
21299         * ComboBox.cs: missing properties, fixes
21300
21301 2005-01-13  Peter Bartok  <pbartok@novell.com>
21302
21303         * Panel.cs (ctor): Setting Selectable window style to off
21304         * Splitter.cs (ctor): Setting Selectable window style to off
21305         * GroupBox.cs (ctor): Setting Selectable window style to off
21306         * Label.cs (ctor): Setting Selectable window style to off
21307
21308 2005-01-12  Miguel de Icaza  <miguel@ximian.com>
21309
21310         * UpDownBase.cs (InitTimer): If the timer has been already
21311         created, enable it.
21312
21313         Use a TextBox instead of a Label.
21314
21315 2005-01-12  Jackson Harper  <jackson@ximian.com>
21316
21317         * TreeView.cs: Refresh the tree after sorting the nodes. Always
21318         draw the connecting node lines (when ShowLines is true).
21319         * TreeNode.cs: The nodes index can now be updated. This is used
21320         when a node collection is sorted.
21321         * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
21322         insert or an existing unsorted node collection can be sorted.
21323         
21324 2005-01-12  Peter Bartok  <pbartok@novell.com>
21325
21326         * ContainerControl.cs: Implemented ProcessDialogKeys()
21327
21328 2005-01-12  Peter Bartok  <pbartok@novell.com>
21329
21330         * Control.cs:
21331           - Implemented SelectNextControl() method
21332           - Several focus related bug fixes
21333           - Fixed Docking calculations to match MS documentation and
21334             behaviour
21335
21336 2005-01-12  Jordi Mas i Hernandez <jordi@ximian.com>
21337
21338         * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
21339         bug fixes
21340
21341 2005-01-12  Peter Bartok  <pbartok@novell.com>
21342
21343         * Control.cs:
21344           - Fixed broken Contains() method
21345           - Implemented GetNextControl() method. Finally. This is the pre-
21346             requisite for focus handling.
21347
21348 2005-01-12  Peter Bartok  <pbartok@novell.com>
21349
21350         * OSXStrucs.cs: Added
21351
21352 2005-01-12  Peter Bartok  <pbartok@novell.com>
21353
21354         * XplatUIWin32.cs:
21355           - Removed PeekMessageFlags
21356           - Implemented SetWindowStyle() method
21357         * XplatUIStructs.cs: Added PeekMessageFlags
21358         * X11Structs: Added missing border_width field to XWindowChanges struct
21359         * XplatUIX11.cs:
21360           - PeekMessage: Now throws exception if flags which are not yet
21361             supported are passed
21362           - Implemented SetWindowStyle() method
21363           - Fixed SetZOrder to handle AfterHwnd properly
21364         * XplatUI.cs: Added SetWindowStyle() method
21365         * XplatUIDriver.cs: Added SetWindowStyle() abstract
21366         * Control.cs:
21367           - Implemented UpdateStyles() method
21368           - Implemented UpdateZOrder() method
21369         * XplatUIOSX.cs: Added SetWindowStyle() stub
21370
21371 2005-01-12  Geoff Norton  <gnorton@customerdna.com>
21372
21373         * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
21374         button mouse).
21375
21376
21377 2005-01-11  Jackson Harper  <jackson@ximian.com>
21378
21379         * TreeView.cs: Still need to draw lines to siblings even if out of
21380         the current node is out of the clip.
21381
21382 2005-01-11  Jackson Harper  <jackson@ximian.com>
21383
21384         * TreeView.cs: When setting the hbar/vbar/grip position use
21385         SetBounds so that perform layout is only called once. Also suspend
21386         and resume layout so layout is only done once for all controls.
21387         - Removed some debug fluff
21388         * SizeGrip.cs: Call base implmentation in overriding methods.
21389         - When visibility is changed the drawing buffers are killed so we
21390         need to redraw.
21391
21392 2005-01-11  Jackson Harper  <jackson@ximian.com>
21393
21394         * TreeView.cs: Calculate the open node count while drawing. This
21395         saves us an entire tree traversal for every paint operation. Use
21396         a member var for the open node count so less vars are passed around.
21397
21398 2005-01-11  John BouAntoun  <jba-mono@optusnet.com.au>
21399
21400         * MonthCalendar.cs:
21401         - fixed selection to use mousemove, not mouse polling on timer
21402         * ThemeWin32Classic.cs
21403         - removed redundant unused variable "no_more_content"
21404         
21405 2005-01-11  Peter Bartok  <pbartok@novell.com>
21406
21407         * XplatUIX11.cs (DoEvents): Needs to return when no more events
21408           are pending, so it now calls PeekMessage instead of GetMessage;
21409           implemented a incomplete version of PeekMessage
21410         
21411 2005-01-11  Peter Bartok  <pbartok@novell.com>
21412
21413         * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
21414           I18n issues
21415         * TextBoxBase.cs: Added sending of TextChanged event
21416
21417 2005-01-10  Jackson Harper  <jackson@ximian.com>
21418
21419         * TreeView.cs: Try not to draw outside the clipping rectangle on
21420         each node element.
21421
21422 2005-01-10  Jordi Mas i Hernandez <jordi@ximian.com>
21423
21424         * ComboBox.cs: keyboard navigation, item navigation, bug fixes
21425
21426 2005-01-10  Jackson Harper  <jackson@ximian.com>
21427
21428         * TreeView.cs:
21429         - Implement fast scrolling. Now only the newly
21430         exposed nodes are drawn and the old image is moved using the
21431         XplatUI::ScrollWindow method.
21432         - Factor in height of nodes when calculating whether or not the
21433         node is in the clipping rect.
21434
21435 2005-01-10  Jackson Harper  <jackson@ximian.com>
21436
21437         * TreeNodeCollection.cs: Refresh the tree when a new node is added.
21438
21439 2005-01-10  Peter Bartok  <pbartok@novell.com>
21440
21441         * Application.cs: Added temporary hack to resolve all our resize
21442           required issues on startup. This will get fixed properly at
21443           some point in the future
21444
21445 2005-01-10  Jackson Harper  <jackson@ximian.com>
21446
21447         * SizeGrip.cs: New internal class that is used as a sizing
21448         grip control...hence the name.
21449
21450 2005-01-10  Peter Bartok  <pbartok@novell.com>
21451
21452         * Control.cs: Implemented proper TabIndex handling, now assigning
21453           a tabindex when a control is added to a container
21454         * GroupBox.cs (ctor): Now sets the Container style bit, required
21455           for Control.GetNextControl()
21456
21457 2005-01-09  Jackson Harper  <jackson@ximian.com>
21458
21459         * TextBoxBase.cs: Clear window when scrolling (fixes build).
21460
21461 2005-01-09  Peter Bartok <pbartok@novell.com>
21462
21463         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
21464           XplatUIX11.cs: Added ability to control ScrollWindow expose and
21465           an overload for ScrollWindow to allow only scrolling a rectangle
21466
21467 2005-01-09  Peter Bartok <pbartok@novell.com>
21468
21469         * Form.cs:
21470           - Implemented SetDesktopBounds method
21471           - Implemented SetDesktopLocation method
21472
21473 2005-01-08  Jackson Harper  <jackson@ximian.com>
21474
21475         * TreeView.cs: Only set the vbar's Maximum and LargeChange when
21476         the node count has changed, this removes to VScroll::Refresh calls
21477         when drawing.
21478
21479 2005-01-08  Geoff Norton  <gnorton@customerdna.com>
21480
21481         * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
21482
21483 2005-01-07  Jackson Harper  <jackson@ximian.com>
21484
21485         * TreeNode.cs: Just update the single node when it is
21486         checked. Don't refresh after toggling, the Expand/Collapse already
21487         handles this.
21488         * TreeView.cs: Respect clipping a little more when drawing. Try
21489         not to redraw things that don't need to be redrawn. Just hide the
21490         scrollbars when they are no longer needed instead of removing
21491         them, so they don't have to be created again and again.
21492         
21493 2005-01-07  Geoff Norton  <gnorton@customerdna.com>
21494
21495         * XplatUIOSX.cs (SetCaretPos):  We need to translate the view
21496         coordinates to window space to place the caret properly, FIXED.
21497         Implement GetWindowState & SetWindowState
21498
21499 2005-01-06  Peter Bartok <pbartok@novell.com>
21500
21501         * Form.cs:
21502           - Implemented ClientSize property
21503           - Implemented DesktopBounds property
21504           - Implemented DesktopLocation property
21505           - Implemented IsRestrictedWindow property
21506           - Implemented Size property
21507           - Implemented TopLevel property
21508           - Implemented FormWindowState property
21509         * Control.cs:
21510           - Implemented GetTopLevel() method
21511           - Implemented SetTopLevel() method
21512         * X11Structs.cs (Atom):
21513           - Added AnyPropertyType definition
21514           - Added MapState definiton and updated XWindowAttribute struct
21515         * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
21516         * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
21517         * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
21518         * XplatUIWin32.cs:
21519           - Implemented GetWindowState() and SetWindowState() methods
21520           - Fixed Win32GetWindowLong return type
21521         * XplatUIX11.cs:
21522           - Introduced central function for sending NET_WM messages
21523           - Implemented GetWindowState() and SetWindowState() methods
21524         * TextBoxBase.cs (set_Lines):
21525           - Now uses Foreground color for text added via Text property (Duh!)
21526           - Added code to remember programmatically requested size (fixes
21527             behaviour when Multiline is set after Size)
21528           - Added AutoSize logic
21529
21530 2005-01-06  Jackson Harper  <jackson@ximian.com>
21531
21532         * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
21533
21534 2005-01-06  Jackson Harper  <jackson@ximian.com>
21535
21536         * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
21537         set to less then 0.
21538
21539 2005-01-06  Jackson Harper  <jackson@ximian.com>
21540
21541         * ScrollableControl.cs: Lazy init the scrollbars.
21542         
21543 2005-01-06  Jackson Harper  <jackson@ximian.com>
21544
21545         * Theme.cs: Speed up getting pens and solid brushes, by using
21546         their ARGB as a hash instead of tostring and not calling Contains.
21547
21548 2005-01-06  Peter Bartok <pbartok@novell.com>
21549
21550         * Form.cs:
21551           - Implemented OnActivated and OnDeactivate event trigger
21552           - Implemented Activate() method
21553           - Fixed ShowDialog() to activate the form that was active before
21554             the dialog was shown
21555         * XplatUIX11.cs:
21556           - Added global active_window var that tracks the currently active
21557             X11 window
21558           - Now always grabs Property changes from the root window to always
21559             catch changes on the active window property
21560           - Added code to PropertyNotify handler to send Active/Inactive
21561             messages when state changes. This puts X11 and Win32 en par on
21562             WM_ACTIVATE notifications (except for double notifications when
21563             the user clicks away from our modal window to another one of our
21564             windows)
21565
21566 2005-01-05  Jackson Harper  <jackson@ximian.com>
21567
21568         * ImageList.cs: Implment ctor
21569
21570 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
21571
21572         * XplatUIOSX.cs: Implement Activate/SetTopmost
21573
21574 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
21575
21576         * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
21577
21578 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
21579
21580         * XplatUIOSX.cs: Implement GetActive/SetFocus.
21581
21582 2005-01-05  Peter Bartok <pbartok@novell.com>
21583
21584         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
21585           XplatUIOSX.cs: Added GetActive method to return the currently
21586           active window for the application (or null, if none is active)
21587         * Form.cs:
21588           - Implemented ActiveForm
21589           - Commented out owner assignment for modal dialogs (causes problems
21590             on Win32, since the owner will be disabled)
21591           - Reworked some Active/Focus handling (still incomplete)
21592         * CommonDialog.cs: Commented out owner assignment for modal dialogs
21593           (causes problems on Win32, since the owner will be disabled)
21594         * IWin32Window: Added ComVisible attribute
21595
21596 2005-01-05  Peter Bartok <pbartok@novell.com>
21597
21598         * ToolTip.cs (WndProc): Enable setting focus now that we have the
21599           required XplatUI functions.
21600
21601 2005-01-05  Peter Bartok <pbartok@novell.com>
21602
21603         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
21604           XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
21605           to implement focus and activation handling; still incomplete and
21606           with debug output
21607
21608 2005-01-04  Peter Bartok <pbartok@novell.com>
21609
21610         * TextBoxBase.cs: Changed access level for Document property to
21611           match switch to internal for TextControl
21612
21613 2005-01-04  Peter Bartok <pbartok@novell.com>
21614
21615         * AccessibleObject: Added ComVisible attribute
21616
21617 2005-01-04  Jackson Harper  <jackson@ximian.com>
21618
21619         * X11Keyboard.cs: Remove unneeded var.
21620
21621 2005-01-04  Jackson Harper  <jackson@ximian.com>
21622
21623         * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
21624         but PAINT.
21625         * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
21626         ClientMessage. This makes apps exit cleanly (more often).
21627         
21628 2005-01-04  Jackson Harper  <jackson@ximian.com>
21629
21630         * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
21631         handling focus, return correct colors and fonts,
21632         * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
21633         handle selection, horizontal scrolling, and mouse interaction.
21634
21635 2005-01-04  Peter Bartok <pbartok@novell.com>
21636
21637         * ICommandExecutor.cs: Added
21638         * IDataGridColumnStyleEditingNotificationService.cs: Added
21639         * IFeatureSupport.cs: Added
21640         * IFileReaderService.cs: Added
21641         * IDataObject.cs: Added ComVisible attribute
21642         * AmbientProperties.cs: Added
21643         * BaseCollection.cs: Added missing attributes
21644         * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
21645         * BaseCollection.cs: Added missing attributes
21646         * Binding.cs: Added TypeConverter attribute
21647         * BindingContext.cs: Added DefaultEvent attribute
21648         * BindingsCollection.cs: Added DefaultEvent attribute
21649         * Button.cs: Added DefaultValue attribute
21650         * DragEventArgs.cs: Added ComVisible attribute
21651         * GiveFeedbackEventArgs.cs: Added ComVisible attribute
21652         * KeyEventArgs.cs: Added ComVisible attribute
21653         * KeyPressEventArgs.cs: Added ComVisible attribute
21654         * MouseEventArgs.cs: Added ComVisible attribute
21655         * NavigateEventArgs.cs: Added
21656         * NavigateEventHandler.cs: Added
21657         * FeatureSupport.cs: Added
21658         * OSFeature.cs: Added
21659         * Theme.cs: Added abstract Version property to support OSFeature
21660         * ThemeWin32Classic.cs: Added Version property to
21661           support OSFeature.Themes
21662         * ProgressBar.cs: Removed OnPaintBackground override, not required since
21663           the proper styles to avoid background drawing are set, also doesn't
21664           match MS signature
21665         * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
21666         * QueryContinueDragEventArgs.cs: Added ComVisible attribute
21667         * ScrollEventArgs.cs: Added ComVisible attribute
21668         * SplitterEventArgs.cs: Added ComVisible attribute
21669         * AccessibleSelection.cs: Added Flags attribute
21670         * Appearance.cs: Added ComVisible attribute
21671         * Border3DSide.cs: Added ComVisible attribute
21672         * Border3DStyle.cs: Added ComVisible attribute
21673         * BorderStyle.cs: Added ComVisible attribute
21674         * DragAction.cs: Added ComVisible attribute
21675         * ErrorBlinkStyle.cs: Added
21676         * ScrollEventType.cs: Added ComVisible attribute
21677         * AnchorStyles.cs: Added Editor attribute
21678         * DockStyle.cs: Added Editor attribute
21679         * HorizontalAlignment.cs: Added ComVisible attribute
21680         * HelpEventArgs.cs: Added ComVisible attribute
21681         * PaintEventArgs.cs: Added IDisposable
21682
21683 2005-01-04  Peter Bartok <pbartok@novell.com>
21684
21685         * TextControl.cs: Switched Line, LineTag and Document classes to
21686           internal
21687
21688 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
21689
21690         * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
21691         Simple mode, fixes, IntegralHeight, etc.
21692
21693 2005-01-04  Peter Bartok <pbartok@novell.com>
21694
21695         * TextBoxBase.cs: Using proper font variable now
21696
21697 2005-01-04  Peter Bartok <pbartok@novell.com>
21698
21699         * Form.cs (ShowDialog): Set parent to owner, if provided
21700         * GroupBox.cs: Removed unused vars
21701         * TextControl.cs:
21702           - Added GetHashCode() for Document and LineTag classes
21703           - Removed unused variables
21704           - Added CharIndexToLineTag() and LineTagToCharIndex() methods
21705             to allow translation between continuous char position and line/pos
21706         * CheckBox.cs: Removed vars that are provided by base class
21707         * RadioButton.cs: Removed vars that are provided by base class, added
21708           new keyword where required
21709         * LinkLabel.cs: Added new keyword where required
21710         * Control.cs (WndProc): Removed unused variable
21711         * TextBoxBase.cs:
21712           - Finished SelectionLength property
21713           - Implemented SelectionStart property
21714           - Implemented Text property
21715           - Removed unused vars
21716         * MessageBox.cs: Added new keyword where required
21717         * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
21718           WndProc signature
21719         * MenuAPI.cs: Added new keyword where required
21720         * ButtonBase.cs: Removed vars that are provided by base class, added
21721           new keyword where required
21722         * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
21723           argument to double, to allow compiling with csc 2.0 (Atsushi ran
21724           into this)
21725         * Application.cs (Run): Now triggers the ThreadExit event
21726         * CommonDialog.cs: Added new keyword where required; now properly sets
21727           parent (owner) for dialog
21728         * XplatUIX11.cs: Commented out unused vars
21729         * StatusBar.cs: Fixed signature for Text property
21730         * TabPage.cs: Undid Jordi's removal of unused var, now using the var
21731
21732 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
21733
21734         * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
21735         TrackBar.cs, MonthCalendar.cs: remove unused vars
21736
21737 2005-01-03  Jackson Harper  <jackson@ximian.com>
21738
21739         * ThemeWin32Classic.cs:
21740         * X11Keyboard.cs: Remove unused vars.
21741
21742 2005-01-03  Peter Bartok  <pbartok@novell.com>
21743
21744         * TextBox.cs:
21745           - set_Text: Tied into TextControl
21746           - set_TextAlignment: Tied into TextControl
21747         * TextControl.cs:
21748           - Added alignment properties and implemented alignment handling
21749             and drawing (still has a bug, not generating proper expose events)
21750           - Added new Line() constructor to allow passing the line alignment
21751           - Fixed selection setting, properly handling end<start now
21752           - Added aligment considerations to RecalculateDocument()
21753         * TextBoxBase.cs:
21754           - Now properly enforces control height for single line controls
21755           - Added support for CharacterCasing
21756           - Added IsInputKey override
21757           - Fixed Keys.Enter logic
21758           - Added SetBoundsCore override
21759           - Fixed mouse selection handling
21760
21761 2005-01-03  Jackson Harper  <jackson@ximian.com>
21762
21763         * TreeView.cs:
21764           - Collapse and uncheck all nodes when CheckBoxes is disabled.
21765           - Checkboxes are always aligned to the bottom of the node,
21766           regardless of item height.
21767           - Use the node bounds to draw the text so we can center it when
21768           the item height is greater then the font height.
21769           - Node::Bounds are only the text part of the node.
21770         * TreeNode.cs: New method to combine collapsing and unchecking all
21771           nodes recursively.
21772
21773 2005-01-02  Jackson Harper  <jackson@ximian.com>
21774
21775         * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
21776         * TreeNode.cs: Add a bounding box for the checkbox, refresh the
21777         tree when a check is changed. TODO: Only refresh the checked node.
21778
21779 2004-12-30  Jackson Harper  <jackson@ximian.com>
21780
21781         * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
21782         * TreeNode.cs: When collapsing make sure to never collapse the
21783         root node.
21784
21785 2004-12-29  Jackson Harper  <jackson@ximian.com>
21786
21787         * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
21788         
21789 2004-12-28  Zoltan Varga  <vargaz@freemail.hu>
21790
21791         * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
21792
21793 2004-12-28  Peter Bartok  <pbartok@novell.com>
21794
21795         * MessageBox.cs (get_CreateParams): Don't use owner var if it's
21796           not yet assigned
21797
21798 2004-12-28  Peter Bartok  <pbartok@novell.com>
21799
21800         * Control.cs (WndProc): Added WM_HELP handler, now generates
21801           HelpRequested event
21802         * Form.cs: Added HelpButton property and required support code
21803         * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
21804
21805 2004-12-28  Peter Bartok  <pbartok@novell.com>
21806
21807         * CommonDialog.cs:
21808           - Made DialogForm.owner variable internal
21809           - Added check to ensure owner form is set before setting
21810             owner properties in CreateParams
21811
21812 2004-12-28  Geoff Norton  <gnorton@customerdna.com>
21813
21814         * XplatUIOSX.cs: Implement mouse hovering.  Fix QDPoint struct to avoid
21815           swizzling.  Implement ClientToScreen and ScreenToClient.  Implement
21816           GetCursorPos.  Fix major visibility issues.  Rework the windowing
21817           system to support borderless/titleless windows (implements menus).
21818           Fix GetWindowPos.  Implement initial background color support for
21819           views.
21820
21821 2004-12-28  Peter Bartok  <pbartok@novell.com>
21822
21823         * Form.cs (get_CreateParams): Make sure we have an owner before using
21824           the owner variable. Implement proper default if no owner exists
21825
21826 2004-12-28  Peter Bartok  <pbartok@novell.com>
21827
21828         * In preparation for making Managed.Windows.Forms the default build target
21829           for System.Windows.Forms, the following stubbed files were added.
21830           Dialogs are currently being implemented by contributors and are only
21831           short-term place holders.
21832         * ColorDialog.cs: Initial check-in (minmal stub)
21833         * DataGrid.cs: Initial check-in (minimal stub)
21834         * DataGridLineStyle.cs: Initial check-in (minimal stub)
21835         * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
21836         * DataGridTableStyle.cs: Initial check-in (minimal stub)
21837         * FontDialog.cs: Initial check-in (minimal stub)
21838         * FileDialog.cs: Initial check-in (minimal stub)
21839         * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
21840         * GridTableStylesCollection.cs: Initial check-in (minimal stub)
21841         * OpenFileDialog: Initial check-in (minimal stub)
21842         * IComponentEditorPageSite.cs: Initial check-in
21843         * Splitter.cs: Initial check-in (for Jackson)
21844         * SplitterEventArgs.cs: Initial check-in (for Jackson)
21845         * SplitterEventHandler.cs: Initial check-in (for Jackson)
21846         * TextBox.cs: Initial check-in; still needs some wiring to
21847           TextControl backend
21848         * Form.cs: Implemented ControlBox property
21849         * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
21850         * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
21851         * TextControl.cs: Added selection functionality; added todo header
21852         * TextBoxBase.cs:
21853           - Implemented Lines property
21854           - Implemented TextHeight property
21855           - Implemented SelectedText property
21856           - Implemented SelectionLength property
21857           - Implemented SelectAll method
21858           - Implemented ToString method
21859           - Removed and cleaned up some debug code
21860           - Implemented (still buggy) mouse text selection
21861
21862 2004-12-27  Jordi Mas i Hernandez <jordi@ximian.com>
21863
21864         * ComboBox.cs: Complete DropDownList implementation, fixes.
21865
21866 2004-12-26  Jordi Mas i Hernandez <jordi@ximian.com>
21867
21868         * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
21869         * ComboBoxStyle.cs: ComboBoxStyle enum
21870         * ComboBox.cs: Initial work on ComboBox control
21871
21872 2004-12-21  Peter Bartok  <pbartok@novell.com>
21873
21874         * Control.cs (ctor, CreateParams): Moved setting of is_visible
21875           forward so that anything that creates a window gets the default,
21876           also no longer uses Visible property in CreateParams to avoid
21877           walking up the parent chain and possibly get the wrong visible
21878           status. Fixed IsVisible to no longer walk up to the parent.
21879
21880 2004-12-21  Peter Bartok  <pbartok@novell.com>
21881
21882         * Form.cs (ShowDialog): Unset modality for the proper window
21883  
21884 2004-12-20  Peter Bartok  <pbartok@novell.com>
21885
21886         * CommonDialog.cs: Initial check-in
21887
21888 2004-12-20  Peter Bartok  <pbartok@novell.com>
21889
21890         * Control.cs (Visible): Now uses the parent window instead of the
21891           client area window for the property
21892
21893         * Form.cs
21894           - ShowDialog(): Now uses the proper window for modality
21895           - The default visibility state for the form parent is now false. This
21896             will prevent the user from seeing all the changes to the form and
21897             its controls before the application hits Application.Run()
21898           - Removed some stale commented out code
21899
21900         * NativeWindow.cs:
21901           - Added FindWindow() method to have a method to check for existence
21902             of a window handle
21903           - Added ability to override default exception handling (for example
21904             when debugging with VS.Net; to do this the ExternalExceptionHandler
21905             define must be set
21906           - Removed some useless debug output
21907
21908         * XplatUIX11.cs:
21909           - Removed r37929 (SetModal patch from Ashwin Bharambe), was
21910             not working as expected
21911           - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
21912             property to allow switching back to the modal window if focus is
21913             given to another one of our windows (Application Modal)
21914           - Now only sets override_redirect if we create a window
21915             without WS_CAPTION
21916           - Moved EventMask selection before mapping of newly created window
21917             so we can catch the map event as well
21918           - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
21919           - Added various Atom related DllImports
21920           - Implemented Exit() method
21921           - .ctor() : No longer shows window if WS_VISIBLE is not defined
21922             in the CreateParams
21923
21924         * MessageBox.cs: Now properly deals with the FormParent window by
21925           providing an override the FormParent CreateParams property to
21926           set as POPUP instead of OVERLAPPED window.
21927
21928 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
21929
21930         * XplatUIOSX.cs: Implement DestroyWindow.  Implement ScrollWindow
21931         Minor code cleanup.
21932
21933 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
21934         
21935         * XplatUIOSX.cs (SetModal): Implement this method on OSX.
21936
21937 2004-12-18  Peter Bartok  <pbartok@novell.com>
21938
21939         * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
21940           implementing SetModal() method
21941
21942 2004-12-18  Peter Bartok  <pbartok@novell.com>
21943
21944         * X11Structs.cs (XGCValues): Fixed type of function element
21945         * XplatUI.cs: Added ScrollWindow() method
21946         * XplatUIDriver.cs: Added ScrollWindow() abstract
21947         * XplatUIWin32.cs: Implemented ScrollWindow() method
21948         * XplatUIX11.cs: Implemented ScrollWindow() method
21949         * XplatUIOSX.cs: Stubbed out ScrollWindow() method
21950
21951 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
21952
21953         * XplatUIOSX.cs:  Fix cursor to use an Invert instead of drawing it
21954         Some more keyboard support (INCOMPLETE)
21955
21956 2004-12-17  Peter Bartok  <pbartok@novell.com>
21957
21958         * TextControl.cs:
21959         - Added color attribute to line tags.
21960         - Added color argument to all functions dealing with tags
21961         - Added color argument support to various functions
21962         - Fixed miss-calculation of baseline/shift in certain circumstances
21963
21964         * TextBoxBase.cs: Added new color option to test code
21965
21966 2004-12-17  Jackson Harper  <jackson@ximian.com>
21967
21968         * TreeNode.cs:
21969         * MonthCalendar.cs: Signature fixes
21970
21971 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
21972
21973         * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
21974         keyboard event moved it.  Create a new graphics context for each paint resolves this
21975
21976 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
21977
21978         * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
21979         Make caret exist and go blink blink.  Initial keyboard support.
21980         Fix exception handler, Add Invalidate support.  Change way RefreshWindow
21981         works.
21982
21983 2004-12-17  Jackson Harper  <jackson@ximian.com>
21984
21985         * XplatUIStructs.cs: Updated set of virtual keycodes.
21986         * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
21987
21988 2004-12-17  Jackson Harper  <jackson@ximian.com>
21989
21990         * XplatUIX11.cs: Prune old keyboard code.
21991
21992 2004-12-17  Jackson Harper  <jackson@ximian.com>
21993
21994         * XplatUIX11.cs: When generating mouse wparams get the modifier
21995         keys from the ModifierKeys property.
21996
21997 2004-12-17  Jackson Harper  <jackson@ximian.com>
21998
21999         * X11Keyboard.cs: Send up/down input when generating
22000         messages. Remove some unused vars.
22001
22002 2004-12-17  Jackson Harper  <jackson@ximian.com>
22003
22004         * TabControl.cs:
22005         * TreeView.cs: get rid of warnings.
22006
22007 2004-12-17  Jackson Harper  <jackson@ximian.com>
22008
22009         * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
22010
22011 2004-12-17  Jordi Mas i Hernandez <jordi@ximian.com>
22012
22013         * ListBox.cs: bug fixes, changes for CheckedListBox.cs
22014           CheckedListBox.cs: Implementation
22015
22016 2004-12-17  Peter Bartok  <pbartok@novell.com>
22017
22018         * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
22019
22020 2004-12-16  Peter Bartok  <pbartok@novell.com>
22021
22022         * TextControl.cs:
22023           - InsertCharAtCaret(): Fixed start pos fixup
22024           - CaretLine_get: No longer derives the line from the tag, the tag
22025             could be stale if lines in the document have been added or deleted
22026           - RebalanceAfterDelete(): Fixed bug in balancing code
22027           - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
22028           - Line.Streamline(): Now can also elminate leading empty tags
22029           - DumpTree(): Added a few more tests and prevented exception on
22030             uninitialized data
22031           - Added Debug section for Combining lines
22032           - Delete(): Now copies all remaining properties of a line
22033           
22034         * TextBoxBase.cs:
22035           - Left mousebutton now sets the caret (and middle button still acts
22036             as formatting tester, which must go away soon)
22037           - Added Debug section for Deleting/Combining lines
22038           - Fixed calculations for UpdateView after Combining lines
22039
22040 2004-12-16  Peter Bartok  <pbartok@novell.com>
22041
22042         * TextControl.cs: Now properly aligns text on a baseline, using the
22043           new XplatUI.GetFontMetrics() method. Simplified several calculations
22044         * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
22045           defined
22046
22047 2004-12-16  Peter Bartok  <pbartok@novell.com>
22048
22049         * XplatUI.cs: Added GetFontMetrics() method
22050         * XplatUIDriver.cs: Added GetFontMetrics() abstract
22051         * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
22052           into libgdiplus, our private GetFontMetrics function
22053         * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
22054         * XplatUIWin32.cs: Implemented GetFontMetrics() method
22055
22056 2004-12-16  Jackson Harper  <jackson@ximain.com>
22057
22058         * XplatUIStruct.cs: Add enum for dead keys
22059         * X11Keyboard.cs: Map and unmap dead keys.
22060
22061 2004-12-16  Jackson Harper  <jackson@ximian.com>
22062
22063         * X11Keyboard.cs: Detect and use the num lock mask.
22064
22065 2004-12-16  Peter Bartok  <pbartok@novell.com>
22066
22067         * Control.cs (CreateGraphics): Added check to make sure the
22068           handle of the window exists before calling Graphics.FromHwnd()
22069
22070 2004-12-16  Peter Bartok  <pbartok@novell.com>
22071
22072         * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
22073           contains a lot of code that's not supposed to be there for the
22074           real thing, but required for developing/testing the textbox
22075           backend.
22076
22077 2004-12-16  Peter Bartok  <pbartok@novell.com>
22078
22079         * TextControl.cs:
22080         - Fixed Streamline method
22081         - Added FindTag method to Line
22082         - Added DumpTree method for debugging
22083         - Added DecrementLines() method for deleting lines
22084         - Fixed UpdateView to update the cursor to end-of-line on single-line
22085           updates
22086         - Added PositionCaret() method
22087         - Fixed MoveCaret(LineDown) to move into the last line, too
22088         - Added InsertChar overload
22089         - Fixed InsertChar tag offset calculations
22090         - Added DeleteChar() method
22091         - Added Combine() method for folding lines
22092         - Fixed Delete() method, no longer allocates wasted Line object and
22093           now copies all properties when swapping nodes
22094         - Delete() method now updates document line counter
22095
22096 2004-12-15  Jackson Harper  <jackson@ximian.com>
22097
22098         * XplatUIX11.cs: Get the modifier keys from the keyboard driver
22099         * X11Keyboard.cs: Expose the currently selected modifier keys
22100         through a property.
22101
22102 2004-12-15  Peter Bartok  <pbartok@novell.com>
22103
22104         * TextControl.cs: Initial check-in. Still incomplete
22105
22106 2004-12-15  Jackson Harper  <jackson@ximian.com>
22107
22108         * TreeNode.cs:
22109         * TreeView.cs: Fix build on csc (second time today ;-))
22110
22111 2004-12-15  Jackson Harper  <jackson@ximian.com>
22112
22113         * TreeView.cs: Store the treenodes plus/minus box bounds when it
22114         is calculated and use this for click testing.
22115         * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
22116
22117 2004-12-15  Jackson Harper  <jackson@ximian.com>
22118
22119         * TreeView.cs: Pass the nodes image index to the image list when
22120         drawing that image.
22121
22122 2004-12-15  Jackson Harper  <jackson@ximian.com>
22123
22124         * X11Keyboard.cs: Set messages hwnd.
22125         * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
22126         post_message calls.
22127
22128 2004-12-15  Jackson Harper  <jackson@ximian.com>
22129
22130         * X11Keyboard.cs: Fix to compile with csc.
22131         
22132 2004-12-15  Jackson Harper  <jackson@ximian.com>
22133
22134         * X11Structs.cs: Add key mask values
22135         * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
22136         * X11Keyboard.cs: New file - Extrapolates and interpolates key
22137         down/up foo into WM_CHAR foo
22138         * KeyboardLayouts.cs: Common keyboard layouts
22139         * XplatUIX11.cs: Add the keyboard driver. Add functionality to
22140         post messages into the main queue.
22141
22142 2004-12-13  Jordi Mas i Hernandez <jordi@ximian.com>
22143
22144         * Button.cs: implement ProcessMnemonic
22145         * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
22146           brushes everytime
22147         * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
22148         * ButtonBase.cs: Show HotkeyPrefix (not the &)
22149
22150 2004-12-12  John BouAntoun  <jba-mon@optusnet.com.au>
22151         
22152         * MonthCalendar.cs: Implemented click-hold for next/previous month
22153           and date selection
22154           
22155 2004-12-11  Peter Bartok  <pbartok@novell.com>
22156
22157         * X11Structs.cs:
22158           - Added XKeyboardState (moved from XplatUIX11.cs)
22159           - Added XCreateGC related enums and structures
22160           - Added GXFunction for XSetFunction
22161
22162         * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
22163
22164         * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
22165           CaretVisible() calls
22166
22167         * ToolTip.cs: Added code to prevent stealing focus from app windows
22168
22169         * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
22170           DestroyCaret, SetCaretPos and CaretVisible)
22171
22172         * XplatUIX11.cs:
22173           - Added implementation for caret functions
22174           - Moved hover variables into a struct, to make it a bit easier
22175             on the eyes and to debug
22176           - Removed XKeyboardState (moved to XplatUIX11.cs)
22177           - Moved Keyboard properties into the properties region
22178
22179         * Control.cs (get_Region): Control.CreateGraphics is the appropriate
22180           call to get a graphics context for our control
22181
22182         * XplatUIOSX.cs: Added empty overrides for the new caret functions
22183
22184         * TreeView.cs: Fixed bug. No matter what color was set it would always
22185           return SystemColors.Window
22186
22187         * XplatUIWin32.cs: Implemented caret overrides
22188
22189 2004-12-10  Jordi Mas i Hernandez <jordi@ximian.com>
22190
22191         * ListBox.cs: fire events, implement missing methods and properties,
22192         sorting.
22193
22194 2004-12-10  John BouAntoun <jba-mono@optusnet.com.au>
22195
22196         * MonthCalendar.cs: invalidation bug fixing
22197         * ThemeWin32Classic.cs: paint fixing
22198
22199 2004-12-09  Geoff Norton  <gnorton@customerdna.com>
22200
22201         * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
22202         prepare the CGContextRef there now.
22203
22204 2004-12-09  John BouAntoun <jba-mono@optusnet.com.au>
22205
22206         * MonthCalendar.cs:
22207           - optimisationL only invalidate areas that have changed
22208         * ThemeWin32Classic.cs:
22209           - only paint parts that intersect with clip_area
22210
22211 2004-12-09  Peter Bartok  <pbartok@novell.com>
22212
22213         * Application.cs: Undid changes from r37004 which cause problems
22214         on X11
22215
22216 2004-12-09  Ravindra  <rkumar@novell.com>
22217
22218         * ToolBar.cs: Added support for displaying ContextMenu
22219         attached to a button on ToolBar.
22220         * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
22221         property.
22222
22223 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
22224
22225         * Label.cs: autosize works in text change and removes unnecessary
22226         invalidate
22227
22228 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
22229
22230         * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
22231         remove warnings
22232
22233 2004-12-08  Geoff Norton  <gnorton@customerdna.com>
22234
22235         * XplatUIOSX.cs: Added mouse move/click/grab support
22236         Remove some debugging WriteLines not needed anymore.
22237         Add window resizing/positioning.
22238         Fix visibility on reparenting.
22239
22240 2004-12-08  Peter Bartok  <pbartok@novell.com>
22241
22242         * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
22243
22244 2004-12-07  Geoff Norton  <gnorton@customerdna.com>
22245
22246         * XplatUIOSX.cs: Initial checkin
22247         * XplatUI.cs: Use the Quartz driver if the environment is set to use it
22248
22249 2004-12-03  Ravindra <rkumar@novell.com>
22250
22251         * ListView.cs: Added some keybindings and fixed scrolling.
22252         ScrollBars listen to ValueChanged event instead of Scroll
22253         Event. This would let us take care of all changes being
22254         done in the scrollbars' values programmatically or manually.
22255         * ListView.cs (CanMultiselect): Added a check for shift key.
22256         * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
22257         * ListViewItem.cs (Clone): Fixed. We need to make a copy
22258         of ListViewSubItemCollection as well.
22259
22260 2004-12-06  Peter Bartok <pbartok@novell.com>
22261
22262         * Control.cs (Parent): Added check and exception to prevent
22263         circular parenting
22264
22265 2004-12-03  Jordi Mas i Hernandez <jordi@ximian.com>
22266
22267         * ListBox.cs: implemented clipping, selection single and multiple,
22268         bug fixing
22269
22270 2004-12-03  Ravindra <rkumar@novell.com>
22271
22272         * ListView.cs (ListView_KeyDown):
22273         * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
22274         when CTRL key is pressed.
22275         * ListViewItem.cs (Selected): Fixed setting the property.
22276
22277 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
22278
22279         * Application.cs (OnThreadException): Use ThreadExceptionDialog.
22280
22281         * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
22282         MinimizeBox, ShowInTaskbar, TopMost properties.
22283
22284         * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
22285         will be implemented).
22286
22287 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
22288
22289         * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
22290
22291         * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
22292         tests.
22293         
22294         * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
22295         
22296         * TreeView.cs: BackColor is Colors.Window.
22297
22298 2004-12-01  Jackson Harper  <jackson@ximian.com>
22299
22300         * TreeView.cs: When resizing the tree if the user is making it
22301         smaller we don't get expose events, so we need to handle adding
22302         the horizontal scrollbar in the size changed handler as well as
22303         the expose handler.
22304
22305 2004-12-02  Jordi Mas i Hernandez <jordi@ximian.com>
22306
22307         * DrawItemState.cs: fixes wrong enum values
22308
22309 2004-12-01  Jackson Harper  <jackson@ximian.com>
22310
22311         * TreeView.cs: Resize the hbar as well as the vbar on resize.
22312
22313 2004-12-01  Jackson Harper  <jackson@ximian.com>
22314
22315         * NodeLabelEditEventArgs.cs:
22316         * NodeLabelEditEventHandler.cs:
22317         * OpenTreeNodeEnumerator.cs:
22318         * TreeNode.cs:
22319         * TreeNodeCollection.cs:
22320         * TreeView.cs:
22321         * TreeViewAction.cs:
22322         * TreeViewCancelEventArgs.cs:
22323         * TreeViewCancelEventHandler.cs:
22324         * TreeViewEventArgs.cs:
22325         * TreeViewEventHandler.cs: Initial implementation.
22326
22327 2004-12-01  Ravindra <rkumar@novell.com>
22328
22329         * ListView.cs (CalculateListView): Fixed scrolling related
22330         calculations. Also, removed some debug statements from other
22331         places.
22332         * ListViewItem.cs: Changed access to 'selected' instance variable
22333         from private to internal.
22334         * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
22335
22336 2004-12-01  Jordi Mas i Hernandez <jordi@ximian.com>
22337
22338         * ThemeWin32Classic.cs: remove cache of brush and pens for
22339         specific controls and use the global system, fixes scrollbutton
22340         bugs (for small sizes, disabled, etc)
22341         
22342         * ScrollBar.cs: does not show the thumb for very small controls
22343         (as MS) and allow smaller buttons that the regular size
22344
22345 2004-12-01  Miguel de Icaza  <miguel@ximian.com>
22346
22347         * UpDownBase.cs: Add abstract methods for the interface.
22348         Add new virtual methods (need to be hooked up to TextEntry when it
22349         exists).
22350         Add override methods for most features.
22351         Computes the size, forces the height of the text entry.
22352
22353         * NumericUpDown.cs: Put here the current testing code.
22354
22355         * Set eol-style property on all files that do not have mixed line
22356         endings, to minimize the future problems.  There are still a few
22357         files with mixed endings, and someone should choose whether they
22358         want to move it or not.
22359
22360 2004-11-30  Jordi Mas i Hernandez <jordi@ximian.com>
22361
22362         * MonthCalendar.cs, ListView.cs: use Theme colours instead of
22363         System.Colors
22364         
22365 2004-11-30  Ravindra <rkumar@novell.com>
22366
22367         * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
22368         drawing and replaced use of SystemColors by theme colors.
22369         * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
22370         * ListView.cs (ListViewItemCollection.Add): Throw exception when
22371         same ListViewItem is being added more than once.
22372
22373 2004-11-30  John BouAntoun <jba-mono@optusnet.com.au>
22374
22375         * MonthCalendar.cs:
22376           - ControlStyles love to make the control not flicker
22377           
22378 2004-11-30  Peter Bartok  <pbartok@novell.com>
22379
22380         * CharacterCasing.cs: Added
22381
22382 2004-11-29  Peter Bartok  <pbartok@novell.com>
22383
22384         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
22385           TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
22386           I am removing these files as they conflict with already completed
22387           work. While it is fantastic to get contributions to MWF, I
22388           respectfully ask that everyone please coordinate their contributions
22389           through mono-winforms-list or #mono-winforms at this time. We're
22390           explicitly avoiding stubbing and don't want controls that don't have
22391           their basic functionality implemented in svn. Please also see
22392           http://www.mono-project.com/contributing/winforms.html
22393
22394
22395 2004-11-29  Marek Safar  <marek.safar@seznam.cz>
22396
22397         * Application.cs (ModalRun): Don't hang after exit.
22398
22399         * Theme.cs: New TreeViewDefaultSize property.
22400
22401         * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
22402         with less hardcoded SystemColors constant.
22403         Implemented TreeViewDefaultSize.
22404
22405         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
22406         TreeViewAction.cs, TreeViewEventArgs.cs: New files.
22407
22408
22409 2004-11-29  John BouAntoun <jba-mono@optusnet.com.au>
22410
22411         * MonthCalendar.cs:
22412           - Fix NextMonthDate and PrevMonthDate click moving calendar
22413
22414 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
22415
22416         * MonthCalendar.cs:
22417           - Fix usage of ScrollChange Property when scrolling months
22418
22419 2004-11-26  Jordi Mas i Hernandez <jordi@ximian.com>
22420
22421         * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
22422          - Fixes menu destroying
22423          - Support adding and removing items on already created menus
22424
22425 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
22426
22427         * MonthCalendar.cs:
22428           - Re-worked all bolded dates handling to match win32
22429         * ThemeWin32Classic.cs:
22430           - Fixed rendering with bolded dates
22431
22432 2004-11-25  Jordi Mas i Hernandez <jordi@ximian.com>
22433
22434         * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
22435         - Horizontal scroolbar
22436         - Multicolumn
22437         - Fixes
22438
22439
22440 2004-11-25  John BouAntoun <jba-mono@optusnet.com.au>
22441
22442         * MonthCalendar.cs:
22443           - Fix Usage of MaxSelectionCount from SelectionRange
22444           - Fixed Shift + Cursor Selection
22445           - Fixed Shift + (Pg up/Pg dn, Home/End) selection
22446           - Fixed normal cursor selection to be compat with win32
22447           - Fixed Shift + Mouse Click selection
22448
22449 2004-11-24  Peter Bartok <pbartok@novell.com>
22450
22451         * XplatUI.cs (DispatchMessage): Switched to return IntPtr
22452         * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
22453         * XplatUIX11.cs:
22454           - CreatedKeyBoardMsg now updates keystate with Alt key
22455           - Added workaround for timer crash to CheckTimers, Jackson will
22456             develop a proper fix and check in later
22457           - Implemented DispatchMessage
22458           - Removed calling the native window proc from GetMessage (call
22459             now moved to DispatchMessage)
22460
22461         * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
22462           the keydata (Fixes bug #69831)
22463
22464         * XplatUIWin32.cs:
22465           - (DispatchMessage): Switched to return IntPtr
22466           - Added DllImport for SetFocus
22467
22468 2004-11-24  Ravindra <rkumar@novell.com>
22469
22470         * ThemeWin32Classic.cs: Fixed ListView border and checkbox
22471         background drawing.
22472         * ListViewItem.cs: Fixed various properties, calculations
22473         and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
22474         * ListView.cs: Fixed calculations, BackColor, ForeColor properties
22475         and some internal properties. Fixed MouseDown handler and Paint
22476         method.
22477
22478 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
22479
22480         * MonthCalendar.cs: Add TitleMonth ContextMenu handling
22481
22482 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
22483
22484         * ContainerControl.cs: correct accidental check in of local changes
22485
22486 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
22487
22488         * ThemeWin32Classic.cs:
22489                 - Fixed Drawing Last month in grid (sometimes not showing)
22490         * MonthCalendar.cs:
22491                 - Fixed title width calculation bug (makeing title small)
22492
22493 2004-11-23  Peter Bartok <pbartok@novell.com>
22494
22495         * XplatUIX11.cs:
22496           - Added generation of WM_MOUSEHOVER event
22497           - Added missing assignment of async_method atom
22498           - Fixed WM_ERASEBKGND; now only redraws the exposed area
22499
22500 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
22501
22502         * ThemeWin32Classic.cs:
22503                 - Fixed Drawing of today circle when showtodaycircle not set
22504                 - fixed drawing of first and last month in the grid (gay dates)
22505         * MonthCalendar.cs:
22506                 - Fixed Drawing of today circle
22507                 - Fixed drawing of grady dates
22508                 - Fixed HitTest for today link when ShowToday set to false
22509                 - Fixed DefaultSize to obey ShowToday
22510
22511 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
22512
22513         * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
22514         * System.Windows.Forms/Theme.cs
22515         * MonthCalendar.cs: added for MonthCalendar
22516         * SelectionRange.cs: added for MonthCalendar
22517         * Day.cs: added for MonthCalendar: added for MonthCalendar
22518         * DateRangeEventArgs.cs: added for MonthCalendar
22519         * DateRangeEventHandler.cs: added for MonthCalendar
22520
22521 2004-11-22  Ravindra <rkumar@novell.com>
22522
22523         * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
22524         property.
22525
22526 2004-11-22  Miguel de Icaza  <miguel@ximian.com>
22527
22528         * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
22529         event handler.
22530         
22531         * NumericUpDown.cs: Added new implementation.
22532         * UpDownBase.cs: Added new implementation.
22533
22534         * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
22535         implementations.
22536         
22537         * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
22538         implementations.
22539
22540         * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
22541         methods.
22542
22543 2004-11-21  Miguel de Icaza  <miguel@ximian.com>
22544
22545         * Timer.cs  (Dispose): Should call the base dispose when
22546         overriding.
22547
22548 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
22549
22550         * ScrollBar.cs: updates thumb position when max, min or increment
22551         is changed
22552
22553 2004-11-21  Ravindra <rkumar@novell.com>
22554
22555         * ListView.cs: Implemented item selection, activation and
22556         column header style. Fixed properties to do a redraw, if
22557         required. Added support for MouseHover, DoubleClick, KeyDown
22558         and KeyUp event handling and some minor fixes.
22559         * ListViewItem.cs: Fixed constructor.
22560         * ThemeWin32Classic.cs: Improved drawing for ListView.
22561
22562 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
22563
22564         * ThemeWin32Classic.cs: initial listbox drawing code
22565         * DrawMode.cs: new enumerator
22566         * ListControl.cs: stubbed class
22567         * ListBox.cs: initial implementation
22568         * Theme.cs: new methods definitions
22569         * SelectionMode.cs: new enumerator
22570
22571 2004-11-17  Peter Bartok  <pbartok@novell.com>
22572
22573         * XplatUIWin32.cs: Added double-click events to the class style
22574         * Control.cs (WndProc):
22575           - Added handling of click-count to MouseDown/ MouseUp events.
22576           - Added handling of middle and right mouse buttons
22577           - Removed old debug code
22578
22579 2004-11-17  Jackson Harper  <jackson@ximian.com>
22580
22581         * XplatUIX11.cs: Use the new Mono.Unix namespace.
22582
22583 2004-11-17  Ravindra <rkumar@novell.com>
22584
22585         * ListView.cs: Added event handling for MouseMove/Up/Down.
22586         * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
22587         * ThemeWin32Classic.cs: We need to clear the graphics context and
22588         draw column header in a proper state.
22589
22590
22591 2004-11-17  Jordi Mas i Hernandez <jordi@ximian.com>
22592
22593         *  Menu.cs: fixes signature
22594
22595 2004-11-16  Peter Bartok  <pbartok@novell.com>
22596
22597         * XplatUIX11.cs (GetMessage): Implemented generation of
22598           double click mouse messages
22599
22600 2004-11-12  Jordi Mas i Hernandez <jordi@ximian.com>
22601
22602         *  Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
22603         not by menu
22604
22605 2004-11-11  Peter Bartok  <pbartok@novell.com>
22606
22607         * HandleData.cs: Added Visible property
22608         * XplatUIX11.cs (IsVisible): Now uses Visible property from
22609           HandleData
22610         * XplatUIX11.cs: Removed old debug leftovers
22611         * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
22612         * Control.cs (WndProc): Removed old debug leftovers,
22613           streamlined handling of WM_WINDOWPOSCHANGED, removed un-
22614           needed WM_SIZE handling
22615
22616 2004-11-11  Jackson Harper  <jackson@ximian.com>
22617
22618         * OwnerDrawPropertyBag.cs:
22619         * TreeViewImageIndexConverter.cs: Initial implementation
22620
22621 2004-11-10  Jackson Harper  <jackson@ximian.com>
22622
22623         * ThemeWin32Classic.cs:
22624         * TabControl.cs: instead of moving tabs by the slider pos just
22625         start drawing at the tab that is offset by the slider. This way
22626         scrolling always moves by exactly one tab.
22627
22628 2004-11-10  Jackson Harper  <jackson@ximian.com>
22629
22630         * TabControl.cs: You can only scroll left when the slider has
22631         already ben moved right.
22632         
22633 2004-11-10  Jackson Harper  <jackson@ximian.com>
22634
22635         * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
22636         the clip area.
22637         
22638 2004-11-10  Jackson Harper  <jackson@ximian.com>
22639
22640         * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
22641         clip area.
22642         
22643 2004-11-09  Jackson Harper  <jackson@ximian.com>
22644
22645         * TabControl.cs (CalcXPos): New helper method so we can determine
22646         the proper place to start drawing vertical tabs.
22647         * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
22648         
22649 2004-11-09  Jackson Harper  <jackson@ximian.com>
22650
22651         * TabControl.cs: Calculate sizing and rects for left aligned tabs.
22652         * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
22653         and Bottom, left and right are illegal values for this and
22654         multiline is enabled when the alignment is set to left or right.
22655         (DrawTab): Each alignment block should draw the text itself now
22656         because Left requires special love. Also add rendering for Left
22657         aligned tabs.
22658         
22659 2004-11-09  Jordi Mas i Hernandez <jordi@ximian.com>
22660
22661         *  Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
22662         does not destroy the windows, removes debugging messages
22663
22664 2004-11-09  jba  <jba-mono@optusnet.com.au>
22665
22666         * ThemeWin32Classic.cs
22667         (DrawButtonBase): Fix verticle text rect clipping in windows
22668         (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
22669         rendering and incorrect text rect clipping
22670         (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
22671         rendering and incorrect text rect clipping
22672         
22673 2004-11-08  Jackson Harper  <jackson@ximian.com>
22674
22675         * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
22676         bottom when they are bottom aligned so the bottoms of the tabs get
22677         displayed.
22678         * TabControl.cs (DropRow): Move rows up instead of down when the
22679         tab control is bottom aligned.
22680
22681 2004-11-08 13:59  pbartok
22682
22683         * XplatUIX11.cs:
22684           - Added handling for various window styles
22685           - Added handling for popup windows
22686           - Added SetTopmost handling
22687
22688 2004-11-08 13:55  pbartok
22689
22690         * XplatUIWin32.cs:
22691           - Added argument to SetTopmost method
22692           - Fixed broken ClientToScreen function
22693
22694 2004-11-08 13:53  pbartok
22695
22696         * XplatUIStructs.cs:
22697           - Added missing WS_EX styles
22698
22699 2004-11-08 13:53  pbartok
22700
22701         * XplatUI.cs, XplatUIDriver.cs:
22702           - Added argument to SetTopmost
22703
22704 2004-11-08 13:52  pbartok
22705
22706         * X11Structs.cs:
22707           - Added XSetWindowAttributes structure
22708           - Improved XWindowAttributes structure
22709           - Added SetWindowValuemask enum
22710           - Added window creation arguments enum
22711           - Added gravity enum
22712           - Added Motif hints structure
22713           - Added various Motif flags and enums
22714           - Added PropertyMode enum for property functions
22715
22716 2004-11-08 13:50  pbartok
22717
22718         * Form.cs:
22719           - Fixed arguments for updated SetTopmost method
22720
22721 2004-11-08 13:49  pbartok
22722
22723         * ToolTip.cs:
22724           - Fixed arguments for updated SetTopmost function
22725           - Fixed usage of PointToClient
22726
22727 2004-11-08 13:44  pbartok
22728
22729         * MenuAPI.cs:
22730           - Added Clipping of children and siblings
22731
22732 2004-11-08 13:41  pbartok
22733
22734         * MainMenu.cs:
22735           - Removed SetMenuBarWindow call. We do this in Form.cs
22736
22737 2004-11-08 13:40  jackson
22738
22739         * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
22740           scrolling jimmi in the correct location with bottom aligned tabs
22741
22742 2004-11-08 13:36  pbartok
22743
22744         * ContainerControl.cs:
22745           - Implemented BindingContext
22746           - Implemented ParentForm
22747
22748 2004-11-08 12:46  jackson
22749
22750         * TabControl.cs: Put bottom rendered tabs in the right location
22751
22752 2004-11-08 07:15  jordi
22753
22754         * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
22755           removes dead code
22756
22757 2004-11-05 17:30  jackson
22758
22759         * TabControl.cs: When selected tabs are expanded make sure they
22760           don't go beyond the edges of the tab control
22761
22762 2004-11-05 14:57  jackson
22763
22764         * TabControl.cs: Reset show_slider so if the control is resized to
22765           a size where it is no longer needed it's not displayed anymore
22766
22767 2004-11-05 13:16  jackson
22768
22769         * TabControl.cs: Make tab pages non visible when added to the
22770           control
22771
22772 2004-11-05 12:42  jackson
22773
22774         * TabControl.cs: Implement SizeMode.FillToRight
22775
22776 2004-11-05 12:16  jackson
22777
22778         * Control.cs: Do not call CreateHandle if the handle is already
22779           created
22780
22781 2004-11-05 11:46  jackson
22782
22783         * TabControl.cs: Remove superflous call to CalcTabRows
22784
22785 2004-11-05 09:07  jackson
22786
22787         * XplatUIX11.cs: Update for Mono.Posix changes
22788
22789 2004-11-05 07:00  ravindra
22790
22791         * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
22792           scrolling.
22793
22794 2004-11-04 22:47  jba
22795
22796         * ThemeWin32Classic.cs:
22797           - Fix Button rendering for FlatStyle = Flat or Popup
22798           - Fix RadioButton and CheckBox rendering when Appearance = Button
22799             (normal and flatstyle).
22800           - Correct outer rectangle color when drawing focus rectangle
22801           - Adjust button bounds to be 1 px smaller when focused
22802           - Make button not draw sunken 3d border when pushed (windows compat)
22803           - Fix CPDrawBorder3D to not make bottom right hand corner rounded
22804           - Offset the text in RadioButton and Checkbox when being rendered as
22805           a button.
22806           - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
22807           radiobuttons
22808           - Fixed disabled rendering for colored flatstyle radiobuttons (both)
22809           - Fixed disabled text rendering for normally rendered radiobuttons
22810
22811 2004-11-04 10:26  jackson
22812
22813         * TabControl.cs: Recalculate tab rows when resizing
22814
22815 2004-11-04 07:47  jordi
22816
22817         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
22818           collection completion, drawing issues, missing features
22819
22820 2004-11-04 05:03  ravindra
22821
22822         * ScrollBar.cs:
22823                 - We need to recalculate the Thumb area when
22824                 LargeChange/maximum/minimum values are changed.
22825           - We set the 'pos' in UpdatePos() method to minimum, if it's less
22826                 than minimum. This is required to handle the case if large_change is
22827                 more than max, and use LargeChange property instead of large_change
22828                 variable.
22829           - We return max+1 when large_change is more than max, like MS does.
22830
22831 2004-11-04 04:29  ravindra
22832
22833         * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
22834                 - Changed default value signatures (prefixed all with ListView).
22835                 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
22836                 ListView.
22837           - Fixed calculations for ListViewItem and implemented Clone()
22838           method.
22839
22840 2004-11-04 04:26  ravindra
22841
22842         * Theme.cs, ThemeWin32Classic.cs:
22843                 - Changed default ListView values signatures (prefixed all with
22844                 ListView).
22845           - Fixed default size values for VScrollBar and HScrollBar.
22846                 - Fixed DrawListViewItem method.
22847
22848 2004-11-04 04:05  ravindra
22849
22850         * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
22851
22852 2004-11-04 04:04  ravindra
22853
22854         * ImageList.cs: Implemented the missing overload for Draw method.
22855
22856 2004-11-03 19:29  jackson
22857
22858         * TabControl.cs: Handle dropping rows on selection properly
22859
22860 2004-11-03 11:59  jackson
22861
22862         * TabControl.cs: remove debug code
22863
22864 2004-11-03 11:52  jackson
22865
22866         * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
22867           the scrolly widgerywoo
22868
22869 2004-11-02 13:52  jackson
22870
22871         * TabControl.cs: Resize the tab pages and tabs when the tab control
22872           is resized
22873
22874 2004-11-02 13:40  jackson
22875
22876         * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
22877           selected tab to the bottom
22878
22879 2004-11-02 13:39  jackson
22880
22881         * TabPage.cs: Store the tab pages row
22882
22883 2004-11-02 12:33  jordi
22884
22885         * MenuItem.cs: fixes handle creation
22886
22887 2004-11-02 11:42  jackson
22888
22889         * TabControl.cs: signature fix
22890
22891 2004-11-02 08:56  jackson
22892
22893         * TabControl.cs: Calculate whether the tab is on an edge properly.
22894           Remove top secret debugging code
22895
22896 2004-11-01 19:57  jackson
22897
22898         * TabControl.cs: Add click handling, and proper sizing
22899
22900 2004-11-01 19:47  jackson
22901
22902         * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
22903           tab controls
22904
22905 2004-11-01 19:39  jackson
22906
22907         * TabPage.cs: add internal property to store the bounds of a tab
22908           page
22909
22910 2004-10-30 04:23  ravindra
22911
22912         * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
22913           values.
22914
22915 2004-10-30 04:21  ravindra
22916
22917         * ListView.cs, ListViewItem.cs: Added support for scrolling and
22918           fixed calculations.
22919
22920 2004-10-30 03:06  pbartok
22921
22922         * XplatUIX11.cs:
22923           - Removed extension of DllImported libs
22924
22925 2004-10-29 09:55  jordi
22926
22927         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
22928           navigation, itemcollection completion, menu fixes
22929
22930 2004-10-27 22:58  pbartok
22931
22932         * XplatUIX11.cs:
22933           - Now throws a nice error message when no X display could be opened
22934
22935 2004-10-26 13:51  jordi
22936
22937         * ListView.cs: removes warning
22938
22939 2004-10-26 03:55  ravindra
22940
22941         * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
22942           ThemeWin32Classic.cs: Some formatting for my last checkins.
22943
22944 2004-10-26 03:36  ravindra
22945
22946         * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
22947           control and default values.
22948
22949 2004-10-26 03:35  ravindra
22950
22951         * Theme.cs: Added some default values for ListView control.
22952
22953 2004-10-26 03:33  ravindra
22954
22955         * ToolBar.cs: ToolBar should use the user specified button size, if
22956           there is any. Added a size_specified flag for the same.
22957
22958 2004-10-26 03:33  ravindra
22959
22960         * ColumnHeader.cs: Added some internal members and calculations for
22961           ColumnHeader.
22962
22963 2004-10-26 03:32  ravindra
22964
22965         * ListViewItem.cs: Calculations for ListViewItem.
22966
22967 2004-10-26 03:31  ravindra
22968
22969         * ListView.cs: Added some internal members and calculations for
22970           ListView.
22971
22972 2004-10-22 13:31  jordi
22973
22974         * MenuAPI.cs: speedup menus drawing
22975
22976 2004-10-22 13:16  jackson
22977
22978         * XplatUIX11.cs: Make sure to update exposed regions when adding an
22979           expose event
22980
22981 2004-10-22 11:49  jackson
22982
22983         * Control.cs: oops
22984
22985 2004-10-22 11:41  jackson
22986
22987         * Control.cs: Check to see if the window should have its background
22988           repainted by X when drawing.
22989
22990 2004-10-22 11:31  jackson
22991
22992         * XplatUIX11.cs: When invalidating areas only use XClearArea if
22993           clear is true, this way we do not get flicker from X repainting the
22994           background
22995
22996 2004-10-22 11:28  jackson
22997
22998         * XEventQueue.cs: Queue properly
22999
23000 2004-10-21 09:38  jackson
23001
23002         * XEventQueue.cs: Fix access modifier
23003
23004 2004-10-21 09:36  jackson
23005
23006         * XEventQueue.cs: Don't loose messages
23007
23008 2004-10-21 09:22  jackson
23009
23010         * XEventQueue.cs: Don't loose messages
23011
23012 2004-10-20 04:15  jordi
23013
23014         * BootMode.cs: enum need it by SystemInfo
23015
23016 2004-10-19 21:58  pbartok
23017
23018         * XplatUIWin32.cs:
23019           - Small sanity check
23020
23021 2004-10-19 21:56  pbartok
23022
23023         * Form.cs:
23024           - Added private FormParentWindow class which acts as the container
23025             for our form and as the non-client area where menus are drawn
23026           - Added/Moved required tie-ins to Jordi's menus
23027           - Fixed/Implemented the FormStartPosition functionality
23028
23029 2004-10-19 21:52  pbartok
23030
23031         * Control.cs:
23032           - Removed unneeded locals
23033           - Added code to all size and location properties to understand and
23034             deal with the parent container of Form
23035
23036 2004-10-19 21:33  pbartok
23037
23038         * Application.cs:
23039           - Fixed to deal with new Form subclasses for menus
23040
23041 2004-10-19 17:48  jackson
23042
23043         * XEventQueue.cs: commit correct version of file
23044
23045 2004-10-19 16:50  jackson
23046
23047         * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
23048
23049 2004-10-19 16:15  jordi
23050
23051         * MenuAPI.cs: MenuBarCalcSize returns the height
23052
23053 2004-10-19 08:31  pbartok
23054
23055         * Control.cs:
23056           - Added missing call to PreProcessMessage before calling OnXXXKey
23057           methods
23058
23059 2004-10-19 00:04  ravindra
23060
23061         * ToolTip.cs: Fixed constructor.
23062
23063 2004-10-18 09:31  jordi
23064
23065         * MenuAPI.cs: menuitems in menubars do not have shortcuts
23066
23067 2004-10-18 09:26  jordi
23068
23069         * MenuItem.cs: fixes MenuItem class signature
23070
23071 2004-10-18 08:56  jordi
23072
23073         * MenuAPI.cs: prevents windows from showing in the taskbar
23074
23075 2004-10-18 00:28  ravindra
23076
23077         * ToolTip.cs: Suppressed a warning message.
23078
23079 2004-10-18 00:27  ravindra
23080
23081         * Control.cs: Default value of visible property must be true.
23082
23083 2004-10-17 23:19  pbartok
23084
23085         * ToolTip.cs:
23086           - Complete implementation
23087
23088 2004-10-17 23:19  pbartok
23089
23090         * XplatUIX11.cs:
23091           - Added EnableWindow method
23092           - Added SetModal stub
23093           - Added generation of WM_ACTIVATE message (still needs testing)
23094           - Added SetTopMost stub
23095           - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
23096
23097 2004-10-17 23:17  pbartok
23098
23099         * XplatUIWin32.cs:
23100           - Removed VirtualKeys to XplatUIStructs
23101           - Implemented SetTopMost method
23102           - Implemented EnableWindow method
23103           - Bugfix in ScreenToClient()
23104           - Bugfixes in ClientToScreen()
23105
23106 2004-10-17 22:51  pbartok
23107
23108         * XplatUIStructs.cs:
23109           - Added WS_EX styles to WindowStyles enumeration
23110
23111 2004-10-17 22:50  pbartok
23112
23113         * XplatUI.cs, XplatUIDriver.cs:
23114           - Added method for enabling/disabling windows
23115           - Added method for setting window modality
23116           - Added method for setting topmost window
23117
23118 2004-10-17 22:49  pbartok
23119
23120         * ThemeWin32Classic.cs:
23121           - Added ToolTip drawing code
23122
23123 2004-10-17 22:49  pbartok
23124
23125         * Theme.cs:
23126           - Added ToolTip abstracts
23127
23128 2004-10-17 22:47  pbartok
23129
23130         * Form.cs:
23131           - Fixed Form.ControlCollection to handle owner relations
23132           - Added Owner/OwnedForms handling
23133           - Implemented Z-Ordering for owned forms
23134           - Removed unneeded private overload of ShowDialog
23135           - Fixed ShowDialog, added the X11 incarnation of modal handling (or
23136             so I hope)
23137           - Fixed Close(), had wrong default
23138           - Added firing of OnLoad event
23139           - Added some commented out debug code for Ownership handling
23140
23141 2004-10-17 22:16  pbartok
23142
23143         * Control.cs:
23144           - Fixed/implemented flat list of controls
23145
23146 2004-10-17 22:14  pbartok
23147
23148         * Application.cs:
23149           - Added code to simulate modal dialogs on Win32
23150
23151 2004-10-17 16:11  jordi
23152
23153         * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
23154           mouse event
23155
23156 2004-10-17 13:39  jordi
23157
23158         * MenuAPI.cs: menu drawing fixes
23159
23160 2004-10-15 09:10  ravindra
23161
23162         * StructFormat.cs: General Enum.
23163
23164 2004-10-15 09:09  ravindra
23165
23166         * SizeGripStyle.cs: Enum for Form.
23167
23168 2004-10-15 09:08  ravindra
23169
23170         * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
23171           in Theme for ListView.
23172
23173 2004-10-15 09:06  ravindra
23174
23175         * ColumnHeader.cs: Flushing some formatting changes.
23176
23177 2004-10-15 09:05  ravindra
23178
23179         * ListViewItem.cs: Implemented GetBounds method and fixed coding
23180           style.
23181
23182 2004-10-15 09:03  ravindra
23183
23184         * ListView.cs: Implemented Paint method and fixed coding style.
23185
23186 2004-10-15 07:34  jordi
23187
23188         * MenuAPI.cs: fix for X11
23189
23190 2004-10-15 07:32  ravindra
23191
23192         * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
23193                 - Renamed Paint() method to Draw() for clarity. Also, moved
23194                 DrawImage() to OnPaint().
23195
23196 2004-10-15 07:25  ravindra
23197
23198         * CheckBox.cs, RadioButton.cs:
23199                 - Removed Redraw (), we get it from ButtonBase.
23200                 - Implemented Paint (), to do class specific painting.
23201
23202 2004-10-15 07:16  ravindra
23203
23204         * ButtonBase.cs:
23205                 - Redraw () is not virtual now.
23206                 - Added an internal virtual method Paint (), so that
23207                 derived classes can do their painting on their own.
23208                 - Modified OnPaint () to call Paint ().
23209
23210 2004-10-15 06:43  jordi
23211
23212         * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
23213           MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
23214
23215 2004-10-15 00:30  ravindra
23216
23217         * MessageBox.cs:
23218                 - MessageBox on windows does not have min/max buttons.
23219                 This change in CreateParams fixes this on Windows. We
23220                 still need to implement this windowstyle behavior in
23221                 our X11 driver.
23222
23223 2004-10-14 05:14  ravindra
23224
23225         * ToolBar.cs:
23226                 - Changed Redraw () to do a Refresh () always.
23227                 - Fixed the MouseMove event handling when mouse is pressed,
23228                 ie drag event handling.
23229                 - Replaced the usage of ToolBarButton.Pressed property to
23230                 ToolBarButton.pressed internal variable.
23231
23232 2004-10-14 05:10  ravindra
23233
23234         * ToolBarButton.cs:
23235                 - Added an internal member 'inside' to handle mouse move
23236                 with mouse pressed ie mouse drag event.
23237                 - Changed 'Pressed' property to return true only when
23238                 'inside' and 'pressed' are both true.
23239                 - Some coding style love.
23240
23241 2004-10-14 00:17  ravindra
23242
23243         * Form.cs: Fixed class signature. ShowDialog (Control) is not a
23244           public method.
23245
23246 2004-10-14 00:15  ravindra
23247
23248         * ButtonBase.cs: Redraw () related improvements.
23249
23250 2004-10-14 00:14  ravindra
23251
23252         * MessageBox.cs: Moved InitFormSize () out of Paint method and
23253           removed unnecessary calls to Button.Show () method.
23254
23255 2004-10-13 17:50  pbartok
23256
23257         * XplatUIX11.cs:
23258           - Formatting fix
23259           - Removed destroying of window until we solve the problem of X
23260             destroying the window before us on shutdown
23261
23262 2004-10-13 16:32  pbartok
23263
23264         * ButtonBase.cs:
23265           - Now Redraws on MouseUp for FlatStyle Flat and Popup
23266
23267 2004-10-13 14:18  pbartok
23268
23269         * XplatUIX11.cs:
23270           - Added code to destroy the X window
23271
23272 2004-10-13 14:18  pbartok
23273
23274         * XplatUIWin32.cs:
23275           - Added code to destroy a window
23276
23277 2004-10-13 14:12  pbartok
23278
23279         * ButtonBase.cs:
23280           - Added the Redraw on Resize that got dropped in the last rev
23281
23282 2004-10-13 09:06  pbartok
23283
23284         * ThemeWin32Classic.cs:
23285           - Path from John BouAntoun:
23286             * Fix check rendering (centre correctly for normal style, offset
23287               correctly for FlatStyle).
23288             * Fix border color usage (use backcolor) for FlatStyle.Popup
23289             * Use checkbox.Capture instead of checkbox.is_pressed when
23290               rendering flatstyle states.
23291
23292 2004-10-12 21:48  pbartok
23293
23294         * ThemeWin32Classic.cs:
23295           - Removed all occurences of SystemColors and replaced them with the
23296             matching theme color
23297
23298 2004-10-12 21:41  pbartok
23299
23300         * ThemeWin32Classic.cs:
23301           - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
23302             him using the function for flatstyle drawing
23303           - Changed functions to use the new version of CPDrawBorder3D
23304
23305 2004-10-12 21:15  pbartok
23306
23307         * ControlPaint.cs:
23308           - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
23309             match MS documentation. They need to return defined colors if the
23310             passed color matches the configured control color. Thanks to John
23311             BouAntoun for pointing this out.
23312
23313 2004-10-12 20:57  pbartok
23314
23315         * Control.cs:
23316           - Fix from John BouAntoun: Raise ForeColorChanged event when text
23317             color is changed
23318
23319 2004-10-12 20:46  pbartok
23320
23321         * CheckBox.cs:
23322           - Fix from John BouAntoun: Now properly sets the Appearance property
23323
23324 2004-10-12 20:45  pbartok
23325
23326         * ThemeWin32Classic.cs:
23327           - Fixes from John BouAntoun: now handles forecolors and backcolors
23328             for flatstyle rendered controls much better; It also fixes normal
23329             checkbox rendering when pushed or disabled.
23330
23331 2004-10-08 02:50  jordi
23332
23333         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
23334           work
23335
23336 2004-10-07 08:56  jordi
23337
23338         * ThemeWin32Classic.cs: Removes deletion of cached brushes
23339
23340 2004-10-06 03:59  jordi
23341
23342         * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
23343           XplatUIWin32.cs: removes warnings from compilation
23344
23345 2004-10-05 12:23  jackson
23346
23347         * RadioButton.cs: Fix ctor
23348
23349 2004-10-05 11:10  pbartok
23350
23351         * MessageBox.cs:
23352           - Partial implementation by Benjamin Dasnois
23353
23354 2004-10-05 10:15  jackson
23355
23356         * ThemeWin32Classic.cs: Improve rendering of the radio button patch
23357           by John BouAntoun
23358
23359 2004-10-05 03:07  ravindra
23360
23361         * ToolBar.cs:
23362                 - Removed a private method, Draw ().
23363                 - Fixed the ButtonDropDown event handling.
23364                 - Fixed MouseMove event handling.
23365
23366 2004-10-05 03:04  ravindra
23367
23368         * ThemeWin32Classic.cs:
23369                 - Added DrawListView method and ListViewDefaultSize property.
23370                 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
23371                 - Changed DOS style CRLF to Unix format (dos2unix).
23372
23373 2004-10-05 03:03  ravindra
23374
23375         * Theme.cs:
23376                 - Added DrawListView method and ListViewDefaultSize property.
23377
23378 2004-10-05 02:42  ravindra
23379
23380         * ToolBarButton.cs: Added an internal member dd_pressed to handle
23381           clicks on DropDown arrow.
23382
23383 2004-10-04 22:56  jackson
23384
23385         * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
23386           ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
23387           Control handle the buffers, derived classes should not have to
23388           CreateBuffers themselves.
23389
23390 2004-10-04 21:20  jackson
23391
23392         * StatusBar.cs: The control handles resizing the buffers now.
23393
23394 2004-10-04 21:18  jackson
23395
23396         * Control.cs: When resizing the buffers should be invalidated. This
23397           should be handled in Control not in derived classes.
23398
23399 2004-10-04 14:45  jackson
23400
23401         * TabPage.cs: oops
23402
23403 2004-10-04 02:14  pbartok
23404
23405         * LeftRightAlignment.cs:
23406           - Initial check-in
23407
23408 2004-10-04 01:09  jordi
23409
23410         * ThemeWin32Classic.cs: fixes right button position causing right
23411           button not showing on horizontal scrollbars
23412
23413 2004-10-02 13:12  pbartok
23414
23415         * XplatUIX11.cs:
23416           - Simplified the Invalidate method by using an X call instead of
23417             generating the expose ourselves
23418           - Added an expose when the window background is changed
23419           - Implemented ClientToScreen method
23420
23421 2004-10-02 13:08  pbartok
23422
23423         * XplatUIWin32.cs:
23424           - Added Win32EnableWindow method (test for implementing modal
23425           dialogs)
23426           - Added ClientToScreen method and imports
23427
23428 2004-10-02 13:07  pbartok
23429
23430         * XplatUI.cs, XplatUIDriver.cs:
23431           - Added ClientToScreen coordinate translation method
23432
23433 2004-10-02 13:06  pbartok
23434
23435         * KeyPressEventArgs.cs:
23436           - Fixed access level for constructor
23437
23438 2004-10-02 13:06  pbartok
23439
23440         * NativeWindow.cs:
23441           - Changed access level for the window_collection hash table
23442
23443 2004-10-02 13:05  pbartok
23444
23445         * Form.cs:
23446           - Added KeyPreview property
23447           - Added Menu property (still incomplete, pending Jordi's menu work)
23448           - Implemented ProcessCmdKey
23449           - Implemented ProcessDialogKey
23450           - Implemented ProcessKeyPreview
23451
23452 2004-10-02 13:02  pbartok
23453
23454         * Control.cs:
23455           - Added private method to get the Control object from the window
23456           handle
23457           - Implemented ContextMenu property
23458           - Implemented PointToScreen
23459           - Implemented PreProcessMessage
23460           - Implemented IsInputChar
23461           - Implemented IsInputKey
23462           - Implemented ProcessCmdKey
23463           - Completed ProcessKeyEventArgs
23464           - Fixed message loop to call the proper chain of functions on key
23465           events
23466           - Implemented ProcessDialogChar
23467           - Implemented ProcessDialogKey
23468           - Implemented ProcessKeyMessage
23469           - Implemented ProcessKeyPreview
23470           - Added RaiseDragEvent stub (MS internal method)
23471           - Added RaiseKeyEvent stub (MS internal method)
23472           - Added RaiseMouseEvent stub (MS Internal method)
23473           - Added RaisePaintEvent stub (MS Internal method)
23474           - Added ResetMouseEventArgs stub (MS Internal method)
23475           - Implemented RtlTranslateAlignment
23476           - Implemented RtlTranslateContent
23477           - Implemented RtlTranslateHorizontal
23478           - Implemented RtlTranslateLeftRight
23479           - Added generation of KeyPress event
23480
23481 2004-10-02 05:57  ravindra
23482
23483         * ListViewItem.cs: Added attributes.
23484
23485 2004-10-02 05:32  ravindra
23486
23487         * ListView.cs: Added attributes.
23488
23489 2004-10-01 11:53  jackson
23490
23491         * Form.cs: Implement the Close method so work on MessageBox can
23492           continue.
23493
23494 2004-09-30 14:06  pbartok
23495
23496         * XplatUIX11.cs:
23497           - Bug fixes
23498
23499 2004-09-30 11:34  jackson
23500
23501         * RadioButton.cs: Fix typo. Patch by John BouAntoun.
23502
23503 2004-09-30 07:26  ravindra
23504
23505         * ListViewItemConverter.cs: Converter for ListViewItem.
23506
23507 2004-09-30 07:26  ravindra
23508
23509         * SortOrder.cs: Enum for ListView control.
23510
23511 2004-09-30 07:25  ravindra
23512
23513         * ColumnHeader.cs: Supporting class for ListView control.
23514
23515 2004-09-30 07:24  ravindra
23516
23517         * ListView.cs, ListViewItem.cs: Initial implementation.
23518
23519 2004-09-30 07:20  ravindra
23520
23521         * ItemActivation.cs: Enum for ListView Control.
23522
23523 2004-09-29 20:29  pbartok
23524
23525         * XplatUIX11.cs:
23526           - Added lookup of pixel value for background color; tries to get a
23527             color 'close' to the requested color, it avoids having to create a
23528             colormap.  Depending on the display this could mean the used color
23529             is slightly off the desired color. Might have to change it to a more
23530             resource intensive colormap approach, but it will work as a
23531           workaround to avoid red screens.
23532
23533 2004-09-29 14:27  jackson
23534
23535         * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
23536
23537 2004-09-28 12:44  pbartok
23538
23539         * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
23540           HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
23541           ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
23542           Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
23543           TrackBar.cs, VScrollBar.cs:
23544           - Streamlined Theme interfaces:
23545             * Each DrawXXX method for a control now is passed the object for
23546               the control to be drawn in order to allow accessing any state the
23547               theme might require
23548
23549             * ControlPaint methods for the theme now have a CP prefix to avoid
23550               name clashes with the Draw methods for controls
23551
23552             * Every control now retrieves it's DefaultSize from the current
23553             theme
23554
23555 2004-09-28 12:17  jackson
23556
23557         * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
23558           drawing
23559
23560 2004-09-24 14:57  jackson
23561
23562         * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
23563           Gives us a nice little performance boost.
23564
23565 2004-09-24 12:02  jackson
23566
23567         * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
23568           TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
23569           Control and supporting classes. Initial checkin
23570
23571 2004-09-23 13:08  jackson
23572
23573         * Form.cs: Temp build fixage
23574
23575 2004-09-23 01:39  ravindra
23576
23577         * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
23578           ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
23579           ItemDragEventArgs.cs, ItemDragEventHandler.cs,
23580           LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
23581           EventHandlers needed by ListView Control.
23582
23583 2004-09-22 14:12  pbartok
23584
23585         * ScrollableControl.cs:
23586           - Implemented DockPadding property
23587           - Implemented AutoScroll property
23588           - Implemented AutoScrollMargin property
23589           - Implemented AutoScrollMinSize property
23590           - Implemented AutoScrollPosition property
23591           - Implemented DisplayRectangle property (still incomplete)
23592           - Implemented CreateParams property
23593           - Implemented HScroll property
23594           - Implemented VScroll property
23595           - Implemented OnVisibleChanged property
23596
23597 2004-09-22 14:09  pbartok
23598
23599         * Form.cs:
23600           - Added Form.ControllCollection class
23601           - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
23602             RemoveOwnedForm (still incomplete, missing on-top and common
23603             minimize/maximize behaviour)
23604           - Added StartPosition property (still incomplete, does not use when
23605             creating the form)
23606           - Added ShowDialog() methods (still incomplete, missing forcing the
23607             dialog modal)
23608
23609 2004-09-22 14:05  pbartok
23610
23611         * Application.cs:
23612           - Added message loop for modal dialogs
23613
23614 2004-09-22 14:02  pbartok
23615
23616         * GroupBox.cs:
23617           - Fixed wrong types for events
23618
23619 2004-09-22 14:00  pbartok
23620
23621         * Shortcut.cs, FormWindowState.cs:
23622           - Fixed wrong values
23623
23624 2004-09-22 12:01  jackson
23625
23626         * Control.cs: Text is never null
23627
23628 2004-09-20 22:14  pbartok
23629
23630         * XplatUIWin32.cs:
23631           - Fixed accessibility level for Idle handler
23632
23633 2004-09-20 18:54  jackson
23634
23635         * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
23636           XplatUIX11.cs: New message loop that uses poll so we don't get a
23637           busy loop
23638
23639 2004-09-17 10:43  pbartok
23640
23641         * ScrollBar.cs:
23642           - Fixed behaviour of arrow buttons. Now properly behaves like
23643             Buttons (and like Microsoft's scrollbar arrow buttons)
23644
23645 2004-09-17 10:14  pbartok
23646
23647         * ScrollBar.cs:
23648           - Added missing release of keyboard/mouse capture
23649
23650 2004-09-17 06:18  jordi
23651
23652         * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
23653           Theme.cs: Very early menu support
23654
23655 2004-09-16 17:45  pbartok
23656
23657         * XplatUIWin32.cs:
23658           - Fixed sending a window to the front
23659           - Added overload for SetWindowPos to avoid casting
23660
23661 2004-09-16 17:44  pbartok
23662
23663         * Control.cs:
23664           - Added SendToBack and BringToFront methods
23665
23666 2004-09-16 07:00  ravindra
23667
23668         * Copyright: Added Novell URL.
23669
23670 2004-09-16 07:00  ravindra
23671
23672         * ToolBar.cs: Invalidate should be done before redrawing.
23673
23674 2004-09-15 21:19  ravindra
23675
23676         * ColumnHeaderStyle.cs: Enum for ListView Control.
23677
23678 2004-09-15 21:18  ravindra
23679
23680         * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
23681           ListView Control.
23682
23683 2004-09-13 18:26  jackson
23684
23685         * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
23686           properly
23687
23688 2004-09-13 18:13  jackson
23689
23690         * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
23691           a second thread and post messages into the main threads message
23692           queue. This makes timing much more consistent. Both win2K and XP
23693           have a minimum timer value of 15 milliseconds, so we now do this
23694           too.
23695
23696 2004-09-13 15:18  pbartok
23697
23698         * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
23699           XplatUIX11.cs:
23700           - Added Z-Ordering methods
23701
23702 2004-09-13 10:56  pbartok
23703
23704         * Form.cs:
23705           - Fixed #region names
23706           - Moved properties and methods into their proper #regions
23707
23708 2004-09-13 10:51  pbartok
23709
23710         * Form.cs:
23711           - Added Accept and CancelButton properties
23712           - Added ProcessDialogKey() method
23713
23714 2004-09-13 08:18  pbartok
23715
23716         * IWindowTarget.cs:
23717           - Initial check-in
23718
23719 2004-09-10 21:50  pbartok
23720
23721         * Control.cs:
23722           - Added DoDragDrop() [incomplete]
23723           - Properly implemented 'Visible' handling
23724           - Added SetVisibleCore()
23725           - Implemented FindChildAtPoint()
23726           - Implemented GetContainerControl()
23727           - Implemented Hide()
23728
23729 2004-09-10 19:28  pbartok
23730
23731         * Control.cs:
23732           - Moved methods into their appropriate #regions
23733           - Reordered methods within regions alphabetically
23734
23735 2004-09-10 18:57  pbartok
23736
23737         * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
23738           - Added method to retrieve text from window
23739
23740 2004-09-10 18:56  pbartok
23741
23742         * Control.cs:
23743           - Moved some internal functions into the internal region
23744           - Implemented FontHeight
23745           - Implemented RenderRightToLeft
23746           - Implemented ResizeRedraw
23747           - Implemented ShowFocusCues
23748           - Implemented ShowKeyboardCues
23749           - Implemented FromChildHandle
23750           - Implemented FromHandle
23751           - Implemented IsMnemonic
23752           - Implemented ReflectMessage
23753           - All public and protected Static Methods are now complete
23754
23755 2004-09-10 16:54  pbartok
23756
23757         * Control.cs:
23758           - Implemented remaining missing public instance properties
23759           - Alphabetized some out of order properties
23760
23761 2004-09-10 05:51  ravindra
23762
23763         * PictureBox.cs: Added a check for null image.
23764
23765 2004-09-10 00:59  jordi
23766
23767         * GroupBox.cs: remove cvs tag
23768
23769 2004-09-09 05:25  ravindra
23770
23771         * ToolBar.cs: Make redraw accessible from ToolBarButton.
23772
23773 2004-09-09 05:23  ravindra
23774
23775         * ToolBarButton.cs: Changes in ToolBarButton need to make it's
23776           parent redraw.
23777
23778 2004-09-09 02:28  pbartok
23779
23780         * ThemeWin32Classic.cs:
23781           - Improve disabled string look
23782
23783 2004-09-09 01:15  jordi
23784
23785         * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
23786           args and handler
23787
23788 2004-09-08 23:56  ravindra
23789
23790         * ItemBoundsPortion.cs: It's enum, not a class!
23791
23792 2004-09-08 23:47  ravindra
23793
23794         * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
23795           Enums for Form.
23796
23797 2004-09-08 21:13  ravindra
23798
23799         * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
23800           ListView control.
23801
23802 2004-09-08 21:03  ravindra
23803
23804         * ThemeWin32Classic.cs: PictureBox would not draw a null image to
23805           avoid crash.
23806
23807 2004-09-08 21:01  ravindra
23808
23809         * ScrollableControl.cs: Removed unreachable code.
23810
23811 2004-09-08 06:45  jordi
23812
23813         * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
23814
23815 2004-09-08 01:00  jackson
23816
23817         * XplatUIX11.cs: Only run the timers when updating the message
23818           queue. This effectively gives X messages a higher priority then
23819           timer messages. Timers still need love though
23820
23821 2004-09-07 14:01  jackson
23822
23823         * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
23824           this for us and the handle is no longer valid.
23825
23826 2004-09-07 13:59  jackson
23827
23828         * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
23829           loop that manages to not crash. TODO: Add poll and cleanup timers
23830
23831 2004-09-07 11:12  jordi
23832
23833         * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
23834
23835 2004-09-07 03:40  jordi
23836
23837         * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
23838           fixes, methods, multiple links
23839
23840 2004-09-06 06:55  jordi
23841
23842         * Control.cs: Caches ClientRectangle rectangle value
23843
23844 2004-09-05 02:03  jordi
23845
23846         * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
23847           certain situations
23848
23849 2004-09-04 11:10  jordi
23850
23851         * Label.cs: Refresh when font changed
23852
23853 2004-09-02 16:24  pbartok
23854
23855         * Control.cs:
23856           - Added sanity check to creation of double buffer bitmap
23857
23858 2004-09-02 16:24  pbartok
23859
23860         * ButtonBase.cs:
23861           - Fixed selection of text color
23862           - Fixed handling of resize event; now properly recreates double
23863             buffering bitmap
23864           - Added missing assignment of TextAlignment
23865           - Added proper default for TextAlignment
23866
23867 2004-09-02 14:26  pbartok
23868
23869         * RadioButton.cs:
23870           - Added missing RadioButton.RadioButtonAccessibleObject class
23871
23872 2004-09-02 14:26  pbartok
23873
23874         * Control.cs:
23875           - Added missing Control.ControlAccessibleObject class
23876           - Started to implement Select()ion mechanisms, still very incomplete
23877
23878 2004-09-02 14:25  pbartok
23879
23880         * AccessibleObject.cs:
23881           - Added missing methods
23882
23883 2004-09-02 14:23  pbartok
23884
23885         * AccessibleNavigation.cs, AccessibleSelection.cs:
23886           - Initial check-in
23887
23888 2004-09-02 10:32  jordi
23889
23890         * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
23891           pool for pens, brushes, and hatchbruses
23892
23893 2004-09-01 15:30  jackson
23894
23895         * StatusBar.cs: Fix typo
23896
23897 2004-09-01 14:44  pbartok
23898
23899         * RadioButton.cs:
23900           - Fixed state
23901
23902 2004-09-01 14:39  pbartok
23903
23904         * Button.cs, RadioButton.cs:
23905           - Functional initial check-in
23906
23907 2004-09-01 14:01  pbartok
23908
23909         * CheckBox.cs:
23910           - Added missing default
23911           - Added missing region mark
23912
23913 2004-09-01 09:10  jordi
23914
23915         * Label.cs: fixes method signatures, new methods, events, fixes
23916           autosize
23917
23918 2004-09-01 07:19  jordi
23919
23920         * Control.cs: Init string variables with an empty object
23921
23922 2004-09-01 04:20  jordi
23923
23924         * Control.cs: fires OnFontChanged event
23925
23926 2004-08-31 20:07  pbartok
23927
23928         * ButtonBase.cs:
23929           - Enabled display of strings
23930
23931 2004-08-31 20:05  pbartok
23932
23933         * Form.cs:
23934           - Added (partial) implementation of DialogResult; rest needs to be
23935             implemented when the modal loop code is done
23936
23937 2004-08-31 19:55  pbartok
23938
23939         * CheckBox.cs:
23940           - Fixed to match the removal of the needs_redraw concept
23941
23942 2004-08-31 19:55  pbartok
23943
23944         * ButtonBase.cs:
23945           - Removed the rather odd split between 'needs redraw' and redrawing
23946           - Now handles the events that require regeneration (ambient
23947             properties and size)
23948
23949 2004-08-31 19:41  pbartok
23950
23951         * Control.cs:
23952           - Added firing of BackColorChanged event
23953           - Added TopLevelControl property
23954           - Fixed handling of WM_ERASEBKGRND message
23955
23956 2004-08-31 12:49  pbartok
23957
23958         * ButtonBase.cs:
23959           - Removed debug
23960           - Minor fixes
23961
23962 2004-08-31 12:48  pbartok
23963
23964         * CheckBox.cs:
23965           - Finished (famous last words)
23966
23967 2004-08-31 04:35  jordi
23968
23969         * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
23970           scrolling bugs, adds new methods
23971
23972 2004-08-30 14:42  pbartok
23973
23974         * CheckBox.cs:
23975           - Implemented CheckBox drawing code
23976
23977 2004-08-30 14:42  pbartok
23978
23979         * ButtonBase.cs:
23980           - Made Redraw() and CheckRedraw() virtual
23981           - Improved mouse up/down/move logic to properly track buttons
23982
23983 2004-08-30 09:44  pbartok
23984
23985         * CheckBox.cs:
23986           - Updated to fix broken build. Not complete yet.
23987
23988 2004-08-30 09:28  pbartok
23989
23990         * CheckState.cs:
23991           - Initial checkin
23992
23993 2004-08-30 09:17  pbartok
23994
23995         * Appearance.cs:
23996           - Initial check-in
23997
23998 2004-08-27 16:12  ravindra
23999
24000         * ToolBarButton.cs: Added TypeConverter attribute.
24001
24002 2004-08-27 16:07  ravindra
24003
24004         * ImageIndexConverter.cs: Implemented.
24005
24006 2004-08-27 14:17  pbartok
24007
24008         * Control.cs:
24009           - Removed unneeded stack vars
24010           - First attempt to fix sizing issues when layout is suspended
24011
24012 2004-08-25 15:35  jordi
24013
24014         * ScrollBar.cs: more fixes to scrollbar
24015
24016 2004-08-25 14:04  ravindra
24017
24018         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
24019           Added the missing divider code and grip for ToolBar Control.
24020
24021 2004-08-25 13:20  pbartok
24022
24023         * Control.cs:
24024           - Control now properly passes the ambient background color to child
24025             controls
24026
24027 2004-08-25 13:20  jordi
24028
24029         * ScrollBar.cs: small bug fix regarding bar position
24030
24031 2004-08-25 12:33  pbartok
24032
24033         * Timer.cs:
24034           - Now only calls SetTimer or KillTimer if the enabled state has
24035           changed
24036
24037 2004-08-25 12:33  pbartok
24038
24039         * XplatUIWin32.cs:
24040           - Fixed timer handling, now seems to work
24041           - Improved error message for window creation
24042
24043 2004-08-25 12:32  pbartok
24044
24045         * Control.cs:
24046           - Fixed generation of MouseUp message
24047
24048 2004-08-25 12:29  jordi
24049
24050         * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
24051           and fixes for progressbar
24052
24053 2004-08-24 18:43  ravindra
24054
24055         * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
24056           in ToolBar control.
24057
24058 2004-08-24 17:15  pbartok
24059
24060         * Panel.cs:
24061           - Added #region
24062           - Added missing events
24063           - Alphabetized
24064
24065 2004-08-24 17:14  pbartok
24066
24067         * StatusBar.cs, PictureBox.cs:
24068           - Now uses Control's CreateParams
24069
24070 2004-08-24 16:36  pbartok
24071
24072         * XplatUIX11.cs:
24073           - Fixed background color handling
24074           - Fixed sending of enter/leave events on a grab
24075
24076 2004-08-24 16:35  pbartok
24077
24078         * X11Structs.cs:
24079           - Refined definitions for CrossingEvent
24080
24081 2004-08-24 12:37  jordi
24082
24083         * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
24084           formmating, methods signature, and adds missing events
24085
24086 2004-08-24 12:24  jordi
24087
24088         * Control.cs: fire OnEnabledChanged event
24089
24090 2004-08-24 11:17  pbartok
24091
24092         * XplatUIWin32.cs:
24093           - Implemented SetTimer() and KillTimer()
24094
24095 2004-08-24 11:16  pbartok
24096
24097         * XplatUIX11.cs:
24098           - Now uses Remove instead of Add to kill the timer
24099
24100 2004-08-24 10:16  jackson
24101
24102         * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
24103           picture boxes in the theme now. Draw picture box borders and obey
24104           sizing modes
24105
24106 2004-08-24 05:49  jackson
24107
24108         * Timer.cs: Remove top secret debugging code
24109
24110 2004-08-24 05:34  jackson
24111
24112         * PictureBox.cs: Temp hack to make picture boxes draw their full
24113           image
24114
24115 2004-08-24 05:29  jackson
24116
24117         * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
24118           XplatUIX11.cs: Move timers to the driver level. On X they are
24119           queued by the driver and checked on idle.
24120
24121 2004-08-24 01:07  jackson
24122
24123         * XplatUIX11.cs: Use a queue for async messages instead of passing
24124           them as ClientMessages since that was totally broken. Also simply
24125           check for events and return an idle message if none are found. This
24126           gives us an idle handler, and prevents deadlocking when no messages
24127           are in the queue.
24128
24129 2004-08-23 18:19  ravindra
24130
24131         * XplatUIWin32.cs: Removed the unwanted destructor.
24132
24133 2004-08-23 17:27  pbartok
24134
24135         * ButtonBase.cs:
24136           - Finishing touches. Works now, just needs some optimizations.
24137
24138 2004-08-23 16:53  jordi
24139
24140         * ScrollBar.cs: small fix
24141
24142 2004-08-23 16:45  pbartok
24143
24144         * Application.cs:
24145           - Removed debug output
24146           - Simplifications
24147
24148 2004-08-23 16:43  jordi
24149
24150         * ScrollBar.cs: [no log message]
24151
24152 2004-08-23 16:10  pbartok
24153
24154         * Form.cs:
24155           - Fixed handling of WM_CLOSE message
24156           - Removed debug output
24157
24158 2004-08-23 16:09  pbartok
24159
24160         * Application.cs:
24161           - Added handling of Idle event
24162           - Added handling of form closing
24163           - Fixed reporting of MessageLoop property
24164           - Removed some unneeded code, should provide a bit of a speedup
24165
24166 2004-08-23 15:22  pbartok
24167
24168         * Control.cs:
24169           - Added InitLayout() method
24170           - Added code to properly perform layout when Anchor or Dock property
24171             is changed
24172           - Changed 'interpretation' of ResumeLayout. MS seems to have a
24173             LAMESPEC, tried to do it in a way that makes sense
24174
24175 2004-08-23 14:10  jordi
24176
24177         * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
24178           properties and methods
24179
24180 2004-08-23 13:55  pbartok
24181
24182         * Control.cs:
24183           - Properly fixed Jordi's last fix
24184           - Now uses Cursor's Position property instead of calling XplatUI
24185           directly
24186
24187 2004-08-23 13:44  jordi
24188
24189         * PaintEventHandler.cs: Adding missing attribute
24190
24191 2004-08-23 13:39  pbartok
24192
24193         * Cursor.cs:
24194           - Implemented Position property
24195
24196 2004-08-23 13:39  pbartok
24197
24198         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
24199           - Added method to move mouse cursor
24200
24201 2004-08-23 13:39  pbartok
24202
24203         * XplatUIX11.cs:
24204           - Fixed setting of background color
24205           - Added method to move mouse cursor
24206
24207 2004-08-23 13:16  jordi
24208
24209         * Control.cs: avoids null exception
24210
24211 2004-08-22 17:46  jackson
24212
24213         * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
24214           PictureBox
24215
24216 2004-08-22 17:40  jackson
24217
24218         * XplatUIX11.cs: Add some missing locks
24219
24220 2004-08-22 15:10  pbartok
24221
24222         * Control.cs, Form.cs:
24223           - Removed OverlappedWindow style from Control, instead it's default
24224             now is child
24225           - Made form windows OverlappedWindow by default
24226
24227 2004-08-22 13:34  jackson
24228
24229         * ScrollBar.cs: Update the position through the Value property so
24230           the OnValueChanged event is raised.
24231
24232 2004-08-22 12:04  pbartok
24233
24234         * SWF.csproj:
24235           - Added Cursor.cs and UserControl.cs
24236
24237 2004-08-22 12:03  pbartok
24238
24239         * Cursor.cs:
24240           - Started implementation, not usable yet
24241
24242 2004-08-22 12:00  pbartok
24243
24244         * UserControl.cs:
24245           - Implemented UserControl (complete)
24246
24247 2004-08-21 19:20  ravindra
24248
24249         * ToolBar.cs: Correcting the formatting mess of VS.NET.
24250
24251 2004-08-21 18:49  ravindra
24252
24253         * ToolBar.cs: Probably this completes the missing attributes in
24254           toolbar control.
24255
24256 2004-08-21 18:03  ravindra
24257
24258         * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
24259           Fixed toolbar control signatures.
24260
24261 2004-08-21 16:32  pbartok
24262
24263         * LinkLabel.cs:
24264           - Signature Fixes
24265
24266 2004-08-21 16:30  pbartok
24267
24268         * Label.cs:
24269           - Signature fixes
24270
24271 2004-08-21 16:19  pbartok
24272
24273         * Control.cs, Label.cs:
24274           - Signature fixes
24275
24276 2004-08-21 15:57  pbartok
24277
24278         * ButtonBase.cs:
24279           - Added loads of debug output for development
24280           - Fixed typo in method name
24281
24282 2004-08-21 15:52  pbartok
24283
24284         * ToolBarButtonClickEventArgs.cs:
24285           - Added missing base class
24286
24287 2004-08-21 14:53  pbartok
24288
24289         * Control.cs:
24290           - Updated to match new GrabWindow signature
24291
24292 2004-08-21 14:51  pbartok
24293
24294         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
24295           - Added method to get default display size
24296
24297 2004-08-21 14:23  pbartok
24298
24299         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
24300           - Added method to query current grab state
24301           - Added argument to allow confining a grab to a window
24302
24303 2004-08-21 14:22  pbartok
24304
24305         * Keys.cs:
24306           - Added [Flags] attribute so that modifiers can be used in bitwise
24307           ops
24308
24309 2004-08-21 14:21  pbartok
24310
24311         * TrackBar.cs, ScrollBar.cs:
24312           - Replaced direct XplatUI calls with their Control counterpart
24313
24314 2004-08-21 13:32  pbartok
24315
24316         * Control.cs:
24317           - Implemented Created property
24318
24319 2004-08-21 13:28  pbartok
24320
24321         * Control.cs:
24322           - Implemented ContainsFocus
24323
24324 2004-08-21 13:26  pbartok
24325
24326         * Control.cs:
24327           - Implemented CausesValidation
24328
24329 2004-08-21 13:21  pbartok
24330
24331         * Control.cs:
24332           - Implemented CanFocus
24333           - Implemented CanSelect
24334           - Implemented Capture
24335
24336 2004-08-21 12:35  pbartok
24337
24338         * XplatUIWin32.cs:
24339           - Fixed bug with Async message handling
24340           - Implemented getting the ModifierKeys
24341
24342 2004-08-21 12:32  jackson
24343
24344         * AsyncMethodResult.cs: Make sure we have the mutex before we
24345           release it. Fixes BeginInvoke on windows
24346
24347 2004-08-21 11:31  pbartok
24348
24349         * XplatUIWin32.cs, XplatUIX11.cs:
24350           - Drivers now return proper mouse state
24351
24352 2004-08-21 10:54  jackson
24353
24354         * Control.cs: Implement EndInvoke
24355
24356 2004-08-21 10:48  jackson
24357
24358         * Timer.cs: Remove unneeded finalizer
24359
24360 2004-08-20 19:52  ravindra
24361
24362         * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
24363           in mouse event handling in the ToolBar control.
24364
24365 2004-08-20 19:50  ravindra
24366
24367         * ImageList.cs: Changed draw method to use the arguments passed in
24368           to draw the image.
24369
24370 2004-08-20 18:58  pbartok
24371
24372         * XplatUIStructs.cs:
24373           - Added private message for async communication
24374
24375 2004-08-20 17:38  ravindra
24376
24377         * Control.cs: Made RightToLeft property virtual and removed a
24378           Console.WriteLine.
24379
24380 2004-08-20 14:39  jordi
24381
24382         * ThemeGtk.cs: use style_attach
24383
24384 2004-08-20 14:39  pbartok
24385
24386         * XplatUIWin32.cs:
24387           - Added jackson's Async code from X11 to Win32
24388
24389 2004-08-20 14:09  pbartok
24390
24391         * SWF.csproj:
24392           - Added all new files
24393
24394 2004-08-20 14:09  pbartok
24395
24396         * Control.cs:
24397           - Added call to set window background color
24398
24399 2004-08-20 14:03  pbartok
24400
24401         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
24402           - Added method for setting the window background
24403
24404 2004-08-20 14:02  pbartok
24405
24406         * XplatUIWin32.cs:
24407           - Added method for setting the background color
24408           - Added handling for erasing the window background
24409
24410 2004-08-20 13:45  jordi
24411
24412         * TrackBar.cs: fixes timer, new properties and methods
24413
24414 2004-08-20 13:34  jackson
24415
24416         * ScrollBar.cs: Use the SWF timer so callbacks are run in the
24417           correct thread
24418
24419 2004-08-20 13:22  jackson
24420
24421         * Timer.cs: Timer Tick events are now handed through Controls Async
24422           mechanism so the callbacks are executed in the same thread as X
24423
24424 2004-08-20 13:19  jackson
24425
24426         * XplatUIDriver.cs: Expose functionality to send async messages
24427           through the driver
24428
24429 2004-08-20 13:18  jackson
24430
24431         * Control.cs: Implement Begininvoke
24432
24433 2004-08-20 13:14  jackson
24434
24435         * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
24436           messages through the driver
24437
24438 2004-08-20 13:12  jackson
24439
24440         * XplatUIX11.cs: Lock before all X operations. Also added Async
24441           method functionality through XSendEvent
24442
24443 2004-08-20 13:11  jackson
24444
24445         * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
24446           This will screw up on 64 bit systems)
24447
24448 2004-08-20 13:10  jackson
24449
24450         * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
24451           Async messages through X/Win32
24452
24453 2004-08-19 19:39  pbartok
24454
24455         * XplatUIX11.cs:
24456           - Updated code to match new HandleData.DeviceContext type
24457
24458 2004-08-19 19:38  pbartok
24459
24460         * HandleData.cs:
24461           - Made DeviceContext a generic object to allow usage from various
24462           drivers
24463           - Added support for queueing Windows messages
24464
24465 2004-08-19 19:37  pbartok
24466
24467         * XplatUIWin32.cs:
24468           - Added generation of MouseEnter, MouseLeave and MouseHover events
24469           - Added cleanup on EndPaint
24470
24471 2004-08-19 19:17  pbartok
24472
24473         * Control.cs:
24474           - Added handling of WM_MOUSEHOVER
24475           - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
24476           code
24477
24478 2004-08-19 18:55  jordi
24479
24480         * ThemeGtk.cs: fixes button order
24481
24482 2004-08-19 18:12  jordi
24483
24484         * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
24485
24486 2004-08-19 17:09  pbartok
24487
24488         * Control.cs:
24489           - Added Right property
24490           - Added RightToLeft property
24491
24492 2004-08-19 16:27  jordi
24493
24494         * ThemeGtk.cs: experimental GTK theme support
24495
24496 2004-08-19 16:26  jordi
24497
24498         * ITheme.cs, Theme.cs: move themes from an interface to a class
24499
24500 2004-08-19 16:25  jordi
24501
24502         * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
24503           theme enhancaments
24504
24505 2004-08-19 16:04  pbartok
24506
24507         * XplatUIX11.cs:
24508           - Added colormap basics
24509           - Added a way to re-initialize with a different display handle
24510           - Fixed setting of the window background color
24511           - Added various X11 imports related to colors and colormaps
24512
24513 2004-08-19 15:51  pbartok
24514
24515         * X11Structs.cs:
24516           - Removed packing hints (Paolo suggested this a while back)
24517           - fixed colormap type
24518           - Added default Atom types
24519           - Added Screen and color structs and enums
24520
24521 2004-08-19 15:39  pbartok
24522
24523         * ImageList.cs:
24524           - Added missing Draw() method
24525           - Added missing RecreateHandle event
24526
24527 2004-08-19 15:30  pbartok
24528
24529         * Form.cs:
24530           - Added handling of WM_CLOSE
24531
24532 2004-08-18 13:16  jordi
24533
24534         * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
24535           a table
24536
24537 2004-08-18 09:56  jordi
24538
24539         * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
24540
24541 2004-08-17 15:31  ravindra
24542
24543         * SWF.csproj: Updated project.
24544
24545 2004-08-17 15:25  pbartok
24546
24547         * Control.cs:
24548           - Drawing improvement; don't call UpdateBounds if we are not visible
24549             (or have been minimized)
24550
24551 2004-08-17 15:24  pbartok
24552
24553         * XplatUIWin32.cs:
24554           - Finished IsVisible
24555           - Added Win32GetWindowPlacement
24556
24557 2004-08-17 15:08  jackson
24558
24559         * Panel.cs: Initial checkin of the Panel
24560
24561 2004-08-17 14:25  pbartok
24562
24563         * Control.cs:
24564           - Fixed broken handling of default window sizes
24565
24566 2004-08-17 13:29  jackson
24567
24568         * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
24569           has a large startup time.
24570
24571 2004-08-17 10:25  jackson
24572
24573         * HandleData.cs: union areas properly
24574
24575 2004-08-17 10:12  jackson
24576
24577         * HandleData.cs: union areas properly
24578
24579 2004-08-16 20:00  ravindra
24580
24581         * ToolBar.cs, ToolBarButton.cs: Added attributes.
24582
24583 2004-08-16 18:48  ravindra
24584
24585         * ToolBar.cs: Added attributes.
24586
24587 2004-08-16 17:17  ravindra
24588
24589         * SWF.csproj: Updated project.
24590
24591 2004-08-16 17:16  jackson
24592
24593         * XplatUIX11.cs: Check for more expose events before sending a
24594           WM_PAINT so they can all be grouped together. This makes dragging a
24595           window across another window redraw in a sane way.
24596
24597 2004-08-16 15:47  pbartok
24598
24599         * Control.cs:
24600           - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
24601             support OnMouseEnter/Leave()
24602           - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
24603             exposure handling
24604
24605 2004-08-16 15:46  pbartok
24606
24607         * XplatUIStructs.cs, XplatUIX11.cs:
24608           - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
24609           OnMouseEnter/Leave()
24610
24611 2004-08-16 15:34  jackson
24612
24613         * XplatUIX11.cs: Group multiple expose events in HandleData, make
24614           sure messages get the message field set to WM_NULL if they are not
24615           handled.
24616
24617 2004-08-16 15:24  jackson
24618
24619         * HandleData.cs: HandleData is used for storing message information
24620           for window handles
24621
24622 2004-08-15 17:23  ravindra
24623
24624         * ColorDepth.cs: Added attribute.
24625
24626 2004-08-15 17:23  ravindra
24627
24628         * SWF.csproj: Updated project for ToolBar Control.
24629
24630 2004-08-15 17:20  ravindra
24631
24632         * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
24633           control and also dos2unix format.
24634
24635 2004-08-15 17:13  ravindra
24636
24637         * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
24638           ToolBarButtonClickEventArgs.cs,
24639           ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
24640           ToolBarTextAlign.cs: First Implementation of ToolBar control.
24641
24642 2004-08-15 15:31  pbartok
24643
24644         * ButtonBase.cs:
24645           - First (mostly) working version
24646
24647 2004-08-13 16:15  pbartok
24648
24649         * Control.cs:
24650           - Fixed Anchor default
24651
24652 2004-08-13 15:43  pbartok
24653
24654         * Control.cs:
24655           - Changed GetCursorPos signature
24656
24657 2004-08-13 15:42  pbartok
24658
24659         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
24660           - Changed signature for GetCursorPos
24661
24662 2004-08-13 15:25  pbartok
24663
24664         * XplatUIX11.cs:
24665           - Cleanup
24666           - Fixed resizing/exposure handling
24667
24668 2004-08-13 15:22  jordi
24669
24670         * ThemeWin32Classic.cs: removes redundant code and fixes issues
24671           with tickposition
24672
24673 2004-08-13 14:55  jordi
24674
24675         * TrackBar.cs: change from wndproc to events
24676
24677 2004-08-13 13:00  jordi
24678
24679         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
24680           XplatUIX11.cs: implements PointToClient (ScreenToClient)
24681
24682 2004-08-13 12:53  pbartok
24683
24684         * XplatUIWin32.cs:
24685           - Changed GetWindowPos to also provide client area size
24686           - Fixed broken prototypes for several win32 functions
24687
24688 2004-08-13 12:53  pbartok
24689
24690         * XplatUI.cs, XplatUIDriver.cs:
24691           - Changed GetWindowPos to also provide client area size
24692
24693 2004-08-13 12:52  pbartok
24694
24695         * XplatUIX11.cs:
24696           - Added generation of WM_POSCHANGED
24697           - Changed GetWindowPos to also provide client area size
24698
24699 2004-08-13 12:52  pbartok
24700
24701         * Control.cs:
24702           - Added Dispose() and destructor
24703           - Fixed resizing and bounds calculation
24704           - Fixed Layout
24705           - Added memory savings for invisible windows
24706
24707 2004-08-13 12:46  jordi
24708
24709         * TrackBar.cs: adds timer and grap window
24710
24711 2004-08-13 10:25  jackson
24712
24713         * Timer.cs: SWF Timer
24714
24715 2004-08-12 16:59  pbartok
24716
24717         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
24718           - Implemented method to get current mouse position
24719
24720 2004-08-12 14:29  jordi
24721
24722         * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
24723           enhancement, fix mouse problems, highli thumb, etc
24724
24725 2004-08-12 13:31  pbartok
24726
24727         * Control.cs:
24728           - Fixed Anchoring bugs
24729
24730 2004-08-12 13:01  jackson
24731
24732         * StatusBar.cs: Don't forget things
24733
24734 2004-08-12 12:54  jackson
24735
24736         * ThemeWin32Classic.cs: Handle owner draw status bars
24737
24738 2004-08-12 12:54  jackson
24739
24740         * StatusBar.cs: Implement missing properties, events, and methods.
24741           Handle mouse clicking
24742
24743 2004-08-12 10:19  jackson
24744
24745         * StatusBarPanelClickEventArgs.cs,
24746           StatusBarPanelClickEventHandler.cs: Classes for handling status
24747           bar panel click events
24748
24749 2004-08-12 10:10  jackson
24750
24751         * Control.cs: Add missing properties
24752
24753 2004-08-12 09:46  pbartok
24754
24755         * BindingsManagerBase.cs:
24756           - Name changed to BindingManagerBase.cs
24757
24758 2004-08-12 09:25  jordi
24759
24760         * ScrollableControl.cs: calls ctrlbase instead of exeception
24761
24762 2004-08-11 16:28  pbartok
24763
24764         * InputLanguageChangingEventArgs.cs:
24765           - Never check in before compiling. Fixes the last check-in
24766
24767 2004-08-11 16:26  pbartok
24768
24769         * InputLanguageChangingEventArgs.cs:
24770           - More signature fixes
24771
24772 2004-08-11 16:20  pbartok
24773
24774         * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
24775           Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
24776           ImageListStreamer.cs, InputLanguage.cs,
24777           InputLanguageChangedEventArgs.cs,
24778           InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
24779           LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
24780           ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
24781           XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
24782           - Signature fixes
24783
24784 2004-08-11 16:16  pbartok
24785
24786         * Application.cs:
24787           - Fixed Signature
24788           - Added .Net 1.1 method
24789
24790 2004-08-11 15:25  pbartok
24791
24792         * SWF.csproj:
24793           - Fixed BindingManagerBase.cs filename
24794
24795 2004-08-11 15:22  pbartok
24796
24797         * BindingManagerBase.cs:
24798           - Was checked in with wrong filename
24799
24800 2004-08-11 14:50  pbartok
24801
24802         * SWF.csproj:
24803           - Updated
24804
24805 2004-08-11 13:41  jordi
24806
24807         * XplatUIWin32.cs: Fixes ClientRect
24808
24809 2004-08-11 13:19  pbartok
24810
24811         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
24812           XplatUIX11.cs:
24813           - We had SetWindowPos and MoveWindow to set window positions and
24814             size, removed MoveWindow. We have GetWindowPos, so it made sense to
24815             keep SetWindowPos as matching counterpart
24816           - Added some X11 sanity checking
24817
24818 2004-08-11 12:59  pbartok
24819
24820         * Control.cs:
24821           - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
24822             (It seems that SetBounds is just a front for SetBoundsCore and
24823              SetBoundsCore updates the underlying window system and
24824              UpdateBounds is responsible for updating the variables associated
24825              with the Control and sending the events)
24826           - Major cleanup of Size handling; we now have two sizes, client_size
24827             and bounds. Bounds defines the window with decorations, client_size
24828             without them.
24829
24830 2004-08-11 12:55  pbartok
24831
24832         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
24833           - Added method to calculate difference between decorated window and
24834             raw client area
24835
24836 2004-08-11 12:54  pbartok
24837
24838         * Label.cs:
24839           - Forcing redraw on resize
24840
24841 2004-08-11 11:43  pbartok
24842
24843         * ImageList.cs:
24844           - Removed disposing of the actual images when the list is disposed
24845
24846 2004-08-11 09:13  pbartok
24847
24848         * Control.cs:
24849           - Now properly reparents windows
24850
24851 2004-08-11 08:37  pbartok
24852
24853         * Control.cs:
24854           - Duh!
24855
24856 2004-08-11 07:47  pbartok
24857
24858         * Control.cs:
24859           - Rewrote the collection stuff. Might not be as fast now, not
24860             keeping the number of children around and accessible directly, but
24861             it's more straightforward
24862
24863 2004-08-11 07:44  pbartok
24864
24865         * AccessibleObject.cs:
24866           - Fixed to match ControlCollection rewrite
24867
24868 2004-08-11 07:43  pbartok
24869
24870         * ImageList.cs:
24871           - Added missing creation of the collection list
24872
24873 2004-08-10 20:08  jackson
24874
24875         * StatusBar.cs: Get the paint message from WndProc
24876
24877 2004-08-10 19:31  jackson
24878
24879         * ThemeWin32Classic.cs: Create Brushes as little as possible
24880
24881 2004-08-10 19:20  jackson
24882
24883         * UICues.cs: Add Flags attribute
24884
24885 2004-08-10 19:19  jackson
24886
24887         * StatusBarPanel.cs: Signature cleanup
24888
24889 2004-08-10 19:10  jackson
24890
24891         * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
24892           Initial implementation of status bar item drawing
24893
24894 2004-08-10 17:27  jordi
24895
24896         * TrackBar.cs: add missing methods, properties, and restructure to
24897           hide extra ones
24898
24899 2004-08-10 16:24  jackson
24900
24901         * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
24902           ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
24903           attribute
24904
24905 2004-08-10 13:21  jordi
24906
24907         * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
24908           enhancements and standarize on win colors defaults
24909
24910 2004-08-10 12:52  jackson
24911
24912         * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
24913           ThemeWin32Classic.cs: Implement DrawItem functionality
24914
24915 2004-08-10 12:47  jordi
24916
24917         * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
24918
24919 2004-08-10 12:32  jordi
24920
24921         * Control.cs: throw ontextchange event
24922
24923 2004-08-10 11:43  pbartok
24924
24925         * Control.cs:
24926           - Added more to the still unfinished Dock/Anchor layout code
24927
24928 2004-08-10 11:39  pbartok
24929
24930         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
24931           - Added GetWindowPos method
24932
24933 2004-08-10 11:36  pbartok
24934
24935         * XplatUIWin32.cs:
24936           - Implemented several methods
24937
24938 2004-08-10 09:47  jackson
24939
24940         * TrackBar.cs: Allow control to handle buffering
24941
24942 2004-08-10 09:41  jackson
24943
24944         * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
24945
24946 2004-08-10 09:24  jackson
24947
24948         * Label.cs, LinkLabel.cs: Let Control handle buffering.
24949
24950 2004-08-10 09:09  jackson
24951
24952         * StatusBar.cs: Let Control handle all the buffering.
24953
24954 2004-08-10 09:08  jackson
24955
24956         * Control.cs: Control will now handle the buffering code, so each
24957           control does not have to implement this.
24958
24959 2004-08-10 08:34  jackson
24960
24961         * XplatUIDriver.cs: Use default colors from the theme
24962
24963 2004-08-09 17:12  pbartok
24964
24965         * ImageList.cs:
24966           - Fixed several bugs Ravindra pointed out
24967
24968 2004-08-09 16:11  pbartok
24969
24970         * Control.cs:
24971           - Added incomplete dock layout code
24972           - Added support for mouse wheel
24973
24974 2004-08-09 16:09  pbartok
24975
24976         * XplatUIX11.cs:
24977           - Added handling for middle and right mousebutton
24978           - Added handling for mouse wheel
24979           - Added handling for key state and mouse state and position
24980           - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
24981           messages
24982
24983 2004-08-09 15:40  jackson
24984
24985         * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
24986           StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
24987           checkin
24988
24989 2004-08-09 15:37  jackson
24990
24991         * StatusBar.cs: Initial implementation of StatusBar
24992
24993 2004-08-09 15:36  jackson
24994
24995         * ITheme.cs: Add support for drawing status bar and getting status
24996           bar item sizes
24997
24998 2004-08-09 15:35  pbartok
24999
25000         * MouseButtons.cs:
25001           - Fixed values
25002
25003 2004-08-09 15:34  jackson
25004
25005         * ThemeWin32Classic.cs: Add support for drawing status bar and get
25006           status bar item sizes
25007
25008 2004-08-09 15:21  jackson
25009
25010         * ThemeWin32Classic.cs: Use known colors for default control
25011           colours
25012
25013 2004-08-09 15:12  jackson
25014
25015         * ThemeWin32Classic.cs: Make the default font static, it is static
25016           in control so this doesn't change functionality and creating fonts
25017           is sloooooow.
25018
25019 2004-08-09 14:56  pbartok
25020
25021         * X11Structs.cs:
25022           - Added GrabMode enum
25023
25024 2004-08-09 14:55  pbartok
25025
25026         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
25027           - Removed Run method, was only required for initial development
25028
25029 2004-08-09 14:51  pbartok
25030
25031         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
25032           - Implemented GrabWindow/ReleaseWindow methods to allow pointer
25033           capture
25034
25035 2004-08-09 13:48  pbartok
25036
25037         * XplatUIX11.cs:
25038           - Fixed default sizing for child windows
25039
25040 2004-08-09 12:56  pbartok
25041
25042         * XplatUIX11.cs:
25043           - Added generation of WM_DESTROY message
25044           - Added handling of window manager induced shutdown
25045
25046 2004-08-09 11:31  jackson
25047
25048         * ThemeWin32Classic.cs: New names for control properties
25049
25050 2004-08-09 11:25  jackson
25051
25052         * Control.cs: Use new color names
25053
25054 2004-08-09 11:02  jackson
25055
25056         * XplatUI.cs: Get default window properties from the theme
25057
25058 2004-08-09 11:01  jackson
25059
25060         * ITheme.cs: The theme engine now controls default window
25061           properties
25062
25063 2004-08-09 11:00  jackson
25064
25065         * ThemeWin32Classic.cs: Add default window color properties
25066
25067 2004-08-09 10:17  jackson
25068
25069         * ThemeWin32Classic.cs: Use correct default back color
25070
25071 2004-08-09 10:05  jackson
25072
25073         * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
25074           the theme now.
25075
25076 2004-08-09 09:56  jackson
25077
25078         * XplatUI.cs: Remove defaults, these are handled by the theme now.
25079
25080 2004-08-09 09:54  jackson
25081
25082         * Control.cs: Get default properties from the theme.
25083
25084 2004-08-09 09:53  jackson
25085
25086         * ITheme.cs: Themes now handle default control properties
25087
25088 2004-08-09 09:53  jackson
25089
25090         * ThemeWin32Classic.cs: Themes now handle default control
25091           properties so coloring will be consistent
25092
25093 2004-08-08 16:54  jordi
25094
25095         * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
25096
25097 2004-08-08 15:08  jordi
25098
25099         * XplatUIX11.cs: fixes keyboard crash
25100
25101 2004-08-08 13:47  jordi
25102
25103         * Label.cs: add cvs header info
25104
25105 2004-08-08 12:09  jackson
25106
25107         * ThemeWin32Classic.cs: Add pen_buttonface
25108
25109 2004-08-08 11:52  jordi
25110
25111         * Label.cs, LinkLabel.cs: [no log message]
25112
25113 2004-08-08 11:34  jordi
25114
25115         * ThemeWin32Classic.cs: Use Windows Standard Colours
25116
25117 2004-08-07 17:32  jordi
25118
25119         * TrackBar.cs: throw exceptions of invalid enums values
25120
25121 2004-08-07 17:31  jordi
25122
25123         * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
25124           draw method name
25125
25126 2004-08-07 16:56  jackson
25127
25128         * HorizontalAlignment.cs: Initial checkin
25129
25130 2004-08-07 13:16  jordi
25131
25132         * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
25133           methods
25134
25135 2004-08-07 13:05  jordi
25136
25137         * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
25138           GetSysColor defines
25139
25140 2004-08-06 18:01  pbartok
25141
25142         * ThemeWin32Classic.cs:
25143           - Fixed some rounding issues with float/int
25144
25145 2004-08-06 18:00  jackson
25146
25147         * DockStyle.cs, AnchorStyles.cs:
25148
25149                   Add flags and serializable attributes.
25150
25151 2004-08-06 17:46  pbartok
25152
25153         * XplatUIX11.cs:
25154           - Implemented GetParent
25155
25156 2004-08-06 17:18  pbartok
25157
25158         * TrackBar.cs:
25159           - Fixed some rounding issues with float/int
25160
25161 2004-08-06 17:17  pbartok
25162
25163         * X11Structs.cs, XplatUIX11.cs:
25164           - Fixed Refresh and Invalidate
25165
25166 2004-08-06 15:30  pbartok
25167
25168         * Control.cs, X11Structs.cs, XplatUIX11.cs:
25169           - Fixed recursive loop when resizing
25170           - Improved/fixed redrawing on expose messages
25171
25172 2004-08-06 09:53  jordi
25173
25174         * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
25175           keyboard navigation
25176
25177 2004-08-06 08:02  pbartok
25178
25179         * X11Structs.cs, XplatUIX11.cs:
25180           - Fixed reparenting
25181           - Fixed window border creation
25182
25183 2004-08-05 15:38  pbartok
25184
25185         * XplatUIX11.cs:
25186           - Attempted fix for reparenting problems
25187
25188 2004-08-04 15:14  pbartok
25189
25190         * Control.cs:
25191           - Fixed Invalidation bug (calculated wrong client area)
25192           - Added ClientSize setter
25193
25194 2004-08-04 15:13  pbartok
25195
25196         * Form.cs:
25197           - Added AutoScale properties
25198
25199 2004-08-04 15:13  pbartok
25200
25201         * SWF.csproj:
25202           - Added latest files
25203
25204 2004-08-04 14:11  pbartok
25205
25206         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
25207           XplatUIX11.cs:
25208           - Added Invalidate handling
25209
25210 2004-08-03 17:09  jordi
25211
25212         * XplatUIDriver.cs: fixes spelling mistake
25213
25214 2004-07-27 09:53  jordi
25215
25216         * TrackBar.cs: fixes trackbar events, def classname, methods
25217           signature
25218
25219 2004-07-27 09:29  jordi
25220
25221         * ScrollBar.cs: fixes scrollbar events
25222
25223 2004-07-27 04:38  jordi
25224
25225         * Control.cs: changes to be able to run winforms samples
25226
25227 2004-07-26 11:42  jordi
25228
25229         * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
25230           ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
25231
25232 2004-07-26 05:41  jordi
25233
25234         * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
25235           MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
25236           implementation
25237
25238 2004-07-22 09:22  jordi
25239
25240         * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
25241           check link overlapping, implement events, and fixes
25242
25243 2004-07-21 10:28  jordi
25244
25245         * DialogResult.cs, IButtonControl.cs: fixes comments filenames
25246
25247 2004-07-21 10:19  jordi
25248
25249         * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
25250           LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
25251           LinkLabelLinkClickedEventArgs.cs,
25252           LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
25253           XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
25254           implementation
25255
25256 2004-07-19 13:09  jordi
25257
25258         * Control.cs, Label.cs: label control re-written: added missing
25259           functionlity, events, and properties
25260
25261 2004-07-19 10:49  jordi
25262
25263         * Control.cs: fixes SetBounds logic
25264
25265 2004-07-19 01:29  jordi
25266
25267         * Control.cs: Call RefreshWindow only if the window has created
25268
25269 2004-07-15 14:05  pbartok
25270
25271         * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
25272           - Implemented ImageList and ImageList.ImageCollection classes
25273           - Added ColorDepth enumeration
25274           - Updated SWF VS.Net project
25275
25276 2004-07-15 11:06  jordi
25277
25278         * XplatUIStructs.cs: added MsgButons enum
25279
25280 2004-07-15 11:03  jordi
25281
25282         * Control.cs: added basic mouse handeling events
25283
25284 2004-07-15 03:38  jordi
25285
25286         * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
25287           Vertical TrackBar control implementation
25288
25289 2004-07-13 09:33  jordi
25290
25291         * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
25292
25293 2004-07-13 09:31  jordi
25294
25295         * Control.cs, Form.cs: commit: new properties and fixes form size
25296           problems
25297
25298 2004-07-09 14:13  miguel
25299
25300         * ProgressBar.cs: Spelling
25301
25302 2004-07-09 11:25  pbartok
25303
25304         * ProgressBar.cs:
25305           - Removed usage of Rectangle for drawing. Miguel pointed out it's
25306           faster
25307
25308 2004-07-09 11:17  miguel
25309
25310         * ProgressBar.cs: 2004-07-09  Miguel de Icaza  <miguel@ximian.com>
25311
25312                 * ProgressBar.cs: Fixed spelling for `block'
25313
25314                 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
25315                 style guidelines.
25316
25317                 Avoid using the += on rect.X, that exposed a bug in the compiler.
25318
25319 2004-07-08 23:21  pbartok
25320
25321         * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
25322           AnchorStyles.cs, Application.cs, ApplicationContext.cs,
25323           BaseCollection.cs, Binding.cs, BindingContext.cs,
25324           BindingMemberInfo.cs, BindingsCollection.cs,
25325           BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
25326           BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
25327           ButtonState.cs, CaptionButton.cs, CheckBox.cs,
25328           ContainerControl.cs, Control.cs, ControlEventArgs.cs,
25329           ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
25330           ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
25331           CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
25332           DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
25333           FrameStyle.cs, GiveFeedbackEventArgs.cs,
25334           GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
25335           HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
25336           IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
25337           InputLanguageChangedEventArgs.cs,
25338           InputLanguageChangedEventHandler.cs,
25339           InputLanguageChangingEventArgs.cs,
25340           InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
25341           InvalidateEventArgs.cs, InvalidateEventHandler.cs,
25342           KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
25343           KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
25344           LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
25345           MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
25346           PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
25347           QueryAccessibilityHelpEventArgs.cs,
25348           QueryAccessibilityHelpEventHandler.cs,
25349           QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
25350           RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
25351           ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
25352           ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
25353           TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
25354           UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
25355           XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
25356           XplatUIX11.cs, lang.cs:
25357           - Initial check-in
25358
25359